:root{--secret-ink:#25383a;--secret-teal:#2f8f83;--secret-mint:#96d6c4;--secret-cream:#fff9e9;--secret-coral:#ef8068;--secret-gold:#f5bd4f;--secret-navy:#173b47}
.game-mode-picker{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0 12px;text-align:left}
#languageChoice>.card{width:min(620px,100%)!important}
.login-card .back{display:block;margin-bottom:18px}
.game-mode-card{position:relative;display:flex;align-items:center;gap:12px;min-height:94px;padding:15px;border:2px solid #ead8ae;border-radius:18px;background:#fffdf7;color:#442817;font:inherit;cursor:pointer;transition:.2s ease}
.game-mode-card:hover:not(:disabled){transform:translateY(-2px);border-color:#96d6c4;box-shadow:0 10px 24px rgba(47,143,131,.12)}
.game-mode-card.selected{border-color:var(--secret-teal);background:#effaf6;box-shadow:0 0 0 3px rgba(150,214,196,.25)}
.game-mode-card:disabled{opacity:.52;cursor:not-allowed;filter:grayscale(.35)}
.game-mode-card>span:nth-child(2){flex:1}.game-mode-card b,.game-mode-card small{display:block}.game-mode-card b{font-size:15px}.game-mode-card small{margin-top:5px;color:#846d57;font-size:11px;line-height:1.45}
.game-mode-card>i{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--secret-teal);color:white;font-style:normal;opacity:0;transform:scale(.6)}
.game-mode-card.selected>i{opacity:1;transform:scale(1)}.game-mode-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#fff1bc;font-size:22px}.game-mode-card.secret .game-mode-icon{background:#dff5ef}
.secret-mode-warning{margin:0 0 14px;padding:10px 12px;border-radius:10px;background:#fff1eb;color:#a54b38;font-size:12px;line-height:1.55}
.secret-mode-tag{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-radius:999px;background:#e4f6f0;color:#236f67;font:700 11px "DM Mono",monospace;letter-spacing:.08em;text-transform:uppercase}
.secret-lobby{position:relative;overflow:hidden;background:linear-gradient(145deg,#fffdf5 0%,#effaf6 100%)}.secret-lobby:after{content:"";position:absolute;right:-100px;bottom:-120px;width:280px;height:280px;border-radius:50%;background:rgba(150,214,196,.24)}.secret-lobby .waiting-bana{position:relative;z-index:1;filter:drop-shadow(0 18px 16px rgba(23,59,71,.18))}
.secret-shell{width:min(1180px,calc(100vw - 32px));margin:18px auto 30px;color:var(--secret-ink)}
.secret-mission-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;margin-bottom:12px;padding:16px 18px;border:1px solid rgba(47,143,131,.2);border-radius:22px;background:rgba(255,253,247,.96);box-shadow:0 12px 35px rgba(38,82,76,.1)}
.secret-question{min-width:0}.secret-question small{display:block;margin-bottom:4px;color:#7d7669;font:600 11px "DM Mono",monospace;letter-spacing:.08em;text-transform:uppercase}.secret-question h1{overflow-wrap:anywhere;margin:0;font:700 clamp(25px,4vw,42px)/1.15 Fraunces,"Noto Sans SC",serif;color:#293f40}.secret-question p{margin:6px 0 0;color:#806d58;font-size:12px}
.secret-time{display:grid;place-items:center;min-width:82px;height:68px;padding:0 14px;border-radius:18px;background:var(--secret-navy);color:white;box-shadow:inset 0 -5px 0 rgba(0,0,0,.12)}.secret-time b{font:700 29px "DM Mono",monospace}.secret-time small{font-size:9px;letter-spacing:.14em;text-transform:uppercase;opacity:.72}
.secret-game-card{position:relative;overflow:hidden;border:1px solid #394b55;border-radius:28px;background:#111820;box-shadow:0 20px 50px rgba(23,59,71,.22)}
.secret-game-card:after{content:"";position:absolute;inset:0;border:0 solid rgba(255,57,70,0);pointer-events:none;transition:.12s ease}.secret-game-card.detected:after{border-width:8px;border-color:rgba(255,57,70,.52);box-shadow:inset 0 0 75px rgba(255,34,48,.25);animation:secretDetected .65s ease-in-out infinite alternate}
.secret-canvas-wrap{position:relative;aspect-ratio:5/3;min-height:420px}.secret-canvas{display:block;width:100%;height:100%;touch-action:none;background:#111820}
.secret-hud{position:absolute;left:16px;right:16px;bottom:15px;display:flex;align-items:end;justify-content:space-between;gap:12px;pointer-events:none}.secret-status{max-width:min(620px,72%);padding:11px 15px;border:1px solid rgba(255,255,255,.68);border-radius:16px;background:rgba(255,253,247,.91);box-shadow:0 8px 24px rgba(23,59,71,.12);backdrop-filter:blur(8px);font-size:12px;line-height:1.5}.secret-status b{display:block;font-size:14px;color:var(--secret-navy)}
.secret-legend{padding:9px 12px;border-radius:13px;background:rgba(23,59,71,.84);color:white;font-size:10px;letter-spacing:.04em}
.secret-joystick{position:absolute;right:18px;bottom:74px;display:none;width:112px;height:112px;border:1px solid rgba(255,255,255,.7);border-radius:50%;background:rgba(23,59,71,.19);touch-action:none;backdrop-filter:blur(4px)}.secret-joystick-knob{position:absolute;left:33px;top:33px;width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.92);box-shadow:0 5px 14px rgba(23,59,71,.25)}
.secret-effect{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;opacity:0}.secret-effect.show{animation:secretFlash .82s ease}.secret-effect-card{padding:22px 28px;border-radius:22px;background:rgba(255,253,247,.96);box-shadow:0 18px 50px rgba(23,59,71,.25);text-align:center;transform:scale(.7)}.secret-effect.show .secret-effect-card{animation:secretPop .75s cubic-bezier(.2,.9,.3,1.2)}.secret-effect-card b{display:block;font:700 clamp(26px,5vw,50px) Fraunces,"Noto Sans SC",serif}.secret-effect-card span{display:block;margin-top:4px}.secret-effect.good .secret-effect-card{border:3px solid var(--secret-mint);color:#21766b}.secret-effect.bad .secret-effect-card{border:3px solid var(--secret-coral);color:#b64f3b}
.secret-game-card.alarm{animation:secretAlarm .38s ease 2}.secret-ready{display:grid;place-items:center;min-height:520px;text-align:center;background:radial-gradient(circle at 50% 45%,#fff9dc,#e5f6f0)}.secret-ready img{width:150px;filter:drop-shadow(0 15px 16px rgba(23,59,71,.18))}.secret-ready b{display:block;margin-top:12px;font:700 38px Fraunces,"Noto Sans SC",serif}.secret-ready strong{display:grid;place-items:center;width:86px;height:86px;margin:22px auto;border-radius:50%;background:var(--secret-teal);color:#fff;font:700 42px "DM Mono",monospace;box-shadow:0 13px 0 #226e66}
.secret-teacher-note{margin-top:10px;padding:10px 13px;border-radius:12px;background:#eaf8f4;color:#276e67;font-size:12px;font-weight:600}
.local-secret-bar{position:relative;z-index:30;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px max(18px,calc((100vw - 1180px)/2));background:#163b47;color:#fff;font-size:12px;line-height:1.5}.local-secret-bar b{color:#ffe075}.local-secret-bar>div{display:flex;align-items:center;gap:9px;flex-shrink:0}.local-secret-bar button,.local-secret-bar a{padding:8px 11px;border:1px solid rgba(255,255,255,.5);border-radius:9px;background:#fff9e9;color:#173b47;font:700 11px "Noto Sans SC",sans-serif;text-decoration:none;cursor:pointer}.local-secret-bar button:disabled{opacity:.5;cursor:not-allowed}.local-secret-summary{max-width:650px;margin:36px auto;padding:35px;text-align:center}.local-secret-summary img{width:130px;margin:10px auto}.local-secret-summary h1{font:700 43px Fraunces,"Noto Sans SC",serif}.local-secret-summary p{line-height:1.7}.local-secret-summary small{color:#846d57}.local-secret-summary .primary,.local-secret-error .primary{display:inline-block;text-decoration:none}.local-secret-error{max-width:620px;margin:13vh auto;padding:32px;text-align:center}#localSecretTest[hidden],#localSecretNotice[hidden],#localSecretNext[hidden]{display:none!important}
.secret-brief{min-height:570px;background:radial-gradient(circle at 76% 40%,#263640 0,#111820 48%,#090e13 100%);color:#f4f7f9}.secret-brief-stage{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 290px;align-items:center;min-height:570px;padding:46px 54px;overflow:hidden}.secret-brief-stage:before{content:"";position:absolute;inset:22px;border:1px solid rgba(225,184,77,.24);border-radius:20px;pointer-events:none}.secret-brief-copy{position:relative;z-index:2}.secret-brief-copy h1{margin:16px 0 8px;font:700 clamp(34px,5vw,58px)/1.05 Fraunces,"Noto Sans SC",serif;color:#fff}.secret-brief-question{margin:0 0 21px;color:#b9c8cf}.secret-brief-question b{color:#ffe075;font-size:1.15em}.secret-brief-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.secret-brief-grid>div{display:grid;grid-template-columns:35px 1fr;column-gap:10px;padding:13px;border:1px solid rgba(156,185,196,.2);border-radius:13px;background:rgba(255,255,255,.055)}.secret-brief-grid i{grid-row:1/3;color:#e1b84d;font:800 12px "DM Mono",monospace;font-style:normal}.secret-brief-grid b{font-size:13px}.secret-brief-grid small{margin-top:3px;color:#aebbc0;font-size:10px;line-height:1.5}.secret-confirm{margin-top:20px;background:linear-gradient(135deg,#a9692d,#754622)}.secret-brief-count{display:inline-block;margin:0 0 0 12px;color:#9eabb1;font-size:11px}.secret-brief-count b{color:#ffe075}.secret-brief-bana{position:relative;z-index:2;width:270px;filter:drop-shadow(0 24px 25px rgba(0,0,0,.45));animation:reviewFloat 3.2s ease-in-out infinite}.secret-overview{position:relative;z-index:2;grid-column:1/-1;text-align:center}.secret-overview span{display:block;color:#e1b84d;font:800 12px "DM Mono",monospace;letter-spacing:.22em;text-transform:uppercase}.secret-overview b{display:block;margin:22px 0;color:#fff;font:800 clamp(38px,8vw,82px)/1.55 "DM Mono",monospace;text-shadow:0 0 32px rgba(225,184,77,.28)}.secret-overview p{color:#b9c8cf}.secret-overview strong{display:grid;place-items:center;width:76px;height:76px;margin:18px auto 0;border:2px solid #e1b84d;border-radius:50%;color:#ffe075;font:800 33px "DM Mono",monospace}.secret-demo-home .care-mini{background:linear-gradient(145deg,#fff9e9,#e8f6f2)}.secret-demo-home .care-mini img{max-height:260px;object-fit:contain}.secret-demo-features{display:flex;gap:8px;flex-wrap:wrap;margin:22px 0}.secret-demo-features span{padding:7px 10px;border-radius:999px;background:#eaf8f4;color:#276e67;font-size:11px;font-weight:700}
.secret-demo-set{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;align-items:center;margin:24px 0;padding:16px;border:1px solid #e5d3a6;border-radius:15px;background:#fffaf0}.secret-demo-set span{grid-row:1/3;padding:8px 10px;border-radius:10px;background:#fff0bd;color:#82531c;font-weight:800}.secret-demo-set b{font-size:15px}.secret-demo-set small{color:#8b7965}.secret-mode-overlay{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:20px;background:rgba(42,31,22,.48);backdrop-filter:blur(7px)}.secret-mode-dialog{width:min(620px,100%);padding:30px}.secret-mode-dialog h2{margin:9px 0;font:700 34px Fraunces,"Noto Sans SC",serif}.secret-mode-actions{display:flex;gap:10px;margin-top:18px}.secret-more-modes{padding:12px;border:1px dashed #ccb786;border-radius:12px;color:#92734d;text-align:center;font-size:12px}.secret-classic-preview{max-width:700px;margin:45px auto}.secret-classic-preview .back{margin-bottom:28px}
@keyframes secretFlash{0%,100%{opacity:0}12%,78%{opacity:1}}@keyframes secretPop{0%{transform:scale(.7) rotate(-4deg)}60%{transform:scale(1.06) rotate(2deg)}100%{transform:scale(1)}}@keyframes secretAlarm{35%{box-shadow:0 0 0 7px rgba(239,128,104,.28),0 20px 50px rgba(23,59,71,.14);transform:translateX(-3px)}70%{transform:translateX(3px)}}@keyframes secretDetected{from{opacity:.62}to{opacity:1}}
@media(max-width:760px){.game-mode-picker{grid-template-columns:1fr}.secret-shell{width:min(100% - 16px,1180px);margin-top:8px}.secret-mission-head{padding:12px 14px;border-radius:18px}.secret-canvas-wrap{min-height:500px;aspect-ratio:auto}.secret-joystick{display:block}.secret-legend{display:none}.secret-status{max-width:calc(100% - 130px);font-size:11px}.secret-question p{display:none}.secret-time{min-width:68px;height:60px}.secret-time b{font-size:24px}}
@media(max-width:760px){.local-secret-bar{flex-wrap:wrap}.local-secret-bar>div{width:100%;justify-content:space-between}}
@media(max-width:760px){.secret-brief-stage{grid-template-columns:1fr;padding:34px 25px}.secret-brief-bana{display:none}.secret-brief-grid{grid-template-columns:1fr}.secret-brief-count{display:block;margin:12px 0 0}.secret-brief{min-height:620px}}
@media(orientation:portrait) and (max-width:520px){.secret-canvas-wrap{min-height:540px}}
@media(prefers-reduced-motion:reduce){.secret-game-card.alarm,.secret-effect.show,.secret-effect.show .secret-effect-card{animation-duration:.01ms!important;animation-iteration-count:1!important}}

/* ── 2026-10-09 第二版：浮动摇杆、地图不再变形、提示列移到地图下方、时间到视窗 ── */
.secret-canvas-wrap{min-height:0!important;touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab}
.secret-canvas-wrap:active{cursor:grabbing}
.secret-canvas{width:100%;height:100%}
.secret-joystick{display:none!important;position:absolute;right:auto!important;bottom:auto!important;width:108px;height:108px;margin:-54px 0 0 -54px;border:2px solid rgba(255,255,255,.75);background:rgba(23,59,71,.28);pointer-events:none;z-index:4}
.secret-joystick.on{display:block!important}
.secret-joystick-knob{left:31px!important;top:31px!important;transition:none}
.secret-hud{position:static!important;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#0e161d;border-top:1px solid #2a3a46;pointer-events:auto}
.secret-status{max-width:none!important;flex:1;background:rgba(255,253,247,.95)}
.secret-touch-hint{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);z-index:3;max-width:86%;padding:9px 14px;border-radius:999px;background:rgba(14,22,29,.82);color:#e9f6f2;font-size:12px;font-weight:700;text-align:center;pointer-events:none;transition:opacity .4s}
.secret-touch-hint.gone{opacity:0}
.secret-timeup{position:absolute;inset:0;z-index:6;display:none;place-items:center;padding:20px;background:rgba(8,14,20,.55);backdrop-filter:blur(3px)}
.secret-timeup.show{display:grid;animation:secretTimeupIn .35s ease}
.secret-timeup-card{max-width:340px;padding:24px 28px;border:3px solid #e1b84d;border-radius:24px;background:#fffdf5;color:#2b1d14;text-align:center;box-shadow:0 20px 50px rgba(0,0,0,.35)}
.secret-timeup-card span{display:block;font-size:40px;line-height:1}
.secret-timeup-card b{display:block;margin:8px 0 6px;font:800 26px Fraunces,"Noto Sans SC",serif}
.secret-timeup-card p{margin:0;color:#6d5a46;font-size:14px;line-height:1.6}
@keyframes secretTimeupIn{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}
/* 秘密任务里，全萤幕答题特效不要盖住地图的暗幕（只留 Bana 与金币），1.6 秒后由 JS 收掉 */
body.secret-playing .speedfx-dim{opacity:.25!important}
/* 手机：直式地图，题目列紧凑一点，整个画面一屏放得下 */
@media(max-width:760px){
  .secret-shell.portrait{width:min(100% - 12px,560px);margin:6px auto 16px}
  .secret-shell.portrait .secret-mission-head{grid-template-columns:minmax(0,1fr) auto;padding:10px 12px;margin-bottom:8px}
  .secret-shell.portrait .secret-question h1{font-size:clamp(20px,6vw,28px)}
  .secret-shell.portrait .secret-time{min-width:58px;height:52px}
  .secret-shell.portrait .secret-time b{font-size:21px}
  .secret-game-card{border-radius:20px}
  .secret-hud{padding:10px}
  .secret-legend{display:none}
  .secret-status{font-size:11px}
}

/* ── 2026-10-22 第三版：每题任务简报、全景侦察标签、地图缩到视窗高度 ── */
.secret-mission-brief{display:grid;place-items:center;min-height:min(620px,calc(100vh - 150px));padding:28px 18px;background:radial-gradient(circle at 50% 30%,#1d2a34 0,#0f161d 55%,#080c10 100%);color:#f4f7f9}
.smb-inner{width:min(640px,100%);padding:28px 30px 22px;border:1px solid rgba(225,184,77,.45);border-radius:22px;background:rgba(12,18,24,.82);box-shadow:0 0 0 1px rgba(225,184,77,.08) inset,0 30px 60px rgba(0,0,0,.45)}
.smb-tag{display:block;color:#e1b84d;font:800 12px "DM Mono",monospace;letter-spacing:.24em;text-transform:uppercase}
.smb-inner h1{margin:10px 0 18px;font:800 clamp(28px,5vw,44px)/1.15 "Noto Sans SC",sans-serif;color:#fff;overflow-wrap:anywhere}
.smb-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.smb-opt{position:relative;display:flex;align-items:center;gap:10px;min-height:52px;padding:10px 34px 10px 12px;border:1px solid rgba(156,185,196,.22);border-radius:12px;background:rgba(255,255,255,.04)}
.smb-opt i{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#e1b84d;color:#2b1d14;font:900 14px "DM Mono",monospace;font-style:normal}
.smb-opt span{font:600 16px "Noto Sans SC",sans-serif;color:#eef3f6;overflow-wrap:anywhere}
.smb-opt em{position:absolute;right:10px;top:8px;color:rgba(225,184,77,.7);font-style:normal;font-size:15px}
.smb-rules{margin:14px 0 0;padding:12px 14px 12px 30px;border-radius:12px;background:rgba(255,255,255,.04);color:#b9c8cf;font-size:13px;line-height:1.7}
.smb-hint{margin:16px 0 12px;color:#ffd96a;font-weight:700}
.smb-go{position:relative;width:100%;min-height:52px;border:0;border-radius:14px;background:linear-gradient(90deg,#d8a84a,#f2cf72);color:#2b1d14;font:800 17px "Noto Sans SC",sans-serif;cursor:pointer;box-shadow:0 0 30px rgba(242,207,114,.25)}
.smb-go small{position:absolute;right:16px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:rgba(43,29,20,.16);font:800 14px "DM Mono",monospace}
.smb-map{margin:12px 0 0;color:#7f8d94;font:600 11px "DM Mono",monospace;letter-spacing:.12em}
@media (max-width:560px){.smb-options{grid-template-columns:1fr 1fr}.smb-inner{padding:20px 16px 16px}.smb-opt span{font-size:14px}}
.secret-overview-tag{position:absolute;left:50%;top:50%;z-index:5;transform:translate(-50%,-50%);display:grid;justify-items:center;gap:6px;padding:16px 26px;border:1px solid rgba(225,184,77,.55);border-radius:18px;background:rgba(8,12,16,.72);color:#fff;text-align:center;pointer-events:none;backdrop-filter:blur(2px)}
.secret-overview-tag span{color:#e1b84d;font:800 12px "DM Mono",monospace;letter-spacing:.24em}
.secret-overview-tag b{font:700 15px "Noto Sans SC",sans-serif}
.secret-overview-tag strong{display:grid;place-items:center;width:58px;height:58px;border:2px solid #e1b84d;border-radius:50%;color:#ffe075;font:800 28px "DM Mono",monospace}
body.secret-playing .secret-shell{margin-top:6px;margin-bottom:8px}
body.secret-playing .secret-mission-head{margin-bottom:8px;padding:8px 14px}
/* 10-30 完成后显示第几位完成、本题用时 */
.secret-done-tag{position:absolute;left:50%;top:14px;transform:translateX(-50%);z-index:6;max-width:88%;padding:10px 18px;border-radius:16px;background:rgba(16,40,32,.88);border:2px solid #69e0b8;color:#eafff6;text-align:center;font:600 14px/1.5 "Noto Sans SC",sans-serif;pointer-events:none}
.secret-done-tag b{display:block;font-size:16px;color:#9dfad8}
