/* Night-shift terminal: retain the working layout, give the swarm its own world. */
html body { background:#000000 !important; color:#eeeeee; }
html body #fih-arena {
  --brand-black:#000000; --brand-graphite:#000000; --brand-raised:#000000;
  --brand-surface:#000000; --brand-line:#383838; --brand-line-soft:#000000;
  --brand-ivory:#eeeeee; --brand-muted:#eeeeee; --brand-faint:#aaaaaa;
  --brand-metal:#aaaaaa; --brand-metal-pale:#eeeeee; --brand-buy:#aaaaaa; --brand-sell:#aaaaaa;
  --abyss:#000000; --deep:#000000; --deep-2:#000000; --panel:#000000;
  --ink:#eeeeee; --ink-dim:#eeeeee; --ink-faint:#aaaaaa; --gold:#eeeeee;
  --cyan:#aaaaaa; --pink:#aaaaaa; --line:#383838;
  background:#000000 !important; color:#eeeeee !important;
}
html body #fih-arena #pond-gate { background:#000000 !important; }
html body #fih-arena :is(.pond-broadcast,.topbar) { background:#000000 !important; border-color:#383838 !important; }
html body #fih-arena .pond-wordmark small { color:#aaaaaa !important; letter-spacing:.12em; }
html body #fih-arena #pond-title { font-family:'Silkscreen',monospace !important; font-size:clamp(56px,6.1vw,94px) !important; letter-spacing:-.045em !important; line-height:1.12 !important; }
html body #fih-arena #pond-title button { color:#aaaaaa !important; }
html body #fih-arena #pond-title button[aria-pressed='true'] { color:#eeeeee !important; }
html body #fih-arena #pond-title button span { color:#aaaaaa !important; }
html body #fih-arena :is(.pond-enter,.pond-connect) { border-radius:4px !important; background:#eeeeee !important; color:#000000 !important; border:1px solid #eeeeee !important; box-shadow:0 8px 20px #0003 !important; }
html body #fih-arena :is(.pond-enter,.pond-connect):hover { background:#eeeeee !important; }
html body #fih-arena #pond-top .aquarium { border-color:#383838 !important; background:#000000 !important; box-shadow:0 20px 46px #0006 !important; }
html body #fih-arena #pond-top .aquarium::before { background:#383838 !important; border-color:#383838 !important; }
html body #fih-arena #pond-top .aquarium::after { background:#000000 !important; border-color:#383838 !important; }
html body #fih-arena :is(.aquarium-label,.tank-market-rim,.tank-chrome,.market-context-bar) { background:#000000 !important; color:#eeeeee !important; border-color:#383838 !important; }
html body #fih-arena #pond-top .aquarium > .living-market,
html body #fih-arena .tank-stage { background:linear-gradient(150deg,#000000,#000000 60%,#000000) !important; }
html body #fih-arena :is(.clear-water,.aquarium-floor,.aquarium-waterline,.ocean-habitat,.pixel-reef) { display:none !important; }
html body #fih-arena .arcade-cabinet { color:#eeeeee !important; background:linear-gradient(#383838 0 4px,#000000 4px 12px,#000000 12px calc(100% - 12px),#000000 calc(100% - 12px)) !important; border-color:#383838 !important; box-shadow:inset 3px 0 #383838,0 16px 28px #0005 !important; }
html body #fih-arena .arcade-cabinet::before { border-color:#383838 !important; }
html body #fih-arena .arcade-cabinet::after { background:#000000 !important; }
html body #fih-arena .cabinet-avatar { background:#000000; border-color:#383838; box-shadow:none; }
html body #fih-arena #pond-top .arcade-cabinet .liquid-selection > strong { color:#eeeeee !important; }
html body #fih-arena .arcade-cabinet .hero-play-controls button { background:#aaaaaa !important; border-color:#eeeeee !important; color:#000000 !important; box-shadow:0 4px 9px #0004 !important; }
html body #fih-arena :is(.cabinet-bottom,.capsule-machine,.capsule-machine small) { color:#eeeeee !important; }
html body #fih-arena .cabinet-speaker { background:repeating-linear-gradient(90deg,#000000 0 3px,transparent 3px 6px); }
html body #fih-arena .cabinet-lights i:nth-child(2) { background:#aaaaaa; }
html body #fih-arena .cabinet-lights i:nth-child(3) { background:#aaaaaa; }
html body #fih-arena .capsule-machine-art { filter:hue-rotate(145deg) saturate(.65); }
html body #fih-arena button:focus-visible,html body #fih-arena a:focus-visible { outline:2px solid #aaaaaa !important; outline-offset:4px; }
html body #fih-arena ::selection { background:#383838; color:#fff; }
html body:has(.layout) { --bg:#000000; --panel:#000000; --line:#383838; --text:#eeeeee; --muted:#eeeeee; --gold:#eeeeee; --mint:#aaaaaa; }
html body:has(.layout) .top { background:#000000; border-color:#383838; }
html body:has(.layout) :is(article aside,.callout,.note) { background:#000000; border-color:#383838; color:#eeeeee; }
@media(max-width:800px){html body #fih-arena #pond-title{font-size:clamp(44px,11.2vw,68px)!important;} }
.fruit-fly { overflow: visible; }
html body #fih-arena #panel-arena #terminal-ticket,
html body #fih-arena #panel-arena .arena-toolbar,
html body #fih-arena #panel-arena .arena-command {background:#000!important;border-color:#303030!important;color:#ddd!important;}
html body #fih-arena :is(.project-view,.project-hero,.project-panel,.leaderboard-table,table,thead,tbody,tr,th,td,.arena-command,.setup-runner,.ticket-risk-details,.terminal-header,.terminal-title,.terminal-chart-tabs,.bottom-bar) {background:#000!important;background-image:none!important;border-color:#303030!important;color:#ddd!important;}
html body #fih-arena .terminal-ticket .setup-runner {background:#eee!important;color:#111!important;}
html body #fih-arena .terminal-ticket :is(label,small,summary,p,span,strong) {color:#ccc;}
/* Monochrome surfaces; sprite art and profit/loss indicators retain their colors. */
html body #fih-arena {
 --brand-buy:#75d3a4; --brand-sell:#e78d98;
 --studio-surface:#000; --studio-line:#303030; --studio-ink:#eee; --studio-muted:#aaa;
 --ticket-surface:#000; --field-surface:#0c0c0c; --field-line:#383838;
 --setup-gold:#eee; --setup-ink:#111; --cabinet-gold:#ddd; --cabinet-ink:#111;
}
html body #fih-arena :is(.arena-shell,.arena-trade-workspace,.terminal-workspace,.terminal-market,.terminal-ticket,.trade-terminal,.tank-stage,.tank-chrome,.tank-market-rim,.market-context-bar,.terminal-bottom-tabs,.chart-toolbar,.topbar,.nav-strip,.tank-header,.survival-meters,.trade-size-fixed,.ticket-risk,.terminal-risk,.arena-footer) {
 background:#000!important; border-color:#303030!important; color:#ddd!important;
}
html body #fih-arena .trade-terminal :is(input,select,textarea,.ticket-input,.ticket-side,.ticket-summary,.ticket-metric,.ticket-status) {background:#090909!important;border-color:#383838!important;color:#eee!important;}
html body #fih-arena :is(.terminal-ticket,.chart-toolbar,.terminal-bottom-tabs) button {background:#121212!important;border-color:#383838!important;color:#ddd!important;}
html body #fih-arena .terminal-ticket :is(.ticket-submit,[data-connect-account]) {background:#eee!important;color:#111!important;}
html body #fih-arena .terminal-ticket button:disabled {background:#161616!important;color:#888!important;}
html body #fih-arena #pond-top .aquarium {border-color:#383838!important;}
html body #fih-arena #pond-top .aquarium > .living-market {background:#000!important;}
html body #fih-arena .arcade-cabinet {background:#080808!important;border-color:#383838!important;}
html body #fih-arena .capsule-machine-art {filter:grayscale(1);}
html body #fih-arena #pond-gate .enter-pond { background:#eeeeee!important; color:#000000!important; border-color:#eeeeee!important; border-radius:4px!important; box-shadow:0 8px 20px #0003!important; }
html body #fih-arena #pond-gate .enter-pond:hover { background:#eeeeee!important; }
html body #fih-arena #pond-top .aquarium > header { background:#000000!important; border-color:#383838!important; color:#eeeeee!important; }
#fih-arena .fruit-fly .fly-wings { transform-box: fill-box; transform-origin: 90% 90%; animation: fly-wingbeat 160ms steps(2,end) infinite alternate !important; }
@keyframes fly-wingbeat { to { transform: scaleY(.72) rotate(-6deg); } }
#fih-arena [data-hero-paused='true'] .fly-wings,
#fih-arena[data-visible='false'] .fly-wings,
#fih-arena[data-swim-state='paused'] .fly-wings { animation-play-state: paused !important; }
@media(prefers-reduced-motion:reduce){#fih-arena .fruit-fly .fly-wings{animation:none!important;}}
