:root {
    --bg: #0b0d12;
    --panel: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.08);
    --text: #f2f3f5;
    --muted: #8b93a1;
    --green: #22c55e;
    --amber: #f59e0b;
    --red: #ef4444;
    --blue: #3b82f6;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 480px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.glass-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
}

.title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

h1 {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
}

.state-pill {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.state-pill.live { background: var(--red); color: #fff; }
.state-pill.brb { background: var(--amber); color: #1a1200; }
.state-pill.start, .state-pill.stopped { background: rgba(255,255,255,0.1); }

.status-banner {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
    cursor: default;
    text-align: center;
}

.status-banner.locked {
    background: rgba(245, 158, 11, 0.15);
    color: var(--amber);
    cursor: pointer;
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-box.wide { grid-column: 1 / -1; }

.stat-box .label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-box .value {
    font-size: 18px;
    font-weight: 700;
}

.stat-box .value.small {
    font-size: 13px;
    font-weight: 500;
    font-family: monospace;
    word-break: break-all;
}

.stat-box.highlight .value { color: var(--green); }
.stat-box.highlight.bad .value { color: var(--red); }

.controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn {
    border: none;
    border-radius: 14px;
    padding: 18px;
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    color: #fff;
    transition: transform 0.05s ease, opacity 0.15s ease;
}

.btn:active { transform: scale(0.98); }
.btn .icon { font-size: 20px; }

.btn-toggle { background: var(--green); }
.btn-toggle.is-live { background: var(--amber); color: #1a1200; }
.btn-restart { background: var(--blue); }
.btn-danger { background: var(--red); font-size: 15px; padding: 14px; opacity: 0.9; }

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1c1f27;
    border: 1px solid var(--border);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
