/* WordWild — wordwild.net
   Colours, type and the chunky 3D finish come straight from the app's Theme.swift. */

@font-face { font-family: "Lilita One"; src: url("../assets/fonts/LilitaOne-Regular.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Nunito"; font-weight: 600; src: url("../assets/fonts/Nunito-SemiBold.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Nunito"; font-weight: 700; src: url("../assets/fonts/Nunito-Bold.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Nunito"; font-weight: 800; src: url("../assets/fonts/Nunito-ExtraBold.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Nunito"; font-weight: 900; src: url("../assets/fonts/Nunito-Black.woff") format("woff"); font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #1C1D20;
  --bg-top: #2A2C31;
  --bg-deep: #141518;
  --surface: #2A2C31;
  --surface-top: #34373D;
  --surface-bottom: #24262A;
  --surface-raised: #3A3D44;
  --well: #17181B;
  --cell: #26282C;
  --outline: #0B0C0D;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.5);

  --tile: #F6F8F9;
  --tile-shade: #E3E8EC;
  --tile-edge: #B9C1C8;
  --anchor: #DCE1E5;
  --ink: #16181B;

  --amber: #F4AE3F;
  --amber-light: #FFCB6B;
  --amber-deep: #B86F14;
  --amber-dim: rgba(244, 174, 63, 0.18);
  --go: #5BC24A;
  --go-light: #8FE07E;
  --go-deep: #2F7A26;
  --danger: #D2604F;
  --snow: #C9DCEB;

  --text: #FFFFFF;
  --text-2: rgba(255, 255, 255, 0.66);
  --text-3: rgba(255, 255, 255, 0.42);

  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, sans-serif;

  --radius: 24px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--text);
  font: 600 17px/1.6 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, canvas { display: block; max-width: 100%; }
a { color: var(--amber-light); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--amber-light); outline-offset: 3px; border-radius: 8px; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: 0.01em; margin: 0; line-height: 1.04; }
.display-shadow { text-shadow: 0 4px 0 var(--outline), 0 0 40px rgba(244, 174, 63, 0.25); }
p { margin: 0; }
.amber { color: var(--amber); }

/* ---------- Buttons (the app's 3D buttons: glossy top, darker lip, cartoon outline) ---------- */

.btn {
  --face: linear-gradient(180deg, var(--amber-light) 0%, var(--amber) 60%);
  --lip: var(--amber-deep);
  --fg: var(--ink);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px;
  font: 400 20px/1 var(--display); letter-spacing: 0.02em;
  color: var(--fg);
  background: var(--face);
  border: 2.5px solid var(--outline);
  border-radius: 18px;
  box-shadow: 0 6px 0 -2.5px var(--lip), 0 6px 0 0 var(--outline), 0 14px 28px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.2s;
  text-decoration: none !important;
  isolation: isolate;
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 3px 6px auto; height: 42%;
  border-radius: 13px 13px 10px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.08));
  z-index: -1; pointer-events: none;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 -2.5px var(--lip), 0 2px 0 0 var(--outline), 0 6px 12px rgba(0, 0, 0, 0.3); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 16px; border-radius: 14px; }
.btn-small::before { border-radius: 10px 10px 8px 8px; }
.btn-dark {
  --face: linear-gradient(180deg, var(--surface-raised) 0%, var(--surface) 70%);
  --lip: #1A1B1E; --fg: var(--text);
}
.btn-dark::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)); }
.btn-go { --face: linear-gradient(180deg, var(--go-light) 0%, var(--go) 60%); --lip: var(--go-deep); }
.btn-off {
  --face: linear-gradient(180deg, #3F424A 0%, #33363C 70%); --lip: #1E1F23; --fg: rgba(255, 255, 255, 0.35);
  cursor: default;
}
.btn-off::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)); }
.btn-off:active { transform: none; }
.btn-icon { width: 56px; padding: 0; }
.btn svg { width: 22px; height: 22px; flex: none; }

.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 0 22px 0 18px;
  font-family: var(--body);
}
.store-badge svg { width: 28px; height: 28px; }
.store-badge .lines { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.store-badge small { font: 800 12px/1.1 var(--body); letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.8; }
.store-badge strong { font: 400 22px/1.1 var(--display); letter-spacing: 0.01em; }

/* ---------- Cards and chips ---------- */

.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-top), var(--surface) 40%, var(--surface-bottom));
  border: 2px solid var(--outline);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--well), inset 0 1.5px 0 rgba(255, 255, 255, 0.08);
}
.well {
  background: var(--well);
  border-radius: 16px;
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.06);
}
.tag {
  display: inline-flex; align-items: center;
  padding: 3px 10px 2px;
  font: 400 14px/1.2 var(--display); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(180deg, var(--amber-light), var(--amber));
  border: 2px solid var(--outline);
  border-radius: 9px;
  box-shadow: 0 3px 0 -1px var(--amber-deep), 0 3px 0 1px var(--outline);
}
.tag-red { background: linear-gradient(180deg, #F08E7F, var(--danger)); box-shadow: 0 3px 0 -1px #8E3327, 0 3px 0 1px var(--outline); color: #fff; }
.kicker {
  font: 400 15px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--amber);
}

/* ---------- Letter tiles (sterile white face, cool-grey edge, value in the corner) ---------- */

.tile {
  --size: 56px;
  position: relative;
  display: inline-grid; place-items: center;
  width: var(--size); height: var(--size);
  padding: 0;
  font: 400 calc(var(--size) * 0.58)/1 var(--display);
  color: var(--ink);
  background: linear-gradient(180deg, var(--tile) 55%, var(--tile-shade));
  border: 2px solid var(--outline);
  border-radius: calc(var(--size) * 0.2);
  box-shadow: inset 0 -5px 0 var(--tile-edge), 0 3px 0 rgba(0, 0, 0, 0.45);
  user-select: none; -webkit-user-select: none;
}
.tile span { transform: translateY(-2px); }
.tile sub {
  position: absolute; right: calc(var(--size) * 0.1); bottom: calc(var(--size) * 0.12);
  font: 800 calc(var(--size) * 0.2)/1 var(--body); color: rgba(22, 24, 27, 0.7);
}
.tile.anchor { background: linear-gradient(180deg, var(--anchor) 55%, #CDD3D8); box-shadow: inset 0 -5px 0 #98A1A9, 0 3px 0 rgba(0, 0, 0, 0.45); }
.tile.placed { outline: 3px solid var(--amber); outline-offset: 1px; }
.tile.sm { --size: 40px; }
.tile.xs { --size: 30px; border-width: 1.5px; box-shadow: inset 0 -3px 0 var(--tile-edge), 0 2px 0 rgba(0, 0, 0, 0.45); }

/* ---------- Nav (floating pill) ---------- */

.nav {
  position: fixed; z-index: 50; top: 14px; left: 0; right: 0;
  pointer-events: none;
}
.nav .bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: 18px;
  max-width: 980px; margin: 0 auto;
  padding: 8px 8px 8px 12px;
  background: rgba(36, 38, 42, 0.78);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1.5px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.nav-wrap { padding: 0 var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; }
.brand img { width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--outline); }
.brand b { font: 400 22px/1 var(--display); letter-spacing: 0.02em; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 12px; color: var(--text-2); font-weight: 800; font-size: 15px; text-decoration: none; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav .btn { margin-left: 4px; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}

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

.hero {
  position: relative;
  min-height: min(100vh, 940px);
  padding: 130px 0 70px;
  display: flex; align-items: center;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 30% 35%, rgba(244, 174, 63, 0.10), transparent 70%),
    radial-gradient(50% 60% at 78% 55%, rgba(159, 216, 255, 0.07), transparent 70%),
    linear-gradient(180deg, var(--bg-top), var(--bg) 60%);
}
.snowfall { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(50px, 6.4vw, 88px); }
.hero h1 .line2 { display: block; color: var(--amber); }
.hero .lede { margin-top: 22px; max-width: 30em; font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); }
.hero .ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero .meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--text-3); font-size: 14px; font-weight: 800; }
.hero .meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero .meta svg { width: 16px; height: 16px; color: var(--amber); }

.hero-art { position: relative; justify-self: center; width: min(100%, 420px); }
.phone {
  position: relative;
  width: 100%; max-width: 330px; margin-left: auto;
  aspect-ratio: 660 / 1434;
  padding: 11px;
  border-radius: 56px;
  background: linear-gradient(145deg, #3A3D44, #121316 40%, #2A2C31);
  border: 2px solid var(--outline);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08), 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: rotate(3deg);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 45px; background: var(--bg); }
.hero-fox {
  position: absolute; left: -30%; bottom: -3%;
  width: 72%;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5));
}
.hill {
  position: relative;
  aspect-ratio: 2.4 / 1;
}
.hill::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  border-radius: 50%;
  background: radial-gradient(100% 100% at 50% 20%, #F4F7FA, #C9D2DC 75%);
  border: 2.5px solid var(--outline);
  box-shadow: inset 0 -8px 0 rgba(120, 138, 160, 0.35);
}
.hill canvas { position: absolute; left: 50%; bottom: 23%; width: 78%; transform: translateX(-50%); cursor: pointer; }
.bubble {
  position: absolute; z-index: 2;
  padding: 10px 14px;
  background: #F4F6F8;
  color: var(--ink);
  font: 800 15px/1.3 var(--body);
  border: 2px solid var(--outline);
  border-radius: 16px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
  max-width: 230px;
  transition: opacity 0.25s, transform 0.25s;
}
.bubble::after {
  content: ""; position: absolute; left: 28px; bottom: -9px;
  width: 14px; height: 14px; background: #F4F6F8;
  border-right: 2px solid var(--outline); border-bottom: 2px solid var(--outline);
  transform: rotate(45deg);
}
.hero-fox .bubble { left: 34%; top: -12%; }
.bubble.hide { opacity: 0; transform: translateY(6px); }

@media (max-width: 900px) {
  .hero { padding-top: 116px; min-height: 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .hero-art { width: min(100%, 380px); }
  .phone { margin: 0 auto; max-width: 280px; transform: rotate(2deg); }
  .hero-fox { left: -6%; width: 58%; }
}

/* ---------- Sections ---------- */

section { position: relative; }
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(40px, 5.4vw, 66px); margin-top: 14px; }
.section-head p { margin-top: 16px; color: var(--text-2); font-size: clamp(17px, 1.5vw, 19px); }
.band { background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.05)); border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); }

/* ---------- Try it (demo) ---------- */

.demo {
  display: grid; grid-template-columns: 320px 1fr; gap: 0;
  overflow: hidden;
  max-width: 980px; margin: 0 auto;
}
.demo-side {
  position: relative;
  padding: 26px 22px 22px;
  border-right: 2px solid var(--outline);
  background: linear-gradient(180deg, #24262B, #1D1F23);
  display: flex; flex-direction: column;
}
.demo-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { padding: 10px 12px 9px; text-align: center; }
.stat b { display: block; font: 400 34px/1 var(--display); }
.stat small { display: block; margin-top: 4px; font: 800 11px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.demo-stage { position: relative; margin-top: auto; padding-top: 74px; }
.demo-stage .bubble { left: 6px; right: 6px; top: 0; max-width: none; }
.demo-stage .bubble::after { left: 46%; }
.demo-stage .hill { aspect-ratio: 2 / 1; }
.demo-stage .hill canvas { width: 92%; bottom: 22%; }

.demo-main { padding: 26px clamp(18px, 3vw, 34px) 28px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.demo-top h3 { font-size: 26px; }
.demo-top p { color: var(--text-3); font-size: 14px; font-weight: 800; }
.slots {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px;
  padding: 12px;
}
.slot {
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--cell);
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.35), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  display: grid; place-items: center;
}
.slot .tile { --size: 100%; width: 100%; height: 100%; font-size: clamp(22px, 4vw, 34px); border-radius: 12px; }
.slot .tile sub { font-size: clamp(9px, 1.3vw, 12px); }
.slots.good .tile { outline: 3px solid var(--amber); outline-offset: 1px; }
.slots.shake { animation: shake 0.42s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.rack {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px;
  padding: 12px;
  background: linear-gradient(180deg, #2E3035, #26282C);
  border: 2px solid var(--outline);
  border-radius: 20px;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.07);
}
.rack .tile {
  --size: 100%; width: 100%; height: auto; aspect-ratio: 1;
  font-size: clamp(24px, 4.4vw, 36px); border-radius: 12px;
  cursor: pointer;
  transition: transform 0.14s cubic-bezier(.3, 1.6, .5, 1), opacity 0.14s;
}
.rack .tile sub { font-size: clamp(9px, 1.3vw, 12px); }
.rack .tile:hover { transform: translateY(-3px) rotate(-2deg); }
.rack .tile.used { opacity: 0; pointer-events: none; transform: scale(0.7); }
.pop { animation: pop 0.28s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes pop { from { transform: scale(0.6) rotate(-6deg); } to { transform: none; } }
.demo-actions { display: grid; grid-template-columns: auto auto 1fr; gap: 12px; }
.demo-actions .play { width: 100%; font-size: 24px; }
.demo-actions .play .pts {
  display: inline-grid; place-items: center; min-width: 46px; height: 30px; padding: 0 8px;
  border-radius: 99px; background: rgba(255, 255, 255, 0.45); font-size: 18px;
}
.found { display: flex; flex-wrap: wrap; gap: 8px; min-height: 34px; align-items: center; }
.found .empty { color: var(--text-3); font-size: 14px; font-weight: 800; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 12px;
  font: 400 16px/1.2 var(--display); letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.07);
  border: 1.5px solid var(--line);
  border-radius: 99px;
}
.chip i { font-style: normal; font-family: var(--body); font-weight: 900; font-size: 12px; color: var(--amber); }
.chip.power { border-color: rgba(244, 174, 63, 0.6); background: var(--amber-dim); }
.demo-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--text-3); font-size: 14px; font-weight: 700; }
.demo-foot kbd { font: 800 12px/1 var(--body); padding: 3px 6px; border-radius: 6px; border: 1.5px solid var(--line); color: var(--text-2); }

@media (max-width: 860px) {
  .demo { grid-template-columns: 1fr; }
  .demo-side { border-right: 0; border-bottom: 2px solid var(--outline); display: grid; grid-template-columns: 1fr 1.1fr; gap: 14px; align-items: end; padding: 18px; }
  .demo-stats { grid-template-columns: 1fr; }
  .demo-stage { margin: 0; padding-top: 70px; }
}
@media (max-width: 520px) {
  .slots, .rack { gap: 4px; padding: 7px; }
  .rack .tile, .slot .tile { font-size: 21px; border-radius: 9px; border-width: 1.5px; box-shadow: inset 0 -3px 0 var(--tile-edge), 0 2px 0 rgba(0, 0, 0, 0.45); }
  .rack .tile sub, .slot .tile sub { font-size: 8px; right: 3px; bottom: 4px; }
  .rack .tile span, .slot .tile span { transform: translate(-1px, -2px); }
  .demo-actions { gap: 8px; }
  .demo-actions .btn-icon { width: 50px; }
  .demo-actions .play { font-size: 20px; padding: 0 12px; }
  .demo-side { grid-template-columns: 0.8fr 1.2fr; gap: 10px; padding: 14px; }
  .demo-stats { grid-template-columns: 1fr; gap: 8px; }
  .stat b { font-size: 26px; }
  .demo-stage { padding-top: 82px; }
  .demo-stage .bubble { left: -4px; right: -4px; font-size: 13px; padding: 8px 10px; }
  .demo-main { padding: 18px 14px 20px; gap: 16px; }
}

/* ---------- Bento features ---------- */

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.feature { padding: 28px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.feature h3 { font-size: 30px; }
.feature p { color: var(--text-2); font-size: 16px; }
.feature .visual { margin-top: auto; padding-top: 18px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-2, .span-3 { grid-column: span 1; }
  .span-4 { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .span-2, .span-3, .span-4 { grid-column: span 1; }
}

.goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.goal { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
.goal img, .goal > svg { width: 52px; height: 52px; flex: none; }
.goal b { display: block; font: 400 21px/1.1 var(--display); letter-spacing: 0.02em; }
.goal small { display: block; color: var(--text-3); font-weight: 700; font-size: 14px; line-height: 1.3; margin-top: 4px; }
@media (max-width: 760px) { .goals { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .goals { grid-template-columns: 1fr; } }

.powers { display: flex; flex-direction: column; gap: 10px; }
.power { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 12px 12px; }
.power .word { display: flex; gap: 3px; flex-wrap: wrap; }
.power .word .tile { --size: 28px; font-size: 16px; border-width: 1.5px; border-radius: 7px; box-shadow: inset 0 -3px 0 var(--tile-edge); }
.power .badge { display: inline-flex; align-items: center; gap: 6px; font: 400 17px/1 var(--display); color: var(--amber-light); white-space: nowrap; }
.power .badge small { font: 800 12px/1 var(--body); color: var(--text-3); letter-spacing: 0.04em; text-transform: uppercase; margin-left: 4px; }
.power .badge svg, .power .badge img { width: 20px; height: 20px; }

.sprite-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sprite-cell { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 10px; text-align: center; }
.sprite-cell img { width: 48px; height: 48px; }
.sprite-cell b { font: 400 15px/1.1 var(--display); letter-spacing: 0.03em; }
.sprite-cell small { color: var(--text-3); font-weight: 700; font-size: 12px; line-height: 1.3; }

.jokers { display: grid; grid-template-columns: 1fr; gap: 10px; }
.joker { display: flex; gap: 12px; align-items: center; padding: 12px; }
.joker .icon { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(180deg, var(--amber-light), var(--amber)); border: 2px solid var(--outline); box-shadow: 0 3px 0 var(--amber-deep); }
.joker .icon img { width: 34px; height: 34px; }
.joker b { display: block; font: 400 17px/1.1 var(--display); letter-spacing: 0.02em; }
.joker small { display: block; color: var(--text-3); font-weight: 700; font-size: 13px; line-height: 1.3; margin-top: 2px; }

.map-peek { position: relative; height: 250px; overflow: hidden; border-radius: 18px; border: 2px solid var(--outline); }
.map-peek img { width: 100%; position: absolute; top: -40%; left: 0; }
.map-peek::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, var(--surface-bottom)); }

.tiers { display: flex; flex-direction: column; gap: 9px; }
.tier { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center; font: 800 13px/1 var(--body); color: var(--text-2); }
.tier .track { position: relative; height: 14px; border-radius: 99px; background: var(--well); box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.4); }
.tier .range { position: absolute; top: 2px; bottom: 2px; border-radius: 99px; background: linear-gradient(90deg, var(--amber-deep), var(--amber), var(--amber-light)); }
.tier .range.boss { background: linear-gradient(90deg, #8E3327, var(--danger)); }
.tier-axis { display: grid; grid-template-columns: 92px 1fr; gap: 12px; font: 800 11px/1 var(--body); color: var(--text-3); }
.tier-axis div { display: flex; justify-content: space-between; }

.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.perk { display: flex; align-items: center; gap: 10px; padding: 12px; font-weight: 800; font-size: 15px; }
.perk svg { width: 22px; height: 22px; color: var(--amber); flex: none; }

/* ---------- Cast (character design, Royal Match style) ---------- */

.cast { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.hero-card { grid-row: span 2; padding: 0; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.hero-card .stage {
  position: relative; min-height: 340px;
  background:
    radial-gradient(70% 70% at 50% 30%, rgba(159, 216, 255, 0.16), transparent 70%),
    linear-gradient(180deg, #2B3340, #22262D);
  border-bottom: 2px solid var(--outline);
  overflow: hidden;
}
.hero-card .stage .snowfall { opacity: 0.8; }
.hero-card .stage .hill { position: absolute; left: 8%; right: 8%; bottom: -16%; }
.hero-card .stage .hill canvas { width: 70%; bottom: 30%; }
.hero-card .copy { padding: 28px 30px 30px; }
.char-name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.char-name h3 { font-size: 40px; }
.char-role { margin-top: 4px; color: var(--amber); font: 400 16px/1.2 var(--display); letter-spacing: 0.06em; text-transform: uppercase; }
.char-copy { margin-top: 14px; color: var(--text-2); }
.traits { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.trait { padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); border: 1.5px solid var(--line); font-weight: 800; font-size: 14px; color: var(--text-2); }

.boss-card { display: grid; grid-template-columns: 150px 1fr; gap: 0; overflow: hidden; }
.boss-card .portrait {
  display: grid; place-items: center;
  border-right: 2px solid var(--outline);
}
.boss-card .portrait img { width: 96px; height: auto; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, 0.4)); }
.boss-card.crow .portrait { background: radial-gradient(80% 80% at 50% 40%, rgba(122, 112, 160, 0.4), transparent 70%), #24222C; }
.boss-card.wolf .portrait { background: radial-gradient(80% 80% at 50% 40%, rgba(94, 117, 80, 0.45), transparent 70%), #222A22; }
.boss-card .copy { padding: 22px 24px; }
.boss-card .char-name h3 { font-size: 30px; }
.boss-card .char-copy { font-size: 15px; margin-top: 10px; }
.boss-move { margin-top: 14px; display: flex; gap: 10px; align-items: center; padding: 10px 12px; font-size: 14px; font-weight: 800; color: var(--text-2); }
.boss-move img { width: 30px; height: 30px; flex: none; }
@media (max-width: 900px) {
  .cast { grid-template-columns: 1fr; }
  .hero-card { grid-row: auto; }
}
@media (max-width: 480px) {
  .boss-card { grid-template-columns: 1fr; }
  .boss-card .portrait { border-right: 0; border-bottom: 2px solid var(--outline); padding: 22px; }
}

/* ---------- World (chapters) ---------- */

.chapters { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.chapter { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.chapter img { width: 54px; height: auto; flex: none; }
.chapter .num { font: 400 14px/1 var(--display); color: var(--amber); letter-spacing: 0.06em; text-transform: uppercase; }
.chapter h3 { font-size: 26px; margin-top: 4px; }
.chapter p { color: var(--text-3); font-size: 14px; font-weight: 700; margin-top: 4px; }
.chapter.soon { border-style: dashed; border-color: rgba(255, 255, 255, 0.18); background: transparent; box-shadow: none; }
.chapter.soon .q { width: 54px; height: 54px; flex: none; display: grid; place-items: center; font: 400 30px/1 var(--display); color: var(--text-3); border-radius: 50%; border: 2px dashed rgba(255, 255, 255, 0.2); }
@media (max-width: 720px) { .chapters { grid-template-columns: 1fr; } }

/* ---------- Screens gallery ---------- */

.screens {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.screen { text-align: center; }
.screen .phone { max-width: 250px; margin: 0 auto; padding: 8px; border-radius: 42px; transform: none; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45); }
.screen .phone img { border-radius: 34px; }
.screen:nth-child(odd) .phone { transform: translateY(24px); }
.screen h3 { margin-top: 22px; font-size: 22px; }
.screen p { color: var(--text-3); font-size: 14px; font-weight: 700; margin-top: 4px; }
.screen:nth-child(odd) h3 { margin-top: 46px; }
@media (max-width: 960px) {
  .screens {
    display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 30px;
    scrollbar-width: none;
  }
  .screens::-webkit-scrollbar { display: none; }
  .screen { flex: 0 0 min(62vw, 250px); scroll-snap-align: center; }
  .screen:nth-child(odd) .phone { transform: none; }
  .screen:nth-child(odd) h3 { margin-top: 22px; }
}

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { padding: 0; border-radius: 20px; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 16px;
  padding: 20px 22px;
  font: 400 21px/1.25 var(--display); letter-spacing: 0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; flex: none;
  width: 34px; height: 34px; display: grid; place-items: center;
  font: 400 24px/1 var(--display); color: var(--ink);
  background: linear-gradient(180deg, var(--amber-light), var(--amber));
  border: 2px solid var(--outline); border-radius: 11px;
  box-shadow: 0 3px 0 var(--amber-deep);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 22px; color: var(--text-2); }
.faq .answer p + p { margin-top: 10px; }

/* ---------- Final CTA ---------- */

.finale { text-align: center; padding: clamp(90px, 12vw, 150px) 0 0; overflow: hidden; }
.finale h2 { font-size: clamp(44px, 6.4vw, 80px); }
.finale p { margin: 18px auto 0; max-width: 34em; color: var(--text-2); font-size: 19px; }
.finale .ctas { margin-top: 32px; display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
.snowfield { position: relative; margin-top: 60px; height: clamp(170px, 22vw, 260px); }
.snowfield::before {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -60%; height: 120%;
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;
  background: linear-gradient(180deg, #F4F7FA, #C9D2DC 50%);
  border-top: 3px solid var(--outline);
  box-shadow: inset 0 10px 0 rgba(255, 255, 255, 0.5);
}
.snowfield canvas { position: absolute; left: 50%; bottom: 33%; width: min(860px, 140%); transform: translateX(-50%); cursor: pointer; }

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

.footer { background: var(--bg-deep); border-top: 3px solid var(--outline); padding: 46px 0 40px; color: var(--text-3); font-size: 14px; font-weight: 700; }
.footer .row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer .links a { color: var(--text-2); }
.footer .fine { margin-top: 26px; padding-top: 22px; border-top: 1.5px solid var(--line); }

/* ---------- Legal / support pages ---------- */

.doc { padding: 140px 0 100px; }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(44px, 6vw, 64px); }
.doc .updated { margin-top: 10px; color: var(--text-3); font-weight: 800; font-size: 14px; }
.doc .body { margin-top: 36px; padding: clamp(22px, 4vw, 40px); }
.doc h2 { font-size: 28px; margin: 34px 0 10px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--text-2); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 10px 0 0; }
.doc li + li { margin-top: 6px; }
.doc ul + p { margin-top: 12px; }
.doc strong { color: var(--text); }

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

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(3deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float, .pop, .slots.shake { animation: none; }
}

@media (hover: none) { .kbd-hint { display: none; } }
