.game-shell:has(.hq-game){grid-template-columns:minmax(0,1fr);gap:12px}
.game-shell:has(.hq-game) .game-status{flex-direction:row;align-items:center;justify-content:space-between;gap:18px;padding:10px 14px}
.game-shell:has(.hq-game) .game-status strong{max-width:68%}
.game-shell:has(.hq-game) .game-tools{flex-direction:row;padding:0}
.game-shell:has(.hq-game) .game-tools button{flex:1;padding:12px 8px;text-align:center}
.hq-game{width:min(100%,1140px);display:grid;gap:7px;color:#f1dfb7}
.hq-title{margin:0;color:#ead09a;font:900 clamp(2.35rem,5vw,4.1rem)/.9 Georgia,serif;letter-spacing:.018em;text-align:center;text-shadow:2px 3px 0 #513319,0 0 22px #c99a4a55}
.hq-archive{--time-ratio:1;position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-areas:"summary" "timeline" "question" "choices" "actions" "prompt";gap:10px;padding:14px 25px 12px;border:2px solid #a97931;border-radius:2px;background-color:#0b1725;background-image:linear-gradient(90deg,#08111de8,#0b1725a8 27%,#0b1725a8 73%,#08111de8),url("/assets/covers/history-quiz.webp");background-position:center;background-size:cover;box-shadow:inset 0 0 0 5px #080b0d,inset 0 0 0 6px #725126,0 6px 0 #020609,0 12px 28px #000b}
.hq-archive::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:radial-gradient(circle at 50% 47%,transparent 0 34%,#040b126b 72%),repeating-linear-gradient(90deg,transparent 0 89px,#c99a4a0b 90px)}
.hq-summary{grid-area:summary;position:relative;z-index:2;display:grid;grid-template-columns:repeat(5,1fr);margin-inline:78px;border:1px solid #a97931;background:#091521f3;box-shadow:0 3px 0 #020609}
.hq-summary span{position:relative;display:grid;gap:2px;padding:8px 5px;text-align:center}
.hq-summary span+span{border-left:1px solid #6c5331}
.hq-summary small{display:flex;align-items:center;justify-content:center;gap:4px;color:#c99a4a;font:900 .49rem "Barlow Condensed",sans-serif;letter-spacing:.14em;text-transform:uppercase}
.hq-summary small svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.hq-summary strong{color:#f1dfb7;font:900 1rem "Barlow Condensed",sans-serif;letter-spacing:.04em}
.hq-summary span:nth-child(3) strong{color:#e4836e}
.hq-summary span:nth-child(4) strong{color:#70c6ad}
.hq-summary span:last-child::before{content:"";position:absolute;left:8px;right:8px;bottom:4px;height:3px;background:#37413e}
.hq-summary span:last-child::after{content:"";position:absolute;left:8px;bottom:4px;width:calc((100% - 16px)*var(--time-ratio));height:3px;background:#48b99a;box-shadow:0 0 7px #48b99a;transition:width .2s linear}
.hq-timeline{grid-area:timeline;position:relative;z-index:2;display:flex;justify-content:center;gap:66px;padding-block:2px 1px}
.hq-timeline::before{content:"CHAPTER PROGRESS";position:absolute;bottom:100%;left:50%;color:#c99a4a;font:900 .44rem "Barlow Condensed",sans-serif;letter-spacing:.18em;transform:translateX(-50%)}
.hq-timeline span{position:relative;width:29px;aspect-ratio:1;display:grid;place-items:center;border:2px solid #a97931;border-radius:50%;background:#0b1725;color:#d5ac67;font:900 .7rem "Barlow Condensed",sans-serif;box-shadow:0 0 0 3px #0b0d0e,0 3px 0 #020609}
.hq-timeline span+span::before{content:"";position:absolute;right:100%;top:50%;width:70px;height:2px;background:#735733;transform:translateY(-50%)}
.hq-timeline span.active{border-color:#e1b453;background:#4a3518;color:#ffe3a1;box-shadow:0 0 0 3px #0b0d0e,0 0 14px #e1b45378}
.hq-timeline span.done{border-color:#4ab293;background:#4ab293;color:#071722}
.hq-timeline span.done::after{content:"\2713"}
.hq-timeline span.done+span::before{background:#4ab293;box-shadow:0 0 6px #4ab293}
.hq-question-panel{grid-area:question;position:relative;z-index:2;width:min(100%,850px);min-height:154px;margin:auto;display:grid;place-content:center;gap:11px;padding:25px 60px 23px;border:2px solid #997033;background:#f1dfb7f2;color:#15110d;box-shadow:inset 0 0 0 4px #f8edcf,inset 0 0 0 5px #88652e,0 7px 18px #000a;text-align:center;clip-path:polygon(2% 0,98% 0,98% 7%,100% 7%,100% 93%,98% 93%,98% 100%,2% 100%,2% 93%,0 93%,0 7%,2% 7%)}
.hq-question-panel::before{content:"ARCHIVE DOSSIER";position:absolute;top:0;left:50%;padding:5px 18px;border:1px solid #94703c;border-top:0;background:#d8b878;color:#5c4327;font:900 .47rem "Barlow Condensed",sans-serif;letter-spacing:.18em;transform:translateX(-50%)}
.hq-era{color:#226c5d;font:900 .7rem "Barlow Condensed",sans-serif;letter-spacing:.2em;text-transform:uppercase}
.hq-era::before,.hq-era::after{content:"";display:inline-block;width:58px;height:1px;margin:0 15px 3px;background:#9b753b}
.hq-question{max-width:770px;margin:0;font:900 clamp(1.45rem,3.1vw,2.45rem)/1.08 Georgia,serif;letter-spacing:-.024em;text-transform:none;text-wrap:balance}
.hq-lives{position:absolute;right:18px;top:14px;display:flex;gap:5px}
.hq-lives span{width:12px;aspect-ratio:1;border:1px solid #6c322a;border-radius:50%;background:#755d43;opacity:.38;box-shadow:inset 0 0 0 2px #c7a16b}
.hq-lives span.active{background:#8f3d38;opacity:1;box-shadow:inset 0 0 0 2px #cf735e,0 2px 0 #55201d}
.hq-choices{grid-area:choices;position:relative;z-index:2;display:grid;grid-template-columns:1fr 1fr;gap:10px 16px;width:min(100%,890px);margin:auto}
.hq-choice{min-height:70px;display:grid;grid-template-columns:48px 1fr 64px;align-items:center;gap:10px;padding:8px 13px;border:2px solid #9f773d;background:#ead7acf2;color:#17120d;clip-path:polygon(2% 0,98% 0,98% 9%,100% 9%,100% 91%,98% 91%,98% 100%,2% 100%,2% 91%,0 91%,0 9%,2% 9%);box-shadow:inset 0 0 0 3px #f7e9c8,0 4px 0 #52351b,0 8px 15px #0009;cursor:pointer;transition:transform .14s,border-color .14s,background .14s,box-shadow .14s,opacity .14s}
.hq-choice:hover:not(:disabled),.hq-choice:focus-visible{z-index:3;transform:translateY(-2px);border-color:#3c977f;outline:3px solid #6ac5ab;outline-offset:2px;background:#f4e5c2;box-shadow:inset 0 0 0 3px #fff2d5,0 4px 0 #376859,0 9px 18px #000b}
.hq-choice>span{width:43px;height:46px;display:grid;place-items:center;border-right:1px solid #977441;color:#226c5d;font:900 1.62rem Georgia,serif}
.hq-choice strong{min-width:0;font:800 clamp(.9rem,1.8vw,1.12rem)/1.16 "Barlow Condensed",sans-serif;letter-spacing:.025em;text-align:center;text-transform:uppercase;text-wrap:balance}
.hq-choice i{color:#80683f;font:900 .4rem "Barlow Condensed",sans-serif;letter-spacing:.09em;text-align:right;text-transform:uppercase}
.hq-choice.hinted{border-color:#d7a541;box-shadow:inset 0 0 0 3px #fff0c9,0 0 0 4px #d7a541,0 8px 18px #d7a54155;animation:hq-pulse .68s ease-in-out infinite alternate}
.hq-choice.correct{border-color:#347f6c;background:#58aa91;color:#06120e;box-shadow:inset 0 0 0 3px #a8dac8,0 4px 0 #245444}
.hq-choice.wrong{border-color:#78312c;background:#b95c50;color:#fff4df;animation:hq-shake .24s linear}
.hq-choice.rejected{border-color:#6b6253;background:#9a8f79;color:#17130e;box-shadow:none;opacity:.62}
.hq-choice:disabled{cursor:default}
.hq-actions{grid-area:actions;position:relative;z-index:2;display:grid;grid-template-columns:repeat(2,minmax(0,240px));justify-content:center;gap:14px}
.hq-actions button{min-height:46px;display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid #c18e3e;border-radius:2px;background:#0a3a31;color:#f0cb7f;font:900 .75rem "Barlow Condensed",sans-serif;letter-spacing:.13em;text-transform:uppercase;box-shadow:0 3px 0 #020609;cursor:pointer}
.hq-actions button:last-child{border-color:#a84b42;background:#6a2a25;color:#f4c09d}
.hq-actions button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.hq-actions button:hover:not(:disabled),.hq-actions button:focus-visible{outline:3px solid #6ac5ab;outline-offset:2px;transform:translateY(-1px)}
.hq-actions button:disabled{opacity:.38;cursor:default;transform:none}
.hq-prompt{grid-area:prompt;position:relative;z-index:2;margin:0;padding-top:5px;border-top:1px solid #6f5632;color:#c9b991;font-size:.59rem;line-height:1.35;text-align:center}
.hq-game.paused .hq-question-panel,.hq-game.paused .hq-choices,.hq-game.paused .hq-timeline{opacity:.42}
.hq-game.complete .hq-title{color:#89d5bc;text-shadow:2px 3px 0 #315e51,0 0 24px #74d3bb66}
@keyframes hq-shake{25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}
@keyframes hq-pulse{to{box-shadow:inset 0 0 0 3px #fff0c9,0 0 0 5px #d7a541,0 9px 19px #d7a54177}}
@media(prefers-reduced-motion:reduce){.hq-choice,.hq-summary span:last-child::after{transition:none}.hq-choice.wrong,.hq-choice.hinted{animation:none}}
@media(max-width:720px){
  .game-shell:has(.hq-game) .game-status{align-items:flex-start;flex-direction:column;gap:7px}.game-shell:has(.hq-game) .game-status strong{max-width:none}
  .hq-title{font-size:2.08rem}.hq-archive{gap:8px;padding:10px 9px;background-position:center}.hq-summary{margin-inline:3px}.hq-summary span{padding:7px 2px}.hq-summary small{font-size:.37rem}.hq-summary strong{font-size:.73rem}
  .hq-question-panel{min-height:128px;padding:19px 34px}.hq-question-panel::before{font-size:.38rem;padding:4px 12px}.hq-era{font-size:.55rem}.hq-era::before,.hq-era::after{width:30px;margin-inline:8px}.hq-question{font-size:clamp(1.18rem,5.2vw,1.75rem)}.hq-lives{right:10px;top:9px}
  .hq-choices{gap:8px}.hq-choice{min-height:60px;grid-template-columns:35px 1fr;padding:7px 9px}.hq-choice>span{width:31px;height:38px;font-size:1.2rem}.hq-choice strong{font-size:.82rem}.hq-choice i{display:none}.hq-timeline{gap:39px}.hq-timeline span{width:26px}.hq-timeline span+span::before{width:43px}.hq-actions button{min-height:46px}.hq-prompt{font-size:.52rem}
}
@media(max-width:430px){
  .hq-title{font-size:1.82rem}.hq-summary small{font-size:.3rem;letter-spacing:.09em}.hq-summary strong{font-size:.62rem}.hq-question-panel{min-height:116px;padding:18px 16px 15px}.hq-era{font-size:.48rem}.hq-era::before,.hq-era::after{width:18px;margin-inline:6px}.hq-question{font-size:1.13rem}.hq-lives{position:static;justify-content:center}
  .hq-choices{grid-template-columns:1fr}.hq-choice{min-height:52px}.hq-choice strong{font-size:.8rem}.hq-timeline{gap:25px}.hq-timeline span{width:24px}.hq-timeline span+span::before{width:28px}.hq-prompt{display:none}
}
