/* ПХШ.ассистент — мини-приложение.
   Идея: операционная. Цвет хирургического костюма Баси (бирюза) — основа, оранжевый (Бася) — то, на что нажать сейчас.
   Пунктирный «шов» как у строчки на костюме — разделитель. Заголовки и цифры — Unbounded, текст — Onest. */
@font-face { font-family: "Unbounded"; font-weight: 700; font-display: swap; src: url(fonts/unbounded-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: "Unbounded"; font-weight: 700; font-display: swap; src: url(fonts/unbounded-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+2212; }
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url(fonts/onest-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: "Onest"; font-weight: 400; font-display: swap; src: url(fonts/onest-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+2212; }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url(fonts/onest-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url(fonts/onest-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+2000-206F,U+2212; }

:root {
  --bg: #EDF2F1;            /* стальной, чуть мятный */
  --surface: #FFFFFF;
  --ink: #12292B;
  --hint: #5B7271;
  --scrub: #0E6B6F;         /* костюм Баси */
  --on-scrub: #FFFFFF;
  --owl: #EE7B22;           /* перья Баси */
  --owl-soft: #FFEBD8;
  --cream: #FFF6EC;
  --line: rgba(18, 41, 43, .13);
  --stitch: rgba(18, 41, 43, .22);
  --ok: #1D8A52; --ok-soft: #E2F3E9;
  --bad: #D24444; --bad-soft: #FBE6E6;
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --body: "Onest", -apple-system, "Segoe UI", Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
.dark {
  --bg: #0C2224; --surface: #132F31; --ink: #E8F2F1; --hint: #8DA7A5;
  --scrub: #14777A; --owl: #F2934A; --owl-soft: #3A2A1C; --cream: #1B3A3B;
  --line: rgba(255,255,255,.1); --stitch: rgba(255,255,255,.2);
  --ok: #4CC184; --ok-soft: #173B2B; --bad: #F07272; --bad-soft: #3D2224;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
#app { padding: 14px 16px calc(96px + var(--safe-b)); max-width: 640px; margin: 0 auto; min-height: 100vh; }
#app.no-tabs { padding-bottom: calc(112px + var(--safe-b)); }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; text-align: inherit; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--owl); outline-offset: 2px; }
h1 { font: 700 22px/1.2 var(--display); margin: 4px 0 14px; letter-spacing: -.01em; }
h2 { font: 600 15px/1.3 var(--body); color: var(--hint); margin: 24px 0 6px; }
b, strong { font-weight: 600; }
.muted { color: var(--hint); }
.small { font-size: 14px; }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.no-select { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* ---------- загрузка ---------- */
.boot { display: grid; place-items: center; height: 70vh; }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--scrub); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: var(--line); border-radius: 14px; height: 64px; margin-bottom: 10px; opacity: .6; }

/* ---------- «Назад» ---------- */
.backbar { display: inline-flex; align-items: center; gap: 4px; color: var(--scrub); font-weight: 600; padding: 4px 8px 4px 0; margin: -2px 0 6px; }
.dark .backbar { color: var(--owl); }

/* ---------- шапка главной: «костюм» ---------- */
.scrubs { margin: -14px -16px 0; padding: 20px 20px 24px; background: var(--scrub); color: var(--on-scrub);
  border-radius: 0 0 26px 26px; position: relative; overflow: hidden; }
.scrubs::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 9px; border-bottom: 2px dashed rgba(255,255,255,.35); }
.scrubs .hi { font-size: 15px; opacity: .8; }
/* эмблема ПХШ вышита на «костюме», как на шапочке Баси */
.crest { display: block; width: 58px; height: auto; margin: -4px 0 8px; filter: drop-shadow(0 1px 0 rgba(0,0,0,.28)); opacity: .92; }
.scrubs a.name { display: block; color: inherit; text-decoration: none; }
.scrubs .name { font: 700 23px/1.15 var(--display); margin: 2px 0 12px; max-width: 64%; overflow-wrap: anywhere; }
.scrubs .basya { position: absolute; right: 14px; top: 14px; width: 128px; height: 128px; object-fit: contain; pointer-events: none; }
.lvl { display: block; max-width: 60%; font-size: 14px; color: inherit; }
.lvl .track { height: 6px; background: rgba(0,0,0,.22); border-radius: 6px; margin: 6px 0 4px; overflow: hidden; }
.lvl .track i { display: block; height: 100%; background: var(--owl); border-radius: 6px; }
.week { display: flex; gap: 6px; margin-top: 18px; position: relative; z-index: 1; align-items: flex-end; }
.week span { width: 34px; text-align: center; font-size: 12px; opacity: .85; }
.week span i { display: block; height: 30px; border-radius: 9px; border: 2px solid rgba(255,255,255,.3); margin-top: 3px; }
.week span.on i { background: var(--owl); border-color: var(--owl); }
.week span.today i { border-color: #fff; }
.week .count { margin-left: auto; text-align: right; line-height: 1.15; font-size: 12px; opacity: .9; }
.week .count b { font: 700 26px var(--display); display: block; }

/* ---------- вопрос дня: «пластырь» ---------- */
.tape { display: flex; align-items: center; gap: 12px; width: 100%; margin: 16px 0 4px; padding: 14px 26px 14px 16px;
  background: var(--owl); color: #2B1504; border-radius: 12px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 50%, 100% 100%, 0 100%); }
.tape .t { font: 700 16px/1.25 var(--display); }
.tape .s { font-size: 14px; opacity: .8; margin-top: 2px; }
.tape.done { background: var(--owl-soft); color: var(--ink); }

/* ---------- журнал разделов ---------- */
.journal { background: var(--surface); border-radius: 18px; padding: 2px 16px; margin-top: 12px; }
.jrow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 0; border-bottom: 1.5px dashed var(--stitch); }
.jrow:last-child { border-bottom: 0; }
.jrow .t { font-weight: 600; font-size: 17px; }
.jrow .s { font-size: 14px; color: var(--hint); }
.jrow .c { font: 700 13px var(--display); color: var(--scrub); white-space: nowrap; }
.dark .jrow .c { color: var(--owl); }
.jrow .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--cream); display: grid; place-items: center; flex: none; color: var(--scrub); }
.dark .jrow .ic { color: var(--owl); }
.jrow .ic svg { width: 22px; height: 22px; }
.jrow:active { opacity: .6; }
.links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 2px 0; font-size: 15px; }
.links button { color: var(--scrub); font-weight: 600; }
.dark .links button { color: var(--owl); }
.school { display: flex; align-items: center; gap: 12px; margin: 28px 2px 0; color: var(--hint); font-size: 13px; }
.school img.orig { flex: none; width: 76px; height: auto; border-radius: 12px; background: #fff; padding: 4px; }
.disclaimer { font-size: 13px; color: var(--hint); margin: 26px 2px 0; }

/* ---------- общие блоки ---------- */
.card { background: var(--surface); border-radius: 16px; padding: 16px; margin-bottom: 10px; }
.tap:active { opacity: .7; }
.head { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 10px; }
.head h1 { margin: 0; }
.sticker { width: 84px; height: 84px; object-fit: contain; flex: none; margin: -14px 0 -6px 0; }
.head > .grow { min-width: 0; }
.chip { display: inline-block; font-size: 13px; font-weight: 600; padding: 2px 9px; border-radius: 7px; background: var(--cream); color: var(--scrub); white-space: nowrap; }
.dark .chip { color: var(--owl); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.bar { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; background: var(--scrub); border-radius: 6px; transition: width .5s; }

/* ---------- кнопки ---------- */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px;
  background: var(--scrub); color: #fff; font-weight: 600; font-size: 16px; text-align: center; }
.btn:active { opacity: .85; }
.btn.ghost { background: var(--surface); color: var(--scrub); box-shadow: inset 0 0 0 1.5px var(--line); }
.dark .btn.ghost { color: var(--ink); }
.btn.owl { background: var(--owl); color: #2B1504; }
.btn[disabled] { opacity: .45; }
.btn.sm { min-height: 40px; width: auto; padding: 8px 14px; font-size: 15px; }
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + var(--safe-b)); background: linear-gradient(transparent, var(--bg) 30%); z-index: 5; }
.bottom-bar .inner { max-width: 608px; margin: 0 auto; display: flex; gap: 10px; }

/* ---------- нижние вкладки ---------- */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 2px calc(6px + var(--safe-b)); z-index: 10; }
.tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--hint); padding: 3px 0; text-align: center; }
.tabs svg { width: 24px; height: 24px; }
.tabs button.on { color: var(--scrub); font-weight: 600; }
.dark .tabs button.on { color: var(--owl); }

/* ---------- списки тем ---------- */
.search { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; outline: none; }
.search:focus { border-color: var(--scrub); }
.secs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 12px; }
.secs::-webkit-scrollbar { display: none; }
.secs button { min-width: 0; text-align: center; padding: 8px 4px; border-radius: 10px; background: var(--surface); font-size: 13px; font-weight: 600; color: var(--hint); }
.secs button.on { background: var(--scrub); color: #fff; }
.secs button .sc { display: block; font-weight: 400; opacity: .75; font-size: 12px; margin-top: 1px; }
.filters { display: flex; gap: 16px; margin: 0 2px 4px; font-size: 14px; }
.filters button { color: var(--hint); padding: 4px 0; border-bottom: 2px solid transparent; }
.filters button.on { color: var(--ink); font-weight: 600; border-color: var(--owl); }
.trow { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 14px 0; border-bottom: 1.5px dashed var(--stitch); }
.trow:last-child { border-bottom: 0; }
.mark { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--stitch); flex: none; margin-top: 3px; }
.mark.started { border-color: var(--owl); background: linear-gradient(90deg, var(--owl) 50%, transparent 50%); }
.mark.passed { border-color: var(--ok); background: var(--ok); }
.code { font: 700 12px var(--display); color: var(--scrub); letter-spacing: .02em; }
.dark .code { color: var(--owl); }
.trow .t { font-weight: 600; font-size: 16px; line-height: 1.3; }
.trow .meta { font-size: 13px; color: var(--hint); margin-top: 3px; }
.empty { text-align: center; padding: 30px 16px; }
.empty img { width: 150px; height: 150px; object-fit: contain; }

/* ---------- текст темы ---------- */
.seg { display: flex; gap: 18px; margin: 0 2px 12px; border-bottom: 1.5px solid var(--line); }
.seg button { padding: 8px 0; font-weight: 600; color: var(--hint); border-bottom: 2.5px solid transparent; margin-bottom: -1.5px; }
.seg button.on { color: var(--ink); border-color: var(--owl); }
.prose { white-space: pre-line; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.prose b { font-weight: 600; }
.prose a { color: var(--scrub); }

/* ---------- тест и задача ---------- */
.qhead { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 14px; color: var(--hint); }
.qhead .bar { flex: 1; margin: 0; }
.qtext { font-size: 19px; font-weight: 600; line-height: 1.4; margin: 0 0 16px; }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt { display: flex; align-items: flex-start; gap: 12px; width: 100%; background: var(--surface); border: 2px solid transparent; border-radius: 12px; padding: 13px 14px; font-size: 16px; line-height: 1.4; }
.opt:active { opacity: .8; }
.opt .l { font: 700 13px/26px var(--display); width: 26px; height: 26px; text-align: center; border-radius: 7px; background: var(--cream); color: var(--scrub); flex: none; }
.dark .opt .l { color: var(--owl); }
.opt.right { border-color: var(--ok); background: var(--ok-soft); }
.opt.right .l { background: var(--ok); color: #fff; }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.opt.wrong .l { background: var(--bad); color: #fff; }
.opt.dim { opacity: .5; }
.opt.sel { border-color: var(--scrub); }
.opts.locked .opt { pointer-events: none; }
.explain { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: var(--surface); border-left: 4px solid var(--ok); }
.explain.bad { border-left-color: var(--bad); }
.verdict { font: 700 15px var(--display); margin-bottom: 4px; color: var(--ok); }
.verdict.bad { color: var(--bad); }
.shake { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.patient { background: var(--cream); border-radius: 14px; padding: 16px; margin-bottom: 14px; border: 1.5px dashed var(--stitch); }
.hist { font-size: 14px; padding: 10px 0; border-bottom: 1.5px dashed var(--stitch); }
.steps { display: flex; gap: 4px; }
.steps i { width: 20px; height: 6px; border-radius: 3px; background: var(--line); }
.steps i.ok { background: var(--ok); } .steps i.bad { background: var(--bad); } .steps i.cur { background: var(--owl); }

/* ---------- итоги ---------- */
.result { text-align: center; padding: 12px 0 18px; }
.result img { width: 170px; height: 170px; object-fit: contain; }
.big { font: 700 46px/1.05 var(--display); margin: 6px 0; letter-spacing: -.02em; }
.quip { color: var(--hint); margin: 10px 0 0; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 20; }
.confetti i { position: absolute; top: -12px; width: 7px; height: 12px; border-radius: 2px; animation: fall 1.8s ease-in forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(540deg); opacity: .2; } }

/* ---------- рейтинг ---------- */
.rank { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1.5px dashed var(--stitch); }
.rank:last-child { border-bottom: 0; }
.rank .p { width: 30px; font: 700 15px var(--display); color: var(--hint); }
.rank.top .p { color: var(--owl); }
.rank.me .t { color: var(--scrub); font-weight: 600; }
.dark .rank.me .t { color: var(--owl); }
.rank .x { font: 700 14px var(--display); }
.list { background: var(--surface); border-radius: 16px; padding: 2px 16px; margin-bottom: 10px; }
.mine { display: flex; align-items: center; gap: 16px; }
.mine .place { font: 700 40px var(--display); color: var(--owl); min-width: 56px; }

/* ---------- профиль ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 10px; }
.stat { background: var(--surface); padding: 14px 16px; }
.stat b { display: block; font: 700 22px var(--display); }
.stat span { font-size: 13px; color: var(--hint); }

/* ---------- шкалы и калькуляторы ---------- */
.form label { display: block; font-weight: 600; margin: 18px 0 8px; }
.form label .p { font-weight: 400; color: var(--hint); font-size: 14px; display: block; }
.form input[type=number] { width: 100%; font: 600 18px var(--body); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; outline: none; }
.form input:focus { border-color: var(--scrub); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 10px 14px; border-radius: 11px; background: var(--surface); border: 1.5px solid var(--line); font-size: 15px; }
.pill.on { background: var(--scrub); border-color: var(--scrub); color: #fff; }
.pills.multi { flex-direction: column; gap: 6px; }
.pills.multi .pill { text-align: left; display: flex; gap: 10px; align-items: flex-start; }
.pills.multi .pill::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 5px; border: 1.5px solid var(--line); background: var(--bg); }
.pills.multi .pill.on { background: var(--surface); color: inherit; border-color: var(--scrub); }
.pills.multi .pill.on::before { background: var(--scrub) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--scrub); }
.result-card { background: var(--surface); border-radius: 16px; padding: 16px; margin-top: 16px; border-top: 4px solid var(--owl); }
.score-big { font: 700 24px/1.25 var(--display); margin-bottom: 8px; }
.qcount { font: 700 13px var(--display); color: var(--owl); }

/* ---------- материалы ---------- */
.acc { background: var(--surface); border-radius: 14px; margin-bottom: 8px; overflow: hidden; }
.acc summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; font-weight: 600; }
.acc summary::-webkit-details-marker { display: none; }
.acc .n { font: 700 13px var(--display); color: var(--hint); }
.vid { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 12px 16px; border-top: 1.5px dashed var(--stitch); font-size: 15px; }
.vid .play { width: 28px; height: 28px; border-radius: 50%; background: var(--owl); color: #2B1504; display: grid; place-items: center; font-size: 11px; flex: none; }
.xray img { width: 100%; border-radius: 10px; margin-top: 8px; background: #000; }
.sims { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sim { background: var(--surface); border-radius: 14px; padding: 8px; font-size: 14px; font-weight: 600; }
.sim img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; margin-bottom: 6px; }

/* ---------- лист выбора ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 30; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; background: var(--bg); border-radius: 22px 22px 0 0; padding: 20px 16px calc(18px + var(--safe-b)); z-index: 31; max-width: 640px; margin: 0 auto; animation: slide .25s cubic-bezier(.2,.9,.3,1); }
@keyframes slide { from { transform: translateY(100%); } }
.note { font-size: 14px; color: var(--hint); border: 1.5px dashed var(--stitch); border-radius: 12px; padding: 10px 12px; margin: 12px 0; }

.toast { position: fixed; left: 50%; bottom: calc(90px + var(--safe-b)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 40; max-width: 88vw; text-align: center; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* благодарность автору видео */
.credit { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0 16px; border-bottom: 2px dashed var(--line); font-size: 15px; line-height: 1.4; }
.credit img { width: 64px; height: 64px; object-fit: contain; flex: none; }
.credit .link { margin-top: 6px; padding: 0; background: none; border: 0; color: var(--scrub); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.dark .credit .link { color: var(--owl); }

/* ---------- дуэли ---------- */
.bottom-bar .inner.col { flex-direction: column; gap: 6px; }
.blades { width: 64px; height: 64px; color: #fff; display: block; }
.ring { margin: 0 -16px; padding: 22px 20px 26px; background: var(--scrub); color: var(--on-scrub); border-radius: 0 0 26px 26px;
  position: relative; text-align: center; }
.ring::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 9px; border-bottom: 2px dashed rgba(255,255,255,.35); }
.ring .blades { margin: 0 auto 4px; width: 72px; height: 72px; }
.ring h1 { margin: 0 0 6px; color: inherit; font-size: 30px; }
.ring p { margin: 0 auto; font-size: 15px; opacity: .88; max-width: 32ch; }
.ring .as { margin-top: 14px; font-size: 14px; opacity: .85; }
.tally { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0 0; }
.tally div { padding: 2px 0; }
.tally div + div { border-left: 2px dashed rgba(255,255,255,.3); }
.tally b { display: block; font: 700 30px/1.1 var(--display); }
.tally div:first-child b { color: var(--owl); }
.tally span { font-size: 13px; opacity: .8; }
.duel-cta { display: grid; gap: 10px; margin: 18px 0 8px; }
.bout { display: flex; align-items: center; gap: 12px; padding: 12px 0; width: 100%; text-align: left; background: none; border: 0; color: inherit; }
.bout + .bout { border-top: 1.5px dashed var(--line); }
.bout::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--line); }
.bout.win::before, .bout.play::before, .bout.invite::before { background: var(--owl); }
.bout.loss::before { background: var(--bad); }
.bout.wait::before { background: var(--scrub); }
.bout .t { font-weight: 600; }
.bout .s { font-size: 13px; color: var(--hint); }
.bout .sc { font: 700 20px/1 var(--display); white-space: nowrap; }
.bout .sc i { font-style: normal; color: var(--hint); margin: 0 3px; }
.bout .go { font-size: 22px; color: var(--hint); }
.howto { margin: 0 0 10px; padding-left: 22px; line-height: 1.45; }
.howto li { margin: 6px 0; }
/* поединок */
.vsbar { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; gap: 8px; margin: 2px 0 14px; font-weight: 600; }
.vsbar .me { text-align: right; color: var(--owl); font-family: var(--display); }
.vsbar .op { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vsbar .blades { width: 44px; height: 44px; color: var(--ink); opacity: .75; }
.pips { display: flex; gap: 6px; align-items: center; }
.pips i { width: 28px; height: 6px; border-radius: 3px; background: var(--line); }
.pips i.done { background: var(--scrub); }
.pips i.cur { background: var(--owl); }
.pips .clock { margin-left: auto; font: 700 18px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--owl); }
.duel-score { text-align: center; margin: 18px 0 10px; }
.duel-score .n { font: 700 64px/1 var(--display); color: var(--owl); }
.duel-score .n small { font-size: 28px; color: var(--hint); }
.lead { font-size: 16px; line-height: 1.45; }
.verdict-card { margin: 0 -16px; padding: 18px 20px 28px; border-radius: 0 0 26px 26px; background: var(--scrub); color: #fff; text-align: center; position: relative; }
.verdict-card::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 9px; border-bottom: 2px dashed rgba(255,255,255,.35); }
.verdict-card.loss { background: #3A2E2B; }
.verdict-card.draw { background: #24484A; }
.verdict-card .blades { margin: 0 auto; width: 52px; height: 52px; }
.verdict-card .word { font: 700 36px/1.1 var(--display); margin: 6px 0 14px; }
.verdict-card.win .word { color: var(--owl); }
.verdict-card .board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.verdict-card .board > i { font: 700 30px var(--display); font-style: normal; opacity: .5; }
.verdict-card .board span { display: block; font-size: 14px; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verdict-card .board b { display: block; font: 700 46px/1.05 var(--display); }
.verdict-card .board small { font-size: 13px; opacity: .75; }
.verdict-card .board.by-time small { font: 700 17px/1.3 var(--display); opacity: .6; }
.verdict-card .board .fast small { opacity: 1; color: var(--owl); }
.verdict-card.loss .board .fast small { color: #fff; }
.verdict-card .board .fast small::before { content: "⏱ "; }
.verdict-card .sub { margin-top: 14px; font-size: 14px; opacity: .9; }
.review .rv { border-bottom: 1.5px dashed var(--line); }
.review summary { display: flex; gap: 12px; padding: 12px 0; cursor: pointer; list-style: none; line-height: 1.4; }
.review summary::-webkit-details-marker { display: none; }
.review .marks { display: flex; gap: 4px; flex: none; padding-top: 3px; }
.review .marks i { width: 16px; height: 16px; border-radius: 5px; }
.review .marks i.y { background: var(--ok); }
.review .marks i.n { background: var(--bad); opacity: .8; }
.review .ans { padding: 0 0 12px 48px; line-height: 1.45; }
.pills.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pills.amounts .pill { text-align: center; padding: 10px 4px; }
