/* RiseOn Game Studio — brand tokens from RiseOnLogo.ai */
:root {
  --yellow: #f9de0b;
  --amber: #f6ad13;
  --orange: #f27d1c;
  --red: #ef4c24;
  --ink: #231f20;
  --white: #ffffff;

  --bg: #111111;
  --bg-alt: #171516;
  --surface: #1d1a1b;
  --surface-2: #231f20;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f2f2;
  --muted: #a9a3a4;

  --grad: linear-gradient(135deg, var(--yellow) 0%, var(--amber) 28%, var(--orange) 55%, var(--red) 100%);
  --grad-h: linear-gradient(90deg, var(--yellow), var(--red));

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1200px;
  --header-h: 72px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--safe-top) + 12px); }
:root { --safe-top: env(safe-area-inset-top, 0px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* never wider than the phone (clip, unlike hidden, keeps the sticky character strip working) */
}
html { overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-weight: 900; }
h2 { font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-weight: 600; font-size: 1.15rem; }
p { margin: 0 0 1em; }
strong { color: var(--white); font-weight: 600; }

.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--yellow); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; line-height: 1;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--grad); color: var(--ink); box-shadow: 0 8px 30px -8px rgba(239, 76, 36, .55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -8px rgba(239, 76, 36, .7); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--orange); background: rgba(242,125,28,.08); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  /* the status bar's height on top (phones that draw the page under it), so the header is never half covered */
  height: calc(var(--header-h) + var(--safe-top)); padding-top: var(--safe-top);
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease, transform .3s ease;
  border-bottom: 1px solid transparent;
}
/* tucked away completely while scrolling down, back as soon as you scroll up */
.site-header.is-tucked { transform: translateY(calc(-100% - 2px)); }
.site-header.is-scrolled {
  background: rgba(17,17,17,.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 35px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-size: .95rem; font-weight: 500; }
.nav a:not(.btn) { color: var(--muted); position: relative; transition: color .2s; }
.nav a:not(.btn):hover, .nav a.is-active { color: var(--text); }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--grad-h); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + var(--safe-top) + 64px) 0 96px;
  min-height: min(100vh, 900px);
  display: flex; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 80% 40%, rgba(242,125,28,.18), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(249,222,11,.07), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 75%);
  opacity: .6;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); margin: 18px 0 22px; letter-spacing: -0.035em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 44px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; margin: 0;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(255,255,255,.03);
  font-size: .88rem; color: var(--muted);
}
.pill strong { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(249,222,11,.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(249,222,11,0); } }

.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; gap: 36px; flex-wrap: wrap; }
.hero-facts li { display: flex; align-items: center; gap: 12px; }
.hero-facts b { font-size: 2rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.03em; }
.hero-facts span { font-size: .82rem; color: var(--muted); line-height: 1.35; }

.hero-visual {
  --mx: 0; --my: 0;
  position: relative; aspect-ratio: 1; max-width: 540px; justify-self: center; width: 100%;
}
.orb {
  position: absolute; inset: 14%;
  border-radius: 50%;
  background: var(--grad); filter: blur(80px); opacity: .32;
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.08); opacity: .42; } }
.ring {
  position: absolute; border-radius: 50%; border: 1px dashed rgba(246,173,19,.22);
  inset: 6%; animation: spin 60s linear infinite;
}
.ring-2 { inset: 20%; border-style: solid; border-color: rgba(255,255,255,.06); animation-duration: 90s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Parallax layers: JS sets --mx/--my (-1..1) on .hero-visual */
.px {
  position: absolute; display: block;
  transform: translate3d(calc(var(--mx) * var(--d) * 14px), calc(var(--my) * var(--d) * 14px), 0);
  transition: transform .25s ease-out;
}
.px img { width: 100%; height: auto; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px) rotate(-2deg); } }
.f-symbol { left: 24%; top: 24%; width: 52%; z-index: 2; }
.f-symbol img { filter: drop-shadow(0 30px 60px rgba(239,76,36,.4)); }
.f-cat { left: 14%; top: 9%; width: 30%; z-index: 1; transform-origin: bottom; }
.f-cat img { animation: peek 5s ease-in-out infinite; }
@keyframes peek { 0%, 100% { transform: translateY(18%) rotate(-8deg); } 40%, 70% { transform: translateY(0) rotate(-8deg); } }
.f-tiles { right: -2%; top: 4%; width: 30%; z-index: 3; }
.f-tiles img { animation-delay: -2s; }
.f-bun { left: -4%; bottom: 0; width: 36%; z-index: 4; }
.f-bun img { animation-delay: -1s; filter: drop-shadow(0 18px 30px rgba(0,0,0,.5)); }
.f-cherry { left: 4%; top: 42%; width: 11%; z-index: 3; }
.f-cherry img { animation-duration: 4.5s; animation-delay: -3s; }
.f-orange { right: 6%; bottom: 30%; width: 10%; z-index: 3; }
.f-orange img { animation-duration: 5s; animation-delay: -1.5s; }
.f-melon { right: 34%; top: -2%; width: 10%; z-index: 1; }
.f-melon img { animation-duration: 5.5s; }
.hud {
  position: absolute; right: 0; bottom: 4%; z-index: 5;
  width: 180px; padding: 12px 14px; border-radius: 12px;
  background: rgba(17,17,17,.82); border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .72rem; letter-spacing: .08em; color: var(--muted);
}
.hud-row { display: flex; justify-content: space-between; }
.hud-row b { color: var(--text); letter-spacing: 0; }
.hud-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); margin: 8px 0; overflow: hidden; }
.hud-bar i { display: block; height: 100%; width: 30%; background: var(--grad-h); border-radius: inherit; animation: xp 4s ease-in-out infinite; }
@keyframes xp { 0% { width: 12%; } 70%, 100% { width: 96%; } }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-alt);
  overflow: hidden; padding: 16px 0;
}
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 36s linear infinite; }
.marquee span {
  font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.3);
}
.marquee img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.marquee img:nth-of-type(odd) { transform: rotate(-12deg); }
.marquee img:nth-of-type(even) { transform: rotate(10deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 112px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head-gap { margin-top: 112px; }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--amber);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad-h); }

/* Games: each game is a "world" panel; characters break out of the frame */
.section-games {
  background:
    radial-gradient(50% 30% at 85% 0%, rgba(242,125,28,.12), transparent 70%),
    radial-gradient(40% 30% at 0% 60%, rgba(249,222,11,.05), transparent 70%);
}
.worlds { display: flex; flex-direction: column; gap: 72px; }
.world {
  --tint: 242,125,28;
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 24px;
  min-height: 460px; padding: 48px 56px;
  border-radius: 32px;
}
/* Panel background lives on its own layer so characters can hide behind its edge */
.world::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  border: 1px solid rgba(var(--tint), .28);
  background:
    radial-gradient(70% 90% at 80% 50%, rgba(var(--tint), .22), transparent 70%),
    linear-gradient(135deg, var(--surface-2), var(--surface));
}
.world:nth-child(even) { grid-template-columns: 1.05fr 1fr; }
.world:nth-child(even) .world-copy { order: 2; }
.world:nth-child(even)::after { background:
    radial-gradient(70% 90% at 20% 50%, rgba(var(--tint), .22), transparent 70%),
    linear-gradient(225deg, var(--surface-2), var(--surface)); }
.edge-peek { position: absolute; z-index: -2; height: auto; pointer-events: none; animation: peekup 4s ease-in-out infinite; }
.peek-siamese { width: 130px; top: -104px; left: 38%; }
.peek-ragdoll { width: 150px; top: -96px; right: 28%; animation-delay: -2s; }
.world-bowl { --tint: 255,140,150; }
.world-jolly { --tint: 150,100,255; }
.world-shikaku { --tint: 120,220,180; }
.world-shikaku::before {
  /* the puzzle grid of Shikaku Cats, faded into the panel */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent 30%, #000 80%);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 80%);
}
.world-jolly::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.12) 1.5px, transparent 0) 0 0 / 26px 26px;
  mask-image: linear-gradient(270deg, transparent 30%, #000 85%);
  -webkit-mask-image: linear-gradient(270deg, transparent 30%, #000 85%);
}
.world-no {
  position: absolute; top: -40px; right: 40px; z-index: 0;
  font-size: 9rem; font-weight: 900; line-height: 1; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(var(--tint), .35);
  pointer-events: none;
}
.world:nth-child(even) .world-no { right: auto; left: 40px; }
.world-copy { position: relative; z-index: 2; }
.world-id { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.world-id img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 12px 28px -10px rgba(0,0,0,.7); flex: none; }
.world-tag { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgb(var(--tint)); }
.world h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; margin-top: 4px; }
.world-copy > p { color: var(--muted); font-size: 1rem; max-width: 460px; }
.world-stats { list-style: none; padding: 0; margin: 20px 0 26px; display: flex; gap: 28px; flex-wrap: wrap; }
.world-stats li { display: flex; flex-direction: column; }
.world-stats b { font-size: 1.25rem; font-weight: 800; }
.world-stats span { font-size: .78rem; color: var(--muted); }

.world-stage { position: relative; height: 420px; z-index: 1; }
.fan { position: absolute; inset: 0; }
.phone {
  position: absolute; left: 50%; top: 50%;
  width: 190px; height: auto; border-radius: 26px;
  border: 7px solid #0b0b0b; background: #0b0b0b;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.p2 { transform: translate(-50%, -50%); z-index: 3; }
.p1 { transform: translate(-50%, -50%) translateX(-110px) rotate(-12deg) scale(.86); z-index: 2; filter: brightness(.7); }
.p3 { transform: translate(-50%, -50%) translateX(110px) rotate(12deg) scale(.86); z-index: 2; filter: brightness(.7); }
.world:hover .p1 { transform: translate(-50%, -50%) translateX(-150px) rotate(-16deg) scale(.9); filter: none; }
.world:hover .p3 { transform: translate(-50%, -50%) translateX(150px) rotate(16deg) scale(.9); filter: none; }
.world:hover .p2 { transform: translate(-50%, -50%) translateY(-8px) scale(1.03); }

.pop { position: absolute; z-index: 4; height: auto; pointer-events: none; filter: drop-shadow(0 16px 24px rgba(0,0,0,.45)); animation: bob 4.5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(var(--r, 0deg)); } }
/* Where's My Bowl: bun jumps out of the panel top */
.pop-dough { width: 150px; top: -110px; left: 4%; animation-name: hop; }
@keyframes hop { 0%, 100% { transform: translateY(0) rotate(-6deg); } 45% { transform: translateY(-26px) rotate(4deg); } }
.pop-crybowl { width: 130px; bottom: -56px; right: 2%; animation-delay: -1.5s; }
.pop-scared { width: 110px; bottom: 6%; left: -2%; animation-delay: -3s; }
/* Jolly Tiles: fruit bursts around the phones */
.pop-trio { width: 170px; top: -90px; right: 0; animation-delay: -1s; }
.pop-cherry { width: 64px; top: 12%; left: 2%; --r: 12deg; animation-delay: -2s; }
.pop-pear { width: 52px; bottom: 2%; left: 14%; --r: -10deg; animation-delay: -.5s; }
.pop-melon { width: 70px; bottom: -36px; right: 18%; --r: 8deg; animation-delay: -3s; }
.pop-orange { width: 58px; top: 44%; right: -10px; --r: -14deg; animation-delay: -1.2s; }
/* Shikaku Cats: cats peek over the panel edges */
@keyframes peekup { 0%, 100% { transform: translateY(14px); } 50% { transform: translateY(0); } }

/* Google Play button */
.btn-play {
  gap: 10px; padding: 9px 18px 9px 14px;
  background: #0c0c0c; border-color: var(--line-strong); color: var(--text); border-radius: 12px;
}
.btn-play:hover { border-color: var(--orange); transform: translateY(-2px); }
.btn-play svg { width: 22px; height: 22px; }
.btn-play svg .fill { fill: currentColor; stroke: none; }
.btn-play span { display: flex; flex-direction: column; line-height: 1.1; font-size: 1rem; }
.btn-play span small { font-size: .66rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* About *//* About */
.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; margin-bottom: 72px; }
.about h2 { margin-bottom: 22px; }
.about-copy p { color: var(--muted); font-size: 1.05rem; }
.about-copy em { color: var(--text); font-style: normal; font-weight: 600; }
.strike { position: relative; color: var(--muted); white-space: nowrap; }
.strike::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 55%; height: 4px;
  background: var(--red); border-radius: 4px; transform: rotate(-4deg);
}
.about-mark {
  padding: 36px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.old-new { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.old {
  width: 110px; aspect-ratio: 1; border-radius: 24px; display: grid; place-content: center; text-align: center;
  border: 2px dashed var(--line-strong); color: var(--muted);
}
.old span { font-size: 2rem; font-weight: 900; line-height: 1; }
.old small { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.arrow svg { width: 40px; height: 40px; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.new {
  width: 130px; aspect-ratio: 1; border-radius: 28px; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px -20px rgba(239,76,36,.6);
}
.new img { width: 68%; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 28px; }
.swatches i { height: 14px; border-radius: 6px; }

.features { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.feature {
  padding: 26px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .25s ease, border-color .25s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(242,125,28,.45); }
.feature h3 { font-size: 1.02rem; margin: 18px 0 8px; }
.feature p { color: var(--muted); font-size: .92rem; margin: 0; }
.f-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(249,222,11,.16), rgba(239,76,36,.16));
  border: 1px solid rgba(242,125,28,.3);
}
.f-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Courses */
.filters { display: flex; gap: 8px; margin-bottom: 76px; flex-wrap: wrap; }
.filter {
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--muted);
  transition: all .2s ease;
}
.filter:hover { color: var(--text); }
.filter.is-active { background: var(--text); color: var(--ink); border-color: var(--text); }

.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.course {
  position: relative; display: flex; flex-direction: column;
  padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .25s ease, border-color .25s ease, opacity .3s ease;
  overflow: hidden;
}
.course:hover { transform: translateY(-4px); border-color: rgba(242,125,28,.45); }
.course.is-hidden { display: none; }
.course h3 { font-size: 1.3rem; margin: 18px 0 10px; }
.course p { color: var(--muted); font-size: .95rem; flex: 1; }
.course-featured {
  grid-row: span 2;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(242,125,28,.22), transparent 60%),
    var(--surface-2);
  border-color: rgba(242,125,28,.35);
}
.course-featured::before {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 220px;
  background: url("../img/symbol.svg") no-repeat center / contain; opacity: .09;
}
.course-featured { overflow: hidden; }
.course-featured h3 { font-size: 1.85rem; letter-spacing: -.03em; }
.course-top { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: .74rem; font-weight: 600; letter-spacing: .02em;
  border: 1px solid var(--line-strong); color: var(--muted);
}
.tag-hot { background: var(--grad); color: var(--ink); border-color: transparent; }
.tag-design { color: var(--amber); border-color: rgba(246,173,19,.4); }
.meta { list-style: none; padding: 0; margin: 4px 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.meta li {
  font-size: .85rem; color: var(--muted);
  padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--line);
}
.meta b { color: var(--text); }
.course-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--amber); font-size: .95rem; }
.course-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.course-link:hover svg { transform: translateX(4px); }

/* Path */
/* Vertical learning path: scroll down and the bun walks down the line, lighting each step it reaches */
.path {
  --gutter: 104px;
  list-style: none; margin: 0 auto; padding: 0 0 0 var(--gutter); max-width: 760px;
  display: grid; grid-template-columns: 1fr; gap: 44px; position: relative;
}
.path::before {
  content: ""; position: absolute; left: calc(var(--gutter) + 31px); top: 32px; bottom: 32px; width: 2px;
  background: linear-gradient(180deg, var(--yellow), var(--red)); opacity: .35;
}
.path::after { /* the part of the line already walked */
  content: ""; position: absolute; left: calc(var(--gutter) + 31px); top: 32px; width: 2px;
  height: calc(var(--walked, 0) * (100% - 64px)); background: var(--grad); border-radius: 2px;
}
.walker {
  position: absolute; top: 0; left: 0; width: 92px; height: 92px; pointer-events: none;
  transform: translateY(var(--y, 0px)); will-change: transform;
}
.walker img { position: absolute; left: 0; bottom: 0; height: 92px; width: auto; transition: opacity .3s ease, transform .3s ease; }
.walker .walk-a { transform-origin: bottom center; }
.walker.is-walking .walk-a { animation: waddle .32s ease-in-out infinite alternate; } /* only bobs while it's actually moving */
.walker .walk-b { opacity: 0; transform: scale(.6); transform-origin: bottom left; }
.walker.is-done .walk-a { opacity: 0; }
.walker.is-done .walk-b { opacity: 1; transform: none; }
@keyframes waddle { from { transform: rotate(-5deg); } to { transform: rotate(5deg) translateY(-4px); } }
.step { position: relative; display: grid; grid-template-columns: 64px 1fr; column-gap: 24px; align-items: start; }
.step h3, .step p { grid-column: 2; }
.step .step-no { grid-row: span 2; margin-bottom: 0; }
.step.is-reached h3 { color: var(--text); }
.step:not(.is-reached) p { opacity: .75; }
.step-no {
  position: relative; display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 18px; margin-bottom: 22px;
  background: var(--bg); border: 1px solid var(--line-strong);
  font-weight: 800; font-size: 1.15rem;
}
.step-no { transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
.step.is-reached .step-no { background: var(--grad); color: var(--ink); border-color: transparent; }
.step h3 { margin-bottom: 8px; font-size: 1.2rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* Showcase */
.showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 32px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line);
}
.showcase-media { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-strong); }
.showcase-media canvas { width: 100%; height: auto; image-rendering: pixelated; image-rendering: crisp-edges; background: #1a1325; }
.showcase-badge {
  position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px;
  background: rgba(17,17,17,.75); border: 1px solid var(--line-strong); font-size: .78rem; font-weight: 600;
}
.showcase-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.showcase-copy p { color: var(--muted); }

/* Quotes */
.quotes { columns: 3 300px; column-gap: 20px; }
.quote {
  break-inside: avoid; margin: 0 0 20px;
  padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  position: relative;
}
.quote::before {
  content: "“"; position: absolute; right: 22px; top: 6px;
  font-size: 5rem; font-weight: 900; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .35;
}
.quote blockquote { margin: 0 0 22px; font-size: 1.02rem; color: var(--text); }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.quote small { color: var(--muted); font-size: .82rem; }
.avatar {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad); color: var(--ink); font-weight: 800; font-size: .85rem;
}

/* Character select (Life at RiseOn) */
.select {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 0;
  border-radius: 28px; overflow: hidden;
  border: 1px solid rgba(242,125,28,.3);
  background: var(--surface);
}
.stage {
  position: relative; min-height: 520px; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(17,17,17,.55) 0%, rgba(17,17,17,.35) 45%, rgba(17,17,17,.95) 100%),
    radial-gradient(55% 45% at 50% 72%, rgba(242,125,28,.5), transparent 70%),
    url("../img/team/stage-bg.webp") center 30% / cover;
}
.stage::after {
  /* brand-tinted scanlines for a game-screen feel */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}
.stage-floor {
  position: absolute; left: 50%; bottom: 34px; width: 70%; height: 60px; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(249,222,11,.55), rgba(239,76,36,.25) 60%, transparent);
  filter: blur(4px);
}
.stage-char {
  position: absolute; left: 50%; bottom: 52px; z-index: 1;
  height: 84%; width: auto; max-width: 92%; object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 24px 30px rgba(0,0,0,.6));
}
.stage-char.is-swapping { animation: summon .55s cubic-bezier(.2,.8,.2,1); }
@keyframes summon {
  0% { opacity: 0; transform: translateX(-50%) translateY(30px) scale(.9); filter: brightness(3) drop-shadow(0 0 0 transparent); }
  60% { opacity: 1; filter: brightness(1.4) drop-shadow(0 24px 30px rgba(0,0,0,.6)); }
  100% { transform: translateX(-50%); }
}
.stage-p1 {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  padding: 6px 12px; border-radius: 8px; font-weight: 900; letter-spacing: .1em; font-size: .85rem;
  background: var(--grad); color: var(--ink);
}
.profile { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.profile-class { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }
.profile h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 900; letter-spacing: -.03em; margin-bottom: 12px; }
.profile-quote { color: var(--muted); font-style: italic; min-height: 3.2em; }
.stats { list-style: none; padding: 0; margin: 8px 0 24px; display: grid; gap: 12px; }
.stats li { display: grid; grid-template-columns: 96px 1fr 36px; align-items: center; gap: 12px; font-size: .85rem; }
.stats li span { color: var(--muted); }
.stats li b { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 10px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar i {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: repeating-linear-gradient(90deg, transparent 0 14px, rgba(17,17,17,.35) 14px 16px), var(--grad-h);
  transition: width .7s cubic-bezier(.2,.8,.2,1);
}
.skill { padding: 16px 18px; border-radius: 14px; border: 1px dashed rgba(246,173,19,.4); background: rgba(246,173,19,.06); }
.skill > span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 4px; }
.skill b { font-weight: 700; }
.skill-set { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.skill-set li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.skill-set li:nth-child(2) { opacity: .75; }
.skill-set li.passive { padding-top: 8px; border-top: 1px dashed rgba(255,255,255,.14); }
.skill-set li.passive small { color: var(--mint, #78dcb4); border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px; }
.sk-ic { font-size: 22px; line-height: 1.1; }
.skill-set small { margin-left: 8px; font-size: .74rem; font-weight: 700; color: var(--amber); }
.skill-set em { display: block; font-style: normal; font-size: .85rem; color: var(--muted); }
.play-btn { align-self: flex-start; margin-top: 22px; }
.play-note { margin: 10px 0 0; font-size: .82rem; color: var(--muted); }

.roster { display: grid; grid-template-columns: repeat(10, 1fr); gap: 14px; margin-top: 18px; }
.slot {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  height: 150px; padding: 0 8px 12px; overflow: hidden; cursor: pointer;
  border-radius: 18px; border: 2px solid var(--line-strong);
  background: linear-gradient(180deg, var(--surface-2), #141213);
  color: var(--muted); font: inherit; font-size: .82rem; font-weight: 600;
  transition: border-color .2s ease, transform .2s ease, color .2s ease;
}
.slot img {
  position: absolute; left: 50%; bottom: 38px; height: 106px; width: auto; max-width: 120%;
  transform: translateX(-50%); object-fit: contain; filter: grayscale(.7) brightness(.8);
  transition: filter .25s ease, transform .25s ease;
}
.slot span { position: relative; z-index: 1; max-width: 100%; text-align: center; font-size: .76rem; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slot:hover { transform: translateY(-3px); color: var(--text); }
.slot:hover img { filter: none; }
.slot.is-active {
  color: var(--ink); border-color: transparent;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-2) 70%, transparent 70%), var(--grad);
}
.slot.is-active span { color: var(--ink); }
.slot.is-active::after {
  content: ""; position: absolute; inset: 0; border-radius: 16px; box-shadow: inset 0 0 0 2px var(--yellow);
}
.slot.is-active img { filter: none; transform: translateX(-50%) scale(1.06); }
.slot.is-active::before {
  content: "▼"; position: absolute; top: 6px; z-index: 2; color: var(--yellow); font-size: .7rem;
  animation: bounce 1s ease-in-out infinite;
}
@keyframes bounce { 50% { transform: translateY(4px); } }

/* Peeking characters */
.course-wrap { position: relative; grid-row: span 2; display: flex; padding-top: 0; }
.course-wrap .course-featured { flex: 1; z-index: 1; }
.course-wrap.is-hidden { display: none; }
.perch {
  position: absolute; z-index: 0; right: 28px; top: -78px; width: 120px; height: auto;
  animation: peekup 4s ease-in-out infinite;
}
.cta-wrap { position: relative; margin-bottom: 40px; }
.cta-wrap .cta { z-index: 1; margin-bottom: 0; }
.peek {
  position: absolute; z-index: 0; left: 56px; top: -92px; width: 130px; height: auto;
  animation: peekup 4.5s ease-in-out infinite;
}

/* CTA + Contact *//* CTA + Contact */
.cta {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center;
  padding: 44px; border-radius: 28px;
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(249,222,11,.14), transparent 60%),
    radial-gradient(80% 140% at 100% 100%, rgba(239,76,36,.22), transparent 60%),
    var(--surface-2);
  border: 1px solid rgba(242,125,28,.35);
  margin-bottom: 40px;
}
.cta-symbol { width: 88px; }
.cta h2 { margin-bottom: 8px; }
.cta p { color: var(--muted); margin: 0; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; }
.cta-actions .btn { justify-content: center; }

.locations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.loc {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.loc .tag { align-self: flex-start; }
.loc h3 { font-size: 1.05rem; }
.loc p { color: var(--muted); font-size: .9rem; margin: 0; flex: 1; }
.loc a { color: var(--amber); font-weight: 600; font-size: .9rem; }
.loc a:hover { color: var(--yellow); }
.loc-main { border-color: rgba(242,125,28,.35); }

/* ---------- Footer ---------- */
.site-footer { background: #0c0c0c; padding-bottom: 28px; }
.stripes i { display: block; height: 5px; }
.stripes i:nth-child(1) { background: var(--amber); }
.stripes i:nth-child(2) { background: var(--orange); }
.stripes i:nth-child(3) { background: var(--red); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
.footer-brand img { width: 200px; height: auto; margin-bottom: 14px; }
.tagline { color: var(--yellow); font-weight: 300; letter-spacing: .02em; margin-bottom: 4px; }
.muted { color: var(--muted); font-size: .9rem; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.footer-col a { color: var(--text); font-size: .95rem; }
.footer-col a:hover { color: var(--amber); }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); transition: all .2s ease;
}
.socials a:hover { background: var(--grad); border-color: transparent; color: var(--ink); }
.socials svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.socials svg .fill { fill: currentColor; stroke: none; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .85rem;
}
.footer-bottom a:hover { color: var(--text); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .world, .world:nth-child(even) { grid-template-columns: 1fr; padding: 44px 32px 36px; }
  .world:nth-child(even) .world-copy { order: 0; }
  .world-stage { height: 380px; margin-top: 12px; }
  .pop-dough { top: -20px; left: 0; }
  .pop-trio { top: -30px; right: 0; }
  .select { grid-template-columns: 1fr; }
  .stage { min-height: 440px; }
  .courses { grid-template-columns: repeat(2, 1fr); }
  .course-wrap { grid-row: auto; grid-column: span 2; }
  .locations { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; text-align: left; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav-toggle {
    display: grid; gap: 5px; place-content: center;
    width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed; top: calc(var(--header-h) + var(--safe-top)); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 16px 24px;
    background: rgba(17,17,17,.97); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: all .25s ease;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 16px; justify-content: center; }
  .site-header.menu-open { background: rgba(17,17,17,.97); }

  .hero { padding-top: calc(var(--header-h) + var(--safe-top) + 40px); min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 360px; order: -1; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .showcase { grid-template-columns: 1fr; padding: 20px; gap: 28px; }
  .path { --gutter: 76px; gap: 36px; }
  .walker, .walker img { width: 64px; height: 64px; }
  .roster { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(96px, 1fr); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .slot { scroll-snap-align: start; }
  .hero-visual { max-width: 400px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .section { padding: 80px 0; }
  .section-head-gap { margin-top: 80px; }
}

@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .courses { grid-template-columns: 1fr; }
  .course-wrap { grid-column: auto; margin-top: 60px; }
  .world { padding: 36px 20px 28px; border-radius: 24px; }
  .world-no { font-size: 6rem; top: -26px; }
  .world-stage { height: 320px; }
  .phone { width: 150px; border-width: 5px; border-radius: 20px; }
  .p1 { transform: translate(-50%, -50%) translateX(-80px) rotate(-12deg) scale(.86); }
  .p3 { transform: translate(-50%, -50%) translateX(80px) rotate(12deg) scale(.86); }
  .world:hover .p1 { transform: translate(-50%, -50%) translateX(-90px) rotate(-14deg) scale(.88); }
  .world:hover .p3 { transform: translate(-50%, -50%) translateX(90px) rotate(14deg) scale(.88); }
  .pop-dough { width: 100px; top: -14px; }
  .pop-trio { width: 110px; top: -24px; }
  .peek-siamese { width: 96px; top: -76px; left: 14%; }
  .peek-ragdoll { display: none; }
  .pop-crybowl { width: 100px; }
  .stage { min-height: 380px; }
  .profile { padding: 28px 22px; }
  .stats li { grid-template-columns: 80px 1fr 32px; }
  .peek { left: 24px; width: 100px; top: -72px; }
  .locations { grid-template-columns: 1fr; }
  .path { --gutter: 58px; }
  .walker, .walker img { width: 50px; height: 50px; }
  .step { grid-template-columns: 52px 1fr; column-gap: 16px; }
  .step-no { width: 52px; height: 52px; border-radius: 14px; }
  .path::before, .path::after { left: calc(var(--gutter) + 25px); top: 26px; }
  .hero-facts { gap: 20px; }
  .hero-facts b { font-size: 1.6rem; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .hud { width: 150px; }
  .cta { padding: 28px 22px; }
  .cta-actions .btn { flex: 1 1 100%; }
  .old { width: 84px; } .new { width: 100px; }
  .about-mark { padding: 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

.footer-links { display: inline-flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.admin-link { padding: 6px 12px; border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 999px; }
.admin-link:hover { border-color: var(--amber); }
.old-new { justify-content: center; }
.nav-admin { font-size: .85rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(249,222,11,.35); white-space: nowrap; }
.nav-admin:hover { border-color: var(--amber); }

/* =================== phones & small tablets: compact, swipe-first layout =================== */
@media (max-width: 860px) {
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 22px; }
  .section-head-gap { margin-top: 48px; }

  /* long stacks of cards become sideways swipe rows */
  .worlds, .features, .courses, .quotes {
    display: flex; flex-direction: row; gap: 14px; columns: auto;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
    margin: 0 -16px; padding: 6px 16px 16px; scroll-padding: 0 16px; scrollbar-width: none; /* bleed exactly to the 16px page gutter */
  }
  .worlds::-webkit-scrollbar, .features::-webkit-scrollbar, .courses::-webkit-scrollbar, .quotes::-webkit-scrollbar { display: none; }
  .worlds > *, .features > *, .courses > *, .quotes > * { flex: 0 0 84%; scroll-snap-align: center; margin: 0; break-inside: auto; }
  .features > * { flex-basis: 72%; }
  .course-wrap { grid-row: auto; margin-top: 0 !important; padding-top: 0; }
  .course-wrap .perch { display: none; }
  .world { padding: 26px 18px 18px; }
  .world-no { font-size: 4.5rem; top: -6px; }
  .world-stage { height: 300px; zoom: .78; }
  .world-copy p { font-size: .9rem; }

  /* character select: pick first (sticky strip under the header), then see who you picked right below */
  #life .container { display: flex; flex-direction: column; }
  #life .section-head { order: 0; }
  #life .roster { order: 1; position: sticky; top: calc(var(--header-h) + var(--safe-top) + 4px); z-index: 20; transition: top .3s ease;
    display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    margin: 0 -16px 14px; padding: 8px 16px; background: rgba(17,17,17,.94); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line); }
  #life .roster::-webkit-scrollbar { display: none; }
  #life .slot { flex: 0 0 78px; height: 92px; padding: 0 4px 6px; border-radius: 14px; font-size: .64rem; scroll-snap-align: center; }
  #life .slot img { height: 66px; bottom: 20px; }
  #life .slot span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  #life .select { order: 2; grid-template-columns: 1fr; border-radius: 22px; }
  #life .stage { min-height: 300px; }
  #life .stage-char { height: 88%; bottom: 30px; }
  #life .profile { padding: 20px 18px 22px; }
  #life .profile h3 { font-size: 1.6rem; margin-bottom: 6px; }
  #life .profile-quote { min-height: 0; font-size: .9rem; margin-bottom: 8px; }
  #life .stats { grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 6px 0 14px; }
  #life .stats li { grid-template-columns: 1fr 30px; gap: 4px 8px; font-size: .78rem; }
  #life .stats li .bar { grid-column: 1 / -1; grid-row: 2; height: 7px; }
  #life .skill { padding: 12px 14px; }
  #life .skill-set em { font-size: .8rem; }
  #life .play-btn { align-self: stretch; justify-content: center; margin-top: 16px; }
  #life .play-note { font-size: .76rem; }
}

/* ===== review fixes ===== */
.nav a { white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1180px) { .nav { gap: 16px; font-size: .88rem; } .nav-admin { padding: 5px 9px; } }
@media (max-width: 860px) {
  .container.features { width: auto; max-width: none; margin-left: 0; margin-right: 0; } /* already full width: no bleed */
  /* hero: words first, artwork smaller underneath */
  .hero-visual { order: 2; max-width: 280px; margin: 8px auto 0; }
  /* comfortable tap targets */
  .course-link, .footer-col a, .footer-bottom a, .world a { display: inline-flex; align-items: center; min-height: 40px; }
  #life .slot span { font-size: .7rem; }
}
/* phones held sideways: slimmer sticky character strip */
@media (max-height: 500px) and (max-width: 860px) {
  #life .roster { padding: 4px 20px; }
  #life .slot { flex-basis: 64px; height: 60px; }
  #life .slot img { height: 44px; bottom: 14px; }
  #life .slot span { display: none; }
}

/* roster cards: the picture sits above the name band and never covers it */
/* (names can take two lines: the band is tall enough for both) */
.slot { padding-bottom: 7px; }
.slot img { bottom: 48px; height: calc(100% - 56px); max-width: 112%; }
.slot.is-active { background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-2) calc(100% - 44px), transparent calc(100% - 44px)), var(--grad); }
.slot span { line-height: 1.2; min-height: 2.4em; display: flex; align-items: center; justify-content: center; }
@media (max-width: 860px) {
  #life .slot { padding-bottom: 4px; }
  #life .slot span { min-height: 0; }
  #life .slot img { bottom: 34px; height: calc(100% - 38px); }
  #life .slot.is-active { background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-2) calc(100% - 35px), transparent calc(100% - 35px)), var(--grad); }
}
@media (max-height: 500px) and (max-width: 860px) {
  #life .slot img { bottom: 6px; height: calc(100% - 10px); }
  #life .slot.is-active { background: var(--surface-2); border-color: var(--yellow); }
}

/* header tucked: the sticky character strip moves up into its place */
@media (max-width: 860px) { html.header-tucked #life .roster { top: calc(var(--safe-top) + 4px); } }
/* landscape phones with a notch: keep content clear of it now that the page may extend under it */
body { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
/* social buttons sit inside a footer column: keep their icon centred (the phone rule for footer links made them left-aligned) */
.footer-col .socials a, .socials a { display: inline-grid; place-items: center; justify-content: center; padding: 0; }


/* ===== review round 1 (website) ===== */
/* eyebrows always amber (section paragraphs used to override them grey) */
p.eyebrow, .about-copy p.eyebrow, .showcase-copy p.eyebrow { color: var(--amber); }
/* learning path: the line runs behind the step numbers */
.path::before, .path::after { z-index: 0; }
.step-no { position: relative; z-index: 1; }
/* quote mark never over the text */
.quote blockquote { padding-right: 56px; }
/* character slots: no orange hairline at the top of the active one; the marker sits above the card */
.slot.is-active { background-clip: padding-box; }
.slot.is-active::before { top: -14px; }
/* tap targets */
.loc a, .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom { align-items: center; }
/* headings don't leave a lonely word on the last line */
h1, h2, h3 { text-wrap: balance; }
/* small text a notch bigger */
.tag { font-size: .8rem; }
.play-note { font-size: .82rem; }
.btn-play span small { font-size: .74rem; }
/* "Vào chơi" when the game server is off */
.play-btn.is-offline { opacity: .55; pointer-events: none; filter: grayscale(.6); }
@media (max-width: 860px) {
  .filters { margin-bottom: 20px; }
  /* character strip: two-line names, a bit narrower cards so more fit */
  #life .slot { flex: 0 0 84px; height: 96px; }
  #life .slot span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; font-size: .62rem; }
  /* mobile menu: solid, the hero doesn't show through */
  .nav { background: #111; }
}
/* tablets: the roster as a 6-column grid with full names (no sideways strip) */
@media (min-width: 600px) and (max-width: 860px) and (min-height: 501px) {
  #life .roster { display: grid; grid-template-columns: repeat(7, 1fr); overflow: visible; position: static; }
  #life .slot { height: 104px; }
}
/* game cards stay two-up down to tablets */
/* landscape phones: the hero doesn't take 2.6 screens */
@media (orientation: landscape) and (max-height: 500px) {
  .hero-visual { display: none; }
  .world-stage { height: 220px; }
  #life .stage { min-height: 200px; }
}
@media (min-width: 600px) and (max-width: 860px) and (min-height: 501px) {
  #life .roster { grid-auto-flow: row; grid-auto-columns: auto; gap: 10px; margin: 0 0 14px; padding: 8px 0; background: none; border: 0; backdrop-filter: none; }
  #life .slot { width: auto; flex: none; }
}


/* ===== review round 2 (website) ===== */
/* game cards: copy + artwork side by side on tablets/small laptops too */
@media (min-width: 861px) and (max-width: 1080px) { .world, .world:nth-child(even) { grid-template-columns: 1fr 1fr; } .world:nth-child(even) .world-copy { order: 2; } }
/* character select: the roster always sits above the stage, so picking never scrolls it away */
#life .container { display: flex; flex-direction: column; }
#life .section-head { order: 0; }
#life .roster { order: 1; }
#life .select { order: 2; }
/* phones: taller slots, the picture above a readable name, the active stripe clean */
@media (max-width: 599px), (max-width: 860px) and (max-height: 500px) {
  #life .slot { flex: 0 0 86px; height: 112px; padding-bottom: 5px; }
  #life .slot img { bottom: 38px; height: calc(100% - 42px); }
  #life .slot span { font-size: .7rem; line-height: 1.15; }
  #life .slot.is-active { background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-2) calc(100% - 37px), transparent calc(100% - 37px)), var(--grad); background-clip: padding-box; }
}
@media (max-width: 860px) and (max-height: 500px) {
  #life .roster { position: static; }
  #life .slot span { display: -webkit-box; }
}
/* featured course: no forced double height (it left an empty middle); the logo mark sits low and faint */
.course-featured { grid-row: auto; }
.course-featured::before { right: -70px; bottom: -90px; opacity: .05; }
/* the play button when the game server is off: no arrow */
.play-btn.is-offline svg { display: none; }
#life .roster { margin-bottom: 18px; }


/* ===== floating dock: Arena · Collab · Admin ===== */
.dock { position: fixed; z-index: 60; right: calc(16px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(17,17,17,.82); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.dock-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; color: var(--text);
  font-weight: 800; font-size: .9rem; text-decoration: none; background: #232021; border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.dock-btn:hover { transform: translateY(-1px); border-color: rgba(246,173,19,.6); }
.dock-btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.dock-btn svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.dock-play { background: var(--grad); color: #231f20; border: 0; padding-right: 18px; }
.dock-play svg { fill: #231f20; }
.dock-txt { display: flex; flex-direction: column; line-height: 1.1; }
.dock-txt small { font-size: .66rem; font-weight: 700; opacity: .8; }
.dock-icon { width: 44px; padding: 0; justify-content: center; }
.dock-icon svg { fill: none; }
@media (max-width: 599px) {
  .dock { left: 50%; right: auto; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom)); }
  body { padding-bottom: 76px; }
}

/* dock: never wraps, steps aside near the in-page play button; a full-width bar on phones */
.dock { transition: transform .25s ease, opacity .25s ease; }
.dock.is-tucked { opacity: 0; pointer-events: none; transform: translateY(16px); }
.dock-txt { white-space: nowrap; }
.dock-txt small { font-size: .72rem; opacity: 1; white-space: nowrap; }
.dock-play { min-width: 120px; }
html { scroll-padding-bottom: 90px; }
@media (max-width: 599px) {
  .dock { left: 12px; right: 12px; transform: none; justify-content: stretch; }
  .dock.is-tucked { transform: translateY(16px); }
  .dock-btn { flex: 1; justify-content: center; }
  body { padding-bottom: 84px; }
}
.roster .slot span { font-size: max(.78rem, 13px); }

/* phones: the three dock buttons share the bar (no overflow); Admin shrinks to its icon on narrow screens */
@media (max-width: 599px) {
  .dock { gap: 6px; padding: 5px; }
  .dock-btn { flex: 1 1 0; min-width: 0; padding: 0 10px; gap: 6px; font-size: .82rem; }
  .dock-play { flex: 1.5 1 0; min-width: 0; padding-right: 10px; }
  .dock-txt { overflow: hidden; }
  .dock-txt small { font-size: .66rem; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 430px) {
  .dock-btn[href*="admin"] { flex: 0 0 44px; padding: 0; }
  .dock-btn[href*="admin"] .dock-txt { display: none; }
}
/* the Arena button: just "Arena" */
#dockLive { display: none !important; }
