:root {
  --bg: #0b0c10;
  --side: #0e1015;
  --panel: #13151c;
  --panel-2: #1a1d26;
  --panel-3: #222633;
  --line: #22252f;
  --line-2: #2e323e;
  --text: #eef0f5;
  --soft: #c4c8d4;
  --muted: #868c9c;
  --accent: #8b7cff;
  --accent-2: #5ee1ff;
  --accent-soft: rgba(139, 124, 255, .14);
  --good: #3ddc97;
  --warn: #ffb547;
  --bad: #ff6b6b;
  --grad: linear-gradient(135deg, #8b7cff, #5ee1ff);
  --radius: 14px;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: radial-gradient(900px 420px at 70% -120px, rgba(139, 124, 255, .10), transparent 70%), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 14px/1.5 Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1 { font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 18px; font-weight: 750; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
img { display: block; }
.ico { flex: none; }
.muted { color: var(--muted); }
.green, .ok-text { color: var(--good); }
.bad { color: var(--bad); }
.block { display: block; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 8px; }
.row.gap { gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.row.end { justify-content: flex-end; margin-top: 14px; }
.stack { display: grid; gap: 12px; margin-top: 12px; }
.small-note { font-size: 12px; margin-top: 10px; }
code { font-family: var(--mono); background: var(--panel-3); padding: 2px 6px; border-radius: 6px; font-size: 12px; color: var(--soft); }
code.wrap { white-space: normal; word-break: break-word; }
kbd { font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 5px; padding: 0 5px; }

/* controls */
input, select, textarea, button, .button {
  font: inherit; color: inherit; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--panel-2); padding: 9px 12px; min-width: 0;
}
input, select, textarea { width: 100%; transition: border-color .15s; }
input:hover, select:hover, textarea:hover { border-color: #3a3f4d; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); padding: 0; flex: none; }
input[type="color"] { padding: 2px; height: 38px; }
textarea { resize: vertical; }
textarea.code { font: 13px/1.55 var(--mono); margin-top: 10px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
button, .button {
  cursor: pointer; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; text-decoration: none; transition: background .15s, border-color .15s, transform .1s;
}
button:active, .button:active { transform: translateY(1px); }
button:disabled { opacity: .55; cursor: progress; }
.primary { background: var(--accent); border-color: transparent; color: #0b0a1a; }
.primary:hover:not(:disabled) { background: #9d90ff; }
.primary.big, .roblox.big { padding: 12px 18px; font-size: 15px; border-radius: 12px; }
.ghost { background: var(--panel-2); }
.ghost:hover { border-color: #444a59; background: var(--panel-3); }
.danger { background: #c2353f; border-color: transparent; color: #fff; }
.danger:hover { background: #d4414b; }
.roblox { background: #f4f5f7; color: #0b0c10; border-color: transparent; }
.roblox:hover { background: #fff; }
.small { padding: 6px 10px; font-size: 13px; }
.link { background: none; border: 0; padding: 4px 6px; color: var(--soft); font-weight: 600; font-size: 13px; }
.link:hover { color: var(--text); text-decoration: underline; }
.danger-text { color: var(--bad); }
.icon-btn { background: none; border: 0; padding: 6px; color: var(--muted); }
.icon-btn:hover { color: var(--text); background: var(--panel-2); }
label { display: grid; gap: 6px; align-content: start; font-size: 12.5px; color: var(--muted); font-weight: 600; }
label > small { font-weight: 400; }
.switch { display: flex; align-items: center; gap: 9px; color: var(--soft); font-size: 13px; cursor: pointer; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; align-content: start; }
.card.flush { padding: 0; gap: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card.flush .card-head { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.card-title { font-size: 13px; font-weight: 700; color: var(--soft); letter-spacing: .01em; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.empty { color: var(--muted); padding: 26px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); list-style: none; display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
.empty.bad { color: #ffc2c2; border-color: rgba(255, 107, 107, .35); }
.banner { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; font-size: 13px; margin: 0 0 14px; }
.banner.bad { background: rgba(255, 107, 107, .1); color: #ffc2c2; }
.banner.warn { background: rgba(255, 181, 71, .1); color: #ffd99e; }
.banner a { color: inherit; font-weight: 700; }
.skeleton { display: grid; gap: 12px; }
.skeleton span { height: 64px; border-radius: var(--radius); background: linear-gradient(90deg, var(--panel), var(--panel-2), var(--panel)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* brand */
.logo { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); color: #0b0c10; display: grid; place-items: center; flex: none; box-shadow: 0 6px 18px rgba(139, 124, 255, .35); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.brand.big { font-size: 22px; gap: 12px; }
.brand.big .logo { width: 42px; height: 42px; border-radius: 12px; }
.brand.big .logo .ico { width: 22px; height: 22px; }
.brand-link { text-decoration: none; padding: 2px 6px 12px; }

/* screens */
.center { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(440px, 100%); display: grid; gap: 18px; }
.login-card h1 { font-size: 34px; line-height: 1.1; background: linear-gradient(180deg, #fff, #b9b3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login .pw { display: grid; gap: 10px; }
.or { text-align: center; }
.setup { width: min(640px, 100%); gap: 16px; }
.setup-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.setup-steps > li { display: flex; gap: 14px; }
.setup-steps > li > div { display: grid; gap: 8px; min-width: 0; flex: 1; }
.num { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.copyrow { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; align-items: center; background: var(--panel-2); border-radius: 10px; padding: 8px 10px; }
.copyrow code { background: none; padding: 0; overflow: hidden; text-overflow: ellipsis; }
.envs { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--soft); }

/* layout */
.layout { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { background: var(--side); border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.search-btn { justify-content: flex-start; background: var(--panel); color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.search-btn span { flex: 1; text-align: left; }
.nav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; text-decoration: none; color: var(--soft); font-weight: 600; }
.nav:hover, .nav.on { background: var(--panel-2); color: var(--text); }
.side-label { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 14px 10px 6px; }
.games { display: grid; gap: 2px; }
.game { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 10px; text-decoration: none; border: 1px solid transparent; }
.game:hover { background: var(--panel); }
.game.on { background: var(--panel-2); border-color: var(--line-2); }
.game img { border-radius: 9px; background: var(--panel-2); }
.game b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game small { color: var(--muted); font-size: 11.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game small.soon { color: var(--accent); }
.game small.live { color: var(--good); }
.add { background: none; border: 1px dashed var(--line-2); color: var(--muted); margin-top: 8px; font-weight: 600; }
.add:hover { color: var(--text); border-color: var(--accent); }
.cloud-status { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--warn); padding: 8px 10px; }
.cloud-status.ok { color: var(--good); }
.me { display: flex; gap: 10px; align-items: center; padding: 10px; border-top: 1px solid var(--line); margin-top: 4px; }
.me img, .avatar { border-radius: 50%; width: 30px; height: 30px; background: var(--panel-3); display: grid; place-items: center; font-weight: 700; }
.me b { display: block; font-size: 13px; }
.me small { color: var(--muted); font-size: 11.5px; }

.main { padding: 28px 36px 64px; min-width: 0; max-width: 1280px; width: 100%; }
.game-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.gicon { border-radius: 16px; background: var(--panel-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.game-head h1 { font-size: 26px; margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip-static { font-size: 12px; color: var(--soft); background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
a.chip-static:hover { border-color: var(--line-2); color: var(--text); }
.chip-static.live { color: var(--good); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }
.next { display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.next small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.next b { font-size: 13px; }
.next.soon { border-color: rgba(139, 124, 255, .4); background: linear-gradient(135deg, rgba(139, 124, 255, .12), rgba(94, 225, 255, .05)); }
.next.live { border-color: rgba(61, 220, 151, .35); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 22px 0 22px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 12px; text-decoration: none; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; align-items: center; gap: 7px; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent); }
.tabs a.on .ico { color: var(--accent); }

.intro { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; }
.intro p { color: var(--muted); max-width: 680px; }
.sec { font-size: 13px; font-weight: 700; color: var(--soft); margin: 22px 0 10px; }
.section-head { display: grid; gap: 4px; margin: 28px 0 14px; }
.two, .three { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.three { grid-template-columns: 1fr 1fr 1fr; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

/* pills */
.pill { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: var(--panel-3); color: var(--muted); }
.pill.done, .pill.ended { background: rgba(61, 220, 151, .12); color: var(--good); }
.pill.live { background: var(--accent); color: #0b0a1a; }
.pill.pending { background: rgba(255, 181, 71, .14); color: var(--warn); }
.pill.failed, .pill.missed { background: rgba(255, 107, 107, .14); color: var(--bad); }
.pill.cancelled { text-decoration: line-through; }

/* overview */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 2px; position: relative; overflow: hidden; }
.kpi small { color: var(--muted); font-size: 12px; font-weight: 600; }
.kpi b { font-size: 26px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .up { color: var(--good); font-size: 12px; font-weight: 600; }
.kpi .down { color: var(--bad); font-size: 12px; font-weight: 600; }
.kpi .spark { position: absolute; right: 12px; bottom: 12px; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ov-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-bottom: 16px; }
.track { position: relative; height: 34px; margin: 18px 6px 4px; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 16px; height: 2px; background: var(--line-2); border-radius: 2px; }
.track-past { position: absolute; left: 0; top: 16px; height: 2px; background: var(--grad); border-radius: 2px; }
.tdot { position: absolute; top: 11px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 2px solid var(--panel); background: var(--muted); }
.tdot.icon { background: var(--accent); }
.tdot.release { background: var(--accent-2); width: 16px; height: 16px; top: 9px; margin-left: -8px; }
.tdot.auto { background: var(--good); }
.tdot.discord { background: #7c8cff; }
.tdot.sale { background: var(--warn); }
.tdot.timer { background: #ff8fd1; }
.tdot.past { opacity: .45; }
.tdot.inline { position: static; display: inline-block; margin: 0; flex: none; }
.tnow { position: absolute; top: -14px; transform: translateX(-50%); font-size: 10px; font-weight: 800; color: var(--accent-2); text-transform: uppercase; }
.tnow::after { content: ""; position: absolute; left: 50%; top: 14px; width: 2px; height: 22px; background: var(--accent-2); }
.track-ends { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin: 0 0 12px; }
.upnext { list-style: none; padding: 0; margin: 0; display: grid; }
.upnext li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.log { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; max-height: 320px; overflow: auto; font-size: 13px; }
.log li { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); color: var(--soft); }
.log li:first-child { border-top: 0; }
.log li .ico { color: var(--good); }
.log li.bad, .log li.bad .ico { color: var(--bad); }
.rgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.rstat { display: grid; gap: 2px; }
.rstat small { color: var(--muted); font-size: 12px; }
.rstat b { font-size: 20px; }
.rstat span { font-size: 12px; }

/* chart */
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; display: block; touch-action: none; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--mono); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart .area { fill: rgba(139, 124, 255, .10); }
.chart .release { stroke: var(--accent-2); stroke-width: 1.5; stroke-dasharray: 4 4; }
.chart .release-label { fill: var(--accent-2); font-size: 11px; font-weight: 700; }
.chart .cross { stroke: var(--line-2); stroke-width: 1; }
.chart .dot { fill: var(--accent); stroke: var(--panel); stroke-width: 2; }
.tip { position: absolute; top: 0; transform: translateX(-50%); background: var(--panel-3); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 10px; pointer-events: none; display: grid; font-size: 12px; white-space: nowrap; box-shadow: 0 8px 20px rgba(0, 0, 0, .4); }
.tip small { color: var(--muted); }
.chart-empty { color: var(--muted); padding: 40px 16px; text-align: center; }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 12px; color: var(--muted); font-size: 13px; }
.seg button.on { background: var(--panel-3); color: var(--text); }
.table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.table th, .table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-weight: 600; }
.table td { font-variant-numeric: tabular-nums; }

/* countdown */
.toolbar { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.field { display: grid; gap: 6px; }
.toolbar > label.field { width: 230px; }
.field .lbl { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.cd-grid { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.steps { list-style: none; padding: 6px; margin: 0; }
.step { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; }
.step + .step { margin-top: 2px; }
.step:hover { background: var(--panel-2); }
.step img { border-radius: 9px; }
.step b { display: block; font-size: 13px; }
.step small { color: var(--muted); font-size: 12px; }
.step.current { background: linear-gradient(90deg, var(--accent-soft), transparent 75%); }
.step.off img, .step.off b { opacity: .4; }
.preview { position: sticky; top: 20px; gap: 6px; }
.big-icon { width: 100%; aspect-ratio: 1; border-radius: 18px; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); margin: 6px 0 8px; }
.pv-name { font-weight: 750; }
.pv-meta { color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.big-clock { display: block; font: 700 42px/1.05 var(--mono); letter-spacing: -.02em; }
.progress { height: 5px; background: var(--panel-3); border-radius: 5px; margin-top: 10px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--grad); width: 0; transition: width 1s linear; }
.ap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ap-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.chip { padding: 5px 11px; font-size: 12.5px; background: var(--panel); font-weight: 600; }
.chip.on { background: var(--accent-soft); border-color: rgba(139, 124, 255, .55); color: #cfc8ff; }
.chips .other { width: 100px; padding: 5px 10px; }

/* events */
.event { display: flex; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.date { width: 48px; text-align: center; background: var(--panel-2); border-radius: 10px; padding: 6px 0; flex: none; }
.date small { display: block; color: var(--accent); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.date b { font-size: 19px; line-height: 1; }
.event p { font-size: 13px; margin: 2px 0 6px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; background: var(--panel-2); padding: 2px 8px; border-radius: 6px; color: var(--muted); }
.tag.accent { background: var(--accent-soft); color: #cfc8ff; }
.form-grid { grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.form-grid .wide { grid-column: 1 / -1; }

/* game page */
.gp-grid { display: grid; grid-template-columns: 1fr 330px; gap: 16px; align-items: start; }
.gp { gap: 0; }
.gp-top { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; }
.gp-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--panel-2); }
.gp-thumb.none { display: grid; place-items: center; color: var(--muted); }
.gp-side { display: flex; flex-direction: column; gap: 6px; }
.gp-side h2 { font-size: 22px; }
.by { color: var(--muted); font-size: 13px; }
.by a { color: var(--text); font-weight: 700; }
.play { margin-top: auto; background: #3b6ef6; color: #fff; text-decoration: none; border-radius: 10px; text-align: center; padding: 12px; font-size: 18px; }
.gp-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; margin: 16px 0; text-align: center; }
.gp-stats small { display: block; color: var(--muted); font-size: 12px; }
.gp-stats b { font-size: 14px; }
.gp h3 { font-size: 14px; margin-bottom: 8px; }
.desc { white-space: pre-wrap; color: var(--soft); overflow-wrap: anywhere; }
.checks ul { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.checks p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.warn-title { color: var(--warn); font-size: 14px; }
.ok-title { color: var(--good); font-size: 14px; }
.ci { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ci.warn { background: rgba(255, 181, 71, .16); color: var(--warn); }
.ci.ok { background: rgba(61, 220, 151, .14); color: var(--good); }
.ci.info { background: var(--panel-3); color: var(--muted); }

/* sale */
.sale-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.sale-grid .card-head { margin-bottom: 8px; }
.items { list-style: none; padding: 4px; margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); max-height: 440px; overflow: auto; }
.items li label { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; color: var(--text); font-weight: 600; cursor: pointer; font-size: 13.5px; }
.items li label:hover { background: var(--panel-2); }
.items li.on label { background: var(--accent-soft); }
.kind { font-size: 11px; background: var(--panel-3); color: var(--muted); padding: 2px 8px; border-radius: 6px; font-weight: 600; }
.footer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.hint { font-size: 13px; color: var(--good); }
.hint.warn { color: var(--warn); }
.row-card { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; flex-wrap: wrap; }
.row-card label { min-width: 180px; }
.row-card .left { min-width: 70px; }

/* players */
.search { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 14px; margin-bottom: 16px; color: var(--muted); }
.search input { border: 0; background: none; padding: 8px 0; }
.search input:focus-visible { box-shadow: none; }
.players-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; align-items: start; margin-bottom: 16px; }
.who .player { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.player { display: flex; gap: 14px; align-items: center; }
.data-head { margin: 4px 0 12px; }
.data-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.data-grid code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.player img { border-radius: 50%; background: var(--panel-2); }
.player small.block { margin-top: 2px; }

/* settings */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.steps-list { margin: 0; padding-left: 20px; color: var(--soft); display: grid; gap: 4px; }
.help summary { cursor: pointer; color: #b9b1ff; font-weight: 600; font-size: 13px; }
.help[open] summary { margin-bottom: 10px; }
.help pre { background: var(--panel-2); padding: 12px; border-radius: 10px; overflow: auto; font: 12px/1.5 var(--mono); }
.keyhelp ol { padding-left: 20px; margin: 0; color: var(--soft); display: grid; gap: 6px; font-size: 13px; }
.perm { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.perm li { background: var(--panel-2); border-radius: 8px; padding: 3px 8px; }
.perm code { background: none; padding: 0; }

/* home */
.home-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.home-head h1 { font-size: 28px; }
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.gcard { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 12px; text-decoration: none; transition: border-color .15s, transform .15s; }
.gcard:hover { border-color: rgba(139, 124, 255, .5); transform: translateY(-2px); }
.gcard-top { display: flex; gap: 12px; align-items: center; }
.gcard-top img { border-radius: 12px; background: var(--panel-2); }
.gcard-top b { display: block; }
.spark-slot { height: 44px; }
.spark-slot .spark { width: 100%; }
.hero-empty { position: relative; text-align: center; display: grid; gap: 14px; justify-items: center; padding: 90px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); overflow: hidden; }
.hero-empty h1 { font-size: 30px; position: relative; }
.hero-empty p, .hero-empty .button, .hero-empty button { position: relative; }
.glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: var(--grad); filter: blur(120px); opacity: .18; top: -200px; }

/* dialogs */
.dialog, .palette { background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-radius: 18px; padding: 22px; width: min(540px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.dialog { display: grid; gap: 14px; }
.dialog[open] { display: grid; }
.dialog::backdrop, .palette::backdrop { background: rgba(5, 6, 10, .7); backdrop-filter: blur(4px); }
.oauth-box { display: grid; gap: 12px; background: var(--panel-2); border-radius: 12px; padding: 16px; }
.mini-game { display: flex; gap: 10px; align-items: center; background: var(--panel-2); border-radius: 10px; padding: 8px; }
.mini-game img { border-radius: 8px; }
.palette { padding: 8px; margin-top: 12vh; }
.palette .search { margin: 0; border: 0; }
.palette ul { list-style: none; padding: 4px; margin: 0; display: grid; gap: 2px; }
.palette li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 9px; cursor: pointer; }
.palette li small { color: var(--muted); }
.palette li.on, .palette li:hover { background: var(--panel-3); }

/* toasts */
#toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 50; justify-items: center; pointer-events: none; }
.toast { display: flex; gap: 8px; align-items: center; background: var(--panel-3); border: 1px solid var(--line-2); color: var(--text); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 13px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); animation: up .2s ease-out; max-width: calc(100vw - 32px); }
.toast .ico { color: var(--good); }
.toast.bad { border-color: rgba(255, 107, 107, .5); color: #ffd0d0; }
.toast.bad .ico { color: var(--bad); }
@keyframes up { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1100px) {
  .cd-grid, .gp-grid, .ov-grid, .sale-grid, .players-grid, .settings-grid { grid-template-columns: 1fr; }
  .ap-grid { grid-template-columns: 1fr; }
  .preview { position: static; max-width: 360px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .rgrid { grid-template-columns: 1fr 1fr 1fr; }
  .gp-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 780px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 16px; gap: 8px; }
  .brand-link { padding: 0; margin-right: auto; }
  .side-label, .side > .grow, .cloud-status, .search-btn, .nav { display: none; }
  .games { order: 5; width: 100%; display: flex; overflow-x: auto; }
  .game { flex: none; max-width: 220px; }
  .add { margin: 0; }
  .me { border: 0; padding: 0; margin: 0; }
  .me .grow { display: none; }
  .main { padding: 20px 16px 56px; }
  .gp-top, .two, .three, .form-grid, .rgrid { grid-template-columns: 1fr; }
  .kpi b { font-size: 22px; }
  .toolbar > label.field { width: 100%; }
  .copyrow { grid-template-columns: 1fr auto; }
  .copyrow small { grid-column: 1 / -1; }
  .next { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
