/* 9.10 星球主题。布局、按钮、头像框、文字和反馈以 CSS 绘制。 */
:root{--teal:#4d6eff;--teal-d:#3855dc;--ink:#111;--ink2:#333;--ok:#00d991;--bad:#ff2857;--row:#f4f5f7}
body{background:#080d20}
/* 9.20 背景已移除浏览器白边，直接按页面使用原图。 */
#stage{background:#090f24 url("assets/september2026/background-quiz.png") center/cover no-repeat}
#s-waiting,#s-result,#s-practice-end{background:url("assets/september2026/background-panel.png") center top/cover no-repeat}
.screen{padding:0 10px calc(14px + env(safe-area-inset-bottom));gap:0}
/* 恢复原有返回栏，在正常布局中占位，让下方内容随之下移。 */
.topbar{height:calc(64px + env(safe-area-inset-top));min-height:64px;margin:0;background:transparent}
.topbar .title{font-size:19px;letter-spacing:1px;color:#fff}
.back svg{stroke:#fff}
.logo-area{height:43%;flex-shrink:0}
.logo{width:80%;animation:none}
.btn-area{justify-content:flex-start;padding-top:3vh}
.mode-btns{gap:23px}
.mode-btn{width:187px;height:47px;border:1.5px solid #fff;font-size:24px;font-weight:600;letter-spacing:0;box-shadow:none}
.mode-btn.practice,.mode-btn.compete{background:#4d6eff}
.mode-btn.compete.disabled{background:#999}
.compete-hint{color:white;font-size:14px;margin-top:6px}
.avatar-wrap{gap:5px;flex-shrink:0}
.avatar,.avatar.thin{width:85px;height:85px;border:2px solid #4d6eff;background:#fff}
.avatar.blank{background:#fff}
.avatar img{width:82%;height:82%;object-fit:contain}
.name-pill{border:0;background:#fff;color:#111;font-size:13px;font-weight:400;padding:1px 13px;line-height:1.3}
#s-waiting .center-col,#s-result>div:nth-child(2),#s-practice-end>div:nth-child(2){
  position:relative;isolation:isolate;flex:1;min-height:0;border-radius:48px 48px 0 0;padding:0 20px 22px;
  background:none;
  scrollbar-width:none;
}
#s-waiting .center-col{padding-top:15px;margin-top:28px}
#s-waiting .hi{font-size:19px;font-weight:400;line-height:1.3;max-width:250px;margin:20px 0 45px}
.opponents{display:flex;justify-content:center;flex-wrap:wrap;gap:16px 8px;margin:6px 0;max-width:350px}
.opp{flex:0 0 calc((100% - 16px)/3);gap:5px}
.opp .avatar{width:82px;height:82px;border-width:3px}
.opp .name-pill{font-size:13px;padding:1px 9px}
.opp.empty .avatar{border-color:#4d6eff;background:#fff4d9;position:relative}
.avatar .person-head{position:absolute;width:39%;height:45%;border-radius:50%;top:10%;background:#7189bd;border:1px solid #596f9f}
.avatar .person-body{position:absolute;width:88%;height:55%;border-radius:50% 50% 0 0;bottom:-8%;background:#7189bd}
.opp .waitname{font-size:14px;color:#222}
.wait-tip{font-size:18px;letter-spacing:0;white-space:nowrap;margin-top:35px}
.wait-count{font-size:14px}
#s-quiz .topbar{margin-bottom:18px}
#quizAvatarWrap{margin:6px 0 18px!important}
.progress{color:white;gap:10px;margin:0 0 22px}
.progress .label,.progress .num{font-size:13px;font-weight:400}
.progress .track{height:5px;background:white}
.progress .fill{background:#4d6eff}
.progress .num b{font-size:18px;font-weight:400}
.card{border-radius:11px;padding:20px 17px 32px;box-shadow:none;margin-bottom:12px}
.card .head{font-size:13px}
.card .head .v{font-size:14px;font-weight:400}
.dash{border-top:1px dashed #ddd;margin:22px 0}
.qtext{font-size:18px;line-height:1.6;margin:0 0 25px;overflow-wrap:anywhere}
.opts{gap:12px;padding:0}
.opt{position:relative;min-height:50px;padding:0 8px 0 0;border:0;border-radius:0;gap:10px;background:#f4f5f7}
.opt .letter{position:relative;isolation:isolate;width:47px;min-height:47px;line-height:47px;font-size:25px;color:white!important}
.opt .letter:before{content:"";position:absolute;inset:0;z-index:-1;border-radius:14px;background:linear-gradient(145deg,#ccd8ff,#4d6eff);transform:rotate(-14deg)}
.opt .otext{font-size:14px;line-height:1.4;overflow-wrap:anywhere;padding:8px 0}
.opt .mark{width:20px;height:20px;border:1px solid #dce1e5;background:white}
.opt .mark svg{width:14px;height:14px}
.opt.correct .letter:before{background:linear-gradient(145deg,#c0ffe7,#00d991)}
.opt.wrong .letter:before{background:linear-gradient(145deg,#ffccd7,#ff2857)}
.opt.correct .otext{color:var(--ok)}
.opt.wrong .otext{color:var(--bad)}
#s-result>div:nth-child(2),#s-practice-end>div:nth-child(2){padding-top:20px;margin-top:24px}
.result-title{width:204px;height:50px;min-height:50px;margin:35px auto 30px}
.result-title .fallback{font-size:34px}
.score-line{font-size:17px;font-weight:400;line-height:1.35;margin:3px 0}
.score-line b{font-weight:500}
.congrats{font-size:16px;font-weight:400;margin:52px 0 24px;line-height:1.65}
.phone-box{height:42px;border:1px solid #ffffff88;background:#b6b6b688;margin:0 0 35px;font-size:13px;border-radius:24px;user-select:text;-webkit-user-select:text}
.phone-box::placeholder{color:#f4f4f4}
.btn-solid{width:125px;height:38px;border-radius:0;font-size:23px;font-weight:400;letter-spacing:0;margin:0 auto}
#phoneSubmitted .congrats{margin-top:45px}
.medal{width:103px;height:131px;min-height:131px;margin:0 auto}
#s-practice-end .result-title{margin-top:32px}
#s-practice-end .btn-solid{margin-top:65px}
#s-trans{background:rgba(0,0,0,.75);color:#d9fff0}
.trans .big{color:#d9fff0}
#overlay{background:rgba(9,15,36,.9)}
#overlay .msg{color:white}
#confirm{background:rgba(0,0,0,.55)}
@media(max-width:350px){.screen{padding-left:8px;padding-right:8px}.opp .avatar{width:70px;height:70px}.wait-tip{font-size:15px}.card{padding:16px 12px 24px}.qtext{font-size:16px}.opt .otext{font-size:13px}}
@media(max-height:700px){#s-waiting .hi{margin:12px 0 16px}.wait-tip{margin-top:16px}.result-title{margin-top:20px;margin-bottom:20px}.congrats{margin-top:24px}.phone-box{margin-bottom:20px}#s-practice-end .btn-solid{margin-top:15px}}
