:root { --ink: #20283a; --muted: #697286; --paper: #f6f7fb; --line: #e6e8ef; --coral: #bd8176; --green: #6f9276; }
* { box-sizing: border-box; }
body.mini-game-page { min-height: 100vh; margin: 0; padding: 0 18px; display: flex; flex-direction: column; align-items: center; background: var(--paper); color: var(--ink); font-family: 'DM Sans', 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.game-header { width: min(760px, 100%); min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.back-link { color: #596477; font-size: .88rem; font-weight: 700; text-decoration: none; }
.back-link:hover, .text-link:hover { color: var(--green); }
.small-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: 'Manrope', sans-serif; font-size: .93rem; font-weight: 800; }
.small-brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--ink); color: white; font-size: .84rem; letter-spacing: -.08em; padding-right: 2px; }
.quiz-main { width: min(540px, 100%); flex: 1; padding: 32px 0 26px; display: flex; flex-direction: column; align-items: center; }
.game-heading { text-align: center; margin-bottom: 22px; }
.game-kicker { color: #7a8798; font-size: .68rem; font-weight: 800; letter-spacing: .14em; }
.game-heading h1 { margin: 9px 0 7px; font-family: 'Manrope', sans-serif; font-size: clamp(2.3rem, 8vw, 3rem); line-height: 1.1; letter-spacing: -.065em; }
.game-heading h1 span { color: var(--coral); }
.game-heading p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.quiz-panel, .quiz-result { width: 100%; padding: 25px; border: 1px solid var(--line); border-radius: 19px; background: white; box-shadow: 0 10px 30px rgba(32, 40, 58, .04); }
.quiz-progress-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #7a8497; font-size: .78rem; font-weight: 700; }
.progress-track { width: 100%; height: 6px; margin: 11px 0 23px; overflow: hidden; border-radius: 999px; background: #f0f0f5; }
.progress-bar { width: 10%; height: 100%; border-radius: inherit; background: var(--coral); transition: width 180ms ease; }
.quiz-panel h2 { margin: 0 0 18px; font-family: 'Manrope', sans-serif; font-size: 1.25rem; line-height: 1.45; letter-spacing: -.035em; }
.answer-options { display: grid; gap: 9px; }
.answer-option { width: 100%; min-height: 47px; display: flex; align-items: center; gap: 12px; padding: 10px 13px; border: 1px solid #e5e7ee; border-radius: 11px; background: white; color: #3c465a; font: inherit; font-size: .91rem; text-align: left; cursor: pointer; transition: background 140ms ease, border-color 140ms ease, transform 140ms ease; }
.answer-option:hover:not(:disabled) { transform: translateY(-1px); border-color: #d6b1aa; background: #fffafa; }
.answer-option:disabled { cursor: default; }
.option-letter { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 27px; border-radius: 8px; background: #f1f2f7; color: #667085; font-size: .79rem; font-weight: 800; }
.answer-option.correct { border-color: #bad1bc; background: #edf5ed; color: #45664c; }
.answer-option.correct .option-letter { background: #d9eadb; color: #45664c; }
.answer-option.incorrect { border-color: #e2bcb6; background: #fff0ee; color: #91584e; }
.answer-option.incorrect .option-letter { background: #f6dcd7; color: #91584e; }
.answer-feedback { min-height: 22px; margin: 13px 0 5px; color: #697286; font-size: .85rem; line-height: 1.5; }
.primary-button { min-height: 45px; padding: 0 20px; border: 0; border-radius: 11px; background: var(--ink); color: white; font: inherit; font-size: .91rem; font-weight: 800; cursor: pointer; transition: opacity 150ms ease, transform 150ms ease; }
.primary-button:hover { opacity: .9; transform: translateY(-1px); }
.quiz-result { padding: 32px 25px; text-align: center; }
.result-icon { margin-bottom: 14px; font-size: 2.5rem; }
.quiz-result h2 { margin: 9px 0 10px; font-family: 'Manrope', sans-serif; font-size: 1.8rem; letter-spacing: -.05em; }
.quiz-result p { margin: 0 0 22px; color: var(--muted); line-height: 1.65; }
.text-link { margin-top: 21px; color: #68758a; font-size: .83rem; font-weight: 700; text-decoration: none; text-align: center; }
.game-footer { width: min(760px, 100%); padding: 19px 0 23px; border-top: 1px solid var(--line); color: #8a91a1; font-size: .79rem; text-align: center; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible { outline: 3px solid #dcb6ad; outline-offset: 3px; }
@media (max-width: 430px) { .game-header { min-height: 65px; } .quiz-main { padding-top: 25px; } .quiz-panel, .quiz-result { padding: 20px 16px; } .quiz-panel h2 { font-size: 1.14rem; } }
