:root {
  --desk: #008080;
  --face: #c0c0c0;
  --hi: #ffffff;
  --lo: #808080;
  --dk: #0a0a0a;
  --text: #000000;
  --dim: #404040;
  --link: #0000ee;
  --navy: #000080;
  --sys: Tahoma, 'MS Sans Serif', 'Segoe UI', Verdana, Geneva, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --raised: inset -1px -1px var(--dk), inset 1px 1px var(--hi), inset -2px -2px var(--lo), inset 2px 2px #dfdfdf;
  --sunken: inset 1px 1px var(--lo), inset -1px -1px var(--hi), inset 2px 2px var(--dk), inset -2px -2px #dfdfdf;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; }
body {
  margin: 0; background: var(--desk); color: var(--text);
  font: 400 14px/1.5 var(--sys); overflow-x: hidden; padding-bottom: 52px;
}
a { color: var(--link); }
a:hover { color: #0000a0; }
:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }
a:focus-visible, select:focus-visible { outline: 1px dotted #000; outline-offset: 2px; }
.desk a:focus-visible { background: #ffffa0; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -80px; background: var(--face); color: #000; padding: 6px 12px; z-index: 100; box-shadow: var(--raised); }
.skip:focus { top: 8px; }
.desk { max-width: 980px; margin: 0 auto; padding: 18px 12px 24px; display: flex; flex-direction: column; gap: 18px; }

/* windows */
.win { background: var(--face); box-shadow: var(--raised), 3px 3px 0 rgba(0, 0, 0, .35); padding: 3px; }
.tbar {
  display: flex; align-items: center; gap: 6px; padding: 3px 4px;
  background: linear-gradient(90deg, #000080, #1060b8); color: #fff; font-weight: 700; font-size: 14px;
}
.tbar .ico { width: 16px; text-align: center; }
.tbar h2, .tbar .ttl { margin: 0; font: inherit; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbtns { display: flex; gap: 2px; }
.tbtns b {
  display: inline-block; width: 18px; height: 16px; background: var(--face); color: #000; box-shadow: var(--raised);
  font: 700 11px/16px var(--sys); text-align: center;
}
.tbtns b + b { margin-left: 2px; }
.wbody { padding: 14px; }
.wbody > :first-child { margin-top: 0; }
.panel { background: #fff; box-shadow: var(--sunken); padding: 12px 14px; }
.screen { background: #000; box-shadow: var(--sunken); padding: 12px; overflow: hidden; }

/* buttons */
.btn {
  display: inline-block; font: 400 14px/1.2 var(--sys); text-decoration: none; cursor: pointer; color: #000;
  background: var(--face); border: 0; padding: 9px 20px; box-shadow: var(--raised); text-align: center; min-height: 32px;
}
.btn:hover { color: #000; }
.btn:active { box-shadow: inset 1px 1px var(--dk), inset -1px -1px var(--hi), inset 2px 2px var(--lo); padding: 10px 19px 8px 21px; }
.btn.primary { font-weight: 700; outline: 2px solid #000; outline-offset: 0; margin: 2px; }
.btn.primary:focus-visible { outline: 2px solid #000; box-shadow: var(--raised), inset 0 0 0 4px var(--face), inset 0 0 0 5px #000; outline-offset: 0; background: var(--face); }
.btn:focus-visible { outline: 1px dotted #000; outline-offset: -5px; }
.btn.off, .btn.off:active { color: #6b6b6b; text-shadow: 1px 1px 0 #fff; cursor: not-allowed; box-shadow: var(--raised); padding: 9px 20px; }

/* hero */
.ascii-title {
  margin: 0 auto 14px; display: block; overflow: hidden; color: #ffb000; text-align: center;
  font: 700 clamp(4px, calc((100vw - 90px) / 34), 15px)/1.05 var(--mono); white-space: pre;
}
.hero-scene { margin: 0; color: #7a8590; font: 500 clamp(6px, 1.7vw, 13px)/1.2 var(--mono); white-space: pre; text-align: center; }
pre.scene { margin: 0; font: 500 clamp(7px, calc((100vw - 90px) / 40), 13px)/1.25 var(--mono); white-space: pre; color: #7a8590; overflow: hidden; }
.w { color: #6cb4ff; } .m { color: #b6bec7; } .t { color: #6fe06f; } .p { color: #ffb000; font-weight: 700; } .d { color: #5c6670; }
.hero-text { text-align: center; padding-top: 16px; }
.pitch { font-size: clamp(16px, 2.6vw, 20px); max-width: 620px; margin: 0 auto 18px; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.shots { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
figure { margin: 0; }
figcaption { padding: 6px 2px 0; color: var(--dim); font-size: 13px; }

.feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px 24px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feats li { margin: 0; }
.feats h3 { margin: 0 0 2px; font-size: 14px; }
.feats h3 .g { font-family: var(--mono); color: var(--navy); margin-right: 8px; }
.feats p { margin: 0; }

.card { max-width: 440px; margin: 0 auto; text-align: center; }
.card .tag { font-weight: 700; }
.card .price { font-size: 46px; font-weight: 700; color: var(--navy); line-height: 1.15; margin: 4px 0 10px; }
.card ul { list-style: none; padding: 0; margin: 0 0 16px; display: inline-block; text-align: left; }
.card li::before { content: '\25BA  '; color: var(--navy); font-size: 11px; }
.fine { font-size: 12px; color: var(--dim); margin: 12px 0 0; }
.dls { display: flex; gap: 12px; flex-wrap: wrap; }
.note { color: var(--dim); margin: 12px 0 0; }

.foot { color: #fff; font-size: 13px; text-align: center; padding: 4px 0 8px; }
.foot ul { list-style: none; padding: 0; margin: 4px 0 0; display: flex; gap: 6px 18px; justify-content: center; flex-wrap: wrap; }
.foot a { color: #fff; }
.foot a:focus-visible { background: #000; outline-color: #fff; }

/* doc pages */
.doc h1 { font-size: 20px; margin: 0 0 10px; color: var(--navy); }
.doc h2 { font-size: 15px; margin: 18px 0 4px; }
.doc p, .doc li { margin: 0 0 6px; }
.ph { background: #ffff80; color: #000; padding: 0 3px; }
.back { display: inline-block; margin-bottom: 10px; color: #fff; }
.thanks { text-align: center; }
.thanks h1 { font-size: clamp(18px, 4vw, 24px); }
.thanks .dls { justify-content: center; margin: 18px 0 6px; }

/* taskbar */
.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: 44px; background: var(--face);
  box-shadow: inset 0 1px var(--hi), 0 -1px #dfdfdf; padding: 5px 6px; display: flex; align-items: center; gap: 6px;
}
.taskbar .btn { padding: 4px 12px; min-height: 32px; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.taskbar .btn:active { padding: 5px 11px 3px 13px; }
.taskbar .start { font-weight: 700; }
.taskbar .sep { width: 2px; align-self: stretch; margin: 2px 2px; box-shadow: inset 1px 0 var(--lo), inset -1px 0 var(--hi); }
.taskbar .grow { flex: 1; }
.taskbar .dd { position: relative; display: inline-flex; height: 32px; background: #fff; box-shadow: var(--sunken); padding: 2px; }
.dd-btn { display: flex; align-items: stretch; padding: 0; border: 0; background: transparent; font: 400 14px var(--sys); color: #000; cursor: default; }
.dd-val { display: flex; align-items: center; min-width: 84px; padding: 0 6px; background: #fff; text-align: left; }
.dd-arr { display: flex; align-items: center; justify-content: center; width: 18px; background: var(--face); box-shadow: var(--raised); font-size: 8px; }
.dd-btn:active .dd-arr { box-shadow: var(--sunken); }
.dd-btn:focus-visible .dd-val { outline: 1px dotted #fff; outline-offset: -2px; background: #000080; color: #fff; }
.dd-list { position: absolute; bottom: 100%; left: 0; right: 0; margin: 0 0 2px; padding: 0; list-style: none; background: #fff; color: #000; border: 1px solid #000; border-radius: 0; box-shadow: 1px 1px 0 #000; font: 400 14px var(--sys); z-index: 50; outline: 0; }
.dd-list[hidden] { display: none; }
.dd-list li { padding: 3px 6px; cursor: default; white-space: nowrap; }
.dd-list li.hot, .dd-list li:hover { background: #000080; color: #fff; }
.clock { box-shadow: var(--sunken); height: 32px; line-height: 32px; padding: 0 10px; min-width: 58px; text-align: center; font-size: 13px; }
#toast {
  position: fixed; left: 50%; bottom: 58px; transform: translateX(-50%); z-index: 70; display: none;
  background: #ffffe1; color: #000; border: 1px solid #000; padding: 8px 14px; max-width: calc(100vw - 24px);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .4);
}
#toast.show { display: block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media (max-width: 640px) {
  .taskbar .ql-dl { display: none; }
}
@media (max-width: 400px) {
  .taskbar .sep { display: none; }
  .taskbar .btn { padding: 4px 8px; }
  .clock { padding: 0 6px; min-width: 0; }
  .desk { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 520px) {
  .wbody { padding: 10px; }
  .cta .btn { width: 100%; }
}

/* images */
.taskbar .start img { display: block; image-rendering: pixelated; }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.thumb { display: block; width: 100%; padding: 3px; background: var(--face); border: 0; box-shadow: var(--raised); cursor: pointer; }
.thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #000; box-shadow: var(--sunken); }
.thumb:focus-visible { outline: 1px dotted #000; outline-offset: 2px; background: #ffffa0; }
dialog.win { padding: 3px; border: 0; max-width: min(1100px, 96vw); width: auto; color: #000; }
dialog.win::backdrop { background: rgba(0, 64, 64, .7); }
dialog .wbody { padding: 6px; }
dialog.pw { width: min(380px, 92vw); }
.pw-row { display: flex; gap: 6px; }
.pw-eur { align-self: center; }
.pw input { font: inherit; padding: 4px 6px; min-height: 32px; background: #fff; color: #000; border: 0; box-shadow: var(--sunken); }
.pw input { flex: 1; min-width: 0; }
.pw-err { color: #a00000; min-height: 1.2em; margin: 0 0 6px; }
.pw-row + .fine { margin: 6px 0; }
dialog img { display: block; max-width: 100%; max-height: 80vh; height: auto; margin: 0 auto; }
.tbtn-x { width: 20px; height: 18px; padding: 0; border: 0; background: var(--face); color: #000; box-shadow: var(--raised); font: 700 11px/18px var(--sys); cursor: pointer; }
.tbtn-x:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }
.tbar .ico { width: 16px; height: 16px; image-rendering: pixelated; }
.hero-logo { display: block; margin: 8px auto 4px; image-rendering: pixelated; }

/* Tagline: first sentence balanced, the punchline always on its own line */
.pitch { text-wrap: balance; }
.pitch b { display: block; margin-top: .25em; }

.inp { font: inherit; padding: 4px 6px; background: #fff; border: 0; box-shadow: var(--sunken); min-width: 18em; max-width: 100%; }
.key code { font-size: 1.4em; font-weight: 700; letter-spacing: .05em; user-select: all; }

[hidden] { display: none !important; }

/* Consent screen (BIOS setup look). Only exists when GODSING_CONFIG.gaMeasurementId is set. */
html.bios-open { overflow: hidden; }
.bios { position: fixed; inset: 0; z-index: 1000; background: #00007a; color: #c0c0c0; font: 500 13px/1.45 var(--mono); overflow-y: auto; display: flex; align-items: flex-start; justify-content: center; padding: 12px; }
.bios-box { width: 100%; max-width: 680px; margin: auto; background: #00007a; }
.bios-row { display: flex; white-space: pre; overflow: hidden; line-height: 1; color: #c0c0c0; }
.bios-fill { flex: 1; overflow: hidden; min-width: 0; }
.bios-mid { display: flex; align-items: stretch; }
.bios-side { display: block; contain: size; white-space: pre; line-height: 1.45; overflow: hidden; color: #c0c0c0; width: 1ch; flex: none; }
.bios-in { flex: 1; min-width: 0; padding: 4px 10px; }
.bios-in p { margin: 0 0 10px; }
.bios-in a { color: #ffff55; }
.bios-head { text-align: center; color: #fff; margin-bottom: 4px; }
.bios-rule { overflow: hidden; white-space: nowrap; line-height: 1.2; margin: 6px 0; }
.bios-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 14px 0 10px; }
.bios-btn { font: 700 14px/1.2 var(--mono); min-width: 140px; min-height: 40px; padding: 8px 12px; background: transparent; color: #c0c0c0; border: 0; cursor: pointer; text-align: center; }
.bios-btn.sel { background: #c0c0c0; color: #00007a; }
.bios-btn:focus-visible { outline: 2px solid #ffff55; outline-offset: 2px; }
.bios-keys { text-align: center; color: #55ffff; font-size: 12px; }
@media (max-width: 480px) { .bios { padding: 6px; font-size: 12.5px; } .bios-btn { flex: 1 1 100%; } }

/* Hit counter (footer) */
.hc { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 6px 0 2px; font-size: 12px; }
.hc-row { display: inline-flex; align-items: center; gap: 6px; }
.hc-n { background: #000; color: #33ff33; font-family: "Courier New", monospace; font-weight: bold; letter-spacing: 2px; padding: 1px 5px; border: 2px solid; border-color: #808080 #fff #fff #808080; text-shadow: 0 0 3px #1a9a1a; }
.pw-has { font-weight: bold; margin: 0 0 6px; }
