* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.container {
    max-width: 700px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    color: #38bdf8;
}

h2 { margin: 1.5rem 0 0.75rem; color: #94a3b8; }
h3 { margin: 1.5rem 0 0.5rem; color: #94a3b8; }

.subtitle {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.muted { color: #64748b; }

.btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    background: #334155;
    color: #e2e8f0;
    transition: background 0.2s;
}

.btn:hover { background: #475569; }

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-primary:hover { background: #1d4ed8; }

form { text-align: center; margin: 1rem 0; }

.input-row {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}

input[type="number"], input[type="text"] {
    padding: 0.6rem 1rem;
    border: 1px solid #475569;
    border-radius: 6px;
    background: #1e293b;
    color: #e2e8f0;
    font-size: 1rem;
    width: 200px;
}

label {
    display: block;
    margin-bottom: 0.25rem;
    color: #94a3b8;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0;
}

th, td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #1e293b;
}

th {
    background: #1e293b;
    color: #94a3b8;
    font-weight: 600;
}

tr:hover { background: #1e293b; }
tr.highlight { background: #1e3a5f; }
tr.highlight td { color: #38bdf8; font-weight: 600; }

.round-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
    font-size: 1.2rem;
}

.timer {
    font-weight: bold;
    font-size: 1.5rem;
    color: #38bdf8;
}

.timer-warning { color: #ef4444; }

.final-score {
    font-size: 1.3rem;
    margin: 1rem 0;
}

canvas { margin: 1rem 0; }

.round-result-card {
    background: #1e293b;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.round-result-card p { margin: 0.4rem 0; font-size: 1.1rem; }

a { color: #38bdf8; }
a.btn { text-decoration: none; display: inline-block; margin-top: 1rem; }

.instructions { margin: 1rem 0; }

.instruction-step {
    background: #1e293b;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
}

.instruction-step h3 { color: #38bdf8; margin-bottom: 0.5rem; }
.instruction-step p { margin: 0.4rem 0; line-height: 1.6; }
.instruction-step ul { margin: 0.5rem 0 0.5rem 1.5rem; line-height: 1.8; }

.score-guide td { padding: 0.3rem 1rem 0.3rem 0; }
