/* ============================================================
   INTERCHAINED POOL — '98 RETRO GLASS EDITION
   Windows 98 window chrome + NES/Atari pixel type and palette,
   rebuilt on modern frosted glass. Zero dependencies beyond
   two Google fonts (with system fallbacks when offline).
   ============================================================ */

:root {
  --desktop-1: #0b6e6e;
  --desktop-2: #063a5e;
  --desktop-3: #12082e;
  --ink: #eef7ff;
  --ink-dim: #b9d2e8;
  --muted: #8fb0cc;
  --gold: #ffd83d;
  --gold-deep: #c9a227;
  --red: #ff5252;
  --grn: #46e046;
  --blu: #38b6ff;
  --glass: rgba(190, 225, 255, 0.10);
  --glass-strong: rgba(200, 232, 255, 0.16);
  --glass-line: rgba(255, 255, 255, 0.35);
  --term: rgba(2, 12, 8, 0.72);
  --term-ink: #59ff8f;
  --px: 'Press Start 2P', 'Courier New', monospace;
  --term-font: 'VT323', 'Courier New', monospace;
  --body-font: Tahoma, Verdana, 'Segoe UI', system-ui, sans-serif;
  --bevel: inset 1px 1px 0 rgba(255,255,255,.55), inset -1px -1px 0 rgba(0,0,0,.38);
  --win-shadow: 0 22px 55px rgba(0,0,0,.5), 0 3px 0 rgba(0,0,0,.25);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 15px;
  line-height: 1.5;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(56,182,255,.28), transparent 60%),
    radial-gradient(900px 550px at -10% 30%, rgba(70,224,70,.14), transparent 60%),
    radial-gradient(1000px 700px at 55% 115%, rgba(255,82,82,.16), transparent 60%),
    linear-gradient(165deg, var(--desktop-1) 0%, var(--desktop-2) 52%, var(--desktop-3) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  padding-bottom: 64px; /* taskbar clearance */
}

/* pixel grid + aurora wash over the desktop */
.bg-fx {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 90%);
}

/* CRT scanlines, kept faint so text stays crisp */
.scanlines {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  background: repeating-linear-gradient(rgba(0,0,0,.14) 0 1px, transparent 1px 3px);
  opacity: .28;
  box-shadow: inset 0 0 190px rgba(0,0,0,.5);
}

.mono { font-family: var(--term-font); letter-spacing: .02em; }
.hidden { display: none !important; }

::selection { background: var(--gold); color: #161616; }

::-webkit-scrollbar { width: 16px; height: 16px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,.08); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(230,245,255,.65), rgba(160,195,230,.55));
  border: 2px solid rgba(6,30,50,.6); border-radius: 4px;
}

/* ---------------- desktop icons ---------------- */

.desktop-icons {
  position: fixed; left: 18px; top: 92px; z-index: 1;
  display: flex; flex-direction: column; gap: 20px;
}
.dicon { width: 74px; text-align: center; }
.dicon-img {
  font-size: 30px; line-height: 1.25; padding: 7px 0 5px;
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: 8px;
  backdrop-filter: blur(8px); box-shadow: var(--bevel);
}
.dicon-label {
  margin-top: 5px; font-family: var(--px); font-size: 7.5px; color: #fff;
  text-shadow: 1px 1px 0 rgba(0,0,0,.75); letter-spacing: .02em;
}
@media (max-width: 1180px) { .desktop-icons { display: none; } }

/* ---------------- top system bar ---------------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 22px;
  background: linear-gradient(180deg, rgba(215,240,255,.22), rgba(150,195,235,.10));
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--glass-line);
  box-shadow: 0 1px 0 rgba(255,255,255,.35), 0 14px 34px rgba(0,0,0,.30);
}
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark { font-size: 30px; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.4)); }
.brand-name {
  font-family: var(--px); font-size: 15px; color: #fff; letter-spacing: .04em;
  text-shadow: 2px 2px 0 rgba(0,20,60,.65), 0 0 22px rgba(56,182,255,.5);
  white-space: nowrap;
}
.brand-sub { font-family: var(--px); font-size: 7.5px; color: var(--gold); margin-top: 5px; text-shadow: 1px 1px 0 rgba(0,0,0,.6); }
.topbar-right { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.status-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 6px; font-size: 12.5px; color: var(--ink);
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--bevel);
  backdrop-filter: blur(10px);
}
.status-chip.mono { font-size: 16px; line-height: 1; padding: 5px 12px 3px; }
.dot { width: 9px; height: 9px; border-radius: 2px; background: var(--muted); box-shadow: 1px 1px 0 rgba(0,0,0,.5); flex: none; }
.dot.on, .dot.live { background: var(--grn); }
.dot.off { background: var(--red); }

/* ---------------- layout + glass windows ---------------- */

.wrap { max-width: 1180px; margin: 0 auto; padding: 26px 20px 10px; position: relative; z-index: 2; display: flex; flex-direction: column; gap: 22px; }

.window {
  border-radius: 8px; overflow: hidden;
  background: linear-gradient(165deg, var(--glass-strong), var(--glass) 55%, rgba(140,190,235,.06));
  backdrop-filter: blur(16px) saturate(155%);
  border: 1px solid var(--glass-line);
  box-shadow: var(--bevel), var(--win-shadow);
}
.window-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px 8px 13px;
  background: linear-gradient(90deg, rgba(0,0,128,.88), rgba(16,110,200,.72) 60%, rgba(56,182,255,.55));
  border-bottom: 1px solid rgba(255,255,255,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.window-title { font-family: var(--px); font-size: 9.5px; color: #fff; text-shadow: 1px 1px 0 rgba(0,0,0,.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-btns { display: inline-flex; gap: 4px; flex: none; }
.win-btns i {
  font-style: normal; font-size: 10px; line-height: 1; color: #06283f;
  width: 19px; height: 19px; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(185,215,245,.75));
  border-radius: 3px; border: 1px solid rgba(255,255,255,.8);
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 rgba(0,0,0,.35), 1px 1px 0 rgba(0,0,0,.3);
}
.window-body { padding: 20px 22px 22px; }

.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.panel-head h2, .subhead {
  font-family: var(--px); font-weight: 400; color: #fff; margin: 0;
  text-shadow: 2px 2px 0 rgba(0,10,40,.55);
}
.panel-head h2 { font-size: 12.5px; }
.subhead { font-size: 10px; margin: 20px 0 10px; color: var(--gold); }
.panel-note { font-size: 12.5px; color: var(--muted); }

.banner {
  border-radius: 8px; padding: 14px 18px; font-size: 13.5px; color: #fff8d6;
  background: linear-gradient(165deg, rgba(255,216,61,.28), rgba(255,160,40,.14));
  border: 1px solid rgba(255,216,61,.65); box-shadow: var(--bevel), var(--win-shadow);
  backdrop-filter: blur(12px);
}
.banner strong { font-family: var(--px); font-size: 9.5px; display: block; margin-bottom: 6px; color: var(--gold); text-shadow: 1px 1px 0 rgba(0,0,0,.6); }

/* ---------------- hero ---------------- */

.hero .window-body { display: flex; flex-direction: column; gap: 6px; }
.hero-label { font-family: var(--px); font-size: 9px; color: var(--gold); text-shadow: 1px 1px 0 rgba(0,0,0,.6); }
.hero-value {
  font-size: 76px; line-height: .95; color: #fff; margin-top: 6px;
  text-shadow: 3px 3px 0 rgba(0,30,80,.55), 0 0 34px rgba(70,224,70,.35);
}
.hero-sub { color: var(--ink-dim); font-size: 13.5px; }
.press-start {
  margin-top: 12px; font-family: var(--px); font-size: 9px; color: var(--grn);
  text-shadow: 1px 1px 0 rgba(0,0,0,.65);
  animation: pxblink 1.15s steps(1) infinite;
}
@keyframes pxblink { 0%, 62% { opacity: 1; } 63%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .press-start { animation: none; } }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.hero-stat {
  padding: 11px 14px 9px; border-radius: 6px;
  background: rgba(4, 22, 40, .38); border: 1px solid rgba(255,255,255,.22);
  box-shadow: inset 1px 1px 0 rgba(0,0,0,.4), inset -1px -1px 0 rgba(255,255,255,.14);
}
.hero-stat-value { font-size: 31px; line-height: 1; color: #fff; }
.hero-stat-label { font-family: var(--px); font-size: 7px; color: var(--muted); margin-top: 6px; }
.hero-chart { width: 100%; height: 108px; display: block; margin-top: 10px; }

/* ---------------- algo cards (cartridges) ---------------- */

.algo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.algo-card {
  border-radius: 8px; padding: 18px 18px 15px; position: relative; overflow: hidden;
  background: linear-gradient(170deg, var(--glass-strong), var(--glass) 60%, rgba(140,190,235,.05));
  backdrop-filter: blur(16px) saturate(155%);
  border: 1px solid var(--glass-line);
  box-shadow: var(--bevel), var(--win-shadow);
}
.algo-card::before { /* cartridge colour spine */
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 7px;
  background: var(--muted);
}
.algo-card[data-algo="sha256"]::before { background: var(--red); }
.algo-card[data-algo="yespower"]::before { background: var(--grn); }
.algo-card[data-algo="ethash"]::before { background: var(--blu); }
.algo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.algo-name { font-family: var(--px); font-size: 13px; color: #fff; text-shadow: 2px 2px 0 rgba(0,10,40,.55); }
.algo-kind {
  font-family: var(--px); font-size: 8px; color: #101418; padding: 5px 7px 4px; border-radius: 3px;
  background: var(--gold); box-shadow: 2px 2px 0 rgba(0,0,0,.45);
}
.algo-card[data-algo="sha256"] .algo-kind { background: var(--red); color: #fff; }
.algo-card[data-algo="yespower"] .algo-kind { background: var(--grn); }
.algo-card[data-algo="ethash"] .algo-kind { background: var(--blu); color: #fff; }
.algo-hashrate { font-size: 43px; line-height: 1.05; color: #fff; margin-top: 10px; text-shadow: 2px 2px 0 rgba(0,20,60,.5); }
.algo-hashrate .unit { font-size: 21px; color: var(--gold); margin-left: 6px; }
.algo-spark { width: 100%; height: 40px; display: block; margin: 6px 0 10px; }
.algo-rows { display: flex; flex-direction: column; }
.algo-row {
  display: flex; justify-content: space-between; gap: 12px; padding: 6px 0;
  border-top: 1px dashed rgba(255,255,255,.22); font-size: 13px;
}
.algo-row .k { color: var(--muted); }
.algo-row .v { color: var(--ink); text-align: right; }
.badge {
  font-family: var(--px); font-size: 7.5px; padding: 4px 6px 3px; border-radius: 3px;
  background: rgba(255,255,255,.18); color: #fff; box-shadow: 1px 1px 0 rgba(0,0,0,.4);
  text-transform: uppercase;
}
.badge.group { background: var(--gold); color: #161616; }
.connect-row {
  display: flex; align-items: center; gap: 9px; margin-top: 12px;
  background: var(--term); border-radius: 5px; padding: 8px 8px 8px 12px;
  box-shadow: inset 1px 1px 0 rgba(0,0,0,.65), inset -1px -1px 0 rgba(255,255,255,.14);
}
.connect-url { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--term-ink); font-size: 17px; line-height: 1; }
.copy-btn, .btn-gold {
  font-family: var(--px); font-size: 8.5px; cursor: pointer; color: #161616;
  background: linear-gradient(180deg, #ffe873, var(--gold) 55%, var(--gold-deep));
  border: 1px solid #fff2b0; border-radius: 4px; padding: 9px 11px 8px;
  box-shadow: 3px 3px 0 rgba(0,0,0,.55), inset 1px 1px 0 rgba(255,255,255,.85);
  transition: transform .05s ease, box-shadow .05s ease;
}
.copy-btn:active, .btn-gold:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(0,0,0,.55); }
.copy-btn.copied { background: linear-gradient(180deg, #8fff8f, var(--grn) 60%, #2da32d); }

/* ---------------- columns, tables, feeds ---------------- */

.two-col { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; align-items: start; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  font-family: var(--px); font-size: 7.5px; font-weight: 400; color: var(--muted);
  text-align: left; padding: 7px 9px; border-bottom: 2px solid rgba(255,255,255,.25); white-space: nowrap;
}
.table td { padding: 8px 9px; border-bottom: 1px dashed rgba(255,255,255,.16); color: var(--ink); vertical-align: middle; }
.table .num { text-align: right; }
.table td.num { font-family: var(--term-font); font-size: 17px; line-height: 1; }
.table .dot { display: inline-block; }

.blocks-list, .payouts-list, .breakdown-list { display: flex; flex-direction: column; gap: 9px; }
.block-row, .payout-row {
  display: flex; align-items: center; justify-content: space-between; gap: 13px;
  padding: 10px 13px; border-radius: 6px;
  background: rgba(4, 22, 40, .34); border: 1px solid rgba(255,255,255,.20);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.10);
}
.block-height { font-size: 23px; line-height: 1; color: var(--gold); }
.block-hash { font-size: 11.5px; color: var(--muted); word-break: break-all; }
.block-meta { font-size: 12px; color: var(--ink-dim); }
.block-right { text-align: right; flex: none; }
.block-reward { font-family: var(--term-font); font-size: 20px; line-height: 1; color: #fff; }
.block-status, .payout-meta { font-size: 11.5px; color: var(--muted); }
.block-status.settled, .block-status.confirmed { color: var(--grn); }
.empty {
  padding: 17px; text-align: center; color: var(--ink-dim); font-size: 13.5px;
  border: 1.5px dashed rgba(255,255,255,.30); border-radius: 6px; background: rgba(4,22,40,.25);
}

/* ---------------- fairness ---------------- */

.fairness-lede { color: var(--ink-dim); font-size: 14px; margin: 0 0 16px; max-width: 72ch; }
.verdict {
  font-family: var(--px); font-size: 8.5px; padding: 7px 9px 6px; border-radius: 3px;
  background: rgba(255,255,255,.16); color: #fff; box-shadow: 2px 2px 0 rgba(0,0,0,.45); white-space: nowrap;
}
.verdict.ok { background: var(--grn); color: #0a240a; }
.verdict.bad { background: var(--red); color: #2b0505; }
.fairness-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fair-stat {
  padding: 11px 14px 9px; border-radius: 6px;
  background: rgba(4, 22, 40, .38); border: 1px solid rgba(255,255,255,.22);
  box-shadow: inset 1px 1px 0 rgba(0,0,0,.4), inset -1px -1px 0 rgba(255,255,255,.14);
}
.fair-stat .k { font-family: var(--px); font-size: 7px; color: var(--muted); display: block; }
.fair-stat .v { font-family: var(--term-font); font-size: 26px; line-height: 1.15; color: #fff; display: block; }
.equation {
  margin-top: 14px; padding: 13px 16px 10px; border-radius: 6px; font-size: 20px; line-height: 1.25;
  background: var(--term); color: var(--term-ink);
  box-shadow: inset 1px 1px 0 rgba(0,0,0,.7), inset -1px -1px 0 rgba(255,255,255,.13);
  overflow-x: auto; white-space: nowrap;
}
.breakdown-row {
  border-radius: 6px; overflow: hidden;
  background: rgba(4, 22, 40, .30); border: 1px solid rgba(255,255,255,.20);
}
.breakdown-row .panel-head { margin: 0; padding: 11px 14px; cursor: pointer; align-items: center; }
.breakdown-row .panel-head h2 { font-size: 10px; }
.breakdown-body { padding: 4px 14px 13px; }
.breakdown-body .table td:first-child { word-break: break-all; }

/* ---------------- payouts / lookup / miner ---------------- */

.payout-total { font-family: var(--term-font); font-size: 22px; line-height: 1; color: #fff; }
.payout-right { text-align: right; flex: none; }
.lookup { display: flex; gap: 11px; }
.lookup-input {
  flex: 1; min-width: 0; padding: 9px 14px 6px; border-radius: 5px; font-size: 20px; line-height: 1.2;
  background: var(--term); color: var(--term-ink); border: 1px solid rgba(255,255,255,.25);
  box-shadow: inset 2px 2px 0 rgba(0,0,0,.65); outline: none;
}
.lookup-input:focus { border-color: var(--gold); }
.lookup-input::placeholder { color: rgba(89,255,143,.45); }
.miner-card {
  margin-top: 15px; padding: 15px 17px; border-radius: 6px;
  background: rgba(4, 22, 40, .38); border: 1px solid rgba(255,255,255,.22);
}
.miner-addr { word-break: break-all; color: var(--gold); font-size: 19px; }
.miner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 11px; }
.lookup-error { margin-top: 13px; color: #ffb3b3; font-size: 13.5px; }

/* ---------------- footer + taskbar ---------------- */

.footer { text-align: center; padding: 8px 0 4px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.footer-brand { font-family: var(--px); font-size: 10px; color: #fff; text-shadow: 2px 2px 0 rgba(0,10,40,.6); }
.footer-note { color: var(--ink-dim); font-size: 12.5px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; font-size: 16px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }

.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: flex; align-items: center; gap: 12px; padding: 7px 12px;
  background: linear-gradient(180deg, rgba(228,243,255,.55), rgba(165,200,235,.42));
  backdrop-filter: blur(18px) saturate(150%);
  border-top: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 -1px 0 rgba(255,255,255,.4), 0 -12px 30px rgba(0,0,0,.30);
  color: #0b2a44;
}
.start-btn {
  font-family: var(--px); font-size: 10px; color: #fff; padding: 10px 14px 9px; border-radius: 5px;
  background: linear-gradient(180deg, #69d669, #2da32d 60%, #1e7a1e);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.8), inset -1px -1px 0 rgba(0,0,0,.35), 2px 2px 0 rgba(0,0,0,.35);
  text-shadow: 1px 1px 0 rgba(0,0,0,.45); flex: none;
}
.task-item {
  font-size: 12.5px; font-weight: 700; padding: 8px 13px; border-radius: 5px; flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: rgba(255,255,255,.38); border: 1px solid rgba(255,255,255,.65);
  box-shadow: inset 1px 1px 0 rgba(0,0,0,.18);
}
.task-tray {
  display: inline-flex; align-items: center; gap: 12px; padding: 7px 13px 5px; border-radius: 5px; flex: none;
  background: rgba(10,40,70,.16); border: 1px solid rgba(255,255,255,.5);
  box-shadow: inset 1px 1px 0 rgba(0,0,0,.22);
}
.tray-coin { font-family: var(--px); font-size: 8px; color: #0d5c0d; }
.task-tray .mono { font-size: 19px; line-height: 1; }

/* ---------------- responsive ---------------- */

@media (max-width: 980px) {
  .algo-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .fairness-stats { grid-template-columns: repeat(2, 1fr); }
  .miner-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero-value { font-size: 54px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .brand-name { font-size: 11px; }
  .brand-sub { display: none; }
  .window-body { padding: 16px 15px 18px; }
  .wrap { padding: 18px 12px 6px; }
  .task-item { display: none; }
  .lookup { flex-direction: column; }
}

/* ============================================================
   OS LAYER — boot, windows, taskbar, toasts, mode gating,
   and the Discord-style Start hub.
   ============================================================ */

/* mode gating: one page, one direction (solo XOR group) */
body.mode-solo [data-mode="group"] { display: none !important; }
body.mode-group [data-mode="solo"] { display: none !important; }
.solo-note { font-size: 14.5px; color: var(--ink-dim); margin: 0; max-width: 76ch; }
.solo-note strong { color: var(--gold); }

/* logo placements */
.brand-logo { width: 40px; height: 42px; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.4)); }
.wall-logo {
  position: fixed; right: -70px; top: 16%; width: 430px; z-index: 0; pointer-events: none;
  opacity: .08; transform: rotate(10deg);
  animation: wallfloat 26s ease-in-out infinite alternate;
}
@keyframes wallfloat { from { transform: rotate(6deg) translateY(-14px); } to { transform: rotate(14deg) translateY(18px); } }
.about-logo { width: 84px; height: 88px; }
.hub-logo { width: 42px; height: 44px; border-radius: 50%; }

/* ---------------- boot + shutdown + saver ---------------- */
#bios {
  position: fixed; inset: 0; z-index: 200; background: #000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .4s ease;
}
#bios.bios-out { opacity: 0; pointer-events: none; }
.bios-inner { width: min(680px, 92vw); }
#bios-text {
  color: #33ff66; font-family: var(--term-font); font-size: 21px; line-height: 1.35;
  margin: 0 0 18px; min-height: 260px; white-space: pre-wrap;
  text-shadow: 0 0 8px rgba(51,255,102,.55);
}
.bios-bar { height: 18px; border: 2px solid #33ff66; padding: 2px; }
#bios-fill { height: 100%; width: 0%; background: repeating-linear-gradient(90deg, #33ff66 0 10px, transparent 10px 13px); transition: width .12s linear; }
.bios-skip { color: #1d7a38; font-family: var(--px); font-size: 8px; margin-top: 14px; animation: pxblink 1.1s steps(1) infinite; }
#shutdown {
  position: fixed; inset: 0; z-index: 190; background: #000; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
}
.shutdown-text { color: #ff9d2e; font-family: var(--term-font); font-size: 34px; text-align: center; line-height: 1.3; }
.shutdown-sub { color: #7a4a12; font-family: var(--px); font-size: 8.5px; animation: pxblink 1.2s steps(1) infinite; }
#saver { position: fixed; inset: 0; z-index: 180; background: #020208; }

/* ---------------- window behaviour states ---------------- */
.window { position: relative; }
.window:not(.focused) .window-bar { background: linear-gradient(90deg, rgba(88,96,118,.88), rgba(120,134,160,.7) 60%, rgba(160,175,200,.55)); }
.window.focused { box-shadow: var(--bevel), 0 26px 62px rgba(0,0,0,.58), 0 3px 0 rgba(0,0,0,.25); }
.window.dragging { user-select: none; }
.window.dragging .window-bar { cursor: grabbing; }
.window .window-bar { cursor: grab; }
.window.minned { display: none !important; }
.window.maxed {
  position: fixed; inset: 54px 14px 58px; z-index: 90 !important; overflow-y: auto;
}
.win-btns i { cursor: pointer; }
.win-btns i:hover { filter: brightness(1.12); }
.win-status {
  display: flex; gap: 8px; padding: 6px 10px;
  border-top: 1px solid rgba(255,255,255,.28);
  background: rgba(6, 26, 46, .35);
  font-family: var(--px); font-size: 7.5px; color: var(--ink-dim);
}
.ws-pane { padding: 4px 8px 3px; border: 1px solid rgba(255,255,255,.20); border-radius: 3px; box-shadow: inset 1px 1px 0 rgba(0,0,0,.3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-pane.grow { flex: 1; }
.about-body { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.about-name { font-family: var(--px); font-size: 13px; color: #fff; margin: 6px 0 0; text-shadow: 2px 2px 0 rgba(0,10,40,.55); }
.about-line { margin: 0; font-size: 13.5px; color: var(--ink); max-width: 52ch; }
.about-line.dim { color: var(--ink-dim); }
#win-about { max-width: 560px; margin: 0 auto; width: 100%; }

/* ---------------- taskbar buttons ---------------- */
#task-btns { display: flex; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
#task-btns::-webkit-scrollbar { display: none; }
.task-btn {
  font-family: var(--body-font); font-size: 12px; font-weight: 700; color: #0b2a44;
  padding: 8px 12px; border-radius: 5px; cursor: pointer; white-space: nowrap;
  background: rgba(255,255,255,.30); border: 1px solid rgba(255,255,255,.55);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.5);
}
.task-btn.active { background: rgba(255,255,255,.55); box-shadow: inset 1px 1px 0 rgba(0,0,0,.25); }
.tray-snd { background: none; border: none; font-size: 15px; cursor: pointer; padding: 0; line-height: 1; }
.start-btn { cursor: pointer; }

/* ---------------- toasts ---------------- */
#toasts { position: fixed; right: 16px; bottom: 62px; z-index: 120; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 250px; max-width: 330px; padding: 12px 15px; border-radius: 7px;
  background: linear-gradient(165deg, rgba(20,40,20,.82), rgba(8,26,12,.78));
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(120,255,150,.55); box-shadow: var(--bevel), 0 16px 40px rgba(0,0,0,.5);
  color: #d9ffe0; transform: translateX(120%); transition: transform .45s cubic-bezier(.2,1.4,.4,1);
}
.toast.show { transform: translateX(0); }
.toast b { display: block; font-family: var(--px); font-size: 9.5px; color: var(--grn); margin-bottom: 6px; text-shadow: 1px 1px 0 rgba(0,0,0,.6); }
.toast span { font-size: 13px; }

/* ---------------- Start hub (Discord-style) ---------------- */
#start-hub {
  position: fixed; left: 12px; bottom: 56px; z-index: 110;
  width: min(880px, calc(100vw - 24px)); height: min(560px, calc(100vh - 130px));
  display: flex; border-radius: 12px; overflow: hidden;
  background: linear-gradient(160deg, rgba(24,28,44,.88), rgba(14,17,30,.92));
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: var(--bevel), 0 30px 70px rgba(0,0,0,.6);
  color: #e6ebf5; font-size: 14px;
}
.hub-rail {
  width: 74px; flex: none; padding: 13px 0; display: flex; flex-direction: column; align-items: center; gap: 9px;
  background: rgba(0,0,0,.35); border-right: 1px solid rgba(255,255,255,.10); overflow-y: auto;
}
.hub-rail-label { font-family: var(--px); font-size: 7px; color: var(--gold); margin-bottom: 4px; }
.hub-rail button {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.07); font-size: 20px; cursor: pointer; color: #fff;
  transition: border-radius .15s ease, background .15s ease; flex: none;
}
.hub-rail button:hover { border-radius: 14px; background: rgba(88,101,242,.55); }
.hub-rail-sep { width: 32px; border-top: 2px solid rgba(255,255,255,.14); margin: 3px 0; }
.hub-channels {
  width: 196px; flex: none; padding: 14px 10px; display: flex; flex-direction: column; gap: 3px;
  background: rgba(255,255,255,.035); border-right: 1px solid rgba(255,255,255,.08);
}
.hub-ch-head { font-family: var(--px); font-size: 8.5px; color: #9aa7bd; padding: 2px 8px 10px; }
.hub-ch {
  text-align: left; font-family: var(--body-font); font-size: 14.5px; color: #aeb9cc;
  background: none; border: none; border-radius: 6px; padding: 7px 9px; cursor: pointer;
}
.hub-ch:hover { background: rgba(255,255,255,.06); color: #fff; }
.hub-ch.active { background: rgba(255,255,255,.10); color: #fff; }
.hub-ch-foot { margin-top: auto; padding: 8px; font-size: 15px; color: #7f8ca3; }
.hub-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.hub-head {
  display: flex; align-items: center; gap: 7px; padding: 12px 15px;
  border-bottom: 1px solid rgba(255,255,255,.10); font-weight: 700; color: #fff;
}
.hub-hash { color: #7f8ca3; font-size: 19px; }
.hub-topic { font-weight: 400; font-size: 12.5px; color: #8b98b0; border-left: 1px solid rgba(255,255,255,.14); padding-left: 9px; margin-left: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-close { margin-left: auto; background: none; border: none; color: #8b98b0; font-size: 14px; cursor: pointer; }
.hub-close:hover { color: #fff; }
.hub-messages { flex: 1; overflow-y: auto; padding: 15px 17px; display: flex; flex-direction: column; gap: 15px; }
.hmsg { display: flex; gap: 12px; }
.havatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-family: var(--px); font-size: 13px; color: rgba(0,0,0,.72);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.5), 2px 2px 0 rgba(0,0,0,.35);
}
.hmain { min-width: 0; }
.hhead { display: flex; align-items: baseline; gap: 8px; font-weight: 700; font-size: 14.5px; }
.htag { font-family: var(--px); font-size: 6.5px; background: rgba(88,101,242,.85); color: #fff; padding: 3px 4px 2px; border-radius: 3px; }
.htime { font-size: 11px; color: #7f8ca3; font-weight: 400; }
.hline { color: #dbe3f0; font-size: 14px; line-height: 1.45; word-break: break-word; }
.hempty { color: #8b98b0; text-align: center; padding: 26px 0; }
.hub-inputrow { display: flex; gap: 9px; padding: 12px 14px 14px; }
#hub-input {
  flex: 1; min-width: 0; padding: 11px 13px; border-radius: 8px; font-size: 14px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); color: #fff; outline: none;
}
#hub-input:focus { border-color: rgba(255,216,61,.7); }
#hub-input::placeholder { color: #6d7a90; }
.hub-members { width: 186px; flex: none; padding: 14px 12px; overflow-y: auto; background: rgba(255,255,255,.028); border-left: 1px solid rgba(255,255,255,.08); }
.hub-mem-head, .hmem-group { font-family: var(--px); font-size: 7.5px; color: #9aa7bd; margin: 4px 0 9px; }
.hmem-group { margin-top: 15px; }
.hmem { display: flex; align-items: center; gap: 8px; padding: 4px 5px; border-radius: 6px; }
.hmem:hover { background: rgba(255,255,255,.05); }
.hmem-av { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: rgba(0,0,0,.7); flex: none; }
.hmem-name { font-size: 13px; color: #cdd7e8; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hmem-hr { font-family: var(--term-font); font-size: 14px; color: #7f8ca3; }
.dicon { cursor: pointer; }
@media (max-width: 760px) {
  .hub-members, .hub-channels { display: none; }
  .wall-logo { width: 260px; right: -50px; }
}

/* ============================================================
   FLASH + LIVE BOTS — badges, sheen, bursts, glow.
   ============================================================ */
.hub-ch { display: flex; align-items: center; }
.hub-badge {
  margin-left: auto; background: var(--red); color: #fff; font-family: var(--px); font-size: 7px;
  min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px;
  box-shadow: 0 0 10px rgba(255,82,82,.8); animation: badpop .3s cubic-bezier(.2,1.6,.4,1);
}
@keyframes badpop { from { transform: scale(.4); } to { transform: scale(1); } }
.start-btn { position: relative; }
#start-dot {
  position: absolute; top: -5px; right: -5px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--red); border: 2px solid #fff;
  box-shadow: 0 0 12px rgba(255,82,82,.95); animation: dotpulse 1s ease-in-out infinite;
}
@keyframes dotpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
.hline-link { color: var(--blu); text-decoration: none; font-size: 12.5px; }
.hline-link:hover { text-decoration: underline; }

/* slow light sweep across every glass window */
.window::after {
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(112deg, transparent 42%, rgba(255,255,255,.13) 50%, transparent 58%);
  transform: translateX(-110%);
  animation: sheen 9s ease-in-out infinite;
}
.algo-card::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(112deg, transparent 42%, rgba(255,255,255,.10) 50%, transparent 58%);
  transform: translateX(-110%);
  animation: sheen 11s ease-in-out infinite;
}
@keyframes sheen { 0%, 72% { transform: translateX(-110%); } 88%, 100% { transform: translateX(110%); } }
@media (prefers-reduced-motion: reduce) { .window::after, .algo-card::after { animation: none; } }

/* new-block celebration */
#edgeflash { position: fixed; inset: 0; z-index: 95; pointer-events: none; opacity: 0; }
#edgeflash.flash { animation: edgeflash 1.1s ease-out; }
@keyframes edgeflash {
  0% { opacity: 1; box-shadow: inset 0 0 120px rgba(255,216,61,.85); }
  100% { opacity: 0; box-shadow: inset 0 0 0 rgba(255,216,61,0); }
}
.coin-layer { position: fixed; inset: 0; z-index: 96; pointer-events: none; overflow: hidden; }
.coin-bit {
  position: absolute; top: -60px; border-radius: 50%;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.45));
  animation-name: coinfall; animation-timing-function: cubic-bezier(.3,.6,.6,1); animation-fill-mode: forwards;
}
@keyframes coinfall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateY(108vh) rotate(660deg); opacity: 0; }
}

/* hub gets a living border while events are unread */
#start-hub { animation: hubglow 5s ease-in-out infinite alternate; }
@keyframes hubglow {
  from { box-shadow: var(--bevel), 0 30px 70px rgba(0,0,0,.6), 0 0 0 rgba(56,182,255,0); }
  to { box-shadow: var(--bevel), 0 30px 70px rgba(0,0,0,.6), 0 0 34px rgba(56,182,255,.28); }
}
.hero-value { animation: heropulse 4.5s ease-in-out infinite; }
@keyframes heropulse {
  0%, 100% { text-shadow: 3px 3px 0 rgba(0,30,80,.55), 0 0 26px rgba(70,224,70,.25); }
  50% { text-shadow: 3px 3px 0 rgba(0,30,80,.55), 0 0 46px rgba(70,224,70,.5); }
}

/* ==== MORE BRANDING (Mark's ask) ================================== */
::selection { background: #ffd83d; color: #161616; }
body::-webkit-scrollbar, .hub-messages::-webkit-scrollbar, .window-body::-webkit-scrollbar { width: 12px; height: 12px; }
body::-webkit-scrollbar-track, .hub-messages::-webkit-scrollbar-track, .window-body::-webkit-scrollbar-track { background: #0b1026; }
body::-webkit-scrollbar-thumb, .hub-messages::-webkit-scrollbar-thumb, .window-body::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #ffe98a, #caa437); border: 2px solid #0b1026; border-radius: 6px; }

.brand-ticker {
  position: fixed; top: 0; left: 0; right: 0; height: 22px; z-index: 25;
  overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, rgba(11,16,38,.95), rgba(11,16,38,.82));
  border-bottom: 2px solid rgba(255,216,61,.75);
}
.brand-ticker-track {
  display: flex; width: max-content; height: 22px; align-items: center;
  animation: brandScroll 36s linear infinite;
}
.brand-ticker-track span {
  font-family: 'Press Start 2P', monospace; font-size: 8px; letter-spacing: 2px;
  color: #ffd83d; white-space: nowrap; text-shadow: 0 0 8px rgba(255,216,61,.45);
}
@keyframes brandScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.wall-word {
  position: fixed; left: 50%; top: 55%; transform: translateX(-50%);
  text-align: center; pointer-events: none; z-index: 0; opacity: .9;
}
.wall-word-name {
  font-family: 'Press Start 2P', monospace; font-size: clamp(17px, 3.6vw, 32px);
  letter-spacing: 7px; color: rgba(255,216,61,.34);
  text-shadow: 0 2px 0 rgba(0,0,0,.35), 0 0 26px rgba(255,216,61,.16);
}
.wall-word-sub {
  margin-top: 10px; font-family: 'VT323', monospace; font-size: clamp(14px, 1.6vw, 20px);
  letter-spacing: 6px; color: rgba(159,227,171,.4);
}

.win-coin { width: 15px; height: 15px; margin-right: 7px; flex: 0 0 auto; filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }

.tb-brand {
  display: inline-flex; align-items: center; gap: 7px; padding: 0 12px 0 4px;
  font-family: 'Press Start 2P', monospace; font-size: 8px; letter-spacing: 1px; color: #ffd83d;
  border-right: 2px ridge rgba(255,255,255,.22); text-shadow: 0 0 7px rgba(255,216,61,.4);
}
.tb-brand img { width: 19px; height: 20px; }
@media (max-width: 760px) { .tb-brand { display: none; } }

.shutdown-logo { display: block; width: 96px; height: auto; margin: 0 auto 16px; filter: drop-shadow(0 0 22px rgba(255,216,61,.35)); }
.about-line.gold { color: #ffd83d; }
.dicon-label { text-shadow: 0 1px 0 #000, 0 0 9px rgba(255,216,61,.35); }

@media (prefers-reduced-motion: reduce) {
  .brand-ticker-track { animation: none; }
}

/* ==== NETWORK VITALS ============================================== */
.hero-net { margin-top: 7px; font-size: 15px; letter-spacing: 1px; color: #9fe3ab; min-height: 18px; }
.net-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.net-cell { background: rgba(11,16,38,.45); border: 1px solid rgba(255,255,255,.14); border-radius: 6px; padding: 12px 10px; text-align: center; }
.net-num { font-family: 'Press Start 2P', monospace; font-size: clamp(13px, 1.9vw, 20px); color: #ffd83d; text-shadow: 0 0 12px rgba(255,216,61,.35); }
.net-cap { margin-top: 7px; font-family: 'VT323', monospace; font-size: 14px; letter-spacing: 2px; color: #aebfe3; }
.net-row { display: flex; gap: 16px; align-items: baseline; padding: 8px 10px; border-left: 4px solid #888; background: rgba(255,255,255,.045); border-radius: 0 5px 5px 0; margin-bottom: 7px; flex-wrap: wrap; }
.net-row-name { font-family: 'Press Start 2P', monospace; font-size: 9px; min-width: 92px; }
.net-row-val { font-family: 'VT323', monospace; font-size: 17px; color: #e8eefc; letter-spacing: .5px; }
@media (max-width: 700px) { .net-big { grid-template-columns: 1fr; } }
