@font-face{font-family:Roboto;font-weight:400;font-display:swap;src:url(/fonts/roboto-cyrillic-400-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Roboto;font-weight:500;font-display:swap;src:url(/fonts/roboto-cyrillic-500-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Roboto;font-weight:700;font-display:swap;src:url(/fonts/roboto-cyrillic-700-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Roboto;font-weight:400;font-display:swap;src:url(/fonts/roboto-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+20BD,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Roboto;font-weight:500;font-display:swap;src:url(/fonts/roboto-latin-500-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+20BD,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Roboto;font-weight:700;font-display:swap;src:url(/fonts/roboto-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+20BD,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
  --primary:#219C6B; --primary-text:#1B8A5D; --secondary:#434A65; --default:#8D91AA; --muted:#6E7390;
  --error:#FF473A; --error-text:#E0362A; --bg:#F6F6F8; --line:#E4E5EB; --field:#C9CAD3; --disabled:#A9ABB8;
  --grad-in:linear-gradient(180deg,#269E6B 0%,#B1D477 100%);
  --grad-res:linear-gradient(180deg,#F3AE6F 0%,#EC87A2 100%);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;background:var(--bg);color:var(--secondary)}
body{font-family:Roboto,-apple-system,system-ui,sans-serif;font-size:16px;line-height:22px;letter-spacing:-.4px;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit;letter-spacing:inherit}
button{cursor:pointer;border:none;background:none;padding:0}
button:disabled{cursor:default}
.boot{padding:40vh 16px 0;text-align:center;color:var(--muted)}
.screen{min-height:100vh;display:flex;flex-direction:column;padding-bottom:calc(84px + env(safe-area-inset-bottom))}
.screen.notabs{padding-bottom:env(safe-area-inset-bottom)}

/* шапки */
.hdr-main{background:#fff;position:sticky;top:0;z-index:5}
.hdr-main .who{display:flex;align-items:center;gap:14px;padding:14px 16px 10px}
.hdr-main .name{font-size:20px;font-weight:700;line-height:24px;letter-spacing:0}
.hdr-main .group{font-size:13px;line-height:18px;color:var(--muted);letter-spacing:0}
.tabs2{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--line)}
.tabs2 button{height:44px;font-size:16px;border-bottom:3px solid transparent;margin-bottom:-1px}
.tabs2 button.on{color:var(--primary-text);font-weight:500;border-bottom-color:var(--primary)}
.hdr{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:5}
.hdr .bar{display:flex;align-items:center;height:56px;padding:0 8px}
.hdr .title{flex:1;text-align:center;font-size:20px;font-weight:500;letter-spacing:0}
.back{width:44px;height:44px;display:flex;align-items:center;justify-content:center;color:var(--primary)}
.spacer44{width:44px}
.steps{display:flex;justify-content:center;padding:0 0 12px}
.steps .track{width:155px;height:5px;border-radius:3px;background:#90CEB5;overflow:hidden}
.steps .fill{height:5px;background:var(--primary);transition:width .2s}
.hdr-game{color:#fff}
.hdr-game.plain{background:#fff;color:var(--secondary);border-bottom:1px solid var(--line)}
.hdr-game.in{background:var(--grad-in)}
.hdr-game.res{background:var(--grad-res)}
.hdr-game .bar{display:flex;align-items:center;height:56px;padding:0 8px}
.hdr-game .back{color:inherit}
.hdr-game.plain .back{color:var(--primary)}
.hdr-game .title{flex:1;text-align:center;font-size:20px;font-weight:700;letter-spacing:0}
.hdr-game .sub{text-align:center;padding:0 16px 16px}

/* аватары */
.av{border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-weight:700;letter-spacing:0;text-transform:uppercase}
.stack{display:flex;align-items:center}
.stack .av{border:2px solid #fff;margin-left:-10px}
.stack .av:first-child{margin-left:0}

/* карточки игр */
.list{display:flex;flex-direction:column;gap:16px;padding:16px}
.card{text-align:left;background:#fff;border-radius:8px;box-shadow:0 2px 10px rgba(67,74,101,.08);padding:16px;display:flex;flex-direction:column;gap:12px;width:100%}
.card h2{margin:0;font-size:20px;font-weight:700;line-height:24px;letter-spacing:0}
.row-ic{display:flex;align-items:center;gap:8px}
.row-ic svg{flex-shrink:0}
.ellipsis{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.price-big{font-size:24px;line-height:28px;letter-spacing:0}
.pills{display:flex;flex-wrap:wrap;gap:8px}
.pill{font-size:15px;padding:4px 12px;border-radius:16px;border:1.5px solid var(--secondary);background:#fff}
.pill.in{background:var(--primary);border-color:var(--primary);color:#fff}
.pill.res{background:#F3AE6F;border-color:#F3AE6F}
.pill.none{border-color:var(--default)}
.empty{text-align:center;padding:60px 24px;color:var(--muted)}

/* игра */
.band{background:var(--secondary);color:#fff;display:flex;align-items:center;gap:16px;padding:18px 16px}
.band .t{flex:1;font-size:20px;font-weight:700;line-height:26px;letter-spacing:0}
.band .p{background:var(--primary);border-radius:4px;padding:10px 14px;font-size:24px;line-height:28px;letter-spacing:0;white-space:nowrap}
.sec{padding:16px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:12px}
.sec:last-of-type{border-bottom:none}
.sec h3{margin:0;font-size:20px;font-weight:500;letter-spacing:0;line-height:24px}
.link{display:flex;align-items:center;gap:12px;width:100%;text-align:left}
.link .txt{color:var(--primary-text)}
.progress{flex:1;height:6px;border-radius:3px;background:var(--line);overflow:hidden}
.progress div{height:6px;background:var(--primary)}
.seg{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.chip{height:40px;border-radius:6px;border:1.5px solid var(--secondary);background:#fff;font-size:14px;font-weight:500;letter-spacing:0;padding:0 4px}
.chip.on{background:var(--primary);border-color:var(--primary);color:#fff}
.chip:disabled{opacity:.5}
.note{white-space:pre-line}
.actions{padding:8px 16px 24px;display:flex;flex-direction:column;gap:12px}
.btn{height:52px;border-radius:8px;background:var(--primary);color:#fff;font-size:18px;font-weight:500;letter-spacing:0;width:100%}
.btn:disabled{background:var(--disabled)}
.btn.ghost{background:#fff;border:1.5px solid var(--primary);color:var(--primary-text)}
.btn.danger{background:#fff;border:1.5px solid var(--error);color:var(--error-text)}
.btn.light{background:#25D48F}
.btn.small{height:44px;font-size:16px}

/* игроки */
.gbar{height:48px;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:500;letter-spacing:0}
.gbar.main{background:var(--primary);color:#fff}
.gbar.res{background:var(--secondary);color:#fff}
.gbar.other{background:var(--line)}
.prow{width:100%;display:flex;align-items:center;gap:12px;min-height:70px;padding:0 16px;border-bottom:1px solid var(--line);background:var(--bg);text-align:left}
.prow.me{background:#EAF5EF}
.prow .n{width:20px;text-align:right;font-size:14px;color:var(--muted)}
.prow .nm{font-size:17px}
.prow .sb{font-size:12px;line-height:16px;letter-spacing:0}
.prow .col{flex:1;min-width:0;display:flex;flex-direction:column}
.rate{font-size:14px;font-weight:500;letter-spacing:0;border:1.5px solid var(--default);border-radius:6px;padding:2px 7px}
.hint{font-size:13px;line-height:18px;color:var(--muted);text-align:center;letter-spacing:0}

/* составы */
.tbar{height:48px;display:flex;align-items:center;gap:10px;padding:0 16px;background:var(--secondary);color:#fff}
.tbar .nm{flex:1;font-size:18px;font-weight:500;letter-spacing:0}
.tbar .mt{font-size:14px;letter-spacing:0}
.dot{width:16px;height:16px;border-radius:50%;border:2px solid #fff;flex-shrink:0}
.balance{display:flex;align-items:center;gap:8px;font-size:15px}
.balance i{width:8px;height:8px;border-radius:50%;flex-shrink:0;background:currentColor}

/* профиль */
.hero{background:var(--grad-in);color:#fff;padding:28px 16px 20px;display:flex;flex-direction:column;gap:14px}
.hero .big{font-size:28px;line-height:32px;letter-spacing:0}
.posbox{min-width:60px;height:52px;padding:0 12px;border-radius:4px;background:#fff;color:var(--secondary);display:flex;align-items:center;justify-content:center;font-size:22px;letter-spacing:0}
.cap{padding:20px 16px 4px;font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.stats{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:12px 16px}
.stat{color:#fff;border-radius:8px;padding:16px;height:120px;display:flex;flex-direction:column;justify-content:space-between}
.stat b{font-weight:500}
.stat span{font-size:40px;line-height:44px;font-weight:400;letter-spacing:0}
.rates{padding:4px 16px;display:flex;flex-direction:column;gap:14px}
.five{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}

/* формы */
.form{padding:8px 24px 24px;display:flex;flex-direction:column;flex:1}
.fld{display:flex;flex-direction:column;padding-top:16px;font-size:13px;color:var(--muted);letter-spacing:0}
.fld input,.fld select,.fld textarea{height:40px;border:none;border-bottom:1px solid var(--field);background:transparent;color:var(--secondary);font-size:18px;outline:none;border-radius:0;padding:0;width:100%;-webkit-appearance:none;appearance:none}
.fld textarea{height:auto;font-size:17px;padding:8px 0;resize:none}
.fld input:focus,.fld select:focus,.fld textarea:focus{border-bottom-color:var(--primary)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.sum{display:flex;justify-content:space-between;align-items:center;padding:16px 0 4px}
.sum b{font-size:24px;font-weight:400;letter-spacing:0;color:var(--primary-text)}
.grow{flex:1}
.err{color:var(--error-text);font-size:14px;padding-top:12px}

/* анкета */
.onb{padding:16px 24px 24px;display:flex;flex-direction:column;gap:12px;flex:1}
.onb .h{font-size:24px;line-height:30px;letter-spacing:0}
.onb .h.xl{font-size:28px;line-height:34px}
.posgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:8px}
.posbtn{height:72px;border-radius:8px;border:1.5px solid var(--field);background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
.posbtn.on{background:var(--primary);border-color:var(--primary);color:#fff}
.posbtn b{font-size:22px;font-weight:400;letter-spacing:0}
.posbtn span{font-size:13px;letter-spacing:0}
.radio{display:flex;align-items:center;gap:14px;min-height:52px;padding:8px 0;border-bottom:1px solid var(--line);text-align:left;width:100%}
.radio i{width:18px;height:18px;border-radius:50%;flex-shrink:0;border:1.5px solid var(--default);background:#fff}
.radio.on i{border:5px solid var(--primary)}

/* таб-бар */
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:10;background:#fff;border-radius:16px 16px 0 0;box-shadow:0 -2px 12px rgba(67,74,101,.08);display:grid;padding:8px 0 calc(12px + env(safe-area-inset-bottom))}
.tabbar button{height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--default);font-size:11px;font-weight:700;letter-spacing:0}
.tabbar button.on{color:var(--primary)}

/* лист и тост */
.overlay{position:fixed;inset:0;z-index:20;background:rgba(67,74,101,.55);display:flex;flex-direction:column;justify-content:flex-end;animation:fade .15s}
.overlay .close{flex:1}
.sheet{background:#fff;border-radius:16px 16px 0 0;padding:10px 16px calc(28px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px;animation:up .2s ease-out;max-height:85vh;overflow-y:auto}
.sheet .handle{align-self:center;width:36px;height:5px;border-radius:3px;background:var(--line)}
.sheet .who{font-size:17px;font-weight:700;letter-spacing:0;padding-top:8px}
.sheet .h{font-size:24px;line-height:30px;letter-spacing:0}
.sheet .h.xl{font-size:34px;line-height:40px}
.sheet .mut{font-size:15px;color:var(--muted);letter-spacing:0}
.toast{position:fixed;left:16px;right:16px;bottom:calc(100px + env(safe-area-inset-bottom));z-index:30;background:var(--secondary);color:#fff;border-radius:8px;padding:12px 14px;font-size:15px;box-shadow:0 6px 20px rgba(0,0,0,.2);animation:fade .15s}
.notabs .toast,.toast.low{bottom:calc(24px + env(safe-area-inset-bottom))}
.loading{padding:40px;text-align:center;color:var(--muted)}
@keyframes up{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
@keyframes fade{from{opacity:0}to{opacity:1}}
