:root {
    --bg: #d7d7d7;
    --bg-accent: #f2f2f2;
    --panel: rgba(245, 245, 245, 0.96);
    --ink: #060606;
    --muted: #3b3b3b;
    --line: rgba(0, 0, 0, 0.2);
    --orange: #deb781;
    --orange-deep: #b46b1f;
    --green: #9ede81;
    --red: #de8181;
    --grey: #bcbcbc;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 24%),
        linear-gradient(180deg, var(--bg-accent), var(--bg) 38%, #c7c7c7);
    font-family: "Arial Black", Arial, Helvetica, sans-serif;
}

.page-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 48px;
}

.hero {
    padding: 20px 32px 12px;
}

.hero h1,
.panel h2 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hero h1 {
    font-size: clamp(3.6rem, 8vw, 6.8rem);
    line-height: 0.88;
    max-width: 7ch;
    text-transform: uppercase;
}

.hero-copy,
.selection-count,
.round-summary p,
.field span,
.status-card span {
    color: var(--muted);
}

.eyebrow,
.kicker {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.92rem;
    color: var(--orange-deep);
    font-weight: 900;
}

main {
    display: grid;
    gap: 20px;
}

.panel {
    background: var(--panel);
    border: 4px solid #000;
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 28px;
}

.panel-wide {
    padding: 32px;
}

.panel-head,
.action-row,
.status-grid {
    display: flex;
    gap: 16px;
}

.status-grid {
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.status-card {
    min-width: 140px;
    flex: 1 1 180px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #fff;
    border: 3px solid #000;
}

.status-card strong {
    display: block;
    font-size: 2rem;
    margin-top: 6px;
}

.title-card {
    margin: 22px 0;
    padding: 28px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff, #ececec 45%, #d9d9d9);
    border: 4px solid #000;
}

.title-card h2 {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1;
}

.title-card-final h2 {
    font-size: clamp(2.8rem, 6vw, 5rem);
}

.stack {
    display: grid;
    gap: 22px;
}

.field {
    display: grid;
    gap: 10px;
}

.field input {
    width: 100%;
    border: 3px solid #000;
    border-radius: 14px;
    padding: 18px 20px;
    font: inherit;
    font-size: 1.35rem;
    font-weight: 700;
    background: #fff;
}

.button {
    appearance: none;
    border: 3px solid #000;
    border-radius: 999px;
    padding: 16px 26px;
    font: inherit;
    font-size: 1.2rem;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    background: white;
    color: var(--ink);
}

.button-primary {
    background: linear-gradient(180deg, #f1c287, var(--orange));
}

.options-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.option-card {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 92px;
    padding: 22px 22px 22px 62px;
    border-radius: 16px;
    background: var(--grey);
    border: 3px solid #000;
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
    font-size: 1.28rem;
    font-weight: 900;
    line-height: 1.1;
}

.option-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.18);
}

.option-card input {
    position: absolute;
    left: 18px;
    width: 24px;
    height: 24px;
}

.option-card.is-selected {
    background: #f0f0f0;
}

.option-card.is-correct {
    background: var(--green);
}

.option-card.is-wrong {
    background: var(--orange);
}

.option-card.is-missed {
    background: var(--red);
}

.round-summary {
    padding: 22px 24px;
    border-radius: 16px;
    background: #fff;
    border: 3px solid #000;
    font-size: 1.18rem;
    font-weight: 700;
}

.leaderboard {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}

.leaderboard li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 2px solid var(--line);
    font-size: 1.25rem;
    font-weight: 800;
}

.leaderboard-highlight {
    color: var(--orange-deep);
    font-weight: 700;
}

.error {
    color: #8d1c13;
    font-weight: 700;
    font-size: 1.1rem;
}

.selection-count {
    font-size: 1.25rem;
    font-weight: 900;
}

@media (max-width: 720px) {
    .page-shell {
        width: min(100% - 20px, 1120px);
        padding-top: 18px;
    }

    .hero,
    .panel,
    .panel-wide {
        padding: 20px;
    }

    .action-row,
    .panel-head {
        flex-direction: column;
    }

    .button,
    .action-row form {
        width: 100%;
    }
}
