/* Shared interaction layer: one palette, a clearer play surface and purposeful motion. */
body.quiz-theme .quiz-page { padding-top: 36px; }
body.quiz-theme .quiz-page .games-heading { align-items: center; margin-bottom: 26px; }
body.quiz-theme .quiz-page .games-heading h1 { font-size: clamp(32px, 4.2vw, 49px); line-height: 1.12; }
body.quiz-theme .games-eyebrow { letter-spacing: .16em; }
body.quiz-theme .games-edition { border-radius: 99px; padding: 9px 13px; color: var(--accent); }
body.quiz-theme .quiz-settings {
  border-radius: 14px; padding: 18px 20px; gap: 14px;
  background: linear-gradient(120deg, #1c211d, #17181b 45%);
  box-shadow: 0 8px 24px #00000012;
}
body.quiz-theme .quiz-settings label { font-size: 10px; letter-spacing: .035em; }
body.quiz-theme .quiz-settings select { min-height: 44px; border-radius: 8px; transition: border-color .18s, background-color .18s; }
body.quiz-theme .quiz-settings select:hover { border-color: #617268; background-color: #232824; }
body.quiz-theme .quiz-settings .mob-text-button { border: 1px solid var(--quiz-border); border-radius: 8px; padding: 12px 15px; min-height: 44px; margin: 0; color: var(--ink); transition: border-color .18s, transform .18s; }
body.quiz-theme .quiz-settings .mob-text-button:hover { border-color: var(--accent); transform: translateY(-1px); }
body.quiz-theme .quiz-bank-note { margin-bottom: 18px; font-size: 11px; }
body.quiz-theme .general-evidence-intro { font-size: 12px; }
body.quiz-theme .mob-game {
  position: relative; isolation: isolate; border-radius: 20px; border-color: #36433a;
  background: linear-gradient(150deg, #1b211d 0, var(--quiz-panel) 26%);
  box-shadow: 0 18px 60px #00000026, inset 0 1px 0 #ffffff06;
}
body.quiz-theme .mob-game::before { content: ''; position: absolute; top: 0; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, #5bd46a85, transparent); pointer-events: none; }
body.quiz-theme .mob-game-top { padding: 19px 28px; gap: 15px; background: #ffffff02; }
body.quiz-theme .quiz-type { border-radius: 99px; padding: 7px 11px; font-size: 10px; }
body.quiz-theme .quiz-phase { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; font: 10px var(--mono-font, monospace); color: var(--muted); letter-spacing: .06em; white-space: nowrap; }
body.quiz-theme .quiz-phase::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px #5bd46a55; }
body.quiz-theme .quiz-phase[data-state=correct] { color: #a0e6af; }
body.quiz-theme .quiz-phase[data-state=wrong]::before { background: #a3a7af; box-shadow: none; }
body.quiz-theme .mob-game progress { height: 4px; }
body.quiz-theme .mob-game progress::-webkit-progress-value { transition: width .28s cubic-bezier(.2,.8,.2,1); }
body.quiz-theme .question-difficulty { padding: 12px 28px; font-size: 11px; border-bottom-color: #ffffff08; }
body.quiz-theme .mob-stats { max-width: none; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 20px 28px 8px; }
body.quiz-theme .mob-stats > div { border: 1px solid #ffffff09; border-radius: 11px; padding: 13px 15px; background: #ffffff02; text-align: left; }
body.quiz-theme .mob-stats > div:last-child { border: 1px solid #ffffff09; }
body.quiz-theme .mob-stats span { margin-bottom: 7px; font-size: 10px; }
body.quiz-theme .mob-stats strong { display: inline-block; white-space: nowrap; font-size: 24px; letter-spacing: -.025em; transform-origin: left center; }
body.quiz-theme .quiz-layout { grid-template-columns: minmax(0,.83fr) minmax(0,1.17fr); gap: 32px; padding: 24px 28px 32px; align-items: start; }
body.quiz-theme .quiz-subject { border-radius: 14px; background: #15181a; border-color: #343b36; }
body.quiz-theme .quiz-image { aspect-ratio: 4/3; min-height: 230px; border-color: #343b36; background: radial-gradient(ellipse at 50% 60%, #5bd46a0c, transparent 65%), var(--quiz-stage); }
body.quiz-theme .quiz-image::before { content: ''; position: absolute; inset: 0; pointer-events: none; }
body.quiz-theme .quiz-image::before { background-image: linear-gradient(#ffffff03 1px, transparent 1px), linear-gradient(90deg, #ffffff03 1px, transparent 1px); background-size: 28px 28px; }
body.quiz-theme .quiz-subject-caption { padding: 18px 20px 4px; }
body.quiz-theme .quiz-subject-caption h2 { font-size: 24px; margin: 8px 0 0; }
body.quiz-theme .quiz-image-credit { margin: 8px 20px 18px; font-size: 10px; }
body.quiz-theme .quiz-page .mob-question-area h3 { max-width: none; font-size: clamp(25px, 2.5vw, 33px); line-height: 1.3; margin: 0 0 15px; letter-spacing: -.035em; }
body.quiz-theme .quiz-page .mob-scope { line-height: 1.85; margin-bottom: 22px; }
body.quiz-theme .mob-options { gap: 12px; }
body.quiz-theme .quiz-page .mob-option {
  min-height: 79px; padding: 17px 14px; border-radius: 11px; font-size: 14px; line-height: 1.5;
  overflow: hidden; transition: transform .18s, border-color .18s, background-color .18s, box-shadow .18s;
}
body.quiz-theme .mob-option:not(:disabled):hover { transform: translateY(-3px); box-shadow: 0 8px 18px #00000029; }
body.quiz-theme .mob-option:not(:disabled):active { transform: translateY(0) scale(.985); }
body.quiz-theme .mob-option:focus-visible { outline-offset: 3px; }
body.quiz-theme .mob-option kbd { border-radius: 5px; width: 23px; height: 23px; background: #ffffff04; }
body.quiz-theme .mob-option[data-result=correct] { box-shadow: 0 0 0 1px #8ad39f22, 0 6px 26px #5bd46a0b; }
body.quiz-theme .mob-option[data-result=correct]::after,
body.quiz-theme .mob-option[data-result=wrong]::after { position: absolute; right: 8px; top: 5px; font-size: 10px; opacity: .8; }
body.quiz-theme .mob-option[data-result=correct]::after { content: '✓'; }
body.quiz-theme .mob-option[data-result=wrong]::after { content: '×'; }
body.quiz-theme .quiz-selection-wave { position: absolute; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: #9ae5a938; pointer-events: none; }
body.quiz-theme .mob-feedback { margin-top: 22px; padding: 16px 18px; background: #14251c; border: 1px solid #3b6248; border-radius: 12px; }
body.quiz-theme .mob-feedback[data-correct=false] { background: #271e21; border-color: #64464d; }
body.quiz-theme .mob-feedback strong { display: block; font-size: 15px; }
body.quiz-theme .mob-feedback p { margin: 8px 0; font-size: 12px; }
body.quiz-theme :is(.mob-next, .mob-result-actions button, .duel-primary, .game-launch, .games-play-link) { border-radius: 9px; transition: transform .18s, box-shadow .18s, background-color .18s; }
body.quiz-theme :is(.mob-next, .mob-result-actions button, .duel-primary, .game-launch, .games-play-link):not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 6px 20px #5bd46a20; }
body.quiz-theme .mob-next { width: 100%; justify-content: space-between; margin-top: 14px; min-height: 46px; }
body.quiz-theme .mob-footnote { background: #0000000b; border-color: #ffffff09; }
body.quiz-theme .mob-results { border-radius: 20px; background: radial-gradient(ellipse at 50% 0, #5bd46a10, transparent 60%), var(--quiz-panel); }
body.quiz-theme .mob-final-score { font-size: clamp(64px, 8vw, 94px); color: var(--accent); }
body.quiz-theme .quiz-review li { border-radius: 10px; padding: 15px; }
body.quiz-theme .quiz-rankings { border-radius: 18px; margin-top: 28px; box-shadow: 0 10px 34px #00000012; }
body.quiz-theme .quiz-rank-card { border-radius: 11px; }
body.quiz-theme .quiz-spark { position: absolute; width: 5px; height: 5px; background: var(--accent); pointer-events: none; z-index: 3; }
body.quiz-theme .quiz-spark:nth-of-type(even) { background: #d8f4dc; }
body.quiz-theme[data-presentation=crafting] .quiz-image { min-height: 0; aspect-ratio: auto; background: var(--quiz-stage); }
body.quiz-theme[data-presentation=crafting] .quiz-image::before { display: none; }
body.quiz-theme .game-tile { border-radius: 17px; box-shadow: 0 6px 24px #00000018; transition: transform .22s, border-color .22s, box-shadow .22s; }
body.quiz-theme .game-tile:hover { transform: translateY(-5px); border-color: #59765e; box-shadow: 0 16px 40px #0000002b; }
body.quiz-theme .game-tile-copy { padding: 27px; }
body.quiz-theme .game-tile-copy h2 { font-size: 29px; letter-spacing: -.035em; }
body.quiz-theme .research-tile-art { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 24px; height: 230px; }
body.quiz-theme .research-tile-art img { width: 24%; height: 60%; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
body.quiz-theme .game-tile:hover .research-tile-art img { transform: translateY(-5px) rotate(-4deg); }
body.quiz-theme .game-tile:hover .research-tile-art img:nth-child(2) { transform: translateY(-9px) rotate(3deg); }
body.quiz-theme .research-tile-art.research-photo img { width: 100%; height: 100%; }
body.quiz-theme .game-tile:hover .research-photo img { transform: scale(1.025); }
body.quiz-theme .game-art-label { font-size: 9px; letter-spacing: .1em; }
body.quiz-theme .game-tags li { border-radius: 5px; }
body.quiz-theme .game-launch { min-height: 45px; }
body.quiz-theme .duel { border-radius: 20px; }
body.quiz-theme .duel-player { border-radius: 14px; }
@media(max-width:900px) {
  body.quiz-theme .quiz-layout { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 22px; padding-inline: 22px; }
  body.quiz-theme .quiz-page .mob-question-area h3 { font-size: 27px; }
}
@media(max-width:700px) {
  body.quiz-theme .quiz-page { padding-top: 25px; }
  body.quiz-theme .quiz-page .games-heading { align-items: start; gap: 15px; }
  body.quiz-theme .quiz-page .games-heading h1 { font-size: 35px; }
  body.quiz-theme .quiz-settings { padding: 16px; gap: 12px; }
  body.quiz-theme .quiz-settings .mob-text-button { width: auto; }
  body.quiz-theme .quiz-layout { grid-template-columns: 1fr; gap: 24px; padding: 20px 18px 24px; }
  body.quiz-theme .mob-game-top { padding: 16px 18px; }
  body.quiz-theme .question-difficulty { padding: 12px 18px; }
  body.quiz-theme .mob-stats { gap: 8px; padding: 16px 18px 0; }
  body.quiz-theme .mob-stats > div { padding: 11px 10px; }
  body.quiz-theme .mob-stats strong { font-size: 21px; }
  body.quiz-theme .quiz-image { min-height: 0; aspect-ratio: 16/9; max-height: 220px; }
  body.quiz-theme .quiz-subject-caption h2 { font-size: 23px; }
  body.quiz-theme .quiz-page .mob-question-area h3 { font-size: 27px; }
  body.quiz-theme .quiz-page .mob-option { padding: 14px 11px; min-height: 75px; font-size: 14px; }
  body.quiz-theme .quiz-phase { display: none; }
  body.quiz-theme .game-tile-copy { padding: 24px; }
}
@media(max-width:360px) {
  body.quiz-theme .quiz-layout { padding-inline: 13px; }
  body.quiz-theme .mob-stats { padding-inline: 13px; }
  body.quiz-theme .mob-stats span { font-size: 9px; }
  body.quiz-theme .mob-stats strong { font-size: 17px; }
  body.quiz-theme .mob-stats > div { padding-inline: 7px; }
  body.quiz-theme .quiz-page .mob-option { font-size: 12px; padding: 12px 9px; }
  body.quiz-theme .quiz-page .games-heading h1 { font-size: 31px; }
}
@media(prefers-reduced-motion:reduce) {
  body.quiz-theme *, body.quiz-theme *::before, body.quiz-theme *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  body.quiz-theme .mob-option:not(:disabled):hover,
  body.quiz-theme .game-tile:hover,
  body.quiz-theme .game-tile:hover .research-tile-art img,
  body.quiz-theme .quiz-settings .mob-text-button:hover,
  body.quiz-theme :is(.mob-next, .mob-result-actions button, .duel-primary, .game-launch, .games-play-link):hover { transform: none; }
}

body.quiz-theme .quiz-image::before { z-index: 0; }
body.quiz-theme .quiz-image > img { position: relative; z-index: 1; }
body.quiz-theme .quiz-image[aria-busy=true]::after { z-index: 2; }

body.quiz-theme .quiz-run-settings > summary { display: none; }
@media(max-width:700px) {
  body.quiz-theme .quiz-run-settings { border: 1px solid var(--quiz-border); border-radius: 12px; background: var(--quiz-panel); }
  body.quiz-theme .quiz-run-settings > summary { display: list-item; cursor: pointer; padding: 14px 15px; font-size: 12px; color: var(--ink); }
  body.quiz-theme .quiz-settings-selection { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.7; }
  body.quiz-theme .quiz-run-settings .quiz-settings { border: 0; border-top: 1px solid var(--quiz-border); border-radius: 0 0 12px 12px; box-shadow: none; }
  body.quiz-theme[data-image-kind=texture] .quiz-subject { display: grid; grid-template-columns: 90px minmax(0,1fr); align-items: center; }
  body.quiz-theme[data-image-kind=texture] .quiz-image { grid-row: 1/3; width: 90px; height: 96px; aspect-ratio: auto; border: 0; }
  body.quiz-theme[data-image-kind=texture] .quiz-image > img { width: 64px !important; height: 64px !important; }
  body.quiz-theme[data-image-kind=texture] .quiz-subject-caption { align-self: end; padding: 12px 12px 0; }
  body.quiz-theme[data-image-kind=texture] .quiz-subject-caption h2 { font-size: 21px; margin-top: 5px; }
  body.quiz-theme[data-image-kind=texture] .quiz-image-credit { align-self: start; margin: 5px 12px 12px; font-size: 9px; }
}
@media(max-width:700px) {
  body.quiz-theme .quiz-run-settings > summary { position: relative; list-style: none; padding-right: 38px; }
  body.quiz-theme .quiz-run-settings > summary::-webkit-details-marker { display: none; }
  body.quiz-theme .quiz-run-settings > summary::after { content: '⌄'; position: absolute; right: 16px; top: 15px; color: var(--accent); font-size: 18px; transition: transform .18s; }
  body.quiz-theme .quiz-run-settings[open] > summary::after { transform: rotate(180deg); }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }
