/* Linebeast website. Tokens from the Linebeast Design System (day look; the worlds band uses the night look).
   Layout: a 1160px column, generous vertical rhythm, cards and buttons with the game's press edge. */
:root {
  --ground: #d3dcfb; --sky-top: #c3c8f5; --sky-bottom: #dff0fd; --panel: #fbfcff; --board: #eef1fd; --well: #dde3f8;
  --ink: #2b2a57; --muted: #6c6a9a; --accent: #ffc14d; --accent-deep: #e09a1a; --accent-on: #1d1408;
  --accent-ink: #a35700; --accent-big: #c46a00; --good: #187a44; --danger: #c8304a; --periwinkle: #a5acee;
  --night: #17131f; --night-panel: #221c2e; --night-board: #2a2338; --night-ink: #f4effa; --night-muted: #a99fbd;
  --b-blue: #6cc4ff; --b-blue-l: #a9ddff; --b-blue-d: #3a8fd0; --b-mint: #5fe0b0; --b-mint-l: #a2f0d2; --b-mint-d: #2fa77c;
  --b-peach: #ffa877; --b-peach-l: #ffcfb2; --b-peach-d: #d0703f; --b-lav: #b99bff; --b-lav-l: #dacbff; --b-lav-d: #7f60d6;
  --b-yel: #ffe073; --b-yel-l: #fff0b8; --b-yel-d: #c9a52c;
  --display: "Rubik Mono One", "Arial Black", Impact, sans-serif;
  --body: "Rubik", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r-card: 18px; --r-btn: 12px; --r-row: 10px; --r-big: 28px;
  --shadow-card: 0 18px 44px rgba(70, 80, 160, .22); --shadow-soft: 0 8px 24px rgba(70, 80, 160, .14);
  --gutter: 20px; --wrap: 1160px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: linear-gradient(180deg, var(--sky-top) 0, var(--sky-bottom) 900px, var(--panel) 1800px) no-repeat, var(--panel);
  color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- type ---------- */
.eyebrow { font: 800 13px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.h1 { font: 400 clamp(38px, 6.4vw, 76px)/.98 var(--display); letter-spacing: -.02em; }
.h2 { font: 400 clamp(30px, 4.4vw, 52px)/1.02 var(--display); letter-spacing: -.015em; }
.h3 { font: 400 20px/1.2 var(--display); letter-spacing: .005em; }
.lead { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.55; color: var(--muted); max-width: 34em; }
.hl { color: var(--accent-big); }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 26px; border: 0; border-radius: var(--r-btn);
  font: 400 17px/1.1 var(--display); letter-spacing: .02em; text-decoration: none; cursor: pointer; white-space: nowrap;
  background: var(--accent); color: var(--accent-on); box-shadow: 0 5px 0 var(--accent-deep); transition: transform .08s, box-shadow .08s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 0 var(--accent-deep); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--accent-deep); }
.btn-alt { background: var(--panel); color: var(--ink); box-shadow: 0 5px 0 #bcc4ea; }
.btn-alt:hover { box-shadow: 0 6px 0 #bcc4ea; }
.btn-alt:active { box-shadow: 0 1px 0 #bcc4ea; }
.btn-sm { min-height: 42px; padding: 10px 18px; font-size: 14px; box-shadow: 0 4px 0 var(--accent-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.textlink { font-weight: 700; color: var(--ink); text-underline-offset: 4px; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 30; transition: background .2s, box-shadow .2s; padding-top: env(safe-area-inset-top, 0px); }
.hdr.scrolled { background: rgba(251, 252, 255, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(70, 80, 160, .12); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 400 19px/1 var(--display); letter-spacing: .01em; color: var(--ink); }
.logo img { border-radius: 11px; box-shadow: 0 4px 12px rgba(70, 80, 160, .25); }
.logo em { font-style: normal; color: var(--accent-big); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); }
.nav a:not(.btn):hover { background: rgba(255, 255, 255, .6); }
.nav a[aria-current="page"] { background: var(--panel); box-shadow: var(--shadow-soft); }
.nav .btn { margin-left: 10px; }
.menu-btn { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--panel); box-shadow: var(--shadow-soft); cursor: pointer; padding: 13px 12px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 3px; border-radius: 3px; background: var(--ink); transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { padding-block: 28px 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero-copy { display: grid; gap: 26px; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: rgba(251, 252, 255, .78); font: 700 13px/1.2 var(--body); color: var(--ink); box-shadow: 0 2px 8px rgba(70, 80, 160, .1); }
.chip i { width: 10px; height: 10px; border-radius: 3px; background: var(--b-mint); box-shadow: inset 0 -2px 0 var(--b-mint-d); }
.chip i.y { background: var(--b-yel); box-shadow: inset 0 -2px 0 var(--b-yel-d); }
.chip i.l { background: var(--b-lav); box-shadow: inset 0 -2px 0 var(--b-lav-d); }
.hero-note { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; font-weight: 600; color: var(--muted); }
.hero-note span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--b-blue); margin-right: 8px; vertical-align: 1px; }
.hero-art { position: relative; min-width: 0; justify-self: center; width: min(100%, 470px); aspect-ratio: 470 / 600; }
.window { position: absolute; inset: 0 0 0 52px; border-radius: 230px 230px var(--r-big) var(--r-big); overflow: hidden; background: #2b2440 url("img/world-swamp.webp") center / cover no-repeat;
  box-shadow: 0 30px 70px rgba(43, 42, 87, .32), 0 0 0 10px rgba(251, 252, 255, .65); }
.window canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone { position: absolute; left: 0; bottom: -22px; width: 46%; aspect-ratio: 9 / 19.4; border-radius: 34px; padding: 9px; background: #1b1830;
  box-shadow: 0 26px 60px rgba(27, 24, 48, .45), inset 0 0 0 2px #3a3560; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 26px; }
.phone::before { content: ""; position: absolute; top: 15px; left: 50%; width: 34%; height: 15px; transform: translateX(-50%); border-radius: 10px; background: #1b1830; z-index: 1; }
.peek { position: absolute; width: 27%; filter: drop-shadow(0 12px 18px rgba(43, 42, 87, .3)); animation: bob 5.5s ease-in-out infinite; }
.peek-1 { right: -16px; bottom: 16%; }
.peek-2 { right: 18%; top: -28px; width: 21%; animation-delay: -2.5s; }
.tile { position: absolute; width: 34px; height: 34px; border-radius: 9px; border: 3px solid var(--b-blue-d); background: linear-gradient(135deg, var(--b-blue-l) 0 24%, var(--b-blue) 24%);
  animation: bob 6s ease-in-out infinite; }
.tile.mint { border-color: var(--b-mint-d); background: linear-gradient(135deg, var(--b-mint-l) 0 24%, var(--b-mint) 24%); }
.tile.peach { border-color: var(--b-peach-d); background: linear-gradient(135deg, var(--b-peach-l) 0 24%, var(--b-peach) 24%); }
.tile.lav { border-color: var(--b-lav-d); background: linear-gradient(135deg, var(--b-lav-l) 0 24%, var(--b-lav) 24%); }
.tile.yel { border-color: var(--b-yel-d); background: linear-gradient(135deg, var(--b-yel-l) 0 24%, var(--b-yel) 24%); }
.t1 { left: 4%; top: 18%; animation-delay: -1s; } .t2 { left: 12%; top: 9%; width: 26px; height: 26px; animation-delay: -3s; }
.t3 { right: -4%; top: 36%; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(2deg); } }

/* ---------- facts bar ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 64px; }
.fact { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--r-card); background: rgba(251, 252, 255, .82); box-shadow: var(--shadow-soft); min-width: 0; }
.fact b { display: block; font: 400 17px/1.15 var(--display); }
.fact span { font-size: 14px; color: var(--muted); line-height: 1.35; }
.fact .tile { position: static; flex: none; animation: none; width: 30px; height: 30px; }

/* ---------- sections ---------- */
.sec { padding-block: 104px; }
.sec-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: 52px; }
.sec-head.center { text-align: center; margin-inline: auto; justify-items: center; }
.sec-tight { padding-block: 72px; }

/* how it plays */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.step { background: var(--panel); border-radius: var(--r-big); padding: 26px 24px 28px; box-shadow: var(--shadow-card); display: grid; gap: 14px; align-content: start; min-width: 0; }
.step-num { font: 400 14px/1 var(--display); color: var(--muted); letter-spacing: .08em; }
.step p { color: var(--muted); }
.mini { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; padding: 10px; border-radius: 16px; background: #4a5596; margin-bottom: 6px; aspect-ratio: 1; }
.mini i { border-radius: 7px; background: #5b67aa; }
.mini i.b { background: linear-gradient(135deg, var(--b-blue-l) 0 24%, var(--b-blue) 24%); box-shadow: inset 0 0 0 2px var(--b-blue-d); }
.mini i.m { background: linear-gradient(135deg, var(--b-mint-l) 0 24%, var(--b-mint) 24%); box-shadow: inset 0 0 0 2px var(--b-mint-d); }
.mini i.p { background: linear-gradient(135deg, var(--b-peach-l) 0 24%, var(--b-peach) 24%); box-shadow: inset 0 0 0 2px var(--b-peach-d); }
.mini i.l { background: linear-gradient(135deg, var(--b-lav-l) 0 24%, var(--b-lav) 24%); box-shadow: inset 0 0 0 2px var(--b-lav-d); }
.mini i.y { background: linear-gradient(135deg, var(--b-yel-l) 0 24%, var(--b-yel) 24%); box-shadow: inset 0 0 0 2px var(--b-yel-d); }
.mini i.g { background: rgba(255, 240, 184, .9); box-shadow: 0 0 0 2px var(--accent), 0 0 14px rgba(255, 193, 77, .8); }
.mini i.ghost { background: rgba(169, 221, 255, .35); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.mini img { position: absolute; width: 38%; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .3)); }
.mini .m1 { left: 36%; top: 34%; } .mini .m2 { left: 35%; top: 35%; width: 31%; } .mini .m3 { left: 34%; top: 33%; width: 33%; }

/* worlds band */
.band-night { background: var(--night); color: var(--night-ink); border-radius: 48px; margin-inline: 12px; position: relative; overflow: hidden; }
.band-night .lead, .band-night .muted { color: var(--night-muted); }
.band-night .eyebrow { color: var(--accent); }
.worlds-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 18px; overflow-x: auto; padding: 6px var(--gutter) 22px; margin-inline: calc(-1 * var(--gutter));
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.worlds-row::-webkit-scrollbar { display: none; }
.wcard { scroll-snap-align: start; position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 9 / 15; background: var(--night-board); box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.wcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.wcard:hover img { transform: scale(1.04); }
.wcard figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 18px 18px; background: linear-gradient(180deg, transparent, rgba(23, 19, 31, .92)); display: grid; gap: 4px; }
.wcard b { font: 400 17px/1.15 var(--display); color: #fff; }
.wcard span { font-size: 13px; font-weight: 700; color: var(--night-muted); }
.wcard .open { color: #7ee0a1; }
.row-ctrl { display: flex; gap: 10px; }
.row-ctrl button { width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--night-board); color: var(--night-ink); font: 400 18px/1 var(--display); cursor: pointer; }
.row-ctrl button:hover { background: #352c47; }
.band-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.band-head .sec-head { margin-bottom: 0; }

/* monsters */
.beasts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.beast { background: var(--panel); border-radius: var(--r-card); padding: 22px; box-shadow: var(--shadow-soft); display: grid; gap: 10px; align-content: start; min-width: 0; }
.beast img { width: 92px; height: 92px; object-fit: contain; margin-bottom: 4px; }
.beast p { font-size: 15px; color: var(--muted); line-height: 1.45; }
.beast.boss { background: linear-gradient(160deg, #fff3d6, #ffe2b0); }
.beast.boss p { color: #5a4a2a; }

/* companions */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.crowd { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 28px; border-radius: var(--r-big); background: var(--panel); box-shadow: var(--shadow-card); }
.crowd figure { margin: 0; display: grid; justify-items: center; gap: 6px; min-width: 0; }
.crowd img { width: 100%; max-width: 110px; aspect-ratio: 1; object-fit: contain; }
.crowd figcaption { font: 700 12px/1.2 var(--body); color: var(--muted); text-align: center; overflow-wrap: anywhere; }
.crowd-count { position: absolute; right: -14px; top: -18px; background: var(--accent); color: var(--accent-on); border-radius: 16px; padding: 10px 16px; font: 400 15px/1.1 var(--display);
  box-shadow: 0 5px 0 var(--accent-deep); transform: rotate(3deg); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.ticks li::before { content: ""; width: 22px; height: 22px; margin-top: 3px; border-radius: 6px; background: linear-gradient(135deg, var(--b-mint-l) 0 24%, var(--b-mint) 24%); box-shadow: inset 0 0 0 2px var(--b-mint-d); }
.ticks b { display: block; }
.ticks span { color: var(--muted); font-size: 16px; }

/* every day */
.modes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.mode { grid-column: span 2; background: var(--panel); border-radius: var(--r-big); padding: 26px; box-shadow: var(--shadow-soft); display: grid; gap: 10px; align-content: start; min-width: 0; }
.mode.big { grid-column: span 3; grid-template-columns: minmax(0, 1fr) 150px; gap: 20px; align-items: center; }
.mode.big .shot { border-radius: 20px; overflow: hidden; box-shadow: 0 14px 30px rgba(43, 42, 87, .25); border: 5px solid #1b1830; }
.mode p { color: var(--muted); font-size: 16px; }
.tag { justify-self: start; font: 800 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--board); color: var(--ink); }
.tag.y { background: #fff0c9; } .tag.g { background: #dff6e9; } .tag.p { background: #f0e8ff; }

/* care */
.care { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.care > div { padding: 24px; border-radius: var(--r-card); background: var(--board); display: grid; gap: 8px; align-content: start; }
.care b { font: 400 17px/1.2 var(--display); }
.care p { color: var(--muted); font-size: 16px; }

/* ---------- inner pages ---------- */
.phero { padding-block: 40px 56px; }
.phero .wrap { display: grid; gap: 20px; }
.phero .wrap > * { max-width: 900px; }
.prose { max-width: 760px; display: grid; gap: 18px; }
.prose h2 { font: 400 26px/1.15 var(--display); margin-top: 22px; }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.prose p, .prose li { color: #3d3c6b; }
.card { background: var(--panel); border-radius: var(--r-big); box-shadow: var(--shadow-card); padding: clamp(24px, 4vw, 44px); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.shots figure { margin: 0; display: grid; gap: 10px; }
.shots img { border-radius: 22px; border: 6px solid #1b1830; box-shadow: 0 14px 30px rgba(43, 42, 87, .25); }
.shots figcaption { font-size: 14px; color: var(--muted); text-align: center; }
.wgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.wgrid .wcard { aspect-ratio: 9 / 13; }
.wgrid .wcard p { font-size: 14px; color: #e3dcf0; line-height: 1.4; }
.facts-table { width: 100%; border-collapse: collapse; }
.facts-table th, .facts-table td { text-align: left; padding: 14px 4px; border-bottom: 1px solid var(--well); vertical-align: top; }
.facts-table th { width: 34%; font-weight: 700; color: var(--muted); }
.dl { display: grid; gap: 12px; }
.dl a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; background: var(--board); text-decoration: none; font-weight: 700; }
.dl a:hover { background: var(--well); }
.dl small { color: var(--muted); font-weight: 600; white-space: nowrap; }
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--panel); border-radius: 16px; box-shadow: var(--shadow-soft); padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 20px/1 var(--display); color: var(--accent-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: #3d3c6b; }
.faq details p + p { margin-top: -6px; }
.note { padding: 18px 20px; border-radius: 14px; background: #fff3d6; color: #5a4a2a; font-size: 16px; }

/* ---------- page pieces ---------- */
figure.wcard { margin: 0; }
.mode.big > div:first-child { display: grid; gap: 10px; align-content: start; }
.window canvas { opacity: 0; transition: opacity .8s; }
.window.alive canvas { opacity: 1; }
.band-foot, .care-foot { margin-top: 28px; }
.band-night .textlink { color: var(--night-ink); }
.sec-top0 { padding-top: 8px; }
.shots-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shots-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wgrid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wgrid figcaption b { font-size: 20px; }
.wlive { position: absolute; inset: 0; }
.wlive canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s; }
.wlive.alive canvas { opacity: 1; }
.wcard figcaption { z-index: 1; }
.crowd-wide { grid-template-columns: repeat(6, 1fr); padding: 36px 28px; }
.crowd-note { margin-top: 18px; text-align: center; color: var(--muted); font-size: 15px; }
.stages { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: st; }
.stages li { counter-increment: st; background: var(--panel); border-radius: var(--r-card); padding: 22px 20px; box-shadow: var(--shadow-soft); display: grid; gap: 6px; align-content: start; position: relative; }
.stages li::before { content: counter(st); font: 400 13px/1 var(--display); color: var(--accent-ink); }
.stages b { font: 400 18px/1.15 var(--display); }
.stages span { color: var(--muted); font-size: 15px; line-height: 1.4; }
.cta-card { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--panel), #eef0ff); }
.cta-card > div { display: grid; gap: 10px; }
.faq-h { font: 400 22px/1.2 var(--display); margin: 26px 0 4px; }
.faq-h:first-child { margin-top: 0; }
.faq a, .note a { font-weight: 700; }
.press-side { display: grid; gap: 22px; align-content: start; }
.press-blurb { color: #3d3c6b; margin-top: 14px; }
.card .h3 + .facts-table, .card .h3 + .dl { margin-top: 14px; }
.card .muted { margin-top: 10px; font-size: 16px; }
.care-1 { grid-template-columns: 1fr 1fr; }
.press-note, .support-note { margin-top: 32px; max-width: 820px; }
@media (max-width: 1080px) {
  .shots-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wgrid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .crowd-wide { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 920px) {
  .wgrid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .care-1 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .shots-5, .shots-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wgrid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .wgrid-4 .wcard p { display: none; }
  .wgrid-4 figcaption b { font-size: 15px; }
  .stages { grid-template-columns: 1fr 1fr; }
  .crowd-wide { grid-template-columns: repeat(3, 1fr); padding: 22px 16px; }
  .cta-card .btn { width: 100%; }
}

/* ---------- motion and life ---------- */
[hidden] { display: none !important; }
@view-transition { navigation: auto; }
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }
canvas.live { display: block; }
.beast canvas.live { width: 124px; height: 150px; margin: -58px 0 -6px -16px; cursor: pointer; touch-action: manipulation; }
.beast { transition: transform .25s, box-shadow .25s; }
.beast:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.crowd canvas.live { width: 100%; max-width: 128px; aspect-ratio: .74; margin-top: -42%; cursor: pointer; position: relative; }
.crowd figure { transition: transform .2s; }
.peek.live { aspect-ratio: .74; height: auto; }
.peek-2.live { top: -90px; }
.peek-1.live { width: 36%; } .peek-2.live { width: 27%; }
@media (min-width: 600px) { .peek-1.live { right: -30px; } }
.fact b span { font: inherit; color: inherit; line-height: inherit; }
.window, .phone, .peek, .tile { will-change: translate; }
.wcard { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; transform-style: preserve-3d; }
.wcard::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, .22), transparent 55%); }
.wcard:hover::after { opacity: 1; }
.wcard:hover { box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.logo img { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.logo:hover img { transform: rotate(-8deg) scale(1.08); }
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); }
.btn:not(.btn-alt):hover::after { transform: translateX(120%); transition: transform .7s ease; }
.band-night::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 28% 72%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 46% 12%, #ffe9b0 50%, transparent 52%),
    radial-gradient(1px 1px at 63% 38%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 81% 22%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 92% 64%, #ffe9b0 50%, transparent 52%),
    radial-gradient(1px 1px at 8% 86%, #fff 50%, transparent 52%), radial-gradient(1.5px 1.5px at 72% 88%, #fff 50%, transparent 52%), radial-gradient(1px 1px at 37% 44%, #fff 50%, transparent 52%);
  animation: twinkle 5s ease-in-out infinite alternate; }
.band-night > .wrap { position: relative; }
@keyframes twinkle { from { opacity: .25; } to { opacity: .65; } }
.hl-wiggle { display: inline-block; animation: wiggle 6s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes wiggle { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-4deg) scale(1.04); } 94% { transform: rotate(3deg); } 97% { transform: rotate(-1deg); } }

/* the little shy one that follows you around */
.buddy { position: fixed; left: 0; top: 0; width: 96px; height: 132px; z-index: 25; pointer-events: none; will-change: transform; }
.buddy canvas { width: 96px; height: 132px; display: block; filter: drop-shadow(0 8px 10px rgba(43, 42, 87, .28)); }
.buddy-say { position: absolute; bottom: 78%; left: 50%; transform: translate(-50%, 6px) scale(.6); opacity: 0; white-space: nowrap; background: var(--panel); color: var(--ink);
  font: 700 13px/1 var(--body); padding: 8px 11px; border-radius: 12px; box-shadow: var(--shadow-soft); transition: opacity .2s, transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.buddy-say::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--panel); }
.buddy.talk .buddy-say { opacity: 1; transform: translate(-50%, -2px) scale(1); }
.buddy.edge-r .buddy-say { left: auto; right: 8px; transform: translate(0, 6px) scale(.6); transform-origin: 100% 100%; }
.buddy.edge-r.talk .buddy-say { transform: translate(0, -2px) scale(1); }
.buddy.edge-r .buddy-say::after { left: auto; right: 30px; }
.buddy.edge-l .buddy-say { left: 8px; transform: translate(0, 6px) scale(.6); transform-origin: 0 100%; }
.buddy.edge-l.talk .buddy-say { transform: translate(0, -2px) scale(1); }
.buddy.edge-l .buddy-say::after { left: 30px; }
@media print { .buddy { display: none; } }

/* footer: a companion peeks over the edge and ducks when you come close */
.ftr { position: relative; }
.peek-box { position: absolute; right: 9%; top: -66px; width: 120px; height: 66px; overflow: hidden; pointer-events: auto; }
.peek-box canvas, .peek-box img { position: absolute; left: 0; top: -58px; width: 120px; height: 160px; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.peek-box.duck canvas, .peek-box.duck img { transform: translateY(112px); }

/* try it: the playable first levels */
.try { display: none; }
.js .try { display: block; }
.try-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.try-copy { margin-bottom: 0; }
.demo { justify-self: center; width: min(100%, 470px); background: var(--panel); border-radius: 30px; padding: 18px; box-shadow: var(--shadow-card), 0 0 0 8px rgba(255, 255, 255, .6); display: grid; gap: 12px; position: relative; }
.demo-top { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; font-weight: 700; }
.demo-moves { white-space: nowrap; }
.demo-level { font: 400 15px/1.2 var(--display); }
.demo-moves { font-size: 14px; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.demo-goal { display: grid; gap: 6px; font-size: 14px; color: var(--muted); font-weight: 600; }
.demo-meter { height: 10px; border-radius: 6px; background: var(--well); overflow: hidden; }
.demo-meter i { display: block; height: 100%; width: 100%; border-radius: 6px; background: linear-gradient(90deg, #ff5d73, #ffa877); transition: width .5s cubic-bezier(.2, .7, .2, 1); }
.demo-stage { position: relative; }
.demo-board { display: block; width: 100%; aspect-ratio: 1; border-radius: 22px; touch-action: none; cursor: crosshair; background: #4a5596; }
.demo-board:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.demo-tray { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; min-height: 104px; }
.demo-piece { border: 0; border-radius: 16px; background: var(--board); padding: 6px; cursor: grab; touch-action: none; transition: transform .15s, background .15s, opacity .2s; min-height: 96px; }
.demo-piece canvas { width: 100%; height: 88px; display: block; pointer-events: none; }
.demo-piece:hover:not(:disabled) { transform: translateY(-3px); background: var(--well); }
.demo-piece.sel { background: #fff0c9; box-shadow: inset 0 0 0 3px var(--accent); }
.demo-piece.nofit { opacity: .45; }
.demo:not(.touched) .demo-piece:first-child:not(:disabled) { animation: nudge 1.6s ease-in-out 1.2s infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 20% { transform: translateY(-8px) rotate(-3deg); } 40% { transform: translateY(0) rotate(2deg); } }
.demo-piece:disabled { cursor: default; opacity: .3; }
.demo-end { position: absolute; inset: 0; border-radius: 22px; background: rgba(27, 24, 48, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff;
  display: grid; align-content: center; justify-items: center; gap: 10px; text-align: center; padding: 24px; animation: pop-in .4s cubic-bezier(.3, 1.4, .5, 1); }
.demo-stars { font-size: 40px; letter-spacing: 6px; color: var(--accent); line-height: 1; }
.demo-end-title { font: 400 clamp(20px, 3vw, 28px)/1.1 var(--display); }
.demo-end-text { color: #d9d4ee; max-width: 26em; }
.demo-end .btn-row { justify-content: center; margin-top: 6px; }
@keyframes pop-in { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }

/* the hatchery */
.hatch-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hatch { display: none; justify-items: center; gap: 12px; padding: 28px; border-radius: var(--r-big); background: radial-gradient(circle at 50% 40%, #fff, #eef0ff 70%); box-shadow: var(--shadow-card); text-align: center; }
.js .hatch { display: grid; }
.hatch-cv { width: min(100%, 300px); aspect-ratio: 1; cursor: pointer; touch-action: manipulation; }
.hatch-line { font: 400 18px/1.25 var(--display); min-height: 2.5em; display: grid; align-items: center; }
.hatch-no { font-size: 14px; color: var(--muted); font-weight: 600; min-height: 1.4em; font-variant-numeric: tabular-nums; }
.hatch.hatched .hatch-line { color: var(--ink); animation: pop-in .4s cubic-bezier(.3, 1.4, .5, 1); }
.hatch-note { font-size: 15px; }
.hatch-grid .sec-head { margin-bottom: 0; }

@media (max-width: 920px) {
  .try-grid, .hatch-grid { grid-template-columns: 1fr; gap: 36px; }
  .peek-box { right: 6%; }
}
@media (max-width: 560px) {
  .demo { padding: 12px; border-radius: 24px; }
  .try-copy .ticks { display: none; }
  .demo-level { font-size: 13px; }
  .demo-tray { gap: 8px; min-height: 88px; }
  .demo-piece { min-height: 80px; }
  .demo-piece canvas { height: 72px; }
  .demo-end .btn-row .btn { flex: 1 1 100%; }
  .beast canvas.live { width: 92px; height: 112px; margin: -44px 0 -4px -12px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; transition: none; }
  .band-night::before, .hl-wiggle { animation: none; }
  .btn::after { display: none; }
  .wcard, .beast, .peek-box canvas, .peek-box img { transition: none; }
  @view-transition { navigation: none; }
}

/* ---------- Golden Eggs ---------- */
.egg-counter { display: grid; gap: 10px; max-width: 560px; padding: 20px 22px; border-radius: var(--r-card); background: rgba(251, 252, 255, .85); box-shadow: var(--shadow-soft); }
.egg-left { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.egg-left b { font: 400 clamp(28px, 4vw, 40px)/1 var(--display); color: var(--accent-big); font-variant-numeric: tabular-nums; }
.egg-left span { font-weight: 700; color: var(--ink); }
.egg-bar { height: 12px; border-radius: 8px; background: var(--well); overflow: hidden; }
.egg-bar i { display: block; height: 100%; width: 2%; border-radius: 8px; background: linear-gradient(90deg, #ffcf3a, #ffe9a0, #ffcf3a); background-size: 200% 100%; animation: shimmer 3s linear infinite; transition: width 1.2s cubic-bezier(.2, .7, .2, 1); }
.egg-bar i[data-tier="opal"] { background-image: linear-gradient(90deg, #ffd6ef, #d2f4ff, #dcffe9, #ffd6ef); }
.egg-bar i[data-tier="silver"] { background-image: linear-gradient(90deg, #c9d3e2, #ffffff, #c9d3e2); }
@keyframes shimmer { to { background-position: -200% 0; } }
.egg-sub { font-size: 14px; color: var(--muted); }
.egg-hero .wrap { gap: 24px; }
.shells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.shell-card { margin: 0; background: var(--panel); border-radius: var(--r-big); padding: 18px 20px 22px; box-shadow: var(--shadow-soft); display: grid; justify-items: center; text-align: center; gap: 4px; position: relative; overflow: hidden; }
.shell-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--tier, #e6e3f5); }
.shell-card.opal { --tier: linear-gradient(90deg, #ffd6ef, #d2f4ff, #dcffe9); } .shell-card.gold { --tier: #ffcf3a; } .shell-card.silver { --tier: #c9d3e2; }
.shell-card.bronze { --tier: #d98a4a; } .shell-card.jade { --tier: #5fcf9a; } .shell-card.pearl { --tier: #e9dcc6; } .shell-card.star { --tier: #2e2a6b; }
.shell-card.star { background: linear-gradient(170deg, #2b2752, #17131f); color: #f4effa; }
.shell-card.star .range, .shell-card.star figcaption span { color: #cfc6e6; }
.shell-card canvas.live { width: 160px; height: 180px; margin-top: -36px; }
.shell-card figcaption { display: grid; gap: 4px; }
.shell-card b { font: 400 18px/1.2 var(--display); }
.shell-card .range { font: 800 12px/1.2 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.shell-card figcaption span:last-child { font-size: 14px; color: var(--muted); line-height: 1.4; }
.mile { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.mile li { border-radius: 18px; padding: 18px 16px; background: var(--night-board); display: grid; gap: 6px; align-content: start; position: relative; }
.mile li::before { content: "★"; color: #ffd65a; font-size: 20px; line-height: 1; }
.mile b { font: 400 15px/1.2 var(--display); color: #fff; }
.mile span { font-size: 13px; color: var(--night-muted); }
.mile li.big { background: linear-gradient(160deg, #3a2f63, #2a2338); box-shadow: inset 0 0 0 2px #ffd65a55; }
.polish { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.polish figure { margin: 0; background: var(--panel); border-radius: var(--r-card); box-shadow: var(--shadow-soft); padding: 10px 10px 16px; display: grid; justify-items: center; text-align: center; }
.polish canvas.live { width: 100%; max-width: 160px; aspect-ratio: .82; }
.polish figcaption { font-size: 14px; font-weight: 700; color: var(--muted); }
.lookup { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: center; }
.lookup .sec-head { margin-bottom: 0; }
.lookup-label { font: 800 12px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.lookup-row { display: flex; gap: 12px; flex-wrap: wrap; }
.lookup-row input { flex: 1 1 200px; min-height: 52px; border: 2px solid var(--well); border-radius: var(--r-btn); padding: 0 16px; font: 700 20px/1 var(--body); color: var(--ink); background: var(--board); font-variant-numeric: tabular-nums; }
.lookup-row input:focus { outline: 3px solid var(--accent); outline-offset: 2px; border-color: transparent; }
.lookup-out { min-height: 3em; font-weight: 600; color: var(--ink); }
.lookup-cv { width: 100%; max-width: 300px; aspect-ratio: .82; justify-self: center; display: none; }
.js .lookup.found .lookup-cv { display: block; }
.band-gold { background: linear-gradient(160deg, #fff6dc, #ffe7ad 60%, #ffd98a); border-radius: 48px; margin-inline: 12px; overflow: hidden; position: relative; }
.band-gold .egg-counter { background: rgba(255, 255, 255, .7); margin-top: 6px; }
.gold-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.gold-grid .sec-head { margin-bottom: 0; }
.gold-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; }
.gold-trio figure { margin: 0; display: grid; justify-items: center; gap: 6px; }
.gold-trio canvas.live { width: 100%; aspect-ratio: .8; }
.gold-trio .mid canvas.live { transform: scale(1.12); transform-origin: 50% 100%; }
.gold-trio figcaption { font: 400 14px/1 var(--display); color: #7a5200; }
@media (max-width: 1080px) { .shells { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mile { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 920px) { .lookup, .gold-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .shells { grid-template-columns: 1fr 1fr; gap: 12px; } .shell-card { padding: 14px 12px 16px; } .shell-card canvas.live { width: 120px; height: 140px; }
  .shell-card b { font-size: 15px; } .shell-card figcaption span:last-child { font-size: 13px; }
  .mile { grid-template-columns: 1fr 1fr; } .polish { gap: 8px; } .band-gold { border-radius: 28px; margin-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) { .egg-bar i { animation: none; transition: none; } }

/* ---------- footer ---------- */
.ftr { background: var(--night); color: var(--night-ink); margin-top: 40px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
.ftr-cta { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding-block: 56px; border-bottom: 1px solid #2f2840; }
.ftr-cta img { border-radius: 24px; box-shadow: 0 14px 30px rgba(0, 0, 0, .4); }
.ftr-title { font: 400 clamp(24px, 3vw, 34px)/1.1 var(--display); }
.ftr-sub { color: var(--night-muted); margin-top: 8px; }
.ftr-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-block: 48px; }
.ftr-grid > div { display: grid; gap: 10px; align-content: start; }
.ftr-grid a { color: var(--night-ink); text-decoration: none; opacity: .9; }
.ftr-grid a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.ftr-h { font: 800 12px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--night-muted); }
.ftr-brand p { color: var(--night-muted); max-width: 30em; font-size: 15px; }
.logo-light { color: var(--night-ink); }
.logo-light em { color: var(--accent); }
.ftr-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--night-muted); padding-top: 22px; border-top: 1px solid #2f2840; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .beasts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mode, .mode.big { grid-column: span 1; }
  .mode.big { grid-template-columns: minmax(0, 1fr) 120px; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .menu-btn { display: flex; }
  .nav { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 6px); flex-direction: column; align-items: stretch; gap: 2px; padding: 12px;
    background: var(--panel); border-radius: 20px; box-shadow: var(--shadow-card); display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px; font-size: 17px; }
  .nav .btn { margin: 8px 0 4px; }
  .hdr-in { position: relative; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { width: min(100%, 400px); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; }
  .steps, .care, .grid3, .wgrid { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .ftr-cta { grid-template-columns: 1fr; text-align: left; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .ftr-brand { grid-column: 1 / -1; }
  .sec { padding-block: 72px; }
  .steps { max-width: 520px; margin-inline: auto; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .modes, .shots { grid-template-columns: 1fr; }
  .beasts { grid-template-columns: 1fr 1fr; gap: 12px; }
  .beast { padding: 16px; }
  .beast img { width: 64px; height: 64px; }
  .beast .h3 { font-size: 16px; }
  .beast p { font-size: 14px; }
  .mini { width: min(100%, 280px); }
  .step { padding: 20px; }
  .sec-head { margin-bottom: 36px; }
  .facts { gap: 10px; margin-top: 40px; }
  .fact { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .fact .tile { width: 24px; height: 24px; }
  .fact b { font-size: 15px; margin-bottom: 4px; }
  .peek-1 { right: 0; }
  .t3 { right: 2%; }
  .mode.big { grid-template-columns: minmax(0, 1fr) 100px; }
  .crowd { grid-template-columns: repeat(3, 1fr); padding: 18px; }
  .band-night { border-radius: 28px; margin-inline: 6px; }
  .btn { width: 100%; }
  .btn-row .btn { flex: 1 1 100%; }
  .nav .btn { width: auto; }
  .hero { padding-top: 12px; }
  .crowd-count { right: 8px; top: -18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .peek, .tile { animation: none; }
  .btn, .wcard img { transition: none; }
}
