:root {
    --bg: #0f172a;
    --card: #1e293b;
    --muted: #94a3b8;
    --accent: #3b82f6;
    --text: #f1f5f9;
}

* {
    box-sizing: border-box;
    user-select: none;
}

body {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    margin: 0;
    background: var(--bg);
    color: var(--text);
}

.wrap {
    max-width: 880px;
    margin: 32px auto;
    padding: 20pxL
}

.card {
    background: var(--card);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

header {
    display: flex;
    align-items: center;
    gap:16px;
}

h1 {
    font-size: 1.25rem;
    margin:0;
}

.center {
    display: flex;
    align-items: center;
    justify-content: center;
}

#canvasWrap {
    display: flex;
    justify-content: center;
    padding: 18px;
}

canvas {
    border-radius: 10px;
    max-width: 480px;
    width: 88%;
    height: auto;
    background: #334155;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    gap: 12px;
}

.choices {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

a.btn, button.btn {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #475569;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

button.primary, a.primary {
    background: var(--accent);
    color: white;
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(59,130,246,0.3);
}

button.ghost, a.ghost {
    background: transparent;
    border: 1px solid #475569;
}

button.choice {
    min-width: 84px;
    text-align: center;
}

button.choice.selected {
    outline: 3px solid rgba(59,130,246,0.3);
}

.progressWrap {
    margin-top: 14px;
}

.progress {
    height: 10px;
    background: #1e293b;
    border-radius: 999px;
    overflow: hidden;
}

.progress > i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #6366f1);
    width:0%;
}

#results {
    margin-top: 18px;
    padding: 16px;
    border-radius: 10px;
    background: #1e293b;
    border: 1px solid #334155;
}

.resultRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #334155;
}

.muted {
    color: var(--muted);
}

@media (max-width:640px) {
    .card {
        padding: 14px;
    }
    canvas {
        max-width: 360px;
    }
    button.choice {
        min-width: 72px;
    }
}