/* Landing page. Loaded after shared/platform.css, which every game also uses: nothing here may leak into the games,
 * and the colours and shapes of the shared controls (buttons, focus ring, dialogs, logo text) now live there, so the
 * landing and the games match. This file holds what only the landing has.
 * Look: night ink, one hot yellow (the CTA, progress, today), one cyan for HUD lines. Angular panels cut with
 * clip-path. No gradients on text, no blur glass, no emoji. System fonts for CJK; Chakra Petch (self-hosted,
 * Google Fonts is unreachable in mainland China) for Latin, Thai and Vietnamese display text. */

@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/chakra-petch-vietnamese-500-normal.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/chakra-petch-thai-500-normal.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/chakra-petch-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/chakra-petch-vietnamese-700-normal.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/chakra-petch-thai-700-normal.woff2) format('woff2');
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC;
}
@font-face {
  font-family: 'Chakra Petch';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/chakra-petch-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #070a15;
  --bg-2: #0d1226;
  --panel: rgba(13, 19, 40, 0.92);
  --panel-solid: #0e1430;
  --line: rgba(150, 180, 255, 0.16);
  --edge: rgba(130, 165, 255, 0.3);
  --text: #f1f4ff;
  --muted: #9aa5c9;
  --accent: #ffd043; /* yuzu */
  --accent-2: #35d6ee; /* cyan */
  --hot: #ff6b7a;
  --good: #48e3a2;
  --ink: #0a0d1c;
  --display: 'Chakra Petch', var(--font);
  --track: 0.14em;
  --wrap: 1224px;
}
/* wide letter-spacing and capitals belong to Latin type; CJK and Thai get a light touch */
:lang(ja),
:lang(ko),
:lang(zh-CN),
:lang(zh-TW),
:lang(th) {
  --track: 0.04em;
}

[hidden] {
  display: none !important;
}
body {
  background: var(--bg);
  min-height: 100%;
}
/* ---------- shared pieces ---------- */

/* Angular panel: a 1px border on a clipped shape is drawn as an outer layer plus an inset fill. */
.cut,
.who {
  --c: 12px;
  --fill: var(--panel-solid);
  position: relative;
  isolation: isolate;
  background: var(--edge);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.cut::before,
.who::before {
  content: '';
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: var(--fill);
  clip-path: polygon(calc(var(--c) - 0.6px) 0, 100% 0, 100% calc(100% - var(--c) + 0.6px), calc(100% - var(--c) + 0.6px) 100%, 0 100%, 0 calc(var(--c) - 0.6px));
}

.label {
  margin: 0;
  font: 500 0.72rem/1.2 var(--display);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--muted);
}
:lang(vi) .label,
:lang(vi) .eyebrow,
:lang(vi) .tags span,
:lang(vi) .badge,
:lang(vi) .go,
:lang(vi) .hero h1,
:lang(vi) .sec-head h2 {
  text-transform: none;
}

/* buttons: shape, yellow primary and focus ring now come from shared/platform.css (same look in every game);
 * the landing only adds the display font and a flat hover */
.btn {
  font-family: var(--display);
  letter-spacing: 0.03em;
}
.btn.primary:hover {
  filter: none;
  background: #ffe07e;
}
.btn.big {
  min-height: 64px;
  padding: 16px 28px 16px 34px;
  gap: 16px;
  font-size: 1.3rem;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.btn .chev {
  width: 22px;
  height: 22px;
  flex: none;
  transition: transform 0.15s ease;
}
.btn:hover .chev {
  transform: translateX(5px);
}
/* ---------- header ---------- */

.top {
  width: min(100% - 56px, var(--wrap));
  margin: 0 auto;
  padding: 18px 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand .mark {
  width: 38px;
  height: 38px;
  flex: none;
  margin: -3px 0;
}
.brand .word {
  font: 700 1.55rem/1 var(--display);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.who {
  --c: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  color: var(--muted);
  font-size: 0.86rem;
}
.who .dot {
  width: 11px;
  height: 11px;
  background: var(--accent);
  border-radius: 0;
  flex: none;
}
.who .lv {
  font: 700 0.78rem/1 var(--display);
  color: var(--ink);
  background: var(--accent);
  padding: 3px 7px;
}
.who .lv:empty {
  display: none;
}

/* ---------- hero ---------- */

main {
  display: block;
}
.hero {
  --px: 0;
  --py: 0;
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 20px 24px;
  align-items: center;
  min-height: min(790px, calc(100vh - 76px));
  min-height: min(790px, calc(100svh - 76px));
  padding: 10px max(28px, calc((100% - var(--wrap)) / 2)) 54px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.bg-slab {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(56%, 820px);
  background: linear-gradient(180deg, #112052, #0a1130);
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
  transform: translate(calc(var(--px) * -10px), calc(var(--py) * -6px));
}
.bg-slab.b {
  background: var(--accent-2);
  clip-path: polygon(24% 0, calc(24% + 7px) 0, 7px 100%, 0 100%);
  transform: translate(calc(var(--px) * -18px), calc(var(--py) * -10px));
}
.bg-num {
  position: absolute;
  right: 3%;
  bottom: -6%;
  font: 700 clamp(11rem, 33vw, 29rem) / 0.8 var(--display);
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(53, 214, 238, 0.22);
  transform: translate(calc(var(--px) * -26px), calc(var(--py) * -16px));
  user-select: none;
}
.bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(150, 180, 255, 0.24) 1.3px, transparent 1.6px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000 80%);
  mask-image: linear-gradient(90deg, transparent 38%, #000 80%);
  transform: translate(calc(var(--px) * -5px), calc(var(--py) * -3px));
}
.bg-cross {
  position: absolute;
  width: 16px;
  height: 16px;
  color: var(--accent);
  animation: drift 9s ease-in-out infinite alternate;
}
.bg-cross::before,
.bg-cross::after {
  content: '';
  position: absolute;
  background: currentColor;
}
.bg-cross::before {
  left: 6px;
  top: 0;
  width: 4px;
  height: 16px;
}
.bg-cross::after {
  left: 0;
  top: 6px;
  width: 16px;
  height: 4px;
}
.bg-cross.c1 {
  left: 48%;
  top: 14%;
}
.bg-cross.c2 {
  right: 7%;
  top: 56%;
  color: var(--accent-2);
  animation-delay: -3s;
}
.bg-cross.c3 {
  left: 6%;
  bottom: 12%;
  color: var(--accent-2);
  animation-delay: -6s;
  opacity: 0.6;
}
@keyframes drift {
  to {
    transform: translate(10px, -14px) rotate(45deg);
  }
}
@keyframes spin {
  to {
    rotate: 360deg;
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font: 500 0.82rem/1 var(--display);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--accent-2);
}
.pulse {
  width: 9px;
  height: 9px;
  background: var(--good);
  animation: blink 1.6s steps(2, jump-none) infinite;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}
.hero h1 {
  margin: 0;
  max-width: 9.5em;
  font: 700 clamp(2.7rem, 6.1vw, 5.5rem) / 0.96 var(--display);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
/* uppercase only where capitals exist and read well */
:lang(ja) .hero h1,
:lang(ko) .hero h1,
:lang(zh-CN) .hero h1,
:lang(zh-TW) .hero h1,
:lang(th) .hero h1,
:lang(ja) .sec-head h2,
:lang(ko) .sec-head h2,
:lang(zh-CN) .sec-head h2,
:lang(zh-TW) .sec-head h2,
:lang(th) .sec-head h2 {
  text-transform: none;
}
:lang(ja) .hero h1,
:lang(ko) .hero h1,
:lang(zh-CN) .hero h1,
:lang(zh-TW) .hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.6rem);
  line-height: 1.12;
  letter-spacing: 0;
}
:lang(th) .hero h1,
:lang(vi) .hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: 1.22;
}
.hero .sub {
  margin: 20px 0 28px;
  max-width: 30em;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.55;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.qk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 12px;
  color: var(--text);
  text-decoration: none;
  font: 700 0.9rem/1.2 var(--display);
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid hsl(var(--h, 200) 90% 62%);
  transition: background 0.12s ease, transform 0.12s ease;
}
.qk:hover,
.qk:focus-visible {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-2px);
}

/* ---------- daily check-in ---------- */

.checkin {
  --c: 12px;
  width: min(100%, 540px);
  margin-top: 26px;
  padding: 13px 15px 15px;
}
.ci-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.ci-streak {
  margin: 0;
  font: 700 0.84rem/1.2 var(--display);
  color: var(--accent);
}
.days {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.days > li {
  display: contents;
}
.day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  aspect-ratio: 1 / 1.1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-family: var(--display);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
}
.day .n {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.day .xp {
  font-size: 0.98rem;
  font-weight: 700;
}
.day .tick {
  display: none;
  width: 20px;
  height: 20px;
}
.day.done {
  background: var(--accent);
  color: var(--ink);
}
.day.done .n {
  color: rgba(10, 13, 28, 0.7);
}
.day.done .xp {
  display: none;
}
.day.done .tick {
  display: block;
}
.day.big:not(.done) .xp {
  color: var(--hot);
}
.day.today {
  background: rgba(255, 208, 67, 0.12);
  box-shadow: inset 0 0 0 2px var(--accent);
  cursor: pointer;
  animation: nudge 1.8s ease-in-out infinite;
}
.day.today:hover {
  background: rgba(255, 208, 67, 0.28);
}
.day.today::after {
  content: '!';
  position: absolute;
  top: 3px;
  right: 6px;
  font: 700 0.8rem/1 var(--display);
  color: var(--accent);
}
.day.today:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: -5px;
}
@keyframes nudge {
  50% {
    transform: translateY(-3px);
  }
}

/* ---------- stage: Yuzu ---------- */

.stage {
  position: relative;
  z-index: 1;
  align-self: end;
  justify-self: center;
  width: min(100%, 560px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stage::before,
.stage::after {
  content: '';
  position: absolute;
  left: 50%;
  translate: -50% 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.stage::before {
  top: 1%;
  width: 96%;
  aspect-ratio: 1;
  border: 2px dashed rgba(255, 208, 67, 0.5);
  animation: spin 90s linear infinite;
}
.stage::after {
  top: 9%;
  width: 78%;
  aspect-ratio: 1;
  border: 2px solid rgba(53, 214, 238, 0.35);
  border-right-color: transparent;
  border-bottom-color: transparent;
  animation: spin 40s linear infinite reverse;
}
.stage-bg {
  display: none;
}
.figure {
  position: relative;
  z-index: 1;
  width: min(100%, calc((100vh - 230px) * 0.8));
  width: min(100%, calc((100svh - 230px) * 0.8));
  min-width: 260px;
  aspect-ratio: 4 / 5;
}
.figure svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  /* no filter here: a blur on an SVG that moves every frame is re-computed every frame (costly on cheap phones) */
}
.pat,
.poke {
  position: absolute;
  z-index: 2;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.pat {
  left: 15%;
  top: 11%;
  width: 70%;
  height: 52%;
  border-radius: 46%;
}
.poke {
  left: 22%;
  top: 64%;
  width: 56%;
  height: 34%;
  border-radius: 20%;
}
.pat:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}
.fx {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: visible;
}
.spark {
  position: absolute;
  width: var(--s, 14px);
  height: var(--s, 14px);
  margin: calc(var(--s, 14px) / -2) 0 0 calc(var(--s, 14px) / -2);
  background: var(--c, var(--accent));
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 2px rgba(7, 10, 21, 0.9));
  animation: spark 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes spark {
  from {
    opacity: 1;
    transform: translate(0, 0) rotate(0) scale(0.4);
  }
  to {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(var(--r, 90deg)) scale(1.1);
  }
}
.gain {
  position: absolute;
  font: 700 1.05rem/1 var(--display);
  color: var(--accent);
  white-space: nowrap;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
  animation: gain 1.1s ease-out forwards;
}
@keyframes gain {
  from {
    opacity: 0;
    transform: translate(-50%, 6px);
  }
  15% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translate(-50%, -46px);
  }
}
.levelburst {
  position: absolute;
  left: 50%;
  top: 36%;
  width: 40%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 3px solid var(--accent);
  border-radius: 50%;
  animation: burst 0.9s ease-out forwards;
}
@keyframes burst {
  from {
    opacity: 1;
    transform: scale(0.4);
  }
  to {
    opacity: 0;
    transform: scale(2.4);
  }
}

.bubble {
  --c: 12px;
  --edge: var(--accent);
  --fill: #0b1030;
  position: absolute;
  z-index: 4;
  left: -56px;
  top: 3%;
  width: min(250px, 60%);
  padding: 11px 16px 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.bubble.on {
  opacity: 1;
  transform: none;
}
.bubble .tag {
  display: inline-block;
  margin-bottom: 5px;
  padding: 2px 8px;
  font: 700 0.7rem/1.3 var(--display);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent);
}
.bubble p {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.42;
  color: var(--text);
}
.bubble .rest {
  visibility: hidden;
}
.tip {
  position: absolute;
  z-index: 3;
  right: 0;
  top: 15%;
  margin: 0;
  padding: 6px 11px;
  font: 500 0.72rem/1.2 var(--display);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent-2);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  animation: nudge 1.8s ease-in-out infinite;
  pointer-events: none;
}
.tip.gone {
  display: none;
}

.hud {
  --c: 12px;
  position: relative;
  z-index: 3;
  width: calc(100% - 8px);
  margin-top: -18px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 11px 14px;
  align-items: center;
}
.lvl {
  padding: 5px 11px;
  font: 700 1.1rem/1 var(--display);
  color: var(--ink);
  background: var(--accent);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.bond {
  grid-column: 2 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
}
.bar i {
  display: block;
  width: var(--p, 0%);
  height: 100%;
  background: var(--accent);
  transition: width 0.5s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.num {
  min-width: 4.4em;
  text-align: right;
  font: 500 0.76rem/1 var(--display);
  color: var(--muted);
}
.looks {
  grid-column: 1 / 3;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
.look,
.snd {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  color: var(--text);
  cursor: pointer;
  touch-action: manipulation;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.look {
  background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.18);
}
.look[aria-pressed='true'] {
  box-shadow: inset 0 0 0 3px var(--accent);
}
.look.locked {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  cursor: not-allowed;
}
.look svg {
  position: absolute;
  inset: 5px;
  width: 22px;
  height: 22px;
}
.look.locked svg {
  color: var(--muted);
}
.look:focus-visible,
.snd:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: -5px;
}
.looks .gap {
  flex: 1;
}
.snd {
  grid-column: 3;
  justify-self: end;
  background: rgba(255, 255, 255, 0.08);
}
.snd svg {
  width: 20px;
  height: 20px;
  margin: 6px;
}
.snd .w {
  display: none;
}
.snd[aria-pressed='true'] .w {
  display: inline;
}
.snd[aria-pressed='true'] .x {
  display: none;
}
.snd[aria-pressed='true'] {
  background: var(--accent);
  color: var(--ink);
}

/* ---------- the character ---------- */

.yuzu {
  --hoodie: #f2f5ff;
  --hoodie-shade: #c3cdee;
  --trim: #22c7e6;
  --skin: #ffe4d2;
  --skin-shade: #f4bfa6;
  --ink: #2b2030;
}
.stage[data-outfit='cyan'] .yuzu {
  --hoodie: #26c3e0;
  --hoodie-shade: #168faa;
  --trim: #ffd043;
}
.stage[data-outfit='coral'] .yuzu {
  --hoodie: #ff6f7d;
  --hoodie-shade: #d64a5c;
  --trim: #fff3d6;
}
.stage[data-outfit='ink'] .yuzu {
  --hoodie: #2a3366;
  --hoodie-shade: #1a2148;
  --trim: #35d6ee;
}
.yuzu .c-hoodie {
  fill: var(--hoodie);
}
.yuzu .c-hoodie-shade {
  fill: var(--hoodie-shade);
}
.yuzu .c-trim {
  fill: var(--trim);
}
.yuzu .c-skin {
  fill: var(--skin);
}
.yuzu .c-skin-shade {
  fill: var(--skin-shade);
}
.yuzu .s-hoodie {
  stroke: var(--hoodie);
}
.yuzu .s-hoodie-shade {
  stroke: var(--hoodie-shade);
}
.yuzu .s-trim {
  stroke: var(--trim);
}
.yuzu .c-string {
  stroke: var(--hoodie-shade);
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
}
.yuzu .c-trim-line {
  stroke: var(--trim);
  stroke-width: 5;
  fill: none;
  stroke-linecap: round;
}
.yuzu .ol {
  stroke: var(--ink);
  stroke-width: 3.5;
  stroke-linejoin: round;
}
.yuzu .ol-thin {
  stroke: var(--ink);
  stroke-width: 2.5;
  stroke-linejoin: round;
}
.yuzu .ol-line {
  stroke: var(--ink);
  stroke-width: 3.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.yuzu .strand {
  stroke: #c98414;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
}
/* expressions: rig.js only sets data-mood on the svg */
.yuzu .eye-happy,
.yuzu .mouth-open,
.yuzu .mouth-o,
.yuzu .acc {
  display: none;
}
.yuzu[data-ears] .acc-ears {
  display: inline;
}
.yuzu[data-mood='happy'] .eye-open,
.yuzu[data-mood='shy'] .eye-open {
  display: none;
}
.yuzu[data-mood='happy'] .eye-happy,
.yuzu[data-mood='shy'] .eye-happy {
  display: inline;
}
.yuzu[data-mood='happy'] .mouth-smile {
  display: none;
}
.yuzu[data-mood='happy'] .mouth-open {
  display: inline;
}
.yuzu[data-mood='surprised'] .mouth-smile {
  display: none;
}
.yuzu[data-mood='surprised'] .mouth-o {
  display: inline;
}
.yuzu[data-mood='happy'] [data-part='blush'] ellipse,
.yuzu[data-mood='shy'] [data-part='blush'] ellipse {
  opacity: 0.85;
}

/* ---------- games ---------- */

.games {
  width: min(100% - 56px, var(--wrap));
  margin: 0 auto;
  padding: 26px 0 28px;
}
.sec-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 22px;
}
.sec-head h2 {
  margin: 0;
  font: 700 clamp(1.6rem, 3vw, 2.3rem) / 1.1 var(--display);
  text-transform: uppercase;
}
.sec-head .rule {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--edge), transparent);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 18px;
}
.card {
  --c: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.card.live {
  --fill: #101736;
}
a.card:hover,
a.card:focus-visible {
  --edge: var(--accent);
  transform: translateY(-4px);
}
a.card:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: -6px;
}
.card .art {
  position: relative;
  height: 172px;
  overflow: hidden;
  background: linear-gradient(160deg, hsl(var(--h) 58% 24%), hsl(var(--h) 62% 9%));
}
.card .art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}
a.card:hover .art svg {
  transform: scale(1.07) translateX(-2%);
}
.card .body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  padding: 15px 18px 16px;
}
.card h3 {
  margin: 0;
  font: 700 1.5rem/1.15 var(--display);
  overflow-wrap: anywhere;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
}
.tags span {
  padding: 3px 8px;
  font: 500 0.68rem/1.3 var(--display);
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--edge);
}
.badge {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  padding: 6px 12px 6px 18px;
  font: 700 0.72rem/1.2 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%);
}
.badge.soon {
  background: #2a3358;
  color: var(--muted);
}
.best {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  padding: 5px 12px 5px 14px;
  font: 700 0.78rem/1.2 var(--display);
  color: var(--accent);
  background: rgba(7, 10, 21, 0.86);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 100%, 0 100%);
}
.go {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  font: 700 0.82rem/1 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.go svg {
  width: 18px;
  height: 18px;
  transition: transform 0.15s ease;
}
a.card:hover .go svg {
  transform: translateX(5px);
}
.card.soon {
  --fill: #0c1129;
}
.card.soon .art {
  filter: saturate(0.25);
}
.card.soon h3 {
  color: #c6cdea;
}
.empty {
  text-align: center;
  color: var(--muted);
}

.foot {
  width: min(100% - 56px, var(--wrap));
  margin: 0 auto;
  padding: 18px 0 36px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
  border-top: 1px solid var(--line);
}
.foot p {
  margin: 0 0 8px;
  max-width: 62em;
}

/* ---------- narrower screens ---------- */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 14px;
    padding-top: 2px;
    padding-bottom: 36px;
  }
  .stage {
    order: -1;
    width: min(100%, 460px);
    margin-bottom: 40px;
  }
  .figure {
    width: min(100%, 360px, calc((100vh - 340px) * 0.8));
    width: min(100%, 360px, calc((100svh - 340px) * 0.8));
    min-width: 220px;
  }
  /* one backdrop per stage instead of the desktop slab: it ends exactly where the stage ends */
  .bg-slab,
  .bg-num,
  .bg-dots {
    display: none;
  }
  .stage-bg {
    display: block;
    position: absolute;
    z-index: -1;
    top: -4px;
    bottom: -48px;
    left: 50%;
    width: 100vw;
    translate: -50% 0;
    background: radial-gradient(rgba(150, 180, 255, 0.22) 1.3px, transparent 1.6px) 0 0 / 24px 24px, linear-gradient(180deg, #112052, #0a1130);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 38px), 0 100%);
  }
  .stage-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-2);
    clip-path: polygon(0 calc(100% - 7px), 100% calc(100% - 45px), 100% calc(100% - 38px), 0 100%);
  }
  .hero-copy {
    align-items: stretch;
  }
  .hero .sub {
    max-width: none;
  }
  .btn.big {
    width: 100%;
    justify-content: space-between;
  }
  .checkin {
    width: 100%;
  }
  /* on a narrow stage the bubble covers her body, not her face */
  .bubble {
    left: 0;
    top: auto;
    bottom: 104px; /* sits right above the HUD, over her body, whatever the number of lines */
    width: 100%;
  }
  .hero .sub {
    margin: 14px 0 20px;
  }
}
@media (max-width: 700px) {
  .who {
    display: none;
  }
  /* brand and language on the first row, the account buttons on their own row */
  .top {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .tools {
    display: contents;
  }
  .brand {
    order: 1;
    margin-right: auto;
  }
  .lang {
    order: 2;
  }
  .acct {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
  .top,
  .games,
  .foot {
    width: min(100% - 32px, var(--wrap));
  }
  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }
  .brand .word {
    font-size: 1.35rem;
  }
}
@media (max-width: 560px) {
  .stage {
    margin-bottom: 30px;
  }
  .eyebrow {
    margin-bottom: 10px;
  }
  .figure {
    width: min(100%, 272px, calc((100vh - 340px) * 0.8));
    width: min(100%, 272px, calc((100svh - 340px) * 0.8));
  }
  .card .art {
    height: 144px;
  }
}
@media (max-width: 430px) {
  .hud {
    padding: 11px 12px;
  }
  .num {
    min-width: 3.6em;
  }
  .days {
    gap: 4px;
  }
  .day .xp {
    font-size: 0.86rem;
  }
  .tip {
    right: -4px;
  }
}

/* platform.css stops animations with "*", which does not reach pseudo-elements: the stage rings are handled here */
@media (prefers-reduced-motion: reduce) {
  .stage::before,
  .stage::after {
    animation: none !important;
  }
}
