/* ==========================================================================
   JIN WORLD — single-screen key art site
   ========================================================================== */

:root {
  --ink: #170f24;
  --ink-deep: #0e0917;
  --plum: #2a1b3e;
  --cream: #fff9f0;
  --cream-soft: rgba(255, 248, 238, 0.76);
  --cream-muted: rgba(255, 248, 238, 0.55);
  --gold: #ead1a4;
  --gold-bright: #f8e8c7;
  --gold-deep: #c7a36c;
  --line: rgba(247, 234, 214, 0.16);
  --line-soft: rgba(247, 234, 214, 0.09);
  --line-strong: rgba(247, 234, 214, 0.3);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Jost", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --px: 0;
  --py: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  color-scheme: dark;
}

html.dialog-open body {
  overflow: hidden;
}

body {
  margin: 0;
  min-width: 300px;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

::selection {
  background: rgba(234, 209, 164, 0.28);
  color: var(--cream);
}

.page {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  padding: clamp(20px, 2.6vh, 32px) clamp(22px, 4.2vw, 64px) 0;
  isolation: isolate;
}

/* --------------------------------------------------------------------------
   Artwork
   -------------------------------------------------------------------------- */

.art {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #c8bce3;
}

.art picture {
  display: block;
  width: 100%;
  height: 100%;
  transform: translate3d(calc(var(--px) * -8px), calc(var(--py) * -6px), 0) scale(1.025);
  transition: transform 1.8s var(--ease-out);
  will-change: transform;
}

.art__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 57% 44%;
  filter: saturate(0.93) brightness(0.98);
  animation: art-breathe 24s ease-in-out infinite alternate;
}

.art__veil,
.art__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.art__veil {
  background:
    linear-gradient(
      90deg,
      rgba(16, 9, 28, 0.88) 0%,
      rgba(18, 10, 31, 0.74) 24%,
      rgba(20, 12, 34, 0.42) 45%,
      rgba(20, 12, 34, 0.08) 65%,
      rgba(16, 9, 28, 0.12) 100%
    ),
    linear-gradient(
      180deg,
      rgba(16, 9, 28, 0.64) 0%,
      rgba(16, 9, 28, 0.1) 18%,
      rgba(16, 9, 28, 0) 55%,
      rgba(16, 9, 28, 0.5) 100%
    );
}

.art__vignette {
  background:
    radial-gradient(
      ellipse at 76% 56%,
      rgba(27, 15, 45, 0.12) 0%,
      rgba(27, 15, 45, 0.24) 48%,
      rgba(20, 11, 33, 0.5) 100%
    ),
    radial-gradient(ellipse at 40% 45%, transparent 40%, rgba(13, 7, 23, 0.3) 100%);
}

.art__motes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */

.topbar {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(8px, 1.6vh, 16px);
  animation: fade-down 1s 0.1s var(--ease-out) both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--cream);
  text-decoration: none;
}

.brand:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 5px;
}

.brand__star {
  width: 15px;
  height: 15px;
  color: var(--gold);
  filter: drop-shadow(0 0 10px rgba(234, 209, 164, 0.36));
}

.brand__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.26em;
}

.topbar__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(18px, 2.2vw, 30px);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cream-muted);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(234, 209, 164, 0.4);
  animation: status-pulse 2.8s ease-out infinite;
}

/* --------------------------------------------------------------------------
   Partner restaurant link
   -------------------------------------------------------------------------- */

.partner-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
  color: var(--cream-muted);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.partner-link::before {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  transform: rotate(45deg);
  border: 1px solid var(--gold-deep);
  content: "";
  opacity: 0.75;
  transition:
    border-color 0.3s ease,
    opacity 0.3s ease;
}

.partner-link__name {
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.07em;
  transition: color 0.3s ease;
}

.partner-link__meta {
  color: var(--cream-muted);
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.partner-link__meta::before {
  margin-right: 6px;
  color: var(--gold-deep);
  content: "·";
}

.partner-link__arrow {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
  opacity: 0.65;
  transition:
    transform 0.3s var(--ease-out),
    opacity 0.3s ease;
}

.partner-link:hover {
  color: var(--gold-bright);
}

.partner-link:hover::before {
  border-color: var(--gold-bright);
  opacity: 1;
}

.partner-link:hover .partner-link__name {
  color: var(--gold-bright);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.partner-link:hover .partner-link__meta {
  color: var(--gold);
}

.partner-link:hover .partner-link__arrow {
  transform: translate(1px, -1px);
  opacity: 1;
}

.partner-link:focus-visible {
  outline: 1px solid var(--gold-bright);
  outline-offset: 5px;
}

/* --------------------------------------------------------------------------
   Buttons — the supplied menu plates are the button surfaces
   -------------------------------------------------------------------------- */

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  isolation: isolate;
  transition:
    transform 0.35s var(--ease-out),
    color 0.35s ease;
}

.button::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  content: "";
  transition:
    filter 0.35s ease,
    opacity 0.35s ease;
}

.button span {
  position: relative;
  display: inline-block;
  transform: translateY(-1px);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button:focus-visible {
  outline: 1px solid var(--gold-bright);
  outline-offset: 5px;
}

.button--primary {
  width: clamp(264px, 21.5vw, 310px);
  height: clamp(62px, 5.1vw, 74px);
  color: #fffaf2;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-shadow: 0 1px 12px rgba(28, 14, 52, 0.85);
}

.button--primary::before {
  background: url("assets/button-primary.webp") center / 100% 100% no-repeat;
  filter: drop-shadow(0 14px 28px rgba(9, 4, 18, 0.35)) brightness(1.04);
}

.button--primary:hover::before {
  filter: drop-shadow(0 16px 34px rgba(9, 4, 18, 0.4))
    drop-shadow(0 0 24px rgba(234, 209, 164, 0.2)) brightness(1.13);
}

.button--nav {
  width: 164px;
  height: 40px;
  color: #2a1b3e;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.button--nav::before {
  background: url("assets/button-secondary.webp") center / 100% 100% no-repeat;
  filter: drop-shadow(0 8px 18px rgba(9, 4, 18, 0.24))
    drop-shadow(0 0 18px rgba(255, 248, 232, 0.06)) brightness(0.88) saturate(0.72);
  opacity: 0.86;
}

.button--nav:hover::before {
  filter: drop-shadow(0 10px 22px rgba(9, 4, 18, 0.28))
    drop-shadow(0 0 18px rgba(255, 248, 232, 0.16)) brightness(0.96) saturate(0.82);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Hero copy
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 0;
  align-items: center;
  padding: clamp(18px, 4vh, 52px) 0 clamp(20px, 3.4vh, 44px);
}

.hero__copy {
  width: min(620px, 52vw);
  margin-left: clamp(0px, 0.6vw, 12px);
  padding-bottom: clamp(0px, 2.4vh, 22px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.31em;
  line-height: 1.4;
  text-transform: uppercase;
  animation: rise-in 1s 0.2s var(--ease-out) both;
}

.eyebrow__line {
  display: block;
  width: 34px;
  height: 1px;
  flex: 0 0 auto;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.title {
  margin: 0.16em 0 0.12em -0.02em;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(68px, 7.2vw, 112px);
  font-weight: 600;
  line-height: 0.88;
  letter-spacing: 0.005em;
  white-space: nowrap;
  text-wrap: balance;
  text-shadow:
    0 2px 24px rgba(12, 6, 22, 0.25),
    0 24px 64px rgba(12, 6, 22, 0.3);
  animation: rise-in 1.15s 0.24s var(--ease-out) both;
}

.title__accent {
  color: transparent;
  background: linear-gradient(180deg, #fffdf7 0%, #f3dfba 53%, #c9a268 100%);
  -webkit-background-clip: text;
  background-clip: text;
  padding-right: 0.04em;
  filter: drop-shadow(0 2px 18px rgba(234, 209, 164, 0.11));
}

.tagline {
  margin: 0;
  max-width: 510px;
  color: rgba(255, 249, 240, 0.94);
  font-family: var(--font-display);
  font-size: clamp(20px, 1.78vw, 27px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: 0.005em;
  text-shadow: 0 2px 18px rgba(12, 6, 22, 0.25);
  animation: rise-in 1.05s 0.36s var(--ease-out) both;
}

.intro {
  max-width: 435px;
  margin: 15px 0 0;
  color: var(--cream-soft);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.72;
  letter-spacing: 0.012em;
  animation: rise-in 1.05s 0.45s var(--ease-out) both;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 28px);
  margin-top: clamp(24px, 3.6vh, 36px);
  animation: rise-in 1.05s 0.54s var(--ease-out) both;
}

.release {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding-left: 18px;
  border-left: 1px solid var(--line-strong);
  text-shadow: 0 1px 10px rgba(10, 5, 18, 0.62);
}

.release__kicker {
  color: var(--cream-muted);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}

.release__stores {
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1.2;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Character
   -------------------------------------------------------------------------- */

.character-stage {
  position: absolute;
  right: clamp(8px, 5.2vw, 108px);
  bottom: clamp(132px, 16vh, 172px);
  z-index: 2;
  display: flex;
  height: min(75vh, 820px);
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  transform: translate3d(calc(var(--px) * 6px), calc(var(--py) * 3px), 0);
  transition: transform 1.8s var(--ease-out);
  animation: character-in 1.5s 0.18s var(--ease-out) both;
  will-change: transform;
}

.character-stage::before {
  position: absolute;
  z-index: -1;
  bottom: -2%;
  left: 50%;
  width: 128%;
  height: 68%;
  content: "";
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(34, 18, 57, 0.62) 0%,
    rgba(35, 19, 58, 0.32) 42%,
    transparent 72%
  );
  filter: blur(32px);
}

.character-stage__halo {
  position: absolute;
  top: 42%;
  left: 50%;
  z-index: -2;
  width: min(47vw, 640px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 245, 223, 0.24) 0%,
    rgba(210, 181, 244, 0.14) 37%,
    rgba(178, 148, 219, 0.03) 58%,
    transparent 70%
  );
  filter: blur(24px);
}

.character {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 20px 44px rgba(22, 10, 39, 0.4))
    drop-shadow(0 0 1px rgba(46, 28, 70, 0.55));
  -webkit-mask-image: linear-gradient(180deg, #000 96.5%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 96.5%, transparent 100%);
}

/* --------------------------------------------------------------------------
   Daily rhythm
   -------------------------------------------------------------------------- */

.daybar {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 0.66fr) minmax(0, 2.08fr) minmax(0, 1.02fr);
  gap: clamp(20px, 2.6vw, 42px);
  align-items: stretch;
  padding: clamp(13px, 2vh, 22px) 0 clamp(10px, 1.5vh, 16px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 9, 28, 0.02), rgba(16, 9, 28, 0.22));
  animation: rise-in 1.1s 0.64s var(--ease-out) both;
}

.daybar__heading {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 7px;
  padding-top: 2px;
}

.daybar__kicker {
  margin: 0;
  color: var(--cream-muted);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.26em;
  line-height: 1.4;
  text-transform: uppercase;
}

.daybar__title {
  margin: 0;
  color: rgba(255, 249, 240, 0.9);
  font-family: var(--font-display);
  font-size: clamp(21px, 1.55vw, 25px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: 0.005em;
}

.day-tabs {
  display: flex;
  min-width: 0;
}

.day-tab {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 64px;
  margin: 0;
  padding: 2px 10px 3px 18px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--cream-muted);
  cursor: pointer;
  text-align: left;
  transition: color 0.35s ease;
}

.day-tab:first-child {
  padding-left: 0;
  border-left: 0;
}

.day-tab::after {
  position: absolute;
  bottom: 0;
  left: -1px;
  width: 1px;
  height: 0;
  content: "";
  background: linear-gradient(180deg, var(--gold-bright), rgba(234, 209, 164, 0.2));
  transition: height 0.45s var(--ease-out);
}

.day-tab:first-child::after {
  left: 0;
}

.day-tab.is-active::after {
  height: 100%;
}

.day-tab:hover,
.day-tab:focus-visible {
  color: rgba(255, 249, 240, 0.82);
}

.day-tab:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.day-tab.is-active {
  color: var(--cream);
}

.day-tab__index {
  display: block;
  color: var(--gold-deep);
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.24em;
}

.day-tab__name {
  display: block;
  margin: 4px 0 3px;
  color: inherit;
  font-family: var(--font-display);
  font-size: clamp(22px, 1.8vw, 27px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0.005em;
  transition: color 0.35s ease;
}

.day-tab.is-active .day-tab__name {
  color: var(--cream);
}

.day-tab__phase {
  display: block;
  color: var(--cream-muted);
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.day-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 64px;
  padding-left: clamp(16px, 1.6vw, 24px);
  border-left: 1px solid var(--line);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

.day-panel.is-changing {
  opacity: 0;
  transform: translateY(4px);
}

.day-panel:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 4px;
}

.day-panel__copy {
  margin: 0;
  color: var(--cream-soft);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.008em;
}

.day-panel__stats {
  margin: 0;
  color: var(--gold-deep);
  font-size: 8.5px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 9px 0 clamp(11px, 1.6vh, 16px);
  color: rgba(255, 248, 238, 0.44);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 1.5;
  text-transform: uppercase;
  animation: fade-in 1.2s 0.85s ease both;
}

.footer__note {
  text-align: center;
}

.footer__status {
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Download dialog
   -------------------------------------------------------------------------- */

.download-dialog {
  width: min(880px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(234, 209, 164, 0.3);
  border-radius: 2px;
  background:
    radial-gradient(circle at 12% -8%, rgba(150, 109, 187, 0.27), transparent 42%),
    radial-gradient(circle at 100% 108%, rgba(167, 119, 122, 0.12), transparent 40%),
    linear-gradient(145deg, #241630 0%, #1a1027 55%, #140c1f 100%);
  color: var(--cream);
  box-shadow:
    0 40px 120px rgba(4, 2, 10, 0.74),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  scrollbar-color: rgba(234, 209, 164, 0.3) transparent;
  scrollbar-width: thin;
}

.download-dialog::-webkit-scrollbar {
  width: 6px;
}

.download-dialog::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(234, 209, 164, 0.26);
}

.download-dialog::backdrop {
  background: rgba(7, 4, 13, 0.74);
  backdrop-filter: blur(12px) saturate(0.82);
}

.download-dialog[open] {
  animation: dialog-in 0.45s var(--ease-out) both;
}

.download-dialog[open]::backdrop {
  animation: veil-in 0.45s ease both;
}

.download-dialog__inner {
  position: relative;
  padding: clamp(32px, 4.4vw, 56px) clamp(26px, 4.6vw, 58px)
    clamp(28px, 3.4vw, 42px);
}

.download-dialog__inner::before {
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(247, 234, 214, 0.09);
  content: "";
  pointer-events: none;
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(247, 234, 214, 0.18);
  border-radius: 50%;
  background: rgba(11, 6, 18, 0.22);
  color: var(--cream);
  cursor: pointer;
  transition:
    border-color 0.3s ease,
    background-color 0.3s ease,
    transform 0.3s var(--ease-out);
}

.dialog-close svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.3;
}

.dialog-close:hover {
  transform: rotate(90deg);
  border-color: rgba(234, 209, 164, 0.55);
  background: rgba(234, 209, 164, 0.08);
}

.dialog-close:focus-visible {
  outline: 1px solid var(--gold-bright);
  outline-offset: 3px;
}

.eyebrow--modal {
  font-size: 8.5px;
  animation: none;
}

.download-dialog--soon {
  width: min(700px, calc(100vw - 32px));
}

.download-dialog__inner--soon::after {
  position: absolute;
  top: 68px;
  right: clamp(28px, 4.8vw, 58px);
  color: rgba(234, 209, 164, 0.1);
  content: "✦";
  font-family: var(--font-display);
  font-size: 82px;
  font-weight: 500;
  line-height: 1;
  pointer-events: none;
}

.download-title {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 17px 0 0;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(39px, 5.1vw, 58px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0.002em;
}

.download-title em {
  color: var(--gold);
  font-weight: 500;
}

.download-lede {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--cream-soft);
  font-size: 12.5px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(23px, 3.2vh, 30px);
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid rgba(247, 234, 214, 0.14);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  color: var(--cream-soft);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.platform-chip svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: var(--gold);
}

.platform-chip__status {
  margin-left: 2px;
  padding-left: 10px;
  border-left: 1px solid rgba(247, 234, 214, 0.16);
  color: var(--gold);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.download-dialog--soon .download-footnote {
  margin-top: clamp(25px, 3.6vh, 34px);
  margin-bottom: 2px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(22px, 3.2vh, 30px);
}

.store-card {
  padding: 18px 18px 15px;
  border: 1px solid rgba(247, 234, 214, 0.12);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
}

.store-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.store-card__icon {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(234, 209, 164, 0.27);
  border-radius: 50%;
  color: var(--gold);
}

.store-card__icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.store-card__label {
  margin: 0;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.05;
}

.store-card__sub {
  margin: 3px 0 0;
  color: var(--cream-muted);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.qr-placeholder {
  position: relative;
  width: min(100%, 184px);
  margin: 17px auto 13px;
  padding: 10px;
  background: #f8f2e6;
  box-shadow: 0 14px 28px rgba(5, 2, 11, 0.24);
}

.qr-placeholder::after {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 32px;
  height: 32px;
  content: "✦";
  transform: translate(-50%, -50%);
  place-items: center;
  border: 5px solid #f8f2e6;
  border-radius: 50%;
  background: #21142f;
  color: #f8f2e6;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1;
}

.qr-placeholder.is-live::after {
  display: none;
}

.qr-placeholder.is-live {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.qr-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.qr-art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.qr-image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.qr-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  z-index: 1;
  padding: 6px 4px 5px;
  border: 1px solid rgba(234, 209, 164, 0.48);
  background: rgba(27, 16, 41, 0.96);
  color: var(--gold-bright);
  font-size: 7.5px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.store-card__note {
  margin: 0;
  color: rgba(255, 248, 238, 0.42);
  font-size: 7.5px;
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.download-footnote {
  margin: clamp(17px, 2.3vh, 22px) 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(247, 234, 214, 0.08);
  color: rgba(255, 248, 238, 0.5);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.6;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@keyframes art-breathe {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.065);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes character-in {
  from {
    opacity: 0;
    translate: 0 20px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes status-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(234, 209, 164, 0);
  }
  35% {
    box-shadow: 0 0 0 4px rgba(234, 209, 164, 0.1);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(234, 209, 164, 0);
  }
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes veil-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .hero__copy {
    width: min(560px, 52vw);
  }

  .character-stage {
    right: 1.5vw;
    height: min(71vh, 760px);
  }

  .daybar {
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
  }

  .daybar__heading {
    display: none;
  }
}

@media (max-width: 900px) and (min-width: 761px) {
  .hero__copy {
    width: 56vw;
  }

  .title {
    font-size: clamp(62px, 7.4vw, 82px);
  }

  .intro {
    max-width: 350px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .release {
    flex-direction: row;
    gap: 6px;
    align-items: baseline;
    padding-left: 0;
    border-left: 0;
  }

  .character-stage {
    right: -8vw;
    height: 64vh;
    opacity: 0.9;
  }

  .daybar {
    grid-template-columns: minmax(0, 1.4fr) minmax(250px, 1fr);
    gap: 20px;
  }
}

@media (max-height: 720px) and (min-width: 761px) {
  .page {
    min-height: 540px;
    padding-top: 17px;
  }

  .hero {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .title {
    font-size: clamp(56px, 6.5vw, 88px);
  }

  .tagline {
    font-size: min(2vw, 22px);
  }

  .intro {
    display: none;
  }

  .hero__actions {
    margin-top: 20px;
  }

  .character-stage {
    bottom: 118px;
    height: 68vh;
  }

  .daybar {
    padding-top: 10px;
  }

  .day-tab {
    min-height: 52px;
  }

  .day-tab__name {
    font-size: 21px;
  }

  .daybar__title {
    font-size: 19px;
  }

  .day-panel {
    min-height: 52px;
  }

  .day-panel__copy {
    font-size: 11px;
  }

  .footer {
    padding-top: 6px;
    padding-bottom: 8px;
  }
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .page {
    display: flex;
    height: auto;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    flex-direction: column;
    padding: max(18px, env(safe-area-inset-top)) 21px 0;
  }

  .page > * {
    min-width: 0;
    max-width: 100%;
  }

  .topbar,
  .hero,
  .daybar,
  .footer {
    width: 100%;
  }

  .art__image {
    object-position: 60% 42%;
  }

  .art__veil {
    background:
      linear-gradient(
        180deg,
        rgba(15, 8, 26, 0.76) 0%,
        rgba(16, 9, 28, 0.57) 28%,
        rgba(16, 9, 28, 0.44) 55%,
        rgba(13, 7, 23, 0.9) 100%
      ),
      linear-gradient(
        90deg,
        rgba(15, 8, 26, 0.62) 0%,
        rgba(15, 8, 26, 0.18) 62%,
        rgba(15, 8, 26, 0.38) 100%
      );
  }

  .art__vignette {
    background: radial-gradient(ellipse at 68% 38%, transparent 15%, rgba(12, 6, 22, 0.4) 100%);
  }

  .topbar {
    flex: 0 0 auto;
    align-items: flex-start;
    padding-bottom: 0;
  }

  .brand {
    gap: 8px;
    margin-top: 11px;
  }

  .brand__star {
    width: 12px;
    height: 12px;
  }

  .brand__name {
    font-size: 12px;
    letter-spacing: 0.22em;
  }

  .status {
    display: none;
  }

  .topbar__actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }

  .button--nav {
    order: 1;
    width: 146px;
    height: 38px;
    font-size: 8px;
    letter-spacing: 0.2em;
  }

  .partner-link {
    order: 2;
    gap: 5px;
    padding: 5px 8px;
    border: 1px solid rgba(247, 234, 214, 0.1);
    background: rgba(14, 8, 24, 0.58);
    text-shadow: 0 1px 8px rgba(10, 5, 18, 0.8);
    backdrop-filter: blur(5px);
  }

  .partner-link::before {
    width: 3px;
    height: 3px;
  }

  .partner-link__name {
    font-size: 12px;
  }

  .partner-link__meta {
    font-size: 6.5px;
    letter-spacing: 0.14em;
  }

  .partner-link__meta::before {
    margin-right: 4px;
  }

  .partner-link__arrow {
    width: 9px;
    height: 9px;
  }

  .hero {
    position: relative;
    display: block;
    flex: 1 0 auto;
    padding: clamp(34px, 7.5vh, 72px) 0 14px;
  }

  .hero::before {
    position: absolute;
    z-index: 0;
    inset: 0 -21px;
    content: "";
    background:
      linear-gradient(
        90deg,
        rgba(12, 7, 22, 0.58) 0%,
        rgba(12, 7, 22, 0.45) 56%,
        rgba(12, 7, 22, 0.25) 86%,
        rgba(12, 7, 22, 0.12) 100%
      ),
      linear-gradient(180deg, rgba(12, 7, 22, 0.08), rgba(12, 7, 22, 0.4));
    pointer-events: none;
  }

  .hero__copy {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 470px;
    padding-bottom: 0;
  }

  .eyebrow {
    gap: 9px;
    font-size: 8px;
    letter-spacing: 0.22em;
  }

  .eyebrow__line {
    width: 24px;
  }

  .title {
    margin: 0.18em 0 0.16em -0.02em;
    font-size: clamp(54px, 17.2vw, 84px);
    line-height: 0.79;
    white-space: normal;
    text-shadow:
      0 2px 20px rgba(12, 6, 22, 0.46),
      0 18px 48px rgba(12, 6, 22, 0.35);
  }

  .title__accent {
    display: block;
  }

  .tagline {
    max-width: 310px;
    font-size: clamp(18px, 5.1vw, 22px);
    line-height: 1.3;
  }

  .intro {
    max-width: 292px;
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.62;
  }

  .hero__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 22px;
  }

  .button--primary {
    width: 242px;
    height: 57px;
    font-size: 9.5px;
  }

  .release {
    flex-direction: row;
    gap: 6px;
    align-items: baseline;
    padding-left: 0;
    border-left: 0;
  }

  .release__kicker {
    font-size: 7.5px;
  }

  .release__stores {
    font-size: 12px;
  }

  .character-stage {
    top: 5vh;
    right: -22vw;
    bottom: auto;
    height: 54vh;
    opacity: 0.32;
    animation-name: fade-in;
  }

  .character-stage::before {
    display: none;
  }

  .character-stage__halo {
    width: 80vw;
    opacity: 0.72;
  }

  .daybar {
    flex: 0 0 auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: auto;
    padding: 13px 0 9px;
    background: linear-gradient(180deg, rgba(16, 9, 28, 0.12), rgba(16, 9, 28, 0.54));
    backdrop-filter: blur(4px);
  }

  .daybar__heading {
    display: none;
  }

  .day-tabs {
    order: 1;
  }

  .day-tab {
    min-height: 52px;
    padding: 2px 8px 3px 12px;
  }

  .day-tab__index {
    font-size: 7.5px;
  }

  .day-tab__name {
    margin: 3px 0 2px;
    font-size: clamp(20px, 6vw, 24px);
  }

  .day-tab__phase {
    font-size: 7.5px;
    letter-spacing: 0.2em;
  }

  .day-panel {
    order: 2;
    min-width: 0;
    min-height: 0;
    gap: 6px;
    padding: 9px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .day-panel__copy {
    max-width: none;
    font-size: 11px;
    line-height: 1.55;
  }

  .day-panel__stats {
    font-size: 7.5px;
    letter-spacing: 0.12em;
  }

  .footer {
    flex: 0 0 auto;
    gap: 12px;
    padding: 7px 0 max(9px, env(safe-area-inset-bottom));
    font-size: 7px;
    letter-spacing: 0.14em;
  }

  .footer__note {
    display: none;
  }

  .download-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    max-height: calc(100svh - 20px);
  }

  .download-dialog__inner {
    padding: 32px 20px 26px;
  }

  .download-dialog__inner::before {
    inset: 7px;
  }

  .download-dialog__inner--soon::after {
    display: none;
  }

  .dialog-close {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
  }

  .download-title {
    padding-right: 26px;
    font-size: clamp(34px, 10.8vw, 47px);
  }

  .download-title br {
    display: none;
  }

  .download-lede {
    margin-top: 14px;
    font-size: 11.5px;
  }

  .platform-row {
    gap: 8px;
    margin-top: 20px;
  }

  .platform-chip {
    gap: 7px;
    padding: 8px 10px;
    font-size: 7px;
    letter-spacing: 0.12em;
  }

  .platform-chip svg {
    width: 13px;
    height: 13px;
  }

  .platform-chip__status {
    margin-left: 0;
    padding-left: 8px;
    font-size: 6.5px;
  }

  .download-dialog--soon .download-footnote {
    margin-top: 22px;
  }

  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 20px;
  }

  .store-card {
    padding: 12px 10px 11px;
  }

  .store-card__head {
    gap: 8px;
  }

  .store-card__icon {
    width: 28px;
    height: 28px;
  }

  .store-card__icon svg {
    width: 14px;
    height: 14px;
  }

  .store-card__label {
    font-size: 17px;
  }

  .store-card__sub {
    font-size: 6.5px;
    letter-spacing: 0.13em;
  }

  .qr-placeholder {
    margin: 12px auto 10px;
    padding: 7px;
  }

  .qr-placeholder::after {
    width: 26px;
    height: 26px;
    border-width: 4px;
    font-size: 14px;
  }

  .qr-badge {
    right: 5px;
    bottom: 5px;
    left: 5px;
    padding: 5px 3px 4px;
    font-size: 6.5px;
    letter-spacing: 0.12em;
  }

  .store-card__note {
    font-size: 6.5px;
    letter-spacing: 0.12em;
  }

  .download-footnote {
    margin-top: 16px;
    padding-top: 12px;
    font-size: 8px;
  }
}

@media (max-width: 390px) {
  .page {
    padding-right: 17px;
    padding-left: 17px;
  }

  .character-stage {
    right: -30vw;
    opacity: 0.34;
  }

  .intro {
    max-width: 260px;
  }

  .button--primary {
    width: 230px;
    height: 54px;
  }

  .store-card__label {
    font-size: 15px;
  }

  .store-card__sub {
    font-size: 5.5px;
  }
}

@media (max-width: 550px) {
  .store-grid {
    grid-template-columns: 1fr;
  }

  .qr-placeholder {
    width: min(100%, 164px);
  }
}

@media (max-height: 680px) and (max-width: 760px) {
  .page {
    padding-top: max(10px, env(safe-area-inset-top));
  }

  .hero {
    padding-top: 28px;
  }

  .footer {
    padding-top: 5px;
    padding-bottom: max(7px, env(safe-area-inset-bottom));
  }
}

@media (max-height: 580px) and (max-width: 760px) {
  .hero {
    padding-top: 25px;
  }

  .intro {
    display: none;
  }

  .hero__actions {
    margin-top: 16px;
  }

  .character-stage {
    opacity: 0.28;
  }
}

@media (max-height: 600px) {
  body {
    overflow-y: auto;
  }

  .page {
    height: auto;
    min-height: 600px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .art__motes {
    display: none;
  }
}
