body {
    margin: 20px;
    background: #101e29;
    color: #f1f3f5;
    font-family: system-ui, sans-serif;
    text-align: center;
}

h1 {
    margin-top: 20px;
    font-size: 2rem;
}

a {
    color: #b7dbe8;
}

canvas {
    display: block;
    width: min(100%, 640px);
    margin: 16px auto;
    image-rendering: pixelated;
    background: #438db0;
    touch-action: manipulation;
}

button {
    padding: 12px 20px;
    border: 1px solid #738795;
    border-radius: 6px;
    background: #1b3446;
    color: white;
    font: inherit;
    cursor: pointer;
}

button:focus-visible {
    outline: 2px solid white;
    outline-offset: 3px;
}

#result {
    min-height: 48px;
}

dialog {
    width: min(460px, calc(100% - 32px));
    max-height: 90svh;
    overflow-y: auto;
    padding: 24px;
    border: 1px solid #738795;
    border-radius: 8px;
    background: #101e29;
    color: #f1f3f5;
}

dialog::backdrop {
    background: #000a;
}

#mystery-image {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 16px;
}

#mystery-answers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

#mystery-feedback {
    margin: 16px 0;
}

button.correct {
    background: #245a3a;
}

button.wrong {
    background: #752f38;
}

[hidden] {
    display: none !important;
}

#mystery-feedback {
    min-height: 48px;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
}

#mystery-feedback:empty {
    display: none;
}

.feedback-correct {
    background: #173d2b;
    color: #a2f0b8;
}

.feedback-wrong {
    background: #482830;
    color: #ffc1c1;
}

#mystery-answers .correct {
    border: 2px solid #83df9c;
    background: #245a3a;
    color: white;
}

#mystery-answers .wrong {
    border: 2px solid #f29393;
    background: #752f38;
    color: white;
}

#mystery-answers .unselected {
    opacity: 0.45;
}

#mystery-answers button:disabled {
    cursor: default;
}

#results-dialog {
    text-align: center;
}

#results-score {
    margin: 20px 0;
    font-size: 2rem;
    font-weight: 700;
    color: #83df9c;
}

#results-dialog strong {
    display: block;
    margin: 24px 0;
    line-height: 1.6;
}

#results-dialog a {
    display: inline-block;
    margin: 12px;
}