/* ======================================================================
   Superkickoff Lite Web — tema "papan taktik"
   Rumput gelap, garis kapur, kuning kartu = aksi utama, merah kartu = bahaya.
   ====================================================================== */
:root {
  --bg: #0a1f17;
  --bg-2: #0d2a1f;
  --panel: #112f23;
  --panel-2: #183b2c;
  --panel-3: #0b2219;
  --line: #2f6249;
  --line-soft: #1f4535;
  --chalk: #f3f1e6;
  --chalk-2: #c9d8cd;
  --muted: #93b09d;
  --dim: #648672;
  --yellow: #ffd23f;
  --yellow-d: #e8b900;
  --red: #f0524a;
  --red-d: #c93a33;
  --sky: #7cc6ee;
  --lime: #8df0a8;
  --orange: #ff9d42;
  --ink: #0a1f17;

  --f-display: 'Barlow Condensed', 'Roboto Condensed', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --f-body: 'Figtree', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --r: 14px;
  --r-s: 9px;
  --gap: 14px;
  --tab-h: 62px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 72px, rgba(0,0,0,.05) 72px 144px);
  color: var(--chalk);
  font: 15px/1.45 var(--f-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
a { color: var(--sky); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-family: var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.c-yellow { color: var(--yellow); } .c-red { color: var(--red); } .c-lime { color: var(--lime); }
.c-sky { color: var(--sky); } .c-orange { color: var(--orange); } .c-chalk { color: var(--chalk); }
.right { text-align: right; }
.center { text-align: center; }
.grow { flex: 1 1 auto; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: var(--gap); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.bold { font-weight: 700; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------------ shell */
.shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; min-height: 100dvh; }
.rail { display: none; }
.main { min-width: 0; padding: 14px 16px calc(var(--tab-h) + var(--safe-b) + 22px); max-width: 1180px; width: 100%; margin: 0 auto; }
.app--bare .main { padding-bottom: 28px; }
.app--bare .tabbar, .app--bare .topbar, .app--bare .rail { display: none !important; }

.topbar {
  position: sticky; top: 0; z-index: 30; height: 54px; display: flex; align-items: center; gap: 10px;
  padding: 0 14px; background: rgba(10, 31, 23, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar .brand-mini { font: 700 21px/1 var(--f-display); letter-spacing: .04em; }
.topbar .club-chip { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.avatar {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--panel-2); border: 1.5px solid var(--yellow); color: var(--yellow);
  font: 700 14px/1 var(--f-display); letter-spacing: .03em;
}
.avatar.lg { width: 42px; height: 42px; font-size: 17px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-soft); background: var(--panel);
  display: grid; place-items: center; color: var(--chalk-2); flex: none;
}
.icon-btn:hover { background: var(--panel-2); }
.icon-btn.on { color: var(--yellow); border-color: var(--yellow); }
svg.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.ic.fill { fill: currentColor; stroke: none; }
svg.ic.sm { width: 16px; height: 16px; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--tab-h) + var(--safe-b));
  padding-bottom: var(--safe-b); display: grid; grid-template-columns: repeat(7, 1fr);
  background: rgba(8, 24, 18, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
}
.tabbar button {
  border: 0; background: none; color: var(--muted); display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; font-size: 10.5px; font-weight: 600; padding: 4px 0; position: relative; min-width: 0;
}
.tabbar button.active { color: var(--yellow); }
.tabbar button.active::before { content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--yellow); }
.tabbar button .dot { position: absolute; top: 7px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--red); }

@media (min-width: 960px) {
  .shell { grid-template-columns: 256px 1fr; }
  .rail {
    display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; height: 100dvh;
    overflow-y: auto; padding: 22px 14px 16px; background: var(--panel-3); border-right: 1px solid var(--line-soft);
  }
  .topbar, .tabbar { display: none; }
  .main { padding: 28px 32px 40px; }
}

.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.brand .ball { width: 38px; height: 38px; flex: none; }
.brand b { display: block; font: 700 25px/1 var(--f-display); letter-spacing: .05em; }
.brand span { font-size: 12px; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav button {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 10px; background: none;
  color: var(--chalk-2); font-weight: 600; text-align: left; position: relative;
}
.nav button:hover { background: var(--panel); }
.nav button.active { background: var(--panel-2); color: var(--yellow); box-shadow: inset 3px 0 0 var(--yellow); }
.nav button .dot { margin-left: auto; width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }

.club-card { padding: 14px; }
.club-card .name { font: 700 20px/1.1 var(--f-display); letter-spacing: .02em; }
.progress { height: 6px; border-radius: 4px; background: var(--panel-3); overflow: hidden; }
.progress > i { display: block; height: 100%; width: calc(var(--v, 0) * 1%); background: var(--yellow); border-radius: 4px; transition: width .4s ease; }

.music { padding: 12px 14px; }
.music .title { font-weight: 700; font-size: 13.5px; margin: 4px 0 8px; }
.music .ctl { display: flex; align-items: center; gap: 6px; }
.music .ctl button { border: 1px solid var(--line-soft); background: var(--panel-3); border-radius: 8px; height: 32px; min-width: 34px; display: grid; place-items: center; color: var(--chalk-2); }
.music .ctl button.play { background: var(--yellow); color: var(--ink); border-color: var(--yellow); min-width: 44px; }
.music .ctl button:disabled { opacity: .4; cursor: default; }
.music input[type=range] { width: 100%; margin-top: 8px; }

/* ------------------------------------------------------------------ halaman */
.page-head { margin-bottom: 16px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; }
.page-head h1 { font: 700 38px/1 var(--f-display); letter-spacing: .01em; }
.page-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
@media (min-width: 960px) { .page-head h1 { font-size: 46px; } }

.panel { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 16px 18px; }
.panel.flat { padding: 0; }
.panel.chalk { border: 1.5px dashed var(--line); background: transparent; }
.panel.hl { border-color: var(--yellow); }
.panel h2, .ptitle { font-size: 13.5px; font-weight: 700; color: var(--chalk-2); margin-bottom: 10px; letter-spacing: .01em; }
.panel-sub { background: var(--panel-3); border-radius: var(--r-s); padding: 12px 14px; }

.grid { display: grid; gap: var(--gap); }
.cols-2 { grid-template-columns: 1fr; }
.cols-main { grid-template-columns: 1fr; }
@media (min-width: 820px) {
  .cols-2 { grid-template-columns: 1fr 1fr; }
  .cols-main { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
}
.stats-row { grid-template-columns: repeat(2, 1fr); }
.stats-row .panel:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 640px) { .stats-row { grid-template-columns: repeat(5, 1fr); } .stats-row .panel:last-child:nth-child(odd) { grid-column: auto; } }
.stat { padding: 12px 14px; }
.stat .k { font-size: 12.5px; color: var(--muted); }
.stat .v { font: 700 31px/1.1 var(--f-display); }

/* ------------------------------------------------------------------ tombol */
.btn {
  --bg-c: var(--yellow); --fg-c: var(--ink); --bd-c: var(--yellow);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px;
  border-radius: 10px; border: 1.5px solid var(--bd-c); background: var(--bg-c); color: var(--fg-c);
  font-weight: 700; font-size: 14px; line-height: 1.15; text-align: center; transition: transform .08s, filter .15s;
}
.btn:hover:not(:disabled) { filter: brightness(1.08); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .38; cursor: not-allowed; }
.btn.ghost { --bg-c: transparent; --fg-c: var(--chalk); --bd-c: var(--line); }
.btn.ghost:hover:not(:disabled) { background: var(--panel-2); filter: none; }
.btn.danger { --bg-c: var(--red); --fg-c: #fff; --bd-c: var(--red); }
.btn.sky { --bg-c: transparent; --fg-c: var(--sky); --bd-c: var(--sky); }
.btn.green { --bg-c: var(--lime); --fg-c: var(--ink); --bd-c: var(--lime); }
.btn.sm { min-height: 32px; padding: 4px 11px; font-size: 12.5px; border-radius: 8px; }
.btn.xs { min-height: 28px; padding: 3px 9px; font-size: 12px; border-radius: 7px; }
.btn.lg { min-height: 50px; font-size: 16px; padding: 10px 22px; }
.btn.block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row .btn { flex: 1 1 140px; }

/* ------------------------------------------------------------------ chip & pil */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--panel-3); color: var(--chalk-2); border: 1px solid var(--line-soft); white-space: nowrap; }
.chip.y { color: var(--yellow); border-color: rgba(255, 210, 63, .45); }
.chip.r { color: var(--red); border-color: rgba(240, 82, 74, .5); }
.chip.o { color: var(--orange); border-color: rgba(255, 157, 66, .5); }
.chip.s { color: var(--sky); border-color: rgba(124, 198, 238, .45); }
.chip.g { color: var(--lime); border-color: rgba(141, 240, 168, .4); }
.pos { display: inline-grid; place-items: center; width: 34px; height: 22px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .03em; flex: none; }
.pos-GK { background: #3a3208; color: var(--yellow); }
.pos-DF { background: #123a52; color: var(--sky); }
.pos-MF { background: #11452d; color: var(--lime); }
.pos-FW { background: #4d1d1a; color: #ff8d86; }
.ovr { display: inline-grid; place-items: center; min-width: 38px; height: 24px; padding: 0 6px; border-radius: 6px; background: var(--panel-3); font: 700 16px/1 var(--f-display); flex: none; }
.lv-hi { color: var(--lime); } .lv-ok { color: var(--yellow); } .lv-mid { color: var(--orange); } .lv-lo { color: var(--red); }
.form-chips { display: inline-flex; gap: 3px; }
.form-chips i { width: 19px; height: 19px; border-radius: 5px; display: grid; place-items: center; font: 800 10px/1 var(--f-body); font-style: normal; background: var(--panel-3); color: var(--dim); }
.form-chips i.M { background: var(--lime); color: var(--ink); }
.form-chips i.S { background: #4c6a5a; color: var(--chalk); }
.form-chips i.K { background: var(--red); color: #fff; }

.bar { height: 8px; border-radius: 5px; background: var(--panel-3); overflow: hidden; }
.bar > i { display: block; height: 100%; width: calc(var(--v) * 1%); background: var(--c, var(--lime)); border-radius: 5px; }
.bar.vs { background: var(--red-d); }
.bar.vs > i { background: var(--lime); }

/* ------------------------------------------------------------------ form */
select, input[type=text], input[type=password] {
  background: var(--panel-3); border: 1.5px solid var(--line-soft); color: var(--chalk); border-radius: 9px; padding: 8px 10px;
  min-height: 38px; max-width: 100%; outline: none;
}
select { appearance: none; -webkit-appearance: none; padding-right: 30px; font-weight: 600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2393b09d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
select:focus, input:focus { border-color: var(--yellow); }
label.fld { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.fld-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fld-row > .lab { width: 64px; flex: none; font-size: 12.5px; font-weight: 600; color: var(--muted); }
input[type=range] { -webkit-appearance: none; appearance: none; height: 22px; background: transparent; width: 100%; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 4px; background: var(--panel-3); border: 1px solid var(--line-soft); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 4px; background: var(--panel-3); border: 1px solid var(--line-soft); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 13.5px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .tr { width: 40px; height: 22px; border-radius: 12px; background: var(--panel-3); border: 1.5px solid var(--line); position: relative; transition: background .15s; flex: none; }
.switch .tr::after { content: ''; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--chalk-2); transition: transform .15s; }
.switch input:checked + .tr { background: var(--yellow); border-color: var(--yellow); }
.switch input:checked + .tr::after { transform: translateX(18px); background: var(--ink); }
.switch input:focus-visible + .tr { outline: 2px solid var(--yellow); outline-offset: 2px; }

.seg { display: inline-flex; max-width: 100%; overflow-x: auto; gap: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 12px; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; border: 0; background: none; color: var(--chalk-2); padding: 7px 14px; border-radius: 9px; font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.seg button.active { background: var(--yellow); color: var(--ink); }
.seg button:not(.active):hover { background: var(--panel-2); }
.seg.sm button { padding: 5px 11px; font-size: 12.5px; }

/* ------------------------------------------------------------------ daftar */
.list { display: flex; flex-direction: column; gap: 6px; }
.item { display: flex; align-items: center; gap: 10px; background: var(--panel-3); border-radius: 11px; padding: 9px 11px; min-width: 0; }
.item.hl { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.item.mine { background: #14402e; box-shadow: inset 3px 0 0 var(--yellow); }
.item .nm { font-weight: 700; min-width: 0; }
.item .sub { font-size: 12px; color: var(--muted); }
.item.off { opacity: .55; }

.sq-row { display: grid; align-items: center; gap: 6px 10px; background: var(--panel-3); border-radius: 11px; padding: 8px 10px;
  grid-template-columns: auto 34px minmax(0, 1fr) auto; grid-template-areas: 'xi pos nm ovr' '. . meta meta'; }
.sq-row.starter { background: var(--panel-2); box-shadow: inset 3px 0 0 var(--lime); }
.sq-row .xi { grid-area: xi; } .sq-row .pos { grid-area: pos; } .sq-row .nm { grid-area: nm; min-width: 0; } .sq-row .o { grid-area: ovr; }
.sq-row .meta { grid-area: meta; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.sq-row .meta b { color: var(--chalk-2); }
.xi-btn { min-width: 62px; }
@media (min-width: 900px) {
  .sq-row { grid-template-columns: 74px 36px minmax(150px, 1.6fr) 46px 44px 52px 54px 40px 36px 74px 32px; grid-template-areas: none; padding: 6px 10px; }
  .sq-row > * { grid-area: auto !important; }
  .sq-row .meta { display: contents; }
  .sq-row .meta > span { display: block; }
  .sq-row .meta .lbl { display: none; }
  .sq-head { display: grid; grid-template-columns: 74px 36px minmax(150px, 1.6fr) 46px 44px 52px 54px 40px 36px 74px 32px; gap: 6px 10px; padding: 6px 10px; font-size: 11.5px; font-weight: 700; color: var(--muted); }
}
.sq-head { display: none; }
@media (min-width: 900px) { .sq-head { display: grid; } }

/* ------------------------------------------------------------------ scoreboard */
.board {
  background: #061510; border: 1.5px solid var(--line); border-radius: 16px; padding: 18px 16px 14px; position: relative; overflow: hidden;
  box-shadow: inset 0 0 0 4px #0b241a, inset 0 0 0 5px var(--line-soft);
}
.board .teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px 14px; }
.board .team b { display: block; font: 700 24px/1.05 var(--f-display); letter-spacing: .02em; }
.board .team span { font-size: 12.5px; color: var(--muted); }
.board .team.h { text-align: right; } .board .team.a { text-align: left; }
.board .team.me b { color: var(--yellow); }
.board .mid { text-align: center; }
.board .score { font: 700 64px/0.95 var(--f-display); letter-spacing: .04em; color: var(--chalk); text-shadow: 0 0 18px rgba(255, 210, 63, .18); white-space: nowrap; }
.board .clock { display: inline-block; margin-top: 6px; padding: 2px 14px; border-radius: 999px; background: #0d2f22; border: 1px solid var(--line); font: 700 18px/1.3 var(--f-display); color: var(--yellow); letter-spacing: .06em; }
.board .meta { text-align: center; margin-top: 10px; font-size: 12.5px; color: var(--muted); display: flex; justify-content: center; gap: 6px 14px; flex-wrap: wrap; }
.board .progress { margin-top: 12px; }
@media (min-width: 700px) { .board .team b { font-size: 32px; } .board .score { font-size: 88px; } .board { padding: 24px 28px 16px; } }
@media (max-width: 420px) { .board .team b { font-size: 19px; } .board .score { font-size: 52px; } }

.vs-pill { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px dashed var(--line); font: 700 20px/1 var(--f-display); color: var(--muted); }

/* ------------------------------------------------------------------ lapangan */
.pitch-wrap { width: 100%; max-width: 440px; margin: 0 auto; }
.pitch {
  position: relative; width: 100%; aspect-ratio: 7 / 8; border-radius: 12px; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: none;
  background: repeating-linear-gradient(180deg, #1b6a43 0 12.5%, #18603d 12.5% 25%); border: 2px solid #2c7d55; --tok: clamp(34px, 9.5vw, 44px);
}
.pitch.small { --tok: 26px; }
.pitch svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pitch svg.lines * { fill: none; stroke: rgba(243, 241, 230, .55); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.tok { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; width: calc(var(--tok) * 1.9); cursor: grab; touch-action: none; z-index: 2; }
.tok .c { position: relative; width: var(--tok); height: var(--tok); border-radius: 50%; display: grid; place-items: center; font: 700 calc(var(--tok) * .44)/1 var(--f-display); color: var(--ink); border: 3px solid var(--ring, var(--lime)); background: var(--pc, var(--lime)); box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.tok.GK { --pc: var(--yellow); } .tok.DF { --pc: var(--sky); } .tok.MF { --pc: #aef5c0; } .tok.FW { --pc: #ff9a92; }
.tok .n { font-size: 10.5px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.7); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.1; }
.tok .e { width: calc(var(--tok) * .9); height: 4px; border-radius: 3px; background: rgba(0,0,0,.45); overflow: hidden; }
.tok .e i { display: block; height: 100%; width: calc(var(--v) * 1%); background: var(--ring, var(--lime)); }
.tok .cap { position: absolute; top: -5px; right: -6px; width: 16px; height: 16px; border-radius: 50%; background: var(--yellow); color: var(--ink); font: 800 10px/16px var(--f-body); text-align: center; border: 1.5px solid var(--bg); }
.tok .warn { position: absolute; top: -6px; left: -6px; width: 16px; height: 16px; border-radius: 50%; background: var(--red); color: #fff; font: 800 11px/16px var(--f-body); text-align: center; }
.pitch.small .tok .n, .pitch.small .tok .e { display: none; }
.pitch.small .tok .c { border-width: 2px; font-size: 11px; }
.tok.sel .c, .tok.drop-hot .c { outline: 3px solid var(--chalk); outline-offset: 2px; }
.tok.dragging { opacity: .35; }
.pitch.interactive .tok:hover .c { filter: brightness(1.1); }
.lv-ring-hi { --ring: var(--lime); } .lv-ring-ok { --ring: var(--yellow); } .lv-ring-mid { --ring: var(--orange); } .lv-ring-lo { --ring: var(--red); }

.gp { display: grid; gap: var(--gap); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .gp { grid-template-columns: minmax(300px, 440px) minmax(0, 1fr); } }
.bench { display: flex; flex-direction: column; gap: 5px; max-height: 520px; overflow-y: auto; padding-right: 2px; }
.b-row { display: flex; align-items: center; gap: 8px; background: var(--panel-3); border-radius: 10px; padding: 7px 9px; border: 2px solid transparent; cursor: grab; min-width: 0; }
.b-row .nm { font-weight: 700; font-size: 13.5px; min-width: 0; flex: 1 1 auto; }
.b-row .handle { width: 28px; height: 30px; display: grid; place-items: center; color: var(--dim); touch-action: none; flex: none; cursor: grab; }
.b-row.sel { border-color: var(--chalk); background: var(--panel-2); }
.b-row.drop-hot { border-color: var(--yellow); background: #2a3a1c; }
.b-row.dragging { opacity: .35; }
.b-row.off { opacity: .5; cursor: not-allowed; }
.drag-ghost { position: fixed; z-index: 200; pointer-events: none; transform: translate(-50%, -120%); background: var(--yellow); color: var(--ink); font-weight: 800; padding: 6px 12px; border-radius: 9px; box-shadow: 0 6px 20px rgba(0,0,0,.5); font-size: 13px; white-space: nowrap; }
.hint { font-size: 12.5px; color: var(--muted); }

/* ------------------------------------------------------------------ pertandingan */
.log {
  background: var(--panel-3); border-radius: 11px; padding: 10px 12px; height: clamp(240px, 46vh, 460px); overflow-y: auto; font-size: 14px; line-height: 1.5;
  scroll-behavior: smooth;
}
.log p { padding: 4px 0 4px 10px; border-left: 3px solid var(--line-soft); margin: 2px 0; }
.log p.goal { border-left-color: var(--lime); color: var(--lime); font-weight: 700; background: linear-gradient(90deg, rgba(141,240,168,.10), transparent); }
.log p.yellow { border-left-color: var(--yellow); color: var(--yellow); }
.log p.red { border-left-color: var(--red); color: var(--red); font-weight: 700; }
.log p.injury { border-left-color: var(--orange); color: var(--orange); }
.log p.info { border-left-color: var(--sky); color: var(--sky); }
.log p.ft { border-left-color: var(--yellow); color: var(--yellow); font-weight: 800; }
.log p.dim { color: var(--muted); }
.log p.chance { color: var(--chalk); }
.statline { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; font-weight: 700; margin-top: 8px; }
.statline .k { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.statline span:last-child { text-align: right; }
.vsbar { height: 5px; border-radius: 3px; background: var(--sky); overflow: hidden; margin-top: 3px; }
.vsbar > i { display: block; height: 100%; width: calc(var(--v) * 1%); background: var(--lime); }

.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(4, 14, 10, .78); display: flex; align-items: stretch; justify-content: center; padding: 0; }
.overlay .sheet { width: 100%; max-width: 1020px; background: var(--bg); border: 1.5px solid var(--yellow); display: flex; flex-direction: column; overflow: hidden; }
.overlay .sheet-head { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--panel-3); }
.overlay .sheet-body { padding: 14px 16px; overflow-y: auto; flex: 1 1 auto; }
.overlay .sheet-foot { padding: 12px 16px calc(12px + var(--safe-b)); border-top: 1px solid var(--line-soft); display: flex; gap: 10px; background: var(--panel-3); }
@media (min-width: 900px) { .overlay { padding: 28px; } .overlay .sheet { border-radius: 16px; } }

/* ------------------------------------------------------------------ modal & toast */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(4, 14, 10, .72); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal { width: 100%; max-width: 480px; background: var(--panel); border: 1.5px solid var(--line); border-radius: 18px; padding: 22px 22px 18px; box-shadow: 0 20px 60px rgba(0,0,0,.55); max-height: 92vh; overflow-y: auto; }
.modal.wide { max-width: 560px; }
.modal h3 { font: 700 27px/1.1 var(--f-display); margin-bottom: 6px; }
.modal .msg { color: var(--chalk-2); margin: 6px 0 16px; white-space: pre-line; }
.modal .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.modal .btns .btn { flex: 1 1 130px; }
@media (max-width: 560px) { .modal-back { place-items: end center; padding: 0; } .modal { border-radius: 18px 18px 0 0; max-height: 94vh; padding-bottom: calc(18px + var(--safe-b)); } }
@keyframes pop { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal { animation: pop .18s ease-out; }

#toasts { position: fixed; z-index: 300; left: 12px; right: 12px; top: 62px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; align-items: center; }
.toast { pointer-events: auto; max-width: 440px; width: 100%; display: flex; align-items: flex-start; gap: 10px; background: var(--panel-2); border: 1.5px solid var(--lime); border-radius: 12px; padding: 10px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.45); font-size: 14px; animation: pop .2s ease-out; }
.toast.err { border-color: var(--red); } .toast.info { border-color: var(--sky); }
.toast .ti { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--lime); color: var(--ink); }
.toast.err .ti { background: var(--red); color: #fff; } .toast.info .ti { background: var(--sky); }
@media (min-width: 960px) { #toasts { left: auto; right: 24px; top: auto; bottom: 24px; align-items: flex-end; } }

/* ------------------------------------------------------------------ auth & pilih klub */
.auth { min-height: calc(100dvh - 40px); display: grid; align-items: center; gap: 28px; grid-template-columns: 1fr; max-width: 980px; margin: 0 auto; }
@media (min-width: 860px) { .auth { grid-template-columns: 1.1fr 1fr; } }
.hero-word { font: 700 clamp(56px, 13vw, 120px)/.86 var(--f-display); letter-spacing: .01em; text-transform: uppercase; }
.hero-word em { display: block; font-style: normal; color: var(--yellow); }
.auth .tagline { color: var(--chalk-2); font-size: 17px; max-width: 30ch; margin-top: 16px; }
.auth form { display: flex; flex-direction: column; gap: 14px; }
.err-msg { color: var(--red); font-size: 13.5px; min-height: 1.3em; font-weight: 600; }

.club-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .club-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .club-grid { grid-template-columns: repeat(4, 1fr); } }
.club-pick { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.club-pick .nm { font: 700 24px/1.05 var(--f-display); }
.club-pick .big { font: 700 40px/1 var(--f-display); }

/* ------------------------------------------------------------------ tabel liga */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0 4px; }
.tbl th { font-size: 11.5px; font-weight: 700; color: var(--muted); text-align: right; padding: 4px 8px; white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: center; width: 34px; }
.tbl th.l, .tbl td.l { text-align: left; }
.tbl td { padding: 9px 8px; background: var(--panel-3); text-align: right; font-variant-numeric: tabular-nums; }
.tbl td:first-child { border-radius: 9px 0 0 9px; font-weight: 800; }
.tbl td:last-child { border-radius: 0 9px 9px 0; }
.tbl tr.mine td { background: #14402e; }
.tbl tr.mine td:first-child { box-shadow: inset 3px 0 0 var(--yellow); }
.tbl td.pts { font: 700 19px/1 var(--f-display); color: var(--yellow); }
@media (max-width: 640px) { .hide-s { display: none; } .tbl td, .tbl th { padding-left: 5px; padding-right: 5px; } }

.chart { width: 100%; height: 170px; display: block; background: var(--panel-3); border-radius: 11px; }
.hist-bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; background: var(--panel-3); border-radius: 10px; padding: 8px; }
.hist-bars div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; font-size: 11px; font-weight: 800; }
.hist-bars i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--c); min-height: 4px; }

.kv { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14px; }
.kv > span:first-child { color: var(--muted); }
.kv > span:last-child { font-weight: 700; text-align: right; }
.stat-bar { display: grid; grid-template-columns: 100px 1fr 40px; align-items: center; gap: 8px; margin: 5px 0; font-size: 13px; }
.stat-bar > span:first-child { color: var(--muted); } .stat-bar > span:last-child { text-align: right; font-weight: 800; }
.ach { display: flex; align-items: center; gap: 12px; }
.ach .ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); color: var(--dim); flex: none; }
.ach.got .ico { background: var(--yellow); color: var(--ink); }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }
.loading { display: grid; place-items: center; padding: 60px 0; color: var(--muted); }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-soft); border-top-color: var(--yellow); animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* tambahan */
.hide-m { display: none; }
@media (min-width: 820px) { .hide-m { display: block; } .only-m { display: none !important; } }
@media (max-width: 819px) { [data-tab="Beli"] .tr-sell { display: none; } [data-tab="Jual"] .tr-buy { display: none; } }
.item.mk { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: 'pos nm ovr' 'act act act'; gap: 6px 10px; align-items: center; }
.item.mk > .pos { grid-area: pos; } .item.mk > .nmb { grid-area: nm; min-width: 0; } .item.mk > .o { grid-area: ovr; }
.item.mk > .act { grid-area: act; display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.item.mk > .act .price { margin-right: auto; font: 700 18px/1 var(--f-display); }
.ptitle { font-size: 13.5px; font-weight: 700; color: var(--chalk-2); margin-bottom: 8px; }
.tabs-row { margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }

/* perbaikan kecil */
.brand b { font-size: 21px; white-space: nowrap; }
.brand > div { min-width: 0; }
.topbar .club-chip .tiny, .topbar .club-chip .small { white-space: nowrap; }
.topbar .club-chip > div:first-child { max-width: 96px; }
