*{box-sizing:border-box}:root{font-family:"Segoe UI","Malgun Gothic",sans-serif;color:#173d52;background:#e5eff3}body{margin:0;background:linear-gradient(125deg,#eff7fa,#dcebf1);min-height:100vh}button{font:inherit;cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #db776b;outline-offset:3px}[hidden]{display:none!important}.game-shell{max-width:1240px;padding:14px 24px;margin:auto}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}header a{font-size:20px;font-weight:900;color:#234d64;letter-spacing:2px;text-decoration:none}header small{font-size:10px;letter-spacing:0;margin-left:10px;font-weight:500}.header-actions{display:flex;gap:8px}.header-actions button{background:#ffffffaa;border:1px solid #bccfd9;border-radius:7px;color:#42647a;padding:8px 13px;font-size:11px}.arena{border-radius:16px;border:1px solid #a5c1cf;overflow:hidden;box-shadow:0 16px 45px #31546722,0 3px #bfd3df;background:white}.metrics{display:flex;align-items:center;justify-content:space-between;padding:9px 30px;background:#f6fbfd}.metrics>div:last-child{text-align:right}.metrics small{display:block;letter-spacing:1px;font-size:9px;color:#66899c}.metrics strong{display:block;font-variant-numeric:tabular-nums;font-size:24px;margin-top:2px}.timer{text-align:center}.timer strong{font-size:29px;color:#227e9e}.timer strong span{font-size:13px;margin-left:4px}.time-track{height:4px;background:#d8e8f0}.time-track i{display:block;width:100%;height:100%;background:#36a9bc;transition:width .08s linear}.world{background:#c8e1e9 url('ocean-station.png') center/cover no-repeat;position:relative;padding:12px 25px 20px}.round-row{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:11px;font-weight:700;color:#2c6078}.round-row>span{padding:7px 11px;background:#f2fbffdd;border:1px solid #bcdae5;border-radius:7px}#combo{color:#247b69}#rounds{display:flex;gap:6px;padding:9px 12px;border-radius:20px;background:#edf8fadd}#rounds i{width:7px;height:7px;border-radius:50%;background:#b0ccd9}#rounds i.current{background:#208eab;box-shadow:0 0 0 3px #d5edf4}#rounds i.good{background:#42a285}#rounds i.bad{background:#d57c74}.scene{height:265px;position:relative;display:flex;align-items:center;justify-content:space-between;gap:15px}.mission-panel{position:relative;width:30%;min-width:220px;padding:17px 20px;background:#f7fcffeb;border:1px solid #b1d2e0;border-left:4px solid #2d91ad;border-radius:12px;box-shadow:0 8px 22px #24577314;z-index:2}.eyebrow{font-size:9px;letter-spacing:1px;color:#3a7a91}h1{font-size:30px;line-height:1.25;margin:10px 0;color:#184b65;font-weight:850;letter-spacing:-1px}#source{font-size:9px;color:#6e8b9a;margin:0}.transmission{border-top:1px solid #cce0e9;margin-top:12px;padding-top:10px;font-size:11px;line-height:1.7;color:#527589}.reactor{position:absolute;left:50%;top:0;transform:translateX(-50%);height:265px;width:290px;display:flex;flex-direction:column;align-items:center;justify-content:center}.reactor img{width:100%;height:235px;object-fit:contain;filter:drop-shadow(0 10px 10px #15567555);animation:float 5s ease-in-out infinite}.reactor-label{background:#183f56e8;color:#b5eff7;border:1px solid #7dc8da;border-radius:5px;padding:7px 12px;font-size:10px;letter-spacing:2px;display:flex;gap:8px;align-items:center}.reactor-label i{width:6px;height:6px;background:#b4e9e5;border-radius:50%;box-shadow:0 0 9px #7cf5ed}.objective{margin-left:auto;align-self:flex-start;margin-top:26px;padding:13px 16px;background:#f5fcffe6;border:1px solid #bfd9e4;border-radius:10px;max-width:230px;display:flex;flex-direction:column;gap:9px}.objective small{font-size:9px;color:#648e9e;letter-spacing:1px}.objective b{font-size:13px}.objective span{font-size:9px;color:#6a8a9c;line-height:1.6}.console{position:relative;border:1px solid #a6c6d8;border-top:3px solid #8bb3c7;border-radius:15px;background:linear-gradient(130deg,#f8fcfff5,#eaf5faf5);padding:12px 24px 13px;box-shadow:0 8px 25px #183f5526,inset 0 1px white;z-index:3}.console-heading{display:flex;justify-content:space-between;color:#7896a6;font-size:9px;letter-spacing:1px}.console-heading b{color:#39677f}.console-heading small{font-size:9px;letter-spacing:0}.answer-zone{display:flex;align-items:center;justify-content:center;gap:12px;min-height:57px;margin:8px 0 10px}#current{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:5px;max-width:100%}.answer-slot{width:34px;height:40px;background:#e2edf4;border:1px solid #b8cfde;border-bottom:3px solid #92b5ca;border-radius:6px;display:grid;place-items:center;font-size:22px;font-weight:800;color:#266783}.answer-slot.filled{background:white;border-color:#60a6c3;animation:place .15s ease-out}.answer-gap{width:11px}#clear{font-size:21px;width:32px;height:34px;border:0;background:#e0edf4;color:#568497;border-radius:6px}#clear:disabled{opacity:.35}#board{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;min-height:52px}#board button{width:49px;height:52px;border:1px solid #9cbbce;border-bottom:4px solid #7d9fb4;border-radius:8px;background:linear-gradient(145deg,#fff,#eef6fb);font-size:25px;font-weight:800;color:#214e67;box-shadow:0 4px 7px #34576d19;transition:transform .12s}#board button:hover:not(:disabled){transform:translateY(-3px);background:#fff;border-color:#2787ac}#board button.chosen{opacity:.2;transform:translateY(3px);box-shadow:none}#board button:disabled:not(.chosen){opacity:.6}.controls{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:15px;min-height:43px}.controls button,.primary{border:0;border-bottom:4px solid #135377;background:linear-gradient(100deg,#2e93b2,#266c96);color:#fff;border-radius:9px;font-weight:750;padding:12px 23px;min-width:210px;box-shadow:0 4px 10px #22678520;font-size:13px}.controls button:disabled{background:#d6e7f0;color:#86a4b8;border-bottom-color:#b7d0df;box-shadow:none}.controls kbd{font-size:9px;margin-left:16px;opacity:.7}.controls #start{background:linear-gradient(100deg,#e58576,#d27266);border-bottom-color:#a9564b}#status{font-size:11px;color:#537b91;margin:0;line-height:1.7}.history{display:flex;align-items:center;gap:16px;border:1px solid #c6dbe6;background:#f9fcfdd9;border-radius:10px;padding:10px 14px;margin-top:12px;min-height:54px}.side-head{display:flex;align-items:center;gap:7px;flex:none}.side-head h2{font-size:10px;color:#6d8c9e;margin:0}.side-head span{font-size:10px;color:#82a2b3}#words{display:flex;gap:8px;overflow:auto;align-items:center;min-width:0;flex:1}.empty{font-size:10px;color:#7a98a9}.word-row{flex:none;display:flex;align-items:center;gap:12px;border:1px solid #c2ded7;background:#e9f5ef;border-radius:6px;padding:5px 8px;font-size:10px}.word-row small{display:block;color:#74978a;font-size:9px}.word-row span{color:#327f65}.word-row.incorrect{background:#faeeeb;border-color:#eaccc7}.word-row.incorrect span{color:#b76a60}footer{display:flex;justify-content:space-between;font-size:9px;color:#7f9cac;margin-top:10px}dialog{max-width:460px;width:90vw;border:1px solid #aecbd9;border-radius:18px;background:#fff;color:#244e65;padding:34px;box-shadow:0 20px 100px #183d5555}dialog::backdrop{background:#193e5777;backdrop-filter:blur(6px)}#close{position:absolute;right:10px;top:5px;border:0;background:none;color:#5f8a9f;font-size:26px}dialog h2{font-size:25px}dialog p{font-size:14px;line-height:1.8;color:#5d7e90}.big-score{font-size:44px;font-weight:800;color:#28859e}.answer-list{font-size:12px;color:#6d8a9a;line-height:1.9;max-height:180px;overflow:auto;margin-bottom:18px}#impact{position:absolute;left:50%;top:35%;transform:translate(-50%,-50%);background:#fffffff0;border:1px solid #a4d9cf;border-radius:12px;padding:14px 24px;font-size:30px;font-style:italic;font-weight:900;color:#287961;pointer-events:none;opacity:0;z-index:4;white-space:nowrap}#impact.show{animation:impact 1.3s both}.arena.success .reactor img{filter:drop-shadow(0 0 22px #58efec)}.arena.miss .console{animation:shake .3s}.arena.miss #impact{color:#bf6d62}body.urgent #time{color:#c56b5e}body.urgent .time-track i{background:#d87d6b}@keyframes float{50%{transform:translateY(-6px)}}@keyframes place{from{transform:translateY(6px)}to{transform:translateY(0)}}@keyframes impact{0%{opacity:0;transform:translate(-50%,-30%) scale(.8)}15%,70%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-80%) scale(1)}}@keyframes shake{25%,75%{transform:translateX(-3px)}50%{transform:translateX(3px)}}@media(max-width:700px){.game-shell{padding:8px}header a{font-size:15px}header small{display:none}.header-actions button{font-size:10px;padding:7px}.world{padding:10px}.metrics{padding:8px 15px}.metrics strong{font-size:21px}.metrics small{font-size:8px}.scene{height:240px;align-items:flex-start}.mission-panel{width:52%;min-width:0;padding:12px;margin-top:15px}h1{font-size:24px}.transmission{font-size:10px}.reactor{left:auto;right:-10px;top:15px;transform:none;width:46%;height:190px}.reactor img{height:160px}.reactor-label{font-size:8px;letter-spacing:0}.objective{position:absolute;right:0;bottom:8px;margin:0;padding:8px;max-width:45%}.objective span,.objective small{display:none}.objective b{font-size:10px}.round-row>span{font-size:9px;padding:5px}#rounds{gap:3px;padding:7px}#rounds i{width:5px;height:5px}.console{padding:10px}.console-heading small{display:none}.answer-slot{width:23px;height:32px;font-size:18px}#current{gap:3px}.answer-zone{gap:4px}.answer-gap{width:5px}#board{gap:6px}#board button{width:39px;height:43px;font-size:23px}.controls{flex-direction:column;gap:8px;margin-top:10px}.controls button{width:100%;padding:10px}#status{font-size:10px}.history{padding:8px;gap:8px}footer{font-size:8px;gap:10px}#impact{font-size:21px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}#impact.show{opacity:1}}

.reactor{width:340px;top:10px}.reactor img{height:225px;animation:none}.reactor-label{color:#ffc8c0;border-color:#da9b92;background:#542f3aeb}#bombClock{position:absolute;left:50%;top:41%;transform:translate(-50%,-50%);font:800 23px/1 monospace;color:#ff9489;background:#1b2630e8;border:1px solid #5c555b;border-radius:4px;padding:5px 10px;letter-spacing:3px;text-shadow:0 0 8px #e77c7355}.urgent #bombClock{color:#ffb0a8;box-shadow:0 0 22px #e9796666}.defused #bombClock{color:#a7ead1}.defused .reactor-label{background:#28554c;color:#c4f9dd}.exploded .world{animation:shake .5s 2}.exploded .reactor img{opacity:.18;filter:grayscale(1)}#blast{display:none;position:absolute;inset:-20px;z-index:6;pointer-events:none;background:radial-gradient(circle at 50% 50%,#fff 0%,#ffc5bd 10%,#eb806dc9 25%,#51465a88 45%,transparent 70%)}.exploded #blast{display:block;animation:detonate 1.4s both}@keyframes detonate{0%{opacity:0;transform:scale(.2)}18%{opacity:1;transform:scale(1.2)}100%{opacity:0;transform:scale(1.8)}}@media(max-width:700px){.reactor{width:48%;right:-4px;top:20px}.reactor img{height:160px}#bombClock{font-size:14px;letter-spacing:1px;padding:4px;top:42%}}@media(prefers-reduced-motion:reduce){.exploded #blast{animation:none;background:#c47b7155}}

#bombClock{top:25%;background:transparent;border:0;text-shadow:0 0 8px #ff736966;font-size:24px}@media(max-width:700px){#bombClock{top:26%;font-size:14px}}

/* Match the existing First Weekly 1100 x 740 game shell. */
body{display:flex;justify-content:center;align-items:center;min-height:100dvh;padding:24px;background:#e6eff3}.game-shell{width:100%;max-width:1100px;height:740px;padding:0;margin:0;display:flex;flex-direction:column;background:#f4f9fb;box-shadow:0 14px 45px #39596b18}header{height:58px;min-height:58px;padding:0 20px;margin:0;gap:14px;justify-content:flex-start;background:#f8fbfc;border-bottom:1px solid #cfdee7}header a{font-size:19px;letter-spacing:0}header #quit{font-size:13px;border:1px solid #c5d8e3;border-radius:12px;background:#eef5f8;color:#30596f;padding:12px}.header-actions{margin-left:auto}.arena{display:flex;flex-direction:column;flex:1;min-height:0;border:0;border-radius:0;box-shadow:none}.metrics{padding:7px 24px}.metrics strong{font-size:21px}.timer strong{font-size:27px}.world{display:flex;flex-direction:column;flex:1;min-height:0;padding:10px 22px 16px}.scene{flex:1;min-height:210px;height:auto}.reactor{top:50%;transform:translate(-50%,-50%);height:240px}.reactor img{height:205px}.mission-panel{padding:13px 17px}.transmission{font-size:10px}.console{flex:none;padding:10px 20px}.answer-zone{min-height:49px;margin:5px 0 8px}.controls{margin-top:10px}.history{min-height:65px;height:65px;flex:none;margin:0;border:0;border-top:1px solid #c5d8e4;border-radius:0;padding:12px 24px}footer{display:none}.result-exit{display:block;text-align:center;color:#386f8a;margin-top:18px;font-size:13px}#bombClock{top:24%}@media(max-width:700px){body{padding:0}.game-shell{height:100dvh;min-height:700px}header{padding:0 10px;gap:9px}header #quit{padding:9px;font-size:11px}header a{font-size:16px}.world{padding:8px 10px 10px}.scene{min-height:230px}.reactor{top:15px;transform:none;height:195px}.reactor img{height:160px}.mission-panel{padding:10px}.console{padding:10px}.history{height:58px;min-height:58px;padding:10px}#bombClock{top:26%}}

.controls #hint{min-width:126px;padding:11px 13px;font-size:12px;background:#f7fbff;color:#34728f;border:1px solid #a8cbdc;border-bottom:3px solid #91b7ca;box-shadow:none;white-space:nowrap}.controls #hint span{margin-left:7px;font-size:11px;background:#e4f1f7;padding:3px 5px;border-radius:4px}.controls #hint:disabled{opacity:.45}.controls #status{flex:1}@media(max-width:700px){.controls{flex-direction:row;flex-wrap:wrap;gap:8px}.controls #status{flex-basis:100%}.controls #hint{width:auto;min-width:110px}.controls #submit{width:auto;min-width:0;flex:1;padding:10px}.controls kbd{display:none}}

/* Keep only the playable clue; narrative lives in help. */
.mission-panel{min-width:0;width:29%;padding:15px 18px;text-align:center;background:#f8fcffed;border-left:0;border:1px solid #bdd8e5}.mission-panel h1{margin:0;font-size:32px;overflow-wrap:anywhere}.mission-panel:has(h1:empty){visibility:hidden}#launchNotice{position:absolute;inset:0;z-index:8;display:grid;place-items:center;font-size:clamp(22px,3vw,36px);font-weight:850;color:#244e65;background:#eff8ffec;pointer-events:none;animation:launchFade 1.8s both}#status:empty{min-height:0}.console-heading{justify-content:center}.reactor{width:380px}.history:has(.empty:empty){visibility:hidden}@keyframes launchFade{0%{opacity:0;transform:scale(.97)}12%,75%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.02)}}@media(max-width:700px){.mission-panel{width:48%;margin-top:35px}.mission-panel h1{font-size:24px}.reactor{width:48%}}@media(prefers-reduced-motion:reduce){#launchNotice{animation:none}}

/* Secondary instructions are available before play or through help. */
.console-heading,.reactor-label{display:none}.mission-panel #meaning{visibility:visible!important}#status{transition:opacity .18s}

/* The digital readout is anchored to the image itself, not the reactor box. */
.bomb-face{position:relative;width:min(100%,307.5px);aspect-ratio:3/2;flex:none;container-type:inline-size}.reactor .bomb-face img{display:block;width:100%;height:100%;object-fit:fill;animation:none}#bombClock{left:50%;top:26.7%;width:33%;height:14%;transform:translate(-50%,-50%);padding:0;display:flex;align-items:center;justify-content:center;font:800 7.6cqw/1 ui-monospace,Consolas,monospace;letter-spacing:.055em;color:#ff9b98;background:none;border:0;box-shadow:none;text-shadow:0 0 7px #ed666688;white-space:nowrap}
#launchNotice{inset:auto;left:50%;top:49%;width:max-content;max-width:94%;transform:translate(-50%,-50%);display:flex;gap:15px;align-items:center;padding:19px 28px;border:1px solid #eea7aa;border-left:5px solid #df5064;border-radius:14px;background:#fafdfff2;box-shadow:0 12px 38px #18394933;font-size:24px;animation:armedNotice 1.8s both}#launchNotice small{display:block;font:800 9px/1.4 'Segoe UI',sans-serif;letter-spacing:3px;color:#bd4559;margin-bottom:5px}#launchNotice strong{font-size:clamp(17px,2.2vw,24px)}.launch-symbol{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;color:white;background:#d74b63;font:900 27px/1 'Segoe UI',sans-serif;box-shadow:0 0 0 7px #fbe9ed}
@keyframes armedNotice{0%{opacity:0;transform:translate(-50%,-40%) scale(.95)}15%,75%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-65%) scale(1.02)}}
dialog.result-screen{width:min(440px,92vw);max-height:88dvh;overflow:auto;padding:30px 32px 26px;border:1px solid #d7e5eb;border-top:5px solid #d85069;border-radius:22px;text-align:center;background:radial-gradient(ellipse at top,#fff0f3,transparent 45%),#fafdff;box-shadow:0 25px 90px #0b294b55}.result-screen.result-success{border-top-color:#2d9a87;background:radial-gradient(ellipse at top,#e1f8ef,transparent 45%),#fafdff}.result-badge{display:grid;place-items:center;margin:0 auto 16px;width:62px;height:62px;border-radius:50%;background:#df566e;color:#fff;font-size:38px;font-weight:900;box-shadow:0 0 0 8px #fbe6ec}.result-success .result-badge{background:#2c9a87;box-shadow:0 0 0 8px #e0f6ee}.result-eyebrow{font-size:9px;font-weight:850;letter-spacing:3px;color:#aa5265}.result-screen h2{font-size:24px;margin:9px 0 14px}.result-screen .big-score{font-size:48px;letter-spacing:-2px;color:#264c66}.result-screen .result-progress{margin:6px 0 18px;font-size:11px;letter-spacing:1px;color:#688397}.result-review{text-align:left;background:#edf4f8;border:1px solid #d7e5ed;border-radius:10px;margin-bottom:18px;padding:11px 14px;font-size:12px}.result-review summary{cursor:pointer;font-weight:700;color:#456e85}.result-review .answer-list{margin:10px 0 0;max-height:110px;overflow:auto;font-size:11px}.result-screen .primary{width:100%;background:#235d7e;border-bottom-color:#173f5a;border-radius:10px;padding:13px;box-shadow:none}.result-screen .result-exit{margin-top:14px;font-size:12px;text-decoration:none;color:#668498}@media(max-width:700px){.bomb-face{width:100%}#launchNotice{padding:15px 18px;gap:12px}.launch-symbol{width:34px;height:34px;font-size:23px}dialog.result-screen{padding:25px 22px}}@media(prefers-reduced-motion:reduce){#launchNotice{animation:none}}

.result-art{position:relative;height:100px;margin:-5px auto 14px;width:190px;display:grid;place-items:center}.result-art>img{width:160px;height:100px;object-fit:contain;filter:grayscale(.85) brightness(.64);opacity:.75}.result-art .result-badge{position:absolute;right:0;bottom:0;width:43px;height:39px;margin:0;border-radius:10px;font-size:28px;box-shadow:0 0 0 5px #fff1f4;transform:rotate(-5deg)}.result-success .result-art>img{filter:drop-shadow(0 0 9px #7dcdb3);opacity:1}.result-failed .result-eyebrow{color:#c7415e;font-weight:900}.result-failed h2{color:#813d50}.result-failed{background-image:repeating-linear-gradient(135deg,#df566e 0 9px,#f7dfe6 9px 18px),radial-gradient(ellipse at top,#fff0f3,transparent 55%)!important;background-size:100% 7px,100% 100%!important;background-repeat:no-repeat!important;background-color:#fafdff!important}

/* Center the bomb above the platform, leaving breathing room above controls. */
.reactor{left:50%;right:auto;top:calc(50% - 24px);transform:translate(-50%,-50%);height:auto;width:340px}.bomb-face{width:307.5px;max-width:100%}@media(max-width:700px){.reactor{left:70%;right:auto;top:calc(50% - 16px);width:46%;height:auto;transform:translate(-50%,-50%)}}

/* Empty review space should not leave a blank footer during play. */
.history:has(.empty:empty){display:none}.mission-panel h1{line-height:1.25}.result-screen .result-exit{display:block;padding:10px 0}.result-review summary:focus-visible{outline:3px solid #2d91ad;outline-offset:4px}

/* The clue belongs to the pedestal; the bomb and its display move together. */
.reactor{top:calc(50% - 48px)}
.mission-panel{position:absolute;left:50%;bottom:30px;transform:translateX(-50%);width:34%;max-width:330px;min-width:180px;margin:0;padding:10px 22px;z-index:4;border:3px solid #718995;border-bottom:4px solid #243b48;border-radius:9px;background:linear-gradient(180deg,#163748,#0b2433);box-shadow:inset 0 2px 7px #0008,0 2px 0 #bfd5dd,0 5px 12px #06192555;text-align:center}
.mission-panel h1{color:#e1faff;text-shadow:0 0 10px #5bcddd55;font-size:27px;line-height:1.2;letter-spacing:.02em}
.mission-panel:before,.mission-panel:after{content:'';position:absolute;top:50%;width:5px;height:5px;margin-top:-2px;border-radius:50%;background:#a7bac2;box-shadow:inset 0 1px 2px #182f3d}
.mission-panel:before{left:7px}.mission-panel:after{right:7px}
@media(max-width:700px){.reactor{left:50%;top:calc(50% - 42px);width:56%}.mission-panel{left:50%;bottom:23px;width:54%;min-width:150px;margin:0;padding:8px 16px}.mission-panel h1{font-size:22px}}
