/* Copyright (c) 2026 Astoria Insight. All rights reserved. */
/* CONSOLE (loaded last): the trading floor dressed as a console game menu of the Xbox / PS2 era, in the spirit of Halo.
   Only the look changes: no element moves, grows or changes size here. Steel-blue glass panels with ice-blue edges and
   corner brackets, blue title bars with a gold index, glossy blue keys, ice-blue labels, gold kept for the few things
   that call you (the selected key, the Career button, the price change). No scanlines, no colour fringing. */

:root{
  --room:#030812;--bg:#030812;--bg-2:#040b17;
  --s1:#06101e;--s2:#0a1728;--s3:#102136;--s4:#162b45;
  --line:#173250;--line-2:#21456b;--line-3:#2f5f8f;
  --tx:#eef7ff;--tx-2:#8cc4ea;--tx-3:#5d84a8;
  --ice:#7fd4ff;--ice-2:#bfeaff;--edge:#2a5f8f;
  --screen:#040c18;--screen-line:#163352;
  --glass:linear-gradient(180deg,#0c1d33f2 0,#071223f2 140px);
  --key:linear-gradient(180deg,#1d4168 0,#12304f 48%,#0b2139 52%,#0e2843 100%);
  --key-edge:inset 0 1px 0 #a8e2ff4d,inset 0 -1px 0 #00000080,0 0 0 1px #2a5f8f,0 2px 0 #000;
  --key-down:inset 0 1px 3px #000a,0 0 0 1px #4fa8e0;
  --lit:linear-gradient(180deg,#ffd27a 0,#ffb23f 48%,#f08c00 52%,#ffa31a 100%);
  --lit-edge:inset 0 1px 0 #fffb,inset 0 -1px 0 #0004,0 0 0 1px #000,0 0 12px #ffa31a66;
  --brackets:
    linear-gradient(var(--ice),var(--ice)) 0 0/14px 2px,linear-gradient(var(--ice),var(--ice)) 0 0/2px 14px,
    linear-gradient(var(--ice),var(--ice)) 100% 0/14px 2px,linear-gradient(var(--ice),var(--ice)) 100% 0/2px 14px,
    linear-gradient(var(--ice),var(--ice)) 0 100%/14px 2px,linear-gradient(var(--ice),var(--ice)) 0 100%/2px 14px,
    linear-gradient(var(--ice),var(--ice)) 100% 100%/14px 2px,linear-gradient(var(--ice),var(--ice)) 100% 100%/2px 14px;
}

/* ── The ground: deep blue, a faint hex field, light from below like a menu backdrop ── */
body{background:
  radial-gradient(70% 45% at 50% 108%,#1a5fb03d,transparent 70%),
  radial-gradient(60% 40% at 85% 0,#2a6fd01f,transparent 70%),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16zM28 64v33M0 16L-28 0M56 16l28-16' fill='none' stroke='%237fd4ff' stroke-opacity='.05'/%3E%3C/svg%3E"),
  var(--room)}
::selection{background:var(--ice);color:#021022}
:focus-visible{outline-color:var(--ice)}
.desk-sky::after{background:linear-gradient(90deg,#030812e6 0,#03081299 26%,transparent 55%),linear-gradient(180deg,#0a2a5a22 0,transparent 50%,var(--room) 100%)}

/* masthead */
.brand .slashes,.headline h1 .caret{color:var(--ice)}
.brand small,.headline p{color:var(--tx-2)}
.headline h1{text-shadow:0 3px 0 #000,0 0 24px #4fb8f066}
html:not([data-glow="off"]) .headline h1{text-shadow:0 3px 0 #000,0 0 24px #4fb8f066}
.pill{border-color:#2bd96b;background:#04140c;color:#7dff9a;text-shadow:0 0 8px #2bd96b88;box-shadow:0 0 12px #2bd96b33}
.game-date{border-color:var(--edge);background:#061426;color:var(--ice-2);box-shadow:inset 0 1px 0 #a8e2ff26}
.hud-score small{color:var(--tx-2)}

/* ── The monitor frame on wide screens: a console bezel, dark blue with a lit inner edge ── */
@media(min-width:721px){
  .shell::before{background:#030812;border-color:#000;
    box-shadow:inset 0 0 0 12px #0b1830,inset 0 0 0 13px #2a5f8f,inset 0 0 0 14px #030812,inset 0 0 50px 14px #000,0 0 0 1px #21456b,0 40px 80px #000,0 0 120px #1a5fb033}
  .shell::after{color:#3d6a94}
}

/* ── Panels: blue glass, an ice edge, HUD corner brackets ── */
.panel,.wire,.newswire,.crew,.arena,.progression-hud,.fill-summary,.risknote,.depth .mini,.rightcol .bottom{border-color:var(--line-2)}
.panel{position:relative;background:var(--glass);box-shadow:inset 0 1px 0 #7fd4ff1f,0 0 0 1px #000,0 10px 28px #0009,0 0 22px #2a8fff12}
.panel:not(.stat)::after{content:'';position:absolute;inset:0;z-index:3;pointer-events:none;background:var(--brackets);background-repeat:no-repeat;opacity:.75}
.orderpanel{background:var(--glass)}
.rightcol .bottom{background:var(--line)}
.rightcol .bottom .stat,.rightcol .bottom .stat:nth-child(3),.depth .mini,.fill-summary,.risknote,.spread,.run-high{background:#061223}
.rightcol .bottom .stat:nth-child(3){border-bottom-color:var(--line)}
.stat small,.risknote{color:#a9c6df}
.feedrow{border-bottom-color:#0d1f35}
.bookhead{border-bottom-color:var(--line)}

/* title bars: blue, lit from the left, a gold index number */
.paneltitle{background:linear-gradient(90deg,#1f5f96 0,#134170 40%,#0b2645 100%);color:#fff;box-shadow:inset 3px 0 0 var(--amber),inset 0 1px 0 #a8e2ff40,inset 0 -1px 0 #4fa8e088}
.paneltitle h2,.chartpanel .paneltitle h2{color:#fff;text-shadow:0 0 8px #7fd4ff80,0 1px 0 #000}
.paneltitle h2::before{color:var(--amber-2)}
.paneltitle .muted{color:var(--ice-2);opacity:.85}

/* the news and crew panels share the glass and a blue strip on top */
.wire,.newswire,.crew,.arena{background:var(--glass)}
.wire-top,.nw-top,.crew-top,.arena-top{background:linear-gradient(90deg,#123a63 0,#0b2645 60%,#071a31 100%);border-bottom-color:#2f5f8f}
.wire{box-shadow:inset 3px 0 0 #2bd96b,0 0 0 1px #000,0 10px 28px #0009}
.newswire{box-shadow:inset 3px 0 0 #ff8a3d,0 0 0 1px #000,0 10px 28px #0009}
.crew{box-shadow:inset 3px 0 0 var(--dn),0 0 0 1px #000,0 10px 28px #0009}
.arena{box-shadow:inset 3px 0 0 var(--ice),0 0 0 1px #000}
.arena[data-phase="warning"]{box-shadow:inset 3px 0 0 var(--amber),0 0 0 1px #6b4400}
.arena[data-phase="attack"]{box-shadow:inset 3px 0 0 var(--dn),0 0 0 1px #6b1d18}
.arena-avatar{border-color:var(--edge);background:#061223}
.event-popup{background:linear-gradient(180deg,#d8352b 0,#b3261e 50%,#8f1c16 100%);box-shadow:inset 0 1px 0 #ffffff55,inset 0 0 0 1px #ff6f61,0 0 24px #ff2d5544}
.progression-hud{background:linear-gradient(180deg,#0a1a2e,#061223)!important;color:#c3dcf0}
.progression-meter{background:#0d2238}
.progression-meter i{background:linear-gradient(90deg,#2bd96b,#7dff9a)}

/* the chart: a lit screen, no scanlines */
html:not([data-glow="off"]) .chartbox::after{background:linear-gradient(180deg,#7fd4ff0d 0,transparent 22%),radial-gradient(130% 100% at 50% 50%,transparent 62%,#000a 100%)}
@media(min-resolution:2dppx){html:not([data-glow="off"]) .chartbox::after{background:linear-gradient(180deg,#7fd4ff0d 0,transparent 22%),radial-gradient(130% 100% at 50% 50%,transparent 62%,#000a 100%)}}
.chartbox,html:not([data-glow="off"]) .chartbox{border-color:var(--screen-line);box-shadow:inset 0 0 0 1px #000,inset 0 0 40px #000a,0 0 0 1px #7fd4ff14,0 0 28px #2a8fff14}

/* ── Keys: glossy blue console buttons; the lit one is gold ── */
.control,.sound-toggle,.timeframes button,.livebtn,.zoomtools button,.charttools2 .ct-btn,.sizebtns button,.order-mode button,.tabs button,.flatten,.pending button,.desk-nav button,.career-row button,.arcade-sounds{
  border-color:#000;background:var(--key);box-shadow:var(--key-edge);color:var(--ice-2);text-shadow:0 1px 0 #000}
.control:hover,.sound-toggle:hover,.livebtn:hover,.sizebtns button:hover,.charttools2 .ct-btn:hover,.timeframes button:hover,.zoomtools button:hover,.order-mode button:hover{
  background:linear-gradient(180deg,#2a5a8c 0,#1a4470 48%,#123358 52%,#16395f 100%);border-color:#000;box-shadow:var(--key-edge),0 0 12px #4fb8f055}
.control:active,.sound-toggle:active,.timeframes button:active,.livebtn:active,.zoomtools button:active,.charttools2 .ct-btn:active,.sizebtns button:active,.order-mode button:active,.tabs button:active,.flatten:active:enabled,.pending button:active,.desk-nav button:active{box-shadow:var(--key-down)}
.control.active,.timeframes button.selected,.order-mode button.selected,.charttools2 .ct-btn.active,.blotter-filters button.active,.session-summary-btn,
.desk-nav button[aria-current="true"]{background:var(--lit);color:#1a0e00;text-shadow:none;box-shadow:var(--lit-edge)}
@media(min-width:721px){
  .progression-workbench summary{background:var(--lit);box-shadow:var(--lit-edge)}
  .progression-workbench summary:hover{background:linear-gradient(180deg,#ffe0a0 0,#ffc04d 48%,#ff9d14 52%,#ffb23f 100%)}
  .progression-workbench[open] summary::after{background:var(--key);box-shadow:var(--key-edge);color:var(--ice-2)}
  .progression-workbench[open] summary,.progression-workbench[open] summary:hover{background:#030812f2;box-shadow:inset 0 -1px 0 var(--edge);color:#ffd27a}
}
.sound-toggle.off,.glow-toggle[aria-pressed="false"]{color:#5d84a8;background:var(--key)}
.zoomtools button,.sizebtns button{color:#fff}
.sizebtns .allin{background:linear-gradient(180deg,#5a1a1a 0,#3a1010 48%,#2a0a0a 52%,#331010 100%);color:#ffb4ac;box-shadow:inset 0 1px 0 #ff8f8440,0 0 0 1px #6b1d18,0 2px 0 #000}
.tabs button{color:#a9c6df}
.flatten{color:var(--ice-2)}
.tabs button.selected.buy{background:linear-gradient(180deg,#8dffc4 0,#3fd98a 48%,#1fae62 52%,#28c271 100%);color:#002410;box-shadow:inset 0 1px 0 #fffb,0 0 0 1px #000,0 0 14px #2bd96b66}
.tabs button.selected.sell{background:linear-gradient(180deg,#ffb0a8 0,#f0645a 48%,#c8382c 52%,#d9483c 100%);color:#2a0402;box-shadow:inset 0 1px 0 #fffb,0 0 0 1px #000,0 0 14px #ff4d4d55}
/* the big GO key: a glossy A button */
.submit{background:linear-gradient(180deg,#8dffc4 0,#3fd98a 48%,#1fae62 52%,#28c271 100%);box-shadow:inset 0 1px 0 #fffc,inset 0 -2px 0 #0003,0 0 0 1px #000,0 3px 0 #000,0 0 20px #2bd96b44;color:#002410;text-shadow:0 1px 0 #ffffff55}
.submit.sell{background:linear-gradient(180deg,#ffb0a8 0,#f0645a 48%,#c8382c 52%,#d9483c 100%);box-shadow:inset 0 1px 0 #fffc,inset 0 -2px 0 #0003,0 0 0 1px #000,0 3px 0 #000,0 0 20px #ff4d4d44;color:#2a0402}
.submit:active{box-shadow:inset 0 1px 0 #fff9,0 0 0 1px #000}

/* ── Fields ── */
.orderbody select,.orderbody input{border-color:var(--edge);background:#04101e;color:var(--ice-2);box-shadow:inset 0 1px 4px #000a}
.orderbody input:focus,.orderbody select:focus{border-color:var(--ice);background:#0a2440;color:#fff;box-shadow:0 0 0 1px var(--ice),0 0 14px #4fb8f066}
.leverage-readout,.spread{color:var(--amber-2)}
.orderbody .marginrow input{background:#0d2238;box-shadow:inset 0 0 0 1px var(--edge)}
.orderbody .marginrow input:before{background:#5d84a8}
.orderbody .marginrow input:checked{background:#3a2500;box-shadow:inset 0 0 0 1px var(--amber),0 0 10px #ffa31a55}

/* ── Pop-ups, coach, toasts ── */
.tutorial-target{box-shadow:inset 0 0 0 2px var(--ice),0 0 0 2px #000,0 0 22px #4fb8f099}
.tutorial-card{border-color:var(--edge);background:var(--glass)}
.tutorial-top{background:linear-gradient(90deg,#1f5f96,#0b2645);color:#fff}
.tutorial-top button{background:#04101e;color:var(--ice-2)}
.menu-hint{border-color:var(--ice);background:#061223}
.fx-banner{background:var(--glass);box-shadow:inset 0 3px 0 var(--ice),0 14px 40px #000}
.toast{background:#061223;border-color:var(--edge);border-left-color:var(--ice)}
.studies-menu{background:#061223;border-color:var(--edge)}
.progression-workbench section{border-color:var(--line-2);background:var(--glass)}
.progression-workbench section>h3:first-child{background:linear-gradient(90deg,#1f5f96,#0b2645);color:#fff;box-shadow:inset 3px 0 0 var(--amber)}
.progression-workbench h4{color:var(--ice-2)}
.progression-workbench[open]{background:var(--room)}
.bankrupt-card,.bankrupt-card[data-mode="complete"],.bankrupt-card[data-mode="live"]{border-color:var(--edge);background:var(--glass)}
.bankrupt-stats div{background:#061223!important}
.chg-periods button.selected{border-color:var(--amber-3);color:var(--amber-2)}

@media(max-width:720px){
  .desk-quote{background:#040d1af2;border-bottom-color:var(--edge);box-shadow:0 6px 18px #0008}
  .desk-quote .desk-quote-pnl{background:#061223}
  .desk-nav{background:linear-gradient(180deg,#0b1d33,#050f1e);border-top-color:#000;box-shadow:0 -1px 0 #2f5f8f,0 -8px 24px #0008}
  .progression-close{background:#030812f2}
  .progression-hud.expanded .progression-details{background:linear-gradient(180deg,#0000 0,#030812aa 170px,#030812 300px) local,url("img/desk/career-hero.jpg") 50% 0/auto 300px no-repeat local,#030812}
}

/* section names: wide upright capitals with a soft glow, like a console menu (the pixel face stays for the logo moments) */
.wire-top h2,.nw-top h2,.crew-top h2{font:800 12px/1 var(--ui);letter-spacing:.16em;color:#fff;text-shadow:0 0 10px #7fd4ffaa,0 1px 0 #000}
.wire-top h2{text-shadow:0 0 10px #2bd96baa,0 1px 0 #000}
.nw-top h2{text-shadow:0 0 10px #ff8a3daa,0 1px 0 #000}
.crew-top h2{text-shadow:0 0 10px #ff5d73aa,0 1px 0 #000}

/* the crew's pop-ups: a console message box */
.pop{position:relative;border-radius:2px;border-color:var(--edge);background:var(--glass);box-shadow:0 0 0 1px #000,0 14px 40px #000c,0 0 24px #2a8fff33}
.pop::after{content:'';position:absolute;inset:0;pointer-events:none;background:var(--brackets);background-repeat:no-repeat;opacity:.8}
.pop.inv{border-color:var(--amber-3)}
.pop .bubble{border-radius:2px;background:#0b1d33;box-shadow:inset 0 0 0 1px #21456b}
.pop-acts button,.pop-small{border-radius:2px;border-color:#000;background:var(--key);box-shadow:var(--key-edge);color:#fff}
.pop-acts small{color:var(--tx-2)}
.pop.tip.up .ride{background:linear-gradient(180deg,#8dffc4 0,#3fd98a 48%,#1fae62 52%,#28c271 100%);border-color:#000;color:#002410;box-shadow:inset 0 1px 0 #fffb,0 0 0 1px #000,0 0 16px #2bd96b55}
.pop.tip.down .ride{background:linear-gradient(180deg,#ffb0a8 0,#f0645a 48%,#c8382c 52%,#d9483c 100%);border-color:#000;color:#2a0402;box-shadow:inset 0 1px 0 #fffb,0 0 0 1px #000,0 0 16px #ff4d4d55}
.pop.tip .ride small{color:inherit;opacity:.8}
.crew-call{border-radius:2px}
.crew-dev button{border-radius:2px;background:#061223}
.nw-desks button{border-color:#000;border-radius:2px;background:var(--key);box-shadow:var(--key-edge);color:var(--ice-2)}
.nw-desks button[aria-pressed="true"]{border-color:#000;background:var(--lit);color:#1a0e00;box-shadow:var(--lit-edge)}

/* Run-end and hero titles: no more pixel face. Chrome lettering the way 2002 box art did it: bold Tahoma capitals, a
   light-to-dark metal gradient with a horizon line through the middle, a dark edge and a coloured glow. */
.bankrupt-card h2,.run-high strong,.run-persona strong,.name-alert strong,.fx-banner strong,.event-popup strong,.tutorial-card h2,.progression-close::before{
  font-family:var(--ui);font-weight:800;letter-spacing:.08em;text-transform:uppercase;text-shadow:none;
  background:linear-gradient(180deg,#fff 0,#e6eef8 38%,#8a9bb4 50%,#cfdbea 64%,#fff 100%);-webkit-background-clip:text;background-clip:text;color:transparent;
  filter:drop-shadow(0 2px 0 #0a1424) drop-shadow(0 0 10px #7fd4ff66)}
.bankrupt-card h2{background-image:linear-gradient(180deg,#fff 0,#ffd6d2 38%,#c8382c 50%,#ff9a8f 66%,#fff 100%);filter:drop-shadow(0 2px 0 #2a0402) drop-shadow(0 0 14px #ff4d4d77)}
.bankrupt-card[data-mode="complete"] h2,.bankrupt-card[data-mode="live"] h2,.run-high strong,.run-persona strong,.progression-close::before,.tutorial-card h2{background-image:linear-gradient(180deg,#fffbe8 0,#ffe7a3 38%,#b8811c 50%,#ffd27a 66%,#fff6d6 100%);filter:drop-shadow(0 2px 0 #2a1600) drop-shadow(0 0 12px #ffb23f66)}
.name-slots span,.run-share{font-family:var(--ui);font-weight:800}
