/* Фирменный стиль по брендбуку «Черноголовки»:
   артезианский зелёный #005E5D, бирюза #88DBDF / #2DCCD3, акцент оранжевый (из логотипа) и красный #EE3326,
   заголовки DIN 2014 Narrow Demi прописными, текст TT Norms. */
@font-face { font-family: "DIN Narrow"; src: url(fonts/din-narrow-demi.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "TT Norms"; src: url(fonts/ttnorms-regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "TT Norms"; src: url(fonts/ttnorms-medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "TT Norms"; src: url(fonts/ttnorms-bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "TT Norms"; src: url(fonts/ttnorms-extrabold.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --teal: #005E5D; --teal-d: #004A49; --teal-m: #0B706E;
  --aqua: #88DBDF; --aqua2: #2DCCD3; --aqua-bg: #E2F4F5; --aqua-pale: #F3FBFB;
  --orange: #FB5500; --orange-soft: #F08D38; --red: #EE3326; --yellow: #F3D95E;
  --card: #FFFFFF; --ink: #003D3C; --soft: #4F7472; --line: #CBE7E8;
  --head: "DIN Narrow", "Arial Narrow", "Roboto Condensed", sans-serif;
  --r: 8px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--aqua-bg); color: var(--ink);
  font: 400 15px/1.45 "TT Norms", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
body { overscroll-behavior: none; -webkit-font-smoothing: antialiased; }
button { font: inherit; border: 0; cursor: pointer; color: inherit; background: none; padding: 0; }
input { font: inherit; }
b, strong { font-weight: 700; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hidden { display: none !important; }
#app { padding: 0 0 calc(86px + var(--safe-b)); min-height: 100vh; }

.splash { height: 100vh; display: grid; place-items: center; background: var(--teal); }
.splash img { width: 120px; animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; transform: scale(.96); } }

/* заголовки и метки */
.h { font-family: var(--head); font-weight: 600; font-size: 24px; line-height: 1.05; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .3px; color: var(--teal); }
.h.big { font-size: 32px; }
.label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.sub { color: var(--soft); margin: -4px 0 16px; }

/* ---------- шапка ---------- */
.hero { background: var(--teal); color: #fff; padding: 14px 20px 22px; position: relative; overflow: hidden; }
.hero .steps-bg { position: absolute; right: 0; top: 0; width: 150px; height: 120px; }
.hero .steps-bg i { position: absolute; display: block; }
.hero > *:not(.steps-bg):not(.mark-bg) { position: relative; z-index: 1; }
.hero .mark-bg { position: absolute; right: -26px; bottom: -34px; width: 170px; opacity: .13; }
.hero-top { display: flex; justify-content: space-between; align-items: center; }
.hero-top .logo { height: 52px; width: auto; display: block; }
.lang { display: flex; background: rgba(255,255,255,.12); border-radius: 6px; padding: 3px; position: absolute; right: 16px; top: 100px; }
.lang button { padding: 4px 9px; border-radius: 4px; font-size: 12px; font-weight: 700; color: #BFE3E3; letter-spacing: .05em; }
.lang button.on { background: #fff; color: var(--teal); }
.hello { margin: 20px 0 2px; font-size: 14px; color: #BFE3E3; }
.balance { font-family: var(--head); font-weight: 600; font-size: 64px; line-height: .95; letter-spacing: -.5px; }
.balance small { font-family: "TT Norms", sans-serif; font-size: 15px; font-weight: 500; letter-spacing: 0; color: #BFE3E3; margin-left: 6px; }
.lvl { margin-top: 16px; max-width: 260px; }
.lvl-row { display: flex; justify-content: space-between; font-size: 12px; color: #BFE3E3; margin-bottom: 7px; gap: 8px; }
.lvl-row b { color: #fff; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.bar { height: 6px; background: rgba(255,255,255,.16); border-radius: 3px; overflow: hidden; }
.bar > div { height: 100%; background: var(--aqua2); border-radius: 3px; transition: width .7s cubic-bezier(.2,.8,.2,1); }
.slogan { margin-top: 14px; font-family: var(--head); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--aqua); }

.wrap { padding: 18px 16px 8px; }
.section { display: flex; justify-content: space-between; align-items: baseline; margin: 26px 0 12px; }
.section .h { margin: 0; }
.more { color: var(--teal-m); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- главная ---------- */
.code-cta { display: flex; align-items: center; gap: 14px; background: var(--orange); color: #fff; border-radius: var(--r); padding: 16px 14px; width: 100%; text-align: left; position: relative; overflow: hidden; }
.code-cta::after { content: ""; position: absolute; right: 0; top: 0; width: 26px; height: 26px; background: var(--orange-soft); }
.code-cta .cap-mini { width: 54px; height: 54px; flex: none; }
.code-cta b { display: block; font-family: var(--head); font-weight: 600; font-size: 21px; line-height: 1.05; text-transform: uppercase; letter-spacing: .3px; }
.code-cta span span { font-size: 13px; opacity: .92; }
.code-cta .go { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--orange); display: grid; place-items: center; flex: none; position: relative; z-index: 1; }

.game-card { margin-top: 10px; background: var(--teal-m); color: #fff; border-radius: var(--r); padding: 16px; display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; overflow: hidden; position: relative; }
.game-card::before { content: ""; position: absolute; right: 0; bottom: 0; width: 46px; height: 18px; background: var(--aqua2); opacity: .5; }
.game-card::after { content: ""; position: absolute; right: 0; bottom: 18px; width: 18px; height: 18px; background: var(--aqua2); opacity: .3; }
.mini-board { display: grid; grid-template-columns: repeat(3, 18px); gap: 4px; flex: none; }
.mini-board i { width: 18px; height: 18px; border-radius: 50%; display: block; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); }
.game-card .mini-board { transform: rotate(-8deg); }
.game-card b { font-family: var(--head); font-weight: 600; font-size: 21px; line-height: 1.05; text-transform: uppercase; display: block; }
.game-card span span { font-size: 13px; color: #CDEBEB; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.tile { background: var(--card); border-radius: var(--r); padding: 14px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; min-height: 124px; position: relative; overflow: hidden; }
.tile::after { content: ""; position: absolute; right: 0; top: 0; width: 22px; height: 22px; background: var(--aqua); }
.tile .ico { width: 38px; height: 38px; border-radius: 6px; display: grid; place-items: center; background: var(--aqua-bg); color: var(--teal); }
.tile b { font-family: var(--head); font-weight: 600; font-size: 19px; line-height: 1.05; text-transform: uppercase; display: block; margin-top: 12px; color: var(--teal); }
.tile span span { font-size: 12.5px; color: var(--soft); line-height: 1.35; }

.lineup { display: flex; gap: 4px; align-items: flex-end; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 2px; }
.lineup::-webkit-scrollbar, .stories::-webkit-scrollbar { display: none; }
.lineup button { flex: none; text-align: center; width: 74px; }
.lineup svg { width: 42px; height: 88px; display: block; margin: 0 auto; }
.lineup small { display: block; font-size: 12px; font-weight: 700; margin-top: 5px; line-height: 1.2; }

.stories { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scroll-snap-type: x mandatory; }
.story { flex: none; width: 78%; scroll-snap-align: start; border-radius: var(--r); padding: 16px; color: #fff; min-height: 140px; position: relative; overflow: hidden; }
.story::after { content: ""; position: absolute; right: 0; top: 0; width: 30px; height: 30px; background: rgba(255,255,255,.22); }
.story b { font-family: var(--head); font-weight: 600; font-size: 21px; line-height: 1.05; text-transform: uppercase; display: block; max-width: 85%; }
.story p { margin: 8px 0 0; font-size: 13px; opacity: .92; }

.invite { margin-top: 12px; background: var(--card); border-radius: var(--r); padding: 16px; display: flex; gap: 12px; align-items: center; border: 1.5px dashed var(--aqua); }
.invite .ico { width: 42px; height: 42px; border-radius: 50%; background: var(--aqua-bg); color: var(--teal); display: grid; place-items: center; flex: none; }
.invite b { display: block; }
.invite p { margin: 2px 0 0; color: var(--soft); font-size: 13px; }

.card { background: var(--card); border-radius: var(--r); padding: 16px; margin-bottom: 10px; }
.hist { list-style: none; margin: 0; padding: 0; }
.hist li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1.5px dashed var(--line); }
.hist li:last-child { border: 0; padding-bottom: 2px; }
.hist .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--aqua-bg); color: var(--teal); flex: none; }
.hist .dot svg.i { width: 17px; height: 17px; }
.hist .t { flex: 1; min-width: 0; }
.hist .t div { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist small { color: var(--soft); font-size: 12px; }
.plus { font-family: var(--head); font-size: 20px; color: var(--teal-m); } .minus { font-family: var(--head); font-size: 20px; color: var(--red); }
.empty { text-align: center; color: var(--soft); padding: 8px 10px 4px; font-size: 14px; }

/* ---------- кнопки ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 15px; border-radius: var(--r); background: var(--teal); color: #fff;
  font-family: var(--head); font-weight: 600; font-size: 18px; text-transform: uppercase; letter-spacing: .4px; }
.btn.accent { background: var(--orange); }
.btn.ghost { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 1.5px var(--teal); }
.btn.light { background: #fff; color: var(--teal); }
.btn.sm { width: auto; padding: 9px 14px; font-size: 15px; }
.btn:disabled { opacity: .4; }
.btn:active, .code-cta:active, .tile:active, .game-card:active { transform: scale(.985); }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.back { display: inline-flex; align-items: center; gap: 2px; color: var(--teal-m); font-weight: 700; margin-bottom: 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.back svg.i { width: 18px; height: 18px; }

/* ---------- ввод кода ---------- */
.code-page { text-align: center; }
.code-page .cap-big { width: 128px; height: 128px; margin: 6px auto 14px; transform: rotate(-12deg); }
.code-input { width: 100%; padding: 16px 12px; border-radius: var(--r); border: 2px solid var(--line); background: #fff; text-align: center;
  font-family: var(--head); font-size: 28px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); outline: none; }
.code-input::placeholder { color: #A9CFCF; }
.code-input:focus { border-color: var(--teal); }
.err { color: var(--red); min-height: 22px; margin: 8px 0 6px; font-size: 13.5px; font-weight: 700; }
.where { display: flex; gap: 12px; align-items: center; text-align: left; margin-top: 22px; background: #fff; border-radius: var(--r); padding: 12px 14px; border: 1.5px dashed var(--aqua); }
.where svg { width: 46px; height: 46px; flex: none; }
.where p { margin: 0; font-size: 13px; color: var(--soft); }
.where b { color: var(--ink); }

/* ---------- оверлей ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,40,40,.62); z-index: 50; display: flex; align-items: flex-end; }
.sheet { background: #fff; border-radius: 14px 14px 0 0; padding: 26px 20px calc(20px + var(--safe-b)); width: 100%; text-align: center; animation: up .32s cubic-bezier(.2,.8,.2,1); position: relative; overflow: hidden; }
.sheet::before { content: ""; position: absolute; left: 0; top: 0; width: 34px; height: 34px; background: var(--aqua); }
.sheet::after { content: ""; position: absolute; left: 34px; top: 0; width: 18px; height: 18px; background: var(--orange); }
@keyframes up { from { transform: translateY(100%); } }
.flip { width: 112px; height: 112px; margin: 0 auto; animation: flip .9s cubic-bezier(.2,.8,.2,1); }
@keyframes flip { 0% { transform: rotateY(0) scale(.5); } 70% { transform: rotateY(540deg) scale(1.08); } 100% { transform: rotateY(720deg) scale(1); } }
.got { font-family: var(--head); font-size: 64px; font-weight: 600; color: var(--orange); margin: 8px 0 0; line-height: 1; }
.got-t { font-family: var(--head); font-size: 24px; text-transform: uppercase; color: var(--teal); margin-top: 4px; }
.sheet .muted { color: var(--soft); margin: 4px 0 0; font-size: 14px; }
.gift { display: flex; gap: 12px; align-items: center; text-align: left; background: var(--aqua-bg); border-radius: var(--r); padding: 12px 14px; margin-top: 14px; color: var(--teal); }
.gift b { display: block; }
.gift span { font-size: 13px; color: var(--soft); }

/* ---------- каталог ---------- */
.line-h { margin: 22px 0 10px; display: flex; align-items: center; gap: 10px; }
.line-h::after { content: ""; flex: 1; border-top: 1.5px dashed var(--aqua); }
.prods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prod { border-radius: var(--r); padding: 14px 12px; text-align: left; position: relative; overflow: hidden; min-height: 214px; display: flex; flex-direction: column; background: #fff; }
.prod .plate { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; }
.prod svg { width: 50px; height: 106px; align-self: center; margin-bottom: 10px; }
.prod b { font-family: var(--head); font-weight: 600; font-size: 19px; line-height: 1.05; text-transform: uppercase; color: var(--teal); }
.prod small { font-size: 12px; line-height: 1.35; color: var(--soft); margin-top: 4px; padding-bottom: 6px; }
.sizes { display: flex; gap: 6px; flex-wrap: wrap; }
.sizes span { padding: 6px 10px; border-radius: 4px; background: #fff; font-size: 12.5px; font-weight: 700; color: var(--teal); }
.stamp { display: flex; gap: 12px; align-items: center; margin-top: 14px; background: #fff; border-radius: var(--r); padding: 12px 14px; }
.stamp svg { width: 50px; height: 50px; flex: none; }
.stamp p { margin: 0; font-size: 13px; color: var(--soft); }

/* ---------- гид ---------- */
.steps { display: flex; gap: 4px; margin: 4px 0 22px; }
.steps i { flex: 1; height: 5px; background: var(--line); }
.steps i.on { background: var(--teal); }
.q { font-family: var(--head); font-size: 32px; font-weight: 600; line-height: 1.02; margin: 6px 0 20px; text-transform: uppercase; color: var(--teal); }
.answers { display: grid; gap: 8px; }
.answer { background: #fff; border: 1.5px solid transparent; border-radius: var(--r); padding: 15px 16px; text-align: left; font-weight: 700; font-size: 15.5px; display: flex; justify-content: space-between; align-items: center; }
.answer svg.i { color: var(--aqua2); width: 18px; height: 18px; }
.answer:active { border-color: var(--teal); }
.match { border-radius: var(--r); padding: 22px 20px; color: #fff; text-align: center; position: relative; overflow: hidden; }
.match::before { content: ""; position: absolute; right: 0; top: 0; width: 36px; height: 36px; background: rgba(255,255,255,.22); }
.match::after { content: ""; position: absolute; right: 36px; top: 0; width: 18px; height: 18px; background: rgba(255,255,255,.12); }
.match svg.bottle { width: 76px; height: 158px; }
.match .lbl { margin-top: 8px; opacity: .85; }
.match .name { font-family: var(--head); font-size: 40px; font-weight: 600; margin: 2px 0 6px; text-transform: uppercase; line-height: 1; }
.match p { margin: 0 auto; max-width: 280px; font-size: 14px; opacity: .92; }
.match .size { display: inline-block; margin-top: 12px; background: rgba(255,255,255,.2); padding: 6px 12px; border-radius: 4px; font-size: 13px; font-weight: 700; }
.bonus { display: inline-flex; align-items: center; gap: 6px; margin: 14px 0 0; color: var(--teal-m); font-weight: 700; }

/* ---------- призы ---------- */
.wallet { display: flex; align-items: center; justify-content: space-between; background: var(--teal); color: #fff; border-radius: var(--r); padding: 16px 18px; margin-bottom: 12px; position: relative; overflow: hidden; }
.wallet::after { content: ""; position: absolute; left: 0; bottom: 0; width: 22px; height: 22px; background: var(--orange); }
.wallet .label { color: var(--aqua); }
.wallet b { font-family: var(--head); font-size: 40px; font-weight: 600; line-height: 1; }
.wallet .btn { width: auto; position: relative; z-index: 1; }
.prize { display: flex; gap: 14px; align-items: center; }
.prize .pic { width: 64px; height: 64px; border-radius: 6px; background: var(--aqua-bg); display: grid; place-items: center; flex: none; }
.prize .pic svg { width: 44px; height: 44px; }
.prize .info { flex: 1; min-width: 0; }
.prize .info b { display: block; line-height: 1.25; }
.prize .cost { font-family: var(--head); font-size: 18px; color: var(--teal-m); margin-top: 2px; display: block; }
.need { height: 4px; background: var(--line); overflow: hidden; margin-top: 6px; }
.need div { height: 100%; background: var(--aqua2); }
.lock { font-size: 12px; color: var(--soft); white-space: nowrap; font-weight: 700; }

/* ---------- магазины ---------- */
.store { display: flex; align-items: center; gap: 12px; }
.store .pin { width: 40px; height: 40px; border-radius: 6px; background: var(--aqua-bg); color: var(--teal); display: grid; place-items: center; flex: none; }
.store .t { flex: 1; min-width: 0; }
.store small { color: var(--soft); font-size: 13px; }
.km { font-weight: 700; color: var(--orange); }

/* ---------- игра ---------- */
.game-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 10px; }
.score { font-family: var(--head); font-size: 48px; font-weight: 600; line-height: 1; color: var(--teal); display: inline-block; transform-origin: left bottom; }
.score.bump { animation: bump .25s ease; }
@keyframes bump { 40% { transform: scale(1.12); color: var(--orange); } }
.timer { font-family: var(--head); font-size: 26px; font-weight: 600; color: var(--teal); min-width: 64px; text-align: right; }
.timer.low { color: var(--red); animation: pulse .5s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(1.1); } }
.gbar { height: 6px; background: var(--line); margin-bottom: 12px; overflow: hidden; border-radius: 3px; }
.gbar div { height: 100%; width: 100%; background: var(--aqua2); border-radius: 3px; }
.gbar div.low { background: var(--red); }
.gb { background: var(--teal); padding: 8px; border-radius: var(--r); position: relative; box-shadow: 0 10px 24px -14px rgba(0,60,60,.6); }
.gb::after { content: ""; position: absolute; right: 0; top: 0; width: 18px; height: 18px; background: var(--orange); border-radius: 0 var(--r) 0 0; }
.gb-inner { position: relative; width: 100%; aspect-ratio: 1; touch-action: none; user-select: none; -webkit-user-select: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.07) 38%, transparent 40%); background-size: calc(100% / 7) calc(100% / 7); }
.gt { position: absolute; left: 0; top: 0; width: calc(100% / 7); height: calc(100% / 7); will-change: transform; z-index: 1; }
.gt svg { width: 100%; height: 100%; display: block; padding: 5%; transition: transform .16s ease, opacity .25s ease; filter: drop-shadow(0 2px 0 rgba(0,0,0,.22)); }
.gt::after { content: ""; position: absolute; left: 27%; top: 20%; width: 24%; height: 15%; border-radius: 50%; background: rgba(255,255,255,.5); transform: rotate(-25deg); pointer-events: none; transition: opacity .2s; }
.gt.sel { z-index: 3; }
.gt.sel svg { transform: scale(.86); }
.gt.sel::before { content: ""; position: absolute; inset: 3%; border-radius: 50%; box-shadow: 0 0 0 2.5px #fff, 0 0 14px 2px rgba(255,255,255,.35); animation: ring 1s ease-in-out infinite alternate; }
@keyframes ring { to { box-shadow: 0 0 0 2.5px #fff, 0 0 4px 0 rgba(255,255,255,.2); } }
.gt.pop { z-index: 2; }
.gt.pop svg { animation: tpop .23s ease-in forwards; }
.gt.pop::after { opacity: 0; }
@keyframes tpop { 35% { transform: scale(1.22) rotate(20deg); } 100% { transform: scale(0) rotate(90deg); opacity: 0; } }
.gt.hint svg { animation: wiggle .55s ease-in-out 3; }
@keyframes wiggle { 25% { transform: rotate(-12deg) scale(1.06); } 75% { transform: rotate(12deg) scale(1.06); } }
.gt.out svg { transform: scale(0) rotate(-120deg); opacity: 0; }
.gt.in svg { animation: tin .32s cubic-bezier(.34,1.4,.55,1); }
@keyframes tin { from { transform: scale(0) rotate(120deg); opacity: 0; } }
.pt { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; z-index: 4; pointer-events: none; animation: burst .5s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes burst { to { transform: translate(var(--dx), var(--dy)) scale(.15); opacity: 0; } }
.float { position: absolute; z-index: 5; pointer-events: none; font-family: var(--head); font-size: 30px; color: #fff; white-space: nowrap;
  text-shadow: 0 2px 0 rgba(0,0,0,.25); animation: rise .95s cubic-bezier(.2,.8,.3,1) forwards; }
.float.combo { color: var(--yellow); }
.float.small { font-size: 20px; text-transform: uppercase; letter-spacing: .06em; }
@keyframes rise { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.5); } 18% { opacity: 1; transform: translate(-50%, -55%) scale(1.12); }
  70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -150%) scale(1); } }
.gcount { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: rgba(0,60,60,.45); border-radius: 4px; }
.gcount span { font-family: var(--head); font-size: 96px; color: #fff; text-transform: uppercase; animation: cnt .6s cubic-bezier(.2,.8,.3,1); text-shadow: 0 4px 0 rgba(0,0,0,.2); }
.gcount.over span { font-size: 46px; }
@keyframes cnt { from { transform: scale(2.2); opacity: 0; } }
.result-card { text-align: center; padding: 20px 16px; }
.result-score { font-family: var(--head); font-size: 72px; font-weight: 600; color: var(--orange); line-height: 1; margin: 6px 0 2px; animation: cnt .5s cubic-bezier(.2,.8,.3,1); }
.top { list-style: none; padding: 0; margin: 0; }
.top li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1.5px dashed var(--line); }
.top li:last-child { border: 0; }
.top .pl { width: 26px; height: 26px; border-radius: 50%; background: var(--aqua-bg); display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--teal); flex: none; }
.top li:nth-child(1) .pl { background: var(--orange); color: #fff; }
.top li span { flex: 1; } .top li.me span { font-weight: 700; }
.top li b { font-family: var(--head); font-weight: 600; font-size: 19px; color: var(--teal); }
.howto { display: flex; gap: 14px; align-items: center; }
.howto .mini-board { grid-template-columns: repeat(3, 20px); }
.howto .mini-board i { width: 20px; height: 20px; }
.howto p { margin: 0; font-size: 14px; color: var(--soft); }


/* ---------- раздел «Игры» ---------- */
.scr-card { width: 100%; display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--r); padding: 14px; text-align: left; position: relative; overflow: hidden; border: 1.5px dashed var(--orange); }
.scr-card .scr-cap { width: 64px; height: 64px; flex: none; animation: wob 2.4s ease-in-out infinite; }
.scr-card.done { border-color: var(--line); }
.scr-card.done .scr-cap { animation: none; }
.scr-card b { display: block; font-family: var(--head); font-weight: 600; font-size: 21px; line-height: 1.05; text-transform: uppercase; color: var(--teal); margin-top: 2px; }
.scr-card .badge { position: absolute; right: 0; top: 0; background: var(--orange); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 5px 9px; }
@keyframes wob { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg) scale(1.04); } }
.ggrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.gcard { border-radius: var(--r); padding: 14px; color: #fff; text-align: left; min-height: 172px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.gcard::after { content: ""; position: absolute; right: 0; top: 0; width: 22px; height: 22px; background: rgba(255,255,255,.25); }
.gcard.light { color: var(--ink); }
.gcard .gart, .gcard .mini-board { width: 64px; height: 64px; margin-bottom: auto; }
.gcard .mini-board { grid-template-columns: repeat(3, 18px); height: auto; transform: rotate(-8deg); margin: 4px 0 auto 4px; }
.gcard b { font-family: var(--head); font-weight: 600; font-size: 21px; line-height: 1.02; text-transform: uppercase; margin-top: 12px; }
.gcard span { font-size: 12.5px; opacity: .88; line-height: 1.3; margin-top: 3px; }
.gcard em { font-style: normal; font-family: var(--head); font-size: 15px; margin-top: 8px; opacity: .95; }
.gcard:active, .scr-card:active { transform: scale(.985); }
.howto-art { width: 64px; height: 64px; flex: none; display: grid; place-items: center; background: var(--teal); border-radius: 6px; }
.howto-art .gart { width: 54px; height: 54px; }

/* ---------- аркады ---------- */
.arc-box { position: relative; border-radius: var(--r); overflow: hidden; background: #F3FBFB; touch-action: none; user-select: none; -webkit-user-select: none; box-shadow: 0 10px 24px -14px rgba(0,60,60,.5); }
.arc-box canvas { display: block; touch-action: none; }
.arc-box.dom { background: transparent; box-shadow: none; overflow: visible; }
.arc-box.hit { animation: hit .3s; }
@keyframes hit { 20% { transform: translateX(-6px); } 60% { transform: translateX(6px); } }
.lives { display: flex; gap: 4px; justify-content: flex-end; margin-bottom: 4px; }
.lives i { width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: inset 0 -2px 0 rgba(0,0,0,.2); transition: transform .3s, background .3s; }
.lives i.off { background: var(--line); transform: scale(.7); box-shadow: none; }

/* ---------- «Миксуй» ---------- */
.mix { display: flex; flex-direction: column; gap: 12px; }
.mix-top { background: #fff; border-radius: var(--r); padding: 12px 14px; }
.mix-name { font-family: var(--head); font-size: 24px; text-transform: uppercase; color: var(--teal); line-height: 1.05; margin: 2px 0 8px; }
.mix-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-i { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px 4px 4px; border-radius: 20px; background: var(--aqua-bg); font-size: 13px; font-weight: 700; color: var(--soft); transition: all .2s; }
.chip-i svg { width: 22px; height: 22px; }
.chip-i.now { background: var(--orange); color: #fff; transform: scale(1.06); }
.chip-i.ok { background: var(--teal); color: #fff; opacity: .55; }
.mix-glass-wrap { display: flex; justify-content: center; }
.mix-glass { width: 110px; height: 140px; position: relative; clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%); background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 3px rgba(0,94,93,.12); }
.mix-fill { position: absolute; left: 0; right: 0; bottom: 0; top: 14px; display: flex; flex-direction: column-reverse; }
.mix-fill i { display: block; height: 0; transition: height .35s cubic-bezier(.3,1.3,.5,1); opacity: .92; }
.mix-bubbles { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .2s;
  background-image: radial-gradient(circle, rgba(255,255,255,.85) 2px, transparent 2.5px), radial-gradient(circle, rgba(255,255,255,.7) 1.5px, transparent 2px);
  background-size: 22px 26px, 16px 18px; background-position: 4px 0, 12px 8px; }
.mix-glass.done .mix-bubbles { opacity: 1; animation: fizz .6s linear infinite; }
.mix-glass.done { animation: cheers .45s ease; }
@keyframes fizz { to { background-position: 4px -26px, 12px -10px; } }
@keyframes cheers { 40% { transform: scale(1.08) rotate(-4deg); } }
.mix-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ing { background: #fff; border-radius: var(--r); padding: 10px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: transform .12s; }
.ing svg { width: 40px; height: 40px; }
.ing small { font-size: 12px; font-weight: 700; color: var(--teal); }
.ing:active { transform: scale(.94); }
.ing.bad { animation: bad .35s; }
@keyframes bad { 20%, 60% { transform: translateX(-5px); background: #FDE3E1; } 40%, 80% { transform: translateX(5px); background: #FDE3E1; } }
.fly { position: absolute; width: 40px; height: 40px; z-index: 7; pointer-events: none; transition: transform .4s cubic-bezier(.4,0,.6,1), opacity .4s; }
.fly svg { width: 100%; height: 100%; }
.float.good { color: var(--orange); text-shadow: 0 2px 0 #fff; }
.float.bad { color: var(--red); font-size: 22px; text-shadow: 0 2px 0 #fff; }

/* ---------- «Крышка дня» ---------- */
.scratch-page { text-align: center; }
.scratch-page .back { float: left; }
.scratch-page .h { clear: both; }
.scr-wrap { position: relative; width: 100%; max-width: 340px; margin: 8px auto 16px; aspect-ratio: 1; display: grid; place-items: center; }
.scr-bigcap { position: absolute; inset: 0; width: 100%; height: 100%; }
.scr-under { position: absolute; width: 64%; height: 64%; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: inset 0 4px 10px rgba(0,60,60,.15); }
.scr-cv { position: absolute; border-radius: 50%; touch-action: none; transition: opacity .5s, transform .5s; cursor: pointer; }
.scr-cv.gone { opacity: 0; transform: scale(1.15) rotate(20deg); pointer-events: none; }
.scr-pts b { display: block; font-family: var(--head); font-size: 72px; color: var(--orange); line-height: .9; }
.scr-pts small { font-weight: 700; color: var(--teal); }
.scr-prize { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 18px; }
.scr-prize svg { width: 64px; height: 64px; }
.scr-prize b { font-size: 15px; color: var(--teal); line-height: 1.2; }
.scr-zzz { width: 64px; height: 64px; border-radius: 50%; background: var(--aqua-bg); color: var(--teal); display: grid; place-items: center; }
.scr-next { background: #fff; border-radius: var(--r); padding: 14px; color: var(--soft); }
.scr-next b { font-family: var(--head); font-size: 22px; color: var(--teal); }
.confetti { position: fixed; top: 38%; width: 9px; height: 13px; z-index: 60; pointer-events: none; animation: conf 1.4s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes conf { to { transform: translate(var(--dx), calc(var(--dy) + 420px)) rotate(var(--r)); opacity: 0; } }

/* ---------- таббар ---------- */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); display: flex; padding: 7px 6px calc(7px + var(--safe-b)); z-index: 20; }
.tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; color: #84A8A7; }
.tabs button.on { color: var(--teal); }
.tabs .mid .ring { width: 50px; height: 50px; margin-top: -24px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 5px #fff, 0 6px 14px rgba(0,94,93,.2); }
.tabs .mid .ring svg.i { width: 26px; height: 26px; }

/* ---------- плавность ---------- */
#app.enter .hero, #app.enter .wrap > * { animation: pageIn .42s cubic-bezier(.2,.8,.2,1) both; }
#app.enter .wrap > *:nth-child(2) { animation-delay: .04s; } #app.enter .wrap > *:nth-child(3) { animation-delay: .08s; }
#app.enter .wrap > *:nth-child(4) { animation-delay: .12s; } #app.enter .wrap > *:nth-child(5) { animation-delay: .16s; }
#app.enter .wrap > *:nth-child(n+6) { animation-delay: .2s; }
#app.enter .ggrid > *, #app.enter .pair > *, #app.enter .prods > * { animation: pageIn .45s cubic-bezier(.2,.8,.2,1) both; }
#app.enter .ggrid > *:nth-child(2), #app.enter .pair > *:nth-child(2), #app.enter .prods > *:nth-child(2) { animation-delay: .07s; }
#app.enter .ggrid > *:nth-child(3), #app.enter .prods > *:nth-child(3) { animation-delay: .14s; }
#app.enter .ggrid > *:nth-child(4), #app.enter .prods > *:nth-child(4) { animation-delay: .21s; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } }
.tabs button.on svg.i { animation: tabPop .35s cubic-bezier(.3,1.6,.5,1); }
.tabs .mid .ring { transition: transform .2s; }
.tabs .mid:active .ring { transform: scale(.9); }
@keyframes tabPop { 40% { transform: translateY(-3px) scale(1.15); } }
.btn, .gcard, .scr-card, .tile, .code-cta, .game-card, .ing, .answer { transition: transform .15s cubic-bezier(.3,1.4,.5,1); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
