/* ==========================================================================
   KST.games — v2 homepage (approved design v1.1)
   Static CSS, no build step. Breakpoints: 1200 / 900 / 768 / 600.
   ========================================================================== */

:root {
  /* colour universe (Brand SoT) */
  --ink: #0B1534;
  --deep: #070E24;
  --panel: #101C3F;
  --panel-2: #16224F;
  --line: #22315C;
  --line-2: #2B3B70;
  --white: #F8F8FB;
  --soft: #C9D0EC;
  --muted: #A9B3D6;

  --coral: #FF5A54;   --coral-dk: #B8323A;
  --yellow: #FFD84D;  --yellow-dk: #C99A1E; --yellow-btn: #B8901C;
  --blue: #4B7BFF;    --blue-dk: #2A4BC0;
  --mint: #4EE3A2;    --mint-dk: #1F9E6C;
  --purple: #A95BFF;
  --orange: #FF8A3D;  --orange-dk: #C9601F;

  /* type */
  --f-display: "Dela Gothic One", "Arial Black", "Helvetica Neue", Impact, system-ui, sans-serif;
  --f-body: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --f-pixel: "Silkscreen", ui-monospace, "SF Mono", Menlo, monospace;
  --f-hand: "Permanent Marker", "Marker Felt", "Comic Sans MS", cursive;

  /* layout */
  --max: 1280px;
  --gutter: clamp(20px, 5.6vw, 80px);
  --section-y: clamp(56px, 8.4vw, 120px);
  --radius: 24px;

  /* motion */
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--white);
  background: var(--deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; }
a { color: inherit; }
p, h1, h2, h3, h4 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: 12px; background: var(--yellow); color: var(--ink); font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 16px; }
.sprites { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- shared atoms ---------- */
.i { width: 1em; height: 1em; flex: none; }

.btn {
  --shadow: var(--yellow-btn);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  border-radius: 18px; border: 0; text-decoration: none; white-space: nowrap;
  transition: transform .12s var(--ease-out), box-shadow .12s var(--ease-out), background-color .15s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn--primary { background: var(--yellow); color: var(--ink); font-family: var(--f-display); letter-spacing: .02em; box-shadow: 0 7px 0 var(--shadow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 9px 0 var(--shadow); }
.btn--primary:active { transform: translateY(6px); box-shadow: 0 1px 0 var(--shadow); }
.btn--ghost { color: var(--white); border: 2px solid var(--line-2); font-weight: 800; letter-spacing: .06em; }
.btn--ghost:hover { border-color: var(--white); background: rgba(248, 248, 251, .06); }
.btn--light { background: var(--white); color: var(--ink); font-weight: 800; }
.btn--light:hover { transform: translateY(-2px); }
.btn--xl { height: 68px; padding: 0 34px; font-size: 21px; }
.btn--xl.btn--ghost { font-family: var(--f-body); font-size: 16px; padding: 0 28px; }
.btn--xl .i { width: 18px; height: 18px; }
.btn--md { height: 52px; padding: 0 22px; font-size: 15px; border-radius: 15px; }
.btn--sm { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 14px; box-shadow: 0 5px 0 var(--shadow); }
.btn--sm .i { width: 13px; height: 15px; }

.chip { display: inline-flex; align-items: center; font-family: var(--f-pixel); font-size: 13px; line-height: 1; padding: 6px 9px; border-radius: 7px; color: var(--ink); }
.chip--mint { background: var(--mint); }
.chip--yellow { background: var(--yellow); }
.chip--purple { background: var(--purple); color: var(--white); }
.chip--xs { font-size: 11px; padding: 4px 6px; border-radius: 6px; }

.eyebrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.eyebrow__text, .mono { font-family: var(--f-mono); font-size: 14px; letter-spacing: .14em; color: var(--muted); }
.eyebrow-pixel, .field-label { font-family: var(--f-pixel); font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 3.9vw, 56px); line-height: 1.06; letter-spacing: -.01em; }
.h2 .y { color: var(--yellow); }
.h2 .m { color: var(--mint); }
.hand { font-family: var(--f-hand); color: var(--yellow); line-height: 1.1; }
.hand--white { color: var(--white); }
.hand--mint { color: var(--mint); }
.section-top { display: flex; flex-direction: column; gap: 24px; }
.section-top--row { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 32px; }
.section-head { display: flex; flex-direction: column; gap: 16px; }
.section-lede { max-width: 400px; font-size: 17px; color: var(--soft); }

.kst-badge {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 13px; background: var(--deep); border: 2px solid var(--blue);
  font-family: var(--f-display); font-size: 16px; line-height: 1;
}
.kst-badge b { font-weight: 400; }
.kst-badge .c { color: var(--coral); } .kst-badge .y { color: var(--yellow); } .kst-badge .b { color: var(--blue); }
.kst-badge--sm { width: 42px; height: 42px; font-size: 12px; border-radius: 12px; }
.kst-badge--card { position: absolute; right: 14px; top: 14px; z-index: 2; width: 30px; height: 30px; font-size: 9px; border-radius: 9px; border: 0; }

.star { position: absolute; left: var(--x); top: var(--y); width: 5px; height: 5px; background: var(--white); }
.star--y { background: var(--yellow); }
.spark { position: absolute; left: var(--x); top: var(--y); width: 24px; height: 24px; }

.pop { display: inline-block; font-family: var(--f-pixel); font-size: 14px; line-height: 1; background: var(--yellow); color: var(--ink); padding: 6px 9px; border-radius: 9px; transform: rotate(-6deg); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot--mint { background: var(--mint); } .dot--yellow { background: var(--yellow); } .dot--ring { border: 2px solid var(--muted); }

/* ---------- NAV ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(11, 21, 52, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid #1B2A58; }
.nav__inner { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; border-radius: 14px; }
.brand__word { font-family: var(--f-display); font-size: 18px; letter-spacing: .03em; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { white-space: nowrap; padding: 12px 18px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 15px; color: var(--soft); transition: color .15s, background-color .15s; }
.nav__links a:hover { color: var(--white); background: rgba(248, 248, 251, .06); }
.nav__menu { display: none; width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--line); background: transparent; align-items: center; justify-content: center; }
.nav__menu svg { width: 18px; height: 14px; }
.mobile-menu { display: grid; padding: 8px var(--gutter) 16px; border-top: 1px solid #1B2A58; }
.mobile-menu a { min-height: 48px; display: flex; align-items: center; font-weight: 700; text-decoration: none; border-bottom: 1px solid #1B2A58; }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); padding: 48px 0 150px; }
.hero__sky { position: absolute; inset: 0; pointer-events: none; }
.moon { position: absolute; left: 47%; top: 24px; width: 30px; height: 30px; border-radius: 50%; box-shadow: -7px 5px 0 0 var(--yellow); }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; height: 180px; pointer-events: none; }
.skyline svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; will-change: transform; }
.skyline__far { opacity: .8; }

.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 524px; gap: 40px; align-items: start; }
.hero__identity { padding-top: 28px; }
.hero__brand { display: flex; align-items: flex-end; gap: 28px; }

.plates { display: flex; flex-direction: column; align-items: flex-start; font-family: var(--f-display); font-weight: 400; font-size: clamp(52px, 9.2vw, 132px); line-height: 1; letter-spacing: -.01em; }
.plate { --d: 14px; display: block; position: relative; padding: .075em .24em .14em; border-radius: .2em; }
.plate--kill { z-index: 3; margin-left: .12em; background: var(--coral); box-shadow: 0 var(--d) 0 var(--coral-dk); color: var(--white); -webkit-text-stroke: .075em var(--ink); paint-order: stroke fill; text-shadow: 0 .05em 0 var(--ink); rotate: -3deg; }
.plate--some { z-index: 2; margin-top: -.06em; background: var(--yellow); box-shadow: 0 var(--d) 0 var(--yellow-dk); color: var(--ink); rotate: 1.5deg; }
.plate--time { z-index: 1; margin-top: -.06em; margin-left: .33em; background: var(--blue); box-shadow: 0 var(--d) 0 var(--blue-dk); color: var(--white); -webkit-text-stroke: .075em var(--ink); paint-order: stroke fill; text-shadow: 0 .05em 0 var(--ink); rotate: -2deg; }

.hero__mascot { display: flex; flex-direction: column; align-items: center; margin-bottom: 8px; }
.mascot { width: 110px; height: 90px; shape-rendering: crispEdges; }
.mascot__shadow { width: 70px; height: 8px; margin-top: 4px; border-radius: 50%; background: rgba(7, 14, 36, .85); }

.tagline { margin-top: 40px; font-family: var(--f-mono); font-size: clamp(14px, 1.95vw, 28px); letter-spacing: .12em; }
.hero__ctas { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

/* featured module */
.featured { position: relative; display: flex; flex-direction: column; gap: 12px; }
.featured__hint { position: absolute; left: -148px; top: 104px; width: 140px; font-size: 22px; rotate: -7deg; pointer-events: none; }
.featured__hint svg { width: 120px; height: 40px; margin-top: 2px; }
.featured__label { display: flex; justify-content: space-between; align-items: center; padding: 0 6px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-pixel); font-size: 12px; color: var(--mint); }
.live__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); }

.console { padding: 20px; border-radius: 32px; background: var(--panel); border: 3px solid #26377A; box-shadow: 0 20px 0 #050A1C, 0 30px 80px rgba(75, 123, 255, .22); display: flex; flex-direction: column; gap: 16px; }
.console__head { display: flex; align-items: baseline; gap: 12px; }
.console__title { font-family: var(--f-display); font-weight: 400; font-size: 28px; }
.console__meta { font-family: var(--f-mono); font-size: 13px; letter-spacing: .1em; color: var(--muted); }
.console__more { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--soft); text-decoration: none; }
.console__more:hover { color: var(--white); }

.race { display: flex; flex-direction: column; gap: 16px; }
.race__screen { position: relative; height: 280px; border-radius: 22px; overflow: hidden; background: linear-gradient(#1B2A63, var(--ink) 70%); border: 3px solid var(--deep); user-select: none; -webkit-user-select: none; }
.race__score { position: absolute; right: 14px; top: 14px; z-index: 3; padding: 8px 14px; border-radius: 12px; background: var(--deep); border: 2px solid var(--white); text-align: center; display: flex; flex-direction: column; }
.race__score-label { font-family: var(--f-pixel); font-size: 11px; color: var(--muted); }
.race__score-value { font-family: var(--f-display); font-size: 30px; line-height: 1; }
.race__score-value b { font-weight: 400; }
.race__score-value small { font-size: 14px; color: var(--muted); }
.race__lane { position: absolute; left: 0; right: 0; }
.race__lane--player { top: 92px; height: 102px; }
.race__lane--player::after { content: ""; position: absolute; left: 0; right: 0; top: 54px; height: 48px; background: var(--panel-2); border-top: 6px solid var(--blue); }
.race__lane--player::before { content: ""; position: absolute; left: 0; right: 0; top: 82px; height: 3px; z-index: 1; background: repeating-linear-gradient(90deg, rgba(248, 248, 251, .35) 0 14px, transparent 14px 28px); }
.race__lane--bot { top: 194px; height: 86px; }
.race__lane--bot::after { content: ""; position: absolute; left: 0; right: 0; top: 36px; height: 50px; background: var(--panel-2); border-top: 6px solid var(--coral); }
.race__run {
  --sprite: 54px;
  position: absolute; top: 0; z-index: 2; left: 20px;
  transform: translateX(calc(var(--p) * (var(--track, 380px))));
  transition: transform .12s linear;
}
.race__runner { width: 54px; height: 54px; shape-rendering: crispEdges; }
.race.is-running .race__runner { animation: kst-step .24s steps(2) infinite; }
.race__lane--bot .race__run { --sprite: 40px; left: 24px; display: flex; flex-direction: column; align-items: center; }
.race__bot { width: 40px; height: 40px; color: var(--coral); --eyes: var(--white); shape-rendering: crispEdges; }
.race__bot-tag { font-family: var(--f-pixel); font-size: 10px; color: var(--muted); margin-bottom: 2px; }
.race__flag { position: absolute; right: 44px; top: 92px; width: 24px; height: 138px; z-index: 1; border: 2px solid var(--white); background: repeating-conic-gradient(var(--white) 0 25%, var(--ink) 0 50%) 0 0 / 12px 12px; }
.race__msg { position: absolute; left: 20px; top: 20px; z-index: 3; font-family: var(--f-pixel); font-size: 13px; background: rgba(7, 14, 36, .78); padding: 8px 12px; border-radius: 10px; }
.race__result { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(7, 14, 36, .88); text-align: center; padding: 16px; }
.race__trophy { width: 60px; height: 60px; shape-rendering: crispEdges; }
.race__result-title { font-family: var(--f-display); font-size: 44px; line-height: 1; color: var(--yellow); }
.race__result.is-lose .race__result-title { color: var(--coral); }
.race__result.is-lose .race__trophy { display: none; }
.race__result-sub { font-family: var(--f-mono); font-size: 14px; }
.race__pop { position: absolute; z-index: 4; font-family: var(--f-pixel); font-size: 16px; color: var(--yellow); pointer-events: none; animation: kst-pop .6s ease-out forwards; }

.tap {
  height: 108px; margin-bottom: 10px; border: 0; border-radius: 26px;
  background: var(--yellow); color: var(--ink); box-shadow: 0 10px 0 var(--yellow-btn);
  display: flex; align-items: center; justify-content: center; gap: 18px;
  font-family: var(--f-display); font-size: 52px; line-height: 1;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
  transition: transform .06s linear, box-shadow .06s linear;
}
.tap:hover { box-shadow: 0 12px 0 var(--yellow-btn); transform: translateY(-2px); }
.tap.is-pressed, .tap:active { transform: translateY(8px); box-shadow: 0 2px 0 var(--yellow-btn); }
.tap__finger { width: 42px; height: 48px; }

/* ---------- TICKER ---------- */
.ticker { position: relative; z-index: 4; height: 56px; background: var(--ink); overflow-x: clip; }
.ticker__strip { height: 48px; margin: 0 -20px; overflow: hidden; display: flex; align-items: center; background: var(--yellow); rotate: -1deg; box-shadow: 0 5px 0 var(--yellow-btn); }
.ticker__track { display: flex; gap: 32px; padding-left: 40px; white-space: nowrap; font-family: var(--f-display); font-size: 20px; color: var(--ink); animation: kst-marquee 40s linear infinite; }
.ticker__track i { font-style: normal; color: var(--coral); }
.ticker__track i.b { color: var(--blue); }

/* ---------- RULES / STICKERS ---------- */
.rules { background: var(--ink); padding: 64px 0 var(--section-y); }
.rules__vibe { font-size: 22px; rotate: -4deg; }
.rules__vibe span { color: var(--yellow); }
.stickers { margin-top: 44px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.sticker {
  --tilt: -2deg; position: relative; height: 250px; padding: 26px 32px; border-radius: 30px;
  display: flex; flex-direction: column; justify-content: space-between; color: var(--ink);
  rotate: var(--tilt);
}
.sticker--coral { background: var(--coral); box-shadow: 0 16px 0 var(--coral-dk); }
.sticker--yellow { --tilt: 1.5deg; background: var(--yellow); box-shadow: 0 16px 0 var(--yellow-dk); }
.sticker--mint { --tilt: -1.5deg; background: var(--mint); box-shadow: 0 16px 0 var(--mint-dk); }
.sticker__icon { position: absolute; right: 28px; top: 28px; color: var(--ink); flex: none; }
.sticker__icon--finger { width: 60px; height: 68px; }
.sticker__icon--bolt { width: 48px; height: 68px; }
.sticker__icon--heart { width: 62px; height: 56px; }
.sticker__num { font-family: var(--f-display); font-size: 150px; line-height: .9; }
.sticker__num--outline { color: var(--white); -webkit-text-stroke: 8px var(--ink); paint-order: stroke fill; text-shadow: 0 7px 0 var(--ink); }
.sticker__words { font-size: 30px; font-weight: 800; line-height: 1.05; }
.rules__foot { margin-top: 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.rhythm { display: flex; gap: 26px; font-family: var(--f-display); font-size: 32px; }
.rhythm i { font-style: normal; }
.rhythm .c { color: var(--coral); } .rhythm .y { color: var(--yellow); } .rhythm .m { color: var(--mint); } .rhythm .b { color: var(--blue); }
.rules__foot .hand { font-size: 20px; rotate: -3deg; }

/* ---------- GAMES ---------- */
.games { background: var(--deep); padding: var(--section-y) 0; }
.search { display: flex; flex-direction: column; gap: 8px; width: 340px; }
.search__box { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; border-radius: 16px; background: var(--panel); border: 2px solid var(--line); color: var(--muted); }
.search__box:focus-within { border-color: var(--yellow); }
.search__box input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--white); font-size: 16px; outline: none; }
.search__box input::placeholder { color: #7D88B3; }
.search__box .i { width: 18px; height: 18px; }

.toolbar { margin-top: 40px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 18px; background: var(--panel); }
.tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border: 0; border-radius: 14px; background: transparent; color: var(--white); font-weight: 700; font-size: 15px; transition: background-color .15s, color .15s; }
.tab:hover { background: rgba(248, 248, 251, .07); }
.tab[aria-pressed="true"] { background: var(--white); color: var(--ink); font-weight: 800; }
.tab__short { display: none; }
.selects { display: flex; gap: 12px; }
.select { display: flex; flex-direction: column; gap: 6px; }
.select select {
  appearance: none; -webkit-appearance: none; height: 48px; min-width: 170px; padding: 0 40px 0 14px; border-radius: 14px;
  border: 2px solid var(--line); background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23F8F8FB' stroke-width='2.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  font-weight: 700; font-size: 15px;
}
.select select:focus-visible { border-color: var(--yellow); }

.cards { margin-top: 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.swipe-hint { display: none; }

/* swipe rows: shared behaviour (only rows that actually overflow get a tab stop, via home.js) */
.cards, .world-row { scrollbar-width: none; }
.cards::-webkit-scrollbar, .world-row::-webkit-scrollbar { display: none; }
.cards:focus-visible, .world-row:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; border-radius: 18px; }
@media (hover: hover) and (pointer: fine) {
  /* mouse/trackpad users on narrow windows get a slim, on-brand scrollbar instead of none */
  .cards, .world-row { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
  .cards::-webkit-scrollbar, .world-row::-webkit-scrollbar { display: block; height: 6px; }
  .cards::-webkit-scrollbar-thumb, .world-row::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
}

.cards__empty { margin-top: 32px; padding: 40px; border-radius: var(--radius); border: 2px dashed var(--line-2); text-align: center; color: var(--muted); font-family: var(--f-mono); }

.card {
  position: relative; display: flex; flex-direction: column; min-height: 380px;
  border-radius: var(--radius); background: var(--panel); border: 2px solid #1E2C5A;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), border-color .18s;
  animation: kst-card-in .36s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}
.card--playable { border-color: var(--coral); }
.card:hover, .card:focus-within { transform: translateY(-8px) rotate(-1deg); border-color: var(--accent, var(--blue)); box-shadow: 0 14px 0 var(--accent-dk, var(--blue-dk)); }
.card__pop { position: absolute; right: -8px; top: -20px; z-index: 3; opacity: 0; pointer-events: none; }
.card:hover .card__pop, .card:focus-within .card__pop { animation: kst-pop-up .6s var(--ease-out) forwards; }
.card__art { position: relative; height: 214px; overflow: hidden; border-radius: 22px 22px 0 0; background: var(--bg, var(--panel-2)); }
.card__art-inner { position: absolute; inset: 0; transition: transform .3s var(--ease-out); }
.card:hover .card__art-inner { transform: scale(1.04); }
.badge { position: absolute; left: 14px; top: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-pixel); font-size: 11px; line-height: 1; padding: 6px 9px; border-radius: 8px; }
.badge--playable { background: var(--mint); color: var(--ink); }
.badge--playable::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.badge--soon { background: var(--yellow); color: var(--ink); }
.badge--lab { background: var(--ink); color: var(--white); }
.card__body { flex: 1; padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.card__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.world-tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-pixel); font-size: 11px; color: var(--soft); text-transform: uppercase; }
.world-tag i { width: 9px; height: 9px; background: var(--c); flex: none; }
.world-tag i.circle { border-radius: 50%; }
.world-tag i.diamond { width: 8px; height: 8px; rotate: 45deg; }
.card__mech { font-family: var(--f-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; }
.card__title { font-family: var(--f-display); font-weight: 400; font-size: 24px; line-height: 1.15; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.card__line { font-size: 14px; color: var(--muted); }
.card__action { margin-top: auto; padding-top: 10px; }
.card__play { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 13px; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 14px; letter-spacing: .04em; text-decoration: none; box-shadow: 0 4px 0 var(--yellow-btn); transition: transform .1s, box-shadow .1s; }
.card__play:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--yellow-btn); }
.card__play .i { width: 11px; height: 12px; }
.card__status { display: inline-flex; align-items: center; gap: 8px; height: 44px; font-family: var(--f-pixel); font-size: 12px; color: var(--muted); }
.card__status .i { width: 14px; height: 16px; }

.drops { margin-top: 40px; min-height: 88px; padding: 16px 24px; border-radius: var(--radius); border: 2px dashed var(--line-2); display: flex; align-items: center; gap: 24px; }
.drops__meter { display: flex; gap: 4px; }
.drops__meter i { width: 12px; height: 24px; background: var(--panel-2); }
.drops__meter i.on { background: var(--mint); }
.drops__title { font-family: var(--f-display); font-size: 20px; }
.drops__sub { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.drops__all { margin-left: auto; }
.drops__all .i { width: 14px; height: 14px; }

/* card art pieces (rendered by home.js) */
.px { shape-rendering: crispEdges; position: absolute; }
.blk { position: absolute; }
.ring { position: absolute; left: 50%; top: 55%; border-radius: 50%; translate: -50% -50%; }

/* ---------- WORLDS ---------- */
.worlds { background: var(--ink); padding: var(--section-y) 0; }
.tree { margin-top: 64px; display: flex; flex-direction: column; }
.tree__level { position: relative; display: flex; flex-direction: column; }
.level-label { font-family: var(--f-pixel); font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.tree__level--master .level-label { position: absolute; left: 0; top: 36px; }
.stem { display: block; width: 4px; height: 40px; margin: 0 auto; background: var(--line-2); transform-origin: top; }
.master {
  align-self: center; width: min(480px, 100%); height: 104px; border-radius: 26px; background: var(--panel); border: 3px solid var(--white);
  display: flex; align-items: center; justify-content: center; gap: 22px;
}
.mini-plates { display: flex; gap: 6px; font-family: var(--f-display); font-size: 26px; line-height: 1; }
.mini-plates b { font-weight: 400; padding: 5px 12px 8px; border-radius: 10px; }
.mini-plates .c { background: var(--coral); color: var(--white); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; box-shadow: 0 4px 0 var(--coral-dk); rotate: -3deg; }
.mini-plates .y { background: var(--yellow); color: var(--ink); box-shadow: 0 4px 0 var(--yellow-dk); rotate: 2deg; }
.mini-plates .bl { background: var(--blue); color: var(--white); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; box-shadow: 0 4px 0 var(--blue-dk); rotate: -2deg; }
.master__mascot { width: 62px; height: 51px; }

.dna { min-height: 100px; padding: 16px 32px; border-radius: var(--radius); background: var(--panel); border: 2px solid var(--line); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; align-items: center; }
.dna__item { display: flex; align-items: center; gap: 12px; }
.dna__icon { flex: none; min-width: 42px; display: flex; justify-content: center; }
.dna__text { display: flex; flex-direction: column; }
.dna__text b { font-size: 14px; font-weight: 800; }
.dna__text small { font-size: 12px; color: var(--muted); }
.dna-rules { display: flex; gap: 3px; }
.dna-rules i { font-style: normal; height: 34px; min-width: 15px; padding: 0 3px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 11px; color: var(--ink); }
.dna-rules .c { background: var(--coral); } .dna-rules .y { background: var(--yellow); } .dna-rules .m { background: var(--mint); }
.pop--static { font-size: 13px; padding: 6px 8px; }
.swatches { width: 42px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.swatches i { height: 12px; border-radius: 3px; }
.dna__mascot { width: 40px; height: 40px; shape-rendering: crispEdges; }

.tree__level--worlds .level-label { margin-bottom: 0; }
.bus { display: grid; grid-template-columns: 1.24fr 1fr 1fr .58fr; gap: 24px; height: 40px; }
.bus i { position: relative; }
.bus i::before { content: ""; position: absolute; left: calc(50% - 2px); top: 0; bottom: 0; width: 4px; background: var(--line-2); }
.bus i::after { content: ""; position: absolute; top: 0; height: 4px; left: -12px; right: -12px; background: var(--line-2); }
.bus i:first-child::after { left: calc(50% - 2px); }
.bus i:last-child::after { right: calc(50% - 2px); }
.bus i.dashed::before { background: none; border-left: 4px dashed var(--line-2); width: 0; }
.tree__level--worlds .level-label { position: absolute; left: 0; top: -30px; }

.world-row { display: grid; grid-template-columns: 1.24fr 1fr 1fr .58fr; gap: 24px; }
.world { display: flex; flex-direction: column; min-height: 432px; border-radius: 26px; background: var(--panel); border: 2px solid var(--line-2); overflow: hidden; }
.world--live { border: 3px solid var(--yellow); box-shadow: 0 10px 0 var(--yellow-dk); }
.world__art { position: relative; height: 196px; overflow: hidden; background: var(--bg); }
.world__body { flex: 1; padding: 18px 22px 20px; display: flex; flex-direction: column; gap: 6px; }
.world__state { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; color: var(--c); }
.world__name { font-family: var(--f-display); font-weight: 400; font-size: 24px; line-height: 1.15; }
.world__line { font-size: 14px; color: var(--muted); }
.world__games { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px; }
.gchip { height: 30px; padding: 0 10px; border-radius: 15px; border: 1.5px solid var(--line-2); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.gchip--playable { background: var(--white); color: var(--ink); border-color: var(--white); }
.gchip--playable::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint-dk); }
.world--future { border: 2px dashed var(--line-2); background: transparent; align-items: center; justify-content: center; gap: 14px; padding: 0 16px; text-align: center; }
.world--future .plusbox { width: 56px; height: 56px; border-radius: 16px; border: 2px dashed var(--muted); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.world--future .plusbox svg { width: 24px; height: 24px; shape-rendering: crispEdges; }
.world--future .world__state { color: var(--muted); }
.world--future .world__name { font-size: 18px; }
.world--future .hand { font-size: 15px; rotate: -4deg; }

/* ---------- BRIGHTER ---------- */
.brighter { position: relative; overflow: hidden; min-height: 520px; background: linear-gradient(var(--ink) 0%, #2A1F5C 55%, #7A3B6E 85%, #C9603F 100%); }
.brighter__city { position: absolute; left: 0; right: 0; bottom: 0; height: 240px; pointer-events: none; }
.brighter__city > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.brighter__run { position: absolute; left: 69%; bottom: 150px; }
.brighter__mascot { width: 88px; height: 88px; shape-rendering: crispEdges; }
.brighter__run .pop--float { position: absolute; left: 60px; top: -38px; animation: kst-float 3.2s ease-in-out infinite; }
.brighter__coin { position: absolute; left: 112px; top: -26px; width: 30px; height: 30px; shape-rendering: crispEdges; }
.brighter__coin--2 { left: 168px; top: -62px; animation-delay: .6s; }
.brighter__inner { position: relative; padding: 96px 0 280px; }
.brighter__title { font-size: clamp(48px, 6.2vw, 88px); line-height: 1; rotate: -4deg; transform-origin: left center; font-weight: 400; }
.brighter__ctas { margin-top: 44px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.brighter__stores { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--soft); }

/* ---------- FOOTER ---------- */
.footer { background: var(--deep); padding: 64px 0 32px; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; flex-wrap: wrap; }
.footer__brand { display: flex; flex-direction: column; gap: 20px; }
.footer .kst-badge { width: 40px; height: 40px; font-size: 14px; background: var(--ink); }
.footer .brand__word { font-size: 17px; }
.endorse { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.endorse svg { width: 20px; height: 18px; color: var(--muted); shape-rendering: crispEdges; }
.footer__nav { display: grid; grid-template-columns: repeat(3, auto); gap: 72px; }
.footer__nav div { display: flex; flex-direction: column; gap: 12px; }
.footer__nav a { font-weight: 600; font-size: 15px; text-decoration: none; }
.footer__nav a:hover { color: var(--yellow); }
.footer__about { font-size: 14px; color: var(--soft); }
.footer__bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid #1B2A58; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer__bottom .mono { font-size: 13px; }
.dots { display: flex; gap: 8px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; }

/* ---------- TAB BAR (mobile) ---------- */
.tabbar { display: none; }

/* ==========================================================================
   MOTION
   ========================================================================== */
@keyframes kst-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes kst-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes kst-step { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes kst-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes kst-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes kst-pop { 0% { transform: translateY(0) scale(.8); opacity: 1; } 100% { transform: translateY(-22px) scale(1.1); opacity: 0; } }
@keyframes kst-pop-up { 0% { opacity: 0; transform: translateY(6px) rotate(-6deg); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px) rotate(-6deg); } }
@keyframes kst-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(78, 227, 162, .6); } 50% { box-shadow: 0 0 0 6px rgba(78, 227, 162, 0); } }
@keyframes kst-drop { 0% { transform: translateY(-40px); opacity: 0; } 70% { transform: translateY(4px) scaleY(.94); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes kst-rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes kst-card-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes kst-slam { 0% { transform: translateY(30px) scale(.92); opacity: 0; rotate: 0deg; } 70% { transform: translateY(-4px) scale(1.02); opacity: 1; } 100% { transform: none; opacity: 1; rotate: var(--tilt); } }
@keyframes kst-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }

.tw { animation: kst-twinkle 2.8s ease-in-out infinite; }
.tw:nth-child(2n) { animation-delay: .9s; }
.fl { animation: kst-float 3.2s ease-in-out infinite; }
.idle { animation: kst-bob 1.6s steps(2) infinite; }
.bob { animation: kst-bob .6s steps(2) infinite; }
.live__dot { animation: kst-pulse 1.8s ease-in-out infinite; }

/* hero entrance */
.plate { animation: kst-drop .5s var(--ease-pop) both; }
.plate--some { animation-delay: .08s; }
.plate--time { animation-delay: .16s; }
.hero__mascot { animation: kst-rise .45s var(--ease-pop) .35s both; }
.featured { animation: kst-rise .5s var(--ease-out) .45s both; }

/* scroll reveals (enabled by JS adding .js) */
.js [data-reveal] { opacity: 0; }
.js [data-reveal].is-in { animation: kst-slam .5s var(--ease-pop) both; }
.js .sticker:nth-child(2).is-in { animation-delay: .1s; }
.js .sticker:nth-child(3).is-in { animation-delay: .2s; }
.js .tree .stem, .js .tree .bus { transform: scaleY(0); transform-origin: top; transition: transform .4s var(--ease-out); }
.js .tree.is-in .stem, .js .tree.is-in .bus { transform: none; }
.js .tree.is-in .tree__level--dna .stem { transition-delay: .2s; }
.js .tree.is-in .bus { transition-delay: .35s; }

.race.is-shake .race__screen { animation: kst-shake .18s linear 2; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ticker__track, .tw, .fl, .idle, .bob, .live__dot { animation: none !important; }
  .js [data-reveal] { opacity: 1; }
  .skyline svg, .brighter__city > svg { transform: none !important; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* ≤1199: hero stacks, 3-col cards, worlds 2×2 */
@media (max-width: 1199px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero__identity { padding-top: 8px; }
  .featured { width: min(100%, 600px); }
  .featured__hint { display: none; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sticker { container-type: inline-size; }
  .sticker__num { font-size: min(150px, 34cqi); }
  .sticker--mint .sticker__num { font-size: min(150px, 30cqi); }
  .dna { padding: 16px 20px; gap: 16px; }
  .dna__text small { display: none; }
  .bus { display: none; }
  .tree__level--worlds .level-label { position: static; margin: 0 0 12px; }
  .world-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .world--future { min-height: 200px; }
}

/* ≤899: tablet portrait */
@media (max-width: 899px) {
  .section-top--row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .search { width: 100%; }
  .stickers { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  /* one row per sticker: [icon] [number] [words] — every column sizes to its content, so a wide
     display face can never push the number into the text */
  .sticker {
    height: auto; min-height: 116px; padding: 16px 24px; border-radius: 24px; box-shadow: 0 9px 0 var(--sd, var(--coral-dk));
    display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; column-gap: 18px;
  }
  .sticker--yellow { --sd: var(--yellow-dk); } .sticker--mint { --sd: var(--mint-dk); }
  .sticker__num { font-size: 80px; line-height: 1; white-space: nowrap; }
  .sticker--mint .sticker__num { font-size: 64px; }
  .sticker__num--outline { -webkit-text-stroke: 6px var(--ink); text-shadow: 0 4px 0 var(--ink); }
  .sticker__words { font-size: 24px; min-width: 0; overflow-wrap: break-word; }
  .sticker__icon { position: static; }
  .sticker__icon--finger { width: 38px; height: 44px; } .sticker__icon--bolt { width: 30px; height: 42px; } .sticker__icon--heart { width: 38px; height: 34px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 0 8px; }
  .selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .select select { min-width: 0; width: 100%; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .dna { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 14px 10px; gap: 6px; }
  .dna__item { flex-direction: column; gap: 6px; text-align: center; }
  .dna__text b { font-size: 11px; }
  .dna__icon { height: 42px; align-items: center; }
  /* worlds become a swipe rail */
  .world-row {
    display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 18px;
  }
  .world-row.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
  .world-row.is-dragging * { pointer-events: none; }
  .world { flex: 0 0 min(300px, 74vw); min-height: 380px; }
  .swipe-hint { display: inline; float: right; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); text-transform: lowercase; }
  .world--future { min-height: 380px; flex-basis: 180px; }
  .world__art { height: 160px; }
  .footer__nav { gap: 40px; }
  .nav .brand__word { display: none; }
  .nav__links a { padding: 12px 12px; }
}

/* ≤767: phone — app shell */
@media (max-width: 767px) {
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .nav { position: relative; background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 0; }
  .nav__inner { height: 64px; }
  .nav__links, .nav__cta, .brand__word { display: none; }
  .nav .kst-badge { width: 40px; height: 40px; font-size: 14px; }
  .nav__menu { display: inline-flex; }

  .hero { padding: 8px 0 72px; }
  .skyline { height: 110px; }
  .hero__grid { gap: 28px; }
  .hero__brand { gap: 10px; justify-content: space-between; }
  .plate { --d: 6px; }
  .mascot { width: 84px; height: 69px; }
  .tagline { margin-top: 18px; }
  .hero__ctas { margin-top: 22px; gap: 10px; flex-wrap: nowrap; }
  .hero__ctas .btn--xl { height: 56px; font-size: 18px; padding: 0 16px; border-radius: 17px; }
  .hero__ctas .btn--primary { box-shadow: 0 6px 0 var(--shadow); }
  .hero__ctas .btn--primary { flex: 1; }
  .hero__ctas .btn--ghost { font-size: 13px; padding: 0 16px; }
  .hero__ctas .btn--ghost .i { display: none; }
  .featured { gap: 8px; }
  .console { padding: 12px; border-radius: 24px; box-shadow: 0 10px 0 #050A1C; gap: 10px; }
  .console__title { font-size: 19px; }
  .console__meta { font-size: 11px; }
  .console__more { display: none; }
  .race { gap: 10px; }
  .race__screen { height: 150px; border-radius: 16px; }
  .race__score { right: 8px; top: 8px; padding: 4px 9px; border-radius: 9px; }
  .race__score-label { font-size: 8px; }
  .race__score-value { font-size: 18px; }
  .race__score-value small { font-size: 10px; }
  .race__lane--player { top: 44px; height: 66px; }
  .race__lane--player::after { top: 38px; height: 28px; border-top-width: 4px; }
  .race__lane--player::before { top: 52px; }
  .race__lane--bot { top: 110px; height: 40px; }
  .race__lane--bot::after { top: 26px; height: 14px; border-top-width: 4px; }
  .race__run { --sprite: 38px; left: 12px; }
  .race__runner { width: 38px; height: 38px; }
  .race__lane--bot .race__run { left: 16px; }
  .race__bot { width: 24px; height: 24px; }
  .race__bot-tag { display: none; }
  .race__flag { right: 28px; top: 44px; width: 16px; height: 96px; background-size: 8px 8px; }
  .race__msg { left: 10px; top: 10px; font-size: 10px; padding: 5px 8px; border-radius: 7px; }
  .race__result-title { font-size: 30px; }
  .race__trophy { width: 40px; height: 40px; }
  .race__result-sub { font-size: 12px; }
  .tap { height: 76px; font-size: 36px; border-radius: 19px; box-shadow: 0 7px 0 var(--yellow-btn); margin-bottom: 6px; }
  .tap__finger { width: 28px; height: 32px; }

  .ticker { height: 48px; }
  .ticker__strip { height: 42px; rotate: -2deg; }
  .ticker__track { font-size: 16px; gap: 22px; }

  .rules { padding-top: 40px; }
  .rules__vibe { display: none; }
  .stickers { margin-top: 24px; gap: 20px; }
  .rhythm { font-size: 19px; gap: 10px; }
  .sticker { padding: 14px 18px; column-gap: 14px; }
  .sticker__num { font-size: 64px; }
  .sticker--mint .sticker__num { font-size: 50px; }
  .sticker__words { font-size: 21px; }
  .rules__foot { margin-top: 28px; }
  .rules__foot .hand { font-size: 15px; margin-left: auto; }

  .tab__long { display: none; }
  .tab__short { display: inline; }
  .tab .dot { display: none; }
  .tab { font-size: 13px; }

  /* ONE two-row horizontal shelf: columns of 2 cards, swipe sideways */
  .cards {
    display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto);
    grid-template-columns: none; grid-auto-columns: 150px; gap: 12px;
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
    scroll-padding-inline: var(--gutter);
    margin: 24px calc(-1 * var(--gutter)) 0; padding: 4px var(--gutter) 12px;
  }
  .cards.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
  .cards.is-dragging * { pointer-events: none; }
  .card { min-height: 0; border-radius: 18px; animation: none; }
  .card:hover, .card:focus-within { transform: none; box-shadow: none; }
  .card__pop { display: none; }
  .card__art { height: 106px; border-radius: 16px 16px 0 0; }
  .card__art-inner, .card:hover .card__art-inner { width: 302px; height: 214px; transform: scale(.497); transform-origin: top left; }
  .badge { left: 8px; top: 8px; font-size: 9px; padding: 4px 6px; border-radius: 6px; }
  .kst-badge--card { right: 8px; top: 8px; width: 22px; height: 22px; font-size: 7px; border-radius: 7px; }
  .card__body { padding: 9px 10px 10px; gap: 3px; }
  .card__mech, .card__line { display: none; }
  .world-tag { font-size: 9px; gap: 5px; }
  .world-tag i { width: 7px; height: 7px; }
  .card__title { font-size: 15px; line-height: 1.15; }
  .card__action { padding-top: 6px; }
  .card__play { width: 100%; justify-content: center; height: 44px; font-size: 13px; border-radius: 12px; }
  .card__status { height: 40px; font-size: 10px; }
  .card__status .i { width: 12px; height: 14px; }
  .drops { flex-wrap: wrap; padding: 16px; gap: 14px; }
  .drops__all { margin-left: 0; width: 100%; }

  .master { height: 72px; gap: 14px; border-width: 2px; border-radius: 20px; }
  .mini-plates { font-size: 18px; gap: 4px; }
  .mini-plates b { padding: 4px 8px 6px; border-radius: 8px; }
  .master__mascot { width: 44px; height: 36px; }
  .tree { margin-top: 28px; }
  .tree__level--master .level-label { position: static; margin-bottom: 6px; }
  .stem { height: 22px; }

  .brighter { min-height: 0; }
  .brighter__city { height: 150px; }
  .brighter__run { left: auto; right: 48px; bottom: 94px; }
  .brighter__mascot { width: 52px; height: 52px; }
  .brighter__run .pop--float, .brighter__coin--2 { display: none; }
  .brighter__coin { left: 64px; top: -24px; width: 22px; height: 22px; }
  .brighter__inner { padding: 44px 0 190px; }
  .brighter__ctas { margin-top: 26px; flex-direction: column; align-items: flex-start; gap: 14px; }
  .brighter__ctas .btn--xl { height: 56px; font-size: 17px; padding: 0 26px; }

  .footer { padding: 36px 0 24px; }
  .footer__brand .brand__word { display: inline; }
  .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; width: 100%; }
  .footer__nav div:last-child { grid-column: 1 / -1; }
  .footer__nav a { min-height: 44px; display: flex; align-items: center; }
  .footer__bottom { flex-wrap: wrap; margin-top: 28px; }
  .footer__bottom .mono:first-child, .footer__bottom .mono { font-size: 11px; }

  .tabbar {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    height: calc(84px + env(safe-area-inset-bottom)); padding: 0 12px calc(14px + env(safe-area-inset-bottom));
    background: rgba(7, 14, 36, .96); border-top: 1px solid #1B2A58;
  }
  .tabbar__item { min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--muted); text-decoration: none; }
  .tabbar__item svg { width: 22px; height: 22px; }
  .tabbar__item.is-active { color: var(--yellow); }
  .tabbar__play { justify-self: center; margin-top: -30px; width: 66px; height: 66px; border-radius: 22px; background: var(--yellow); color: var(--ink); display: flex; align-items: center; justify-content: center; rotate: -4deg; box-shadow: 0 6px 0 var(--yellow-btn), 0 0 0 5px var(--deep); transition: transform .1s; }
  .tabbar__play:active { transform: translateY(4px); }
  .tabbar__play svg { width: 24px; height: 26px; }
}

@media (max-width: 380px) {
  .sticker { padding: 12px 16px; column-gap: 12px; }
  .sticker__num { font-size: 56px; }
  .sticker--mint .sticker__num { font-size: 44px; }
  .sticker__words { font-size: 19px; }
  .tab { font-size: 12px; white-space: nowrap; padding: 0 4px; }
  .cards { grid-auto-columns: 138px; }
  .card__art { height: 98px; }
  .card__art-inner, .card:hover .card__art-inner { transform: scale(.457); }
  .hero__ctas .btn--ghost { padding: 0 12px; letter-spacing: .02em; }
  .mini-plates { font-size: 15px; }
}
