/* ================= Fonts (bundled, offline) ================= */
@font-face { font-family: Vazirmatn; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/vazirmatn-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+2010-2011, U+204F, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: Vazirmatn; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/vazirmatn-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+2010-2011, U+204F, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: Vazirmatn; font-style: normal; font-display: swap; font-weight: 900; src: url(../fonts/vazirmatn-arabic-900-normal.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+2010-2011, U+204F, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: Vazirmatn; font-style: normal; font-display: swap; font-weight: 400; src: url(../fonts/vazirmatn-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: Vazirmatn; font-style: normal; font-display: swap; font-weight: 700; src: url(../fonts/vazirmatn-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: Vazirmatn; font-style: normal; font-display: swap; font-weight: 900; src: url(../fonts/vazirmatn-latin-900-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }

/* ================= Tokens ================= */
:root {
  --bg: #0c0f26;
  --bg-deep: #07091a;
  --ink: #f4f1ff;
  --muted: #a7a3d6;
  --line: rgba(255, 255, 255, .12);
  --glass: rgba(255, 255, 255, .07);
  --sheet-a: #28226a;
  --sheet-b: #18154a;
  --gold-a: #ffd95a;
  --gold-b: #ffa92e;
  --gold-edge: #c26f16;
  --gold-ink: #3b2100;
  --mint-a: #4df0cf;
  --mint-b: #17b79f;
  --mint-edge: #0b7e6c;
  --mint-ink: #032e27;
  --violet: #8b6bff;
  --danger: #ff5d73;
  --radius: 20px;
  --dir: 1;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6 6.6.9-4.8 4.6 1.2 6.5L12 17.4l-5.9 3.1 1.2-6.5L2.5 9.4l6.6-.9z'/%3E%3C/svg%3E");
  /* page background; a .bg-<id> class swaps it (see Collection) */
  --scene-night:
    radial-gradient(120% 65% at 50% -12%, #3b2a96 0%, rgba(59, 42, 150, 0) 62%),
    radial-gradient(80% 50% at 110% 105%, rgba(18, 128, 140, .45) 0%, rgba(18, 128, 140, 0) 60%),
    radial-gradient(70% 45% at -15% 80%, rgba(170, 50, 150, .28) 0%, rgba(170, 50, 150, 0) 60%),
    linear-gradient(180deg, #111437 0%, #0c0f26 45%, #07091a 100%);
  --scene: var(--scene-night);
}
/* explicit, so a Night preview card never inherits a previewed page background */
.bg-night { --scene: var(--scene-night); }
[dir="rtl"] { --dir: -1; }

/* ================= Base ================= */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
  margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none;
  background: var(--bg-deep);
}
body {
  position: fixed; inset: 0;
  font-family: Vazirmatn, system-ui, sans-serif;
  color: var(--ink);
  background: var(--scene);
  transition: background .3s ease;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:disabled { cursor: default; }
button:focus { outline: none; }
button:focus-visible { outline: 2px solid var(--mint-a); outline-offset: 2px; }
h1, h2, p { margin: 0; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); font-size: 14px; }
.center { text-align: center; }
.ic { width: 24px; height: 24px; display: block; flex: none; }
.coin { width: 22px; height: 22px; display: block; flex: none; }
.coin.big { width: 40px; height: 40px; }
[data-icon] { display: inline-grid; place-items: center; }
[dir="rtl"] .flip-rtl .ic { transform: scaleX(-1); }

/* ================= Splash ================= */
#splash {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; gap: 18px; justify-items: center;
  background: var(--bg); transition: opacity .35s ease;
}
body.ready #splash { opacity: 0; pointer-events: none; }
.splash-logo { display: flex; gap: 10px; }
.splash-logo i {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, rgba(255,255,255,.85), rgba(255,255,255,0) 35%), var(--c, #888);
  animation: splash-bob .9s ease-in-out infinite alternate;
}
.splash-logo i:nth-child(2) { animation-delay: .15s; }
.splash-logo i:nth-child(3) { animation-delay: .3s; }
#splash-msg { color: var(--muted); font-size: 13px; max-width: 30ch; text-align: center; }
@keyframes splash-bob { to { transform: translateY(-12px); } }

/* ================= Screens ================= */
.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: var(--sat) var(--sar) var(--sab) var(--sal);
  visibility: hidden; opacity: 0;
  transition: opacity .22s ease, visibility 0s linear .22s;
}
.screen.active { visibility: visible; opacity: 1; transition: opacity .22s ease; }

.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 6px; min-height: 64px; flex: none;
}
.icon-btn {
  width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; flex: none;
  background: var(--glass); border: 1px solid var(--line);
  box-shadow: 0 3px 0 rgba(0, 0, 0, .25);
  transition: transform .08s ease;
}
.icon-btn:active { transform: translateY(2px); }
.icon-btn-space { width: 46px; flex: none; }

.coins {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px 0 8px;
  border-radius: 999px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 210, 90, .28);
  font-weight: 900; font-size: 17px; font-variant-numeric: tabular-nums;
}
[dir="rtl"] .coins { padding: 0 8px 0 14px; }
.coins.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.14); } }

/* ================= Buttons ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 54px; padding: 0 22px; border-radius: 18px;
  font-weight: 700; font-size: 17px; white-space: nowrap;
  background: rgba(255, 255, 255, .09); border: 1px solid var(--line);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .28);
  transition: transform .08s ease, box-shadow .08s ease, opacity .2s;
}
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .28); }
.btn:disabled { opacity: .5; }
.btn.small { height: 44px; font-size: 15px; padding: 0 16px; border-radius: 14px; }
.btn.big { height: 64px; font-size: 21px; font-weight: 900; min-width: 230px; border-radius: 22px; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.primary {
  color: var(--gold-ink); border: 0;
  background: linear-gradient(180deg, var(--gold-a), var(--gold-b));
  box-shadow: 0 5px 0 var(--gold-edge), 0 10px 24px rgba(255, 170, 40, .28), inset 0 2px 0 rgba(255, 255, 255, .55);
}
.btn.primary:active:not(:disabled) { box-shadow: 0 2px 0 var(--gold-edge), 0 4px 10px rgba(255, 170, 40, .2), inset 0 2px 0 rgba(255, 255, 255, .55); }
.btn.adbtn {
  color: var(--mint-ink); border: 0;
  background: linear-gradient(180deg, var(--mint-a), var(--mint-b));
  box-shadow: 0 5px 0 var(--mint-edge), inset 0 2px 0 rgba(255, 255, 255, .5);
}
.btn.adbtn.done { opacity: .75; }
.adtag {
  display: inline-grid; place-items: center; width: 30px; height: 22px; border-radius: 7px;
  background: rgba(3, 46, 39, .85); color: #fff;
}
.adtag .ic { width: 16px; height: 16px; }
.btn.busy { opacity: .7; pointer-events: none; }

/* ================= Home ================= */
.title {
  font-size: clamp(34px, 10vw, 46px); font-weight: 900; letter-spacing: -.01em; line-height: 1.15; text-align: center;
  background: linear-gradient(90deg, #ff8aa0, #ffd36b 35%, #6ff0d2 65%, #8fa2ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .25));
}
[dir="ltr"] .title { letter-spacing: -.02em; }
.tagline { color: var(--muted); font-size: 15px; text-align: center; }
.home-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 10px 24px 30px; width: 100%; max-width: 460px; margin: 0 auto; }
.level-chip { font-weight: 700; color: var(--muted); font-size: 16px; padding: 4px 14px; border-radius: 999px; background: rgba(0, 0, 0, .22); }
#btn-play { width: 100%; }
#btn-play .ic { width: 26px; height: 26px; }
.home-row { display: flex; gap: 10px; width: 100%; }
.tile {
  flex: 1; min-width: 0; height: 72px; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: var(--glass); border: 1px solid var(--line); font-weight: 700; font-size: 13px; white-space: nowrap;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .28); position: relative;
  transition: transform .08s ease;
}
.tile:active { transform: translateY(3px); }
.tile .ic { width: 27px; height: 27px; }
#btn-daily .ic { color: #ff8aa0; }
#btn-daily-x .ic { color: #ffd36b; }
#btn-cats .ic { color: #c3a6ff; } #btn-blitz .ic { color: #7fc8ff; }
#btn-shop-home .ic { color: #6ff0d2; }
.tile.dot::after, .challenge-card.dot::after {
  content: ''; position: absolute; top: 10px; inset-inline-end: 12px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--danger); box-shadow: 0 0 0 3px rgba(12, 15, 38, .8);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.25); } }
.hint {
  min-height: 44px; padding: 4px 28px; text-align: center; color: var(--muted); font-size: 15px; line-height: 1.5;
  opacity: 0; transition: opacity .3s ease; flex: none;
}
.hint.show { opacity: 1; }

.boosters {
  display: flex; justify-content: center; gap: 16px; flex: none;
  padding: 4px 16px 18px;
}
.booster {
  position: relative; width: 78px; height: 74px; border-radius: 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: var(--glass); border: 1px solid var(--line);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .3);
  transition: transform .08s ease, opacity .2s;
}
.booster:active { transform: translateY(3px); }
.booster[aria-disabled="true"] { opacity: .5; }
.booster .bic .ic { width: 28px; height: 28px; }
.booster .blabel { font-size: 12px; font-weight: 700; color: var(--muted); }
.booster .badge {
  position: absolute; top: -8px; inset-inline-end: -8px; min-width: 26px; height: 24px; padding: 0 6px;
  border-radius: 999px; display: none; align-items: center; justify-content: center; gap: 3px;
  font-size: 13px; font-weight: 900; box-shadow: 0 2px 0 rgba(0, 0, 0, .3);
}
.booster .badge .ic { width: 15px; height: 15px; }
.booster .badge .coin { width: 15px; height: 15px; }
.badge.count { display: inline-flex; background: linear-gradient(var(--gold-a), var(--gold-b)); color: var(--gold-ink); }
.badge.price { display: inline-flex; background: #221c56; border: 1px solid rgba(255, 210, 90, .4); color: var(--gold-a); }
.badge.ad { background: linear-gradient(var(--mint-a), var(--mint-b)); color: var(--mint-ink); }
.badge.ok { background: var(--mint-b); color: #fff; }
.booster.adgate .badge.count, .booster.adgate .badge.price { display: none; }
.booster.adgate .badge.ad { display: inline-flex; }
.booster.used { opacity: .55; }
.booster.used .badge.price, .booster.used .badge.ad { display: none; }
.booster.used .badge.ok { display: inline-flex; }
.booster.nudge { animation: nudge .9s ease 2; }
@keyframes nudge { 20% { transform: scale(1.1) rotate(-4deg); } 40% { transform: scale(1.1) rotate(4deg); } 60% { transform: none; } }

/* ================= Overlays ================= */
.overlay {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  padding: calc(var(--sat) + 16px) calc(var(--sar) + 16px) calc(var(--sab) + 16px) calc(var(--sal) + 16px);
  background: rgba(5, 7, 20, .66);
  opacity: 0; transition: opacity .2s ease;
}
.overlay.open { opacity: 1; }
.overlay[hidden] { display: none; }
.sheet {
  width: min(100%, 420px); max-height: 100%; overflow: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px; border-radius: 28px;
  background: linear-gradient(180deg, var(--sheet-a), var(--sheet-b));
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .12);
  transform: translateY(18px) scale(.97); transition: transform .26s cubic-bezier(.2, .9, .3, 1.1);
  -webkit-user-select: none; user-select: none;
}
.overlay.open .sheet { transform: none; }
.sheet.tall { height: 100%; }
.sheet h2 { font-size: 22px; font-weight: 900; text-align: center; }
.sheet-head { display: flex; align-items: center; gap: 10px; }
.sheet-head h2 { flex: 1; text-align: start; }
.sheet .btn:not(.small) { width: 100%; }

/* complete */
.sheet.complete { align-items: center; text-align: center; padding-top: 28px; }
.stars { display: flex; align-items: flex-end; gap: 6px; height: 92px; }
.star .ic { width: 64px; height: 64px; color: rgba(255, 255, 255, .13); stroke: rgba(0, 0, 0, .2); stroke-width: 1; }
.star.mid .ic { width: 84px; height: 84px; }
.star.mid { transform: translateY(-10px); }
.star.on .ic { color: #ffd23f; filter: drop-shadow(0 4px 10px rgba(255, 190, 40, .5)); animation: star-pop .45s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes star-pop { from { transform: scale(.2) rotate(-40deg); opacity: 0; } }
.complete .sub { font-size: 17px; font-weight: 700; color: var(--mint-a); }
.reward { display: flex; align-items: center; gap: 10px; font-size: 34px; font-weight: 900; margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.reward .coin { width: 38px; height: 38px; }

/* settings */
.set-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; border-radius: 16px; background: rgba(0, 0, 0, .18); }
.set-row small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.set-row > .grow { font-weight: 700; }
.switch { width: 54px; height: 32px; border-radius: 999px; background: rgba(255, 255, 255, .16); position: relative; flex: none; transition: background .2s; }
.switch i { position: absolute; top: 3px; inset-inline-start: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.3); transition: transform .2s ease; }
.switch[aria-checked="true"] { background: var(--mint-b); }
.switch[aria-checked="true"] i { transform: translateX(calc(22px * var(--dir))); }
.seg { display: flex; background: rgba(0, 0, 0, .3); border-radius: 12px; padding: 3px; }
.seg button { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--violet); color: #fff; }
.set-links { display: flex; gap: 10px; }
.set-links .btn { flex: 1; padding: 0 10px; }

/* shop */
.shop-balance { align-self: center; }
#shop-list { display: flex; flex-direction: column; gap: 10px; }
.shop-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: rgba(0, 0, 0, .2); border: 1px solid transparent; }
.shop-item.best { border-color: rgba(255, 210, 90, .45); background: linear-gradient(90deg, rgba(255, 190, 60, .12), rgba(0, 0, 0, .2)); }
.shop-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); flex: none; }
.shop-ic .ic { width: 28px; height: 28px; color: #ff8aa0; }
.shop-item.free .shop-ic .ic { color: var(--mint-a); }
.shop-txt { flex: 1; min-width: 0; }
.shop-txt b { display: block; font-size: 16px; }
.shop-txt small { color: var(--muted); font-size: 12px; }
.shop-item .buy { min-width: 96px; background: linear-gradient(180deg, var(--gold-a), var(--gold-b)); color: var(--gold-ink); border: 0; box-shadow: 0 3px 0 var(--gold-edge); font-weight: 900; }
.shop-item .buy.ghost { background: transparent; color: var(--mint-a); box-shadow: none; }
.shop-item .adbtn { padding: 0 10px 0 6px; }
#btn-restore { align-self: center; color: var(--muted); }

/* daily */
.daily-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.day {
  position: relative; border-radius: 16px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: rgba(0, 0, 0, .22); border: 2px solid transparent; font-variant-numeric: tabular-nums;
}
.day.big { grid-column: span 2; background: linear-gradient(135deg, rgba(255, 190, 60, .2), rgba(0, 0, 0, .2)); }
.day .dn { font-size: 12px; color: var(--muted); font-weight: 700; }
.day b { font-size: 15px; }
.day.today { border-color: var(--gold-a); box-shadow: 0 0 18px -4px var(--gold-a); animation: pulse-soft 1.6s ease-in-out infinite; }
.day.claimed { opacity: .5; }
.day .tick { position: absolute; top: 4px; inset-inline-end: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--mint-b); display: grid; place-items: center; }
.day .tick .ic { width: 14px; height: 14px; }
@keyframes pulse-soft { 50% { transform: scale(1.04); } }

/* privacy doc */
.doc { overflow: auto; flex: 1; min-height: 0; -webkit-user-select: text; user-select: text; font-size: 14px; line-height: 1.8; color: #dcd9f5; padding-inline-end: 4px; }
.doc h1 { font-size: 19px; margin: 4px 0 10px; }
.doc h2 { font-size: 16px; text-align: start; margin: 16px 0 4px; }
.doc p { margin: 0 0 10px; }
.doc ul { margin: 0 0 10px; padding-inline-start: 20px; }

/* ================= Toast & confetti ================= */
#toast {
  position: fixed; left: 50%; bottom: calc(var(--sab) + 118px); z-index: 70; max-width: min(88vw, 380px);
  padding: 12px 18px; border-radius: 16px; text-align: center; font-size: 15px; font-weight: 700;
  background: rgba(16, 14, 48, .94); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; display: none; }

/* ================= Home: daily challenge card ================= */
.challenge-card {
  position: relative; width: 100%; min-height: 64px; display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-radius: 20px; text-align: start;
  background: linear-gradient(90deg, rgba(255, 111, 208, .22), rgba(79, 99, 255, .22));
  border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 4px 0 rgba(0, 0, 0, .28);
  transition: transform .08s ease;
}
.challenge-card:active { transform: translateY(3px); }
.cc-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: rgba(255, 255, 255, .12); color: #ff9fd9; }
.cc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.cc-txt b { font-size: 16px; font-weight: 900; }
.cc-txt small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-streak { display: inline-flex; align-items: center; gap: 3px; height: 32px; padding: 0 10px; border-radius: 999px; background: rgba(0, 0, 0, .28); color: #ffb14a; font-weight: 900; font-variant-numeric: tabular-nums; flex: none; }
.cc-streak .ic { width: 20px; height: 20px; }
.cc-streak.cold { color: var(--muted); }
.challenge-card.done { background: rgba(255, 255, 255, .06); }
.challenge-card.done .cc-ic { color: var(--mint-a); }
.challenge-card.locked { opacity: .55; }

/* ================= Tubes of different sizes ================= */
.tube.small:not(.done):not(.sel) { border-color: rgba(255, 176, 110, .45); }
.tube.big:not(.done):not(.sel) { border-color: rgba(120, 225, 255, .45); }

/* ================= Complete: challenge streak ================= */
.streak-line { display: flex; align-items: center; gap: 6px; color: #ffb14a; font-weight: 900; font-size: 16px; }
.streak-line .ic { width: 22px; height: 22px; }

/* ================= Daily challenge overlay ================= */
.ch-hero { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #ffb14a; }
.ch-hero .ic { width: 58px; height: 58px; filter: drop-shadow(0 4px 12px rgba(255, 150, 40, .5)); }
.ch-hero b { font-size: 44px; font-weight: 900; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.ch-hero small { color: var(--muted); font-size: 14px; }
.ch-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.wk { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; background: rgba(0, 0, 0, .25); border: 2px solid transparent; }
.wk .ic { width: 18px; height: 18px; }
.wk.on { background: linear-gradient(#ffb14a, #ff7a3d); color: #3b1600; }
.wk.chest { border-color: rgba(255, 210, 90, .5); color: var(--gold-a); }
.wk.chest.on { color: #3b1600; }
.ch-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ch-stats div { display: flex; flex-direction: column; align-items: center; padding: 10px; border-radius: 16px; background: rgba(0, 0, 0, .2); }
.ch-stats b { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ch-stats small { color: var(--muted); font-size: 12px; }
.ch-next { text-align: center; font-weight: 700; color: var(--mint-a); min-height: 1.5em; }
/* ================= Responsive ================= */
@media (max-height: 720px) {
  .hero-art { transform: scale(.78); height: 150px; margin-bottom: 0; }
  .home-actions { gap: 12px; padding-bottom: 18px; }
}
@media (max-height: 600px) {
  .hero-art { display: none; }
}
@media (max-height: 640px) {
  .booster { width: 70px; height: 64px; }
  .hint { min-height: 30px; font-size: 13px; }
  .topbar { min-height: 56px; }
}
@media (min-width: 700px) {
  .boosters { gap: 24px; padding-bottom: 28px; }
  .booster { width: 92px; height: 84px; }
  .hud-level { font-size: 24px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .hero-art { display: none; }
}

/* ================= Reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
