:root {
    --bg: #11110f;
    --cream: #f1eadf;
    --muted: #9b9992;
    --line: #55534e;
    --orange: #e87532;
    --blue: #78cbd1;
    --panel: #181816;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
}

body {
    color: var(--cream);
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ios-header-spacer {
    width: 100%;
    height: max(18px, env(safe-area-inset-top));
    flex: 0 0 auto;
}

.game {
    width: min(620px, 100%);
    min-height: calc(100svh - max(18px, env(safe-area-inset-top)));
    padding: 10px 22px max(16px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
}

header {
    border-bottom: 3px solid var(--orange);
    padding-bottom: 13px;
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.app-logo {
    width: 82px;
    height: 82px;
    flex: 0 0 auto;
    display: block;
    object-fit: cover;
    border-radius: 18px;
}

h1 {
    margin: 0;
    font-size: clamp(38px, 10vw, 58px);
    line-height: .84;
    letter-spacing: -2.5px;
    font-weight: 900;
}

h1 span {
    color: var(--orange);
}

.tagline {
    margin: 12px 0 0;
    font-size: 15px;
    color: var(--muted);
}

.card {
    padding: 20px 0 0;
}

.label,
.question-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--muted);
}

.question-emphasis {
    font-size: 1.28em;
    letter-spacing: 1.8px;
}

h2 {
    margin: 7px 0 6px;
    max-width: 100%;
    font-size: clamp(25px, 6.8vw, 36px);
    line-height: 1.02;
    letter-spacing: -.8px;
}

.album-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--muted);
}

.artist {
    font-size: 17px;
    color: var(--cream);
}

.year {
    font-size: 15px;
}

.year:not(:empty)::before {
    content: "·";
    margin-right: 8px;
}

.question-label {
    margin-top: 25px;
    margin-bottom: 9px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.6px;
}

.choices {
    display: grid;
    gap: 8px;
}

.choice {
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--cream);
    text-align: left;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: 0;
    cursor: pointer;
}

.choice:hover:not(:disabled),
.choice:focus-visible:not(:disabled) {
    border-color: var(--orange);
    outline: none;
}

.choice:disabled {
    cursor: default;
}

.choice-correct {
    background: var(--orange);
    color: #111;
    border-color: var(--orange);
}

.choice-wrong {
    opacity: .42;
    text-decoration: line-through;
}

.timeline-selected {
    border-color: var(--orange);
    color: var(--orange);
}

.timeline-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

.timeline-actions.hidden {
    display: none;
}

.timeline-action {
    padding: 8px 10px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .8px;
    cursor: pointer;
}

.timeline-submit {
    border-color: var(--orange);
    color: var(--orange);
}

.timeline-action:disabled {
    opacity: .35;
    cursor: default;
}

.result {
    min-height: 20px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
}

.next {
    float: right;
    margin: 6px 0 0;
    padding: 9px 12px;
    border: 1px solid var(--orange);
    background: transparent;
    color: var(--orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
}

.next:hover,
.next:focus-visible {
    background: var(--orange);
    color: #111;
    outline: none;
}

.hidden {
    display: none;
}

.score-status {
    margin-top: 12px;
    padding-top: 9px;
    border-top: 1px solid #353431;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    text-align: right;
}

.game-over {
    padding: 54px 0 0;
    text-align: center;
}

.game-over-label,
.final-score-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.game-over h2 {
    margin: 10px 0 24px;
    color: var(--orange);
    font-size: clamp(42px, 12vw, 68px);
    letter-spacing: -2px;
}

.final-score {
    color: var(--cream);
    font-size: clamp(72px, 22vw, 120px);
    font-weight: 900;
    line-height: .9;
}

.final-score-label {
    margin-top: 12px;
}

.new-game {
    margin-top: 38px;
    padding: 13px 18px;
    border: 1px solid var(--orange);
    background: transparent;
    color: var(--orange);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
}

.new-game:hover,
.new-game:focus-visible {
    background: var(--orange);
    color: #111;
    outline: none;
}

@media (max-width: 430px) {
    .ios-header-spacer {
        height: max(28px, env(safe-area-inset-top));
    }

    .game {
        min-height: calc(100svh - max(28px, env(safe-area-inset-top)));
        padding-left: 18px;
        padding-right: 18px;
    }

    h1 {
        font-size: clamp(36px, 12vw, 49px);
    }

    h2 {
        font-size: clamp(23px, 7vw, 30px);
    }

    .card {
        padding-top: 17px;
    }

    .question-label {
        margin-top: 20px;
    }

    .choice {
        min-height: 44px;
        padding: 9px 12px;
        font-size: 14px;
    }
}

@media (max-height: 720px) {
    .ios-header-spacer {
        height: max(18px, env(safe-area-inset-top));
    }

    .game {
        min-height: calc(100svh - max(18px, env(safe-area-inset-top)));
        padding-top: 6px;
        padding-bottom: 10px;
    }

    h1 {
        font-size: 38px;
    }

    .tagline {
        margin-top: 8px;
        font-size: 13px;
    }

    .card {
        padding-top: 13px;
    }

    h2 {
        font-size: 23px;
    }

    .question-label {
        margin-top: 15px;
        margin-bottom: 7px;
    }

    .choices {
        gap: 6px;
    }

    .choice {
        min-height: 39px;
        padding: 7px 10px;
        font-size: 13px;
    }

    .result {
        margin-top: 6px;
    }
}
