:root {
  color-scheme: dark;
  font-family: "Inter", system-ui, sans-serif;
  background: #10141c;
  color: #eef1f7;
  --surface: #191f2b;
  --border: #343e50;
  --muted: #b4bfd0;
  --accent: #92ffcb;
}
* { box-sizing: border-box; }
body { margin: 0; }
header { border-bottom: 1px solid var(--border); background: #141923; }
.bar, .workspace { width: min(1200px, calc(100% - 32px)); margin-inline: auto; }
.bar { display: flex; align-items: center; gap: 24px; justify-content: space-between; padding: 12px 0; flex-wrap: wrap; }
.brand { font-weight: 800; letter-spacing: .12em; font-size: .85rem; margin: 0; }
.brand span { color: var(--accent); }
nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--accent); }
.workspace { padding: 24px 0 48px; }
h1 { font-size: clamp(1.65rem, 4vw, 2.3rem); margin: 0 0 24px; }
h2 { font-size: 1.2rem; margin: 0 0 14px; }
h3 { margin: 0 0 5px; font-size: 1rem; overflow-wrap: anywhere; }
.card { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: clamp(16px, 3vw, 25px); }
.layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 18px; }
aside { display: grid; gap: 18px; min-width: 0; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
label { display: grid; gap: 6px; margin-bottom: 13px; font-size: .88rem; color: var(--muted); }
input, select, textarea, button { font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; }
input, select, textarea { background: #111722; color: #fff; min-width: 0; width: 100%; }
textarea { resize: vertical; }
button { cursor: pointer; color: #0c2319; background: var(--accent); font-weight: 650; }
button:disabled { opacity: .55; cursor: default; }
button.secondary { background: #252e3e; color: #eef1f7; }
button.danger { background: #392731; color: #ffc5d1; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.actions, .section-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.section-head { justify-content: space-between; margin-bottom: 12px; }
.section-head h2 { margin: 0; }
[role="status"] { color: var(--muted); font-size: .87rem; overflow-wrap: anywhere; }
[role="status"]:empty { display: none; }
fieldset { border: 1px solid var(--border); border-radius: 8px; margin: 0 0 12px; min-width: 0; }
legend, .meta { color: var(--muted); font-size: .82rem; }
.choices { max-height: 160px; overflow: auto; }
.choices label { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.choices input { width: auto; }
.category-list { list-style: none; padding: 0; margin: 0; }
.category-list li { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; overflow-wrap: anywhere; }
.category-list p { margin: 4px 0 9px; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 14px; }
.game-card { display: flex; flex-direction: column; background: #111722; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.game-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.game-info { display: flex; flex: 1; flex-direction: column; padding: 13px; }
.game-info .actions { margin-top: auto; padding-top: 10px; }
.description { font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; white-space: pre-wrap; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(ellipse at top, #233c3c, #10141c 65%); }
.login main { width: min(100%, 430px); }
.login h1 { margin: 16px 0 24px; }
.login button { width: 100%; }
@media (max-width: 760px) { .layout { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .pair { grid-template-columns: 1fr; gap: 0; } }
