/* ГОЛАСО — ночной стадион: тёмное стекло табло, меловые линии, жёлтый свет прожекторов. */
:root {
  --night: #07101f;
  --glass: rgba(8, 17, 33, 0.84);
  --glass-2: rgba(16, 30, 54, 0.9);
  --line: rgba(226, 236, 255, 0.14);
  --chalk: #f2f5ec;
  --muted: #9cadc6;
  --flood: #ffd34d;
  --flood-ink: #2a1f00;
  --hot: #ff5a4f;
  --f-display: "Unbounded", "Arial Black", "Segoe UI", system-ui, sans-serif;
  --f-body: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--night); color: var(--chalk); font-family: var(--f-body); font-size: 15px; overflow: hidden; -webkit-tap-highlight-color: transparent; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
kbd { font-family: var(--f-body); font-weight: 700; font-size: 0.82em; display: inline-block; min-width: 1.7em; padding: 0.1em 0.45em; margin: 0 0.12em; border-radius: 5px; background: rgba(255, 255, 255, 0.1); border: 1px solid var(--line); border-bottom-width: 2px; text-align: center; }
:focus-visible { outline: 2px solid var(--flood); outline-offset: 2px; }

#fade { position: fixed; inset: 0; background: #02060e; opacity: 0; pointer-events: none; z-index: 15; }
.err { position: fixed; inset: auto 16px 40% 16px; padding: 18px; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); z-index: 40; text-align: center; }

/* ---------- табло ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
.board {
  position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); left: 16px;
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px;
  background: var(--glass); border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--f-display); font-weight: 800; letter-spacing: 0.02em; backdrop-filter: blur(6px);
  font-variant-numeric: tabular-nums;
}
.board .chip { width: 8px; height: 22px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.board .tn { font-size: 14px; }
.board .sc { font-size: 18px; padding: 2px 10px; border-radius: 6px; background: var(--chalk); color: #0b1424; min-width: 74px; text-align: center; }
.board .clock { margin-left: 6px; padding-left: 10px; border-left: 1px solid var(--line); font-size: 14px; color: var(--flood); min-width: 62px; }
#radar {
  position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  width: 232px; height: 150px; border-radius: 10px; background: rgba(6, 14, 28, 0.55); border: 1px solid var(--line);
}
#power { position: absolute; left: 0; top: 0; width: 80px; height: 9px; border-radius: 5px; background: rgba(5, 10, 20, 0.75); border: 1px solid rgba(255, 255, 255, 0.35); overflow: hidden; }
#power i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8ef08a, var(--flood)); }
#power.hot i { background: linear-gradient(90deg, var(--flood), var(--hot)); }
#power::after { content: attr(data-k); position: absolute; left: 0; right: 0; top: -17px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--chalk); text-shadow: 0 1px 2px #000; }
#power { overflow: visible; }

#toast {
  position: absolute; top: calc(70px + env(safe-area-inset-top, 0px)); left: 50%; transform: translate(-50%, -8px); max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis;
  padding: 8px 16px; border-radius: 999px; background: var(--flood); color: var(--flood-ink);
  font-family: var(--f-display); font-weight: 800; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase;
  opacity: 0; transition: opacity 0.2s, transform 0.2s; white-space: nowrap;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.small { background: var(--glass); color: var(--chalk); border: 1px solid var(--line); font-size: 12px; }
#big {
  position: absolute; left: 0; right: 0; top: 30%; display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0; pointer-events: none; text-align: center; padding-inline: 16px;
}
#big strong { font-family: var(--f-display); font-weight: 900; font-size: clamp(56px, 13vw, 150px); line-height: 0.9; letter-spacing: -0.02em; color: var(--chalk); transform: skewX(-9deg); text-shadow: 0 6px 0 rgba(0, 0, 0, 0.35), 0 0 60px rgba(255, 211, 77, 0.35); }
#big span { font-weight: 700; font-size: clamp(15px, 2.4vw, 22px); padding: 6px 14px; border-radius: 8px; background: var(--glass); border: 1px solid var(--line); }
#big em { font-style: normal; font-family: var(--f-display); font-weight: 800; font-size: clamp(13px, 2vw, 18px); color: var(--flood-ink); background: var(--flood); padding: 4px 12px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
#big.show { animation: big 3.6s cubic-bezier(.2, .9, .2, 1) forwards; }
@keyframes big { 0% { opacity: 0; transform: scale(1.6); } 8% { opacity: 1; transform: scale(1); } 85% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(0.96); } }
#replayTag {
  position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; padding: 6px 12px; border-radius: 8px;
  font-family: var(--f-display); font-weight: 800; font-size: 14px; letter-spacing: 0.1em; background: var(--hot); color: #fff;
  display: flex; align-items: baseline; gap: 10px;
}
#replayTag small { font-family: var(--f-body); font-weight: 600; letter-spacing: 0; font-size: 11px; opacity: 0.85; }
#hint {
  position: absolute; left: 16px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); max-width: min(560px, calc(50% - 140px));
  padding: 8px 12px; border-radius: 10px; background: var(--glass); border: 1px solid var(--line); font-size: 12.5px; line-height: 1.7; color: var(--muted);
}
#hint b { color: var(--chalk); }
.iconbtn {
  position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 16px; width: 40px; height: 40px; border-radius: 10px;
  background: var(--glass); border: 1px solid var(--line); pointer-events: auto; cursor: pointer; font-size: 13px;
}
body:not(.touch) .iconbtn { display: none; }

/* ---------- сенсорное управление ---------- */
#touchPad { display: none; }
body.touch #touchPad { display: block; }
body.touch #hint { display: none; }
body.touch #radar { width: 150px; height: 97px; bottom: auto; top: calc(62px + env(safe-area-inset-top, 0px)); left: 16px; transform: none; }
#tStick { position: absolute; left: 22px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); pointer-events: auto; touch-action: none; }
#tStick i { position: absolute; left: 41px; top: 41px; width: 48px; height: 48px; border-radius: 50%; background: rgba(242, 245, 236, 0.5); }
.tbtns { position: absolute; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: repeat(3, 64px); gap: 8px; pointer-events: auto; }
.tbtns button { height: 48px; border-radius: 12px; border: 1px solid var(--line); background: rgba(8, 17, 33, 0.7); font-size: 12px; font-weight: 700; touch-action: none; }
.tbtns .big { height: 64px; font-family: var(--f-display); font-size: 13px; }
.tbtns .hot { background: rgba(255, 211, 77, 0.88); color: var(--flood-ink); }

/* ---------- меню ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: flex-start;
  padding-block: calc(20px + env(safe-area-inset-top, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)); padding-inline: clamp(16px, 5vw, 72px);
  background: linear-gradient(90deg, rgba(4, 9, 20, 0.94) 0%, rgba(4, 9, 20, 0.78) 42%, rgba(4, 9, 20, 0.1) 100%);
  overflow-y: auto;
}
#pause, #result { justify-content: center; background: rgba(4, 9, 20, 0.62); backdrop-filter: blur(4px); }
.panel { width: min(560px, 100%); display: flex; flex-direction: column; gap: 10px; margin-block: auto; }
.panel.narrow { width: min(420px, 100%); padding: 22px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); }
.brand h1 {
  margin: 0; font-family: var(--f-display); font-weight: 900; font-size: clamp(48px, 9vw, 92px); line-height: 0.92; letter-spacing: -0.03em;
  transform: skewX(-9deg); transform-origin: left bottom; text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 55%, var(--flood) 56%, #ffc21f 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand p { margin: 8px 0 6px; color: var(--muted); max-width: 42ch; line-height: 1.45; }
h2 { margin: 0 0 6px; font-family: var(--f-display); font-weight: 800; font-size: 26px; letter-spacing: -0.01em; }
.label { margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.clubs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.club {
  display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 8px; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); font-size: 13px; font-weight: 600; text-align: left;
}
.club span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club .kit { flex: none; width: 18px; height: 22px; border-radius: 4px 4px 6px 6px; background: linear-gradient(180deg, var(--a) 0 62%, var(--b) 62% 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.club:hover { background: rgba(255, 255, 255, 0.08); }
.club.on { border-color: var(--flood); background: rgba(255, 211, 77, 0.12); box-shadow: 0 0 0 1px var(--flood) inset; }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.seg { display: flex; flex-direction: column; gap: 4px; }
.seg button { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); cursor: pointer; font-size: 13px; font-weight: 600; text-align: left; }
.seg button:hover { background: rgba(255, 255, 255, 0.08); }
.seg button.on { background: var(--chalk); color: #0b1424; border-color: var(--chalk); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.actions.col { flex-direction: column; margin-top: 6px; }
.btn {
  padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass-2); cursor: pointer;
  font-weight: 700; font-size: 15px; text-align: left;
}
.btn:hover { border-color: rgba(255, 255, 255, 0.35); }
.btn.primary { background: var(--flood); color: var(--flood-ink); border-color: var(--flood); font-family: var(--f-display); font-weight: 800; font-size: 17px; display: flex; flex-direction: column; gap: 2px; min-width: 210px; }
.btn.primary small { font-family: var(--f-body); font-weight: 600; font-size: 12px; opacity: 0.75; }
.btn.ghost { background: transparent; }
.foot { margin: 6px 0 0; color: var(--muted); font-size: 12px; }

.ctl { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--glass); }
.ctl > div { display: grid; grid-template-columns: 1.3fr 1.3fr 0.9fr; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 13.5px; align-items: center; }
.ctl > div:first-child { border-top: 0; }
.ctl .ctl-h { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tips { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13.5px; line-height: 1.5; max-width: 62ch; }
.tips p { margin: 0; }

.rscore { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 6px 0 4px; }
.rscore span { display: flex; align-items: center; gap: 8px; font-weight: 700; min-width: 0; }
.rscore span:last-child { justify-content: flex-end; }
.rscore i { width: 10px; height: 26px; border-radius: 3px; flex: none; }
.rscore b { font-family: var(--f-display); font-weight: 900; font-size: 44px; font-variant-numeric: tabular-nums; }
.rscorers { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
.rscorers b { color: var(--chalk); margin-right: 6px; }
.rstats { display: flex; flex-direction: column; margin-top: 8px; border-top: 1px solid var(--line); }
.rstats .row { display: grid; grid-template-columns: 70px 1fr 70px; padding: 7px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.rstats .row span { text-align: center; color: var(--muted); font-size: 13px; }
.rstats .row b:last-child { text-align: right; }

@media (max-width: 640px) {
  .overlay { background: rgba(4, 9, 20, 0.86); }
  .clubs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opts { grid-template-columns: 1fr; }
  .seg { flex-direction: row; flex-wrap: wrap; }
  .ctl > div { grid-template-columns: 1fr 1fr; }
  .ctl > div > span:last-child { display: none; }
  .board { left: 50%; transform: translateX(-50%); }
  .board .clock { min-width: 0; }
  #radar { display: none; }
  body.touch #radar { display: block; }
}
@media (prefers-reduced-motion: reduce) { #big.show { animation-duration: 3.6s; animation-timing-function: steps(1); } }
body.touch #toast { top: calc(172px + env(safe-area-inset-top, 0px)); }

/* ---------- карьера ---------- */
.kitchip { display: inline-block; flex: none; width: 10px; height: 14px; margin-right: 8px; border-radius: 2px 2px 4px 4px; vertical-align: -2px; background: linear-gradient(180deg, var(--a) 0 62%, var(--b) 62% 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.cnext { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 20px; margin-top: 4px; }
.cnext .kitchip { width: 14px; height: 20px; margin: 0; }
.cnext span { color: var(--muted); }
.cnext small { color: var(--muted); font-size: 12px; margin-left: 4px; }
.cfinal { font-family: var(--f-display); font-weight: 900; font-size: 30px; }
.cfinal.gold { color: var(--flood); }
.ltable { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--glass); margin-top: 6px; }
.lrow { display: grid; grid-template-columns: 22px minmax(0, 1fr) repeat(4, 26px) 46px 30px 58px; gap: 6px; padding: 7px 12px; border-top: 1px solid var(--line); font-size: 13.5px; font-variant-numeric: tabular-nums; align-items: center; }
.lrow:first-child { border-top: 0; }
.lrow > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow > :nth-child(n+3) { text-align: center; }
.lrow.lh { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lrow.me { background: rgba(255, 211, 77, 0.12); box-shadow: inset 3px 0 0 var(--flood); }
.lres-box { display: flex; flex-direction: column; gap: 2px; }
.lres { display: grid; grid-template-columns: 1fr 56px 1fr; gap: 6px; font-size: 13px; color: var(--muted); }
.lres span:last-child { text-align: right; }
.lres b { text-align: center; color: var(--chalk); font-variant-numeric: tabular-nums; }
.lres.me { color: var(--chalk); font-weight: 600; }
.cscor { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; }
.cscor b { color: var(--flood); }
@media (max-width: 640px) {
  .lrow { grid-template-columns: 18px minmax(0, 1fr) repeat(4, 20px) 40px 26px 50px; gap: 4px; padding: 7px 8px; font-size: 12.5px; }
}
.rpens { display: block; font-family: var(--f-body); font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; }
.lres small { color: var(--muted); font-weight: 600; font-size: 11px; }
.lres { grid-template-columns: 1fr auto 1fr; }
/* от первого лица мини-карта уходит вверх, чтобы не закрывать мяч у ног */
body.fp #radar { left: auto; right: 16px; bottom: auto; top: calc(16px + env(safe-area-inset-top, 0px)); transform: none; width: 174px; height: 112px; }
body.fp.touch #radar { right: auto; left: 16px; top: calc(62px + env(safe-area-inset-top, 0px)); width: 150px; height: 97px; }
body.fp { cursor: none; } /* от первого лица курсор не нужен: обзор захватывается pointer lock */

/* лиги в выборе клуба и узоры формы на значках */
.lgname { grid-column: 1 / -1; margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lgname:first-child { margin-top: 0; }
.kit.stripes, .kitchip.stripes { background: linear-gradient(180deg, transparent 0 62%, var(--b) 62% 100%), repeating-linear-gradient(90deg, var(--a) 0 3px, var(--c) 3px 6px); }
.kit.hoops, .kitchip.hoops { background: linear-gradient(180deg, transparent 0 62%, var(--b) 62% 100%), repeating-linear-gradient(180deg, var(--a) 0 3px, var(--c) 3px 6px); }
.kit.halves, .kitchip.halves { background: linear-gradient(180deg, transparent 0 62%, var(--b) 62% 100%), linear-gradient(90deg, var(--a) 50%, var(--c) 50%); }
.kit.pin, .kitchip.pin { background: linear-gradient(180deg, transparent 0 62%, var(--b) 62% 100%), repeating-linear-gradient(90deg, var(--a) 0 3px, var(--c) 3px 4px); }
.kit.band, .kitchip.band { background: linear-gradient(180deg, transparent 0 62%, var(--b) 62% 100%), linear-gradient(180deg, var(--a) 0 22%, var(--c) 22% 42%, var(--a) 42% 100%); }
.kit.checks, .kitchip.checks { background: linear-gradient(180deg, transparent 0 62%, var(--b) 62% 100%), conic-gradient(var(--c) 25%, var(--a) 0 50%, var(--c) 0 75%, var(--a) 0) 0 0 / 6px 6px; }
.kit.diag, .kitchip.diag { background: linear-gradient(180deg, transparent 0 62%, var(--b) 62% 100%), repeating-linear-gradient(135deg, var(--a) 0 3px, var(--c) 3px 6px); }
.kit.sash, .kitchip.sash { background: linear-gradient(180deg, transparent 0 62%, var(--b) 62% 100%), linear-gradient(135deg, var(--a) 0 40%, var(--c) 40% 60%, var(--a) 60%); }
.kit.chev, .kitchip.chev { background: linear-gradient(180deg, transparent 0 62%, var(--b) 62% 100%), linear-gradient(38deg, transparent 44%, var(--c) 44% 56%, transparent 56%), linear-gradient(-38deg, transparent 44%, var(--c) 44% 56%, transparent 56%); }
.kit.vert, .kitchip.vert { background: linear-gradient(180deg, transparent 0 62%, var(--b) 62% 100%), linear-gradient(90deg, var(--a) 0 36%, var(--c) 36% 64%, var(--a) 64%); }
.kit.yoke, .kitchip.yoke { background: linear-gradient(180deg, transparent 0 62%, var(--b) 62% 100%), linear-gradient(180deg, var(--c) 0 26%, var(--a) 26%); }
.kit.qua, .kitchip.qua { background: linear-gradient(180deg, transparent 0 62%, var(--b) 62% 100%), conic-gradient(var(--a) 25%, var(--c) 0 50%, var(--a) 0 75%, var(--c) 0); }
.kit.dots, .kitchip.dots { background: linear-gradient(180deg, transparent 0 62%, var(--b) 62% 100%), radial-gradient(var(--c) 22%, transparent 26%) 0 0 / 9px 9px, var(--a); }
.kit.vtwo, .kitchip.vtwo { background: linear-gradient(180deg, transparent 0 62%, var(--b) 62% 100%), linear-gradient(90deg, var(--a) 0 31%, var(--c) 31% 39%, var(--a) 39% 61%, var(--c) 61% 69%, var(--a) 69%); }
.kit.htwo, .kitchip.htwo { background: linear-gradient(180deg, transparent 0 62%, var(--b) 62% 100%), linear-gradient(180deg, var(--a) 0 22%, var(--c) 22% 30%, var(--a) 30% 70%, var(--c) 70% 78%, var(--a) 78%); }
.kit.edge, .kitchip.edge { background: linear-gradient(180deg, transparent 0 62%, var(--b) 62% 100%), linear-gradient(90deg, var(--c) 0 11%, var(--a) 11% 89%, var(--c) 89%); }
.kit.zebra, .kitchip.zebra { background: linear-gradient(180deg, transparent 0 62%, var(--b) 62% 100%), repeating-linear-gradient(180deg, var(--c) 0 2px, var(--a) 2px 6px); }
.kit.circle, .kitchip.circle { background: linear-gradient(180deg, transparent 0 62%, var(--b) 62% 100%), radial-gradient(circle at 50% 34%, var(--c) 0 16%, transparent 18%), var(--a); }

/* новое меню: карточки команд и окно выбора клуба */
.vsrow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; }
.vs { font-family: var(--f-display); font-weight: 900; font-size: 18px; color: var(--muted); }
.teamcard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; cursor: pointer; text-align: left; min-width: 0; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.teamcard:hover { background: rgba(255, 255, 255, 0.09); }
.teamcard .tc { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.teamcard .tc small { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.teamcard .tc b { font-size: 18px; font-family: var(--f-display); font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teamcard .tc i { font-style: normal; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kit.big { width: 30px; height: 36px; border-radius: 6px 6px 9px 9px; flex: none; background: linear-gradient(180deg, var(--a) 0 62%, var(--b) 62% 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.vsmini { display: flex; gap: 8px; flex-wrap: wrap; }
.chipbtn { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); cursor: pointer; font-size: 12px; font-weight: 600; }
.chipbtn:hover { background: rgba(255, 255, 255, 0.1); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); cursor: pointer; font-size: 13px; font-weight: 600; }
.tab.on { background: var(--chalk); color: #0b1424; border-color: var(--chalk); }
.search { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); color: inherit; font: inherit; font-size: 14px; }
.club .rt { margin-left: auto; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .vsrow { grid-template-columns: 1fr; } .vs { text-align: center; } }
.opts .seg { flex-direction: row; flex-wrap: wrap; gap: 5px; }
.opts .seg button { padding: 6px 10px; text-align: center; }
.opts { gap: 8px 14px; }

/* карьера: цель, форма, мои матчи, трофеи */
.cgoal { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 13px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.cgoal.ok b { color: #4be38a; } .cgoal.warn b { color: var(--flood); } .cgoal.bad b { color: #ff6b6b; }
.form { display: inline-flex; gap: 3px; justify-content: center; }
.fd { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; }
.fd.w { background: #4be38a; } .fd.l { background: #ff6b6b; } .fd.d { background: #9aa6b8; }
.lres.fx small { color: var(--muted); font-weight: 500; }
.lres.fx.now { background: rgba(255, 211, 77, 0.1); border-radius: 6px; }
.lres.fx.w b { color: #4be38a; } .lres.fx.l b { color: #ff6b6b; }
.trophies { display: flex; flex-direction: column; gap: 4px; }
.tr { display: grid; grid-template-columns: 90px 40px 1fr; gap: 8px; align-items: baseline; font-size: 13px; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.tr.gold { background: rgba(255, 211, 77, 0.12); }
.tr small { color: var(--muted); }
#pStats { margin: 0 0 12px; }
#pStats .row { padding: 3px 0; font-size: 14px; }
#pStats .row span { font-size: 12px; }
@media (max-height: 820px) { #pause .btn { padding-top: 9px; padding-bottom: 9px; } }
#stam { position: absolute; left: 16px; bottom: 150px; width: 8px; height: 90px; border-radius: 5px; background: rgba(5, 10, 20, 0.6); border: 1px solid rgba(255, 255, 255, 0.3); overflow: hidden; display: flex; align-items: flex-end; pointer-events: none; }
#stam i { display: block; width: 100%; height: 100%; background: linear-gradient(0deg, #8ef08a, var(--flood)); }
#stam.low i { background: var(--hot); }
.xgc { width: 100%; height: auto; display: block; margin: 2px 0 8px; background: rgba(255, 255, 255, 0.03); border-radius: 10px; }
.chartlbl { font-size: 12px; color: var(--muted); margin-top: 6px; }
.moments { margin: 4px 0 8px; font-size: 13px; }
.moments .mom { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.moments .mom i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.moments .mom small { color: var(--muted); }
.moments .mom span { margin-left: auto; font-weight: 700; }
.pstats { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.pstats .row { display: flex; justify-content: space-between; padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.achs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin-bottom: 6px; }
.ach { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 6px; align-items: center; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.03); opacity: 0.45; filter: grayscale(1); }
.ach span { grid-row: 1 / 3; font-size: 22px; text-align: center; }
.ach b { font-size: 13px; }
.ach small { font-size: 11px; color: var(--muted); line-height: 1.25; }
.ach.on { opacity: 1; filter: none; background: rgba(255, 211, 77, 0.12); }
.psubs { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.psubs small { color: var(--muted); }
.subrow { display: grid; grid-template-columns: 1fr 90px 74px; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.subrow.on { border-color: var(--flood); background: rgba(255, 211, 77, 0.12); }
.subrow em { font-style: normal; color: var(--muted); text-align: right; }
.fbar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.fbar i { display: block; height: 100%; }
#intro { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 16px; background: linear-gradient(180deg, rgba(5, 10, 20, 0.35), rgba(5, 10, 20, 0.75)); cursor: pointer; overflow: auto; }
#intro[hidden] { display: none; }
.ibox { width: min(720px, 100%); display: flex; flex-direction: column; gap: 10px; animation: iin 0.5s ease-out; }
@keyframes iin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.iteams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: start; }
.ivs { font-family: var(--f-display); font-weight: 800; font-size: 26px; color: var(--flood); align-self: center; }
.icol { background: rgba(10, 18, 34, 0.82); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.ihead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ihead i { width: 14px; height: 14px; border-radius: 4px; }
.ihead b { font-family: var(--f-display); font-size: 18px; }
.ihead small { margin-left: auto; color: var(--muted); }
.iline { display: grid; grid-template-columns: 26px 1fr auto; gap: 6px; font-size: 13px; padding: 2px 0; }
.iline span { color: var(--flood); font-weight: 700; text-align: right; }
.iline small { color: var(--muted); }
.imeta { color: var(--muted); font-size: 13px; text-align: center; }
.iskip { text-align: center; font-size: 12px; color: var(--muted); opacity: 0.8; }
@media (max-width: 520px) { .iteams { grid-template-columns: 1fr; } .ivs { justify-self: center; } }
.ups { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.upb { display: grid; grid-template-columns: 30px 1fr auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.upb:disabled { opacity: 0.5; cursor: default; }
.upb:not(:disabled):hover { border-color: var(--flood); }
.upb > span { grid-row: 1 / 3; font-size: 22px; text-align: center; }
.upb b { font-size: 14px; } .upb b small { color: var(--muted); font-weight: 400; }
.upb > small { grid-column: 2; color: var(--muted); font-size: 11px; }

/* ---------- плитки главного меню (в стиле FIFA 10-х) ---------- */
.panel.wide { width: min(780px, 100%); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(84px, auto); gap: 10px; margin-top: 8px; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 13px 14px 12px; border-radius: 14px; cursor: pointer; text-align: left;
  background: linear-gradient(160deg, rgba(24, 40, 70, 0.9), rgba(8, 15, 30, 0.92)); border: 1px solid var(--line); position: relative; overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.tile::after { content: ''; position: absolute; inset: 0; background: radial-gradient(140px 80px at 85% -10%, rgba(255, 211, 77, 0.16), transparent 70%); pointer-events: none; }
.tile:hover { border-color: rgba(255, 211, 77, 0.7); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4); }
.tile:active { transform: translateY(0); }
.tile .ic { font-size: 22px; line-height: 1.1; }
.tile b { font-family: var(--f-display); font-weight: 800; font-size: 16px; letter-spacing: 0.01em; }
.tile small { color: var(--muted); font-size: 11.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile.hero { grid-column: 1 / 3; grid-row: 1 / 3; justify-content: flex-end; background: linear-gradient(155deg, rgba(30, 52, 92, 0.95), rgba(10, 18, 34, 0.95)); }
.tile.hero .ic { font-size: 42px; }
.tile.hero b { font-size: clamp(22px, 3vw, 30px); }
.tile.hero small { color: var(--chalk); opacity: 0.85; font-size: 13px; }

/* турниры */
.tourbtn { display: flex; align-items: center; gap: 12px; }
.tourbtn .ic { font-size: 26px; }
.tourbtn .tc2 { display: flex; flex-direction: column; gap: 1px; text-align: left; min-width: 0; }
.tourbtn b { font-family: var(--f-display); font-size: 17px; }
.tourbtn small { color: var(--muted); font-size: 12px; }

/* предматчевый экран: панель слева, витрина формы справа */
#prematch { background: linear-gradient(90deg, rgba(4, 9, 20, 0.94) 0%, rgba(4, 9, 20, 0.82) 38%, rgba(4, 9, 20, 0.05) 78%, rgba(4, 9, 20, 0.3) 100%); }
#prematch .panel { width: min(520px, 60%); }
.pmkits { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.kitcard { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); cursor: pointer; text-align: left; min-width: 0; }
.kitcard:hover { border-color: var(--flood); background: rgba(255, 211, 77, 0.08); }
.kitcard .kit.big { width: 26px; height: 32px; }
.kitcard .tc { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.kitcard .tc small { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.kitcard .tc b { font-family: var(--f-display); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kitcard .tc i { font-style: normal; font-size: 11px; color: var(--flood); }
.vs2 { font-family: var(--f-display); font-weight: 800; color: var(--muted); font-size: 14px; }
@media (max-width: 640px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #prematch .panel { width: 100%; }
  #prematch { background: rgba(4, 9, 20, 0.88); }
}
.upb em { grid-column: 3; grid-row: 1 / 3; font-style: normal; font-weight: 700; color: var(--flood); font-size: 13px; }

.bindnote { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.bindk { font: inherit; font-weight: 700; font-size: 12.5px; min-width: 64px; padding: 4px 8px; margin-right: 6px; border-radius: 6px; color: inherit; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line); border-bottom-width: 2px; cursor: pointer; }
.bindk:hover { background: rgba(255, 255, 255, 0.16); }
.bindk.wait { background: var(--flood); color: #0b1424; animation: bindblink 0.8s infinite alternate; }
@keyframes bindblink { to { opacity: 0.55; } }
#pkHelp { position: absolute; left: 50%; bottom: 110px; transform: translateX(-50%); padding: 10px 16px; border-radius: 12px; background: rgba(5, 10, 20, 0.78); border: 1px solid rgba(255, 255, 255, 0.25); font-size: 14px; line-height: 1.6; text-align: center; pointer-events: none; max-width: min(92vw, 560px); }
#pkHelp b { color: var(--flood); }

#vig { position: fixed; inset: 0; pointer-events: none; z-index: 2; background: radial-gradient(ellipse at 50% 46%, rgba(0, 0, 0, 0) 58%, rgba(2, 6, 16, 0.34) 100%); }

.offers { display:flex; flex-direction:column; gap:6px; margin-top:10px; }
.offerBtn { display:flex; justify-content:space-between; align-items:baseline; gap:10px; width:100%; font:inherit; }
.offerBtn small { opacity:.7; }
