/* ===== Walzer Combat mini app: системный стиль + Liquid Glass ===== */
:root {
  --bg: #000; --surface: #1c1c1e; --surface-2: #2c2c2e; --fill: rgba(120,120,128,.24); --line: rgba(84,84,88,.5);
  --text: #fff; --muted: rgba(235,235,245,.6); --accent: #0a84ff; --good: #30d158; --bad: #ff453a; --gold: #ffd60a; --orange: #ff9f0a;
  --knob: #636366; --glass-bg: rgba(44,44,48,.5); --glass-hi: rgba(255,255,255,.22); --glass-edge: rgba(255,255,255,.12);
  --rim-a: rgba(255,255,255,.34); --rim-b: rgba(255,255,255,.05); --glass-shadow: 0 10px 34px rgba(0,0,0,.45);
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px); --top-h: 66px;
  --ease: cubic-bezier(.2,.8,.2,1); color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f2f2f7; --surface: #fff; --surface-2: #e5e5ea; --fill: rgba(120,120,128,.16); --line: rgba(60,60,67,.18);
  --text: #000; --muted: rgba(60,60,67,.6); --accent: #007aff; --good: #34c759; --bad: #ff3b30; --gold: #ffcc00; --orange: #ff9500;
  --knob: #fff; --glass-bg: rgba(255,255,255,.55); --glass-hi: rgba(255,255,255,.9); --glass-edge: rgba(0,0,0,.06);
  --rim-a: rgba(255,255,255,.95); --rim-b: rgba(255,255,255,.2); --glass-shadow: 0 10px 30px rgba(40,40,60,.16); color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; overscroll-behavior: none; }
body { background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; text-size-adjust: 100%;
  font: 400 1rem/1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
input, textarea { font: inherit; color: inherit; }
img { display: block; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.t-hero { font-size: 2.125rem; line-height: 1.1; letter-spacing: -.03em; font-weight: 700; }
.t-title { font-size: 1.3rem; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
.t-sub { font-size: 1.0625rem; letter-spacing: -.012em; font-weight: 600; }
.t-small { font-size: .8125rem; letter-spacing: .005em; }
.t-cap { font-size: .8125rem; font-weight: 500; color: var(--muted); }
.good { color: var(--good); } .bad { color: var(--bad); } .gold { color: var(--orange); }
.stack { display: flex; flex-direction: column; gap: .85rem; } .stack-sm { display: flex; flex-direction: column; gap: .45rem; }
.hstack { display: flex; align-items: center; gap: .6rem; } .grow { flex: 1; min-width: 0; } .center { text-align: center; }
.between { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Liquid Glass: размытие + насыщенность, блик по краю и тонкая обводка со световым градиентом ===== */
.topbar, .tabbar, .sheet, .page-head, .toast, .coin-pill, .glass {
  position: relative; background: var(--glass-bg);
  -webkit-backdrop-filter: blur(26px) saturate(190%); backdrop-filter: blur(26px) saturate(190%);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-hi), inset 0 0 0 .5px var(--glass-edge);
}
.topbar::after, .tabbar::after, .sheet::after, .toast::after, .page-head::after, .glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, var(--rim-a), var(--rim-b) 38%, var(--rim-b) 62%, var(--rim-a));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* ===== каркас ===== */
#app { position: fixed; inset: 0; max-width: 560px; margin: 0 auto; will-change: transform; }
.topbar { position: absolute; z-index: 10; top: calc(8px + var(--safe-t)); left: 10px; right: 10px; height: 58px; padding: 0 8px 0 9px; display: flex; align-items: center; gap: .65rem; border-radius: 29px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 600; background: var(--accent); color: #fff; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; } .avatar.lg { width: 84px; height: 84px; font-size: 2rem; } .avatar.sm { width: 32px; height: 32px; font-size: .85rem; }
.who { min-width: 0; flex: 1; } .who b { display: block; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.xpbar { height: 3px; border-radius: 2px; background: var(--fill); margin-top: 4px; overflow: hidden; } .xpbar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .6s var(--ease); }
.coin-pill { display: inline-flex; align-items: center; gap: .4rem; height: 42px; padding: 0 .85rem 0 .4rem; border-radius: 21px; font-weight: 600; letter-spacing: -.01em; box-shadow: none; background: var(--fill); backdrop-filter: none; -webkit-backdrop-filter: none; }
.coin { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .72rem; font-weight: 800; color: #5c4200; background: var(--gold); flex: none; }
.views { position: absolute; inset: 0; }
.view { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; opacity: 0; pointer-events: none; transform: scale(.985);
  padding: calc(var(--top-h) + 18px + var(--safe-t)) 16px calc(112px + var(--safe-b)); transition: opacity .2s ease, transform .35s var(--ease); }
.view.on { opacity: 1; pointer-events: auto; transform: none; }
.tabbar { position: absolute; z-index: 10; left: 14px; right: 14px; bottom: calc(10px + var(--safe-b)); height: 66px; padding: 6px; display: flex; border-radius: 33px; }
.tabbar .lens { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 5); border-radius: 27px; transform: translateX(calc(var(--i, 0) * 100%));
  transition: transform .5s cubic-bezier(.3,1.25,.5,1); background: var(--fill); box-shadow: inset 0 1px 0 var(--glass-hi); }
.tab { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: .6875rem; font-weight: 500; transition: color .25s, transform .15s; }
.tab:active { transform: scale(.92); } .tab svg { width: 25px; height: 25px; } .tab.on { color: var(--accent); }
.tab .dot { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--bad); color: #fff; font-size: .65rem; font-weight: 700; display: grid; place-items: center; }
svg.i { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ===== поверхности ===== */
.panel { background: var(--surface); border-radius: 22px; padding: 16px; position: relative; }
.panel.tap { transition: transform .15s, background .2s; } .panel.tap:active { transform: scale(.98); background: var(--surface-2); }
.panel-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.banner { display: flex; align-items: center; gap: .65rem; padding: .8rem 1rem; border-radius: 20px; font-size: .9375rem; background: color-mix(in srgb, var(--orange) 16%, var(--surface)); color: var(--text); }
.banner > svg { width: 1.3rem; height: 1.3rem; color: var(--orange); } .banner b { font-weight: 600; }
.banner.bad { background: color-mix(in srgb, var(--bad) 15%, var(--surface)); } .banner.bad > svg { color: var(--bad); }
.banner.good { background: color-mix(in srgb, var(--good) 15%, var(--surface)); } .banner.good > svg { color: var(--good); }
.banner.info { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); } .banner.info > svg { color: var(--accent); } .banner.plain { background: var(--surface); } .banner.plain > svg { color: var(--muted); }
.list { background: var(--surface); border-radius: 22px; overflow: hidden; }
.row { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; transition: background .15s; position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 1rem; right: 0; height: .5px; background: var(--line); } .row:active { background: var(--fill); }
.ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: #fff; flex: none; }
.ico svg { width: 1.15rem; height: 1.15rem; } .chev { color: var(--muted); opacity: .7; width: 1rem !important; height: 1rem !important; }
.badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--bad); color: #fff; font-size: .75rem; font-weight: 700; display: inline-grid; place-items: center; }
.divider { height: .5px; background: var(--line); margin: .2rem 0; }

/* ===== кнопки и поля ===== */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 50px; padding: 0 1.3rem; border-radius: 999px; font-weight: 600; letter-spacing: -.012em; background: var(--fill);
  color: var(--accent); transition: transform .15s, opacity .2s, background .2s; user-select: none; }
.btn:active { transform: scale(.97); opacity: .8; }
.btn.primary { background: var(--accent); color: #fff; } .btn.good { background: color-mix(in srgb, var(--good) 20%, transparent); color: var(--good); }
.btn.danger { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); } .btn.ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--text); }
.btn.block { display: flex; width: 100%; } .btn.sm { min-height: 34px; padding: 0 .95rem; font-size: .875rem; }
.btn[disabled], .btn.off { opacity: .55; pointer-events: none; color: var(--muted); }
.btn.busy { pointer-events: none; opacity: .75; } .btn.busy::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.field { width: 100%; min-height: 48px; padding: 0 1rem; border-radius: 14px; border: 0; background: var(--surface); outline: none; transition: box-shadow .2s; }
.field:focus { box-shadow: 0 0 0 2px var(--accent); } textarea.field { padding: .75rem 1rem; min-height: 110px; resize: none; }
label.lbl { display: block; margin: 0 0 .3rem .25rem; }
.chips { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding: 2px 16px; margin: 0 -16px; } .chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: .45rem .9rem; border-radius: 999px; font-size: .875rem; font-weight: 500; background: var(--fill); transition: transform .15s, background .2s, color .2s; white-space: nowrap; }
.chip:active { transform: scale(.95); } .chip.on { background: var(--text); color: var(--bg); } .chip i { font-style: normal; opacity: .55; margin-left: .35rem; }
.seg { display: flex; padding: 3px; border-radius: 999px; background: var(--fill); position: relative; }
.seg button { flex: 1; min-height: 34px; border-radius: 999px; font-weight: 500; font-size: .875rem; z-index: 1; transition: color .2s; } .seg button.on { font-weight: 600; }
.seg .knob { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n)); transform: translateX(calc(var(--i) * 100%)); border-radius: 999px; background: var(--knob); box-shadow: 0 2px 8px rgba(0,0,0,.18); transition: transform .45s cubic-bezier(.3,1.2,.5,1); }
.stepper { display: inline-flex; align-items: center; padding: 3px; border-radius: 999px; background: var(--fill); }
.stepper button { width: 38px; height: 38px; border-radius: 50%; font-size: 1.35rem; color: var(--accent); transition: transform .1s, background .2s; } .stepper button:active { transform: scale(.88); background: var(--fill); }
.stepper b { min-width: 2.6rem; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.bar { height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; } .bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--accent); transition: width .6s var(--ease); }
.bar.gold i { background: var(--orange); } .bar.good i { background: var(--good); }
.switch { width: 51px; height: 31px; border-radius: 16px; background: var(--fill); position: relative; flex: none; transition: background .25s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.3); transition: transform .4s cubic-bezier(.3,1.4,.5,1); }
.switch.on { background: var(--good); } .switch.on::after { transform: translateX(20px); }

/* ===== редкость и карточки ===== */
[data-r] { --c: #8e8e93; }
[data-r="необычная"] { --c: #30d158; } [data-r="редкая"] { --c: #0a84ff; } [data-r="эпическая"] { --c: #bf5af2; } [data-r="легендарная"] { --c: #ff9f0a; } [data-r="донатная"] { --c: #ff375f; }
[data-r="экстра"] { --c: #ff6b35; } [data-r="боссы"] { --c: #ff453a; } [data-r="особенные"] { --c: #40c8e0; } [data-r="погодные"] { --c: #64d2ff; } [data-r="элементали"] { --c: #ac8e68; }
.rtag { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--c); }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; } @media (min-width: 430px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.tile { position: relative; border-radius: 20px; overflow: hidden; background: var(--surface); transition: transform .18s; text-align: left; display: block; width: 100%; }
.tile:active { transform: scale(.97); } .tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c); }
.tile .art { aspect-ratio: 540 / 853; position: relative; display: grid; place-items: center; overflow: hidden; background: var(--surface-2); }
.tile .art .fallback { position: absolute; inset: 0; z-index: 0; } .tile .art .fallback svg { width: 100%; height: 100%; display: block; }
.tile .art img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; background: var(--surface-2); } .tile .art img.broken { display: none; }
.tile .meta { padding: .55rem .7rem .75rem; } .tile .name { font-weight: 600; font-size: .875rem; line-height: 1.2; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.1em; }
.tile .cnt { position: absolute; top: 8px; right: 8px; z-index: 2; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; color: #fff; font-weight: 600; font-size: .8125rem; display: grid; place-items: center; background: rgba(30,30,34,.55); -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%); }
.tile.locked .art img, .tile.locked .art .fallback { filter: grayscale(1) brightness(.35) contrast(.8); } .tile.locked { opacity: .85; } .tile.locked::after { background: var(--line); }
.thumb { width: 46px; height: 72px; border-radius: 12px; flex: none; overflow: hidden; position: relative; background: var(--surface-2); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 70%, transparent); }
.thumb .fallback { position: absolute; inset: 0; } .thumb .fallback svg { width: 100%; height: 100%; display: block; } .thumb img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; background: var(--surface-2); } .thumb img.broken { display: none; }
.elem { width: 46px; height: 46px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--surface-2); color: var(--accent); flex: none; } .elem svg { width: 55%; height: 55%; }

/* ===== главная ===== */
.hero { display: grid; place-items: center; padding: .4rem 0 .2rem; }
.orb { position: relative; width: 224px; height: 224px; border-radius: 50%; display: grid; place-items: center; transition: transform .2s; touch-action: manipulation; }
.orb:active { transform: scale(.97); }
.orb svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.orb .track { stroke: var(--fill); } .orb .prog { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.orb .core { position: absolute; inset: 14px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: var(--accent); color: #fff; transition: background .4s; }
.orb.cool .core { background: var(--surface); color: var(--text); }
.orb .big { font-size: 2.6rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.orb .emoji { display: grid; place-items: center; } .orb .emoji svg { width: 2.7rem; height: 2.7rem; stroke-width: 1.5; } .orb .core b { font-size: 1.1rem; font-weight: 650; letter-spacing: -.015em; }
.orb .t-cap { color: inherit; opacity: .6; } .orb.shake { animation: shake .4s; }
.days { display: flex; gap: .35rem; } .day { flex: 1; text-align: center; padding: .5rem 0; border-radius: 12px; background: var(--fill); font-size: .6875rem; color: var(--muted); font-weight: 500; }
.day.done { background: color-mix(in srgb, var(--orange) 24%, transparent); color: var(--text); } .day.today { box-shadow: inset 0 0 0 2px var(--orange); color: var(--text); }
.day span { display: block; font-size: 1rem; line-height: 1.35; font-weight: 600; } .day svg { width: 1.05rem; height: 1.05rem; display: inline-block; vertical-align: -.15em; color: var(--orange); }
.flame svg { width: 1em; height: 1em; color: var(--orange); fill: color-mix(in srgb, var(--orange) 35%, transparent); }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; } .mini .panel { padding: .9rem 1rem; }
.wchip { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem; border-radius: 999px; font-weight: 600; font-size: .8125rem; background: var(--fill); }
.wic { display: inline-grid; place-items: center; color: var(--accent); } .wic svg { width: 1.5rem; height: 1.5rem; }

/* ===== страницы ===== */
.page { position: absolute; inset: 0; z-index: 20; background: var(--bg); touch-action: pan-y; will-change: transform; max-width: 560px; margin: 0 auto; box-shadow: -10px 0 40px rgba(0,0,0,.3); }
.page-head { position: absolute; z-index: 2; top: calc(8px + var(--safe-t)); left: 10px; right: 10px; height: 52px; display: flex; align-items: center; padding: 0 8px; border-radius: 26px; }
.page-head .back { display: inline-flex; align-items: center; color: var(--accent); font-weight: 500; padding: .4rem .6rem .4rem .2rem; } .page-head .back svg { width: 1.4rem; height: 1.4rem; }
.page-title { flex: 1; text-align: center; font-weight: 600; letter-spacing: -.01em; margin-right: 4.2rem; }
.page-body { position: absolute; inset: 0; overflow-y: auto; padding: calc(70px + var(--safe-t)) 16px calc(28px + var(--safe-b)); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* ===== шторка ===== */
.sheet-root { position: fixed; inset: 0; z-index: 50; }
.scrim { position: absolute; inset: 0; background: rgba(0,0,0,.4); opacity: 0; }
.sheet { position: absolute; left: 0; right: 0; margin: 0 auto; bottom: calc(8px + var(--safe-b)); width: min(100% - 16px, 544px); max-height: 88%; display: flex; flex-direction: column; will-change: transform; border-radius: 36px; }
:root[data-theme="light"] .sheet { background: rgba(255,255,255,.7); }
.sheet-head { padding: .6rem 1rem .35rem; touch-action: none; cursor: grab; flex: none; } .grip { width: 36px; height: 5px; border-radius: 3px; background: var(--muted); opacity: .4; margin: 0 auto .55rem; }
.sheet-title { text-align: center; font-weight: 600; letter-spacing: -.01em; padding-bottom: .3rem; }
.sheet-body { overflow-y: auto; padding: .3rem 1.1rem 1.3rem; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; } .big-art { width: min(58%, 220px); margin: 0 auto .8rem; } .big-art .tile { pointer-events: none; }

/* ===== тосты и открытие карты ===== */
.toasts { position: fixed; z-index: 90; left: 0; right: 0; top: calc(8px + var(--safe-t)); display: flex; flex-direction: column; align-items: center; gap: .45rem; pointer-events: none; }
.toast { max-width: min(92%, 420px); padding: .7rem 1.1rem; border-radius: 22px; font-weight: 500; font-size: .9375rem; text-align: center; animation: toast-in .5s cubic-bezier(.2,1.1,.3,1); }
.toast.out { animation: toast-out .25s ease forwards; } .toast.err { color: var(--bad); }
.overlay { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem; background: rgba(0,0,0,.5); -webkit-backdrop-filter: blur(34px) saturate(170%); backdrop-filter: blur(34px) saturate(170%); opacity: 0; transition: opacity .3s; color: #fff; }
.overlay.on { opacity: 1; }
.reveal-card { width: min(64vw, 290px); will-change: transform; } .reveal-card .tile { box-shadow: 0 24px 60px rgba(0,0,0,.55); pointer-events: none; } .reveal-card .name { font-size: 1.05rem; min-height: 0; -webkit-line-clamp: 3; }
.new-badge { padding: .3rem .85rem; border-radius: 999px; font-weight: 600; font-size: .8125rem; background: var(--accent); color: #fff; }

/* ===== игры ===== */
.game-tile { display: flex; flex-direction: column; gap: .8rem; padding: 14px; min-height: 126px; border-radius: 22px; text-align: left; background: var(--surface); transition: transform .15s; } .game-tile:active { transform: scale(.97); }
.game-tile .em { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--g); color: #fff; } .game-tile .em svg { width: 1.5rem; height: 1.5rem; }
.game-tile b { font-weight: 600; letter-spacing: -.012em; display: block; }
.die-wrap { display: grid; place-items: center; height: 130px; }
.die { width: 86px; height: 86px; border-radius: 22px; background: #f5f5f7; color: #1c1c1e; box-shadow: 0 10px 26px rgba(0,0,0,.28), inset 0 -3px 6px rgba(0,0,0,.08); will-change: transform; } .die svg.pips { width: 100%; height: 100%; padding: .75rem; fill: #1c1c1e; stroke: none; }
.reels { display: flex; gap: .6rem; justify-content: center; } .reel { width: 84px; height: 100px; border-radius: 20px; overflow: hidden; background: var(--surface); position: relative; }
.reel .strip { position: absolute; left: 0; right: 0; top: 0; display: grid; place-items: center; height: 100%; } .sym { width: 3rem; height: 3rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sym-cherry { color: #ff453a; } .sym-lemon { color: #ffd60a; } .sym-bell { color: #ff9f0a; } .sym-seven { color: #ff453a; stroke-width: 2.6; }
.betrow { display: flex; gap: .4rem; flex-wrap: wrap; }
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; width: min(100%, 320px); margin: 0 auto; }
.cell { aspect-ratio: 1; border-radius: 20px; background: var(--surface); display: grid; place-items: center; transition: transform .15s, background .2s; } .cell:active:not(.f) { transform: scale(.94); background: var(--surface-2); }
.cell svg { width: 2.4rem; height: 2.4rem; } .cell .mk { display: grid; place-items: center; animation: pop .35s cubic-bezier(.3,1.5,.5,1); } .cell .mk svg { stroke-width: 2.6; }
.cell .mk:has(svg path) { color: var(--accent); } .cell .mk:has(svg circle) { color: var(--orange); }
.gesture { flex: 1; padding: 1.1rem 0; border-radius: 22px; background: var(--surface); display: grid; place-items: center; transition: transform .15s, background .2s; } .gesture:active { transform: scale(.94); background: var(--surface-2); } .gesture svg { width: 2.6rem; height: 2.6rem; stroke-width: 1.6; }
.radar { width: 56px; height: 56px; margin: .6rem auto; display: grid; place-items: center; } .radar svg { display: none; } .radar::before { content: ""; width: 40px; height: 40px; border-radius: 50%; border: 3.5px solid var(--fill); border-top-color: var(--accent); animation: spin .9s linear infinite; }
.pickrow { display: flex; align-items: center; gap: .7rem; padding: .55rem .65rem; border-radius: 18px; background: var(--surface); width: 100%; } .pickrow.sel { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); box-shadow: inset 0 0 0 1.5px var(--accent); }
.meter { height: 10px; border-radius: 5px; background: var(--fill); overflow: hidden; } .meter i { display: block; height: 100%; width: 0; border-radius: 5px; background: var(--good); transition: width .4s var(--ease); }
.fire { display: grid; place-items: center; } .fire svg { display: none; } .fire::before { content: ""; width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(255,255,255,.25); border-top-color: #fff; animation: spin .9s linear infinite; }

/* ===== админка и прочее ===== */
.stat { padding: .85rem 1rem; border-radius: 18px; background: var(--surface); } .stat b { display: block; font-size: 1.45rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; font-weight: 650; } .stat .t-cap { display: block; }
.crown { background: var(--orange); color: #fff; padding: .1rem .5rem; border-radius: 6px; font-size: .65rem; font-weight: 700; letter-spacing: .03em; }
.logline { padding: .65rem 1rem; font-size: .9rem; } .logline + .logline { box-shadow: inset 0 .5px 0 var(--line); }
.empty { text-align: center; padding: 2.2rem 1rem; color: var(--muted); } .empty b { color: var(--text); font-weight: 600; } .empty .em { display: grid; place-items: center; margin-bottom: .6rem; } .empty .em svg { width: 2.6rem; height: 2.6rem; opacity: .5; }
.skeleton { border-radius: 20px; background: var(--surface); animation: pulse 1.4s ease-in-out infinite; }
.bigic { display: grid; place-items: center; color: var(--accent); } .bigic svg { width: 3rem; height: 3rem; stroke-width: 1.5; }
.rank { width: 30px; text-align: center; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; } .rank.r1 { color: var(--orange); } .rank.r2 { color: #8e8e93; } .rank.r3 { color: #ac8e68; }
.dot-s { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); flex: none; } .dot-s.ready { background: var(--good); } .dot-s.done { background: var(--muted); opacity: .5; }
.btn svg.i, .chip svg.i, .wchip svg.i { width: 1.1em; height: 1.1em; } .hstack svg.i { color: var(--muted); }
.nogo { position: fixed; inset: 0; display: grid; place-items: center; text-align: center; padding: 2rem; background: var(--bg); z-index: 100; }

/* ===== анимации ===== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-in { from { transform: translateY(-26px) scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-out { to { transform: translateY(-12px) scale(.97); opacity: 0; } }
@keyframes pulse { 50% { opacity: .55; } }

/* ===== доступность ===== */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } .view { transform: none !important; } }
@media (prefers-reduced-transparency: reduce) {
  .topbar, .tabbar, .sheet, .page-head, .toast, .glass, .overlay { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); }
  .overlay { background: rgba(0,0,0,.85); }
}
@media (prefers-contrast: more) { :root { --line: rgba(128,128,128,.7); --glass-edge: rgba(128,128,128,.6); } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .topbar, .tabbar, .sheet, .page-head, .toast { background: var(--surface); } }
