:root { color-scheme: dark; font-family: system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; padding: 24px 0; background: radial-gradient(circle at top, #334155, #020617 65%); color: #f8fafc; display: grid; place-items: center; }
.game-shell { width: min(920px, calc(100% - 32px)); }
.back-link, .source a { color: #93c5fd; }
.card { margin-top: 16px; padding: clamp(20px, 4vw, 32px); border: 1px solid #475569; border-radius: 24px; background: rgba(15, 23, 42, .9); box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.eyebrow { color: #facc15; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1 { font-size: clamp(2rem, 6vw, 4rem); margin: 0 0 12px; }
.description, .instructions, .message { line-height: 1.7; }
.instructions { padding: 12px 16px; background: #172033; border-left: 4px solid #38bdf8; }
.meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.meters div { background: #0f172a; border-radius: 16px; padding: 16px; border: 1px solid #334155; }
.meters span { display: block; color: #cbd5e1; font-size: .9rem; }
.meters strong { font-size: 2rem; }
.message { min-height: 3em; font-weight: 700; }
.choices { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
button { cursor: pointer; border: 0; border-radius: 14px; padding: 14px 16px; font-weight: 700; color: #0f172a; background: #a7f3d0; }
button:hover { transform: translateY(-1px); filter: brightness(1.05); }
.restart { margin-top: 18px; background: #facc15; }
.sort-item { padding: 24px; margin-bottom: 16px; border: 2px dashed #64748b; border-radius: 18px; text-align: center; font-size: 1.3rem; background: #0f172a; }
.balance-track { position: relative; height: 18px; margin: 12px 0 24px; border-radius: 999px; background: linear-gradient(90deg, #f87171, #86efac 40%, #86efac 60%, #f87171); }
.balance-track span { position: absolute; top: -5px; width: 8px; height: 28px; border-radius: 4px; background: white; transform: translateX(-50%); transition: left .25s ease; }
.source { display: grid; gap: 6px; margin-top: 28px; padding-top: 18px; border-top: 1px solid #334155; color: #cbd5e1; }
.source small { color: #94a3b8; }
@media (max-width: 640px) { .meters { grid-template-columns: 1fr; } }
