.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(120% 90% at 50% 0%, #0f2f86 0%, #081631 45%, var(--ink) 100%); position: relative; overflow: hidden; }
.login::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(120deg, transparent 0 22px, #ffffff05 22px 23px); }
.login-card { position: relative; width: min(380px, 100%); display: grid; gap: 14px; padding: 30px 28px; animation: wipeIn .6s var(--ease) both; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
.login-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--gold-line); }
.login-card h1 { margin: 6px 0 0; font-family: var(--display); font-weight: 900; font-size: 36px; line-height: .95; letter-spacing: .02em; text-transform: uppercase; }
.login-card p { margin: 0; font-size: 14px; }
.pin { text-align: center; font-size: 26px; letter-spacing: .5em; font-family: var(--display); font-weight: 700; }
.mark { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 16px 0 10px; width: max-content; background: var(--gold-grad); color: var(--gold-ink); font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%); }
.mark svg { width: 17px; height: 17px; stroke-width: 2; }

.app { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: linear-gradient(180deg, #071533, var(--ink)); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 12px; gap: 18px; }
.brand { display: grid; gap: 8px; padding: 0 6px 14px; border-bottom: 1px solid var(--line); }
.brand b { display: block; font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1.05; text-transform: uppercase; }
.brand small { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.tabs { display: grid; gap: 2px; }
.tabs button { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 4px; border: 0; background: transparent; cursor: pointer; font-weight: 600; font-size: 14px; text-align: left; color: var(--muted); transition: background .2s, color .2s; }
.tabs button svg { width: 19px; height: 19px; }
.tabs button:hover { color: var(--text); background: #ffffff06; }
.tabs button::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: var(--gold); transform: scaleY(0); transition: transform .3s var(--ease); }
.tabs button.active { background: linear-gradient(90deg, #dfb24a18, transparent); color: var(--text); }
.tabs button.active svg { color: var(--gold); }
.tabs button.active::before { transform: scaleY(1); }
.side-foot { margin-top: auto; display: grid; gap: 2px; }
.side-foot .btn { justify-content: flex-start; }

.main { padding: 26px 28px; min-width: 0; }
.main h2 { font-family: var(--display); font-weight: 900; font-size: 32px; margin: 0; letter-spacing: .02em; text-transform: uppercase; line-height: 1; }
.main h3 { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 10px 0 0; }
.tab { animation: fadeIn .3s var(--ease); display: grid; gap: 16px; align-content: start; }
.count { font-size: 18px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; align-items: end; }
.field.check { display: flex; align-items: center; gap: 8px; color: var(--text); padding-bottom: 10px; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; }
.field.check input { width: 18px; height: 18px; accent-color: var(--gold); }

.list { display: grid; gap: 6px; }
.item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; background: linear-gradient(90deg, #0b1d48, #091839); border: 1px solid var(--line); border-radius: 4px; animation: wipeIn .4s var(--ease) both; flex-wrap: wrap; }
.item .grow { flex: 1; min-width: 140px; }
.item .input { padding: 7px 10px; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 15px; background: #10275a; border: 1px solid var(--line2); color: var(--gold-hi); flex: none; }
.avatar.gold { background: var(--gold-grad); color: var(--gold-ink); border-color: transparent; }
.search { max-width: 320px; }

.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 4px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 7px 12px; cursor: pointer; color: var(--muted); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; }
.seg button + button { border-left: 1px solid var(--line2); }
.seg button.on { background: var(--gold-grad); color: var(--gold-ink); }

/* ---- skor ---- */
.score-layout { display: grid; grid-template-columns: minmax(280px, 370px) minmax(0, 1fr); gap: 22px; align-items: start; }
.match-list { display: grid; gap: 8px; }
.mi { position: relative; display: grid; gap: 4px; padding: 10px 12px 10px 14px; background: linear-gradient(90deg, #0b1d48, #091839); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; transition: border-color .2s, transform .2s var(--ease); animation: wipeIn .4s var(--ease) both; }
.mi:hover { border-color: var(--line2); transform: translateX(2px); }
.mi.sel { border-color: var(--gold); background: linear-gradient(90deg, #2b2410, #0b1d48 60%); }
.mi.live::before { content: ''; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; background: var(--live); }
.mi .top { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); gap: 8px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.mi .tm { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; font-size: 14px; }
.mi .tm .sc { font-family: var(--display); font-size: 17px; color: var(--muted); letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.mi .tm.w { color: var(--gold-hi); }
.list-sep { font-size: 10.5px; text-transform: uppercase; letter-spacing: .2em; color: var(--gold); margin: 10px 2px 0; font-weight: 700; }

.control { position: sticky; top: 18px; }
.control .empty { padding: 70px 20px; text-align: center; border: 1px dashed var(--line2); border-radius: 4px; }
.cp { display: grid; gap: 14px; animation: wipeIn .4s var(--ease); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }
.cp::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--gold-line); }
.cp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.cp-head .rd { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.cp-head h3 { margin: 4px 0 0; font-size: 26px; color: var(--text); letter-spacing: .06em; display: flex; align-items: center; gap: 10px; }
.sit { min-height: 24px; display: flex; gap: 6px; justify-content: center; }
.sit .chip { font-size: 11px; animation: wipeIn .35s var(--ease); }
.pads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pad { position: relative; padding: 40px 14px 18px; cursor: pointer; text-align: center; display: grid; gap: 4px; min-height: 236px; align-content: center; overflow: hidden; border: 1px solid; transition: transform .12s var(--ease), filter .2s; -webkit-tap-highlight-color: transparent; user-select: none; }
.pad.a { background: linear-gradient(170deg, #1c3f9e, #0b1f52 70%); border-color: #3d68d6; }
.pad.b { background: linear-gradient(170deg, #4a3a14, #1f1806 70%); border-color: #8a6a26; }
.pad:hover { filter: brightness(1.08); }
.pad:active { transform: scale(.985); }
.pad::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.pad.a::after { background: var(--a); }
.pad.b::after { background: var(--gold-grad); }
.pad .tn { font-family: var(--display); font-size: 24px; font-weight: 800; line-height: 1; text-transform: uppercase; }
.pad .pl { font-size: 12px; color: #c3cde6; }
.pad .pt { font-family: var(--display); font-size: 92px; font-weight: 900; line-height: 1.05; overflow: hidden; height: 1.05em; font-variant-numeric: tabular-nums; }
.pad.a .pt { color: #fff; }
.pad.b .pt { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pad .pt svg { width: 72px; height: 72px; color: var(--gold); stroke-width: 1.4; }
.pad .gm { font-size: 12px; color: #c3cde6; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.pad .hint { position: absolute; top: 10px; right: 10px; font-size: 10.5px; color: #ffffff88; border: 1px solid #ffffff30; border-radius: 3px; padding: 1px 6px; letter-spacing: .06em; }
.pad .serve-ball { position: absolute; top: 12px; left: 12px; font-size: 20px; }
.pad .ripple { position: absolute; border-radius: 50%; background: #ffffff33; transform: scale(0); animation: ripple .6s var(--ease); pointer-events: none; }
.pad.disabled { opacity: .45; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

.sets-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.sets-table td, .sets-table th { padding: 8px; text-align: center; border-bottom: 1px solid var(--line); }
.sets-table th { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }
.sets-table td:first-child, .sets-table th:first-child { text-align: left; }
.sets-table td.cur { font-family: var(--display); font-size: 22px; font-weight: 800; color: var(--gold); overflow: hidden; }
.cp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cp-actions .btn { flex: 1 1 140px; }
.kbd { font-size: 12px; color: var(--muted); text-align: center; }
.kbd kbd { background: var(--panel2); border: 1px solid var(--line2); border-radius: 3px; padding: 1px 6px; font-family: inherit; }
.winner-banner { position: relative; text-align: center; padding: 18px 18px 0; background: radial-gradient(100% 120% at 50% 100%, #2b2410, #0b1d48 70%); border: 1px solid #6b5420; overflow: hidden; display: grid; justify-items: center; }
.winner-banner .k { font-size: 11px; color: var(--gold); letter-spacing: .3em; text-transform: uppercase; font-weight: 700; }
.winner-banner .nm { font-family: var(--display); font-size: 36px; font-weight: 900; text-transform: uppercase; line-height: 1; margin: 6px 0 4px; animation: dropIn .7s .4s var(--spring) both; }
.winner-banner .s { color: var(--muted); font-family: var(--display); font-size: 18px; letter-spacing: .08em; }
.winner-banner .step { width: 160px; height: 46px; margin-top: 12px; background: linear-gradient(180deg, #2b2410, #120e04); border-top: 2px solid var(--gold-hi); transform-origin: bottom; animation: rise .7s .1s var(--ease) both; display: grid; place-items: start center; font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1.3; }
.winner-banner .step span { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.podium-admin { padding: 22px 12px 0; background: radial-gradient(100% 80% at 50% 100%, #0f2f86, #081631 70%); border: 1px solid var(--line); overflow: hidden; }
.podium-admin .podium { --h: 200px; }

.links { padding-left: 18px; display: grid; gap: 6px; word-break: break-all; font-size: 14px; }
.danger-zone { border-color: #5b2232; }

@media (max-width: 1000px) {
  .score-layout { grid-template-columns: 1fr; }
  .control { position: static; order: -1; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; bottom: 0; top: auto; left: 0; right: 0; height: auto; z-index: 20; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); flex-direction: row; background: #030916f5; }
  .brand, .side-foot { display: none; }
  .tabs { grid-template-columns: repeat(6, 1fr); width: 100%; gap: 0; }
  .tabs button { flex-direction: column; gap: 3px; font-size: 9.5px; padding: 8px 0 6px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; justify-content: center; }
  .tabs button::before { left: 28%; right: 28%; top: 0; bottom: auto; width: auto; height: 2px; transform: scaleX(0); }
  .tabs button.active::before { transform: scaleX(1); }
  .tabs button.active { background: transparent; }
  .main { padding: 18px 16px 92px; }
  .main h2 { font-size: 28px; }
  .pad { min-height: 210px; }
  .pad .pt { font-size: 74px; }
}
.sit:empty { display: none; }
