:root{--accent:#efbb64;--accent-dark:#352515;--line:#344453;--scene:url('/games/operation-signal/assets/math-scene.png');--recon-aspect:1;--burst-aspect:1}
body{background:#080e17;color:#f2f4f8;font-family:'Segoe UI',Arial,sans-serif}
body[data-subject=english]{--accent:#78d7e5;--accent-dark:#163741;--scene:url('/games/operation-signal/assets/english-scene.png')}
.ambient{background:linear-gradient(#070d17e8,#070d17c9),var(--scene) center bottom/cover no-repeat}
.ambient:after{display:none}
.shell{max-width:1450px;padding:0 34px 26px}
.topbar{min-height:90px;border-color:#3646558a}
.brand{gap:10px}.brand-symbol{background:none;transform:none;width:48px;height:48px;border-radius:0}
.brand-symbol .prop-icon{width:48px;height:48px}
.brand strong{font:700 20px/1.05 Bahnschrift,'Segoe UI',sans-serif;letter-spacing:.08em}.brand strong span{color:var(--accent)}
.brand small{font-size:10px;margin-top:7px;letter-spacing:.12em;color:#a7b7c8}
.xp{display:flex;align-items:center;gap:6px;padding:9px 13px;border:1px solid #536069;background:#16222bd9;border-radius:8px;color:var(--accent);font-size:17px}
.xp .prop-icon{width:24px;height:24px}.xp small{font-size:10px;color:#bbc4cf;font-weight:600}
.settings-button .prop-icon{width:23px;height:23px}
.button{border-radius:6px;letter-spacing:.015em;background:#15222f;border-color:#4b5c6a;box-shadow:0 2px 0 #0007;transition:background .15s,transform .15s,border-color .15s}
.button:hover{background:#233546;border-color:var(--accent);transform:translateY(-1px)}
.button.primary{background:var(--accent);color:#101a23;border-color:var(--accent);box-shadow:0 3px 0 #0009;font-weight:750}
.button.primary:hover{background:#ffe0a6}.button.quiet{background:transparent;box-shadow:none;border-color:transparent}
.subject-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:22px 0}
.tabs{margin:0;gap:9px}.tab{border-radius:5px;font-family:Bahnschrift,'Segoe UI',sans-serif;font-size:17px;padding:11px 24px;background:#14212ee6;color:#b9c7d6;border-color:#35495b}
.tab span{font-size:11px;opacity:.65;margin-right:11px}.tab.selected{background:var(--accent);color:#101a23;border-color:var(--accent);box-shadow:0 2px 0 #0006}
.subject-status{font-size:12px;color:#b0c3ce;margin:0;white-space:nowrap}.status-dot{display:inline-block;background:#8bccad;width:5px;height:5px;border-radius:50%;margin-right:7px;box-shadow:0 0 10px #82d4ba77}
.home-feature{grid-template-columns:minmax(0,1fr) 310px;gap:20px;margin-bottom:30px}
.home-feature .home-hero{display:block;position:relative;min-height:336px;border-radius:10px;border:1px solid #5a6170;background:#0b1723;overflow:hidden;box-shadow:0 18px 50px #0004}
.hero-scene{position:absolute;inset:0;background:linear-gradient(90deg,#06111bea 0%,#06111b8a 52%,#06111b08 80%),var(--scene) center 57%/cover no-repeat}
.hero-scene:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#06111bbb,transparent 45%);pointer-events:none}
.home-feature .hero-copy{position:relative;z-index:2;padding:30px 32px;max-width:74%}
.eyebrow{color:var(--accent);font-size:10px;letter-spacing:.16em}
.hero-copy .eyebrow{font-size:9px;white-space:nowrap;margin-bottom:17px}
.home-feature h1{font:700 clamp(36px,3.7vw,54px)/.96 Bahnschrift,'Segoe UI',sans-serif;letter-spacing:-.02em;text-transform:uppercase;margin-bottom:19px;text-shadow:0 3px 12px #000c}
.hero-description{font-size:14px;color:#c1cfda;max-width:320px;line-height:1.5;margin-bottom:24px}
.hero-actions{display:flex;align-items:center;gap:19px}.hero-actions .primary{font-size:13px;padding:12px 16px}
.hero-round-count{font-size:10px;line-height:1.65;color:#a8bbc7;white-space:nowrap}.hero-round-count strong{font-weight:600;color:#dae4ea}
.hero-drone{position:absolute;right:19px;bottom:25px;width:158px;z-index:1;text-align:center;pointer-events:none}
.hero-drone .sprite{width:158px;display:block}
.hero-drone>span:last-child{font:9px/1.5 Bahnschrift,'Segoe UI',sans-serif;letter-spacing:.2em;color:#9cb9c6}
.prop-icon{display:inline-block;flex:none;width:30px;height:30px;background-image:url('/games/operation-signal/assets/ui-props-atlas.png');background-repeat:no-repeat;background-size:400% 400%;vertical-align:middle;image-rendering:auto}
.sprite{display:inline-block;background-repeat:no-repeat;image-rendering:auto;pointer-events:none}
.sprite-recon{background-image:url('/games/operation-signal/assets/recon-sheet.png');background-size:400% 200%;background-position:0 0;aspect-ratio:var(--recon-aspect);animation:recon-idle 2.8s steps(1,end) infinite}
.sprite-recon.sprite-ack{background-position:0 100%;animation:recon-ack 1.1s steps(1,end) 1 forwards}
.sprite-burst{background-image:url('/games/operation-signal/assets/xp-burst-sheet.png');background-size:400% 200%;aspect-ratio:var(--burst-aspect);animation:xp-burst .88s steps(1,end) 1 forwards}
@keyframes recon-idle{0%,100%{background-position:0 0}25%{background-position:33.333333% 0}50%{background-position:66.666667% 0}75%{background-position:100% 0}}
@keyframes recon-ack{0%{background-position:0 100%}25%{background-position:33.333333% 100%}50%{background-position:66.666667% 100%}75%,100%{background-position:100% 100%}}
@keyframes xp-burst{0%{background-position:0 0}12.5%{background-position:33.333333% 0}25%{background-position:66.666667% 0}37.5%{background-position:100% 0}50%{background-position:0 100%}62.5%{background-position:33.333333% 100%}75%{background-position:66.666667% 100%}87.5%,100%{background-position:100% 100%}}
.reward-burst{position:fixed;width:100px;transform:translate(-50%,-50%);filter:drop-shadow(0 0 10px #7cddc229);z-index:40}
.art-paused .sprite,.is-paused .sprite{animation-play-state:paused!important}
body.calm .sprite{animation:none!important;background-position:0 0!important}
.scoreboard{align-self:stretch;border-color:#56636b;border-radius:10px;padding:22px;background:linear-gradient(160deg,#1e2c33f8,#101c29f5);box-shadow:0 16px 45px #0004;position:relative;overflow:hidden}
.scoreboard:before{content:'';height:3px;position:absolute;inset:0 0 auto;background:var(--accent)}
.board-heading h2{font:700 29px/1.1 Bahnschrift,'Segoe UI',sans-serif;letter-spacing:-.025em;margin-bottom:14px}
.board-heading .eyebrow{font-size:9px;color:var(--accent)}.board-trophy .prop-icon{width:60px;height:60px;filter:drop-shadow(0 4px 4px #0007)}
.board-intro{font-size:11px;line-height:1.5;margin-bottom:15px;max-width:220px;color:#aabfcb}
.board-row{padding:12px 0;min-height:45px;grid-template-columns:22px minmax(0,1fr) auto;font-size:14px;border-color:#40505d}
.board-rank{font:12px Bahnschrift,'Segoe UI',sans-serif;color:#8fadb9}.board-row:first-child .board-rank{color:var(--accent)}
.board-row strong{font:700 20px Bahnschrift,'Segoe UI',sans-serif;color:var(--accent)}.board-row strong small{font-size:9px;color:#a9bdc9}
.board-name small{font-size:9px;margin-left:6px;color:#8c9fac}.board-row.your-score{background:#23443c;box-shadow:inset 3px 0 #85d4b1}
.section-heading{margin-bottom:17px;align-items:end}.section-heading .eyebrow{font-size:9px;margin-bottom:5px}.section-heading h2{font:650 26px Bahnschrift,'Segoe UI',sans-serif}
.section-heading>.small{font-size:11px;padding-bottom:2px}
.missions{gap:16px;grid-template-columns:repeat(3,minmax(0,1fr))}
.mission{display:block;border-radius:8px;padding:0;min-height:0;background:#152331;border-color:#405361;box-shadow:0 8px 25px #0004;transition:border-color .15s,transform .15s,box-shadow .15s}
.mission:hover{border-color:var(--accent);transform:translateY(-3px);box-shadow:0 12px 30px #0007}
.mission-checked{border-color:#5c9b88}
.mission-art{display:block;position:relative;height:126px;overflow:hidden;background:#172430;border-bottom:1px solid #455967}
.scene-tile{display:block;position:absolute;width:100%;aspect-ratio:1;top:50%;left:0;transform:translateY(-50%);background-image:url('/games/operation-signal/assets/mission-atlas.png');background-repeat:no-repeat;background-size:400% 400%;image-rendering:auto}
.mission-art:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#07152272,transparent 55%);pointer-events:none}
.mission-number{position:absolute;left:14px;top:12px;z-index:1;color:#eaf0f7;background:#091522bd;border:1px solid #90a9ad6b;padding:3px 6px;border-radius:3px;font:11px Bahnschrift,'Segoe UI',sans-serif;letter-spacing:.1em}
.mission-art-level{position:absolute;right:13px;bottom:12px;z-index:1;font-size:11px;letter-spacing:2px;background:#091522b8;padding:4px 6px;border-radius:3px}
.mission-body{display:block;padding:17px 18px}.mission-heading{display:flex;gap:10px;justify-content:space-between;align-items:start}
.mission h3{font:650 19px/1.18 Bahnschrift,'Segoe UI',sans-serif;letter-spacing:-.02em;margin:0 0 9px}
.mission-arrow{font-size:17px;color:var(--accent);line-height:1.15}
.mission .description{display:block;font-size:12px;line-height:1.5;color:#aabfcf;min-height:36px;margin-bottom:17px}
.mission-progress{font-size:10px;color:#b5c5d1}.track{height:3px;background:#314654}.track i{background:var(--accent)}
.home-foot{margin-top:23px}.privacy-note{color:#8da3b4;font-size:11px}
.round-back{font-size:12px;margin:13px 0 14px}.round-grid{gap:18px}
.question-panel{background:#12212ff5;border-color:#556978;border-radius:9px;box-shadow:0 10px 38px #0004}
.question-header{position:relative;gap:11px;align-items:center;margin-bottom:18px}.question-emblem{width:38px;height:38px;background:#263a43;border:1px solid #4e6572;border-radius:6px;display:grid;place-items:center;flex:none}
.question-emblem .prop-icon{width:34px;height:34px}.question-header>.eyebrow{flex:1;margin:0;line-height:1.55;font-size:10px}
.question-panel h1{font-family:Bahnschrift,'Segoe UI',sans-serif;font-weight:650}.prompt{font-size:20px;line-height:1.55;color:#e7eff7}
.question-panel .metadata{color:#9eb9c7}.field>label{color:#bbcfdd;font-size:13px}
input[type=text],input[type=password],textarea,select{background:#081623;border-color:#577184;border-radius:5px;box-shadow:inset 0 2px 5px #0004;color:#f4f8fb}
input:focus,textarea:focus,select:focus{outline-color:var(--accent)}
.field.correct input,.field.correct textarea{border-color:#82ceb0}.field.revisit input{border-color:#f0bd6c}
.side-panel{position:relative;background:#0f1d2bf5;border-color:#3e5364;border-radius:9px;overflow:hidden}
.round-illustration{height:132px;position:relative;margin:-26px -26px 20px;overflow:hidden;border-bottom:1px solid #496071;background:#102131}
.round-illustration:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#102131c7,transparent 80%)}
.side-panel:has(.reading-stage) .round-illustration{height:105px;margin-bottom:17px}
.brief-title{font-size:9px;color:var(--accent);letter-spacing:.2em;margin-bottom:12px}
.side-panel h2{font-family:Bahnschrift,'Segoe UI',sans-serif;font-size:20px;color:#e5edf5}
.side-panel p{font-size:13px;line-height:1.65;color:#adbecd}
.story-access summary{font:600 17px/1.35 Bahnschrift,'Segoe UI',sans-serif;color:#e6eff6}
.story-text{font-size:14px;line-height:1.65;max-height:350px;padding-right:10px}
.story-text p{font-size:14px;color:#bbccda}.story-text strong{color:var(--accent)}
.brief-visual{background:#071725;border-color:#354f61;padding:14px}.group-visual{gap:7px}
.group-visual>span{height:60px;background:#132635;border-color:#355569;display:grid;place-items:center}
.group-visual>span:before,.group-visual>span:after{display:none}.group-visual .prop-icon{width:54px;height:54px;background-image:url('/games/operation-signal/assets/ui-props-atlas.png');background-color:transparent;background-size:400% 400%;background-repeat:no-repeat;border:0;border-radius:0;position:static}.group-visual .prop-icon:before,.group-visual .prop-icon:after{display:none}
.health-visual{display:flex;align-items:center;gap:12px}.health-visual>.prop-icon{width:40px;height:40px}.health-bar{flex:1}
.ratio-visual>span{display:block;width:35px;height:35px}.ratio-visual .prop-icon{width:35px;height:35px}
.question-dot{border-radius:4px;color:#bfd0dd;background:#142a3c;border-color:#496577}.question-dot.current{color:var(--accent);border-color:var(--accent)}
.question-dot.done{background:#27433c;color:#b4e4d3;border-color:#598d7b}
.feedback{box-shadow:0 5px 15px #0002;border-radius:5px;border-color:#edbb6b;background:#3b3225}.feedback.correct{background:#1d3c32;border-color:#86d0ae}.feedback.review{background:#21384f;border-color:#8ab9e2}
.feedback h3{font-family:Bahnschrift,'Segoe UI',sans-serif;letter-spacing:.02em}
.dictation{background:linear-gradient(130deg,#1e3a48,#142b3a);border-color:#6c98a3;border-radius:7px;padding:18px}
.listen-button{border-color:#89b8c3;background:#284858;color:#d3f5f7}.listen-button:before{color:var(--accent)}
.tip-box{border-color:#2a4459;background:#142c3c}.footer{font-size:11px}
.round-complete,.finished{position:relative;overflow:hidden;background:linear-gradient(90deg,#0f202cef,#0f202cdc),var(--scene) center/cover;border:1px solid #576878;border-radius:10px;box-shadow:0 20px 60px #0004}
.round-complete h1,.finished h1{font-family:Bahnschrift,'Segoe UI',sans-serif;font-weight:650;letter-spacing:-.02em;position:relative}
.complete-mark{border:0;animation:none;background:none;width:80px;height:80px;margin-bottom:14px;position:relative}
.complete-mark .prop-icon{width:80px;height:80px;filter:drop-shadow(0 8px 8px #0009)}
.round-recon{position:absolute;right:22px;top:35px;width:170px;pointer-events:none;opacity:.9}.round-recon .sprite{width:170px}
.round-complete .muted{position:relative;max-width:550px}.round-complete>.eyebrow{position:relative}
.finished .final-score{position:relative;gap:12px;margin:24px 0}.final-score strong{font-family:Bahnschrift,'Segoe UI',sans-serif;color:var(--accent);font-size:76px}
.final-score .finish-token{width:63px;flex:none;position:absolute;right:10px;top:50%;transform:translateY(-50%)}
.final-score span:not(.sprite){font-size:15px;color:#bcd3dd}.score-choice{border-color:#456172}.score-choice h2{font:650 24px Bahnschrift,'Segoe UI',sans-serif}
.finish-grid .finished{padding:30px}.finished .completion-actions .button{font-size:13px}
.modal{background:#142433;border-color:#526b7e;border-radius:10px;box-shadow:0 20px 80px #000b}.modal h2{font-family:Bahnschrift,'Segoe UI',sans-serif}
body.calm .mission:hover{transform:none}
@media(min-width:1440px){.home-feature .hero-copy{max-width:64%}.hero-drone{right:38px;width:205px}.hero-drone .sprite{width:205px}}
@media(max-width:1100px){.missions{grid-template-columns:repeat(2,minmax(0,1fr))}.shell{padding-inline:22px}.home-feature{grid-template-columns:minmax(0,1fr) 282px}.home-feature .hero-copy{padding:28px 25px;max-width:80%}.home-feature h1{font-size:43px}.hero-copy .eyebrow{white-space:normal}.hero-drone{width:128px;right:1px;bottom:19px}.hero-drone .sprite{width:128px}.hero-actions{gap:12px}.hero-round-count{display:none}.round-illustration{margin:-22px -22px 17px}.mission-art{height:135px}}
@media(max-width:900px){.home-feature{grid-template-columns:minmax(0,1fr) 260px}.home-feature .hero-copy{max-width:100%;padding:26px 23px}.home-feature h1{font-size:39px}.hero-drone{width:90px;right:4px;bottom:4px}.hero-drone .sprite{width:90px}.hero-drone>span:last-child{display:none}.hero-description{max-width:260px;font-size:13px}.hero-actions .primary{font-size:12px;padding:11px 12px}.board-heading h2{font-size:25px}.board-trophy .prop-icon{width:45px;height:45px}.scoreboard{padding:18px}.board-row{font-size:13px;min-height:46px}.board-row strong{font-size:18px}}
@media(max-width:740px){.shell{padding-inline:16px}.topbar{min-height:70px}.brand strong{font-size:16px}.brand-symbol,.brand-symbol .prop-icon{width:36px;height:36px}.brand{gap:5px}.top-actions{gap:4px}.xp{padding:5px 7px;font-size:13px}.xp .prop-icon{width:20px;height:20px}.top-actions .settings-button{padding:7px}.settings-button .prop-icon{width:23px;height:23px}.settings-button>span:last-child{display:none}.top-actions .button{min-height:36px;padding:7px 8px}.subject-bar{margin:17px 0;gap:8px}.subject-status{font-size:10px}.tab{padding:10px 14px;font-size:15px}.tab span{margin-right:5px;font-size:9px}.home-feature{display:flex;gap:17px;margin-bottom:25px}.home-feature .scoreboard{padding:17px 20px;order:-1}.board-heading h2{font-size:26px}.board-trophy .prop-icon{width:48px;height:48px}.board-intro{max-width:none;margin-bottom:10px}.board-row{min-height:32px;padding:7px 0;font-size:13px}.board-row strong{font-size:18px}.home-feature .home-hero{min-height:306px}.home-feature .hero-copy{max-width:95%;padding:26px 23px}.home-feature h1{font-size:43px}.hero-description{max-width:255px}.hero-drone{right:9px;bottom:2px;width:118px}.hero-drone .sprite{width:118px}.hero-actions .primary{font-size:12px}.section-heading h2{font-size:24px}.section-heading>.small{max-width:160px;font-size:10px;text-align:right}.round-illustration,.side-panel:has(.reading-stage) .round-illustration{height:73px;margin:-18px -18px 13px}.question-header{gap:8px;margin-bottom:12px}.question-emblem{width:30px;height:30px}.question-emblem .prop-icon{width:28px;height:28px}.question-header>.eyebrow{font-size:9px}.question-panel h1{font-size:23px}.prompt{font-size:17px}.side-panel h2{font-size:18px}.side-panel .brief-title{font-size:9px}.story-text{max-height:260px}.story-text p{font-size:14px}.story-access summary{font-size:16px}.round-recon{width:115px;right:8px;top:24px;opacity:.55}.round-recon .sprite{width:115px}.complete-mark,.complete-mark .prop-icon{width:63px;height:63px}.finish-grid .finished{padding:25px}.final-score strong{font-size:64px}.final-score .finish-token{width:50px;right:0}.finish-grid{gap:17px}.finished .completion-actions{gap:10px}}
@media(max-width:640px){.missions{grid-template-columns:1fr}.mission-art{height:150px}.mission-body{padding:17px 19px}.mission h3{font-size:21px}.mission .description{font-size:13px;min-height:0;margin-bottom:17px}.mission-progress{font-size:11px}.scene-tile{width:100%;}.subject-status{display:none}}
@media(max-width:420px){.shell{padding-inline:12px}.topbar{min-height:62px}.top-actions .xp{display:flex}.xp .prop-icon{display:none}.xp{font-size:12px;padding:4px 6px}.xp small{font-size:8px}.brand strong{font-size:14px}.brand-symbol,.brand-symbol .prop-icon{width:30px;height:30px}.top-actions .button{font-size:11px;padding:6px}.settings-button .prop-icon{width:20px;height:20px}.home-feature .hero-copy{padding:24px 20px;max-width:100%}.home-feature h1{font-size:39px}.hero-description{max-width:220px;font-size:12px}.hero-drone{width:85px;right:0;bottom:9px}.hero-drone .sprite{width:85px}.hero-actions .primary{font-size:11px;padding:10px 11px}.home-feature .home-hero{min-height:294px}.board-row{grid-template-columns:20px minmax(0,1fr) auto;gap:6px}.board-row strong{font-size:17px}.board-name small{font-size:8px}.question-panel{padding:14px}.round-illustration{margin:-18px -18px 12px}.question-header>.eyebrow{font-size:8px}.question-panel .question-header .stars{font-size:10px;letter-spacing:1px}.question-panel h1{font-size:20px}.question-panel .prompt{font-size:16px;line-height:1.5}.finish-grid .finished{padding:22px}.finished .final-score{margin:22px 0}.final-score strong{font-size:60px}.final-score span:not(.sprite){font-size:12px}.final-score .finish-token{display:none}.score-choice h2{font-size:22px}}
@media(max-height:700px) and (min-width:741px){.topbar{min-height:66px}.brand-symbol,.brand-symbol .prop-icon{width:38px;height:38px}.brand strong{font-size:17px}.brand small{font-size:9px}.round-back{margin:6px 0 9px}.question-header{margin-bottom:10px}.question-emblem{width:31px;height:31px}.question-emblem .prop-icon{width:29px;height:29px}.question-panel h1{font-size:22px}.question-panel .prompt{font-size:18px}.round-illustration{height:94px}.side-panel:has(.reading-stage) .round-illustration{height:65px}.story-text{max-height:260px}.question-panel{padding-bottom:160px}.answer-actions{background:#142638fa;border-color:#668194}.round-bottom{background:#142638fa;border-color:#668194}}
@media(max-height:480px) and (min-width:741px){.topbar{min-height:54px}.brand small{display:none}.round-illustration,.side-panel:has(.reading-stage) .round-illustration{height:50px;margin:-16px -16px 12px}.question-panel .prompt{font-size:16px}.question-panel h1{font-size:19px}.story-text{max-height:180px}.question-header{margin-bottom:7px}.subject-bar{margin:13px 0}.home-feature .home-hero{min-height:306px}}
@media(max-width:740px){.question-panel{padding-bottom:165px}.answer-actions{background:#142638fa;border-color:#668194}.round-bottom{background:#142638fa;border-color:#668194}}
@media(prefers-reduced-motion:reduce){.sprite{animation:none!important;background-position:0 0!important}.mission:hover{transform:none!important}}
@media(max-height:700px) and (min-width:741px){.question-panel:has(.dictation) .dictation{padding:12px;margin:12px 0}.question-panel:has(.dictation) .listen-button{min-height:38px;padding:7px 11px;font-size:14px}.question-panel:has(.dictation) .dictation #audio-status{margin-top:7px;font-size:11px}.question-panel:has(.dictation) .metadata{margin:8px 0 10px}.question-panel:has(.dictation) input[type=text]{min-height:46px;padding:9px 13px}}

/* A home-menu link matching the Cube Net Tutorium destination. */
.tutorium-menu{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin:0 0 18px;padding:10px 14px;border:1px solid #557c70;border-radius:10px;background:#17352f;color:#b9d9ce}.tutorium-menu .menu-tutorium{display:inline-flex;align-items:center;gap:7px;min-height:40px;text-decoration:none;border-color:#88cdb8;color:#b9f5dc;white-space:nowrap}.tutorium-menu>span{flex:1;min-width:160px;font-size:12px;line-height:1.4}.tutorium-menu .menu-tutorium:hover{background:#22483e}.tutorium-menu .menu-tutorium:focus-visible{outline:3px solid #b9f5dc;outline-offset:3px}
@media(max-width:520px){.tutorium-menu{gap:8px;margin-bottom:12px;padding:8px 10px}.tutorium-menu>span{min-width:100px;font-size:10px}.tutorium-menu .menu-tutorium{padding:9px 10px;font-size:12px}}
