@import url('./deployment/tear-ui/styles.css');
@import url('./deployment/motion/styles.css');
@import url('./features/workspace/styles.css');
.gh-shell{--gh-ink:#bfdbd7;--gh-dim:#6b8784;--gh-line:#233936;--gh-bg:#080e0e;box-sizing:border-box;min-height:100%;padding:22px 24px 35px;background:var(--gh-bg);color:var(--gh-ink);font-family:ui-monospace,SFMono-Regular,Consolas,monospace;position:relative;isolation:isolate}.gh-shell *{box-sizing:border-box}.gh-shell:before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background-image:linear-gradient(#accfc907 1px,transparent 1px),linear-gradient(90deg,#accfc907 1px,transparent 1px);background-size:24px 24px;mask-image:linear-gradient(transparent,#0005)}.gh-shell button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.gh-shell button:focus-visible{outline:2px solid var(--gh-ink);outline-offset:3px}.gh-shell button:active{filter:brightness(1.5)}.gh-brand,.gh-top,.gh-list-label,.gh-game-footer,.gh-progress-label,.gh-port-label{display:flex;align-items:center;justify-content:space-between}.gh-wordmark{font-family:Arial,sans-serif;font-weight:800;font-size:27px;letter-spacing:-1.5px}.gh-wordmark>span{font-size:10px;vertical-align:top;margin-left:4px}.gh-live{font-size:8px;letter-spacing:1px;color:var(--gh-dim)}.gh-hero{text-align:center;padding:18px 0 33px}.gh-emblem{width:240px;max-width:100%;height:150px;filter:drop-shadow(0 0 11px #92cfc12b)}.gh-hero small,.gh-shell h1>span{display:block;font-size:9px;letter-spacing:2px;color:var(--gh-dim);font-weight:400}.gh-shell h1{font-family:Arial,'PingFang SC',sans-serif;font-size:30px;letter-spacing:1px;font-weight:500;margin:17px 0}.gh-shell h1>span{margin-top:12px}.gh-hero p{font-size:8px;letter-spacing:1px;color:var(--gh-dim);margin:12px 0 0}.gh-list-label{font-size:8px;letter-spacing:1.5px;color:var(--gh-dim);padding-bottom:13px;border-bottom:1px solid var(--gh-line)}.gh-button{border:0;background:none;padding:0}.gh-tools>.gh-button{width:100%;display:flex;align-items:center;gap:17px;text-align:left;padding:21px 0;border-bottom:1px solid var(--gh-line)}.gh-number{font-size:8px;color:var(--gh-dim)}.gh-tool-glyph{width:32px;height:32px;border:1px solid #48645e;display:grid;place-items:center;font-size:24px}.gh-tools section{flex:1}.gh-tools b{display:flex;gap:12px;align-items:center;font:500 15px Arial,'PingFang SC',sans-serif;letter-spacing:2px}.gh-tools b small{font:9px ui-monospace,monospace;letter-spacing:1px;color:var(--gh-dim)}.gh-tools p{margin:7px 0 0;font-size:9px;letter-spacing:1px;color:var(--gh-dim)}.gh-arrow{font-size:19px;color:var(--gh-dim)}.gh-bottom{margin-top:25px;display:flex;align-items:center;justify-content:space-between}.gh-bottom button{font-size:11px}.gh-bottom small{font-size:8px;color:var(--gh-dim)}.gh-corner{margin-top:34px;font-size:7px;letter-spacing:2px;color:#425e59}.gh-top{height:28px;font-size:9px;letter-spacing:1.5px;color:var(--gh-dim);margin-bottom:30px}.gh-top .gh-back{font:32px Arial;line-height:30px;color:var(--gh-ink);min-width:30px;text-align:left}.gh-key-art{text-align:center;padding:15px 0}.gh-keybox{padding:21px;border:1px solid var(--gh-line);background:#0c1515}.gh-keybox small{font-size:10px;letter-spacing:2px}.gh-keybox input{width:100%;border:0;border-bottom:1px solid var(--gh-line);background:transparent;padding:19px 0 13px;color:var(--gh-ink);font:17px ui-monospace,monospace;letter-spacing:2px;outline:0}.gh-keybox p{font-size:9px;color:var(--gh-dim)}.gh-primary{width:100%;padding:17px!important;border:1px solid #6f9790!important;background:#b9d9d2!important;color:#0b1714!important;font-size:12px!important;letter-spacing:3px;margin-top:24px}.gh-hint{text-align:center;font-size:9px;letter-spacing:1px;color:var(--gh-dim);margin:22px 0}.gh-game-head small{font-size:8px;color:var(--gh-dim);letter-spacing:2px}.gh-game-head h1{margin:12px 0;font-size:27px}.gh-game-head p{font-size:11px;color:var(--gh-dim);margin:0 0 26px}.gh-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;width:100%;margin-top:12px}.gh-grid button{border:1px solid var(--gh-line);aspect-ratio:1;background:#0d1817;min-width:0;overflow:hidden;transition:border-color .15s,background .15s}.gh-grid button.selected{border-color:var(--gh-ink);background:#243d37;box-shadow:0 0 12px #a3d3c322}.gh-grid svg{width:100%;height:100%;display:block}.gh-reference{display:flex;align-items:center;justify-content:flex-end;gap:8px}.gh-reference svg{width:64px;height:64px;border:1px solid var(--gh-line)}.gh-reference small{font-size:7px;color:var(--gh-dim);writing-mode:vertical-rl;letter-spacing:2px}.gh-pipes{gap:0;border:1px solid var(--gh-line);margin:8px 0 28px}.gh-pipes button{border:1px solid #182d29}.pipe-track{fill:none;stroke:#203c34;stroke-width:12}.pipe-wire{fill:none;stroke:#587c70;stroke-width:2}.gh-pipes circle{fill:#587c70}.gh-pipes .lit .pipe-wire{stroke:#c0e5d7;stroke-dasharray:10 5;animation:gh-flow 1s linear infinite}.gh-pipes .lit circle{fill:#c0e5d7}.gh-port-label{font-size:8px;letter-spacing:2px}.gh-port-label span:last-child{align-self:flex-end}.gh-progress-label{font-size:8px;color:var(--gh-dim);letter-spacing:1px}.gh-meter{height:2px;background:var(--gh-line);margin-top:14px;overflow:hidden}.gh-meter i{display:block;height:100%;background:#c4e1d9;transition:width .25s}.gh-target{padding:24px;border:1px solid #5d8176;background:#10201c}.gh-target small,.gh-code small{display:block;font-size:8px;letter-spacing:2px;color:var(--gh-dim)}.gh-target strong{display:block;font-size:25px;letter-spacing:3px;margin-top:18px}.gh-bars{display:flex;align-items:center;gap:9px;height:52px;margin-top:10px}.gh-bars i{background:#9cbbb1;width:3px;box-shadow:5px 0 #688c7b}.gh-options{display:grid;gap:10px;margin-top:24px}.gh-options button{border:1px solid var(--gh-line);padding:15px 18px;display:grid;grid-template-columns:1fr auto;text-align:left;background:#0c1613}.gh-options small{grid-column:1;font-size:7px;color:var(--gh-dim);letter-spacing:2px;margin-bottom:8px}.gh-options b{grid-column:1;font-size:18px;font-weight:400}.gh-options span{grid-column:2;grid-row:1/3;align-self:center}.gh-code{text-align:center;padding:22px 0}.gh-code strong{display:flex;gap:18px;justify-content:center;font-size:36px;font-weight:400;margin:25px 0}.gh-code .typed{opacity:.25}.gh-code>div{display:flex;gap:8px;justify-content:center}.gh-code i{display:block;width:18px;height:2px;background:#38564a}.gh-code i.filled{background:#c9e2d8}.gh-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:20px}.gh-keypad button{font-size:23px;border:1px solid var(--gh-line);background:#0e1c17;padding:17px}.gh-keypad button:active{background:#355247}.gh-game-footer{margin-top:35px;font-size:7px;color:var(--gh-dim);letter-spacing:1px}.gh-report{text-align:center;padding:55px 0 10px}.gh-result-mark{width:80px;height:80px;border:1px solid #789c8a;display:grid;place-items:center;margin:0 auto 32px;transform:rotate(45deg);font-size:40px}.gh-report small{display:block;font-size:8px;letter-spacing:3px;color:var(--gh-dim)}.gh-report h1{font-size:29px;margin-top:18px}.gh-report p{font-size:9px;color:var(--gh-dim);overflow-wrap:anywhere}.gh-report-meta{display:flex;justify-content:space-around;border-block:1px solid var(--gh-line);padding:22px 0;margin:40px 0 25px}.gh-report-meta span{font-size:7px;letter-spacing:2px;color:var(--gh-dim)}.gh-report-meta b{display:block;font-size:24px;margin-top:12px;color:var(--gh-ink);font-weight:400}.gh-history>div{display:flex;gap:15px;border-bottom:1px solid var(--gh-line);padding:20px 0;font-size:11px}.gh-history section{flex:1}.gh-history small{display:block;font-size:8px;line-height:1.8;margin-top:8px;color:var(--gh-dim);overflow-wrap:anywhere}.gh-history>div>span{font-size:9px}.gh-empty{color:var(--gh-dim);font-size:12px}.gh-strike{text-align:center}.gh-stream{text-align:left;min-height:200px;padding-top:20px}.gh-stream p{font-size:9px;border-bottom:1px solid var(--gh-line);padding:12px 0;animation:gh-reveal .3s ease-out}.gh-stream span{margin-right:12px;color:var(--gh-dim)}.gh-stream b{float:right;font-weight:400}.gh-strike>small{display:block;margin-top:18px;color:var(--gh-dim);font-size:8px;letter-spacing:2px}.app-ghost .app-nav{display:none}.app-ghost .app-content{padding-top:0!important;background:#080e0e}.app-ghost .gh-shell{padding-top:24px}.gh-shell .gh-button[disabled]{opacity:.3;cursor:default}@keyframes gh-flow{to{stroke-dashoffset:-30}}@keyframes gh-reveal{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.gh-shell *{animation:none!important;transition:none!important}}@media(max-width:350px){.gh-shell{padding:18px}.gh-tools>.gh-button{gap:12px;padding:17px 0}.gh-target strong{font-size:21px}.gh-code strong{gap:10px}.gh-hero{padding-bottom:20px}.gh-hero .gh-emblem{height:115px}}
.gh-editor{border:1px solid #ccd3d7;border-radius:10px;margin-bottom:16px;padding:15px}.gh-editor legend{font-size:13px}.gh-editor label{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:12px;margin:10px 0}.gh-editor input{width:110px;min-height:40px;border:1px solid #cbd2d8;border-radius:6px;padding:8px}.gh-grid{touch-action:none}.gh-shell{--gh-ink:#c9dbd7;--gh-dim:#829c97}.gh-result-mark{transform:none;border-radius:50%}
.gh-tool-glyph svg{width:22px;height:22px}.gh-keypad button{min-height:53px}

/* Keep deployments and mining as native GHOST utilities, not timeline popups. */
.app-ghost .gh-project-nav{margin:11px 17px 15px;display:grid;grid-template-columns:1fr 1fr;gap:9px}
.app-ghost .gh-project-nav .gh-button{min-height:47px;border-radius:10px;border:1px solid #3f666582;background:#112e30;color:#c7e7d6;text-align:center;font:600 10px ui-monospace,monospace;letter-spacing:.03em;padding:9px 5px}
.app-ghost .gh-project-nav .gh-button:active{background:#255458}

/* D01 voluntary-exit confirmation, rendered above the existing Ghost terminal. */
.gh-exit-confirm{position:absolute;inset:0;z-index:30;display:flex;justify-content:center;align-items:center;background:rgba(0,8,8,.82);backdrop-filter:blur(9px);padding:20px}
.gh-exit-card{width:100%;max-width:360px;border:1px solid #5a8177;background:#0d1817;padding:25px 22px 22px;box-shadow:0 18px 50px #000b}
.gh-exit-card h2{font:500 19px Arial,'PingFang SC',sans-serif;margin:0 0 14px;letter-spacing:1px}
.gh-exit-card p{font-size:11px;line-height:1.7;color:#94b0aa;margin:0 0 12px}
.gh-exit-card .gh-button{display:block;width:100%;text-align:center;padding:15px;margin-top:10px}
.gh-exit-card .gh-secondary{background:transparent;border:1px solid #3c5a52;color:#b4d0ca}

/* D01 terminal network (ported MIT spanning-tree / flow mechanics).
   Preserve the game's own understated GHOST dark circuit palette. */
.gh-shell .gh-pipes{grid-template-columns:repeat(var(--pipe-columns,3),minmax(0,1fr));gap:2px;margin-top:13px;margin-bottom:20px}
.gh-shell .gh-pipes .gh-button{position:relative;min-width:0;min-height:0;padding:0;aspect-ratio:1;border:1px solid #233c36;background:#081411;overflow:hidden}
.gh-shell .gh-pipes .gh-button:disabled{opacity:1;cursor:default}
.gh-shell .gh-pipes .gh-button.gh-source-tile{border:2px solid #9cf7e4;background:#12312b;box-shadow:inset 0 0 16px #74dcc250,0 0 9px #a2e9d466}
.gh-shell .gh-pipes .gh-button.gh-target-tile{border:2px solid #ffe4a8;background:#2a2416;box-shadow:inset 0 0 14px #f2cb7a34,0 0 9px #e9cc9f4d}
.gh-shell .gh-pipes .gh-endpoint-halo{fill:#4be9c510;stroke-width:3;stroke:#5decc2;filter:drop-shadow(0 0 9px #83f6d5)}
.gh-shell .gh-pipes .gh-endpoint-halo.target{fill:#fbd78e1e;stroke:#ffe1a2;filter:drop-shadow(0 0 9px #ffcf83)}
.gh-shell .gh-pipes .gh-endpoint-core.source{fill:#b2ffe6;stroke:#e1fff6;stroke-width:2}
.gh-shell .gh-pipes .gh-endpoint-core.target{fill:#ffe0a3;stroke:#fff2c8;stroke-width:2}
.gh-shell .gh-pipes .gh-endpoint-center{fill:#081411}
.gh-shell .gh-port-label{font-size:10px;gap:10px;align-items:center;line-height:1.4}
.gh-shell .gh-port-label span{display:inline-flex;gap:5px;align-items:center}
.gh-shell .gh-port-dot{display:inline-block;flex:none;width:7px;height:7px;border-radius:50%;box-shadow:0 0 9px currentColor}
.gh-shell .gh-source-dot{background:#8dfbe0;color:#8dfbe0}.gh-shell .gh-target-dot{background:#ffe0a3;color:#ffe0a3}
.gh-shell .gh-network-complete .pipe-wire{stroke:#d1fff1;stroke-width:3;stroke-dasharray:9 4;animation:gh-flow .65s linear infinite}
.gh-shell .gh-network-complete .gh-button{border-color:#73ac9a}
.gh-shell .gh-success-preview{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;min-height:105px;margin:18px 0 8px;color:#c8ffec;border:1px solid #315f52;background:linear-gradient(180deg,#1b403d80,#0a1b19)}
.gh-shell .gh-success-preview .gh-success-check{font-size:22px;line-height:1.2;text-shadow:0 0 15px #9cffe4}
.gh-shell .gh-success-preview strong{font-size:13px;letter-spacing:2px;font-weight:500}
.gh-shell .gh-success-preview small{color:#91bea9;font-size:10px}


/* Temporary developer-only LINK test controls; delete before release. */
.gh-shell .gh-top:has(.gh-dev-skip-top){min-height:40px;margin-bottom:20px}
.gh-shell button.gh-dev-skip-top{border:1px dashed #47776b;background:#112520;color:#b9e5d1;border-radius:9px;padding:10px 12px;min-width:78px;min-height:36px;font:500 11px ui-monospace,SFMono-Regular,monospace;letter-spacing:.4px;touch-action:manipulation}
.gh-shell button.gh-dev-skip-top:active{background:#295247}
.gh-shell .gh-dev-skip-note{padding:0;margin:12px 0 0;font-size:9px;color:#748a82;letter-spacing:.4px;text-align:center}
@media(max-width:350px){.gh-shell button.gh-dev-skip-top{padding:9px 8px;min-width:70px;font-size:10px}}

/* Ghost Arcade 2.0: isolated, dependency-free mobile puzzle surfaces. */
.gh-arcade{border:1px solid #2e524b;background:linear-gradient(145deg,#0b1a17,#081210);padding:15px 12px 20px;margin-top:14px;border-radius:8px;box-shadow:inset 0 0 34px #23534715}
.gh-arcade-status{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:4px 0 12px;font:10px ui-monospace,monospace;color:#91aaa4}
.gh-arcade-status strong{font-size:12px;letter-spacing:1px;color:#baf5df;font-weight:600}
.gh-arcade-help{line-height:1.65;font-size:10px;color:#8ba9a0;margin:0 0 16px}
.gh-arcade-matrix{display:grid;gap:6px;margin:0 auto 16px;max-width:350px}
.gh-arcade-matrix .gh-arcade-cell,.gh-arcade-tile{display:grid;place-items:center;min-width:0;aspect-ratio:1;border:1px solid #2c4c44;background:#11231e;border-radius:5px;color:#7b9990;font-size:19px;transition:background .14s,border-color .14s,transform .14s}
.gh-arcade-matrix .gh-arcade-cell:active{transform:scale(.95)}
.gh-arcade-matrix .gh-arcade-cell:disabled{opacity:1;cursor:default}
.gh-arcade-cipher{grid-template-columns:repeat(3,minmax(0,1fr));max-width:280px}
.gh-arcade-cipher .active{background:#20534b;border-color:#a1e5d1;box-shadow:inset 0 0 20px #50e5c047,0 0 9px #3de3b528;color:#d6ffee}
.gh-arcade-memory{grid-template-columns:repeat(5,minmax(0,1fr))}
.gh-arcade-memory .gh-arcade-cell{font-size:14px;aspect-ratio:3/4}
.gh-arcade-memory .revealed{background:#325046;color:#eefff3;border-color:#7ba89c}
.gh-arcade-memory .matched{background:#1a4b3a;color:#b8f8d3;border-color:#4daa82}
.gh-arcade-stealth{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.gh-arcade-stealth .gh-arcade-tile{font-size:16px}
.gh-arcade-stealth .wall{background:#070e0d;color:#385850;border-color:#1b2b26}
.gh-arcade-stealth .scanner{background:#4a211f;color:#ffc5b6;border-color:#b65a50;box-shadow:inset 0 0 10px #ff56412d}
.gh-arcade-stealth .exit{color:#ffe8ac;border-color:#dec179;background:#3c3420}
.gh-arcade-stealth .player{color:#d9ffee;border-color:#85ffe0;background:#195d4c;box-shadow:0 0 9px #86f3d36b}
.gh-arcade-pad{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;max-width:255px;margin:14px auto 20px}
.gh-arcade-pad .gh-arcade-cell{min-height:44px;aspect-ratio:auto;background:#153128;border:1px solid #376d59;border-radius:6px;color:#bdebd6;font-size:16px}
.gh-arcade-pad .gh-arcade-cell[data-value="wait"]{font-size:11px}
.gh-arcade-strike{grid-template-columns:repeat(4,minmax(0,1fr))}
.gh-arcade-strike .gh-arcade-cell{font-size:21px;aspect-ratio:1;background:#0c1815;color:#42635b}
.gh-arcade-strike .target{border-color:#dcffac;background:#355d2b;color:#e6ffbd;box-shadow:0 0 14px #a9e66066,inset 0 0 13px #b0ff7b36;animation:gh-target-pulse .7s ease-in-out infinite alternate}
@keyframes gh-target-pulse{to{box-shadow:0 0 24px #aeeb7da5,inset 0 0 18px #b0ff7b6b}}
@media(max-width:370px){.gh-arcade{padding:12px 9px}.gh-arcade-matrix{gap:4px}.gh-arcade-memory .gh-arcade-cell{font-size:12px}}
@media(prefers-reduced-motion:reduce){.gh-arcade-strike .target{animation:none}}

/* Easy original cipher: identify tiles by number and swap only two pairs. */
.gh-shell .gh-cipher-tip{font-size:11px;line-height:1.7;color:#b6d8cc;padding:12px 14px;border:1px solid #36584e;background:#10231e;margin:0 0 15px}
.gh-shell .gh-grid:not(.gh-pipes) .gh-button[data-action="gh-tile"]{position:relative}
.gh-shell .gh-tile-id{position:absolute;right:4px;bottom:3px;font:600 11px ui-monospace,monospace;color:#dbfff3;background:#092219df;border:1px solid #305d4f;padding:2px 4px;pointer-events:none}
.gh-shell .gh-grid .gh-button.selected .gh-tile-id{color:#fff;background:#2b6756}

/* D14/D15 shares GHOST's native tool chrome, not a Story55 dashboard. */
.gh-shell.gh-fw-shell{padding-top:24px;min-height:100%;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.gh-fw-shell .gh-top{margin-bottom:22px}
.gh-fw-shell h1{font-size:clamp(21px,6vw,27px);letter-spacing:.045em;margin:0 0 24px;font-weight:500}
.gh-fw-shell .gh-fw-ledger{padding:14px 0 24px;border-top:1px solid var(--gh-line)}
.gh-fw-shell .gh-fw-line{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:42px;color:var(--gh-ink);font:13px Arial,'PingFang SC',sans-serif}
.gh-fw-shell .gh-fw-line strong{font:500 13px ui-monospace,monospace;font-variant-numeric:tabular-nums}
.gh-fw-shell .gh-meter{height:3px;margin-top:9px}
.gh-fw-shell .gh-fw-status{margin-top:15px;color:var(--gh-dim);font-size:11px;letter-spacing:.03em}
.gh-fw-shell .gh-fw-actions{border-top:1px solid var(--gh-line);padding:14px 0}
.gh-fw-shell .gh-fw-button{width:100%;display:flex;align-items:center;justify-content:space-between;min-height:48px;margin-top:10px;padding:11px 15px;border:1px solid var(--gh-line);background:#0e1d1a;text-align:left;font-size:12px}
.gh-fw-shell .gh-fw-button span{font-size:22px;line-height:1;color:var(--gh-dim)}
.gh-fw-shell .gh-fw-button:disabled{opacity:.33;cursor:default}
.gh-fw-shell .gh-fw-upgrade{margin-top:17px;padding-top:17px;border-top:1px solid var(--gh-line)}
.gh-fw-shell .gh-flow-dialog p{font-size:12px;letter-spacing:.03em}

/* Shared header button for the existing GHOST project and run pages. */
.gh-share-button{min-width:34px;min-height:30px;padding:2px 9px!important;border:1px solid #517c72!important;border-radius:5px;color:#c5e7d8!important;font-size:20px!important;line-height:1!important}
.gh-tear-terminal{min-height:180px;margin:18px 0;padding:16px;background:#08130f;border:1px solid #314b40;border-radius:6px;color:#82deb0;font:12px/1.9 monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.gh-top .gh-share-button{margin-left:auto}.gh-top:has(.gh-share-button){gap:8px}

/* Open-source arcade ports: retain Ghost monochrome UI, no upstream themes. */
.gh-arcade-reference{display:grid;place-items:center;gap:2px;margin:0 auto 12px;width:min(38%,125px);opacity:.8}
.gh-arcade-reference svg{max-width:100%;height:auto}
.gh-arcade-reference small{font:10px ui-monospace,monospace;color:#9cb9ac}
.gh-arcade-slide{grid-template-columns:repeat(3,minmax(0,1fr));max-width:280px}
.gh-arcade-slide .gh-arcade-cell{position:relative;padding:0;overflow:hidden;background:#133026}
.gh-arcade-slide .gh-arcade-cell svg{width:96%;height:96%;display:block}
.gh-arcade-slide .gh-arcade-cell small{position:absolute;bottom:3px;right:4px;padding:1px 3px;font:600 10px ui-monospace,monospace;background:#102a24da;color:#d5ffe9;border:1px solid #365d51}
.gh-arcade-slide .gh-arcade-cell.empty{background:#080f0d;border:1px dashed #2d493f;box-shadow:inset 0 0 15px #0008}
.gh-arcade-maze{grid-template-columns:repeat(var(--maze-columns,5),minmax(0,1fr));gap:0;max-width:360px}
.gh-arcade-maze .gh-arcade-tile{border-radius:0;font-size:clamp(11px,3.3vw,16px);aspect-ratio:1;min-width:0}
.gh-arcade-maze .gh-arcade-tile.scanner{box-shadow:inset 0 0 12px #ff564166}
.gh-arcade-maze .gh-arcade-tile.player{box-shadow:inset 0 0 12px #86f3d36b}

/* Compact native confirmation, isolated from full-page Ghost action buttons. */
.app-ghost .gh-share-overlay{position:absolute;inset:0;z-index:150;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(0,0,0,.38);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.app-ghost .gh-share-dialog{box-sizing:border-box;width:min(100%,270px);overflow:hidden;border:1px solid #c6dfd71c;border-radius:15px;background:#20312ef2;color:#e2eee9;box-shadow:0 14px 48px #0005;padding:0;font-family:-apple-system,BlinkMacSystemFont,'PingFang TC',sans-serif}
.app-ghost .gh-share-dialog p{margin:0;padding:25px 18px 24px;text-align:center;line-height:1.4;font-size:16px;font-weight:600;letter-spacing:0}
.app-ghost .gh-share-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border-top:1px solid #c6dfd729}
.app-ghost .gh-share-actions .gh-share-choice{box-sizing:border-box;display:grid;place-items:center;width:100%;height:48px;min-height:48px;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:#bfd9cd;font:400 17px -apple-system,BlinkMacSystemFont,'PingFang TC',sans-serif;letter-spacing:0;cursor:pointer;touch-action:manipulation}
.app-ghost .gh-share-actions .gh-share-choice+.gh-share-choice{border-left:1px solid #c6dfd729}
.app-ghost .gh-share-actions .gh-share-accept{font-weight:600;color:#d8f1e3}
.app-ghost .gh-share-choice:active{background:#ffffff12}
.app-ghost .gh-share-choice:focus-visible{outline:2px solid #c6dfd7;outline-offset:-4px}

/* Secret shortcut inherits the GHOST terminal's restrained green language. */
.gh-shell .gh-top:has(.gh-quick-skip){display:flex;align-items:center;gap:8px;min-height:40px;margin-bottom:20px}
.gh-shell button.gh-quick-skip{margin-left:auto;flex:none;min-height:34px;padding:7px 15px;border:1px solid #83b6a0a6;border-radius:18px;background:linear-gradient(135deg,#1e4339,#112b25);color:#d1f5e3;font:500 11px ui-monospace,SFMono-Regular,monospace;letter-spacing:.08em;box-shadow:inset 0 1px #d8ffee17,0 5px 16px #0005;cursor:pointer;touch-action:manipulation}
.gh-shell button.gh-quick-skip:active{transform:scale(.96);background:#2a5948}
.gh-shell button.gh-quick-skip:focus-visible{outline:2px solid #adeccf;outline-offset:3px}
