/* Presentation only: keep option DOM order, text nodes and answer handlers intact. */
html body:is(.prototype-landing,.group-quiz-page) #answers{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;align-items:stretch;grid-auto-rows:1fr;
}
html body:is(.prototype-landing,.group-quiz-page) #answers>button{
 display:grid!important;grid-template-columns:32px minmax(0,1fr);gap:8px 12px;align-content:start;align-items:start;
 -webkit-tap-highlight-color:transparent;
 width:100%;min-width:0;min-height:104px;height:auto;margin:0;padding:16px;text-align:left;
 font-size:15px;line-height:1.45;white-space:normal;overflow:visible;overflow-wrap:break-word;word-break:normal;hyphens:auto;
}
html body:is(.prototype-landing,.group-quiz-page) #answers>button::before{
 content:'A';grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:center;width:32px;height:32px;
 border-radius:9px;background:#edc46a;color:#212c28;font:800 17px/1 system-ui,sans-serif;letter-spacing:0;flex:none;
}
html body:is(.prototype-landing,.group-quiz-page) #answers>button:nth-child(2)::before{content:'B';background:#76c8c1}
html body:is(.prototype-landing,.group-quiz-page) #answers>button:nth-child(3)::before{content:'C';background:#b6a3d6}
html body:is(.prototype-landing,.group-quiz-page) #answers>button:nth-child(4)::before{content:'D';background:#efaa88}
html body:is(.prototype-landing,.group-quiz-page) #answers>button>:is(.answer-result-label,.answer-verdict){grid-column:2;grid-row:2;margin-top:0;font-size:12px;line-height:1.35}
@media(max-width:600px){
 html body:is(.prototype-landing,.group-quiz-page) #answers{grid-template-columns:minmax(0,1fr)!important;grid-auto-rows:auto;gap:12px!important}
 html body:is(.prototype-landing,.group-quiz-page) #answers>button{grid-template-columns:28px minmax(0,1fr);padding:10px 12px;gap:6px 10px;min-height:64px;align-items:center}
 html body:is(.prototype-landing,.group-quiz-page) #answers>button::before{width:28px;height:28px;font-size:16px;border-radius:8px}
 html body:is(.prototype-landing,.group-quiz-page) #answers>button>:is(.answer-result-label,.answer-verdict){grid-column:2;grid-row:2}
}
/* Raised warm-white cards; verdict colors remain authoritative. */
html body.prototype-landing #answers {
 --answer-top: #fffefae8;
 --answer-bottom: #f8f7f1db;
 --answer-hover-top: #fffffff0;
 --answer-hover-bottom: #f4f2e9db;
 --answer-stone: url('/assets/editorial-stone.webp');
}
html body:is(.prototype-landing,.group-quiz-page) #answers>button:not(:is(.correct,.wrong,.is-correct,.is-incorrect)){
 background:linear-gradient(180deg,var(--answer-top,#fffefa),var(--answer-bottom,#f8f7f1)),var(--answer-stone,none) center / 320px auto #f8f7f1;border-color:#dedacf;
}
html body:is(.prototype-landing,.group-quiz-page) #answers>button:not(:is(.correct,.wrong,.is-correct,.is-incorrect)):hover:not(:disabled){background:linear-gradient(180deg,var(--answer-hover-top,#fff),var(--answer-hover-bottom,#f4f2e9)),var(--answer-stone,none) center / 320px auto #f4f2e9}
/* Question frame is lighter than the answer cards, keeping a clear hierarchy. */
html body.prototype-landing #quizView>#question,
html body.group-quiz-page #game>#questionText{
 border:1px solid #e4dcc8;border-radius:14px;background:#fffcf4;
 padding:18px 20px;margin:16px 0;box-sizing:border-box;overflow-wrap:break-word;
}
@media(max-width:600px){
 html body.prototype-landing #quizView>#question,
 html body.group-quiz-page #game>#questionText{padding:10px;margin:12px 0;font-size:19px;line-height:1.22;font-weight:600}
}

/* Scope the warm play surface to active games, leaving landing/results intact. */
html body.prototype-landing.quiz-in-progress #challenge .quiz,
html body.group-quiz-page #game{
 background:#f5f0df!important;border-color:#e2dac4!important;
}
html body.prototype-landing.quiz-in-progress #challenge .quiztop{background:transparent!important}
#soloQuizClose {
 display:inline-grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;
 border:1px solid #dedacf;border-radius:50%;background:#fffefa;color:#244333;
 font:500 24px/1 system-ui,sans-serif;cursor:pointer;
}
#soloQuizClose:hover {background:#efede3}
#soloQuizClose:focus-visible {outline:3px solid #17603e;outline-offset:2px}
html body:is(.prototype-landing,.group-quiz-page) #answers{padding-bottom:7px}
html body:is(.prototype-landing,.group-quiz-page) #answers>button{
 border-radius:16px;box-shadow:0 5px 0 #c9c3b3,0 8px 12px #574a2920,inset 0 1px 0 #ffffff;
 transition:box-shadow .12s ease,transform .12s ease;
}
html body:is(.prototype-landing,.group-quiz-page) #answers>button:hover:not(:disabled){
 box-shadow:0 5px 0 #bdb69f,0 9px 16px #574a2929,inset 0 1px 0 #ffffff;
}
html body:is(.prototype-landing,.group-quiz-page) #answers>button:active:not(:disabled){
 transform:translateY(3px);box-shadow:0 2px 0 #bdb69f,0 3px 5px #574a2920;
}
html body:is(.prototype-landing,.group-quiz-page) #answers>button:focus-visible{outline:3px solid #17603e;outline-offset:3px}
@media(prefers-reduced-motion:reduce){
 html body:is(.prototype-landing,.group-quiz-page) #answers>button{transition:none}
}

/* Compact desktop/tablet spacing without reducing the answer text. */
@media(min-width:601px){
 html body:is(.prototype-landing,.group-quiz-page) #answers{gap:14px!important}
 html body:is(.prototype-landing,.group-quiz-page) #answers>button{min-height:88px;padding:12px 14px;gap:6px 10px}
 html body.prototype-landing #quizView>#question,
 html body.group-quiz-page #game>#questionText{padding:14px 16px;margin:12px 0}
}

html body.prototype-landing #quizView {
  max-width: 760px;
  margin-inline: auto;
}

html body.prototype-landing #quizView #answers {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: auto;
}

@media (min-width: 601px) {
  html body.prototype-landing #quizView #answers > button {
    min-height: 60px;
    align-content: center;
    align-items: center;
  }
}
