/* Efsane Ligi, "gece maçı" look: gold laurel for the legend layer (brand, stars, ranks), night turf, chalk lines, floodlight yellow for the one main action,
   and the club's own kit colour (--kit, set from JS) as the accent everywhere. */
:root {
  --bg: #0a1410; --panel: #133524; --panel2: #1b4430; --line: #2b5a3f; --deep: #0b1f15;
  --text: #f2f5ec; --muted: #9fb8a6; --accent: #ffd23f; --red: #e8483b; --blue: #2f7fe0; --green: #3fae5a; --live: #3fdc7a; --warn: #ff9b3d;
  --kit: #e8483b; --kit2: #e8483b; --kit-ink: #fff;
  --gold: #f4c542; --gold-hi: #ffe58a; --gold-lo: #b8862b;
  --goldgrad: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sys: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cut: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
  --para: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--body); }
a { color: var(--accent); }
h1, h2, h3, .disp { font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: .01em; line-height: .95; text-wrap: balance; }
.num { font-variant-numeric: tabular-nums; }

/* top bar (HUD) */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; background: linear-gradient(#08100c, #0c1a13);
  border-bottom: 3px solid; border-image: linear-gradient(90deg, var(--kit) 50%, var(--kit2) 50%) 1; position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 2px 4px #0008); }
.brand span { display: grid; line-height: .82; }
.brand b { font: 900 italic 24px/.9 var(--display); letter-spacing: .05em; background: var(--goldgrad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand i { font: 800 italic 14px/1 var(--display); letter-spacing: .48em; color: var(--gold); padding-left: 2px; }
.gold { background: var(--goldgrad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars { color: var(--gold); letter-spacing: .12em; font-size: 15px; text-shadow: 0 1px 0 #0008; }
nav { display: flex; align-items: center; gap: 4px; }
nav a { display: flex; align-items: center; gap: 6px; padding: 7px 12px; color: var(--muted); text-decoration: none; font: 800 italic 17px/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
nav a svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
nav a.on { color: var(--text); box-shadow: inset 0 -3px 0 var(--accent); }
nav a.play { background: var(--accent); color: #161200; clip-path: var(--para); padding: 8px 16px; }
nav a:focus-visible, .btn:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; }
/* phones: the menu becomes a bottom tab bar, "Oyna" in the middle */
@media (max-width: 700px) {
  nav.tabs-on { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
    background: #06100b; border-top: 2px solid var(--kit); padding-bottom: env(safe-area-inset-bottom, 0px); }
  nav.tabs-on a { flex-direction: column; gap: 3px; padding: 9px 0 8px; font: 700 10px/1 var(--body); letter-spacing: .06em; }
  nav.tabs-on a svg { width: 22px; height: 22px; }
  nav.tabs-on a.on { box-shadow: none; color: var(--accent); }
  nav.tabs-on a.play { order: 0; margin: -12px 6px 0; padding-top: 12px; }
  body.has-tabs main { padding-bottom: 90px; }
  body.has-tabs .toast { bottom: 84px; }
}

main { max-width: 1040px; margin: 0 auto; padding: 18px 16px 40px; }
h1 { font-size: 40px; margin: 6px 0 6px; }
h2 { font-size: 21px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.card > h2::before, .ph > h2::before { content: ""; flex: none; width: 4px; height: 17px; background: var(--kit); transform: skewX(-14deg); }
.muted { color: var(--muted); }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card { background: linear-gradient(180deg, #16392a, #102a1e); padding: 16px; clip-path: var(--cut); min-width: 0; }
.card.wide { grid-column: 1 / -1; }
.ph { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.ph > h2 { margin: 0; }
.hero { position: relative; padding: 34px 18px; text-align: center; overflow: hidden; margin-bottom: 16px; clip-path: var(--cut);
  background: radial-gradient(50% 80% at 50% -10%, #f4c54240, transparent 70%), repeating-linear-gradient(90deg, #17402a 0 70px, #1c4d33 70px 140px); }
.hero h1 { font-size: clamp(36px, 7vw, 64px); }
.hero .emblem { width: 96px; height: 96px; margin: 0 auto 10px; display: block; filter: drop-shadow(0 6px 18px #0009); }
.hero .kicker { font: 800 13px/1 var(--body); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin: 0 auto 10px; padding-left: .32em; }
.hero p { max-width: 560px; margin: 10px auto 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; padding: 10px 18px; font: 800 italic 18px/1 var(--display); text-transform: uppercase; letter-spacing: .03em;
  cursor: pointer; text-decoration: none; background: #ffffff14; color: var(--text); clip-path: var(--para); box-shadow: inset 0 0 0 2px #ffffff26; }
.btn.primary { background: var(--accent); color: #161200; box-shadow: inset 0 -4px 0 #0003; }
.btn.green { background: var(--green); color: #fff; box-shadow: inset 0 -4px 0 #0003; }
.btn.wa { background: #25d366; color: #05210f; box-shadow: inset 0 -4px 0 #0002; }
.btn.big { font-size: 24px; padding: 13px 26px; }
.btn.small { padding: 7px 12px; font-size: 15px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn:hover:not(:disabled) { filter: brightness(1.08); }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
input, select { background: var(--deep); color: var(--text); border: 1px solid var(--line); border-radius: 2px; padding: 10px 12px; font: 15px var(--body); min-width: 0; }
input { flex: 1; }
ul.list { list-style: none; padding: 0; margin: 0; }
ul.list li { padding: 8px 0; border-bottom: 1px solid #ffffff14; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
ul.list li:last-child { border-bottom: 0; }
.badge { font: 700 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 5px 8px; background: #0007; color: var(--muted); white-space: nowrap; display: inline-block; }
.badge.gold { background: var(--accent); color: #1a1400; }
.badge.ok, .badge.live { background: var(--live); color: #002b10; }
.badge.kit { background: var(--kit); color: var(--kit-ink); }
.progress { height: 10px; background: var(--deep); overflow: hidden; margin: 8px 0; }
.progress > div { height: 100%; background: var(--accent); }
.big { font: 900 italic 40px/1 var(--display); }
.copy { font-family: ui-monospace, monospace; font-size: 13px; word-break: break-all; background: var(--deep); padding: 8px; border: 1px solid var(--line); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #000d; padding: 10px 16px; max-width: 90vw; z-index: 9; border-left: 4px solid var(--accent); }
.notif { font-size: 14px; }
.notif time { color: var(--muted); font-size: 12px; margin-right: 6px; }
.cover-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cover-wrap canvas { width: auto; height: auto; max-width: min(360px, 92vw); max-height: 62vh; border-radius: 4px; box-shadow: 0 10px 40px #0008; }
.cover-wrap .center, .center { text-align: center; justify-content: center; }
.cover-wrap .small { font-size: 13px; }
.cover-wrap > p.small { max-width: 420px; margin: 0; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.btn.ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); color: #fff; box-shadow: none; }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); padding: 3px; }
.seg button { background: none; border: 0; color: var(--muted); padding: 7px 14px; font: 800 italic 16px var(--display); text-transform: uppercase; cursor: pointer; clip-path: var(--para); }
.seg button.on { background: var(--accent); color: #1a1a1a; }
.stat { text-align: center; }
.stat b { display: block; font: 900 italic 32px/1 var(--display); }
@media (max-width: 600px) { h1 { font-size: 32px; } .top { padding: 10px 14px; } }

.swatch { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #ffffff40; cursor: pointer; padding: 0; }
.swatch.on { border: 3px solid #ffe14d; box-shadow: 0 0 0 2px #00000080; }
.swatch:disabled { cursor: default; opacity: .85; }

/* ---------- game pieces: crest, kit slots, pitch, ticket, vs ---------- */
.crest { width: var(--s, 44px); height: calc(var(--s, 44px) * 1.16); flex: none; display: block; }
.crest .f { fill: var(--c, var(--kit)); }
.crest .f2 { fill: var(--c2, var(--kit2)); }
.crest.yaka .s { stroke: var(--c2, var(--kit2)); stroke-width: 7; }
.crest .s { fill: none; stroke: var(--text); stroke-width: 4; }
.crest text { fill: var(--ci, var(--kit-ink)); font: 900 italic 34px var(--display); }
.crest.ghost .f, .crest.ghost .f2 { fill: #ffffff10; } .crest.ghost .s { stroke: #ffffff45; stroke-dasharray: 5 5; } .crest.ghost text { fill: #ffffff55; }
.club-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px 18px; margin-bottom: 12px; clip-path: var(--cut);
  background: linear-gradient(100deg, color-mix(in srgb, var(--kit) 55%, #000) 0%, color-mix(in srgb, var(--kit2) 45%, #000) 28%, #0e2419 62%), #0e2419; }
.club-hero h1 { font-size: clamp(34px, 6vw, 52px); margin: 0 0 8px; overflow-wrap: anywhere; }
.club-hero .acts { display: grid; gap: 8px; justify-items: end; }
@media (max-width: 640px) { .club-hero { grid-template-columns: auto minmax(0, 1fr); } .club-hero .acts { grid-column: 1 / -1; justify-items: stretch; } }
.field-now { padding: 10px 14px; margin-bottom: 12px; background: #0b2a19; border-left: 4px solid var(--live); }
.slots { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 12px; }
.slots svg { width: 32px; height: 32px; }
.slots .on path { fill: var(--kit); stroke: var(--text); stroke-width: 3; }
.slots .on path.k2 { fill: var(--kit2); stroke: none; }
.slots .off path.k2 { display: none; }
.slots .off path { fill: #ffffff0d; stroke: #ffffff50; stroke-width: 3; stroke-dasharray: 5 5; }
.ticket { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.ticket .t { font: 900 italic 54px/.9 var(--display); color: var(--accent); }
.ticket .cd { font: 700 14px/1.25 var(--body); color: var(--muted); }
.ticket .cd b { font: 900 italic 24px/1 var(--display); color: var(--text); display: block; }
.pitch { position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: min(760px, 100%); margin-inline: auto; margin-bottom: 8px; border: 2px solid #ffffffb0;
  background: repeating-linear-gradient(90deg, #1f6b3d 0 12.5%, #237544 12.5% 25%); }
.pitch::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 2px solid #ffffffb0; }
.pitch::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20%; aspect-ratio: 1; border: 2px solid #ffffffb0; border-radius: 50%; transform: translate(-50%, -50%); }
.pitch .box { position: absolute; top: 26%; bottom: 26%; width: 13%; border: 2px solid #ffffffb0; }
.pitch .box.l { left: -2px; } .pitch .box.r { right: -2px; }
.tok { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 3px; z-index: 1; max-width: 22%; }
.tok i { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--kitbg, var(--kit)); text-shadow: 0 1px 2px #0009; border: 2px solid #fff; box-shadow: 0 2px 0 #0007;
  font: 900 italic 15px/24px var(--display); color: var(--kit-ink); text-align: center; text-transform: uppercase; }
.tok i.empty { background: #0004; border: 2px dashed #ffffffb0; }
.tok i b { position: absolute; top: -7px; right: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); color: #000; font: 900 10px/16px var(--body); font-style: normal; }
.tok span { font: 700 11px/1.1 var(--body); background: #000b; padding: 2px 5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; text-align: center; margin-bottom: 10px; justify-items: center; }
.vs .v { font: 900 italic 38px/1 var(--display); color: var(--accent); }
.vs small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.feed li { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.feed time { font: 800 italic 16px/1.2 var(--display); color: var(--accent); text-align: right; }
.jerseys { display: flex; gap: 6px; flex-wrap: wrap; }
.jersey { width: 46px; height: 46px; padding: 3px; background: none; border: 0; cursor: pointer; }
.jersey.pat { width: 74px; height: auto; display: grid; justify-items: center; gap: 2px; }
.jersey.pat svg { width: 42px; height: 42px; }
.jersey small { font: 700 10px/1.1 var(--body); color: var(--muted); text-align: center; }
.jersey:disabled { opacity: .25; }
.kitbox { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: start; }
.kitprev { background: radial-gradient(circle at 50% 40%, #ffffff18, transparent 70%); padding: 6px; }
.kitprev svg { width: 100%; height: auto; filter: drop-shadow(0 8px 14px #0008); }
.kitprev path { stroke: #ffffffb0; stroke-width: 1.5; }
.kitprev path.k2 { stroke: none; }
.kitrows { display: grid; gap: 14px; min-width: 0; }
.kitcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.kitcols .jerseys { gap: 2px; }
.kitcols .jersey { width: 40px; height: 40px; }
.kitrows .lbl { display: block; font: 700 11px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
@media (max-width: 560px) { .kitbox { grid-template-columns: 1fr; } .kitprev { width: 130px; margin: 0 auto; } }
.jersey path { stroke: #ffffffaa; stroke-width: 3; }
.jersey path.k2 { stroke: none; }
.jersey.on { outline: 3px solid var(--accent); outline-offset: 1px; }
.jersey:disabled { cursor: default; }
.sb { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; background: var(--deep); padding: 8px 10px; font-size: 13px; }
.sb + .sb { margin-top: 6px; }
.sb .sc { font: 900 italic 24px/1 var(--display); min-width: 54px; }
.sb .r { font: 900 italic 22px/1 var(--display); width: 22px; text-align: center; }
.sb .w { color: var(--live); } .sb .l { color: #ff6b5e; } .sb .d { color: var(--muted); }
.sb .tx { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Acil oyuncu: radar, rank, call cards */
.radar { position: relative; width: min(220px, 100%); aspect-ratio: 1; margin: 6px auto 14px; border-radius: 50%; overflow: hidden;
  background: repeating-radial-gradient(circle, #3fdc7a22 0 1px, transparent 1px 34px), #0b2016; border: 2px solid #3fdc7a66; }
.radar::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #3fdc7a66, transparent 25%); animation: sweep 3s linear infinite; }
.radar.off { filter: grayscale(1); opacity: .45; } .radar.off::before { animation: none; }
.radar .me { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 900 italic 18px var(--display); background: var(--live); color: #002b10; padding: 4px 9px; }
.radar.off .me { background: #ffffff30; color: var(--text); }
@keyframes sweep { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .radar::before { animation: none; } }
.avail { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #0006; padding: 10px 12px; flex-wrap: wrap; }
.rank { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.hex { width: 56px; height: 62px; flex: none; display: grid; place-items: center; background: var(--goldgrad); color: #1a1400; font: 900 italic 26px/1 var(--display);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.calls { display: grid; gap: 8px; }
.call { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--deep); padding: 10px 12px; border-left: 4px solid var(--warn); }
.call h3 { font-size: 21px; margin: 0 0 3px; overflow-wrap: anywhere; }
.call .info { font-size: 13px; color: var(--muted); }
.call .need { color: var(--warn); font-weight: 700; }
.call .act { display: grid; gap: 6px; justify-items: end; }
.timer { font: 900 italic 20px/1 var(--display); color: var(--warn); }
.empty-state { text-align: center; padding: 18px 8px; color: var(--muted); }
@media (max-width: 480px) { .call { grid-template-columns: auto minmax(0, 1fr); } .call .act { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; } }

/* Profil: player card, medals, locker */
.prof { display: grid; grid-template-columns: minmax(220px, 270px) minmax(0, 1fr); gap: 12px; align-items: start; }
@media (max-width: 640px) { .prof { grid-template-columns: 1fr; } .pcard { width: min(270px, 100%); margin: 0 auto; } }
.pcard { position: relative; aspect-ratio: 5 / 7; padding: 18px 18px 0; display: grid; grid-template-rows: auto 1fr auto; color: var(--kit-ink); text-shadow: 0 1px 3px #0007;
  background: linear-gradient(170deg, #ffffff30, transparent 35%, #0000 60%, #0007), var(--kitcard, var(--kit)); clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%); }
/* gold foil frame: the legend card */
.pcard::before { content: ""; position: absolute; inset: 0; background: var(--goldgrad); clip-path: inherit; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); padding: 6px; }
.pcard .stars { text-align: center; font-size: 18px; min-height: 22px; }
.pcard .top2 { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.pcard .ini { font: 900 italic 56px/1 var(--display); }
.pcard .pos { font: 800 12px/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; text-align: right; opacity: .9; }
.pcard .fig { display: grid; place-items: center; }
.pcard .fig svg { width: 58%; filter: drop-shadow(0 6px 10px #0008); }
.pcard .fig path { fill: color-mix(in srgb, var(--kit-ink) 18%, transparent); stroke: color-mix(in srgb, var(--kit-ink) 70%, transparent); stroke-width: 2; }
.pcard .nm { font: 900 italic 30px/1 var(--display); text-transform: uppercase; text-align: center; border-top: 2px solid color-mix(in srgb, var(--kit-ink) 45%, transparent); padding-top: 8px; overflow-wrap: anywhere; }
.pcard .st { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin: 8px 0 18%; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.pcard .st b { display: block; font: 900 italic 26px/1 var(--display); }
.side { display: grid; gap: 12px; min-width: 0; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; text-align: center; }
.trio b { display: block; font: 900 italic 34px/1 var(--display); }
.trio span { font-size: 12px; color: var(--muted); }
.medals { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.medal { background: var(--deep); padding: 10px; display: grid; gap: 4px; }
.medal .m { font: 900 italic 26px/1 var(--display); color: var(--accent); }
.medal.none .m { color: #ffffff40; }
.medal small { color: var(--muted); font-size: 12px; }
.locker { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.locker > div { background: var(--deep); padding: 10px; display: grid; gap: 6px; align-content: space-between; font-size: 13px; border: 1px solid #ffffff14; }
.locker > div.worn { border: 2px solid var(--accent); background: #1d3a28; }
.locker > div.locked { color: #ffffff60; }
.locker b { font: 800 italic 16px/1.1 var(--display); text-transform: uppercase; color: var(--text); }
.locker .locked b { color: #ffffff70; }

/* the admin panel keeps its plain look */
[data-page="admin"] h1, [data-page="admin"] h2, [data-page="admin"] h3 { font-family: var(--sys); font-style: normal; text-transform: none; letter-spacing: 0; line-height: 1.2; }
[data-page="admin"] h2::before { display: none; }
[data-page="admin"] .card { clip-path: none; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
[data-page="admin"] .btn { clip-path: none; border-radius: 9px; font: 700 15px var(--sys); text-transform: none; letter-spacing: 0; }
[data-page="admin"] .btn.small { font-size: 13px; }
[data-page="admin"] .badge { text-transform: none; letter-spacing: 0; font-size: 12px; border-radius: 99px; }
[data-page="admin"] { --body: var(--sys); }

.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #ffffff1a; }
.tbl th { color: #ffffffa0; font-weight: 600; }

.banner[hidden] { display: none; }
.banner { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 10px 16px; background: var(--accent); color: #1a1a1a; font-weight: 600; font-size: 15px; }
.banner button { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: #1a1a1a; padding: 0 4px; }

/* admin panel */
.narrow { max-width: 460px; margin: 30px auto; }
.err { color: #ff8a80; }
.small { font-size: 13px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; }
.tabs button { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.tabs button.on { background: var(--accent); color: #1a1a1a; border-color: var(--accent); font-weight: 700; }
.astats { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.astat b { display: block; font-size: 28px; font-weight: 900; line-height: 1.1; }
.astat span { display: block; color: var(--muted); font-size: 13px; }
.astat small { display: block; color: var(--muted); font-size: 11px; }
.bars { display: flex; gap: 4px; align-items: flex-end; height: 140px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; min-width: 0; }
.bar .b2 { flex: 1; width: 100%; display: flex; gap: 2px; align-items: flex-end; }
.bar i { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 1px; }
.bar i.u { background: var(--blue); }
.bar span { font-size: 10px; color: var(--muted); margin-top: 3px; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: middle; }
.key.m { background: var(--accent); margin-left: 0; } .key.u { background: var(--blue); }
.room { margin-bottom: 10px; }
.pl { display: inline-block; padding: 2px 8px; border-radius: 99px; background: var(--panel2); margin: 2px 0; }
.pl.t0 { background: #e8483b40; } .pl.t1 { background: #2f7fe040; }
.btn.danger { background: #8e2a22; border-color: #8e2a22; color: #fff; }
.scroll { overflow-x: auto; padding: 8px; }
.tbl td.acts { white-space: nowrap; text-align: right; }
.tbl tr.banned td { opacity: .6; }
textarea { width: 100%; background: #0b140e; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; resize: vertical; }
.chk { display: flex; gap: 8px; align-items: center; margin: 8px 0; font-size: 14px; }
.chk input { flex: 0; }
