@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(vendor/fonts/baloo2-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Devanagari (Marathi) for in-world shop signs and boards; the UI itself stays English */
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(vendor/fonts/baloo2-devanagari.woff2) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF;
}

:root {
  --purple: #7b3cff;
  --pink: #ff3d7f;
  --cyan: #2de2e6;
  --gold: #ffcc33;
  --saffron: #ff9a1f;
  --panel: rgba(22, 12, 48, 0.78);
  --panel-solid: #1c1038;
  --line: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #120a2a;
  color: var(--text);
  font-family: 'Baloo 2', system-ui, -apple-system, 'Segoe UI', sans-serif;
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }

#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

.hidden { display: none !important; }

.coin-icon {
  display: inline-block;
  width: 24px; height: 24px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3b0, var(--gold) 45%, #d48a00);
  box-shadow: 0 0 10px rgba(255, 204, 51, .7);
  flex: none;
  position: relative;
}
.coin-icon::after {
  content: '₹';
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font: 800 14px system-ui, sans-serif;
  color: #9a5f00;
}
.coin-icon.sm { width: 18px; height: 18px; vertical-align: -3px; }
.coin-icon.sm::after { font-size: 11px; }

.icon-btn {
  pointer-events: auto;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 17px;
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px;
  padding: 0 14px 0 8px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 18px;
}
.pill b { font-weight: 800; }
.chip {
  display: inline-block;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--gold); color: #3a2400;
  font-style: normal; font-weight: 800; font-size: 13px; line-height: 20px;
}

/* ---------- HUD ---------- */
#hud {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}
.score { display: flex; flex-direction: column; line-height: 0.9; }
.score span { font-size: 44px; font-weight: 800; text-shadow: 0 3px 0 rgba(0,0,0,.35), 0 0 18px rgba(123,60,255,.8); }
.score small { font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); padding-left: 3px; }
.mult {
  margin-left: 6px; padding: 0 6px; border-radius: 6px;
  background: var(--gold); color: #3a2400; letter-spacing: 0; font-size: 13px;
}
.right { display: flex; gap: 10px; align-items: center; }
.coins {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 16px 4px 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 24px; font-weight: 800;
}
.coins.bump { animation: bump .18s ease; }
@keyframes bump { 50% { transform: scale(1.12); } }

#powers { position: absolute; top: 70px; left: 0; display: flex; flex-direction: column; gap: 6px; }
.power {
  display: flex; align-items: center; gap: 8px;
  padding: 3px 10px 3px 4px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 15px; font-weight: 800;
}
.power i {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.12);
  font-style: normal; font-size: 14px;
}
.power .bar { width: 70px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.15); overflow: hidden; }
.power .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--pink)); }

.board-btn {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background: var(--panel);
  font-size: 28px;
  box-shadow: 0 0 18px rgba(45,226,230,.45);
}
.board-btn b {
  position: absolute; right: -4px; top: -4px;
  min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: 12px;
  background: var(--pink);
  font-size: 14px; line-height: 24px;
}
.board-btn:disabled { opacity: .35; box-shadow: none; }

#toast {
  position: fixed; left: 50%; top: 20%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 18px; font-weight: 600;
  text-align: center;
  pointer-events: none;
  animation: toast 2.6s ease forwards;
}
@keyframes toast {
  0% { opacity: 0; transform: translate(-50%, 10px); }
  12%, 80% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; }
}
#pop {
  position: fixed; left: 50%; top: 32%;
  transform: translate(-50%, -50%);
  font-size: 64px; font-weight: 800;
  color: var(--gold);
  text-shadow: 0 4px 0 rgba(0,0,0,.35), 0 0 30px rgba(255,154,31,.8);
  pointer-events: none;
  animation: pop-big 1s ease forwards;
}
@keyframes pop-big {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  70% { opacity: 1; transform: translate(-50%, -60%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -80%) scale(1); }
}

/* close-call bonus: small, rises from just above the runner */
#float {
  position: fixed; left: 50%; top: 58%;
  transform: translate(-50%, 0);
  font-size: 22px; font-weight: 800; white-space: nowrap;
  color: #7af0ff;
  text-shadow: 0 2px 0 rgba(0,0,0,.45), 0 0 16px rgba(45,226,230,.7);
  pointer-events: none; z-index: 8;
  animation: float-up .8s ease-out forwards;
}
@keyframes float-up {
  0% { opacity: 0; transform: translate(-50%, 8px) scale(.7); }
  20% { opacity: 1; transform: translate(-50%, 0) scale(1.08); }
  100% { opacity: 0; transform: translate(-50%, -46px) scale(1); }
}

/* first-run coach: a finger that shows the swipe, and the move in words */
#coach {
  position: fixed; left: 50%; top: 40%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 18px 26px 16px;
  border-radius: 22px;
  background: rgba(18, 10, 42, .62);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  pointer-events: none; z-index: 6;
  animation: coach-in .25s ease-out;
}
#coach b { font-size: 22px; font-weight: 800; text-align: center; max-width: 78vw; }
.coach-hand {
  width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, #ffd9b8 55%, #e9a87c);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .18), 0 6px 18px rgba(0, 0, 0, .4);
}
#coach[data-dir="up"] .coach-hand { animation: swipe-up 1s ease-in-out infinite; }
#coach[data-dir="down"] .coach-hand { animation: swipe-down 1s ease-in-out infinite; }
#coach[data-dir="side"] .coach-hand { animation: swipe-side 1.2s ease-in-out infinite; }
@keyframes coach-in { from { opacity: 0; transform: translate(-50%, -40%) scale(.9); } }
@keyframes swipe-up { 0% { transform: translateY(22px); opacity: 0; } 25% { opacity: 1; } 80% { transform: translateY(-22px); opacity: 1; } 100% { opacity: 0; } }
@keyframes swipe-down { 0% { transform: translateY(-22px); opacity: 0; } 25% { opacity: 1; } 80% { transform: translateY(22px); opacity: 1; } 100% { opacity: 0; } }
@keyframes swipe-side { 0%, 100% { transform: translateX(-46px); } 50% { transform: translateX(46px); } }
@media (prefers-reduced-motion: reduce) { .coach-hand { animation: none !important; } }

#flash {
  position: fixed; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(255, 40, 60, .55));
  transition: opacity .35s ease;
}
#flash.on { opacity: 1; transition: none; }
#flash.gold { background: radial-gradient(ellipse at center, transparent 40%, rgba(255, 204, 51, .45)); }

/* ---------- Home ---------- */
.screen {
  position: fixed; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: max(14px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  pointer-events: none;
}
.screen > * { pointer-events: auto; }
.topbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.topbar .icon-btn { margin-left: auto; }
.title-block { text-align: center; margin-top: 6px; pointer-events: none; }
.brand { font-size: 14px; letter-spacing: 4px; font-weight: 800; color: var(--cyan); }
.brand span { color: var(--muted); font-weight: 600; }
h1, .h1 {
  margin: 0;
  font-size: 64px; line-height: 1; font-weight: 800;
  text-shadow: 0 4px 0 rgba(0,0,0,.35);
}
h1 em, .h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--pink), var(--gold));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.edition {
  display: inline-block;
  margin-top: 2px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--saffron); color: #3a1a00;
  font-weight: 800; font-size: 14px; letter-spacing: 1px;
}
.home-bottom { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: auto; }
.char-tag {
  display: flex; align-items: baseline; gap: 8px; line-height: 1.1;
  text-shadow: 0 2px 6px rgba(0,0,0,.7);
}
.char-tag b { font-size: 20px; }
.char-tag span { font-size: 14px; color: var(--muted); }
.nav { display: flex; gap: 10px; }
.nav-btn {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  width: 92px; padding: 8px 0 6px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 15px; font-weight: 600;
}
.nav-btn span { font-size: 24px; line-height: 1.2; }
.nav-btn .chip { position: absolute; top: -8px; right: -6px; }
.dot {
  position: absolute; top: -4px; right: -4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 3px rgba(255,61,127,.3);
  animation: pulse 1.2s ease infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255,61,127,0); } }

.cta {
  border: 0;
  padding: 12px 40px;
  border-radius: 999px;
  font-size: 24px; font-weight: 800; color: #fff;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  box-shadow: 0 8px 24px rgba(255, 61, 127, .45), inset 0 -3px 0 rgba(0,0,0,.2);
  transition: transform .12s ease, filter .12s ease;
}
.cta.big { padding: 14px 64px; font-size: 30px; }@media(hover:hover) and (pointer:fine){
.cta:not(:disabled):hover { transform: translateY(-2px) scale(1.03); }}
.cta:active { transform: scale(.97); }
.cta:disabled { filter: grayscale(.8) brightness(.7); transform: none; cursor: default; }
.ghost {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  font-size: 16px; font-weight: 600;
}
.row-btns { display: flex; justify-content: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.hint { margin: 8px 0 0; color: var(--muted); font-size: 14px; text-align: center; }

/* ---------- Bottom sheet (shop) ---------- */
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: center;
  padding: 0 max(8px, env(safe-area-inset-left)) 0 max(8px, env(safe-area-inset-right));
}
.sheet-panel {
  width: min(720px, 100%);
  max-height: 56vh;
  display: flex; flex-direction: column;
  padding: 14px 14px max(14px, env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-bottom: 0;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: sheet-in .25s ease;
}
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } }
.sheet-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 12px; }
.sheet-head .close { margin-left: auto; flex: none; }
.sheet-head .pill { flex: none; }
/* tabs take their own scrollable row on narrow phones so the wallet and close button stay on screen */
.tabs { display: flex; gap: 6px; order: 3; flex: 1 0 100%; overflow-x: auto; touch-action: pan-x; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; }
@media (min-width: 560px) { .tabs { order: 0; flex: 0 1 auto; } }
.tab {
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
  font-size: 16px; font-weight: 600; color: var(--muted);
}
.tab.active { background: #fff; color: #1c1038; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  overflow-y: auto;
  touch-action: pan-y;
  padding-bottom: 4px;
}
.card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px;
  border-radius: 16px;
  border: 2px solid transparent;
  background: rgba(255,255,255,.06);
  text-align: left;
}
.card.sel { border-color: var(--cyan); background: rgba(45,226,230,.1); }
.card .portrait {
  width: 56px; height: 56px; border-radius: 14px; object-fit: cover;
  background: #0d0820; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 30px;
}
.card b { font-size: 17px; line-height: 1.1; }
.card small { color: var(--muted); font-size: 13px; line-height: 1.2; min-height: 32px; }
.card .act {
  margin-top: 4px;
  padding: 5px 0;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.card .act.owned { background: rgba(255,255,255,.14); }
.card .act.on { background: var(--cyan); color: #06363a; }
.card .act:disabled { opacity: .5; }
.card .big-emoji { font-size: 40px; line-height: 1; }

/* ---------- Overlays / modals ---------- */
.overlay {
  position: fixed; inset: 0;
  display: grid; place-items: safe center;
  padding: 16px;
  overflow-y: auto;
  touch-action: pan-y;
  background: radial-gradient(ellipse at center, rgba(18, 8, 42, .35), rgba(18, 8, 42, .78));
}
/* stacking: modals over screens, the mystery box over everything except the loader */
.overlay, .sheet { z-index: 5; }
#boxModal { z-index: 7; }
#toast, #pop { z-index: 8; }

.panel {
  position: relative;
  width: min(420px, 100%);
  padding: 26px 22px 20px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
  animation: panel-in .22s ease;
}
@keyframes panel-in { from { transform: scale(.94); opacity: 0; } }
.corner { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; font-size: 15px; }
h2 { margin: 0 0 10px; font-size: 38px; line-height: 1.1; font-weight: 800; }
.tag { margin: 0 0 16px; color: var(--muted); font-size: 16px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 14px; }
.stats div {
  padding: 10px 4px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
}
.stats small { display: block; color: var(--muted); font-size: 13px; }
.stats b { font-size: 28px; }
.badge {
  display: inline-block;
  margin: -4px 0 12px;
  padding: 2px 14px;
  border-radius: 999px;
  background: var(--gold); color: #3a2400;
  font-weight: 800;
  animation: badge-pop .5s ease;
}
@keyframes badge-pop { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
.gain { margin: -4px 0 14px; color: var(--muted); }
.gain b { color: var(--gold); }

.missions-box {
  margin-top: 16px;
  padding: 10px 12px 4px;
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  text-align: left;
}
.missions-box h3 { margin: 0 0 4px; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan); }
.missions { list-style: none; margin: 0; padding: 0; text-align: left; }
.missions li {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 6px 0;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: 15px; line-height: 1.3;
}
.missions li:first-child { border-top: 0; }
.missions em { font-style: normal; color: var(--gold); font-weight: 800; white-space: nowrap; }
.mult-info {
  display: flex; align-items: center; gap: 14px;
  margin: 4px 0 12px; padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,204,51,.1);
  border: 1px solid rgba(255,204,51,.35);
  text-align: left;
}
.mult-big { font-size: 40px; font-weight: 800; color: var(--gold); line-height: 1; }
.mult-info span { display: block; color: var(--muted); font-size: 14px; }

.daily-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.day {
  padding: 8px 2px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 2px solid transparent;
  font-size: 13px; color: var(--muted);
}
.day b { display: block; font-size: 20px; color: #fff; line-height: 1.3; }
.day.done { opacity: .45; }
.day.today { border-color: var(--gold); background: rgba(255,204,51,.12); color: #fff; }
.day.big { grid-column: span 2; }

.box-panel { overflow: hidden; }
.box-art { font-size: 96px; line-height: 1.1; margin: 4px 0 6px; display: inline-block; }
.box-art.shake { animation: shake .5s ease infinite; }
.box-art.open { animation: burst .6s ease; }
@keyframes shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg) scale(1.05); } 75% { transform: rotate(12deg) scale(1.05); } }
@keyframes burst { 0% { transform: scale(.3); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }
.box-reward { font-size: 22px; font-weight: 800; color: var(--gold); min-height: 30px; margin: 0 0 14px; }

.row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 4px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 18px;
  text-align: left;
}
.row input[type=checkbox] { width: 46px; height: 26px; accent-color: var(--pink); }
.row select {
  font: inherit; font-size: 16px;
  padding: 4px 8px; border-radius: 10px;
  background: var(--panel-solid); color: #fff; border: 1px solid var(--line);
}

.ring { position: relative; width: 110px; height: 110px; margin: 4px auto 16px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring-bg { stroke: rgba(255,255,255,.12); }
.ring-fg { stroke: var(--cyan); stroke-linecap: round; stroke-dasharray: 276.5; transition: stroke-dashoffset .1s linear; }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; }

#confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
#confetti i {
  position: absolute; top: -20px;
  width: 10px; height: 16px;
  animation: fall linear forwards;
}
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

#loading {
  position: fixed; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: max(48px, env(safe-area-inset-top)) 16px max(40px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(18,10,42,.55) 0%, rgba(18,10,42,0) 35%, rgba(18,10,42,0) 60%, rgba(18,10,42,.85) 100%),
    url(assets/keyart.jpg) center 30% / cover no-repeat, #120a2a;
  font-size: 20px; color: #fff;
  z-index: 10;
}
.load-title { text-align: center; text-shadow: 0 4px 18px rgba(0,0,0,.5); }
.load-foot { display: flex; flex-direction: column; align-items: center; gap: 12px; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
.spinner {
  width: 46px; height: 46px; border-radius: 50%;
  border: 5px solid rgba(255,255,255,.15);
  border-top-color: var(--pink);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-aspect-ratio: 17/20) {
  h1, .h1 { font-size: 52px; }
}
@media (max-width: 480px) {
  h1, .h1 { font-size: 46px; }
  .score span { font-size: 36px; }
  .cta.big { padding: 12px 48px; font-size: 26px; }
  .nav-btn { width: 84px; }
  .pill { height: 34px; font-size: 16px; padding: 0 10px 0 6px; }
}
@media (max-height: 560px) {
  .title-block { display: none; }
  .hint { display: none; }
}

/* ---------- Upgrades, stats, how to play ---------- */
.pips { display: flex; gap: 4px; margin: 2px 0; }
.pips i { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.15); }
.pips i.on { background: linear-gradient(90deg, var(--cyan), var(--pink)); }
button.pill { cursor: pointer; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stats-grid div {
  padding: 8px 10px; border-radius: 12px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  text-align: left;
}
.stats-grid small { display: block; color: var(--muted); font-size: 13px; }
.stats-grid b { font-size: 22px; }
.howto { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 12px; text-align: left; }
.howto > div {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px; border-radius: 14px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
}
.gesture { min-width: 64px; text-align: center; font-size: 26px; }
.howto p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.25; }
.howto p b { display: block; color: #fff; font-size: 17px; }
kbd {
  display: inline-grid; place-items: center;
  min-width: 26px; height: 26px; padding: 0 5px; margin: 0 1px;
  border-radius: 7px; border: 1px solid var(--line); border-bottom-width: 3px;
  background: rgba(255,255,255,.08);
  font: 600 14px inherit; color: #fff;
}
.tips { list-style: none; margin: 0 0 16px; padding: 0; text-align: left; color: var(--muted); font-size: 15px; }
.tips li { padding: 3px 0; }

/* Consistent vector controls; text labels remain the accessible names. */
.zuq-icon{width:1.15em;height:1.15em;display:inline-block;vertical-align:-.18em;flex-shrink:0;pointer-events:none}.nav-btn .zuq-icon{width:28px;height:28px}.box-art>.zuq-icon{width:1em;height:1em}

/* Input feedback never changes layout or makes disabled controls look actionable. */
button{touch-action:manipulation}
button:disabled{cursor:not-allowed}
button:disabled:hover,button:disabled:active{transform:none!important;filter:none!important}
@media(hover:hover) and (pointer:fine){button:not(:disabled):hover{filter:brightness(1.06)}}
button:not(:disabled):active{filter:brightness(.94)}
button:focus-visible,a:focus-visible{outline-offset:3px}
@media(prefers-reduced-motion:reduce){button,a{transition:none!important;animation:none!important}}
