/* Mini App «Умники и умницы» — бренд в двух режимах (Д1), объём только у нажимаемого (Д2) */
@font-face { font-family: Nunito; font-weight: 400 900; font-display: swap;
  src: url(fonts/nunito-cyr.woff2?v=c15c26d2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Nunito; font-weight: 400 900; font-display: swap;
  src: url(fonts/nunito-lat.woff2?v=76388dbf) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #FBF8EF; --card: #fff; --text: #24323F; --hint: #6b7884; --line: #ebe5d6;
  --ink: #24323F;                       /* графит в иконках */
  --teal: #0DA5B3; --teal-edge: #087985; --accent: #0DA5B3; --teal-soft: #DDF2F3;
  --orange: #EE7A1A; --orange-edge: #B85A0F;
  --gold: #F2B632; --silver: #B8C2C8; --bronze: #C8803E;
  --ok: #2BA84A; --ok-edge: #1E7D36; --ok-soft: #E3F5E7;
  --bad: #D0342C; --bad-edge: #9C2620; --bad-soft: #FBE4E2;
  --white-btn: #fff; --white-edge: #DDD6C6;
  --radius: 20px;
  --dock-h: 74px;
}
:root[data-theme=dark] {
  --bg: #1B2630; --card: #24323F; --text: #F3EFE4; --hint: #8fa0ad; --line: #2f3f4d;
  --ink: #F3EFE4;
  --accent: #3FBCC8; --teal-soft: #1d4048;
  --ok: #34B857; --ok-edge: #23863E; --ok-soft: #1f3b2a;
  --bad: #E0473F; --bad-edge: #A6302A; --bad-soft: #43262a;
  --white-btn: #2c3c4a; --white-edge: #151e26;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 500 16px/1.4 Nunito, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
       -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
main { max-width: 520px; margin: 0 auto; padding: 14px 16px 32px; min-height: 100vh; }
body.with-dock main { padding-bottom: calc(var(--dock-h) + 40px + env(safe-area-inset-bottom)); }
.center { text-align: center; padding: 48px 0; }
.muted { color: var(--hint); }
.small { font-size: 13px; }
h1 { font-size: 24px; font-weight: 900; margin: 4px 0 2px; }
h2 { font-size: 20px; font-weight: 900; margin: 0 0 12px; }
.ic { width: 24px; height: 24px; display: block; flex: none; }
.masc svg { width: 100%; height: auto; display: block; }
button { font: inherit; border: 0; cursor: pointer; color: inherit; background: none; padding: 0; }
.num { font-variant-numeric: tabular-nums; }

/* ── объёмные кнопки (Д2): кромка 4 px темнее, при нажатии проседает на 4 px ── */
.btn { --c: var(--teal); --e: var(--teal-edge); --t: #fff;
       display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
       padding: 14px 16px; border-radius: 16px; font-weight: 900; font-size: 17px;
       background: var(--c); color: var(--t); box-shadow: 0 4px 0 var(--e);
       transform: translateY(0); transition: transform .06s, box-shadow .06s; margin-bottom: 4px; }
.btn:active, .btn.pressed { transform: translateY(4px); box-shadow: 0 0 0 var(--e); }
.btn.orange { --c: var(--orange); --e: var(--orange-edge); }
.btn.white { --c: var(--white-btn); --e: var(--white-edge); --t: var(--text); }
.btn.ok { --c: var(--ok); --e: var(--ok-edge); }
.btn.bad { --c: var(--bad); --e: var(--bad-edge); }
.btn[disabled] { opacity: .5; }
.btn.orange .ic *, .btn.ok .ic *, .btn.bad .ic * { fill: #fff !important; }  /* иконка на цветной кнопке — белая */
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.link { color: var(--accent); font-weight: 800; font-size: 14px; }

/* ── шапка ленты ── */
.top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ava { width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
       background: var(--teal); color: #fff; font-weight: 900; font-size: 17px; }
.top .nick { flex: 1; font-weight: 900; font-size: 19px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px 5px 7px; border-radius: 999px;
        background: var(--card); font-weight: 900; font-size: 15px; white-space: nowrap; }
.chip .ic { width: 20px; height: 20px; }

/* ── карточки ── */
.card { background: var(--card); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }
.card.tap { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; }
.card.tap > .ic:first-child { width: 34px; height: 34px; }
.card.tap .body { flex: 1; min-width: 0; }
.card.tap .chev { color: var(--hint); width: 18px; height: 18px; }
.label { font-size: 12px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: var(--hint); }
.card b.v { display: block; font-weight: 900; font-size: 17px; }
.card .sub { font-size: 13px; color: var(--hint); font-weight: 700; }

/* главная карточка ленты (Д11) */
.hero { position: relative; overflow: hidden; border-radius: var(--radius); padding: 16px; margin-bottom: 10px;
        min-height: 168px; color: #fff; background: var(--teal); }
.hero .label { color: rgba(255,255,255,.85); }
.hero h2 { font-size: 25px; line-height: 1.08; margin: 4px 0 6px; max-width: 64%; }
.hero .m { font-size: 14px; font-weight: 700; opacity: .9; max-width: 60%; }
.hero .pill { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 800;
              background: rgba(255,255,255,.2); padding: 4px 10px; border-radius: 99px; }
.hero .masc { position: absolute; right: -10px; bottom: -14px; width: 132px; }
.hero.done { background: var(--card); color: var(--text); min-height: 0; }
.hero.done .label { color: var(--accent); }
.hero.done .score { font-weight: 900; font-size: 34px; line-height: 1; margin-top: 6px; }
.hero.done .score span { font-size: 15px; color: var(--hint); font-weight: 800; margin-left: 8px; }
.hero.done .foot { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 8px; font-size: 13px;
                   font-weight: 700; color: var(--hint); display: flex; justify-content: space-between; gap: 8px; }

/* полоска недели (решение 7) */
.week .wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; margin-top: 8px; text-align: center; }
.wd span { display: block; font-size: 12px; font-weight: 800; color: var(--hint); margin-bottom: 4px; }
.wd.today span { color: var(--accent); }
.wd i { display: grid; place-items: center; height: 32px; border-radius: 9px; font-style: normal; font-size: 12px; font-weight: 900;
        background: var(--bg); color: var(--hint); }
.wd i .ic { width: 18px; height: 18px; }
.wd i.ok { background: var(--ok); color: #fff; }
.wd i.tr { background: #FCE3CC; color: #B85A0F; font-size: 9px; letter-spacing: -.03em; overflow: hidden; }
.wd i.miss { opacity: .6; }
.wd i.now { background: var(--teal); color: #fff; }
.wd.today i { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--teal); }
.wk-next { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; font-weight: 800; color: var(--hint); }
.wk-next .ic { width: 18px; height: 18px; }

.marks { display: flex; gap: 6px; margin: 8px 0 2px; }
.mark { width: 14px; height: 14px; border-radius: 50%; background: var(--bad); }
.mark.ok { background: var(--ok); }

/* ── док (Д1, решение 1/5) ── */
#dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: calc(var(--dock-h) + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom); background: var(--card); border-top: 1px solid var(--line);
        display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; }
#dock[hidden] { display: none; }
#dock button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding-bottom: 10px;
               font-size: 12px; font-weight: 800; color: var(--hint); }
#dock button .ic { width: 27px; height: 27px; }
#dock button.on { color: var(--accent); }
#dock .mid { color: var(--text); }
#dock .play { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-top: -42px;
              margin-bottom: 1px; background: var(--orange); box-shadow: 0 0 0 5px var(--card), 0 4px 0 5px var(--card);
              position: relative; transition: transform .06s; }
#dock .play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 -4px 0 var(--orange-edge); }
#dock .play .ic { width: 30px; height: 30px; }
#dock .play.teal { background: var(--teal); }
#dock .play.teal::after { box-shadow: inset 0 -4px 0 var(--teal-edge); }
#dock .mid:active .play { transform: translateY(3px); }
#dock .play.pulse { animation: pulse 1.6s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 5px var(--card), 0 0 0 5px rgba(238,122,26,.55); }
  70% { box-shadow: 0 0 0 5px var(--card), 0 0 0 20px rgba(238,122,26,0); }
  100% { box-shadow: 0 0 0 5px var(--card), 0 0 0 5px rgba(238,122,26,0); }
}

/* ── профиль (Д7) ── */
.phead { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 18px; }
.phead .ava { width: 88px; height: 88px; font-size: 38px; box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--teal); margin-bottom: 8px; }
.phead h1 { margin: 6px 0 0; text-align: center; overflow-wrap: anywhere; }
.since { font-size: 14px; font-weight: 700; color: var(--hint); }
.gear { position: absolute; right: 0; top: 4px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
        background: var(--white-btn); box-shadow: 0 4px 0 var(--white-edge); transition: transform .06s, box-shadow .06s; }
.gear:active { transform: translateY(4px); box-shadow: none; }
.gear .ic { width: 26px; height: 26px; }

/* ── настройки (Д13): плоские группы, бирюзовые переключатели ── */
.sec { font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--hint); margin: 16px 4px 6px; }
.list { background: var(--card); border-radius: 18px; overflow: hidden; }
.it { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--line); font-weight: 800; font-size: 16px; }
.it:first-child { border: 0; }
.it .t { flex: 1; min-width: 0; }
.it .t.big { font-size: 20px; font-weight: 900; overflow-wrap: anywhere; }
.it .t small { display: block; font-size: 12px; color: var(--hint); font-weight: 700; }
.it .v { font-size: 13px; color: var(--hint); text-align: right; }
.it .v.link { color: var(--accent); font-weight: 900; font-size: 15px; }
.it .v.link small { display: block; color: var(--hint); font-weight: 700; font-size: 12px; }
.sw { appearance: none; -webkit-appearance: none; margin: 0; width: 48px; height: 28px; border-radius: 99px; background: var(--line);
      position: relative; flex: none; cursor: pointer; transition: background .2s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
             box-shadow: 0 2px 0 rgba(0,0,0,.15); transition: transform .2s; }
.sw:checked { background: var(--teal); }
.sw:checked::after { transform: translateX(20px); }

/* поле ввода ника */
.inp { font: 800 19px Nunito, system-ui, sans-serif; width: 100%; padding: 13px 14px; border-radius: 14px; border: 2px solid var(--teal);
       background: var(--card); color: var(--text); outline: 0; }
.note { font-size: 13px; color: var(--hint); font-weight: 700; margin: 6px 2px 14px; }
.note.err { color: var(--bad); }

/* ── знакомство (Д10): бумага, Атомыч hello, светло-бирюзовое облачко ── */
.meet { min-height: calc(100vh - 46px); display: flex; flex-direction: column; }
.meet-space { flex: 1; min-height: 20px; }
.bub { position: relative; background: var(--teal-soft); color: var(--text); border-radius: 20px; padding: 14px 16px;
       font-weight: 800; font-size: 18px; line-height: 1.3; }
.bub small { display: block; font-weight: 700; font-size: 15px; color: var(--hint); margin-top: 4px; }
.bub.down::after { content: ""; position: absolute; left: 56px; bottom: -11px; border: 11px solid transparent; border-top-color: var(--teal-soft); border-bottom: 0; }
.meet .masc { width: 170px; margin: 8px 0 8px -6px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.stat { background: var(--card); border-radius: 16px; padding: 12px 6px; text-align: center; }
.stat .ic { margin: 0 auto 4px; }
.stat b { display: block; font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--hint); font-weight: 700; }
.soon { text-align: center; color: var(--hint); font-size: 14px; font-weight: 700; padding: 18px 12px; }

/* ── нет связи (Д13): лента из кэша приглушена, карточка над доком ── */
.offline-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--hint); margin-bottom: 8px; }
.offline-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
body.offline main > :not(.offline-tag) { opacity: .6; }
#toast { position: fixed; left: 12px; right: 12px; bottom: calc(var(--dock-h) + 18px + env(safe-area-inset-bottom)); z-index: 30;
         max-width: 496px; margin: 0 auto; background: var(--card); border-radius: 20px; padding: 14px;
         box-shadow: 0 10px 30px rgba(0,0,0,.18); display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px;
         animation: rise .3s cubic-bezier(.3,1.4,.6,1); }
#toast .masc { grid-row: span 2; }
#toast b { font-weight: 900; font-size: 17px; }
#toast p { margin: 0; font-size: 14px; color: var(--hint); font-weight: 700; }
#toast .btn { grid-column: 1 / -1; margin-top: 10px; }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── подписка (Д10): бирюзовый экран, талисман cool ── */
.teal-screen { position: fixed; inset: 0; z-index: 10; background: var(--teal); color: #fff; overflow: auto;
               display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 20px; }
.teal-screen .masc { width: 170px; }
.bubble { position: relative; background: #fff; color: #24323F; border-radius: 20px; padding: 14px 16px; margin: 18px 0 22px;
          font-weight: 700; font-size: 15px; max-width: 360px; text-align: center; }
.bubble b { display: block; font-weight: 900; font-size: 18px; margin-bottom: 4px; }
.bubble::before { content: ""; position: absolute; left: 50%; top: -9px; margin-left: -10px; border: 10px solid transparent;
                  border-top: 0; border-bottom-color: #fff; }
.teal-screen .btns { width: 100%; max-width: 360px; display: grid; gap: 10px; }

/* ── игра ── */
/* бирюзовая сцена отсчёта и «Вопрос N из 5» (Д9) */
.game-stage { position: fixed; inset: 0; z-index: 10; background: var(--teal); color: #fff; display: flex; flex-direction: column;
              align-items: center; justify-content: center; text-align: center; padding: 20px; }
.game-stage .masc { width: 160px; margin-bottom: 6px; }
.gs-label { font-weight: 900; font-size: 22px; opacity: .85; }
.gs-num { font-weight: 900; font-size: 130px; line-height: 1; animation: pop .45s cubic-bezier(.2,1.4,.4,1); }
.gs-num small { font-size: 46px; opacity: .65; }
.gs-bar { display: flex; gap: 7px; margin-top: 18px; }
.gs-bar i { width: 32px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.3); }
.gs-bar i.d { background: #fff; }
@keyframes pop { from { opacity: 0; transform: scale(1.6); } to { opacity: 1; transform: none; } }

/* вопрос (Д2) */
.progress { display: flex; gap: 6px; margin: 4px 0 10px; }
.progress i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.progress i.done { background: var(--teal); }
.timer { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; margin-bottom: 12px; }
.timer div { height: 100%; background: var(--teal); border-radius: 5px; transform-origin: left; }
.timer.low div { background: var(--bad); }
.qhead { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.qhead .masc { width: 60px; flex: none; }
.cat { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: var(--hint); }
.question { font-size: 22px; font-weight: 900; line-height: 1.25; margin: 4px 0 18px; }
.options { display: grid; gap: 12px; }
.opt { text-align: left; padding: 15px 16px; border-radius: 16px; background: var(--white-btn); font-size: 17px; font-weight: 800; line-height: 1.25;
       border: 2px solid var(--white-edge); box-shadow: 0 4px 0 var(--white-edge); transition: transform .06s, box-shadow .06s, opacity .2s; }
.opt:active { transform: translateY(4px); box-shadow: none; }
.opt.ok { background: var(--ok); border-color: var(--ok); color: #fff; box-shadow: 0 4px 0 var(--ok-edge); }
.opt.bad { background: var(--bad); border-color: var(--bad); color: #fff; box-shadow: 0 4px 0 var(--bad-edge); }
.opt[disabled] { cursor: default; }
.opt.picked { transform: translateY(4px); box-shadow: none; border-color: var(--teal); }
.options.locked .opt:not(.picked):not(.ok):not(.bad) { opacity: .5; }

/* панель разбора (Д8): выезжает снизу с лёгким перелётом */
.fb-panel { --pbg: var(--ok-soft); --pc: var(--ok); position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--pbg);
            padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; max-height: 70vh; overflow: auto;
            transform: translateY(105%); transition: transform .28s cubic-bezier(.2,.9,.3,1.12); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
.fb-panel.bad { --pbg: var(--bad-soft); --pc: var(--bad); }
.fb-panel.on { transform: none; }
.fb-panel > * { max-width: 488px; margin-left: auto; margin-right: auto; }
.fb-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.fb-verdict { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 21px; color: var(--pc); }
.fb-verdict i { width: 36px; height: 36px; border-radius: 50%; background: var(--pc); color: #fff; display: grid; place-items: center;
                font-style: normal; font-size: 19px; flex: none; }
.fb-report { font-size: 12px; font-weight: 800; color: var(--pc); opacity: .8; text-align: right; }
.fb-ans { font-weight: 900; color: var(--pc); margin-top: 2px; }
.fb-ex { font-size: 15px; font-weight: 600; margin: 6px 0 14px; }
.fb-panel .btn { margin-top: 8px; }

/* результат (Д4): бирюзовый постер 4:5 */
.poster { position: relative; overflow: hidden; aspect-ratio: 4 / 5; max-height: 62vh; margin: 0 auto 12px; border-radius: 24px;
          background: var(--teal); color: #fff; padding: 22px 22px 0; box-shadow: 0 12px 30px rgba(0,0,0,.16); }
.p-date { font-weight: 900; font-size: 13px; letter-spacing: .05em; opacity: .85; }
.p-score { font-weight: 900; font-size: 88px; line-height: .95; margin: 10px 0 12px; }
.p-score small { font-size: 42px; opacity: .7; }
.p-marks { display: flex; gap: 8px; }
.p-marks i { width: 24px; height: 24px; border-radius: 50%; background: #fff; }
.p-marks i.x { background: var(--bad); box-shadow: inset 0 0 0 3px #fff; }
.p-line { font-weight: 800; font-size: 16px; margin-top: 12px; position: relative; z-index: 1; }
.p-line b { color: #24323F; background: var(--gold); border-radius: 8px; padding: 1px 8px; }
.poster .masc { position: absolute; right: -18px; bottom: 50px; width: 46%; }
.p-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 52px; background: #24323F; display: flex; align-items: center;
          justify-content: space-between; padding: 0 18px; font-weight: 900; font-size: 15px; }
.p-foot span { color: #3FBCC8; }
.p-foot em { font-style: normal; color: var(--orange); }
#stage-move .v .up, #stage-move .v .dn { font-size: 15px; }

/* тренировка (Д13) */
.tr-head { display: flex; justify-content: space-between; align-items: center; font-size: 17px; }
.tr-head b { display: flex; align-items: center; gap: 6px; font-weight: 900; }
.tr-head span { font-weight: 800; color: var(--hint); }
.tr-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin: 8px 0 8px; }
.tr-bar i { display: block; height: 100%; background: var(--teal); border-radius: 4px; }
.tr-acc { display: inline-block; font-size: 13px; font-weight: 900; color: var(--accent); background: var(--teal-soft);
          border-radius: 99px; padding: 3px 10px; margin-bottom: 10px; }
.tr-stop { display: block; margin: 22px auto 0; font-size: 15px; font-weight: 800; color: var(--hint); text-decoration: underline; }

/* ── рейтинг (Д6) ── */
:root { --seg: #ebe5d6; --me-row: #E3F4F5; }
:root[data-theme=dark] { --seg: #16202a; --me-row: #1f4650; }
.r-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.pill { display: inline-flex; background: var(--seg); border-radius: 99px; padding: 3px; }
.pill button { padding: 6px 14px; border-radius: 99px; font-size: 14px; font-weight: 800; color: var(--hint); }
.pill button.on { background: var(--teal); color: #fff; }
.info { width: 32px; height: 32px; border-radius: 50%; background: var(--card); display: grid; place-items: center;
        font-weight: 900; font-size: 16px; color: var(--accent); box-shadow: 0 3px 0 var(--white-edge); }
.info:active { transform: translateY(3px); box-shadow: none; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--seg); border-radius: 14px; padding: 3px; margin-bottom: 8px; }
.seg button { padding: 8px 0; border-radius: 11px; font-size: 15px; font-weight: 800; color: var(--hint); }
.seg button.on { background: var(--card); color: var(--text); box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.r-sub { font-size: 13px; color: var(--hint); font-weight: 700; margin: 0 2px 10px; }

.pod { display: grid; grid-template-columns: 1fr 1.1fr 1fr; align-items: end; gap: 8px; margin: 6px 0 12px; text-align: center; }
.pod .av { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 6px; display: grid; place-items: center;
           font-weight: 900; color: #fff; font-size: 20px; }
.pod .c1 .av { width: 66px; height: 66px; font-size: 26px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--gold); }
.pod .c2 .av { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--silver); }
.pod .c3 .av { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--bronze); }
.pod .nm { font-weight: 900; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.pod .me .nm { color: var(--accent); }
.pod .pt { font-size: 13px; color: var(--hint); font-weight: 800; }
.pod .st { border-radius: 14px 14px 0 0; margin-top: 6px; display: grid; place-items: start center; padding-top: 6px;
           font-weight: 900; font-size: 24px; color: #fff; }
.pod .c1 .st { height: 70px; background: var(--gold); }
.pod .c2 .st { height: 50px; background: var(--silver); }
.pod .c3 .st { height: 36px; background: var(--bronze); }

.table { border-radius: 18px; overflow: hidden; background: var(--card); }
.tr { display: grid; grid-template-columns: 26px 34px 1fr auto auto; gap: 10px; align-items: center; padding: 9px 14px;
      border-top: 1px solid var(--line); font-size: 15px; }
.tr:first-child { border-top: 0; }
.tr .n { font-weight: 900; color: var(--hint); text-align: center; }
.tr .a { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff; font-size: 15px; }
.tr .nm { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr .ar { font-size: 12px; font-weight: 900; }
.tr .p { font-weight: 900; text-align: right; min-width: 28px; }
.up { color: var(--ok); } .dn { color: var(--bad); }
.tr.g .n { color: var(--gold); } .tr.s .n { color: #9aa6ad; } .tr.b .n { color: var(--bronze); }
.tr.g { background: linear-gradient(90deg, rgba(242,182,50,.16), transparent 70%); }
.tr.me { background: var(--me-row); }
.me-stick { position: fixed; left: 12px; right: 12px; max-width: 496px; margin: 0 auto; z-index: 15;
            bottom: calc(var(--dock-h) + 10px + env(safe-area-inset-bottom)); background: var(--me-row);
            border: 2px solid var(--teal); border-radius: 18px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.12);
            transform: translateY(12px); opacity: 0; pointer-events: none; transition: transform .2s, opacity .2s; }
.me-stick.show { transform: none; opacity: 1; }
.me-stick .tr { border: 0; background: none; }
.tag-out { font-size: 11px; font-weight: 900; background: var(--orange); color: #fff; border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
.empty { padding: 28px 16px; text-align: center; color: var(--hint); }
.empty-friends { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 18px; }
.empty-friends .ic { width: 44px; height: 44px; }

/* нижняя шторка */
.sheet-back { position: fixed; inset: 0; z-index: 40; background: rgba(15,22,28,.45); display: flex; align-items: flex-end; animation: fade .2s; }
.sheet { width: 100%; max-width: 520px; margin: 0 auto; background: var(--bg); border-radius: 24px 24px 0 0;
         padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); animation: rise .28s cubic-bezier(.3,1.3,.6,1); }
.sheet p { margin: 0 0 10px; font-size: 15px; font-weight: 600; }
.sheet .btn { margin-top: 14px; }
@keyframes fade { from { opacity: 0; } }
