/* Grind Order marketing site (mockup). Vanilla CSS, dark theme, Silkscreen pixel accents. */
@font-face { font-family: Silkscreen; src: url(../fonts/silkscreen-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Silkscreen; src: url(../fonts/silkscreen-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #0a0806;
  --bg2: #130e0b;
  --card: #1c1510;
  --line: #3d2c1e;
  --line2: #5a3f26;
  --ink: #f3e7cf;
  --dim: #bba98a;       /* 9:1 on --bg */
  --gold: #f2c35b;
  --gold-d: #b8862a;
  --good: #7bd88f;
  --bad: #ff7a7a;
  --blue: #6ab0ff;
  --px: 'Silkscreen', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ui: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --tb: 48px;       /* fake taskbar height */
  --strip: 180px;   /* the game strip: 180 at 1x, 360 at 2x */
  --nav: 56px;
  --desk-font: 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 8px); background: var(--bg); color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--ui); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
.pix, .spr, .shots img, .reel img { image-rendering: pixelated; }
a { color: var(--gold); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
kbd { font: 700 11px var(--px); background: #3a2c20; border: 1px solid var(--line2); border-bottom-width: 3px; padding: 1px 6px; border-radius: 3px; color: var(--ink); }
.skip { position: absolute; left: 8px; top: -60px; background: var(--gold); color: #1a1205; padding: 8px 14px; z-index: 999; font-weight: 700; }
.skip:focus { top: 8px; }
[hidden] { display: none !important; }
.muted { color: var(--dim); }
svg { fill: currentColor; }

/* ---- buttons: pixel look (stepped shadow, press moves down) */
.btn { font: 700 13px/1 var(--px); letter-spacing: .04em; text-transform: uppercase; color: #1a1205; background: var(--gold); border: 0; padding: 12px 16px 11px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 -3px 0 0 var(--gold-d) inset, 3px 0 0 0 #0006, 0 3px 0 0 #000a, -3px 0 0 0 #0006; border-radius: 0; min-height: 40px; transition: background .15s, transform .08s; }
.btn:hover { background: #ffd57a; }
.btn:active { transform: translateY(2px); box-shadow: 0 -1px 0 0 var(--gold-d) inset; }
.btn.ghost { background: #2a1d13; color: var(--ink); box-shadow: 0 -3px 0 0 #0006 inset, 0 0 0 2px var(--line2); }
.btn.ghost:hover { background: #3a2c20; box-shadow: 0 -3px 0 0 #0006 inset, 0 0 0 2px var(--gold-d); }
.btn.big { font-size: 15px; padding: 15px 22px 14px; min-height: 48px; }
.btn.small { font-size: 12px; padding: 8px 12px 7px; min-height: 32px; }

/* ---- store buttons (standard store-button layout; swap for each store's official badge at launch: see README) */
.store { position: relative; display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 18px 8px 14px; border-radius: 10px; border: 1px solid #8f8f98; background: #000; color: #fff; text-decoration: none; cursor: pointer; font: inherit; text-align: left; transition: transform .15s var(--ease), box-shadow .15s, border-color .15s; }
.store:hover { transform: translateY(-2px); box-shadow: 0 8px 22px #000a, 0 0 0 1px #ffffff30; }
.store:active { transform: translateY(0); }
.store .g { width: 28px; height: 28px; flex: none; }
.store .t { display: grid; line-height: 1.1; }
.store small { font-size: 11px; letter-spacing: .02em; color: #e8e8ee; }
.store b { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.store .soon, .store .live { position: absolute; top: -9px; right: 10px; font: 700 9px/1 var(--px); letter-spacing: .06em; text-transform: uppercase; padding: 4px 6px 3px; border-radius: 3px; background: var(--gold); color: #1a1205; font-style: normal; box-shadow: 0 2px 0 #000a; }
.store .live { background: var(--good); }
.store.steam { background: linear-gradient(#2a475e, #171a21); border-color: #4b6a82; } .store.steam .g { color: #c7d5e0; }
.store.msw { background: linear-gradient(#0a84e6, #0063b1); border-color: #5fb0ff; }
.store.apple { background: #000; } .store.gplay { background: #000; } .store.gplay .g { fill: url(#gpg); }
.store.web { background: #1b1722; border-color: var(--gold-d); } .store.web .g { color: var(--gold); }
.getrow { display: flex; flex-wrap: wrap; gap: 14px 12px; }

/* ---- site nav */
.nav { position: sticky; top: 0; z-index: 60; height: var(--nav); display: flex; align-items: center; gap: 24px; padding: 0 20px; background: #0a0806ee; backdrop-filter: blur(10px); border-bottom: 2px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); font: 700 18px var(--px); letter-spacing: .08em; }
.brand img { image-rendering: pixelated; }
.nav nav { display: flex; gap: 4px; margin-left: 8px; flex: 1; }
.nav nav a { color: var(--dim); text-decoration: none; font: 700 12px var(--px); text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav nav a:hover { color: var(--ink); border-bottom-color: var(--gold-d); }
.nav-cta { display: flex; gap: 10px; }

/* ================================================================ the fake desktop (dark-mode Fluent look, all original) */
.hero { padding: 14px 14px 0; }
.desk.big-strip { --strip: 360px; }
.desk { position: relative; height: min(calc(100svh - var(--nav) - 22px), 900px); min-height: 600px; overflow: hidden; border: 3px solid #5a3f26; border-radius: 12px 12px 0 0; background: #060818; isolation: isolate; box-shadow: 0 0 0 1px #000, 0 30px 80px #000a; font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif; font-size: 13px; color: #ececf1; user-select: none; -webkit-user-select: none; }
.wall { position: absolute; inset: 0; z-index: 0; background: #2f7be0 url(../wallpaper.webp) center bottom / cover no-repeat; }
.wall-shade { position: absolute; inset: 0; z-index: 0; background: linear-gradient(#0000 60%, #0007); pointer-events: none; }
.icons { position: absolute; left: 10px; top: 12px; margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; z-index: 3; }
.icons button { width: 88px; background: none; border: 1px solid transparent; color: #fff; font: 12px/1.25 var(--desk-font); text-shadow: 0 1px 3px #000, 0 0 2px #000; padding: 8px 2px 6px; display: grid; justify-items: center; gap: 5px; cursor: pointer; border-radius: 4px; word-break: break-word; transition: background .12s; }
.icons button:hover { background: #ffffff1c; border-color: #ffffff1c; }
.icons button:focus-visible, .icons button[aria-current] { background: #ffffff26; border-color: #ffffff30; }
.icons svg, .icons img { width: 36px; height: 36px; image-rendering: pixelated; filter: drop-shadow(0 2px 3px #0008); }
.icons svg { image-rendering: auto; }

.widget { position: absolute; right: 3%; top: 3%; width: min(41%, 580px); z-index: 9; background: #140e0ae8; border: 3px solid var(--gold-d); box-shadow: 0 0 0 3px #000, 6px 6px 0 3px #000a; padding: 16px 20px 14px; font-family: var(--ui); user-select: text; -webkit-user-select: text; }
.eyebrow { margin: 0 0 8px; font: 700 12px var(--px); color: var(--gold); text-transform: uppercase; letter-spacing: .12em; }
.widget h1 { margin: 0 0 12px; font: 700 clamp(24px, 2.5vw, 34px)/1.12 var(--px); color: #fff; letter-spacing: .02em; text-shadow: 3px 3px 0 #000; }
.lede { margin: 0 0 14px; color: #e3dcef; font-size: 14.5px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hint { margin: 10px 0 0; color: var(--dim); font-size: 13px; }

/* windows: rounded corners, a translucent "mica" title bar, controls at the top right */
.win { position: absolute; z-index: 4; display: flex; flex-direction: column; background: #1f1f23; border: 1px solid #ffffff1f; border-radius: 9px; overflow: hidden; box-shadow: 0 6px 18px #0009, 0 22px 60px #000b; min-width: 260px; transition: box-shadow .2s; }
.win:not(.focus) { box-shadow: 0 4px 14px #0008; }
.win.max { inset: 0 0 var(--tb) 0 !important; width: auto !important; height: auto !important; border-radius: 0; }
.win.dragging { box-shadow: 0 10px 28px #000b, 0 30px 80px #000c; }
.bar { display: flex; align-items: center; gap: 8px; height: 34px; padding-left: 12px; background: #34343bd9; backdrop-filter: blur(22px) saturate(1.4); cursor: grab; flex: none; touch-action: none; }
.win:not(.focus) .bar { background: #28282d; } .win:not(.focus) .bar h2 { color: #a2a2ab; }
.win.dragging .bar { cursor: grabbing; }
.bar h2 { flex: 1; margin: 0; font: 400 12px var(--desk-font); color: #f1f1f4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wicon { width: 16px; height: 16px; flex: none; }
.wctl { display: flex; align-self: stretch; }
.wb { width: 46px; border: 0; background: none; color: #ececf1; cursor: pointer; position: relative; padding: 0; transition: background .1s; }
.wb::before, .wb::after { content: ''; position: absolute; left: 50%; top: 50%; }
.wb.min::before { width: 10px; height: 1px; background: currentColor; transform: translate(-50%, -50%); }
.wb.max::before { width: 9px; height: 9px; border: 1px solid currentColor; border-radius: 1.5px; transform: translate(-50%, -50%); }
.win.max .wb.max::before { width: 8px; height: 8px; box-shadow: 2px -2px 0 -1px #34343b, 2px -2px 0 0 currentColor; transform: translate(-60%, -35%); }
.wb.cls::before, .wb.cls::after { width: 13px; height: 1px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.wb.cls::after { transform: translate(-50%, -50%) rotate(-45deg); }
.wb:hover { background: #ffffff1f; } .wb.cls:hover { background: #c42b1c; color: #fff; }
#w-sheet { left: 7.5%; top: 3%; width: 47%; height: calc(100% - var(--tb) - var(--strip) - 3% - 14px); }
#w-mail { left: 31%; top: 22%; width: 34%; height: 34%; }
#w-files { left: 14%; top: 16%; width: 34%; height: 34%; }
#w-notes { left: 12%; top: 28%; width: 25%; height: 30%; }
#w-bin { left: 40%; top: 14%; width: 28%; height: 32%; }
.menu { display: flex; gap: 4px; padding: 4px 8px; background: #26262b; color: #c9c9d1; font-size: 12px; flex: none; }
.menu span { padding: 3px 10px; border-radius: 5px; } .menu .on { background: #ffffff14; color: #fff; }
.fx { display: flex; align-items: center; gap: 10px; padding: 4px 8px; background: #1b1b1f; border-bottom: 1px solid #34343b; font: 12px ui-monospace, Menlo, Consolas, monospace; color: #d8d8de; flex: none; }
.cellref { background: #2a2a30; padding: 2px 10px; border: 1px solid #3d3d45; border-radius: 4px; }
.fxs { color: #8bd3a0; font-style: italic; }
.grid-wrap { flex: 1; overflow: auto; background: #1b1b1f; min-height: 0; }
.grid { border-collapse: collapse; width: 100%; font-size: 12.5px; table-layout: fixed; }
.grid th { background: #25252a; color: #a9a9b2; font-weight: 400; border: 1px solid #34343b; padding: 3px 6px; width: 34px; }
.grid thead th { width: auto; } .grid thead th:first-child { width: 34px; }
.grid td { border: 1px solid #2e2e35; padding: 4px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #dcdce2; }
.grid td.hd { background: #20362a; color: #bff0cf; font-weight: 600; }
.grid td.neg { color: #ff9a9a; } .grid td.pos { color: #8fe3a4; }
.grid td.live { color: #fff; background: #1d2a3d; box-shadow: inset 0 0 0 1px #3c6aa8; font-variant-numeric: tabular-nums; }
.sheet-foot { display: flex; gap: 2px; padding: 4px 8px; background: #25252a; border-top: 1px solid #34343b; font-size: 12px; flex: none; }
.tab { padding: 3px 12px; color: #aaa; border-radius: 4px 4px 0 0; } .tab.on { background: #1b1b1f; color: #8fe3a4; border-bottom: 2px solid #1f9d57; } .tab.plus { color: #8fe3a4; }
.mail { flex: 1; display: grid; grid-template-columns: 42% 1fr; min-height: 0; background: #1b1b1f; }
.mails { list-style: none; margin: 0; padding: 4px; border-right: 1px solid #34343b; overflow: auto; }
.mails li { padding: 8px 10px; border-radius: 6px; display: grid; gap: 2px; font-size: 12px; color: #b9b9c2; }
.mails li.unread b { color: #fff; } .mails li.sel { background: #2a3a55; }
.mails li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mailbody { padding: 12px 14px; overflow: auto; font-size: 13px; color: #d6d6dc; }
.mailbody h3 { margin: 0 0 4px; font-size: 14px; color: #fff; } .from { margin: 0 0 10px; color: #8d93a0; font-size: 12px; }
.note { margin: 0; padding: 12px 14px; flex: 1; background: #1b1b1f; color: #e6e6ea; font: 13px/1.6 ui-monospace, Menlo, Consolas, monospace; overflow: auto; white-space: pre-wrap; }
.bin { margin: 0; padding: 12px 14px 12px 30px; flex: 1; background: #1b1b1f; color: #ccc; font-size: 13px; line-height: 1.9; overflow: auto; }
.files { list-style: none; margin: 0; padding: 8px; flex: 1; background: #1b1b1f; overflow: auto; }
.files button { width: 100%; display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; background: none; border: 0; color: #e6e6ea; padding: 8px 10px; border-radius: 6px; cursor: pointer; text-align: left; font: 13px var(--desk-font); }
.files button:hover { background: #ffffff12; } .files svg { width: 20px; height: 20px; } .files em { font-style: normal; color: #8d93a0; font-size: 12px; }
.empty-desk { position: absolute; left: 7%; bottom: calc(var(--tb) + var(--strip) + 40px); margin: 0; z-index: 3; font: 700 14px/1.6 var(--px); color: #fff; text-shadow: 2px 2px 0 #000; }

/* the live game strip sits on the taskbar */
.strip { position: absolute; left: 0; right: 0; bottom: var(--tb); height: var(--strip); z-index: 2; pointer-events: none; } /* windows (4-8) sit above the strip, so a dragged window is never covered or blocked by it */
.strip iframe { width: 100%; height: 100%; border: 0; display: block; background: transparent; color-scheme: normal; pointer-events: none; opacity: 0; transition: opacity .6s; }
.strip iframe.on { opacity: 1; }
.strip-load { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); font: 700 12px var(--px); letter-spacing: .1em; color: var(--gold); text-transform: uppercase; text-shadow: 2px 2px 0 #000; background: #140e0acc; border: 2px solid #5a3f26; padding: 10px 14px; pointer-events: none; transition: opacity .3s; }
.strip-load::after { content: ''; display: inline-block; width: 1.5em; text-align: left; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.strip-load.done { opacity: 0; }
.walker { position: absolute; bottom: 0; left: 0; pointer-events: none; }
.walker.go { animation: walk var(--walk-dur, 14s) linear forwards; pointer-events: auto; cursor: pointer; }
@keyframes walk { from { transform: translateX(-200px); } to { transform: translateX(calc(var(--deskw, 1400px) + 200px)); } }

/* taskbar: centred icons, tray on the right */
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: var(--tb); z-index: 10; display: flex; align-items: center; padding: 0 10px; background: #1c1c22d9; backdrop-filter: blur(30px) saturate(1.5); border-top: 1px solid #ffffff14; font-size: 12px; }
.tb-left { flex: 1; min-width: 0; }
.wx { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 6px; color: #e4e4ea; line-height: 1.1; }
.wx i { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #ffe28a, #f5a623); box-shadow: 0 0 10px #f5a62366; flex: none; }
.wx b { font-size: 13px; font-weight: 600; } .wx small { display: block; font-size: 11px; color: #a9a9b3; }
.wx { display: grid; grid-template-columns: auto auto; column-gap: 8px; } .wx i { grid-row: 1 / 3; align-self: center; } .wx b, .wx small { grid-column: 2; }
.tb-center { display: flex; align-items: center; gap: 4px; }
.tb-ico { width: 42px; height: 40px; display: grid; place-items: center; background: none; border: 0; border-radius: 6px; color: #f0f0f4; cursor: pointer; position: relative; transition: background .12s; text-decoration: none; padding: 0; }
.tb-ico:hover { background: #ffffff1a; } .tb-ico:active { background: #ffffff10; } .tb-ico:active svg { transform: scale(.9); }
.tb-ico svg { width: 24px; height: 24px; transition: transform .1s; } .tb-ico[aria-expanded="true"] { background: #ffffff1f; }
.tb-ico.app::after { content: ''; position: absolute; bottom: 2px; left: 50%; width: 0; height: 3px; border-radius: 2px; background: #ffffff80; transform: translateX(-50%); transition: width .15s; }
.tb-ico.app.open::after { width: 6px; } .tb-ico.app.active::after { width: 16px; background: #60cdff; }
.tb-sep { width: 1px; height: 22px; background: #ffffff20; margin: 0 4px; }
.tb-extra { display: contents; }
.tray { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 2px; min-width: 0; }
.tray-btn { font: 700 11px var(--px); letter-spacing: .04em; text-transform: uppercase; color: #1a1205; background: var(--gold); border: 0; padding: 7px 10px 6px; cursor: pointer; border-radius: 4px; margin-right: 8px; transition: background .12s; }
.tray-btn:hover { background: #ffd57a; }
.tray-ico { background: none; border: 0; padding: 6px; cursor: pointer; border-radius: 6px; display: grid; color: #eee; transition: background .12s; } .tray-ico:hover { background: #ffffff1a; }
.tray-ico svg { width: 16px; height: 16px; } .tray-ico img { image-rendering: pixelated; }
.tray-sys { display: inline-flex; gap: 12px; padding: 6px 10px; border-radius: 6px; color: #eee; } .tray-sys:hover { background: #ffffff1a; } .tray-sys svg { width: 16px; height: 16px; }
.clock { color: #eee; font-size: 12px; padding: 3px 8px; text-align: right; line-height: 1.2; font-variant-numeric: tabular-nums; border-radius: 6px; } .clock:hover { background: #ffffff1a; } .clock b { font-weight: 400; display: block; } .clock small { font-size: 12px; }

.startmenu { position: absolute; left: 50%; bottom: calc(var(--tb) + 12px); transform: translateX(-50%); width: min(620px, calc(100% - 16px)); z-index: 13; background: #26262cf0; backdrop-filter: blur(40px) saturate(1.5); border: 1px solid #ffffff1f; border-radius: 12px; padding: 20px 24px 0; box-shadow: 0 20px 60px #000d; animation: pop .18s var(--ease); max-height: calc(100% - var(--tb) - 24px); overflow: auto; }
@keyframes pop { from { opacity: 0; transform: translateX(-50%) translateY(14px); } to { opacity: 1; transform: translateX(-50%); } }
.sm-search { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border-radius: 19px; background: #1a1a1f; border: 1px solid #ffffff1a; color: #a9a9b3; font-size: 13px; margin-bottom: 18px; } .sm-search svg { width: 16px; height: 16px; }
.sm-h { margin: 0 0 10px; font: 600 13px var(--desk-font); color: #fff; }
.sm-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-bottom: 16px; }
.sm-grid > * { position: relative; display: grid; justify-items: center; align-content: start; gap: 7px; padding: 10px 2px 8px; background: none; border: 0; border-radius: 8px; color: #eee; font: 12px var(--desk-font); text-decoration: none; cursor: pointer; text-align: center; transition: background .12s; }
.sm-grid > *:hover { background: #ffffff14; }
.sm-i { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: #ffffff0f; } .sm-i svg { width: 22px; height: 22px; }
.sm-i.steam { background: #1b2838; color: #c7d5e0; } .sm-i.msw { background: #0a6fc9; color: #fff; } .sm-i.apple { background: #000; color: #fff; } .sm-i.gplay { background: #000; } .sm-i.gplay svg { fill: url(#gpg); } .sm-i.web { background: #1b1722; color: var(--gold); } .sm-i.exe { background: #2a2038; }
.sm-i.key { font: 700 10px var(--px); color: #1a1205; background: var(--gold); }
.sm-grid .soon { position: absolute; top: 4px; right: 6px; font: 700 8px/1 var(--px); text-transform: uppercase; color: #1a1205; background: var(--gold); padding: 2px 4px; border-radius: 3px; font-style: normal; }
.sm-rec { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
.sm-rec button { width: 100%; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; background: none; border: 0; color: #eee; padding: 7px 8px; border-radius: 8px; cursor: pointer; text-align: left; font: 12px var(--desk-font); } .sm-rec button:hover { background: #ffffff14; }
.sm-rec svg { width: 26px; height: 26px; } .sm-rec span { display: grid; min-width: 0; } .sm-rec small { color: #9d9da8; font-size: 11px; }
.sm-foot { display: flex; justify-content: space-between; align-items: center; margin: 0 -24px; padding: 12px 24px; background: #1d1d22; border-top: 1px solid #ffffff14; color: #d8d8de; border-radius: 0 0 12px 12px; }
.sm-foot span { display: flex; align-items: center; gap: 10px; } .sm-foot svg { width: 18px; height: 18px; }
.sm-foot button { background: none; border: 0; color: #eee; padding: 8px 10px; border-radius: 6px; cursor: pointer; } .sm-foot button:hover { background: #ffffff1a; }

.trayp { position: absolute; right: 8px; bottom: calc(var(--tb) + 12px); width: min(300px, calc(100% - 16px)); z-index: 13; background: #26262cf0; backdrop-filter: blur(40px); border: 1px solid #ffffff1f; border-radius: 12px; padding: 14px 16px; box-shadow: 0 16px 50px #000d; }
.tp-h { margin: 0 0 8px; font: 700 12px var(--px); color: var(--gold); text-transform: uppercase; } .tp-h small { color: var(--dim); font: 11px var(--ui); text-transform: none; }
.trayp table { width: 100%; border-collapse: collapse; font-size: 12.5px; } .trayp td { padding: 5px 0; border-bottom: 1px solid #ffffff12; } .trayp td:last-child { text-align: right; color: #fff; }

.ctx { position: absolute; z-index: 14; margin: 0; padding: 4px; list-style: none; min-width: 230px; background: #2b2b31f2; backdrop-filter: blur(30px); border: 1px solid #ffffff1f; border-radius: 8px; box-shadow: 0 14px 40px #000d; font-size: 13px; }
.ctx button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: none; border: 0; color: #f0f0f4; padding: 8px 12px; border-radius: 5px; cursor: pointer; text-align: left; font: 13px var(--desk-font); } .ctx button:hover, .ctx button:focus-visible { background: #ffffff1a; }
.ctx [role="separator"] { height: 1px; margin: 4px 8px; background: #ffffff1c; }
.ctx kbd { font-size: 9px; }

.toasts { position: absolute; right: 12px; bottom: calc(var(--tb) + 12px); z-index: 12; display: grid; gap: 8px; width: min(344px, calc(100% - 24px)); pointer-events: none; }
.toast { pointer-events: auto; background: #2a2a31f2; backdrop-filter: blur(24px); border: 1px solid #ffffff1f; border-radius: 9px; padding: 11px 13px; box-shadow: 0 12px 34px #000c; animation: slide .35s var(--ease); font-size: 13px; }
.toast b { display: block; color: #fff; margin-bottom: 2px; font-weight: 600; } .toast p { margin: 0 0 8px; color: #d0d0d8; } .toast p:last-child { margin: 0; } .toast .acts { display: flex; gap: 6px; }
.toast .btn { box-shadow: none; border-radius: 5px; }
.toast .btn.ghost { background: #ffffff1a; box-shadow: none; } .toast.loot { border-color: #f2c35b80; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

.fx-layer { position: absolute; inset: 0; z-index: 11; pointer-events: none; overflow: hidden; }
.rain { position: absolute; top: -90px; animation: rain 3s linear forwards; image-rendering: pixelated; }
.desk.disco .wall { animation: hue .9s steps(8) infinite; }
@keyframes hue { to { filter: hue-rotate(360deg) saturate(1.6); } }
@keyframes rain { to { transform: translateY(calc(var(--deskh, 900px) + 160px)) rotate(var(--rot, 40deg)); } }

/* sprites animated with steps() from art/sprites.json */
.spr { display: inline-block; flex: none; background-repeat: no-repeat; animation: spr var(--dur, 1.2s) steps(var(--n, 2)) infinite; }
@keyframes spr { from { background-position-x: var(--x0); } to { background-position-x: calc(var(--x0) - var(--w) * var(--n)); } }

/* modals */
dialog { color: var(--ink); background: var(--card); border: 3px solid var(--gold-d); padding: 24px 24px 20px; max-width: min(460px, calc(100vw - 32px)); width: 100%; box-shadow: 0 0 0 3px #000, 8px 8px 0 3px #000a; }
dialog[open] { animation: dlg .18s var(--ease); }
@keyframes dlg { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
dialog::backdrop { background: #000c; }
dialog h2 { margin: 0 0 8px; font: 700 20px/1.2 var(--px); color: var(--gold); padding-right: 36px; }
dialog label { display: block; font: 700 12px var(--px); text-transform: uppercase; margin: 14px 0 6px; color: var(--dim); }
dialog input { width: 100%; font: 16px var(--ui); padding: 12px; background: #120d09; color: var(--ink); border: 2px solid var(--line2); border-radius: 0; margin-bottom: 14px; }
dialog input:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.err { color: var(--bad); margin: -6px 0 12px; font-size: 14px; }
.thanks { background: #12241a; border: 2px solid #2f6b44; padding: 14px; margin: 16px 0 0; } .thanks small { color: var(--dim); }
.alt { margin: 16px 0 0; color: var(--dim); font-size: 14px; }
.x-form { position: absolute; right: 8px; top: 8px; margin: 0; } .x { background: none; border: 0; color: var(--dim); font-size: 18px; width: 40px; height: 40px; cursor: pointer; } .x:hover { color: #fff; }
dialog.winlike { padding: 0; background: #1f1f23; border: 1px solid #ffffff2a; border-radius: 9px; box-shadow: 0 20px 70px #000; max-width: 440px; overflow: hidden; font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif; }
dialog.winlike .bar { cursor: default; padding-right: 12px; } dialog.winlike h2 { font: 400 12px var(--desk-font); color: #f1f1f4; padding: 0; margin: 0; }
.itbody { display: flex; gap: 16px; padding: 22px 22px 14px; font-size: 14px; } .itbody p { margin: 0; color: #e6e6ea; }
.big-i { flex: none; width: 44px; height: 44px; background: #e8b730; color: #1a1205; display: grid; place-items: center; font: 700 28px var(--px); clip-path: polygon(50% 0, 100% 100%, 0 100%); padding-top: 14px; }
.big-i.q { background: #3a7bd5; color: #fff; border-radius: 50%; clip-path: none; padding: 0; }
.itbody code { background: #101114; padding: 1px 6px; color: #ffb4a8; border-radius: 3px; }
.itbtn { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px 18px; background: #18181c; flex-wrap: wrap; }
.itbtn .btn { box-shadow: none; border-radius: 5px; } .itbtn .btn:active { box-shadow: none; }

.bosskey { position: fixed; inset: 0; z-index: 9999; background: #fff; color: #111; display: flex; flex-direction: column; font: 13px 'Segoe UI', system-ui, Arial, sans-serif; }
.bk-bar { background: #1f6f43; color: #fff; padding: 8px 14px; display: flex; justify-content: space-between; } .bk-menu { display: flex; gap: 18px; padding: 6px 14px; background: #f3f3f3; border-bottom: 1px solid #d0d0d0; }
.bk-fx { display: flex; gap: 14px; padding: 4px 14px; border-bottom: 1px solid #d0d0d0; font-family: Consolas, monospace; } .bk-fx span:first-child { border: 1px solid #ccc; padding: 0 12px; }
.bk-scroll { flex: 1; overflow: auto; } #bk-table { border-collapse: collapse; width: 100%; min-width: 760px; table-layout: fixed; } #bk-table th { background: #f0f0f0; border: 1px solid #d4d4d4; font-weight: 400; padding: 2px 6px; position: sticky; top: 0; }
#bk-table td { border: 1px solid #e1e1e1; padding: 2px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } #bk-table td:first-child { background: #f0f0f0; width: 40px; text-align: center; color: #555; }
.bk-hint { margin: 0; padding: 6px 14px; background: #f3f3f3; border-top: 1px solid #d0d0d0; color: #666; font-size: 12px; }
body.is-bosskey { overflow: hidden; }

/* ---- below the fold */
.sec { max-width: 1120px; margin: 0 auto; padding: 80px 20px 8px; }
.hd2 { margin: 0 0 14px; font: 700 clamp(22px, 3.2vw, 34px)/1.15 var(--px); color: var(--ink); letter-spacing: .02em; text-wrap: balance; }
.hd2::after { content: ''; display: block; width: 72px; height: 6px; margin-top: 14px; background: linear-gradient(90deg, var(--gold) 0 24px, transparent 24px 30px, var(--gold-d) 30px 54px, transparent 54px 60px, #5a4420 60px 72px); }
.sub { color: var(--dim); margin: 0 0 30px; max-width: 60ch; }
.one { font-size: clamp(18px, 2.2vw, 24px); line-height: 1.45; max-width: 52ch; margin: 18px 0 36px; color: var(--ink); text-wrap: pretty; }
.pillars { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillars li, .card, .grid3 li, .zones li, .shots li, .road li { background: var(--card); border: 2px solid var(--line); padding: 20px; box-shadow: 4px 4px 0 #000, inset 0 0 0 1px #e8cf9a1f; transition: transform .15s var(--ease), border-color .15s, box-shadow .15s; }
.pillars li:hover, .card:hover, .grid3 li:hover, .zones li:hover, .shots li:hover, .road li:hover { transform: translate(-2px, -2px); border-color: var(--gold-d); box-shadow: 6px 6px 0 #000, inset 0 0 0 1px #e8cf9a33; }
.pillars h3, .card h3, .grid3 h3 { margin: 12px 0 6px; font: 700 15px var(--px); color: var(--gold); text-transform: uppercase; letter-spacing: .04em; }
.pillars p, .card p, .grid3 p { margin: 0; color: var(--dim); text-wrap: pretty; }
.reel { margin: 0 0 20px; background: var(--bg2); border: 2px solid var(--line); padding: 10px; box-shadow: 4px 4px 0 #000; }
.reel-main { background: #0a0806; display: grid; place-items: center; }
.reel img { width: 100%; }
.reel figcaption { padding: 10px 4px 2px; font: 700 12px var(--px); color: var(--dim); text-transform: uppercase; }
.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shots li { padding: 8px; } .shots img { width: 100%; background: #0a0806; display: block; } .shots p { margin: 8px 4px 2px; font: 700 11px var(--px); color: var(--dim); text-transform: uppercase; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 16px; }
.skills { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; font-size: 13px; color: var(--ink); }
.skills li { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; box-shadow: none; transform: none !important; }
.zones b { font: 700 13px/1.25 var(--px); color: var(--ink); } .zones i { color: var(--dim); font-style: normal; font-size: 13px; } .zones em { color: var(--gold); font-style: normal; font-size: 13px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two .card p { font-size: 16px; }
.grid3 { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid3 h3 { font-size: 13px; }
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--card); border: 2px solid var(--line); box-shadow: 3px 3px 0 #000; transition: border-color .15s; } .faq details:hover { border-color: var(--line2); }
.faq summary { cursor: pointer; padding: 16px 18px; font: 700 14px var(--px); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; } .faq summary::after { content: '+'; color: var(--gold); font-size: 18px; } .faq details[open] summary::after { content: '-'; }
.faq details[open] summary { color: var(--gold); } .faq p { margin: 0; padding: 0 18px 18px; color: var(--dim); }
.road { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.road li { display: grid; gap: 8px; align-content: start; }
.road b { font: 700 14px var(--px); color: var(--gold-d); text-transform: uppercase; } .road .now b { color: var(--good); } .road .now { border-color: #2f6b44; }
.road span { color: var(--dim); font-size: 15px; }
.comm { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.press { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.press .card { display: grid; gap: 12px; align-content: start; } .press h3 { margin: 0; }
.logo-prev { display: flex; align-items: center; gap: 14px; padding: 14px; background: #120d09; border: 2px dashed var(--line2); font: 700 22px var(--px); color: var(--gold); letter-spacing: .08em; }
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--dim); font-size: 14px; } .plist small { color: #8c8399; }
.foot { margin-top: 90px; padding: 36px 20px 48px; border-top: 2px solid var(--line); text-align: center; color: var(--dim); font-size: 14px; background: var(--bg2); }
.foot p { margin: 8px auto; max-width: 70ch; } .brand-sm { font: 700 18px var(--px); color: var(--gold); letter-spacing: .1em; cursor: default; user-select: none; }
.noscript { padding: 12px; background: #3a1a1a; color: #fff; text-align: center; margin: 0; }

/* zones: a row of equal cards (a swipeable strip on phones); every boss sits centred in the same framed box, scaled by whole pixels */
.zones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.zones li { padding: 0; display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.z-art { height: 150px; display: grid; place-items: end center; padding-bottom: 14px; overflow: hidden; border-bottom: 2px solid var(--line); background: linear-gradient(#0000 55%, #0006), var(--zbg); }
.z-forest { --zbg: linear-gradient(#2c6b34, #17381e); } .z-mine { --zbg: linear-gradient(#5b4630, #26190f); } .z-gold { --zbg: linear-gradient(#6b5a1f, #2a210a); } .z-abyss { --zbg: linear-gradient(#1e5668, #0b1f2b); } .z-ember { --zbg: linear-gradient(#7a2a12, #2a0e08); }
.z-art .spr { image-rendering: pixelated; }
.z-body { display: grid; gap: 5px; align-content: start; padding: 14px 16px 18px; }
.z-body small { font: 700 11px var(--px); color: var(--gold-d); text-transform: uppercase; letter-spacing: .06em; }
.z-body b { font: 700 13px/1.3 var(--px); color: var(--ink); }
.z-body p { margin: 0; color: var(--dim); font-size: 14px; }
.z-body em { color: var(--gold); font-style: normal; font-size: 13px; margin-top: 4px; }
/* classes: a badge per class in its own colour; the grid takes more cards (and ends with a teaser) */
.cls { display: grid; gap: 12px; align-content: start; --cc: #c0463a; }
.cls-mage { --cc: #7a52d6; } .cls-thief { --cc: #2f9d6b; } .cls-soon { --cc: #5a3f26; border-style: dashed; }
.cls .head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.cls h3 { margin: 0; } .cls small { color: var(--dim); font-size: 13px; }
.emblem { width: 64px; height: 64px; display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--cc) 70%, #fff 10%), color-mix(in srgb, var(--cc) 45%, #000)); border: 3px solid var(--cc); box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #ffffff30, 3px 3px 0 2px #000a; clip-path: polygon(0 6px, 6px 6px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px)); font: 700 30px var(--px); color: var(--ink); }
.emblem img { width: 40px; height: 40px; filter: drop-shadow(2px 2px 0 #0008); }
.cls .wpn { opacity: .9; }
.cls p { margin: 0; }

/* ---- smaller screens: the desktop becomes a simple stacked scene */
@media (max-width: 1180px) {
  .zones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav nav { display: none; } .nav-cta { margin-left: auto; }
  .icons { display: none; }
  .widget { right: 2.5%; width: min(44%, 440px); }
  #w-sheet { left: 3%; width: 54%; }
  #w-mail, #w-notes, #w-bin, #w-files { left: 22%; }
  .wx { display: none; }
  .pillars, .grid3, .press { grid-template-columns: 1fr 1fr; }
  .road { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  :root { --strip: 150px; }
  .zones { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 12px; margin-right: -20px; padding-right: 20px; }
  .zones li { flex: 0 0 min(260px, 78%); scroll-snap-align: start; }
  .brand span { display: none; }
  .nav-cta .ghost { display: none; } .nav-cta { margin-left: auto; }
  .hero { padding: 8px 0 0; }
  .desk { height: calc(100svh - var(--nav) - 8px); min-height: 560px; border-radius: 0; border-left: 0; border-right: 0; display: flex; flex-direction: column; padding-bottom: calc(var(--tb) + var(--strip)); }
  .widget { position: relative; right: auto; top: auto; width: auto; margin: 12px 12px 0; padding: 14px 14px 12px; flex: none; box-shadow: 0 0 0 2px #000, 4px 4px 0 2px #000a; border-width: 2px; }
  .widget h1 { font-size: clamp(20px, 6.4vw, 26px); margin-bottom: 8px; }
  .widget .eyebrow { margin-bottom: 6px; }
  .lede { font-size: 14px; margin-bottom: 12px; }
  .cta { flex-wrap: nowrap; } .cta .btn.big { flex: 1 1 0; font-size: 12px; padding: 12px 8px 11px; min-height: 44px; }
  .hint { display: none; }
  .win { position: relative !important; left: auto !important; top: auto !important; width: auto !important; height: auto !important; flex: 1 1 0; min-height: 110px; margin: 10px 12px 0; min-width: 0; }
  #w-mail, #w-notes, #w-bin, #w-files { display: none; }
  .win.max { position: absolute !important; }
  .bar { cursor: default; }
  .wb.min, .wb.max { display: none; }
  .grid td:nth-child(5), .grid thead th:nth-child(6) { display: none; }
  .empty-desk { position: absolute; left: 6%; bottom: calc(var(--tb) + var(--strip) + 20px); margin: 0; }
  .tray-sys, .hide-s, .tb-left { display: none; } #boss-btn { display: none; }
  .tb-center { flex: none; }
  .clock small { display: none; }
  .sec { padding-top: 56px; }
  .pillars, .grid3, .two, .shots, .road, .press { grid-template-columns: 1fr; }
    .sm-grid { grid-template-columns: repeat(3, 1fr); } .sm-rec { grid-template-columns: 1fr; }
  .startmenu { padding: 14px 14px 0; } .sm-foot { margin: 0 -14px; padding: 10px 14px; }
}
@media (max-width: 460px) { .cta .btn.big { font-size: 11px; letter-spacing: 0; } .nav { padding: 0 12px; gap: 10px; } .btn { padding: 11px 12px 10px; } .getrow .store { flex: 1 1 100%; } }
@media (hover: none) { .pillars li:hover, .card:hover, .grid3 li:hover, .zones li:hover, .shots li:hover, .road li:hover, .store:hover { transform: none; } }

/* reduced motion: nothing slides, walks, rains or loops (the game strip is paused from site.js) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .spr, .strip-load::after { animation: none; }
  .toast,   .walker.go { animation: none; display: none; }
  .rain, .desk.disco .wall { display: none; animation: none; }
}

/* light scroll reveal (JS adds .rv, then .in); without JS or with reduced motion everything is simply shown */
.rv { opacity: 0; transform: translateY(12px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* pre-launch preview marker in the footer */
.foot .preview-tag { display: inline-block; font: 700 11px/1 var(--px); letter-spacing: .08em; text-transform: uppercase; color: #d9c9a8; border: 1px solid #5a4a30; border-radius: 3px; padding: 5px 8px; }
.foot .preview-tag b { color: #ffb347; }
