/* twinspear.com. Afterhours: Night Slate ground, Frost text, a teal and pink mark.
   Pink is an accent only (the mark's right half, dots, underlines), never a fill or body text.
   Dark by design: the site keeps one look in both color schemes. */
@font-face { font-family: "Gabarito"; src: url("/fonts/gabarito.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --bg: #141922; --panel: #1c2330; --row: #253042; --line: #2a3342;
  --fg: #e8ecf2; --mut: #8f99a8; --teal: #46c7b8; --deep-teal: #16897c; --pink: #f2559e;
  --disp: "Gabarito", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --rad: 12px; --wrap: 1100px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--fg); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--disp); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header and footer */
.bar { border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; flex-wrap: wrap; }
.bar .logo img { height: 28px; width: auto; }
.nav { display: flex; gap: 22px; flex-wrap: wrap; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; color: var(--mut); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.foot { border-top: 1px solid var(--line); margin-top: 96px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-block: 32px 40px; color: var(--mut); font-size: 14px; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--mut); }
.foot a:hover { color: var(--fg); }

/* shared pieces */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--body); letter-spacing: 0.15em; text-transform: uppercase; color: var(--mut); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 8px; font: 600 16px/1 var(--body); text-decoration: none; border: 1px solid transparent; }
.btn-main { background: var(--teal); color: var(--bg); }
.btn-main:hover { background: #5fd6c8; }
.btn-line { border-color: var(--line); color: var(--fg); }
.btn-line:hover { border-color: var(--mut); }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.mark { display: block; height: 100%; width: auto; aspect-ratio: 50 / 90; }
.mark .l { fill: var(--teal); }
.mark .r { fill: var(--pink); }
.section { padding-top: 96px; }
.section-head { display: grid; gap: 14px; margin-bottom: 32px; max-width: 62ch; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 44px); }
.section-head p { color: var(--mut); }

/* home: hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 88px 40px; }
.hero h1 { font-size: clamp(42px, 7vw, 76px); margin-top: 22px; }
.hero .lede { font-size: 20px; color: #c4cbd6; margin: 22px 0 32px; max-width: 46ch; }
.hero-mark { position: relative; height: clamp(220px, 34vw, 380px); display: flex; justify-content: center; }
.hero-mark::before { content: ""; position: absolute; inset: -18% -4%; pointer-events: none;
  background: radial-gradient(closest-side at 40% 50%, rgba(70, 199, 184, 0.22), transparent 78%), radial-gradient(closest-side at 60% 50%, rgba(242, 85, 158, 0.2), transparent 78%); }
.hero-mark .mark { position: relative; }

/* home: DET-33 */
.feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad); overflow: hidden; }
.feature img { width: 100%; height: 100%; min-height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.feature-body { padding: 32px; display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.feature-body h3 { font-size: 40px; }
.feature-body p { color: #c4cbd6; }
.feature-meta { color: var(--mut); font-size: 14px; }
.feature .btns { margin-top: 8px; }

/* home: free games */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.card { min-width: 0; }
.card-link { display: flex; flex-direction: column; height: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad); overflow: hidden; text-decoration: none; color: var(--fg); transition: border-color 0.15s, transform 0.15s; }
.card-link:hover { border-color: var(--teal); transform: translateY(-2px); }
.card-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--row); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; flex: 1; }
.card-title { font: 700 21px/1.1 var(--disp); letter-spacing: -0.02em; }
.card-pitch { color: var(--mut); font-size: 15px; line-height: 1.5; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: auto; padding-top: 8px; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--row); color: #c4cbd6; }
.card-play { margin-left: auto; font-weight: 700; font-size: 14px; color: var(--teal); }
.card-play::after { content: " \2192"; }
.games-more { margin-top: 20px; color: var(--mut); font-size: 15px; }

/* home: about */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: start; }
.about p + p { margin-top: 14px; }
.about .copy { color: #c4cbd6; max-width: 58ch; }
.about .follow { margin-top: 22px; }

/* brand page */
.page-head { padding-block: 80px 8px; display: grid; gap: 18px; }
.page-head h1 { font-size: clamp(40px, 6.5vw, 68px); }
.page-head .lede { font-size: 19px; color: #c4cbd6; max-width: 58ch; }
.story { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 48px; align-items: center; }
.story .hero-mark { height: 300px; }
.story .copy { display: grid; gap: 14px; color: #c4cbd6; max-width: 58ch; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.file { border: 1px solid var(--line); border-radius: var(--rad); overflow: hidden; background: var(--panel); display: flex; flex-direction: column; }
.file-prev { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 28px; }
.file-prev img { max-height: 100%; width: auto; }
.file-prev.on-dark { background: var(--bg); }
.file-prev.on-light { background: #f4f6f9; }
.file-prev.on-mid { background: #6b7482; }
.file-body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.file-name { font-weight: 700; }
.file-note { color: var(--mut); font-size: 14px; }
.file-links { display: flex; gap: 14px; font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.file-links a { color: var(--teal); }
.kit { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.kit span { color: var(--mut); font-size: 14px; }
.rules { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 40px; align-items: start; }
.clear { background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad); padding: 18px; }
.clear svg { display: block; width: 100%; height: auto; }
.clear figcaption { color: var(--mut); font-size: 14px; margin-top: 10px; }
.rule-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 62ch; }
.rule-list b { color: var(--fg); }
.rule-list li { color: #c4cbd6; }
figure { margin: 0; }
.swatches { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.swatch { display: grid; gap: 3px; }
.swatch .chip { height: 88px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 10px; }
.swatch b { font-size: 16px; }
.swatch code { font: 500 14px/1.4 ui-monospace, "SF Mono", Menlo, monospace; color: var(--mut); }
.swatch span { font-size: 14px; color: #c4cbd6; }
.ratio { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin-bottom: 20px; border: 1px solid var(--line); }
.ratio i { display: block; }
.type { display: grid; gap: 0; }
.type-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px; padding-block: 24px; border-bottom: 1px solid var(--line); align-items: baseline; }
.type-row:first-child { border-top: 1px solid var(--line); }
.type-name { display: grid; gap: 4px; color: var(--mut); font-size: 14px; }
.type-name b { color: var(--fg); font-size: 16px; }
.type-name a { color: var(--teal); }
.spec-disp { font: 700 clamp(32px, 5vw, 54px)/1.05 var(--disp); letter-spacing: -0.025em; }
.spec-body { font-size: 18px; color: #c4cbd6; max-width: 56ch; }
.spec-label { font: 600 13px/1 var(--body); letter-spacing: 0.15em; text-transform: uppercase; }
.donts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.dont { display: grid; gap: 10px; min-width: 0; align-content: start; }
.dont .tile { width: 100%; aspect-ratio: 1; background: var(--panel); border: 1px solid var(--line); border-radius: var(--rad); display: grid; place-items: center; position: relative; }
.dont .tile svg { width: 34%; height: auto; aspect-ratio: 50 / 90; overflow: visible; }
.dont .tile::after { content: ""; position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--mut);
  background: linear-gradient(45deg, transparent 44%, var(--mut) 44% 56%, transparent 56%); }
.dont p { font-size: 14px; color: #c4cbd6; }
.voice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; }
.voice .tagline { font: 700 clamp(28px, 4vw, 40px)/1.1 var(--disp); letter-spacing: -0.025em; }
.voice ul { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; color: #c4cbd6; }

@media (max-width: 820px) {
  .hero .wrap, .feature, .about, .story, .rules, .voice { grid-template-columns: minmax(0, 1fr); }
  .hero .wrap { padding-block: 48px 16px; gap: 24px; }
  .hero-mark { order: -1; height: 200px; justify-content: flex-start; }
  .story .hero-mark { height: 220px; order: 0; justify-content: center; }
  .type-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .section { padding-top: 72px; }
  .feature-body { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { .card-link { transition: none; } .card-link:hover { transform: none; } }
