/* Sentinel Siege is an immersive game viewport, not a document layout. */
body[data-current-screen="hangman"] {background:#020811;overflow:hidden;}
body[data-current-screen="hangman"] .topbar,body[data-current-screen="hangman"] footer,body[data-current-screen="hangman"] .cockpit-scene{display:none!important}
body[data-current-screen="hangman"] .game-shell{min-height:0;max-width:none;padding:0;isolation:auto;display:block}
.hangman-stage{position:relative;display:block!important;width:100%;max-width:none;min-height:0;height:100dvh;padding:0!important;overflow:hidden;color:#e7f2f5;background:#030811;font-family:Bahnschrift,'Arial Narrow',Arial,sans-serif;isolation:isolate}
.hangman-stage[hidden]{display:none!important}
.siege-world{position:absolute;inset:0;width:100%;height:100%;z-index:-2;touch-action:pan-y}
.siege-hud{position:absolute;inset:0;display:flex;flex-direction:column;pointer-events:none;padding:clamp(18px,2.8vw,42px);background:linear-gradient(180deg,rgba(1,6,13,.72),transparent 20%)}
.siege-hud button,.siege-hud select,.siege-hud input{pointer-events:auto;font:inherit}
.siege-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.siege-mark{border:0;background:none;padding:0;color:#f3f4eb;text-align:left;cursor:pointer;display:flex;align-items:center;gap:13px}
.siege-mark .glyph{width:30px;height:39px;border:1px solid #86b8bf;display:grid;place-items:center;color:#d3edee;font-size:20px;clip-path:polygon(50% 0,100% 28%,100% 72%,50% 100%,0 72%,0 28%);background:#16353d99}
.siege-mark small{font-size:9px;letter-spacing:.31em;color:#8fc4ce;display:block;margin-bottom:5px}
.siege-mark strong{font-weight:500;font-size:clamp(19px,2vw,28px);letter-spacing:.16em;white-space:nowrap}
.siege-system{display:flex;gap:7px;align-items:center}
.siege-icon{width:36px;height:36px;display:grid;place-items:center;border:1px solid #74909d40;background:#0b1925aa;color:#c6dce2;font-size:17px;cursor:pointer;transition:background .2s}
.siege-icon:hover{background:#264654}.siege-icon:focus-visible,.siege-key:focus-visible,.siege-action:focus-visible{outline:2px solid #a3f3ff;outline-offset:3px}
.siege-top-right{text-align:right}.siege-top-right small{display:block;margin:0 0 5px;color:#88a4b8;font-size:9px;letter-spacing:.22em}.siege-top-right strong{font-size:16px;letter-spacing:.08em;font-weight:500}
.siege-telemetry{display:flex;justify-content:space-between;gap:22px;margin-top:30px;align-items:flex-start}
.siege-shields small,.siege-threat small{font-size:9px;letter-spacing:.23em;color:#b0c8d4;display:block;margin-bottom:8px}
.siege-shield-bars{display:flex;gap:5px}.siege-shield-bars i{width:30px;height:5px;transform:skew(-25deg);background:#a1f4f7;box-shadow:0 0 9px #70d5f442;transition:background .25s}
.siege-shield-bars i.spent{background:#3c566660;box-shadow:none}.siege-shields[data-critical="true"] i:not(.spent){background:#ffa264;box-shadow:0 0 9px #ff722060}
.siege-threat{text-align:right}.siege-threat strong{font-size:12px;font-weight:500;color:#ffb88b;letter-spacing:.15em}
.siege-flight-label{position:absolute;top:48%;left:8%;display:flex;align-items:center;gap:10px;font-size:9px;letter-spacing:.17em;color:#b1dce5;opacity:.8}
.siege-flight-label:before{content:'';width:28px;height:1px;background:#8cd9e5}
.siege-target-label{position:absolute;right:13%;top:33%;font-size:9px;letter-spacing:.22em;color:#ffb491;opacity:.85}
.siege-console{margin-top:auto;width:min(780px,100%);align-self:center;text-align:center;pointer-events:auto;padding:0 12px;background:radial-gradient(ellipse at 50% 80%,#020913a8,transparent 68%)}
.siege-console .signal-kicker{font-size:9px;letter-spacing:.38em;color:#91b6c5;margin:0 0 10px;display:flex;align-items:center;justify-content:center;gap:14px}
.signal-kicker:before,.signal-kicker:after{content:'';height:1px;width:45px;background:linear-gradient(90deg,transparent,#6cabb675)}
.signal-kicker:after{transform:rotate(180deg)}
.siege-word{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px 22px;min-height:45px;margin:0 0 9px}
.siege-word-group{display:flex;gap:5px}.siege-letter{width:clamp(20px,2.6vw,34px);height:43px;display:grid;place-items:center;font-size:clamp(22px,3vw,32px);font-weight:500;color:#f5e5c7;border-bottom:2px solid #88c9d370;background:linear-gradient(0deg,#3e697826,transparent 80%);text-shadow:0 0 15px #f8db8250}
.siege-letter.unknown{color:transparent}.siege-letter.revealed{border-color:#b9faff}.siege-letter.new-letter{animation:decode-letter .55s ease-out}
.siege-event{min-height:18px;font-size:12px;line-height:1.45;color:#a1c2d0;margin:9px 0 15px;font-weight:400;letter-spacing:.03em}
.siege-event.danger{color:#ffae8d}.siege-event.success{color:#b6f3e8}
.siege-keyboard{display:flex;flex-direction:column;gap:6px;max-width:560px;margin:auto}
.siege-key-row{display:flex;justify-content:center;gap:6px}
.siege-key{position:relative;width:45px;height:40px;border:1px solid #77aabc50;border-radius:2px;color:#e2eef0;background:linear-gradient(160deg,#173647aa,#081727db);font-size:15px!important;font-weight:500;cursor:pointer;box-shadow:inset 0 1px 0 #b1e9f112,0 3px 8px #0005;transition:transform .12s,background .12s,border-color .12s}
.siege-key:hover:not(:disabled){transform:translateY(-2px);border-color:#bae9ec;background:#2c5368;box-shadow:0 0 20px #61c3e520}.siege-key:active:not(:disabled){transform:translateY(1px)}
.siege-key.hit{background:#246c6250;border-color:#80d8c280;color:#9feddb}.siege-key.miss{background:#1a1723;border-color:#543739;color:#685460;text-decoration:line-through}.siege-key:disabled:not(.hit):not(.miss){opacity:.4}
.siege-actions{display:flex;align-items:center;justify-content:center;gap:12px;margin:17px auto 0}
.siege-action{border:1px solid #96abb83a;background:#0c1a25cc;padding:10px 16px;color:#b5ced7;font-size:10px!important;letter-spacing:.16em;cursor:pointer;min-height:36px}
.siege-action:hover:not(:disabled){border-color:#a1dce2;color:#f4fcfa}.siege-action.primary{border-color:#d9b27a88;color:#f9daa5;background:linear-gradient(120deg,#67502f7a,#2b261fcc);box-shadow:inset 0 1px 0 #ffe9b318}.siege-action:disabled{opacity:.45;cursor:default}
.siege-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:22px;font-size:8px;letter-spacing:.17em;color:#5f8599}
.siege-bottom label{display:flex;align-items:center;gap:10px}.siege-bottom select{appearance:none;background:#0a1520;border:0;border-bottom:1px solid #4d748866;color:#bfd2dc;padding:4px 15px 4px 5px;font-size:9px;letter-spacing:.13em;cursor:pointer}
.siege-intel{background:#132b3699;border-left:2px solid #c5ab78;padding:8px 12px;margin:10px auto 0;max-width:530px;text-align:left;color:#e4ceab;font-size:12px;line-height:1.5}.siege-intel span{font-size:8px;color:#8fc4c7;letter-spacing:.2em;margin-right:9px}
.siege-modal{padding:0;border:1px solid #8aabba66;width:min(440px,calc(100% - 36px));background:linear-gradient(145deg,#0f2533f5,#040c17);color:#e8eff3;box-shadow:0 30px 120px #000c}.siege-modal::backdrop{background:#02060bd6;backdrop-filter:blur(8px)}
.siege-modal-content{padding:30px}.siege-modal small{display:block;color:#7fbbc8;letter-spacing:.26em;font-size:9px;margin-bottom:14px}.siege-modal h2{font-size:26px;font-weight:500;letter-spacing:.08em;margin:0 0 14px}.siege-modal p{color:#a0bccb;line-height:1.55;font-size:14px}.siege-modal input{width:100%;border:1px solid #75afc066;border-radius:0;background:#020b15;color:#e8f3f5;letter-spacing:.13em;padding:14px;margin:5px 0 13px;text-transform:uppercase;font:inherit;box-sizing:border-box}.siege-modal .siege-actions{justify-content:flex-end;margin-top:20px}
.siege-loading{position:absolute;inset:0;z-index:20;background:#030b16;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;color:#b4dbe1;letter-spacing:.24em;font-size:11px;pointer-events:auto}.siege-loading i{width:36px;height:36px;border:1px solid #366171;border-top-color:#c1ffff;border-radius:50%;animation:siege-loading 1s linear infinite}
.siege-result{position:absolute;top:27%;left:50%;transform:translate(-50%,-50%);text-align:center;width:90%;pointer-events:none}.siege-result small{font-size:10px;letter-spacing:.4em;color:#a7d9e7;display:block;margin-bottom:11px}.siege-result strong{display:block;font-size:clamp(25px,5vw,62px);letter-spacing:.17em;font-weight:400;color:#eff8f6;text-shadow:0 0 40px #8de6ff66}.siege-result.failure strong{color:#ffbe98}.siege-result p{color:#d5e9df;font-size:12px;letter-spacing:.16em}
.hangman-card .hangman-thumb{background:url('./assets/siege-space-v2.png') center 35%/cover}.hangman-card .hangman-thumb:before{background:linear-gradient(0deg,#07101caa,transparent);opacity:1}.hangman-card .mini-ship,.hangman-card .mini-sentinel,.hangman-card .hangman-thumb b{display:none}.hangman-card .hangman-thumb:after{content:'';position:absolute;inset:8% 10% 0 0;background:url('./assets/siege-fighter-v2.png') center/contain no-repeat;filter:drop-shadow(0 18px 22px #0007);transform:rotate(-5deg)}
@keyframes decode-letter{from{color:#fff;filter:blur(4px);transform:translateY(-7px)}to{filter:blur(0);transform:translateY(0)}}@keyframes siege-loading{to{transform:rotate(360deg)}}
@media(min-width:1000px){.siege-console{padding-bottom:0}.siege-top-right{margin-left:auto;margin-right:25px}.siege-word{margin-bottom:12px}.siege-event{margin-bottom:19px}.siege-key{height:42px}.siege-actions{margin-top:18px}}
@media(max-width:699px){.siege-hud{padding:18px 16px 14px}.siege-mark .glyph{width:21px;height:29px;font-size:15px}.siege-mark{gap:8px}.siege-mark strong{font-size:15px;letter-spacing:.1em}.siege-mark small{font-size:7px;letter-spacing:.19em}.siege-system{gap:5px}.siege-icon{width:29px;height:29px;font-size:14px}.siege-top{gap:8px}.siege-top-right{display:none}.siege-telemetry{margin-top:23px}.siege-shields small,.siege-threat small{font-size:8px}.siege-shield-bars i{width:22px}.siege-threat strong{font-size:9px}.siege-console{padding:0;width:100%}.siege-flight-label{top:42%;left:7%;font-size:7px}.siege-target-label{top:22%;right:12%;font-size:7px}.siege-letter{width:22px;height:32px;font-size:23px}.siege-word{gap:7px 16px;margin-bottom:4px}.siege-word-group{gap:4px}.siege-event{font-size:11px;margin:7px 0 12px;min-height:30px;max-width:330px;margin-inline:auto}.siege-key{width:calc((100vw - 78px)/10);max-width:42px;height:38px;font-size:13px!important}.siege-key-row,.siege-keyboard{gap:5px}.siege-action{padding:9px 12px;font-size:8px!important;letter-spacing:.1em}.siege-actions{gap:7px;margin-top:13px}.siege-bottom{font-size:6px;letter-spacing:.13em;margin-top:17px}.siege-bottom label{gap:4px}.siege-bottom select{font-size:8px}.siege-intel{font-size:11px;padding:7px 10px}.siege-result{top:27%}.siege-result strong{font-size:25px}.siege-result small,.siege-result p{font-size:8px}.siege-modal-content{padding:24px}}
@media(max-height:650px) and (min-width:700px){.siege-hud{padding:16px 25px}.siege-telemetry{margin-top:13px}.siege-console{width:650px;margin-left:auto;margin-right:0;align-self:flex-end}.siege-key{height:30px;width:37px}.siege-event{margin:5px 0 8px}.siege-word .siege-letter{height:30px;font-size:24px}.siege-actions{margin-top:10px}.siege-bottom{margin-top:12px}.siege-flight-label{top:65%}}
@media(max-height:690px) and (max-width:699px){.siege-hud{padding:12px}.siege-console .signal-kicker{margin-bottom:6px;font-size:8px}.siege-event{min-height:14px;margin:5px 0 8px;font-size:10px}.siege-key{height:31px}.siege-letter{height:27px;font-size:21px}.siege-actions{margin-top:8px}.siege-action{min-height:30px;padding:7px 10px}.siege-bottom{margin-top:9px}.siege-flight-label{display:none}.siege-intel{font-size:10px;margin-top:5px;padding:5px}}
@media(prefers-reduced-motion:reduce){.siege-key,.siege-letter{transition:none;animation:none}}
