:root {
  --bg: #04060c;
  --panel: #0a0f1c;
  --panel2: #0e1526;
  --line: rgba(255, 255, 255, .09);
  --line2: rgba(255, 255, 255, .16);
  --text: #f4f7ff;
  --muted: #8f9ab3;
  --accent: #2f7bff;
  --accent2: #0a5ce8;
  --good: #57e26c;
  --warn: #ffb547;
  --bad: #ff6464;
  --r: 14px;
  --xp: linear-gradient(180deg, #3d8bff 0%, #1667f0 9%, #0a5ce8 45%, #0b56d8 85%, #0848c4 100%);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --display: "Bricolage Grotesque", "Inter", sans-serif;
  --xpfont: Tahoma, Verdana, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); font: 16px/1.55 Inter, system-ui, sans-serif; overflow-x: hidden;
  background:
    radial-gradient(1200px 600px at 75% -10%, rgba(47, 123, 255, .22), transparent 60%),
    radial-gradient(900px 500px at 0% 30%, rgba(10, 92, 232, .10), transparent 60%),
    var(--bg);
}
/* night-time hill, the one everybody's desktop had */
body::before {
  content: ""; position: absolute; left: 0; right: 0; top: 380px; height: 520px; z-index: -1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 520' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%2310331f'/%3E%3Cstop offset='1' stop-color='%2304060c'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 260 C 300 120 620 110 900 190 S 1300 260 1440 210 V520 H0Z' fill='url(%23g)'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  opacity: .75;
}
a { color: inherit; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.label { font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.accent { color: var(--accent); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font: 600 15px/1 Inter, sans-serif; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .2s, border-color .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 30px rgba(47, 123, 255, .35), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { background: #4b8dff; }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); }
.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn-xs { padding: 6px 10px; font-size: 12px; }
.btn-wide { width: 100%; }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; transform: none; }

/* nav: not fixed, Launch Tech's CA bar sits above it */
.nav { display: flex; align-items: center; gap: 18px; padding: 14px clamp(16px, 4vw, 48px); max-width: 1440px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 18px/1 var(--display); }
.brand-mark { width: 36px; height: 36px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14px; padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.06); }

/* hero */
.hero { max-width: 1440px; margin: 0 auto; padding: 18px clamp(16px, 4vw, 48px) 26px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-copy { container-type: inline-size; min-width: 0; }
.kicker { font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; margin: 0 0 18px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; flex: none; }
.dot.live { background: var(--good); box-shadow: 0 0 0 0 rgba(87, 226, 108, .6); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(87,226,108,.55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(87,226,108,0); } }
.wordmark { font: 800 min(17.5cqi, 150px)/.86 var(--display); letter-spacing: -.045em; margin: 0; display: flex; flex-direction: column; text-transform: lowercase; }
.wordmark .accent { background: linear-gradient(180deg, #6aa6ff, var(--accent) 55%, #1557d6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ticker-tag { display: inline-block; margin: 18px 0 0; font: 600 14px/1 var(--mono); padding: 7px 11px; border: 1px solid var(--line2); border-radius: 8px; color: #cfe0ff; background: rgba(47,123,255,.1); }
.hook { font: 700 clamp(21px, 2.3vw, 28px)/1.2 var(--display); margin: 18px 0 8px; letter-spacing: -.01em; max-width: 30ch; }
.sub { color: var(--muted); margin: 0 0 24px; max-width: 52ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: center; }
.hero-mascot { width: min(100%, 340px); margin: 0 auto; grid-row: span 1; }
.tiles { display: grid; grid-template-columns: 1fr; gap: 10px; }
.tile { background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.tile b { display: block; font: 700 26px/1.05 var(--mono); }
.tile span { color: var(--muted); font-size: 12.5px; }
.tile.good b { color: var(--good); }
.tile.bad b { color: var(--warn); }
.tiles-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; text-align: right; }

/* ticker */
.ticker { border-block: 1px solid var(--line); background: rgba(10, 15, 28, .7); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 34px; padding: 11px 0; animation: tick 60s linear infinite; font: 500 13px/1 var(--mono); }
.ticker-track span { color: var(--muted); }
.ticker-track b { color: var(--text); font-weight: 600; }
.ticker-track .g { color: var(--good); }
.ticker-track .w { color: var(--warn); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* the IE window */
.wall-wrap { max-width: 1440px; margin: 0 auto; padding: 34px clamp(10px, 3vw, 40px) 20px; scroll-margin-top: 10px; }
.ie { border-radius: 10px 10px 6px 6px; overflow: hidden; border: 1px solid #0b3fa8; background: #0a0f1c; box-shadow: 0 40px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(47,123,255,.15); }
.ie-title, .xp-title, .xp-dialog-title { background: var(--xp); color: #fff; display: flex; align-items: center; gap: 8px; font: 700 14px/1 var(--xpfont); text-shadow: 1px 1px 0 rgba(0,0,0,.35); }
.ie-title { padding: 8px 10px; }
.ie-ico { width: 18px; height: 18px; border-radius: 3px; }
.ie-title-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xp-btns { display: flex; gap: 3px; }
.xp-btns i { width: 21px; height: 21px; border-radius: 3px; border: 1px solid rgba(255,255,255,.75); background: linear-gradient(180deg, #4c95ff, #1a63e8); position: relative; display: block; }
.xp-btns i.cls { background: linear-gradient(180deg, #f08a6c, #d4401c); }
.xp-btns i::after { content: ""; position: absolute; inset: 0; margin: auto; }
.xp-btns i.min::after { width: 8px; height: 3px; background: #fff; top: 10px; }
.xp-btns i.max::after { width: 9px; height: 8px; border: 2px solid #fff; border-top-width: 3px; }
.xp-btns i.cls::after { content: "×"; color: #fff; font: 700 17px/19px var(--xpfont); text-align: center; }
.ie-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; background: #0d1424; border-bottom: 1px solid var(--line); }
.tb-btn { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.05); border: 1px solid var(--line2); color: var(--text); border-radius: 8px; padding: 8px 12px; font: 600 13px/1 Inter, sans-serif; cursor: pointer; }
.tb-btn[aria-pressed="true"] .dot { background: var(--warn); animation: none; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 8px; overflow: hidden; }
.seg button { background: transparent; color: var(--muted); border: 0; padding: 8px 12px; font: 600 13px/1 Inter, sans-serif; cursor: pointer; }
.seg button.on { background: var(--accent); color: #fff; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; cursor: pointer; user-select: none; }
.chk input { accent-color: var(--accent); width: 16px; height: 16px; }
.tb-search { flex: 1 1 200px; min-width: 0; background: #070b15; border: 1px solid var(--line2); border-radius: 8px; color: var(--text); padding: 9px 12px; font: 13px Inter, sans-serif; }
.tb-search:focus, #amtIn:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.ie-address { display: flex; align-items: center; gap: 10px; padding: 7px 12px; background: #0b111f; border-bottom: 1px solid var(--line); font: 12px var(--xpfont); }
.addr-lbl { color: var(--muted); }
.addr { flex: 1; min-width: 0; background: #060a13; border: 1px solid var(--line2); border-radius: 4px; padding: 5px 9px; font-family: var(--mono); color: #cfe0ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr-go { font: 600 11px var(--mono); color: var(--muted); white-space: nowrap; }
.addr-go.ok { color: var(--good); }

.desk { padding: 16px; min-height: 420px; background:
  radial-gradient(700px 300px at 50% 0%, rgba(47,123,255,.08), transparent 70%),
  repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 28px),
  #070b15; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.desk-empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.more-row { display: flex; justify-content: center; margin-top: 16px; }

/* one little XP window */
.win { background: #0c1220; border: 1px solid #0b3fa8; border-radius: 8px 8px 5px 5px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; box-shadow: 0 14px 40px rgba(0,0,0,.45); transition: transform .2s, box-shadow .2s, border-color .2s; }
.win.enter { animation: pop .45s cubic-bezier(.2,.9,.3,1.25); }
@keyframes pop { from { transform: scale(.85) translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.win:hover { transform: translateY(-3px); box-shadow: 0 22px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(47,123,255,.5); }
.xp-title { padding: 6px 6px 6px 8px; gap: 7px; font-size: 13px; }
.win-ico { width: 18px; height: 18px; border-radius: 4px; object-fit: cover; background: rgba(255,255,255,.2); flex: none; }
.win-ico.letter { display: grid; place-items: center; font: 700 10px var(--xpfont); }
.xp-title-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xp-ctrl { display: flex; gap: 3px; flex: none; }
.xc { width: 22px; height: 22px; border-radius: 3px; border: 1px solid rgba(255,255,255,.75); background: linear-gradient(180deg, #4c95ff, #1a63e8); color: #fff; font: 700 13px/1 var(--xpfont); display: grid; place-items: center; cursor: pointer; text-decoration: none; padding: 0; }
.xc:hover { filter: brightness(1.2); }
.xc-close { background: linear-gradient(180deg, #f08a6c, #d4401c); font-size: 16px; }
.win-addr { display: flex; align-items: center; gap: 8px; padding: 5px 8px; background: #0b111f; border-bottom: 1px solid var(--line); font: 11.5px var(--mono); color: #cfe0ff; }
.win-addr span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-addr em { font-style: normal; color: var(--muted); flex: none; }
.view { position: relative; height: 230px; overflow: hidden; background: #fff; cursor: zoom-in; }
.view img.shot, .bw-site img.shot { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; background: #fff; display: block; pointer-events: none; }
.card-view .snip { color: #33405a; font-size: 12px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.view .shield { position: absolute; inset: 0; z-index: 2; }
.view .loading { position: absolute; inset: 0; display: grid; place-items: center; background: #f3f5fa; color: #4a5672; font: 12px var(--xpfont); z-index: 1; transition: opacity .4s; }
.view .loading.gone { opacity: 0; pointer-events: none; }
.bar { width: 120px; height: 12px; border: 1px solid #7f9db9; border-radius: 3px; overflow: hidden; margin: 8px auto 0; background: #fff; }
.bar i { display: block; height: 100%; width: 40%; background: repeating-linear-gradient(90deg, #2fb34a 0 8px, transparent 8px 10px); animation: bar 1.2s linear infinite; }
@keyframes bar { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.card-view { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 18px; background: #eef2f9; color: #1b2433; font: 13px/1.45 var(--xpfont); }
.card-view .kind { font: 700 11px var(--xpfont); text-transform: uppercase; letter-spacing: .08em; color: #a33b16; }
.card-view b { font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-view .src { color: #4a5672; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 9px 9px 0; }
.chip { display: inline-flex; align-items: center; gap: 5px; font: 600 11px/1.25 var(--mono); padding: 4px 7px; border-radius: 6px; border: 1px solid var(--line2); color: #c9d2e6; background: rgba(255,255,255,.03); max-width: 100%; }
.chip.good { color: var(--good); border-color: rgba(87,226,108,.35); background: rgba(87,226,108,.07); }
.chip.warn { color: var(--warn); border-color: rgba(255,181,71,.35); background: rgba(255,181,71,.07); }
.chip.bad { color: var(--bad); border-color: rgba(255,100,100,.4); background: rgba(255,100,100,.08); }
.chip.wait { color: var(--muted); }
.win-foot { display: flex; align-items: center; gap: 10px; padding: 9px; margin-top: auto; }
.win-foot .num { font: 600 12px var(--mono); color: var(--muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-foot .num b { color: var(--text); }
.win-foot .num .up { color: var(--good); }
.win-foot .num .dn { color: var(--bad); }

/* taskbar */
.taskbar { position: relative; display: flex; align-items: center; gap: 8px; height: 40px; background: linear-gradient(180deg, #3168d5 0%, #2457c4 10%, #1f4fb8 50%, #1941a5 100%); border-top: 1px solid #5a8ef0; }
.start { height: 100%; display: inline-flex; align-items: center; gap: 6px; padding: 0 18px 0 10px; border: 0; border-radius: 0 14px 14px 0; background: linear-gradient(180deg, #4cb050, #2e8b30 60%, #2a7a2c); color: #fff; font: italic 700 17px/1 var(--xpfont); text-shadow: 1px 1px 1px rgba(0,0,0,.4); cursor: pointer; box-shadow: inset -2px 0 4px rgba(0,0,0,.25); flex: none; }
.start img { width: 20px; height: 20px; }
.start-menu { position: absolute; bottom: 42px; left: 4px; z-index: 5; width: 250px; background: #f4f6fb; border: 1px solid #0b3fa8; border-radius: 8px 8px 0 0; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.start-menu::before { content: "Internet Explorer"; display: block; padding: 10px 12px; background: var(--xp); color: #fff; font: 700 14px var(--xpfont); }
.start-menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 14px; font: 13px var(--xpfont); color: #12203a; cursor: pointer; }
.start-menu button:hover { background: #316ac5; color: #fff; }
.tasks { flex: 1; min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tasks::-webkit-scrollbar { display: none; }
.task { flex: none; display: inline-flex; align-items: center; gap: 6px; max-width: 150px; padding: 5px 9px; border-radius: 3px; border: 1px solid rgba(0,0,0,.3); background: linear-gradient(180deg, #3c81f3, #2a64d6); color: #fff; font: 12px var(--xpfont); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task:hover { background: linear-gradient(180deg, #5594f7, #3a72e0); }
.task img { width: 14px; height: 14px; border-radius: 3px; }
.tray { flex: none; display: flex; align-items: center; gap: 12px; height: 100%; padding: 0 12px; background: linear-gradient(180deg, #1290e8, #0f7bd6); border-left: 1px solid #0a4fa0; color: #fff; font: 12px var(--xpfont); }
.wall-note { color: var(--muted); font-size: 13px; text-align: center; margin: 14px 0 0; }

/* how */
.how, .lore, .buy { max-width: 1240px; margin: 0 auto; padding: 80px clamp(16px, 4vw, 48px) 20px; }
h2 { font: 800 clamp(30px, 4.4vw, 54px)/1.02 var(--display); letter-spacing: -.03em; margin: 0 0 30px; max-width: 20ch; }
.flow { display: flex; align-items: stretch; gap: 0; margin-bottom: 26px; }
.node { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.node b { display: block; font: 700 16px/1.2 var(--display); margin-bottom: 4px; }
.node span { color: var(--muted); font-size: 13px; }
.accent-node { border-color: rgba(47,123,255,.6); background: linear-gradient(180deg, rgba(47,123,255,.18), rgba(47,123,255,.05)); }
.pipe { flex: 0 0 34px; position: relative; align-self: center; height: 2px; background: var(--line2); overflow: hidden; }
.pipe i { position: absolute; top: -2px; width: 10px; height: 6px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: flow 1.6s linear infinite; }
@keyframes flow { from { left: -10px; } to { left: 34px; } }
.how-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; min-width: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hidden-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.hidden-list li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.02); min-width: 0; }
.hidden-list li img, .hidden-list .letter { width: 26px; height: 26px; border-radius: 6px; flex: none; object-fit: cover; }
.hidden-list .letter { display: grid; place-items: center; background: #1a2440; font: 700 11px var(--mono); }
.hidden-list .nm { font-weight: 700; flex: none; max-width: 30%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden-list .why { color: var(--warn); font: 12px var(--mono); flex: 1; min-width: 0; overflow-wrap: anywhere; white-space: normal; }
.hidden-list a { color: var(--muted); font-size: 12px; flex: none; }

/* lore */
.lore { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.lore-text p:not(.label) { color: #c5cde0; font-size: 17px; max-width: 56ch; }
.xp-dialog { background: #ece9d8; color: #111; border: 1px solid #0b3fa8; border-radius: 8px 8px 4px 4px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.55); font-family: var(--xpfont); max-width: 440px; justify-self: center; width: 100%; }
.xp-dialog-title { padding: 7px 7px 7px 10px; justify-content: space-between; }
.xp-dialog-body { display: flex; gap: 14px; padding: 20px 18px 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.xp-dialog-ico { width: 44px; height: 44px; border-radius: 6px; flex: none; }
.xp-dialog-body p { margin: 0; }
.xp-dialog-btns { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 16px 16px; }
.xp-btn { font: 12px var(--xpfont); color: #111; text-decoration: none; padding: 5px 16px; border: 1px solid #003c74; border-radius: 3px; background: linear-gradient(180deg, #fff, #ecebe6 80%, #d6d0c5); }
.xp-btn:hover { box-shadow: inset 0 0 0 2px #f8b636; }

/* buy */
.buy { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; padding-bottom: 80px; }
.buy-art img { width: min(100%, 420px); margin: 0 auto; }
.buy-box { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 34px); min-width: 0; }
.buy-box h2 { margin-bottom: 10px; }
.ca-box { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; margin: 22px 0; border: 1px dashed rgba(47,123,255,.6); border-radius: 12px; background: rgba(47,123,255,.06); min-width: 0; }
.ca-lbl { font: 700 12px var(--mono); color: var(--accent); }
.ca-box code { flex: 1; min-width: 0; font: 14px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foot { border-top: 1px solid var(--line); padding: 24px clamp(16px, 4vw, 48px); text-align: center; color: var(--muted); font-size: 12.5px; }
.foot p { max-width: 900px; margin: 0 auto; }

/* big window */
.modal { position: fixed; inset: 0; z-index: 1000; background: rgba(2, 4, 10, .75); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 18px; }
.modal[hidden] { display: none; }
.bigwin { width: min(1360px, 100%); height: min(860px, 100%); background: #0c1220; border: 1px solid #0b3fa8; border-radius: 10px 10px 6px 6px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 40px 140px rgba(0,0,0,.8); animation: pop .35s cubic-bezier(.2,.9,.3,1.15); }
.bigwin .xp-title { padding: 8px 8px 8px 10px; font-size: 14px; }
.bw-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
.bw-site { position: relative; background: #fff; min-height: 0; overflow: hidden; }
.bw-site img.shot { object-fit: contain; object-position: top center; background: #f3f5fa; }
.bw-site .loading { position: absolute; inset: 0; display: grid; place-items: center; background: #f3f5fa; color: #4a5672; font: 12px var(--xpfont); z-index: 1; transition: opacity .4s; }
.bw-site .loading.gone { opacity: 0; pointer-events: none; }
.bw-site .card-view { position: absolute; }
.bw-side { overflow-y: auto; border-left: 1px solid var(--line); background: #0a0f1c; }
.bw-sec { padding: 16px; border-bottom: 1px solid var(--line); }
.bw-sec .chips { padding: 10px 0 0; }
.bw-ca { display: flex; gap: 8px; align-items: center; min-width: 0; }
.bw-ca code { flex: 1; min-width: 0; font: 12px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #cfe0ff; }
.bw-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.bw-stats div { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 8px; padding: 8px; min-width: 0; }
.bw-stats b { display: block; font: 600 14px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bw-stats span { color: var(--muted); font-size: 11px; }
.hgroup { border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; margin-bottom: 8px; font-size: 13px; color: #c9d2e6; }
.hgroup b { color: var(--text); }
.hgroup.bad { border-color: rgba(255,100,100,.4); }
.hgroup.warn { border-color: rgba(255,181,71,.35); }
.hgroup.good { border-color: rgba(87,226,108,.35); }
.hgroup code { font: 11px var(--mono); color: var(--muted); }
.amts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.amts button { background: rgba(255,255,255,.05); border: 1px solid var(--line2); color: var(--text); border-radius: 8px; padding: 8px 10px; font: 600 13px var(--mono); cursor: pointer; }
.amts button.on { border-color: var(--accent); background: rgba(47,123,255,.18); }
#amtIn { width: 70px; background: #060a13; border: 1px solid var(--line2); color: var(--text); border-radius: 8px; padding: 8px; font: 600 13px var(--mono); }
.sol { font: 600 12px var(--mono); color: var(--muted); }
#buyMsg a { color: var(--accent); }

.toast { position: fixed; right: 18px; bottom: 18px; z-index: 1100; max-width: min(360px, calc(100vw - 36px)); background: #ece9d8; color: #111; border: 1px solid #0b3fa8; border-radius: 8px; font: 13px/1.4 var(--xpfont); box-shadow: 0 20px 60px rgba(0,0,0,.5); overflow: hidden; animation: pop .3s; }
.toast b.t { display: block; background: var(--xp); color: #fff; padding: 6px 10px; }
.toast p { margin: 0; padding: 10px 12px; }

/* reveal: never leaves content hidden */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s, transform .7s; }
.reveal.in, .shown .reveal { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 20px; }
  .hero-side { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
  .flow { flex-wrap: wrap; gap: 10px; }
  .pipe { display: none; }
  .node { flex: 1 1 30%; }
  .how-grid, .lore, .buy { grid-template-columns: 1fr; }
  .bw-body { grid-template-columns: 1fr; grid-template-rows: minmax(300px, 1fr) auto; overflow-y: auto; }
  .bw-side { border-left: 0; overflow: visible; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav { gap: 10px; }
  .brand span { font-size: 16px; }
  #connectBtn { margin-left: auto; }
  .hero-side { grid-template-columns: 1fr 1fr; }
  .hero-mascot { width: 100%; }
  .tile b { font-size: 21px; }
  .tiles-note { text-align: left; }
  .node { flex: 1 1 100%; }
  .ie-toolbar { gap: 8px; }
  .seg button { padding: 8px 9px; }
  .desk { padding: 10px; }
  .tray #clock { display: none; }
  .modal { padding: 0; }
  .bigwin { border-radius: 0; height: 100%; }
  .bw-body { grid-template-rows: 62vh auto; }
  .ca-box { flex-wrap: wrap; }
  .ca-box code { flex-basis: 100%; order: 3; }
  .buy-art img { width: 70%; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .pipe i, .bar i, .dot.live { animation: none; }
}
