/* Inherit site variables and dark theme */
:root {
    /* Core theme to match main site */
    --bg: #0f172a;
    --ink: #e5eefc;
    --muted: #93a4bf;
    --accent: #7cc0ff;
    --border: rgba(148, 163, 184, 0.18);

    /* Game panels */
    --panel: #0b1324;
    --surface: #0b1324;
    --panel-2: #0f1b33;
    --glow: rgba(34, 211, 238, 0.15);
}

html { font-family: "Uber Move", Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Uber Move", Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    padding: 24px;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; 

    max-width: 1100px;
    margin: 0 auto;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.title .badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand);
    background: #eaf4ff;
    border: 1px solid var(--border);
    padding: 4px 8px;
    border-radius: 999px;
}

.back-link { text-decoration: none; color: var(--ink); background: #0f1b33; border: 1px solid var(--border); padding: 10px 14px; border-radius: 10px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: transform .15s ease, background .2s ease; }
.back-link:hover { transform: translateY(-1px); background: #142545; }
.back-fixed { position: fixed; top: 16px; right: 24px; z-index: 1000; }

.layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}
@media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; }
}

.card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 8px 20px rgba(0,0,0,.35); }

.game-card { padding: 4px; display: grid; place-items: center; width: fit-content; justify-self: center; background: #0b1220; border: 1px solid rgba(148,163,184,0.2); box-shadow: 0 10px 24px rgba(2, 6, 23, 0.6), inset 0 0 0 1px rgba(255,255,255,0.03); }
#tetris { background: #0f172a; border-radius: 12px; border: 2px solid #22d3ee; box-shadow: 0 0 0 2px var(--glow) inset, 0 8px 20px rgba(2, 6, 23, 0.8); }

.sidebar { padding: 16px; align-self: start; }
.sidebar h2 {
    margin: 0 0 12px 0;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
}

.stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
.stat { background: #0f1b33; border: 1px solid var(--border); border-radius: 10px; padding: 10px; text-align: center; }
.stat span { display: block; font-size: 12px; color: var(--muted); }
.stat strong { display: block; font-size: 22px; color: var(--accent); margin-top: 4px; }

.score-card { background: #0f1b33; border: 1px solid var(--border); border-radius: 12px; padding: 14px; text-align: center; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.score-header { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
.score-value { font-size: 44px; line-height: 1; color: var(--brand); font-weight: 800; font-variant-numeric: tabular-nums; }

.controls { margin-top: 12px; font-size: 14px; color: var(--muted); }
.controls-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.controls-list li { display: flex; align-items: center; gap: 10px; }
.key { display: inline-block; min-width: 28px; text-align: center; padding: 4px 8px; background: #0f172a; border: 1px solid var(--border); border-bottom: 3px solid #0b1220; border-radius: 6px; color: var(--ink); font-weight: 700; box-shadow: inset 0 -1px 0 rgba(255,255,255,0.03); }
.key.combo { min-width: 0; padding: 4px 6px; }

.cta {
    margin-top: 8px;
    font-size: 13px;
    color: var(--muted);
}
.actions { margin-top: 12px; display: grid; grid-template-columns: 1fr; gap: 10px; }
.btn { appearance: none; border: 1px solid var(--border); border-bottom: 3px solid #0b1220; background: #0f1b33; color: var(--ink); padding: 12px 14px; border-radius: 8px; font-weight: 700; cursor: pointer; width: 100%; text-align: center; box-shadow: 0 6px 16px rgba(0,0,0,.35); transition: transform .15s ease, background .2s ease; }
.btn:hover { transform: translateY(-1px); background: #142545; }
.btn-primary { background: #102244; border-color: #1a2e55; color: var(--accent); }


