/* 2DXLAB ICE AGE — frozen-Earth expedition interface.
   Source palettes live with their surfaces; this final sheet defines the shared
   ice-cut shell, navigation and interaction states without changing hit areas. */
:root {
  color-scheme: dark;
  --ice-void: #061421;
  --ice-panel: #10283b;
  --ice-raised: #17364b;
  --ice-ink: #e8f7ff;
  --ice-muted: #a7c5d9;
  --ice-edge: #37637b;
  --ice-cyan: #73dff5;
  --ice-aurora: #8de1ce;
  --ice-danger: #ff8290;
  --ink: #e8f7ff;
  --brand-teal: #73dff5;
  --brand-teal-d: #195777;
  --brand-amber: #b5edf8;
  --brand-slate: #10283b;
}
body { color: var(--ice-ink); background-color: var(--ice-void); }
button, input, textarea, select { color: inherit; }
input, textarea, select { accent-color: var(--ice-cyan); }
input::placeholder, textarea::placeholder { color: #86a9be; opacity: 1; }
::selection { color: #071827; background: #9cecff; }
:focus-visible { outline: 2px solid #b4f3ff !important; outline-offset: 2px; }
button:disabled, input:disabled, select:disabled, [aria-disabled="true"] { cursor: not-allowed; }
button:disabled { opacity: .48; }
* { scrollbar-color: #40748d #0a1d2d; scrollbar-width: thin; }
::-webkit-scrollbar-thumb { background-color: #416e87 !important; border-color: #16354a !important; }
::-webkit-scrollbar-track { background-color: #0a1d2d !important; }
/* Frames are inset, so dragging, clipping and responsive sheet geometry stay intact. */
html #sq .win, html .kw-win {
  color: var(--ice-ink);
  background: linear-gradient(135deg,rgba(115,223,245,.045),transparent 34%),var(--ice-panel);
  box-shadow: inset 0 0 0 1px #416e87,inset 0 2px 0 #8bdfef,0 0 0 2px #071827,0 12px 30px #020b16a6;
}
html #sq .tb, html .kw-title, html .iv-title, html .wc-title {
  color: var(--ice-ink);
  background: linear-gradient(115deg,transparent 84%,#73dff522 84%,#73dff522 87%,transparent 87%),linear-gradient(90deg,#1a526a,#133448 65%,#102738);
  border-bottom-color: #59aec7;
  text-shadow: 0 1px 1px #02101b;
}
html #sq .tb { letter-spacing: .025em; }
html #sq .tb .kb { color: #b7eaf7; background: #092334; box-shadow: inset 0 0 0 1px #4d8197; }
html #sq .tb .sub { color: #b1d5e6; }
html #sq .wb { background: #163b50; box-shadow: inset 0 0 0 1px #51889f; }
html #sq .wb:hover { background: #28627a; }
html #sq .ft { background: #0c2031; border-color: #2f546c; }
html #sq .bt { color: #dceef7; background: linear-gradient(140deg,#21465c,#173247); box-shadow: inset 0 0 0 1px #416e87,inset 0 2px 0 #699eaf33; }
html #sq .bt.pr, html .kw-btn.blue, html #nc-langbar button.on {
  color: #eaffff;
  background: linear-gradient(115deg,#277b98,#18516f 72%,#1d6480);
  box-shadow: inset 0 0 0 1px #7bddf0,inset 0 2px 0 #c9f7ff55;
}
html #sq .bt:not(:disabled):hover { box-shadow: inset 0 0 0 1px #a3edff,0 0 12px #6ce3ff22; }
html #sq .bt:active:not(:disabled) { background: #123248; }
html #sq .bt:disabled, html #sq .bt.away { color: #7c9caf; background: #102535; box-shadow: inset 0 0 0 1px #294a5e; }
html #sq .mu, html #sq .note { color: #a7c5d9; }
html #sq .bad { color: #ff8290; }
html #sq .ok { color: #8ee0ac; }
html #sq .bl { color: #85dbfa; }
/* Inventory: neutral ice trays only; .g1–.g5 retain their true rarity gradients. */
html #sq .sl:not(.g1):not(.g2):not(.g3):not(.g4):not(.g5) {
  background: linear-gradient(135deg,#173c51 0,#102639 48%,#0c2030 49%);
  box-shadow: inset 0 0 0 1px #3c637a;
}
html #sq .sl.on, html #sq .sl.pk { outline: 1px solid #8ce5f8; outline-offset: -1px; }
html #sq .sl>.c { color: #f0fbff; text-shadow: 0 1px 2px #000,0 0 3px #000; }
html #sq .sl>.rf { color: #ffda8b; text-shadow: 0 1px 2px #000; }
html #sq .vt.on { background: #193d53; box-shadow: inset 3px 0 0 #83deef; color: #effbff; }
/* Desktop / mobile instrument HUD: a shared polar field kit, not a full-screen tint. */
html #sq .hud .rb { background: #0a2236b8; box-shadow: inset 0 0 0 2px #8dc9dfb8,0 2px 7px #03111c88; }
html #sq .hud .rb>i { background: #0b263b; color: #c5e6f5; }
html #sq .hud .mi>span { color: #edfaff; text-shadow: 0 1px 3px #03111c,0 0 7px #03111c; }
html .cframe, html .tframe, html .minimap { border-color: #5088a0; }
html .gauge { background-color: #061827; }
html .gauge.hp>i, html .gauge.thp>i { background: linear-gradient(#f07884,#b73353); }
html .gauge.sp>i { background: linear-gradient(#9be4ff,#3b8eb8); }
html #sq .hud .ay, html #sq .hud .mi.pj-cell, html .kw-btn.gold {
  color: #e8f7ff;
  background: linear-gradient(125deg,#246b86,#143c55);
  border-color: #4c8ba3;
  box-shadow: inset 0 1px 0 #9eeafb88,0 3px 0 #03121f66;
}
html #sq .hud .ay>img { filter: none; }
html #sq .hud .ay.on { color: #baf8e8; background: #164d59; box-shadow: inset 0 0 0 2px #8de1ce; }
html #sq .hud .wk [data-f="work"] span[data-a="w-step"] { background: #286a82; color: #edfcff !important; }
/* An opaque mission plate prevents world nameplates bleeding into quest text. */
html #sq .hud .wk:not(.open) [data-f="work"] {
  background: #0a2031;
  box-shadow: inset 2px 0 0 #6cc7de,inset 0 0 0 1px #31576c;
}
html.mob.sq-on #mb .mb-act, html.mob.sq-on #mb .mb-attack.life { background: #1e617d !important; border-color: #83d5eb !important; }
/* Loading / title and character expedition plates. */
html .pl-title { color: #d8f7ff; letter-spacing: .09em; }
html .pl-copy { color: #9fc8dc; }
html .cs-plate { background-color: #10283b; color: #ecfaff; border-color: #3e708b; }
html .cs-plate.empty .cs-plate-n { border-color: #73dff5; color: #d8f7ff; background: #0e293d; }
html .cs-plate.empty.on .cs-plate-n { box-shadow: 0 0 0 2px #8ee8ff88,0 4px 0 #03101b; }
html .cs-plate.on { box-shadow: 0 0 0 2px #a1efff,0 5px 0 #03101b,0 0 22px #72dbff33; }
/* Accessible motion preference also covers the source window transitions. */
@media (prefers-reduced-motion: reduce) {
  .kw-win, #sq .win, .cs-plate, button { transition-duration: .01ms !important; }
}
