/* gigantua.net - one stylesheet. The game's own palette (Gridgame.Engine/Core/Palette.cs): deep navy/black field, HUD cyan
   #7de8ff, round gold #ffd24a, hull white #e8f6ff. The painted key art carries the colour; the chrome stays quiet. */
@font-face { font-family: "Cascadia Mono"; src: url("/fonts/CascadiaMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cascadia Mono"; src: url("/fonts/CascadiaMono-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #03050b;
  --panel: #0a1326;
  --panel-2: #0d1a33;
  --line: rgba(125, 232, 255, 0.14);
  --line-strong: rgba(125, 232, 255, 0.4);
  --cyan: #7de8ff;
  --gold: #ffd24a;
  --text: #d7e3f0;
  --text-strong: #eef8ff;
  --muted: #8b9fb8;
  --danger: #ff5a4a;
  --ok: #2ee6b8;
  --mono: "Cascadia Mono", ui-monospace, "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --r: 3px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); min-height: 100vh; display: flex; flex-direction: column; }
body.grid-bg {
  background-image: linear-gradient(rgba(125, 232, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(125, 232, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
main { flex: 1; }
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: var(--text-strong); }
h1, h2, h3 { font-family: var(--mono); color: var(--text-strong); line-height: 1.2; letter-spacing: 0.02em; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.05rem, 2.2vw, 1.3rem); text-transform: uppercase; letter-spacing: 0.14em; }
h2 .k { color: var(--gold); }
h3 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section { padding: 64px 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.section-head h2 { margin: 0; }
.section-head .aside { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* header */
.site-head { position: sticky; top: 0; z-index: 30; background: #03050b; border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 58px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-strong); font: 700 0.95rem/1 var(--mono); letter-spacing: 0.2em; }
.brand img { width: 30px; height: 30px; border-radius: 6px; }
.brand b { color: var(--gold); }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; align-items: center; font-family: var(--mono); font-size: 0.86rem; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--cyan); }
.nav .nav-buy { color: #120d00; background: var(--gold); padding: 7px 12px; border-radius: var(--r); font-weight: 700; letter-spacing: 0.06em; }
.nav .nav-buy:hover { color: #120d00; background: #ffe07a; }
@media (max-width: 640px) { .nav .nav-in { display: none; } }

/* footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 88px; padding: 30px 0 40px; color: var(--muted); font-size: 0.875rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--mono); }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--cyan); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  font: 700 0.92rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  padding: 0 22px; border-radius: var(--r); border: 1px solid var(--gold); cursor: pointer;
  background: var(--gold); color: #120d00; transition: background-color 0.12s, color 0.12s, border-color 0.12s, transform 0.12s;
}
.btn:hover { background: #ffe07a; color: #120d00; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.btn.ghost { background: rgba(3, 5, 11, 0.55); color: var(--cyan); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--cyan); background: rgba(125, 232, 255, 0.1); color: var(--text-strong); }
.btn.gold-ghost { background: transparent; color: var(--gold); }
.btn.gold-ghost:hover { background: rgba(255, 210, 74, 0.1); color: var(--gold); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.btn .os { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn small { font-weight: 400; letter-spacing: 0.02em; text-transform: none; opacity: 0.8; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.tag { display: inline-block; font: 700 0.72rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); border: 1px solid var(--line-strong); padding: 5px 8px; border-radius: 2px; }

/* hero */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; overflow: hidden; background: #000; border-bottom: 1px solid var(--line); }
.hero > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero canvas { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; pointer-events: none; opacity: 0.9; mix-blend-mode: screen; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(3, 5, 11, 0.97) 6%, rgba(3, 5, 11, 0.55) 38%, rgba(3, 5, 11, 0) 70%), linear-gradient(to right, rgba(3, 5, 11, 0.7), rgba(3, 5, 11, 0) 55%); pointer-events: none; }
.hero .inner { position: relative; z-index: 2; width: 100%; padding-bottom: 44px; padding-top: 120px; }
.hero .logo { width: min(500px, 82vw); height: auto; margin: 0 0 4px -10px; mix-blend-mode: screen; }
.hero .tagline { font: 400 clamp(1rem, 2.2vw, 1.25rem)/1.4 var(--mono); color: var(--text-strong); margin: 0 0 22px; max-width: 34ch; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hero-block { margin-top: 22px; }
.hero-label { font: 700 0.78rem/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.hero-label span { color: var(--muted); font-weight: 400; letter-spacing: 0.08em; margin-left: 8px; text-transform: none; }
.hero .platforms-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .fine { margin: 14px 0 0; font: 0.8rem/1.4 var(--mono); color: var(--muted); letter-spacing: 0.04em; }
.price-pill { font: 700 1.05rem/1 var(--mono); }
@media (max-width: 640px) {
  .hero { min-height: 88vh; }
  .hero > picture img { object-position: 50% 30%; }
  .hero .btn { width: 100%; }
  .hero .platforms-row { width: 100%; }
  .hero .platforms-row .btn { flex: 1 1 30%; width: auto; padding: 0 10px; }
  .stores { gap: 8px; }
}

/* also available on */
.stores { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; }
.store-link { display: inline-flex; align-items: center; justify-content: center; height: 48px; border-radius: 8px; text-decoration: none; transition: transform 0.12s, box-shadow 0.12s; }
.store-link:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--line-strong); }
.store-link img { height: 100%; width: auto; }
.store-link.pad img { height: 68px; margin: -10px -8px; } /* Google's badge ships with its own clear space */
.store-text { height: 48px; padding: 0 14px; border: 1px solid #a6a6a6; border-radius: 8px; background: #000; color: #fff; display: inline-flex; flex-direction: column; justify-content: center; line-height: 1.15; font-family: var(--sans); }
.store-text small { font-size: 0.7rem; opacity: 0.85; }
.store-text b { font-size: 1.02rem; font-weight: 600; }
.store-text:hover { color: #fff; border-color: #fff; }
.store-logo { align-items: flex-start; gap: 3px; }
.store-logo img { height: 24px; width: auto; }
.stores-note { margin: 10px 0 0; }

/* trailer + intro */
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }
.facade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #000; padding: 0; cursor: pointer; color: var(--text-strong); text-decoration: none; }
.facade img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s, filter 0.2s; filter: brightness(0.8); }
.facade:hover img { transform: scale(1.02); filter: brightness(0.95); }
.facade .play { position: absolute; inset: 0; display: grid; place-items: center; }
.facade .play span { display: inline-flex; align-items: center; gap: 12px; font: 700 0.95rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; background: rgba(3, 5, 11, 0.82); border: 1px solid var(--gold); color: var(--gold); padding: 16px 22px; border-radius: var(--r); }
.facade .play svg { width: 18px; height: 18px; fill: currentColor; }
.facade iframe { width: 100%; height: 100%; border: 0; }
.lead-text p { color: var(--text); }
.lead-text p:first-child { font-size: 1.08rem; color: var(--text-strong); }

/* feature blocks */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.15s; }
.feature:hover { border-color: var(--line-strong); }
.feature img { flex: none; aspect-ratio: 16 / 9; height: auto; object-fit: cover; width: 100%; border-bottom: 1px solid var(--line); }
.feature .body { padding: 16px 18px 18px; }
.feature h3 { margin: 0 0 6px; color: var(--gold); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; }
.feature p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 8px 28px; }
.checklist li { padding-left: 22px; position: relative; font-size: 0.95rem; }
.checklist li::before { content: ">"; position: absolute; left: 0; color: var(--cyan); font-family: var(--mono); font-weight: 700; }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shots button { padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: #000; cursor: zoom-in; overflow: hidden; }
.shots button:hover { border-color: var(--cyan); }
.shots img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform 0.3s; }
.shots button:hover img { transform: scale(1.03); }
dialog.lightbox { padding: 0; border: 1px solid var(--line-strong); background: #000; max-width: min(96vw, 1600px); width: 100%; color: var(--text); }
dialog.lightbox::backdrop { background: rgba(2, 3, 8, 0.92); }
dialog.lightbox img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
dialog.lightbox .bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px; font-family: var(--mono); font-size: 0.85rem; color: var(--muted); flex-wrap: wrap; }
dialog.lightbox .bar button { background: none; border: 1px solid var(--line-strong); color: var(--cyan); font: inherit; padding: 6px 10px; cursor: pointer; border-radius: 2px; }

/* buy */
.buy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 28px; align-items: start; }
@media (max-width: 900px) { .buy-grid { grid-template-columns: 1fr; } }
.buy { border-color: rgba(255, 210, 74, 0.55); }
.buy .amount { font: 700 2.4rem/1 var(--mono); color: var(--gold); }
.buy .vat { color: var(--muted); font-size: 0.85rem; margin: 6px 0 16px; }
.facts { list-style: none; padding: 0; margin: 0 0 18px; font-size: 0.9rem; }
.facts li { padding: 7px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; }
.facts li span:first-child { color: var(--muted); font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; padding-top: 2px; flex: none; }
.facts li span:last-child { text-align: right; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 0.88rem; margin: 0 0 12px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold); cursor: pointer; }
#paypal-buttons { margin-top: 16px; min-height: 48px; }
.pay-placeholder { border: 1px dashed var(--line-strong); border-radius: var(--r); padding: 14px; text-align: center; font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }
.sandbox-flag { font: 700 0.75rem/1.3 var(--mono); color: #120d00; background: var(--gold); padding: 6px 10px; border-radius: 2px; margin-bottom: 14px; letter-spacing: 0.06em; }
.get-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.get-list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.get-list .n { font: 700 0.9rem/34px var(--mono); color: var(--gold); border: 1px solid rgba(255, 210, 74, 0.45); border-radius: 50%; width: 34px; height: 34px; text-align: center; }
.get-list b { color: var(--text-strong); font-family: var(--mono); font-weight: 700; }

.notice { border-left: 3px solid var(--cyan); background: rgba(125, 232, 255, 0.06); padding: 12px 14px; border-radius: 0 var(--r) var(--r) 0; font-size: 0.9rem; margin: 14px 0; }
.notice.error { border-left-color: var(--danger); background: rgba(255, 90, 74, 0.08); }
.notice.ok { border-left-color: var(--ok); background: rgba(46, 230, 184, 0.07); }
.notice.gold { border-left-color: var(--gold); background: rgba(255, 210, 74, 0.07); }

/* reviews invite, requirements, faq */
.invite { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.invite p { margin: 0; max-width: 60ch; }
.invite .links { display: flex; gap: 8px 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 0.88rem; }
.reqs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.reqs .panel h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.reqs .panel h3 span { font-size: 0.75rem; color: var(--muted); font-weight: 400; letter-spacing: 0.06em; }
.reqs ul { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; }
.reqs li { padding: 6px 0; border-top: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 4px; font-family: var(--mono); color: var(--text-strong); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-weight: 700; }
.faq details[open] summary::after { content: "-"; }
.faq details p { padding: 0 4px 14px; margin: 0; color: var(--text); max-width: 75ch; }

/* redeem */
.field { display: flex; gap: 10px; flex-wrap: wrap; }
.field input { flex: 1 1 280px; min-width: 0; font: 700 1.25rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; padding: 14px; background: #02040a; color: var(--text-strong); border: 1px solid var(--line-strong); border-radius: var(--r); }
.field input::placeholder { color: #3a4a62; }
.code-big { font: 700 clamp(1.3rem, 5vw, 2.1rem)/1.2 var(--mono); color: var(--gold); letter-spacing: 0.1em; word-break: break-all; margin: 6px 0 10px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.dl-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.dl-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; background: rgba(3, 5, 11, 0.6); border: 1px solid var(--line); border-radius: var(--r); }
.dl-list .what b { font-family: var(--mono); color: var(--text-strong); }
.saved-codes { list-style: none; padding: 0; margin: 0; font-family: var(--mono); }
.saved-codes li { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); }
.saved-codes button { background: none; border: 0; color: var(--cyan); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }

/* prose + about */
.prose { max-width: 800px; }
.prose h2 { margin-top: 2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.3em 0; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; }
.prose dt { font-family: var(--mono); color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; padding-top: 2px; }
.prose dd { margin: 0; }
@media (max-width: 560px) { .prose dl { grid-template-columns: 1fr; } .prose dd { margin-bottom: 8px; } }
.page-head { padding: 52px 0 8px; }
.about-art { border: 1px solid var(--line); border-radius: var(--r); margin: 8px 0 24px; width: 100%; height: auto; }
.tech { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; margin: 16px 0; }
.tech div { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; background: var(--panel); }
.tech b { display: block; font-family: var(--mono); color: var(--gold); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.tech span { font-size: 0.92rem; }
.platform-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.platform-list li { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: var(--panel); }
.platform-list b { display: block; font-family: var(--mono); color: var(--text-strong); }
.platform-list span { color: var(--muted); font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  body { background: #fff; color: #000; }
  .site-head, .site-foot, .no-print { display: none !important; }
  .panel { border-color: #999; background: #fff; }
  .code-big { color: #000; }
}
