/* pisco — дань vetements + сфера Рейны. Две темы, сайт и Telegram Mini App. */
@font-face { font-family: 'PiscoCond'; font-weight: 700; font-display: swap; src: url('fonts/roboto-condensed-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: 'PiscoCond'; font-weight: 700; font-display: swap; src: url('fonts/roboto-condensed-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+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --font: 'Helvetica Neue', Helvetica, 'Inter Tight', Arial, sans-serif;
  --violet: #8b3dff;
  --magenta: #e0198f;
  --cta: linear-gradient(100deg, #e0198f 0%, #8b3dff 100%);
  --pad: clamp(16px, 4vw, 40px);
  --shell: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --tabbar: 0px;
}
[data-theme='light'] {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f3f3f4; --ink: #000000; --muted: #6e6e73; --line: #e3e3e6; --rule: #000000;
  --chip: #000000; --chip-ink: #ffffff; --win: #0a8f4e; --loss: #d0103a; --scrim: rgba(255, 255, 255, .4);
  --btn: #000000; --btn-ink: #ffffff; --accent: #7a1cff;
}
[data-theme='dark'] {
  --bg: #0c0c0e; --surface: #151518; --surface-2: #1d1d21; --ink: #f4f4f5; --muted: #8e8e96; --line: #26262c; --rule: #2e2e35;
  --chip: #f4f4f5; --chip-ink: #0c0c0e; --win: #2fd27f; --loss: #ff4d6a; --scrim: rgba(12, 12, 14, .45);
  --btn: var(--cta); --btn-ink: #ffffff; --accent: #a774ff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html, body { overflow-x: clip; margin: 0; color: var(--ink); font-family: var(--font); }
body { background: var(--bg); font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }

/* Защита от копирования */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea { -webkit-user-select: text; user-select: text; }
img { -webkit-user-drag: none; pointer-events: none; }
@media print { body { display: none !important; } }

/* ── Шапка ─────────────────────────────────────────── */
.mast { padding-top: 14px; }
.mast-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.logo {
  display: block; text-decoration: none; font-weight: 900; line-height: .74; white-space: nowrap;
  font-size: min(calc((min(100vw, var(--shell)) - 2 * var(--pad)) / 2.78), 40vh); letter-spacing: -.065em; margin-left: -.045em; padding-top: .06em;
}
.theme { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; margin-top: 4px; }
.theme svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
[data-theme='dark'] .i-sun, [data-theme='light'] .i-moon { display: none; }
.mast-row { position: sticky; top: 0; z-index: 10; margin-top: 12px; background: var(--bg); border-bottom: 1px solid var(--rule); }
.row-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 12px; }
.nav { display: flex; gap: clamp(14px, 3vw, 32px); overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a[aria-current='page'] { border-color: var(--ink); }
.out { font-size: 13px; color: var(--muted); white-space: nowrap; }
.out:hover { color: var(--ink); }
body.in-tg .site-only { display: none; }

/* Приветствие и полоска показателей (как в референсе) */
.hello { margin-top: 14px; }
.hello-hi { margin: 0; color: var(--muted); font-size: 15px; }
.hello-hi b { color: var(--ink); font-weight: 800; }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.strip div { padding: 12px 14px; min-width: 0; }
.strip div + div { border-left: 1px solid var(--line); }
.strip span { display: block; color: var(--muted); font-size: 12px; }
.strip b { display: block; font-size: 19px; font-weight: 800; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip .pos { color: var(--win); } .strip .neg { color: var(--loss); }

/* Нижняя панель вкладок — Mini App и телефон */
.tabbar { display: none; }
@media (max-width: 760px) { :root { --tabbar: 68px; } }
body.in-tg { --tabbar: 68px; }
body.in-tg .tabbar, .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; }
@media (max-width: 760px) {
  .tabbar { display: grid; }
  .mast-row { display: none; }
}
body.in-tg .tabbar { display: grid; }
body.in-tg .mast-row { display: none; }
.tabbar {
  grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
}
.tabbar a { position: relative; display: grid; justify-items: center; gap: 3px; padding: 8px 0 4px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600; }
.tabbar svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current='page'] { color: var(--ink); }
.tabbar a[aria-current='page'] svg { stroke: var(--accent); }
.tabbar a[aria-current='page']::before { content: ''; position: absolute; top: -7px; left: 50%; transform: translateX(-50%); width: 30px; height: 3px; border-radius: 3px; background: var(--cta); }
body.in-tg .logo { font-size: 64px; line-height: .8; }
@media (max-width: 760px) { .logo { font-size: 64px; line-height: .8; } }

main { padding-bottom: calc(64px + var(--tabbar)); }

/* ── Футер и посвящение VETEMENTS ──────────────────── */
.foot { border-top: 1px solid var(--line); padding: 32px 0 calc(40px + var(--tabbar)); color: var(--muted); font-size: 13px; }
.tribute { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; padding-bottom: 28px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.tribute:not(:has(figure:not([hidden]))) { grid-template-columns: 1fr; }
.tribute-photo { margin: 0; width: 160px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 14px; background: var(--surface-2); }
.tribute-photo img { width: 100%; height: 100%; object-fit: cover; }
.tribute .tribute-big { margin: 0 0 10px; color: var(--ink); font-weight: 900; font-size: clamp(30px, 6vw, 64px); letter-spacing: -.045em; line-height: .95; }
.tribute p { max-width: 56ch; margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
.tribute-note { font-size: 12px !important; }
@media (max-width: 560px) { .tribute { grid-template-columns: 1fr; } .tribute-photo { width: 100%; max-width: 280px; } }
.legal { margin: 0; max-width: 60ch; }
.foot-out { margin-top: 14px; text-decoration: underline; color: var(--muted); font-size: 13px; }

/* ── Заголовок раздела ─────────────────────────────── */
.head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 28px 0 10px; border-bottom: 1px solid var(--line); }
.head h1 { margin: 0; font-size: clamp(30px, 6vw, 60px); font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.head .meta { color: var(--muted); font-size: 14px; text-align: right; }
.lead { font-size: 17px; max-width: 62ch; margin: 16px 0 0; }

/* ── Карточка прогноза = вещь из дропа ─────────────── */
.item { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); padding: 36px 0; border-bottom: 1px solid var(--rule); }
.item-no { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.leg + .leg { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line); }
.leg-meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.league { color: var(--chip-ink); background: var(--chip); font-weight: 800; font-size: 11px; padding: 3px 7px; border-radius: 4px; }
.league.khl { background: var(--violet); color: #fff; }
.match { margin: 10px 0 0; font-weight: 900; text-transform: uppercase; letter-spacing: -.035em; line-height: .92; font-size: clamp(32px, 6vw, 68px); overflow-wrap: anywhere; }
.match .vs { display: block; font-size: .3em; letter-spacing: 0; font-weight: 500; color: var(--muted); text-transform: none; margin: .3em 0; }
.crest { display: inline-grid; place-items: center; font-size: .26em; width: 2.9em; height: 2.9em; vertical-align: .62em; margin-right: .55em; background: var(--chip); color: var(--chip-ink); font-weight: 900; letter-spacing: -.02em; line-height: 1; border-radius: .5em; overflow: hidden; }
.crest img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.market { margin-top: 14px; font-size: 17px; font-weight: 700; }
.market small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 2px; }
.summary { font-size: 16px; line-height: 1.5; max-width: 60ch; margin: 18px 0 0; }

.buy { display: flex; flex-direction: column; gap: 16px; }
.price { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.price .k { font-size: clamp(48px, 7vw, 76px); font-weight: 900; letter-spacing: -.05em; line-height: .85; }
.price .note { color: var(--muted); font-size: 13px; text-align: right; }
.sizes { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); border-radius: 12px; overflow: hidden; }
.sizes span { text-align: center; padding: 11px 0; font-weight: 700; font-size: 14px; color: var(--muted); opacity: .6; }
.sizes span + span { border-left: 1px solid var(--ink); }
.sizes span.on { background: var(--ink); color: var(--bg); opacity: 1; }
.stake { font-size: 14px; color: var(--muted); margin: -6px 0 0; }
.stake b { color: var(--ink); }

.btn { display: block; width: 100%; padding: 16px; border-radius: 14px; background: var(--btn); color: var(--btn-ink); font-weight: 800; font-size: 15px; text-align: center; transition: filter .15s, transform .1s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.985); }
.btn.placed, .btn:disabled { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn:disabled { color: var(--muted); cursor: default; }
[data-theme='dark'] .btn:not(.placed):not(:disabled) { box-shadow: 0 10px 30px -12px rgba(224, 25, 143, .55); }

/* Ярлык состава — как на одежде */
.label { border: 1px solid var(--ink); border-radius: 12px; padding: 14px 14px 12px; font-size: 13px; line-height: 1.5; background: var(--surface); }
.label .brand { display: flex; justify-content: space-between; font-weight: 900; font-size: 15px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); margin-bottom: 8px; }
.label dl { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin: 0; }
.label dt { color: var(--muted); }
.label dd { margin: 0; font-weight: 700; text-align: right; }
.label .value { color: var(--accent); }
.label .care { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); }
.dots { letter-spacing: 2px; }

.result { padding: 12px 14px; border-radius: 12px; font-weight: 800; color: #fff; background: #555; }
.result.win, .result.half_win { background: var(--win); color: #04140b; }
.result.loss, .result.half_loss { background: var(--loss); }
.result p { margin: 6px 0 0; font-weight: 400; font-size: 14px; line-height: 1.45; }

.more { grid-column: 1 / -1; border-top: 1px solid var(--line); }
.more > button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px 0 4px; font-weight: 800; font-size: 16px; }
.more > button .pm { position: relative; width: 14px; height: 14px; }
.more > button .pm::before, .more > button .pm::after { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.more > button .pm::after { transform: rotate(90deg); }
.more[data-open] > button .pm::after { transform: rotate(0); }
.more-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.more[data-open] .more-body { grid-template-rows: 1fr; }
.more-body > div { overflow: hidden; }
.sects { columns: 2 320px; column-gap: 48px; padding: 14px 0 6px; }
.sect { break-inside: avoid; margin: 0 0 22px; }
.sect h3 { margin: 0 0 6px; font-size: 14px; font-weight: 800; }
.sect p { margin: 0; font-size: 15px; line-height: 1.55; white-space: pre-line; }
.sect.conclusion { background: var(--surface-2); padding: 14px; border-radius: 12px; }
.sect a { color: var(--accent); }

/* Карточки как в референсе — Mini App и телефон */
@media (max-width: 760px) {
  .item { grid-template-columns: 1fr; gap: 18px; padding: 18px; margin: 16px 0; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
  .match { font-size: clamp(28px, 9vw, 40px); }
}
body.in-tg .item { grid-template-columns: 1fr; gap: 18px; padding: 18px; margin: 16px 0; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
body.in-tg .match { font-size: clamp(28px, 9vw, 40px); }

/* ── Нет ставки: штамп ─────────────────────────────── */
.soldout { padding: 40px 0 36px; border-bottom: 1px solid var(--rule); }
.soldout .stamp { display: inline-block; font-weight: 900; font-size: clamp(52px, 13vw, 150px); line-height: .82; letter-spacing: -.06em; color: var(--chip-ink); background: var(--chip); padding: .06em .12em .1em; }
.soldout p { font-size: 18px; max-width: 56ch; margin: 22px 0 0; }

.block { padding: 28px 0; border-bottom: 1px solid var(--line); }
.block h2 { margin: 0 0 14px; font-size: 22px; font-weight: 900; letter-spacing: -.02em; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows .sub { color: var(--muted); font-size: 14px; }
.upd time { display: block; color: var(--muted); font-size: 13px; }

.orders { list-style: none; padding: 0; margin: 0; }
.orders a { display: grid; grid-template-columns: 7ch minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.orders .d { color: var(--muted); font-size: 14px; }
.orders .t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orders .r { font-weight: 800; font-size: 14px; }
.r.win { color: var(--win); } .r.loss { color: var(--loss); } .r.wait, .r.void { color: var(--muted); }

.figures { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 22px; }
@media (max-width: 700px) { .figures { grid-template-columns: repeat(2, 1fr); } }
.fig { border: 1px solid var(--line); border-radius: 18px; padding: 14px; min-width: 0; background: var(--surface); }
.fig .n { font-size: clamp(26px, 5vw, 46px); font-weight: 900; letter-spacing: -.04em; line-height: 1; white-space: nowrap; }
.fig .c { color: var(--muted); font-size: 13px; margin-top: 6px; }
.fig .n.pos, .pos { color: var(--win); } .fig .n.neg, .neg { color: var(--loss); }
.curve { width: 100%; height: 220px; display: block; margin-top: 8px; }
.grid-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.grid-table th, .grid-table td { padding: 11px 10px; text-align: right; border-bottom: 1px solid var(--line); }
.grid-table tr:last-child td { border-bottom: 0; }
.grid-table th:first-child, .grid-table td:first-child { text-align: left; }
.grid-table th { font-weight: 700; color: var(--muted); font-size: 13px; background: var(--surface-2); }

.press { display: grid; grid-template-columns: 7ch minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.press .d { color: var(--muted); font-size: 14px; }
.press h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.press ul { margin: 10px 0 0; padding-left: 18px; }
.press a { color: var(--accent); }
.trios { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.trio { padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.trio b { display: block; font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.trio .who { font-weight: 800; font-size: 17px; line-height: 1.25; }
.hint { color: var(--muted); font-size: 13px; }
.meter { display: inline-block; width: 64px; height: 6px; border-radius: 3px; background: var(--line); vertical-align: middle; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ink); width: 0; }
.meter.up i { background: var(--cta); }

.form { display: grid; gap: 14px; max-width: 420px; margin-top: 18px; }
.field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.field input { width: 100%; font: 700 22px var(--font); color: var(--ink); padding: 12px 0; border: 0; border-bottom: 2px solid var(--ink); background: none; border-radius: 0; }
.field input:focus { outline: none; border-color: var(--accent); }

.empty { padding: 44px 0; font-size: 18px; max-width: 48ch; }
.empty small { display: block; color: var(--muted); font-size: 14px; margin-top: 8px; }
.skeleton { height: 220px; border-radius: 22px; background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface)); background-size: 200% 100%; animation: sk 1.2s linear infinite; margin-top: 28px; }
@keyframes sk { to { background-position: -200% 0; } }

#toast { position: fixed; left: 50%; bottom: calc(24px + var(--tabbar) + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 14px; transition: .3s var(--ease); pointer-events: none; z-index: 60; max-width: 90vw; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── Вход: сфера Рейны, замок, размытый фон ────────── */
#app { transition: filter .7s var(--ease), transform .7s var(--ease); }
body.locked #app { filter: blur(22px) saturate(.6); transform: scale(1.03); pointer-events: none; }
body.locked { overflow: hidden; }
#gate { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: var(--scrim); transition: opacity .6s var(--ease), visibility .6s; }
body:not(.locked) #gate { opacity: 0; visibility: hidden; }
.gate-card { width: min(360px, 100%); text-align: center; }
.orb { position: relative; width: 168px; height: 168px; margin: 0 auto 18px; display: grid; place-items: center; }
.orb::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #c79bff 0%, #7a1cff 38%, #e0198f 70%, transparent 72%); filter: blur(14px); opacity: .9; animation: breathe 3.6s ease-in-out infinite; }
.orb::after { content: ''; position: absolute; inset: 22px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); animation: ring 3.6s ease-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: 1; } }
@keyframes ring { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.lock { position: relative; width: 74px; color: var(--ink); overflow: visible; }
.lock .sclera { fill: var(--bg); }
.lock .shackle { transition: transform .55s var(--ease); transform-origin: 86px 64px; }
.lock .iris { transform-box: fill-box; transform-origin: center; animation: look 5s ease-in-out infinite; }
@keyframes look { 0%, 40%, 100% { transform: translateX(0); } 50% { transform: translateX(-6px); } 70% { transform: translateX(6px); } }
body.unlocking .lock .shackle { transform: translateY(-14px) rotate(18deg); }
body.unlocking .orb::before { animation: burst .7s var(--ease) forwards; }
@keyframes burst { to { transform: scale(2.4); opacity: 0; } }
.shake { animation: shake .42s; }
@keyframes shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
.gate-title { margin: 0; font-size: 46px; font-weight: 900; letter-spacing: -.06em; line-height: 1; }
.gate-sub { margin: 6px 0 22px; color: var(--muted); font-size: 14px; }
.gate-form { display: grid; gap: 12px; }
.gate-form input#pw { width: 100%; padding: 15px 14px; font: 700 17px var(--font); color: var(--ink); border: 1px solid var(--ink); background: var(--surface); border-radius: 14px; text-align: center; }
.gate-hint { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.code input { width: 100%; aspect-ratio: 3 / 4; text-align: center; font: 900 26px var(--font); color: var(--ink); border: 1px solid var(--ink); border-radius: 12px; background: var(--surface); padding: 0; }
.code input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.link { color: var(--muted); font-size: 14px; text-decoration: underline; padding: 6px; }
.gate-err { min-height: 20px; margin: 14px 0 0; color: var(--loss); font-size: 14px; font-weight: 700; }
.gate-tribute { margin: 18px 0 0; color: var(--muted); font-size: 12px; letter-spacing: .02em; }

body.revealed .logo { animation: rise .9s var(--ease) both; }
@keyframes rise { from { transform: translateY(18%); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 761px) { body:not(.in-tg) .hello { display: none !important; } }

/* ═══ vetements-проход: узкий гротеск, строчные бренды, фон, календарь, переходы ═══ */
:root { --display: 'HelveticaNeue-CondensedBold', 'Helvetica Neue Condensed Bold', 'PiscoCond', 'Arial Narrow', sans-serif; }
.logo, .head h1, .match, .price .k, .tribute .tribute-big, .soldout .stamp, .gate-title, .fig .n, .block h2, .cal-month h2, .cal-day .n, .strip b {
  font-family: var(--display); font-weight: 700; font-stretch: condensed;
}
.logo { letter-spacing: -.035em; line-height: .78; font-size: min(calc((min(100vw, var(--shell)) - 2 * var(--pad)) / 2.05), 40vh); }
body.in-tg .logo { font-size: 64px; }
@media (max-width: 760px) { .logo { font-size: 64px; } }
.head h1, .block h2 { text-transform: lowercase; letter-spacing: -.01em; }
.head h1 { font-size: clamp(36px, 7vw, 72px); }
.match { letter-spacing: -.01em; line-height: .95; }
.price .k { letter-spacing: -.02em; }
.gate-title { font-size: 56px; letter-spacing: -.02em; }
.gate-tribute { font-family: var(--display); font-stretch: condensed; font-size: 14px; letter-spacing: .02em; }

/* Фон: серые надписи vetements, только в тёмной теме */
.bgwords { position: fixed; inset: -10vh -10vw; z-index: 0; pointer-events: none; overflow: hidden; display: none; transform: rotate(-8deg); }
[data-theme='dark'] .bgwords { display: block; }
.bgrow { white-space: nowrap; font-family: var(--display); font-weight: 700; font-stretch: condensed; font-size: clamp(64px, 11vw, 150px); line-height: 1.02; color: #141417; letter-spacing: -.01em; }
.bgrow.alt { margin-left: -1.6em; color: #121215; }
#app { position: relative; z-index: 1; }
[data-theme='dark'] .mast-row { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* Посвящение — минимально */
.tribute { grid-template-columns: 220px minmax(0, 1fr); align-items: end; }
.tribute-photo { width: 220px; aspect-ratio: 4 / 5; border-radius: 16px; }
.tribute .tribute-big { font-size: clamp(44px, 9vw, 96px); letter-spacing: -.02em; line-height: .85; margin-bottom: 12px; color: var(--ink); }
.tribute p { font-size: 14px; margin: 0 0 4px; }
@media (max-width: 560px) { .tribute { grid-template-columns: 1fr; } .tribute-photo { width: 100%; max-width: none; aspect-ratio: 4 / 5; } }

/* Плавные переходы между вкладками */
#view { transition: opacity .16s ease, transform .16s ease; }
#view.out { opacity: 0; transform: translateY(6px); }
#view.in > * { animation: viewIn .38s var(--ease) both; }
#view.in > *:nth-child(2) { animation-delay: .03s; }
#view.in > *:nth-child(3) { animation-delay: .06s; }
#view.in > *:nth-child(n+4) { animation-delay: .09s; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }

/* Эмблемы */
.crest.img { background: transparent; border-radius: 0; }
.crest.img img { background: transparent; }

/* История — календарь по месяцам */
.back { display: inline-block; margin-top: 18px; color: var(--muted); text-decoration: none; font-size: 14px; }
.back:hover { color: var(--ink); }
body.in-tg .back { display: none; }
.cal-month { margin: 26px 0 8px; }
.cal-month header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.cal-month h2 { margin: 0; font-size: clamp(30px, 5vw, 44px); line-height: 1; }
.cal-month h2 span { color: var(--muted); }
.cal-sum { font-weight: 800; font-size: 15px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dow { text-align: center; color: var(--muted); font-size: 11px; padding-bottom: 2px; }
.cal-day { position: relative; aspect-ratio: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 7px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: transform .15s var(--ease), border-color .15s; }
a.cal-day:hover { transform: translateY(-2px); border-color: var(--ink); }
a.cal-day:active { transform: scale(.96); }
.cal-day .n { font-size: clamp(16px, 3vw, 24px); line-height: 1; }
.cal-day .m { font-size: clamp(9px, 1.8vw, 12px); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-day.none { background: transparent; border-color: transparent; color: var(--muted); opacity: .45; }
.cal-day.win { background: color-mix(in srgb, var(--win) 20%, var(--surface)); border-color: color-mix(in srgb, var(--win) 55%, transparent); }
.cal-day.win .m { color: var(--win); }
.cal-day.loss { background: color-mix(in srgb, var(--loss) 18%, var(--surface)); border-color: color-mix(in srgb, var(--loss) 55%, transparent); }
.cal-day.loss .m { color: var(--loss); }
.cal-day.wait { border-color: var(--accent); }
.cal-day.wait .m { color: var(--accent); }
.cal-day.nobet .m, .cal-day.flat .m { color: var(--muted); }
.cal-day.today::after { content: ''; position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--cta); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; color: var(--muted); font-size: 13px; margin: 18px 0 0; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; border: 1px solid var(--line); }
.lg.win { background: var(--win); } .lg.loss { background: var(--loss); } .lg.wait { border-color: var(--accent); } .lg.nobet { background: var(--surface-2); }
@media (max-width: 420px) { .cal-grid { gap: 4px; } .cal-day { border-radius: 10px; padding: 5px 6px; } }

.strip b.form { font-size: 15px; letter-spacing: 2px; padding-top: 3px; }
.cal-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 8px 48px; }
@media (min-width: 761px) { body:not(.in-tg) .logo { flex: 1 1 auto; text-align: center; margin-left: 0; padding-left: 52px; } }
.soon { display: flex; flex-direction: column; align-items: center; padding: 56px 0 14px; font-family: var(--display); font-weight: 700; font-stretch: condensed; font-size: clamp(40px, 8vw, 68px); line-height: 1.02; letter-spacing: .005em; text-align: center; }
.soon span:nth-child(2) { color: var(--accent); }
.soon-note { text-align: center; color: var(--muted); font-size: 14px; margin: 8px 0 40px; }
.mast-actions { display: flex; gap: 8px; flex: 0 0 auto; }
a.theme { text-decoration: none; }
.devs { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.devs li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.devs li.off { opacity: .45; }
.dev-ico { font-size: 20px; text-align: center; }
.devs .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.tag-now { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 800; color: #fff; background: var(--violet); vertical-align: 1px; }
.btn-mini { padding: 9px 12px; border-radius: 10px; font-weight: 800; font-size: 13px; color: var(--loss); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--loss) 50%, transparent); }
.btn.ghost-danger { background: transparent; color: var(--loss); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--loss) 50%, transparent); }
.story { margin: 26px 0 8px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.story-title { margin: 0 0 10px; font-family: var(--display); font-weight: 700; font-stretch: condensed; font-size: clamp(30px, 5.5vw, 52px); line-height: .98; letter-spacing: -.005em; }
.story-lead { font-size: 18px; font-weight: 700; line-height: 1.45; margin: 0 0 14px; max-width: 62ch; }
.story p { max-width: 64ch; font-size: 16px; line-height: 1.6; margin: 0 0 12px; }
.story-next, .story-inj { margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--surface-2); display: grid; gap: 6px; }
.story-next b { font-size: 18px; }
.story .sub { color: var(--muted); font-size: 13px; }
.story-src { font-size: 13px !important; color: var(--muted); }
.story-src a { color: var(--accent); }
.cal-day.none.today { opacity: 1; border: 1px dashed var(--accent); background: transparent; color: var(--ink); }

/* Смотрели, но не взяли: по лигам, причина — отдельной строкой, цифры — мелко */
.skipped .skip-lg { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 18px 0 4px; font-weight: 600; }
.skipped .why { margin-top: 4px; font-size: 15px; line-height: 1.4; }
.skipped .why::before { content: '✕ '; color: var(--muted); }
.skipped .num { margin-top: 4px; font-size: 13px; font-variant-numeric: tabular-nums; }

.rv { border-top: 1px solid var(--line); padding: 10px 0; }
.rv summary { cursor: pointer; list-style: none; }
.rv summary::-webkit-details-marker { display: none; }
.rv .why::before { content: ''; }

/* ── Карусель ставок: свайп, стрелки ← →, точки ── */
.car { margin: 8px 0 28px; }
.car-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0 4px; }
.car-label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.car-ctl { display: flex; align-items: center; gap: 10px; }
.car-count { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--muted); min-width: 44px; text-align: center; }
.car-count b { color: var(--ink); }
.car-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: transform .15s var(--ease), border-color .15s, background .15s; -webkit-tap-highlight-color: transparent; }
.car-btn:hover { border-color: var(--ink); }
.car-btn:active { transform: scale(.92); }
.car-btn:focus-visible, .car-dots button:focus-visible, .car-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.car-track { display: flex; gap: 16px; align-items: flex-start; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.car-track::-webkit-scrollbar { display: none; }
.car-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.car-slide .item, .car.single .item { border-bottom: 0; }
.car-slide > .item { margin-top: 8px; margin-bottom: 0; }
.car-dots { display: flex; justify-content: center; gap: 8px; padding-top: 14px; }
.car-dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: var(--line); cursor: pointer; transition: width .25s var(--ease), background .25s; }
.car-dots button.on { width: 24px; background: var(--ink); }
@media (prefers-reduced-motion: reduce) { .car-track { scroll-behavior: auto; } }
.car-track { transition: height .3s var(--ease); }
.rt { text-align: right; }

/* ── Новости: ссылка со «Сегодня», чипсы разделов, лента инсайдеров ── */
.news-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 8px 0 24px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s var(--ease); }
.news-link:hover { border-color: var(--ink); }
.news-link:active { transform: scale(.98); }
.news-link b { display: block; font-size: 17px; }
.news-link small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; }
.news-link .arr { font-size: 22px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 14px; margin-bottom: 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; height: 38px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s, border-color .15s; -webkit-tap-highlight-color: transparent; }
.chip[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sec > .block:first-child { margin-top: 4px; }
.feed { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.post { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.post-h { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.post-h b { font-size: 14px; }
.post-h .lvl { color: var(--muted); }
.post.lvl-A .post-h .lvl { color: var(--ink); }
.post-h time { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.post p { margin: 8px 0 0; font-size: 15px; line-height: 1.45; white-space: pre-line; }
.post details > summary { list-style: none; cursor: pointer; }
.post details > summary::-webkit-details-marker { display: none; }
.post details[open] .more-t { display: none; }
.post .more-t { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--accent); }
.post details[open] summary p::after { content: ''; }
.post-a { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--muted); text-decoration: none; }
.post-a:hover { color: var(--ink); }
.post.lvl-C { opacity: .75; }
.post-h { flex-wrap: nowrap; min-width: 0; }
.post-h b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-h .lvl, .post-h time { flex: 0 0 auto; white-space: nowrap; }
.crest:not(.img) { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 18%, transparent); }

/* ── Банк: ссылка в шапке и плашка ── */
.mast-end { display: flex; align-items: center; gap: 18px; }
.bank-link { font-size: 13px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.bank-link:hover, .bank-link[aria-current='page'] { color: var(--ink); }
.strip a.strip-bank { padding: 12px 14px; min-width: 0; color: inherit; text-decoration: none; border-radius: 18px 0 0 18px; transition: background .15s; }
.strip a.strip-bank:active { background: var(--surface-2); }
.strip a.strip-bank + div { border-left: 1px solid var(--line); }
@media (max-width: 760px) { .mast-end .bank-link { display: none; } }
body.in-tg .mast-end .bank-link { display: none; }

/* ── Новости по лигам: карточка матча ── */
.chip .cnt { margin-left: 7px; font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; }
.lg-sum { color: var(--muted); font-size: 14px; margin: 2px 0 12px; }
.lg-sum b { color: var(--ink); }
.mcards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); align-items: start; }
.mcard { padding: 16px 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); min-width: 0; }
.mcard.pick { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent) inset; }
.mc-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.mc-time { font-variant-numeric: tabular-nums; }
.mc-badge { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.mc-badge.pick { background: var(--cta); color: #fff; }
.mc-teams { margin: 10px 0 6px; display: grid; gap: 6px; font-size: 19px; font-weight: 800; line-height: 1.15; }
.mc-teams > span { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mc-teams .crest { width: 30px; height: 30px; font-size: 10px; flex: 0 0 auto; }
.mc-pick { margin: 6px 0 0; font-size: 15px; }
.mc-why { margin: 8px 0 0; font-size: 15px; line-height: 1.45; }
.mc-num { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); font-variant-numeric: tabular-nums; }
.mc-exp { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.mc-exp b { color: var(--ink); font-variant-numeric: tabular-nums; }
.mc-more { margin-top: 12px; display: grid; gap: 6px; }
.mc-more details { border-top: 1px solid var(--line); }
.mc-more summary { list-style: none; cursor: pointer; padding: 10px 0 4px; font-size: 14px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; -webkit-tap-highlight-color: transparent; }
.mc-more summary::-webkit-details-marker { display: none; }
.mc-more summary::after { content: '+'; font-weight: 400; font-size: 20px; color: var(--muted); transition: transform .2s var(--ease); }
.mc-more details[open] summary::after { transform: rotate(45deg); }
.mc-body { padding: 4px 0 8px; }
.mc-team + .mc-team { margin-top: 12px; }
.mc-team > b { font-size: 14px; }
.mc-team ul, .mc-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.mc-team li, .mc-list li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.45; }
.mc-team li::before, .mc-list li::before { content: ''; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.mc-team li.pos::before, .mc-list li.pos::before { background: var(--win); }
.mc-team li.neg::before, .mc-list li.neg::before { background: var(--loss); }
.mc-eff { margin: 8px 0 0; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); font-size: 13px; line-height: 1.45; }
.mkt { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; margin-top: 6px; }
.mkt th { text-align: right; font-weight: 500; color: var(--muted); font-size: 11px; padding: 4px 0 6px 8px; }
.mkt th:first-child { text-align: left; padding-left: 0; }
.mkt td { text-align: right; padding: 7px 0 7px 8px; border-top: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.mkt td:first-child { text-align: left; padding-left: 0; white-space: normal; }
.mkt td small { display: block; color: var(--muted); font-size: 11px; white-space: normal; }
.mkt td i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; background: var(--line); vertical-align: middle; }
.mkt tr.took td i { background: var(--accent); } .mkt tr.edge td i { background: var(--win); } .mkt tr.dbl td i { background: #e0b400; } .mkt tr.no td { color: var(--muted); }
.mc-legs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mc-legs li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.mc-legs small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; margin-top: 2px; }
.mc-legs span { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mc-legs span b { display: block; color: var(--ink); }

/* ── Локо: борд карточек в цветах Рейны ── */
.reyna { --rv1: #2a0d4f; --rv2: #7a1cff; --rv3: #d21cff; }
.sc { position: relative; padding: 18px 18px 20px; border-radius: 22px; min-height: 220px; background:
  radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, #d21cff 22%, transparent) 0%, transparent 60%),
  radial-gradient(110% 80% at 0% 100%, color-mix(in srgb, #7a1cff 26%, transparent) 0%, transparent 65%),
  var(--surface); border: 1px solid color-mix(in srgb, #a774ff 35%, var(--line)); overflow: hidden; }
:root[data-theme='light'] .sc { background: radial-gradient(120% 90% at 100% 0%, #f6e3ff 0%, transparent 60%), radial-gradient(110% 80% at 0% 100%, #ece2ff 0%, transparent 65%), #fff; }
.sc-h { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.sc-ava { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; background: #fff; flex: 0 0 auto; }
.sc-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-tag { margin-left: auto; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, #c9a6ff 85%, var(--ink)); font-weight: 700; }
:root[data-theme='light'] .sc-tag { color: #6a1ad6; }
.sc h3 { margin: 14px 0 0; font-family: var(--display); font-weight: 700; font-stretch: condensed; font-size: clamp(24px, 4.6vw, 34px); line-height: 1.02; }
.sc p { margin: 10px 0 0; font-size: 16px; line-height: 1.55; max-width: 62ch; }
.sc .sc-when { color: var(--muted); font-size: 14px; }
.sc-inj, .sc-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.sc-inj li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--bg) 55%, transparent); }
.sc-inj span { font-size: 14px; } .sc-inj small { color: var(--muted); font-size: 13px; }
.sc-list li { padding-left: 14px; position: relative; font-size: 15px; line-height: 1.45; }
.sc-list li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: #b48cff; }
.reyna .car-dots button.on { background: linear-gradient(90deg, #d21cff, #7a1cff); }
.reyna .car-btn { border-color: color-mix(in srgb, #a774ff 45%, var(--line)); }
.loko-sum { margin-top: 8px; }
.lineup { display: grid; gap: 10px; }
.ln { padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.ln-k { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.ln-p { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-weight: 800; font-size: 17px; }
.ln.grp .ln-p span { padding: 6px 12px; border-radius: 99px; background: var(--surface-2); font-size: 15px; }
.ln.row .ln-p i { font-style: normal; color: var(--muted); font-weight: 400; }
.ln-n { margin: 10px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }

/* ── Календарь и страницы — по центру ── */
.cal-wrap { max-width: 620px; margin-inline: auto; }
.cal-legend { justify-content: center; text-align: center; }
.cal-month header { justify-content: space-between; }
.mc-teams .crest { margin: 0; vertical-align: 0; }
/* Live-плашка на карточке ставки */
.live { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 6px 12px 6px 10px; border-radius: 99px; background: var(--surface-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.live-score { font-family: var(--display); font-stretch: condensed; font-size: 20px; letter-spacing: .02em; }
.live-label { color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--loss); box-shadow: 0 0 0 0 color-mix(in srgb, var(--loss) 60%, transparent); animation: livePulse 1.6s infinite; }
.live.break .live-dot { background: #e0b400; animation: none; }
.live.final .live-dot { background: var(--muted); animation: none; }
.live.live { background: color-mix(in srgb, var(--loss) 12%, var(--surface-2)); }
@keyframes livePulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.venue { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.venue .sub { font-size: 12px; }
.mc-venue { margin-top: 8px; font-size: 13px; }
.trav { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 62ch; }
.trav b { color: var(--ink); font-weight: 700; }
/* Ожидаемые голы с мини-эмблемами вместо названий */
.xg { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; margin: 0 2px; }
.xg .crest { width: 22px; height: 22px; font-size: 8px; margin: 0; vertical-align: 0; border-radius: 6px; }
.xg b { color: var(--ink); font-variant-numeric: tabular-nums; }
.xg i { font-style: normal; color: var(--muted); }

/* Двойник: номера ног и большой плюс между ними */
.leg + .leg { border-top: 0; margin-top: 0; padding-top: 0; }
.plus { display: grid; place-items: center; width: 44px; height: 44px; margin: 14px 0; border-radius: 50%; background: var(--cta); color: #fff; font-size: 30px; font-weight: 300; line-height: 1; box-shadow: 0 6px 24px -8px #b026ff; }
.leg-n { font-family: var(--display); font-stretch: condensed; font-weight: 700; font-size: 18px; color: var(--ink); }

/* «Подробнее» — заметная кнопка, внутри — статья с красной строки */
.more { border-top: 0; margin-top: 8px; }
.more > button.more-btn { padding: 15px 20px; margin-top: 6px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); font-size: 16px; transition: background .2s, border-color .2s; }
.more > button.more-btn:hover { border-color: var(--accent); }
.more[data-open] > button.more-btn { background: var(--surface-2); }
.sects { columns: auto; display: grid; gap: 4px; padding: 16px 0 6px; max-width: 72ch; }
details.sect { margin: 0; border-bottom: 1px solid var(--line); break-inside: auto; }
details.sect > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-size: 15px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; -webkit-tap-highlight-color: transparent; }
details.sect > summary::-webkit-details-marker { display: none; }
details.sect > summary::after { content: '+'; font-weight: 300; font-size: 22px; color: var(--muted); transition: transform .2s var(--ease); }
details.sect[open] > summary::after { transform: rotate(45deg); }
.art { padding: 0 0 16px; }
.art p { margin: 0 0 10px; font-size: 17px; line-height: 1.65; text-indent: 1.6em; text-wrap: pretty; }
.sect.conclusion .art p { font-weight: 600; }
.trav { font-size: 15px; }

/* Перед матчем: итог выделен, подробности по нажатию */
.upds .upd { padding: 14px 0 14px 16px; border-left: 3px solid var(--line); margin: 10px 0; }
.upds .upd.go { border-left-color: var(--win); }
.upds .upd.stop { border-left-color: var(--loss); }
.upds .upd.info { border-left-color: var(--accent); }
.upds .upd.last { background: color-mix(in srgb, var(--accent) 7%, transparent); border-radius: 0 14px 14px 0; }
.upd-h { display: block; margin-top: 4px; font-size: 16px; line-height: 1.45; font-weight: 700; }
.upds details summary { cursor: pointer; margin-top: 6px; font-size: 13px; color: var(--accent); list-style: none; }
.upds details summary::-webkit-details-marker { display: none; }
.upds details p { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
details.sect > summary { padding-inline: 4px; }
.sect.conclusion { padding: 4px 16px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border-bottom: 0; margin-bottom: 6px; }
.lead-art p { text-indent: 0; font-size: 18px; font-weight: 600; }
/* Live — заметно: «в эфире 2:1 · 2-й период» */
.live { margin: 0 0 12px; padding: 8px 14px 8px 12px; font-size: 15px; }
.live.live { background: color-mix(in srgb, var(--loss) 16%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--loss) 45%, transparent); }
.live.break { border: 1px solid color-mix(in srgb, #e0b400 45%, transparent); }
.live-score { font-size: 24px; }
.live-label { color: var(--ink); opacity: .85; }
/* Мини-карточка ноги двойника */
.leg-card { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); overflow: hidden; }
.leg-card span { padding: 9px 10px; min-width: 0; }
.leg-card span + span { border-left: 1px solid var(--line); }
.leg-card small { display: block; font-size: 11px; color: var(--muted); }
.leg-card b { font-size: 17px; font-variant-numeric: tabular-nums; }
.leg-card .pos { color: var(--win); } .leg-card .neg { color: var(--loss); }
/* Состав: звено = номер + тройка + пара */
.ln-src { color: var(--muted); font-size: 14px; margin: 0 0 12px; line-height: 1.5; }
.lineup { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.ln { display: flex; gap: 14px; align-items: flex-start; }
.ln-no { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--cta); color: #fff; font-family: var(--display); font-stretch: condensed; font-weight: 700; font-size: 26px; }
.ln-main { min-width: 0; flex: 1; }
.ln .ln-p { font-size: 16px; gap: 4px 6px; }
.ln .ln-p span { padding: 0; background: none; }
.ln-k2 { margin-top: 10px; }
.ln-pair { font-weight: 700; color: color-mix(in srgb, var(--ink) 80%, var(--muted)); }
/* Хроника Локо календарём */
button.cal-day { font: inherit; color: inherit; cursor: pointer; text-align: left; }
.cal-day.game { padding: 5px 6px; }
.cal-day.game .g-cr { position: absolute; right: 5px; top: 5px; }
.cal-day.game .g-cr .crest { width: 20px; height: 20px; font-size: 7px; margin: 0; border-radius: 5px; vertical-align: 0; }
.cal-day.game .m i { font-style: normal; font-weight: 500; opacity: .6; margin-left: 3px; font-size: .85em; }
.cal-day.game.win { background: color-mix(in srgb, var(--win) 18%, var(--surface)); border-color: color-mix(in srgb, var(--win) 50%, transparent); }
.cal-day.game.loss { background: color-mix(in srgb, var(--loss) 15%, var(--surface)); border-color: color-mix(in srgb, var(--loss) 50%, transparent); }
.cal-day.game.win .m { color: var(--win); } .cal-day.game.loss .m { color: var(--loss); }
.cal-day.game.ot { border-style: dashed; }
.cal-day.game.sel { outline: 2px solid var(--accent); outline-offset: 1px; }
.game-card { max-width: 620px; margin: 14px auto 0; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.game-card.win { border-color: color-mix(in srgb, var(--win) 45%, var(--line)); } .game-card.loss { border-color: color-mix(in srgb, var(--loss) 45%, var(--line)); }
.gc-h { display: flex; align-items: center; gap: 12px; }
.gc-h .crest { width: 36px; height: 36px; margin: 0; font-size: 11px; vertical-align: 0; flex: 0 0 auto; }
.gc-h b { display: block; font-size: 16px; } .gc-h .sub { font-size: 13px; color: var(--muted); }
.gc-s { margin-left: auto; font-family: var(--display); font-stretch: condensed; font-weight: 700; font-size: 30px; }
.game-card p { margin: 10px 0 0; font-size: 15px; line-height: 1.5; }
.stake-big { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 14px 0 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); text-decoration: none; color: inherit; }
.stake-big span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.stake-big b { font-family: var(--display); font-stretch: condensed; font-weight: 700; font-size: 34px; line-height: 1; }
.stake-big small { width: 100%; font-size: 13px; color: var(--muted); }
.stake-big.none b { font-size: 22px; }
/* Разбор прогнозиста: без кнопок, сплошной текст */
.sects { gap: 0; max-width: 70ch; }
.art-sec { padding: 6px 0 4px; }
.art-sec h4, .art-final h4 { margin: 18px 0 10px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.art-final { margin-top: 18px; padding: 6px 20px 18px; border-radius: 18px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); }
.art-final h4 { color: var(--ink); }
.art-final .art p { font-weight: 600; }
.art-scores { margin: 0 0 10px; font-size: 17px; }
.art-bet { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.6; text-indent: 0; }
.cal-day.game .n { font-size: clamp(13px, 2.4vw, 18px); }
.cal-day.game .g-cr { right: 4px; top: auto; bottom: 22px; }
.lu { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.lu-team { padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.lu-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.lu-h .crest { width: 24px; height: 24px; margin: 0; font-size: 8px; vertical-align: 0; }
.lu-row { display: flex; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.lu-row small { display: block; font-weight: 500; color: var(--muted); }
.lu-no { width: 20px; flex: 0 0 auto; color: var(--accent); font-weight: 800; }
/* Карточка прогноза — минимум: кф · шанс · сумма и одна кнопка по центру */
.pick-sum { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); overflow: hidden; text-align: center; }
.pick-sum span { padding: 12px 6px; }
.pick-sum span + span { border-left: 1px solid var(--line); }
.pick-sum small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pick-sum b { font-family: var(--display); font-stretch: condensed; font-weight: 700; font-size: 28px; line-height: 1.1; }
.bet-btn { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 360px; margin: 14px auto 0; height: 52px; border-radius: 16px; font-size: 17px; font-weight: 800; text-decoration: none; }
.bet-btn.placed { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.bet-btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.pick-status { margin: 12px 0 0; text-align: center; font-size: 14px; font-weight: 700; }
.pick-status.go { color: var(--win); } .pick-status.stop { color: var(--loss); } .pick-status.info { color: var(--accent); }
.item .buy { display: flex; flex-direction: column; justify-content: center; }
/* Профит — минимум */
.pf-top { display: grid; gap: 10px; margin-top: 18px; }
.pf-main { padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); text-align: center; }
.pf-main small, .pf-pair small, .pf-lg small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.pf-main b { font-family: var(--display); font-stretch: condensed; font-weight: 700; font-size: clamp(48px, 12vw, 84px); line-height: 1; }
.pf-main.pos b, .pf-lg .pos { color: var(--win); } .pf-main.neg b, .pf-lg .neg { color: var(--loss); }
.pf-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-pair span { padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-align: center; }
.pf-pair b, .pf-lg b { font-family: var(--display); font-stretch: condensed; font-weight: 700; font-size: 30px; }
.pf-lg { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.pf-lg div { padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); text-align: center; }
.pf-lg span { display: block; color: var(--muted); font-size: 13px; }
/* Плашка «Банк · ROI · Форма» — только на «Профите» */
body:not([data-tab="stats"]) #strip { display: none; }
/* Стрелки и плюс — аккуратные иконки */
.car-btn { width: 40px; height: 40px; }
.car-btn svg, .plus svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.plus { width: 36px; height: 36px; margin: 16px auto; font-size: 0; box-shadow: none; }
.plus svg { stroke: #fff; }
.car-count { min-width: 38px; font-size: 13px; }
/* Свайп без залипаний: нативная доводка, без анимации высоты во время прокрутки */
.car-track { scroll-behavior: auto; transition: none; scroll-snap-stop: normal; touch-action: pan-x pan-y; }
/* Возможные комбо */
.combos { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.combo { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.combo.double { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.cb-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.cb-h span { color: var(--muted); font-size: 13px; } .cb-h span b { color: var(--ink); }
.cb-leg { display: flex; gap: 8px; align-items: baseline; margin-top: 8px; font-size: 14px; font-weight: 600; }
.cb-leg i { font-style: normal; color: var(--accent); font-weight: 800; }
.cb-leg span { flex: 1; min-width: 0; } .cb-leg small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.cb-leg em { font-style: normal; color: var(--muted); font-size: 12px; white-space: nowrap; }
/* Ещё по командам: эмблемы КХЛ по конференциям и карточка команды */
.tm-conf { margin: 18px 0 10px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.tm { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .15s, transform .15s var(--ease); -webkit-tap-highlight-color: transparent; }
.tm:active { transform: scale(.96); }
.tm.sel { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.tm .crest { width: 44px; height: 44px; margin: 0; font-size: 13px; vertical-align: 0; }
.tm span { font-size: 12px; font-weight: 700; text-align: center; line-height: 1.2; }
.tm-sheet { margin-top: 6px; scroll-margin-top: 80px; }
.tm-card { padding: 16px 18px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); background: var(--surface); }
.tm-card .gc-h .crest { width: 44px; height: 44px; }
.tm-card h4 { margin: 16px 0 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tm-close { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; flex: 0 0 auto; }
.tm-games { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.tg { flex: 0 0 auto; display: grid; justify-items: center; gap: 3px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); min-width: 64px; }
.tg .crest { width: 22px; height: 22px; margin: 0; font-size: 7px; vertical-align: 0; }
.tg b { font-size: 15px; font-variant-numeric: tabular-nums; } .tg b i { font-style: normal; font-size: 10px; margin-left: 2px; opacity: .7; }
.tg small { font-size: 11px; color: var(--muted); }
.tg.win { border-color: color-mix(in srgb, var(--win) 50%, transparent); } .tg.win b { color: var(--win); }
.tg.loss { border-color: color-mix(in srgb, var(--loss) 50%, transparent); } .tg.loss b { color: var(--loss); }
.topbets { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; counter-reset: tb; }
.topbets li { counter-increment: tb; position: relative; padding-left: 44px; }
.topbets li::before { content: counter(tb); position: absolute; left: 12px; top: 12px; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--cta); color: #fff; font-size: 12px; font-weight: 800; }

/* ── Производительность: без размытия под панелями, без двойного тапа-зума ── */
.tabbar, [data-theme='dark'] .mast-row { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
button, a, .car-track, .tm, .chip { touch-action: manipulation; }
.bgwords { will-change: auto; contain: strict; }
#view.in > * { animation-duration: .22s; }

/* ── Нижняя панель как в Telegram: плавающая капсула, активная вкладка в подложке ── */
@media (max-width: 760px) { .tabbar { display: grid; } }
.tabbar { left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); padding: 6px; border-radius: 34px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 96%, transparent); box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); }
.tabbar a { padding: 7px 0 6px; border-radius: 26px; transition: background .2s, color .2s; }
.tabbar a[aria-current='page'] { background: var(--surface-2); color: var(--ink); }
.tabbar a[aria-current='page']::before { display: none; }
.tabbar a[aria-current='page'] svg { stroke: var(--ink); }
body.in-tg main, main { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }

/* ── Двойник: всё компактнее ── */
.item:has(.plus) .market { font-size: 16px; }
.leg-card b { font-size: 15px; } .leg-card span { padding: 7px 8px; } .leg-card small { font-size: 10px; }
.plus { width: 32px; height: 32px; margin: 12px auto; }

/* ── Назад в дне истории ── */
.back-pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 8px 14px 8px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; }
.back-pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ── «Свернуть разбор» внизу ── */
.more-close { display: block; width: 100%; max-width: 360px; margin: 14px auto 6px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.cb-note { margin: 4px 0 0; font-size: 12px; color: var(--accent); }
.tn { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tn li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.tn-m { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-weight: 900; font-size: 15px; line-height: 1; margin-top: 1px; }
.tn-m.pos { color: var(--win); background: color-mix(in srgb, var(--win) 14%, transparent); }
.tn-m.neg { color: var(--loss); background: color-mix(in srgb, var(--loss) 14%, transparent); }
.tn-m.neu { color: var(--muted); background: var(--surface-2); }
.tn-foot { margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.tabbar { background: var(--surface) !important; }
/* «Подробнее» открывается сразу, без анимации высоты */
.more-body { transition: none !important; }
/* Нижняя панель меньше и выше — не обрезается */
.tabbar { left: 14px; right: 14px; bottom: max(14px, calc(env(safe-area-inset-bottom) + 6px)); padding: 4px; border-radius: 28px; }
.tabbar a { padding: 6px 0 5px; gap: 2px; font-size: 10px; border-radius: 22px; }
.tabbar svg { width: 20px; height: 20px; }
main, body.in-tg main { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }

/* ── Единые размеры: все команды и рынки одного кегля, логотип вплотную к названию ── */
.match, body.in-tg .match, .item:has(.plus) .match { font-size: clamp(24px, 6.4vw, 34px) !important; line-height: 1; }
.match .crest { margin-right: .14em; vertical-align: -.08em; }
.market, .item:has(.plus) .market { font-size: 15px !important; margin-top: 10px; }
.market small { font-size: 13px; }
.leg-meta { font-size: 12px; }
.pick-sum b { font-size: 24px; } .pick-sum span { padding: 9px 6px; }
.bet-btn { height: 46px; font-size: 16px; }
.mc-teams { font-size: 16px; } .mc-teams .crest { width: 24px; height: 24px; }
.mc-teams > span { gap: 4px; }
.cb-h, .cb-leg { font-size: 13px; } .cb-leg small { font-size: 11px; } .cb-note { font-size: 11px; }
.combo { padding: 10px 12px; }
.topbets li { padding-left: 40px; } .topbets li::before { width: 20px; height: 20px; left: 10px; top: 10px; font-size: 11px; }
.block h2 { font-size: clamp(22px, 5vw, 30px); }
/* ── Нижняя панель в Telegram — выше скруглённого края экрана ── */
body.in-tg .tabbar { bottom: 26px; left: 16px; right: 16px; }
body.in-tg main { padding-bottom: 120px; }

/* ── Тёмная тема как в Telegram: чёрный фон, серые «пузыри», без надписей на фоне ── */
:root[data-theme='dark'], html[data-theme='dark'] {
  --bg: #000000; --surface: #1c1c1e; --surface-2: #2c2c2e; --line: #2c2c2e; --rule: #2c2c2e;
  --ink: #ffffff; --muted: #8e8e93;
}
[data-theme='dark'] body { background: #000; }
[data-theme='dark'] .bgwords { display: none !important; }
[data-theme='dark'] .mcard, [data-theme='dark'] .item, [data-theme='dark'] .tm, [data-theme='dark'] .tm-card, [data-theme='dark'] .combo, [data-theme='dark'] .pf-main, [data-theme='dark'] .pf-pair span, [data-theme='dark'] .pf-lg div { border-color: transparent; }
[data-theme='dark'] .item { background: var(--surface); }
/* Подпись и линии в подвале — убраны */
.foot, .tribute { border: 0 !important; }
.head { border-bottom: 0 !important; }
/* Чипы-логотипы лиг */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; }
.chip img { height: 28px; width: auto; display: block; }
.chip[aria-selected="true"] { background: var(--surface-2); color: var(--ink); border-color: var(--surface-2); }
.chip:not([aria-selected="true"]) img { opacity: .55; }
/* Календарь сезона */
.scal { max-width: 620px; margin: 0 auto; }
.scal-h { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 10px; }
.scal-h h3 { margin: 0; font-family: var(--display); font-stretch: condensed; font-size: 26px; text-transform: lowercase; }
.scal-h h3 span { color: var(--muted); }
.scal-nav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); display: grid; place-items: center; cursor: pointer; touch-action: manipulation; }
.scal-nav:disabled { opacity: .3; }
.scal-nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cal-day.game.future { background: var(--surface-2); border-color: transparent; }
.cal-day.game.future .m { color: var(--muted); font-weight: 700; }
.lg.fut { background: var(--surface-2); }
.gc-s i { font-style: normal; font-size: 12px; margin-left: 3px; opacity: .7; }
/* Логотип ЛЧ в тёмной теме — белый */
[data-theme='dark'] img[src$="ucl.png"] { filter: brightness(0) invert(1); }
.cal-day.game.future .m { font-size: clamp(9px, 2.4vw, 12px); letter-spacing: -.02em; }
/* Календарь сезона: эмблема в потоке ячейки (число → эмблема → счёт), без наезда на край */
.cal-day.game { justify-content: space-between; align-items: stretch; overflow: hidden; padding: 4px 5px; }
.cal-day.game .g-cr { position: static; align-self: center; display: flex; line-height: 0; margin: 1px 0; }
.cal-day.game .g-cr .crest { width: clamp(14px, 3.8vw, 22px); height: clamp(14px, 3.8vw, 22px); font-size: 6px; border-radius: 4px; }
.cal-day.game .g-cr .crest img { width: 100%; height: 100%; object-fit: contain; }
.cal-day.game .n { font-size: clamp(11px, 2.2vw, 16px); }
.cal-day.game .m { text-align: center; }
/* История: подсказка под календарём */
.cal-hint { margin: 16px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
/* Турнирная таблица КХЛ */
.standings { margin: 28px 0 8px; padding: 22px 14px 16px; border-radius: 22px; background: radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--accent) 22%, var(--surface)) 0%, var(--surface) 70%); border: 1px solid var(--line); }
.st-top { text-align: center; margin-bottom: 18px; }
.st-top small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .3em; color: var(--muted); }
.st-top h3 { margin: 8px 0 6px; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 8vw, 48px); line-height: .95; letter-spacing: .02em; }
.st-top h3 span { font-size: .72em; }
.st-brand { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 0; font-weight: 800; font-size: 14px; letter-spacing: .04em; }
.st-brand img { width: 18px; height: 18px; border-radius: 5px; }
.standings .st-conf { display: grid; gap: 4px; }
.standings .st-conf + .st-conf { margin-top: 22px; }
@media (min-width: 760px) { .standings { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; } .st-top, .st-legend { grid-column: 1 / -1; } .standings .st-conf + .st-conf { margin-top: 0; } }
.st-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(4, 26px) 40px; align-items: center; gap: 2px; min-height: 34px; padding-left: 8px; border-left: 3px solid var(--bar, var(--line)); font-variant-numeric: tabular-nums; font-size: 14px; }
.st-row > span:not(.st-team) { text-align: center; color: color-mix(in srgb, var(--ink) 85%, var(--muted)); }
.st-head { border-left-color: transparent; min-height: 26px; font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.st-head .st-title { text-align: left !important; font-size: 15px; letter-spacing: .06em; color: var(--ink) !important; }
.st-team { display: flex; align-items: center; gap: 7px; min-width: 0; }
.st-team b { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-pos { font-style: normal; font-weight: 800; width: 18px; flex: 0 0 auto; text-align: right; }
.st-team .crest { width: 22px; height: 22px; margin: 0; flex: 0 0 auto; font-size: 7px; vertical-align: 0; }
.st-o em { display: inline-block; min-width: 36px; padding: 5px 0; border-radius: 4px; font-style: normal; font-weight: 800; font-size: 16px; color: #fff; background: var(--surface-2); }
.st-cut { margin-top: 14px; }
.st-legend { margin: 16px 0 0; text-align: center; font-size: 11px; line-height: 1.5; color: var(--muted); letter-spacing: .03em; }
@media (max-width: 380px) { .st-row { grid-template-columns: minmax(0, 1fr) repeat(4, 22px) 36px; font-size: 13px; } .st-team b { font-size: 12px; } }
.cal-day.game { padding: 4px; gap: 2px; }
.cal-day.game .g-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 2px; min-width: 0; }
.cal-day.game .g-cr { margin: 0; align-self: flex-start; }
.cal-day.game .g-cr .crest { width: clamp(14px, 4.2vw, 24px); height: clamp(14px, 4.2vw, 24px); }
.cal-day.game .m { font-size: clamp(9px, 2.5vw, 13px); letter-spacing: -.02em; overflow: visible; text-overflow: clip; }
.cal-day.game .m i { margin-left: 1px; }
.cal-day.game.today::after { display: none; }
.cal-day.game.today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.lg.ot { background: transparent; border: 1.5px dashed var(--muted); }
.game-card .gc-art p { margin: 10px 0 0; text-indent: 1.5em; }
/* Итог ноги после матча */
.live.final { background: var(--surface-2); }
.live.final.win { background: color-mix(in srgb, var(--win) 18%, var(--surface-2)); }
.live.final.win .live-label { color: var(--win); }
.live.final.loss { background: color-mix(in srgb, var(--loss) 16%, var(--surface-2)); }
.live.final.loss .live-label { color: var(--loss); }
/* Табло калибровки */
.calib .cb-row { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; }
.cb-l { color: var(--muted); font-weight: 700; }
.cb-bar { position: relative; height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.cb-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
.cb-exp { background: color-mix(in srgb, var(--ink) 22%, transparent); }
.cb-act { height: 4px; top: 3px !important; bottom: auto !important; background: var(--accent); }
.cb-act.ok { background: var(--win); } .cb-act.down { background: var(--loss); }
.cb-n { font-variant-numeric: tabular-nums; white-space: nowrap; }
.cb-sum { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.cb-sum b, .cb-n b { color: var(--ink); }
.cb-h { margin: 18px 0 8px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cb-ready { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.cb-ready li.ok { color: var(--win); }
.cb-verdict { margin: 12px 0 0; font-weight: 700; }
/* Очки: зона плей-офф (1–8) — один цвет, 9–11 — серые */
.st-o em.in { background: var(--accent); color: #fff; }
.st-o em.out { background: var(--surface-2); color: var(--muted); }
/* Низ страницы: без лишней пустоты и полосы перед подвалом */
#view > .block:last-child, #view > section:last-child { border-bottom: 0; padding-bottom: 8px; }
main, body.in-tg main { padding-bottom: 12px; }
.foot { padding-top: 12px; }
/* Уверенность кружками под шансом */
.pick-sum .conf { display: flex; justify-content: center; gap: 4px; margin-top: 6px; font-style: normal; }
.pick-sum .conf u { width: 8px; height: 8px; border-radius: 50%; background: var(--line); text-decoration: none; display: block; }
.pick-sum .conf u.on { background: var(--accent); }
/* Статус ставки — компактнее */
.pick-status { margin: 8px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .01em; }
/* День 1:1 по заходу — спокойный нейтральный, не яркий */
.cal-day.flat { background: color-mix(in srgb, var(--ink) 6%, var(--surface)); border-color: color-mix(in srgb, var(--ink) 18%, transparent); }
.cal-day.flat .m { color: var(--muted); }
.lg.flat { background: color-mix(in srgb, var(--ink) 18%, var(--surface)); }
#view .block:last-child, #view .sec > :last-child { border-bottom: 0; }
/* День 1:1 по заходу — тёмно-жёлтый (слово владельца 04.11), не яркий */
.cal-day.flat { background: color-mix(in srgb, #b8860b 22%, var(--surface)); border-color: color-mix(in srgb, #b8860b 55%, transparent); }
.cal-day.flat .m { color: #c9a227; }
.lg.flat { background: #b8860b; }

/* 04.11 · компактнее карточка на «Сегодня»; видимый пустой кружок уверенности */
.match, body.in-tg .match { font-size: clamp(24px, 7vw, 34px); }
@media (min-width: 720px) { .match { font-size: clamp(30px, 4.4vw, 48px); } }
.market { margin-top: 10px; font-size: 15px; }
.venue { font-size: 13px; }
.leg-card span { padding: 7px 10px; }
.leg-card b { font-size: 15px; }
.pick-sum span { padding: 9px 6px; }
.pick-sum b { font-size: 22px; }
.pick-sum .conf u { background: color-mix(in srgb, var(--ink) 16%, transparent); }
.pick-sum .conf u.on { background: var(--accent); }
.pick-status { font-size: 11px; font-weight: 600; margin-top: 6px; }
.item-no { margin-bottom: 10px; }
.leg-card { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lock .body { fill: #fff; }
.item-no b[class^="tag-"] { color: var(--accent); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }

/* 04.11 · экран без доступа: большой красный глаз с логотипа и замок */
.orb { width: 240px; height: 210px; margin: 0 auto 22px; }
.orb::before { inset: 10% 6%; background: radial-gradient(ellipse at 50% 50%, rgba(227, 38, 43, .55) 0%, rgba(227, 38, 43, .18) 45%, transparent 70%); filter: blur(18px); opacity: .85; }
.orb::after { display: none; }
.eye-big { position: relative; width: 240px; height: auto; filter: drop-shadow(0 6px 24px rgba(227, 38, 43, .35)); animation: eyeIn .9s var(--ease) both; }
@keyframes eyeIn { from { opacity: 0; transform: scale(.94); } }
.orb .lock { position: absolute; right: 4px; bottom: -6px; width: 58px; color: #fff; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .45)); }
.orb .lock .body { fill: #fff; }
.orb .lock .hole { fill: #e3262b; }
body.unlocking .eye-big { animation: eyeOut .7s var(--ease) forwards; }
@keyframes eyeOut { to { opacity: 0; transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .eye-big, .orb::before { animation: none; } }

/* ═══ 04.11 · компьютер и планшет: как на телефоне — компактная шапка, карточки, узкая колонка ═══ */
@media (min-width: 761px) {
  body:not(.in-tg) { --shell: 920px; --pad: clamp(20px, 3vw, 32px); }
  body:not(.in-tg) .mast { padding-top: 22px; }
  body:not(.in-tg) .mast-top { align-items: center; }
  body:not(.in-tg) .logo { flex: 0 1 auto; text-align: left; margin-left: 0; padding-left: 0; font-size: 84px; line-height: .8; letter-spacing: -.04em; }
  body:not(.in-tg) .mast-row { margin-top: 18px; }
  body:not(.in-tg) .nav a { font-size: 15px; padding: 14px 0 12px; }
  body:not(.in-tg) .head { padding-top: 32px; }
  body:not(.in-tg) .head h1 { font-size: 56px; }
  /* карточка прогноза — как на телефоне: рамка, фон, отступы внутри */
  body:not(.in-tg) .item { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; padding: 28px; margin: 16px 0; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
  body:not(.in-tg) .item > .more { grid-column: 1 / -1; }
  body:not(.in-tg) .item .buy { justify-content: flex-start; gap: 12px; position: sticky; top: 76px; align-self: start; }
  body:not(.in-tg) .item .bet-btn { width: 100%; }
  body:not(.in-tg) .match { font-size: 36px; }
  body:not(.in-tg) .tribute-big { font-size: 72px; }
}
/* планшет: одна колонка, итог под ногами */
@media (min-width: 761px) and (max-width: 980px) {
  body:not(.in-tg) .item { grid-template-columns: 1fr; }
  body:not(.in-tg) .item .buy { position: static; }
}
/* большие экраны — чуть шире, но без растягивания */
@media (min-width: 1440px) { body:not(.in-tg) { --shell: 1000px; } }
html, body { overflow-x: clip; }
@media (min-width: 761px) {
  body:not(.in-tg) .cal-wrap { max-width: none; margin-inline: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
  body:not(.in-tg) .cal-day { aspect-ratio: 1.35; }
}
/* Экран без доступа: сплошной фон без размытых краёв, приложение под ним не рисуем вовсе */
#gate { background: radial-gradient(ellipse 80% 45% at 50% 22%, rgba(227, 38, 43, .16), transparent 70%), var(--bg); overflow-y: auto; }
body.locked #app { visibility: hidden; filter: none; transform: none; }
/* Экран без доступа без лагов при прокрутке: никаких анимированных размытий, страница под ним не скроллится */
body.locked { overflow: hidden; height: 100%; overscroll-behavior: none; }
body.locked #app { visibility: hidden; position: fixed; inset: 0; overflow: hidden; }
#gate { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; transition: opacity .4s var(--ease), visibility .4s; }
.orb::before { filter: none; animation: none; background: radial-gradient(ellipse at 50% 50%, rgba(227, 38, 43, .32) 0%, rgba(227, 38, 43, .08) 45%, transparent 70%); }
.eye-big { filter: none; }
.orb .lock { filter: none; }
#pw { letter-spacing: .08em; text-transform: uppercase; } #pw::placeholder { letter-spacing: .04em; }
.hello-acc { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.hello-acc.soon { color: var(--loss); }
/* 04.11 · фирменный красный логотипа на всех кнопках и акцентах-«действиях» */
:root { --magenta: #e3262b; --cta: linear-gradient(100deg, #ef3a3f 0%, #c0151b 100%); }
[data-theme='dark'] { --btn: var(--cta); }
.plus { box-shadow: 0 6px 24px -8px rgba(227, 38, 43, .7); }
.gate-links { margin: 18px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.gate-links a { color: var(--ink); font-weight: 700; text-decoration: none; }
.gate-links a:hover { text-decoration: underline; }
[data-theme='dark'] .btn:not(.placed):not(:disabled) { box-shadow: 0 10px 30px -12px rgba(227, 38, 43, .55); }
/* Разбор по командам */
.dg-lead { margin: 4px 0 8px; }
.dg-team { padding: 26px 0 28px; border-bottom: 1px solid var(--line); }
.dg-team:last-of-type { border-bottom: 0; }
.dg-crest .crest { width: 72px; height: 72px; font-size: 20px; margin: 0 0 14px; vertical-align: 0; border-radius: 18px; }
.dg-title { margin: 0 0 6px; font-family: var(--display); font-stretch: condensed; font-weight: 700; font-size: 30px; line-height: 1.05; letter-spacing: -.01em; }
.dg-score { margin: 0 0 12px; font-weight: 800; color: var(--muted); }
.dg-quote { margin: 14px 0; padding: 12px 16px; border-left: 3px solid var(--magenta); background: var(--surface); border-radius: 0 14px 14px 0; }
.dg-quote p { margin: 0 0 6px; font-size: 16px; line-height: 1.45; }
.dg-quote cite { font-style: normal; font-size: 13px; color: var(--muted); font-weight: 700; }
.dg-out { margin: 12px 0 0; }
.dg-loko { margin: 24px 0 0; font-weight: 700; }
.dg-loko a { text-decoration: none; color: var(--muted); }
/* 04.11 · без банка и сумм: итог прогноза — кф и шанс */
.pick-sum { grid-template-columns: repeat(2, 1fr); }
body.in-tg #theme { display: none; }
body.in-tg #strip, .strip:empty { display: none; }
/* Легенда календаря: квадрат и подпись не разрываются */
.cal-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.cal-legend i.lg { margin-right: 6px; }
.cal-legend span { display: inline-flex; align-items: center; white-space: nowrap; }
.leg-card { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* 04.11 · компактная карточка прогноза — весь двойник на одном экране (сайт и mini app) */
.item { gap: 12px; padding: 16px; }
.item-no { margin-bottom: 8px; font-size: 12px; }
.leg-c { padding: 10px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.leg-c .leg-meta { flex-wrap: wrap; gap: 6px 8px; font-size: 12px; }
.leg-c .league { font-size: 11px; padding: 2px 7px; }
.leg-c .live { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 0 auto; padding: 3px 9px; border-radius: 999px; font-size: 12px; }
.leg-c .live[hidden] { display: none; }
.leg-c .live .live-score { font-size: 15px; }
.leg-c .live.final { background: color-mix(in srgb, var(--muted) 18%, transparent); border: 0; }
.leg-c .live.final.win { background: color-mix(in srgb, var(--win) 20%, transparent); color: var(--win); }
.leg-c .live.final.loss { background: color-mix(in srgb, var(--loss) 18%, transparent); color: var(--loss); }
.leg-teams { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin: 8px 0 6px; font-family: var(--display); font-stretch: condensed; font-weight: 700; font-size: 21px; line-height: 1.1; text-transform: uppercase; letter-spacing: -.01em; }
.leg-teams i { font-style: normal; color: var(--muted); font-weight: 400; }
.leg-teams .crest { width: 24px; height: 24px; font-size: 8px; margin: 0 6px 0 0; vertical-align: -4px; border-radius: 6px; }
.leg-bet { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 15px; }
.leg-bet > b { font-weight: 700; }
.leg-bet span { white-space: nowrap; color: var(--muted); font-size: 14px; }
.leg-bet span b { color: var(--ink); font-size: 17px; }
.plus.sm { width: 26px; height: 26px; margin: 6px auto; font-size: 18px; box-shadow: none; }
.plus.sm svg { width: 14px; height: 14px; }
.pick-sum span { padding: 8px 6px; }
.pick-sum b { font-size: 20px; }
.more-btn { padding: 12px 16px !important; font-size: 15px !important; }
@media (min-width: 761px) { body:not(.in-tg) .leg-teams { font-size: 24px; } body:not(.in-tg) .item { padding: 22px; } }
/* Нижняя панель: 4 вкладки поровну */
.tabbar { grid-template-columns: repeat(4, 1fr) !important; }
.item .result { padding: 10px 14px; font-size: 15px; border-radius: 14px; }
