[data-testid="web-experience-shell"] { max-width: none !important; }
#root {
  --desktop-gutter: clamp(40px, 6.5vw, 140px);
  --desktop-wash: linear-gradient(90deg, #07161df7 0%, #07161de8 29%, #07161d99 43%, transparent 67%);
  min-height: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.desktop-home {
  flex: 1;
  min-height: 0;
  overflow: auto;
  color: #f7e9ca;
  background: #101e23;
  font: 400 16px/1.8 KbaziSerifKR400, Georgia, serif;
}
.desktop-home h1, .desktop-home h2, .desktop-home h3 {
  font-family: KbaziSerifKR500, Georgia, serif;
  font-weight: 500;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -.045em;
  white-space: pre-line;
}
.desktop-home p { margin: 13px 0; white-space: pre-line; color: #f0e4cb; }
.desktop-hero {
  min-height: 100dvh;
  position: relative;
  display: grid;
  align-items: center;
  box-sizing: border-box;
  padding: clamp(44px, 7vh, 92px) var(--desktop-gutter);
  background: var(--desktop-wash),
    url('/experience/desktop/tiger-landscape.webp') center / cover no-repeat;
}
.desktop-copy { width: min(38vw, 600px); min-width: 0; }
.desktop-hero h1 { font-size: clamp(32px, 3vw, 50px); margin-bottom: 20px; }
.desktop-hero .desktop-copy > p:first-of-type { font-size: 18px; }
.desktop-actions { margin-top: 24px; }
.desktop-actions a { color: #f1d0a0; text-underline-offset: .23em; }
.desktop-actions .web-home-store-badges { justify-content: flex-start; margin: 12px 0 13px; }
.desktop-action {
  min-height: 52px;
  width: min(100%, 276px);
  padding: 9px 20px;
  color: #151c1c;
  border: 1px solid #f3d99d;
  border-radius: 4px;
  background: #e8c787;
  font: 500 17px/1.3 KbaziSerifKR500, Georgia, serif;
  cursor: pointer;
}
.desktop-action:hover { background: #f4dcab; }
.desktop-elements {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: clamp(44px, 7vh, 92px) var(--desktop-gutter);
  box-sizing: border-box;
}
.desktop-element-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.desktop-element-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--desktop-wash);
  pointer-events: none;
}
.desktop-elements h2 { margin-bottom: 22px; font-size: clamp(30px, 2.7vw, 45px); }
.desktop-elements h3 { margin-top: 25px; font-size: 27px; }
.desktop-element-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.desktop-element-options button {
  min-height: 67px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  background: #17292f;
  color: #f0d6a5;
  border: 1px solid #debb7675;
  border-radius: 4px;
  cursor: pointer;
}
.desktop-element-options span { font: 25px/1.1 KbaziSerifKR500, Georgia, serif; }
.desktop-element-options button[aria-pressed="true"] { color: #172529; background: #edcd94; }
.desktop-element-meaning { border-top: 1px solid #d7ba8244; padding-top: 13px; }
.desktop-home :focus-visible { outline: 2px solid #f1d79c; outline-offset: 4px; }
.desktop-elements:focus { outline: none; }

[data-testid="birth-guide-screen"],
[data-testid="web-birth-form"],
[data-testid="web-sample-reader"] {
  width: 100%;
  background: #101e23 !important;
}
[data-testid="birth-guide-art"],
[data-testid="birth-guide-wash"],
[data-testid="web-birth-form-art"],
[data-testid="web-birth-form-wash"],
[data-testid="web-sample-cover-art"],
[data-testid="web-feature-art"],
[data-testid="web-feature-wash"] {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}
[data-testid="birth-guide-wash"],
[data-testid="web-birth-form-wash"],
[data-testid="web-feature-wash"] {
  background-image: var(--desktop-wash) !important;
}
[data-testid="birth-guide-dialogue"] {
  left: var(--desktop-gutter) !important;
  right: auto !important;
  width: min(38vw, 600px);
  top: 0;
  bottom: 0 !important;
  justify-content: center;
}
[data-testid="birth-guide-dialogue"] > :first-child { text-align: left !important; }
[data-testid="web-birth-form-panel"] {
  width: min(49vw, 740px);
  padding-left: var(--desktop-gutter);
}
[data-testid="web-sample-page-0"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--desktop-wash);
  pointer-events: none;
}
[data-testid="web-sample-cover-content"] {
  left: 0 !important;
  right: auto !important;
  width: min(47vw, 700px);
  padding-left: var(--desktop-gutter);
  z-index: 1;
}
[data-testid="sample-cover-prompt"] {
  left: var(--desktop-gutter) !important;
  right: auto !important;
  width: min(38vw, 600px);
  bottom: 24% !important;
}
[data-testid="web-sample-intro"] { padding-right: 24px; }
[data-testid="web-sample-intro-cover"] { min-height: 0 !important; padding-top: min(10vh, 90px) !important; }
[data-testid="web-sample-intro-cover"] > :first-child { display: none; }
[data-testid="web-sample-intro-scroll-cue"] { display: none; }
[data-testid="web-sample-bottom-wash"] { display: none; }
[data-testid="web-feature-content"] {
  width: min(48vw, 740px);
  padding-left: var(--desktop-gutter) !important;
  padding-right: 28px !important;
  padding-block: 36px !important;
}
[data-testid="web-sample-end"],
[data-testid^="web-feature-"]:has(> [data-testid="web-feature-content"]) { justify-content: center !important; }


/* The wide illustrations are separate desktop assets. */
.desktop-element-art,
[data-testid="birth-guide-art"],
[data-testid="web-birth-form"],
[data-testid="moon-loading-screen"],
[data-testid="web-download-screen"],
[data-testid="web-sample-page-0"],
[data-testid="web-sample-end"],
[data-testid^="web-feature-"]:has(> [data-testid="web-feature-content"]) {
  background: var(--scene-art) center / cover no-repeat #101e23 !important;
}
.desktop-element-art { --scene-art: url('/experience/desktop/art/wood.webp?v=minhwa'); }
.desktop-elements:has(.desktop-element-options button:nth-child(2)[aria-pressed="true"]) .desktop-element-art {
  --scene-art: url('/experience/desktop/art/fire.webp?v=minhwa');
}
.desktop-elements:has(.desktop-element-options button:nth-child(3)[aria-pressed="true"]) .desktop-element-art {
  --scene-art: url('/experience/desktop/art/earth.webp?v=minhwa');
}
.desktop-elements:has(.desktop-element-options button:nth-child(4)[aria-pressed="true"]) .desktop-element-art {
  --scene-art: url('/experience/desktop/art/metal.webp?v=minhwa');
}
.desktop-elements:has(.desktop-element-options button:nth-child(5)[aria-pressed="true"]) .desktop-element-art {
  --scene-art: url('/experience/desktop/art/water.webp?v=minhwa');
}
[data-testid="birth-guide-art"], [data-testid="web-birth-form"] {
  --scene-art: url('/experience/desktop/art/guide.webp');
}
[data-testid="moon-loading-screen"], [data-testid="web-sample-page-0"], [data-testid="web-sample-end"] {
  --scene-art: url('/experience/desktop/art/loading.webp');
}
[data-testid="web-download-screen"], [data-testid="web-feature-gallery"] {
  --scene-art: url('/experience/desktop/art/gallery.webp');
}
[data-testid="web-download-screen"] {
  background-image: var(--desktop-wash), var(--scene-art) !important;
}
[data-testid="web-feature-compatibility"] { --scene-art: url('/experience/desktop/art/compatibility.webp'); }
[data-testid="web-feature-daily"] { --scene-art: url('/experience/desktop/art/daily.webp'); }
[data-testid="web-feature-auspicious"] { --scene-art: url('/experience/desktop/art/auspicious.webp'); }
[data-testid="web-feature-balance"] { --scene-art: url('/experience/desktop/art/balance.webp'); }
[data-testid="web-feature-life"] { --scene-art: url('/experience/desktop/art/life.webp'); }
.desktop-element-art > :first-child,
[data-testid="birth-guide-art"] img,
[data-testid="web-birth-form-art"],
[data-testid="moon-loading-art"],
[data-testid^="web-feature-"] > [data-testid="web-feature-art"] {
  opacity: 0 !important;
}

/* Mount the personalized minhwa inside the wide moonlit landscape. */
[data-testid="web-sample-page-0"] > [data-testid="web-sample-cover-art"],
[data-testid="web-sample-end"] > [data-testid="web-feature-art"] {
  --painting-width: min(37vw, 440px, 45svh);
  left: auto !important;
  right: clamp(36px, 12vw, 260px) !important;
  width: var(--painting-width) !important;
  height: calc(var(--painting-width) * 16 / 9) !important;
  margin-block: auto !important;
  z-index: 1;
  overflow: hidden;
  border: 1px solid #b18d5a;
  border-radius: 48% 48% 6px 6px / 13% 13% 6px 6px;
  background: #13222a;
  box-shadow:
    0 0 0 5px #16262ae8,
    0 0 0 6px #b897626e,
    0 20px 54px #050c13c9,
    0 0 64px #d0ad6929;
}
[data-testid="web-sample-page-0"] > [data-testid="web-sample-cover-art"] img,
[data-testid="web-sample-end"] > [data-testid="web-feature-art"] img {
  object-fit: contain !important;
  object-position: center !important;
}
[data-testid="web-sample-page-0"] > [data-testid="web-sample-cover-art"]::after,
[data-testid="web-sample-end"] > [data-testid="web-feature-art"]::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px #f0d29a61, inset 0 0 24px #121c28a6;
  background:
    radial-gradient(ellipse at 1% 100%, #c1b1946e, transparent 36%),
    radial-gradient(ellipse at 100% 104%, #e7cd9e66, transparent 38%);
}
[data-testid="web-sample-cover-content"],
[data-testid="web-sample-end"] > [data-testid="web-feature-content"] { z-index: 2; }
[data-testid="web-sample-reader"] > [role="button"] { z-index: 3; }
