@font-face { font-family: "Rajdhani"; src: url("/fonts/Rajdhani-Bold.ttf") format("truetype"); font-weight: 700; }
@font-face { font-family: "Rajdhani"; src: url("/fonts/Rajdhani-SemiBold.ttf") format("truetype"); font-weight: 600; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter.ttf") format("truetype"); font-weight: 100 900; }

:root {
  --bg: #0d0b0a; --bg2: #15110f; --panel: #1b1613; --panel2: #221c18; --line: rgba(255,255,255,.08);
  --text: #f4ead5; --dim: rgba(244,234,213,.6); --accent: #f2b544; --ok: #6fae86; --bad: #e0705a; --blue: #6f95d8;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 "Inter", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, .title { font-family: "Rajdhani", sans-serif; text-transform: uppercase; letter-spacing: .02em; margin: 0; }
h1 { font-size: 34px; } h2 { font-size: 22px; } h3 { font-size: 17px; }
.kicker { font: 600 12px "Rajdhani"; letter-spacing: .25em; text-transform: uppercase; color: var(--accent); }
.dim { color: var(--dim); } .ok { color: var(--ok); } .bad { color: var(--bad); }

.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: linear-gradient(180deg, #17120f, #0f0c0a); border-right: 1px solid var(--line); padding: 22px 16px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; gap: 10px; align-items: center; margin-bottom: 30px; }
.brand img { width: 36px; } .brand b { font: 700 26px "Rajdhani"; letter-spacing: .04em; }
.brand small { display: block; font-size: 11px; color: var(--dim); letter-spacing: .2em; text-transform: uppercase; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 6px; font: 600 16px "Rajdhani"; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); border-left: 3px solid transparent; }
.nav a:hover { background: rgba(255,255,255,.04); color: var(--text); }
.nav a.on { background: rgba(242,181,68,.1); color: #fff; border-left-color: var(--accent); }
.side form { position: absolute; bottom: 20px; left: 16px; right: 16px; }
.main { padding: 28px 34px 60px; max-width: 1400px; }
.head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 22px; gap: 16px; flex-wrap: wrap; }

.grid { display: grid; gap: 16px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; }
.kpi .v { font: 700 38px/1 "Rajdhani"; margin-top: 6px; } .kpi .s { font-size: 13px; color: var(--dim); }
.two { grid-template-columns: 2fr 1fr; } .half { grid-template-columns: 1fr 1fr; }
@media (max-width: 1100px) { .two, .half { grid-template-columns: 1fr; } .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; } .side form { position: static; margin-top: 16px; } }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font: 600 12px "Rajdhani"; letter-spacing: .15em; text-transform: uppercase; color: var(--dim); padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 11px 12px; border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: middle; }
tr:hover td { background: rgba(255,255,255,.02); }
.table-card { padding: 4px 6px; overflow-x: auto; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 4px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); color: var(--text); font: 700 14px "Rajdhani"; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.btn:hover { background: rgba(255,255,255,.12); }
.btn.primary { background: var(--accent); color: #1a1206; border-color: transparent; }
.btn.primary:hover { background: #ffd27a; }
.btn.danger { border-color: rgba(224,112,90,.5); color: #ffb3a3; }
.btn.small { padding: 5px 10px; font-size: 12px; }
.inline { display: inline; }

input, select, textarea { background: #0f0c0a; color: var(--text); border: 1px solid rgba(255,255,255,.15); border-radius: 4px; padding: 9px 12px; font: inherit; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { width: 100%; min-height: 360px; font: 13px/1.6 ui-monospace, Menlo, monospace; }
label { display: block; font: 600 13px "Rajdhani"; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.field { margin-bottom: 16px; } .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.row > .field { flex: 1; min-width: 160px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }

.chip { display: inline-block; padding: 2px 9px; border-radius: 3px; font: 600 12px "Rajdhani"; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.chip.ok { color: #9fe0b5; border-color: rgba(111,174,134,.45); } .chip.bad { color: #ffb3a3; border-color: rgba(224,112,90,.45); }
.chip.warn { color: #ffd98a; border-color: rgba(242,181,68,.45); } .chip.blue { color: #b4cbff; border-color: rgba(111,149,216,.45); }
.rank { display: inline-flex; align-items: center; gap: 8px; } .rank img { width: 28px; height: 28px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.flash { background: rgba(111,174,134,.12); border: 1px solid rgba(111,174,134,.4); padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; }
.errors { background: rgba(224,112,90,.1); border: 1px solid rgba(224,112,90,.4); padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; }

.bars { display: flex; align-items: end; gap: 6px; height: 180px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: end; }
.bars .bar { width: 100%; background: linear-gradient(180deg, var(--accent), #a8781f); border-radius: 3px 3px 0 0; min-height: 2px; }
.bars .l { font-size: 10px; color: var(--dim); white-space: nowrap; } .bars .n { font: 700 12px "Rajdhani"; }
.hbar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; } .hbar i { display: block; height: 100%; }

.game-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 16px; align-items: center; }
.game-row img { width: 62px; border-radius: 4px; box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.pager { margin-top: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.pager a, .pager span { padding: 6px 11px; border: 1px solid var(--line); border-radius: 4px; font: 600 14px "Rajdhani"; }
.pager .on { background: var(--accent); color: #1a1206; }

.login { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(1200px 600px at 50% -10%, rgba(242,181,68,.15), transparent), var(--bg); }
.login .card { width: 380px; padding: 30px; }
