:root {
  --bg: #070d26;
  --night: #0b1640;
  --panel: #1a2558;
  --panel-2: #22306a;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f4f6ff;
  --muted: #aab4e0;
  --gold: #ffd24a;
  --gold-dark: #c99400;
  --green: #2fd08a;
  --green-dark: #11965a;
  --purple: #8f63ff;
  --purple-dark: #5530cc;
  --red: #ff4d6d;
  --font: 'Fredoka', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow: hidden;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

body {
  background:
    radial-gradient(1200px 600px at 50% -10%, #1b2a6b 0%, transparent 60%),
    radial-gradient(800px 500px at 50% 110%, #3a1e5c 0%, transparent 60%),
    var(--bg);
}

button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }

.ico { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -0.25em; }

#app {
  position: relative;
  height: 100dvh;
  max-width: 520px;
  margin: 0 auto;
  overflow: hidden;
  background: linear-gradient(180deg, #0b1640 0%, #172a66 55%, #2b2163 100%);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.6);
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
.screen.active { display: flex; }

/* ---------- loader ---------- */
#loader { align-items: center; justify-content: center; gap: 28px; }
.logo {
  font-size: 56px;
  font-weight: 700;
  line-height: 0.95;
  text-align: center;
  color: #ffe9a8;
  text-shadow: 0 0 24px rgba(255, 190, 80, 0.6), 0 4px 0 #8a4b00;
}
.logo span { display: block; color: #9fd4ff; text-shadow: 0 0 24px rgba(100, 180, 255, 0.6), 0 4px 0 #1a3f8a; }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, 0.15); border-top-color: var(--gold); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- top bar & pills ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  position: relative;
  z-index: 3;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px 0 6px;
  border-radius: 18px;
  background: rgba(5, 10, 35, 0.6);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 17px;
  min-width: 0;
}
.pill .ico { width: 26px; height: 26px; }
.pill .t { font-size: 12px; color: var(--muted); font-weight: 600; }
.pill .plus { width: 20px; height: 20px; border-radius: 50%; background: var(--green); display: grid; place-items: center; font-size: 15px; line-height: 1; margin-right: -6px; }

.round {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(5, 10, 35, 0.6);
  border: 1px solid var(--line);
  font-size: 30px;
  line-height: 1;
}
.round .ico { width: 22px; height: 22px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 18px;
  width: 100%;
  transition: transform 0.08s ease, filter 0.15s;
}
.btn:active:not(:disabled) { transform: translateY(2px) scale(0.98); }
.btn:disabled { filter: grayscale(0.7) brightness(0.7); }
.btn.play {
  background: linear-gradient(180deg, #4ff0a0 0%, var(--green) 45%, var(--green-dark) 100%);
  box-shadow: 0 4px 0 #0b6a3f, 0 8px 20px rgba(20, 200, 120, 0.3);
  text-shadow: 0 2px 0 rgba(0, 80, 40, 0.5);
}
.btn.ad {
  background: linear-gradient(180deg, #a888ff 0%, var(--purple) 50%, var(--purple-dark) 100%);
  box-shadow: 0 4px 0 #3a1f99;
  margin-top: 10px;
  font-size: 16px;
}
.btn.ad .ico { width: 24px; height: 24px; }
.btn.ghost { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); margin-top: 10px; font-size: 16px; min-height: 44px; }
.btn.ghost small { color: var(--muted); font-weight: 500; }
.btn.big { min-height: 56px; font-size: 21px; }
.btn .cost { display: inline-flex; align-items: center; gap: 3px; background: rgba(0, 0, 0, 0.22); padding: 3px 10px 3px 6px; border-radius: 12px; font-size: 17px; }

/* ---------- map ---------- */
.map-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.06) 0 2px, transparent 3px) 0 0 / 120px 140px,
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0 1.5px, transparent 2.5px) 0 0 / 90px 110px,
    linear-gradient(180deg, #0c1a4a 0%, #123070 50%, #0d2358 100%);
}
.map-scroll::-webkit-scrollbar { display: none; }
.map-path { position: relative; width: 100%; }
.map-line { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-line path { fill: none; stroke: rgba(255, 230, 160, 0.35); stroke-width: 6; stroke-dasharray: 2 14; stroke-linecap: round; }

.node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  background: radial-gradient(circle at 35% 30%, #ffe59a, #f0a52a 60%, #b86a00);
  box-shadow: 0 5px 0 #7a4600, 0 0 22px rgba(255, 190, 80, 0.45);
  color: #4a2a00;
  z-index: 1;
}
.node b { text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); }
.node.locked { background: radial-gradient(circle at 35% 30%, #5d6797, #39416e 70%); box-shadow: 0 5px 0 #20264a; color: #aab4e0; }
.node.current {
  background: radial-gradient(circle at 35% 30%, #b8ffd9, #2fd08a 60%, #0f8a52);
  box-shadow: 0 5px 0 #0b6a3f, 0 0 0 0 rgba(47, 208, 138, 0.6);
  color: #053a22;
  width: 72px;
  height: 72px;
  font-size: 26px;
  animation: pulse 1.6s infinite;
}
.node.hard:not(.locked) { background: radial-gradient(circle at 35% 30%, #ffc2cc, #ff4d6d 60%, #b0153a); box-shadow: 0 5px 0 #7a0c26, 0 0 22px rgba(255, 80, 110, 0.5); color: #fff; }
.node.hard.current { animation: pulse-red 1.6s infinite; }
.node em { position: absolute; top: -18px; font-style: normal; font-size: 11px; background: var(--red); color: #fff; padding: 1px 6px; border-radius: 8px; }
.nstars { position: absolute; bottom: -14px; display: flex; gap: 1px; }
.nstars i, .stars-row i {
  display: block;
  width: 16px;
  height: 16px;
  background: #3a4270;
  clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 80% 98%, 50% 76%, 20% 98%, 30% 60%, 0 38%, 38% 35%);
}
.nstars i.on, .stars-row i.on { background: var(--gold); }
@keyframes pulse { 0% { box-shadow: 0 5px 0 #0b6a3f, 0 0 0 0 rgba(47, 208, 138, 0.6); } 70% { box-shadow: 0 5px 0 #0b6a3f, 0 0 0 18px rgba(47, 208, 138, 0); } 100% { box-shadow: 0 5px 0 #0b6a3f, 0 0 0 0 rgba(47, 208, 138, 0); } }
@keyframes pulse-red { 0% { box-shadow: 0 5px 0 #7a0c26, 0 0 0 0 rgba(255, 77, 109, 0.6); } 70% { box-shadow: 0 5px 0 #7a0c26, 0 0 0 18px rgba(255, 77, 109, 0); } 100% { box-shadow: 0 5px 0 #7a0c26, 0 0 0 0 rgba(255, 77, 109, 0); } }

.deco { position: absolute; transform: translate(-50%, -50%); pointer-events: none; }
.deco.isle { width: 70px; height: 26px; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #2a6e5a, #1a4a40 70%); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2); }
.deco.isle::after { content: ''; position: absolute; left: 30px; top: -16px; width: 8px; height: 8px; border-radius: 50%; background: #ffcf5a; box-shadow: 0 0 14px 4px rgba(255, 200, 80, 0.5); }
.deco.boat { width: 46px; height: 14px; background: #c4553b; border-radius: 0 0 20px 20px; }
.deco.boat::before { content: ''; position: absolute; left: 20px; bottom: 14px; border-left: 16px solid #fff8ec; border-top: 26px solid transparent; }
.map-soon { position: absolute; left: 50%; transform: translateX(-50%); background: rgba(5, 10, 35, 0.7); border: 1px dashed var(--line); padding: 10px 16px; border-radius: 14px; color: var(--muted); white-space: nowrap; }

.bottombar {
  display: grid;
  grid-template-columns: 1fr 1fr 1.8fr 1fr 1fr;
  align-items: center;
  gap: 4px;
  padding: 10px 10px 12px;
  background: linear-gradient(180deg, rgba(7, 13, 38, 0.2), rgba(7, 13, 38, 0.95) 30%);
}
.nav { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: var(--muted); position: relative; padding: 4px 0; }
.nav .ico { width: 30px; height: 30px; }
.nav.badge::after { content: '!'; position: absolute; top: 0; right: 18%; width: 18px; height: 18px; border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; animation: bob 1s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }
#btn-play { min-height: 54px; padding: 8px; }

/* ---------- game screen ---------- */
#screen-game { background: radial-gradient(600px 400px at 50% 55%, rgba(80, 120, 255, 0.18), transparent 70%); }
#screen-game.hard { background: radial-gradient(600px 400px at 50% 55%, rgba(255, 70, 110, 0.18), transparent 70%); }
#stage { position: absolute; inset: 0; z-index: 1; touch-action: none; }
.hud, .hud-score, .boosters, .tip, .mode-hint { position: relative; z-index: 2; }

.hud { display: flex; align-items: center; gap: 10px; padding: 10px 12px 4px; }
.hud-moves {
  width: 70px;
  height: 70px;
  flex: none;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, #34468f, #18225a);
  border: 3px solid #ffd24a;
  box-shadow: 0 0 18px rgba(255, 210, 74, 0.3);
}
.hud-moves b { font-size: 30px; line-height: 1; }
.hud-moves small { font-size: 11px; color: var(--muted); }
.hud-moves.low { border-color: var(--red); box-shadow: 0 0 18px rgba(255, 77, 109, 0.6); animation: throb 0.8s ease-in-out infinite; }
@keyframes throb { 50% { transform: scale(1.06); } }
.hud-goals { flex: 1; display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.goal { display: flex; align-items: center; gap: 2px; background: rgba(5, 10, 35, 0.65); border: 1px solid var(--line); border-radius: 16px; padding: 2px 10px 2px 2px; }
.goal img { width: 40px; height: 40px; }
.goal .n { font-size: 20px; font-weight: 700; min-width: 22px; text-align: center; }
.goal.done { border-color: var(--green); }
.goal.done .n { color: var(--green); }
.goal.bump { animation: bump 0.25s ease; }
@keyframes bump { 40% { transform: scale(1.15); } }

.hud-score { display: flex; align-items: center; gap: 10px; padding: 4px 16px; font-size: 14px; color: var(--muted); }
.hud-score #hud-score { color: var(--text); font-weight: 700; min-width: 50px; text-align: right; }
.bar { flex: 1; height: 10px; border-radius: 6px; background: rgba(0, 0, 0, 0.4); position: relative; }
#hud-bar-fill { height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #ffb020, #ffe08a); transition: width 0.3s ease; }
.bar i { position: absolute; top: 50%; width: 20px; height: 20px; transform: translate(-50%, -50%); background: #3a4270; clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 80% 98%, 50% 76%, 20% 98%, 30% 60%, 0 38%, 38% 35%); transition: background 0.2s, transform 0.2s; }
.bar i.lit { background: var(--gold); transform: translate(-50%, -50%) scale(1.2); }

.board-slot { flex: 1; margin: 10px 10px 4px; pointer-events: none; min-height: 0; }
.tip {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 4;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 248, 225, 0.95);
  color: #3a2a10;
  font-weight: 600;
  text-align: center;
  font-size: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  animation: drop 0.3s ease;
}
@keyframes drop { from { transform: translateY(-10px); opacity: 0; } }
.mode-hint { position: absolute; top: 112px; left: 50%; transform: translateX(-50%); background: rgba(5, 10, 35, 0.85); padding: 8px 16px; border-radius: 14px; white-space: nowrap; pointer-events: none; }
.boosters { display: flex; justify-content: center; gap: 18px; padding: 6px 0 14px; }
.boosters button {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #34468f, #1d2866);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 0 #0f1640;
}
.boosters button .ico { width: 36px; height: 36px; }
.boosters button.active { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 210, 74, 0.4), 0 4px 0 #0f1640; transform: translateY(-4px); }
.boosters .count { position: absolute; right: -6px; bottom: -6px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--green); font-size: 14px; font-weight: 700; display: grid; place-items: center; border: 2px solid #0b1640; }
.boosters .empty .count { background: var(--gold); color: #4a2a00; }

/* ---------- town ---------- */
.town-title { display: flex; flex-direction: column; align-items: center; }
.town-title b { font-size: 20px; }
.town-title small { color: var(--muted); font-size: 13px; }
.town-scene { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 12px; }
.town-svg { width: 100%; height: 100%; max-height: 100%; border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.town-item { transition: opacity 0.6s, filter 0.6s; }
.town-item:not(.done) { opacity: 0.08; filter: grayscale(1) brightness(1.8); }
.town-item.just { animation: restore 1s ease; transform-box: fill-box; transform-origin: center bottom; }
@keyframes restore { 0% { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
.town-tasks { padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.task { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); font-weight: 600; }
.task.next { background: var(--panel-2); border-color: rgba(255, 210, 74, 0.5); }
.task.later { opacity: 0.55; }
.task .btn { width: auto; min-height: 42px; padding: 6px 16px; margin: 0; font-size: 18px; gap: 4px; }
.task.done-all { flex-direction: column; text-align: center; color: var(--muted); }
.task.done-all b { color: var(--gold); font-size: 20px; }

/* ---------- modals ---------- */
#modal-root { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.modal-back {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(3, 6, 20, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.18s;
  pointer-events: auto;
}
.modal-back.in { opacity: 1; }
.modal {
  position: relative;
  width: 100%;
  max-width: 360px;
  max-height: 100%;
  overflow-y: auto;
  padding: 26px 20px 20px;
  border-radius: 26px;
  background: linear-gradient(180deg, #2a3a7e 0%, #1a2558 100%);
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-align: center;
  transform: scale(0.85);
  transition: transform 0.22s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.modal-back.in .modal { transform: scale(1); }
.modal-back.hard .modal { background: linear-gradient(180deg, #6a2547 0%, #2a1b4a 100%); border-color: rgba(255, 120, 150, 0.4); }
.modal h2 { margin: 0 0 6px; font-size: 28px; line-height: 1.1; }
.modal .sub { color: var(--muted); margin: 6px 0 12px; font-size: 16px; }
.modal .sub b { color: var(--text); }
.modal .kicker { margin: 0 0 4px; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; }
.modal .x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 50%; font-size: 26px; line-height: 1; background: rgba(0, 0, 0, 0.25); color: var(--muted); }
.modal .tipline { background: rgba(255, 248, 225, 0.1); border-radius: 12px; padding: 8px 12px; font-size: 15px; margin: 0 0 14px; }
.modal .reward { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 20px; margin: 4px 0 12px; }
.modal .reward .ico { width: 28px; height: 28px; }
.modal .score { font-size: 32px; font-weight: 700; margin: 4px 0; color: #ffe9a8; }
.modal .fine { color: var(--muted); font-size: 12px; margin: 14px 0 0; }
.modal .balance { font-size: 26px; display: flex; justify-content: center; gap: 6px; align-items: center; margin: 0 0 6px; }
.modal .balance .ico { width: 30px; height: 30px; }
.hard-tag { display: inline-block; background: var(--red); padding: 2px 12px; border-radius: 10px; font-weight: 700; margin-bottom: 6px; }
.goal-row { display: flex; justify-content: center; gap: 10px; margin: 0 0 16px; flex-wrap: wrap; }
.goal-big { display: flex; flex-direction: column; align-items: center; background: rgba(0, 0, 0, 0.25); border-radius: 16px; padding: 6px 12px 8px; min-width: 76px; }
.goal-big img { width: 56px; height: 56px; }
.goal-big b { font-size: 22px; }
.stars-row { display: flex; justify-content: center; gap: 6px; margin: 4px 0 8px; }
.stars-row.small i { width: 22px; height: 22px; }
.stars-row.big { gap: 4px; margin: 12px 0 6px; }
.stars-row.big i { width: 64px; height: 64px; transform: scale(0.9); }
.stars-row.big i:nth-child(2) { width: 80px; height: 80px; margin-top: -14px; }
.stars-row.big i.on { animation: starpop 0.4s cubic-bezier(0.2, 1.6, 0.4, 1) forwards; filter: drop-shadow(0 0 10px rgba(255, 210, 74, 0.8)); }
@keyframes starpop { 0% { transform: scale(0.2); } 100% { transform: scale(1); } }
.daily-fab { position: absolute; right: 12px; top: calc(62px + env(safe-area-inset-top)); z-index: 4; display: flex; flex-direction: column; align-items: center; padding: 8px 10px 6px; border-radius: 18px; background: linear-gradient(180deg, #2f4596, #1d2866); border: 2px solid rgba(255, 210, 74, 0.6); box-shadow: 0 4px 0 #0f1640, 0 0 18px rgba(63, 169, 255, 0.35); }
.daily-fab .ico { width: 34px; height: 34px; }
.daily-fab b { font-size: 14px; line-height: 1.1; }
.daily-fab small { font-size: 11px; color: var(--muted); }
.daily-fab.badge::after { content: '!'; position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--red); font-size: 13px; font-weight: 700; display: grid; place-items: center; animation: bob 1s ease-in-out infinite; }
.daily-chip { flex-direction: column; align-items: flex-end; padding: 6px 12px; border-color: rgba(255, 210, 74, 0.5); }
.daily-chip b { font-size: 18px; }
.daily-chip small { color: var(--muted); font-size: 11px; }
.fair { text-align: left; font-size: 13px; color: var(--muted); background: rgba(0, 0, 0, 0.25); border-radius: 12px; padding: 10px 12px; margin: 0 0 4px; }
.fair b { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; }
.stats { display: flex; justify-content: center; gap: 12px; margin: 0 0 12px; }
.stats span { background: rgba(0, 0, 0, 0.25); border-radius: 12px; padding: 6px 14px; color: var(--muted); font-size: 13px; display: flex; flex-direction: column; }
.stats b { color: var(--text); font-size: 22px; }
.streak { display: flex; align-items: center; gap: 12px; text-align: left; background: rgba(0, 0, 0, 0.25); border-radius: 16px; padding: 8px 12px; margin: 0 0 12px; border: 2px solid transparent; }
.streak.on { border-color: rgba(255, 210, 74, 0.55); background: rgba(255, 210, 74, 0.1); }
.streak b { display: block; font-size: 15px; }
.streak small { color: var(--muted); font-size: 13px; }
.streak .pips { display: flex; gap: 4px; }
.streak .pips i { width: 14px; height: 20px; border-radius: 7px; background: #3a4270; }
.streak .pips i.on { background: radial-gradient(circle at 40% 35%, #ffe9a0, #ffb020); box-shadow: 0 0 10px rgba(255, 190, 60, 0.8); }
.pre { display: flex; gap: 10px; justify-content: center; margin: 0 0 14px; }
.pre-b { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 104px; padding: 8px 6px; border-radius: 16px; background: rgba(0, 0, 0, 0.25); border: 2px solid transparent; font-size: 13px; font-weight: 600; }
.pre-b .ico { width: 34px; height: 34px; }
.pre-b small { color: var(--muted); display: flex; align-items: center; gap: 2px; }
.pre-b small .ico { width: 16px; height: 16px; }
.pre-b.on { border-color: var(--green); background: rgba(47, 208, 138, 0.15); }
.big-ico .ico { width: 84px; height: 84px; }
.big-ico.glow .ico { filter: drop-shadow(0 0 16px rgba(255, 210, 74, 0.7)); }
.lives-big { display: flex; justify-content: center; align-items: center; position: relative; margin: 6px 0; }
.lives-big .ico { width: 90px; height: 90px; }
.lives-big b { position: absolute; font-size: 32px; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3); }
.broken-heart .ico { width: 80px; height: 80px; filter: grayscale(0.6); animation: shake 0.5s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-6px) rotate(-6deg); } 40%, 80% { transform: translateX(6px) rotate(6deg); } }
.days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 14px; }
.day { background: rgba(0, 0, 0, 0.25); border-radius: 12px; padding: 6px 2px; font-size: 13px; font-weight: 600; border: 2px solid transparent; }
.day small { display: block; color: var(--muted); font-size: 11px; }
.day .ico { width: 18px; height: 18px; }
.day.got { opacity: 0.4; }
.day.today { border-color: var(--gold); background: rgba(255, 210, 74, 0.15); }
.day.grand { grid-column: span 2; background: linear-gradient(180deg, rgba(255, 107, 203, 0.3), rgba(143, 99, 255, 0.3)); }
.shop-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.shop-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(0, 0, 0, 0.25); text-align: left; }
.shop-item > .ico { width: 36px; height: 36px; }
.shop-item span { flex: 1; font-weight: 600; display: flex; flex-direction: column; }
.shop-item small { color: var(--muted); font-weight: 500; }
.shop-item b { display: flex; align-items: center; gap: 3px; background: var(--green); padding: 6px 10px; border-radius: 12px; }
.toggles { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.toggles label { display: flex; justify-content: space-between; align-items: center; background: rgba(0, 0, 0, 0.25); padding: 10px 14px; border-radius: 14px; font-weight: 600; }
.toggles input { width: 22px; height: 22px; accent-color: var(--green); }

/* ---------- toast & fake ad ---------- */
.toast { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); background: rgba(5, 10, 35, 0.92); border: 1px solid var(--line); padding: 10px 18px; border-radius: 14px; z-index: 30; opacity: 0; pointer-events: none; white-space: nowrap; }
.toast.show { animation: toast 2.2s ease forwards; }
@keyframes toast { 10%, 80% { opacity: 1; transform: translate(-50%, -6px); } 100% { opacity: 0; } }
.fake-ad { position: fixed; inset: 0; z-index: 100; background: #000; display: grid; place-items: center; color: #fff; text-align: center; font-family: var(--font); }
.fake-ad b { font-size: 24px; }
.fake-ad p { color: #999; }
.fake-ad span { display: block; font-size: 64px; margin: 10px 0; }
.fake-ad button { background: #333; padding: 8px 14px; border-radius: 10px; }

@media (prefers-reduced-motion: reduce) {
  .node.current, .hud-moves.low, .nav.badge::after { animation: none; }
}
