/* dettygame.com: DettyGame Studios, the parent studio. Its own identity, not any one game's:
   Void (near-black) and Bone (warm off-white), with Volt as the one accent; Unbounded for display, Inter Tight for text,
   both self-hosted (OFL-1.1). The policy allows only this file for styles and /studio.js for script. 44 px touch targets,
   a 16 px gutter on phones, nothing wider than the screen from 320 px up; every movement sits under
   prefers-reduced-motion: no-preference, and the page reads fully with no script at all. */

@font-face { font-family: 'Unbounded'; src: url('/fonts/unbounded.09882553.woff2') format('woff2'); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('/fonts/inter-tight.ca34455f.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --void: #07070a;
  --void-2: #0e0e13;
  --void-3: #16161d;
  --bone: #f4f1ea;
  --mute: #a3a3ad;
  --dim: #6c6c78;
  --line: rgba(244, 241, 234, 0.1);
  --line-2: rgba(244, 241, 234, 0.18);
  --volt: #c8ff2e;
  --volt-hi: #dbff73;
  --volt-glow: rgba(200, 255, 46, 0.35);
  --violet: #6d4cff;
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --text: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: 16px;
  --max: 1240px;
  --nav: 68px;
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav) + 12px); }
body { margin: 0; overflow-x: hidden; background: var(--void); color: var(--bone); font-family: var(--text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::after { content: ''; position: fixed; inset: 0; z-index: 100; pointer-events: none; background: url('/grain.svg'); opacity: 0.05; mix-blend-mode: overlay; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 4px; border-radius: 6px; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.display { font-family: var(--display); font-weight: 800; line-height: 0.98; letter-spacing: -0.02em; text-transform: uppercase; }
.skip { position: absolute; z-index: 200; left: 12px; top: -120px; padding: 12px 18px; border-radius: 999px; background: var(--volt); color: var(--void); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Kicker: a small label with a live dot. */
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--mute); font-size: 12px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.kicker::before { content: ''; width: 22px; height: 1px; background: var(--volt); }
.hero .kicker::before { display: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 0 0 var(--volt-glow); }

/* Buttons. */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.btn.volt { background: var(--volt); color: var(--void); box-shadow: 0 10px 40px -12px var(--volt-glow); }
.btn.volt:hover { background: var(--volt-hi); }
.btn.ghost { border: 1px solid var(--line-2); background: rgba(244, 241, 234, 0.04); color: var(--bone); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn.ghost:hover { border-color: var(--bone); }
.arrow { display: inline-block; }
.btn:hover .arrow { transform: translate(2px, -2px); }

/* Chips. */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(7, 7, 10, 0.6); color: var(--bone); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.chip.live { border-color: rgba(200, 255, 46, 0.45); color: var(--volt); }

/* ----- Navigation ------------------------------------------------------------------------------------------------ */
.nav { position: fixed; z-index: 50; inset: 0 0 auto; height: var(--nav); border-bottom: 1px solid transparent; }
.nav.scrolled { border-bottom-color: var(--line); background: rgba(7, 7, 10, 0.72); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
.nav-in { display: flex; align-items: center; gap: 24px; max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-left)); }
.nav-logo { display: inline-flex; align-items: center; min-height: 44px; }
.nav-logo img { width: 156px; }
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav-links a:not(.btn) { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--mute); font-size: 15px; font-weight: 500; text-decoration: none; }
.nav-links a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 8px; height: 2px; background: var(--volt); }
.nav-links a:not(.btn):hover, .nav-links a[aria-current='true'] { color: var(--bone); }
.nav-links a:not(.btn):hover::after, .nav-links a[aria-current='true']::after { right: 0; }
.nav-play { min-height: 44px; padding: 0 20px; font-size: 12px; }
.nav-toggle { display: none; position: relative; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; cursor: pointer; }
.nav-toggle i { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--bone); }
.nav-toggle i:first-of-type { top: 17px; }
.nav-toggle i:last-of-type { top: 24px; }
.nav-toggle[aria-expanded='true'] i:first-of-type { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] i:last-of-type { top: 21px; transform: rotate(-45deg); }

/* Phones: the links fold into a full-screen sheet once the script runs; without it they stay a wrapped row. */
@media (max-width: 899px) {
  .js .nav-toggle { display: block; }
  .js .nav-links { position: fixed; inset: var(--nav) 0 0; flex-direction: column; align-items: flex-start; gap: 6px; padding: 28px var(--gutter) max(28px, env(safe-area-inset-bottom)); background: var(--void); visibility: hidden; opacity: 0; }
  .js .nav-links.open { visibility: visible; opacity: 1; }
  .js .nav-links a:not(.btn) { min-height: 60px; color: var(--bone); font-family: var(--display); font-size: 30px; font-weight: 700; text-transform: uppercase; }
  .js .nav-links a:not(.btn)::after { display: none; }
  .js .nav-play { align-self: stretch; margin-top: auto; min-height: 56px; }
  /* A backdrop filter would make the header the fixed sheet's containing block: none while the menu is open. */
  .js .nav.menu { background: var(--void); -webkit-backdrop-filter: none; backdrop-filter: none; }
  html:not(.js) .nav-links { gap: 14px; }
  html:not(.js) .nav-play { display: none; }
  html:not(.js) .nav-links a:not(.btn) { font-size: 14px; }
}
@media (max-width: 479px) { html:not(.js) .nav-links a[data-spy='news'] { display: none; } }

/* ----- Hero ------------------------------------------------------------------------------------------------------ */
.hero { --mx: 70%; --my: 30%; position: relative; display: grid; align-items: center; min-height: 100svh; padding: calc(var(--nav) + 40px) 0 96px; overflow: hidden; isolation: isolate; }
.hero-glow { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(600px circle at var(--mx) var(--my), rgba(200, 255, 46, 0.16), transparent 60%),
  radial-gradient(900px circle at 85% 10%, rgba(109, 76, 255, 0.28), transparent 60%),
  radial-gradient(700px circle at 0% 100%, rgba(109, 76, 255, 0.14), transparent 60%); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); opacity: 0.5; }
.hero-in { display: grid; gap: 48px; align-items: center; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 1000px) { .hero-in { grid-template-columns: 1.25fr 1fr; gap: 56px; } }
.hero-copy { container-type: inline-size; }
/* Sized to its column: EVERYWHERE. (the longest line) always fits. */
.hero-title { margin-top: 22px; font-size: clamp(30px, 10.6cqi, 96px); }
.hero-in > * { min-width: 0; }
.hero-title .line { display: block; }
.outline { color: var(--volt); }
.hero-lede { max-width: 540px; margin-top: 26px; color: var(--mute); font-size: clamp(17px, 1.6vw, 20px); }
.hero-go { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-card { position: relative; display: block; aspect-ratio: 4 / 5; max-height: 72svh; overflow: hidden; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--void-3); box-shadow: 0 40px 120px -40px rgba(109, 76, 255, 0.55); text-decoration: none; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
@media (max-width: 999px) { .hero-card { aspect-ratio: 16 / 10; } }
.hero-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 7, 10, 0) 45%, rgba(7, 7, 10, 0.92) 100%); }
.hero-card-info { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 22px; display: grid; justify-items: start; gap: 8px; }
.hero-card-name { font-family: var(--display); font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: 1; text-transform: uppercase; }
.hero-card-sub { color: var(--mute); font-size: 14px; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; display: grid; place-items: center; width: 44px; height: 44px; margin-left: -22px; }
.scroll-cue span { width: 22px; height: 36px; border: 1.5px solid var(--line-2); border-radius: 12px; }
.scroll-cue span::after { content: ''; display: block; width: 3px; height: 8px; margin: 7px auto 0; border-radius: 2px; background: var(--volt); }
@media (max-height: 700px), (max-width: 999px) { .scroll-cue { display: none; } }

/* ----- Ticker ------------------------------------------------------------------------------------------------------ */
.ticker { overflow: hidden; border-block: 1px solid var(--void); background: var(--volt); color: var(--void); transform: rotate(-1.2deg) scale(1.02); }
.ticker-track { display: flex; width: max-content; gap: 28px; padding: 16px 0; font-family: var(--display); font-size: clamp(16px, 2vw, 22px); font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; }
.ticker b { font-weight: 400; }

/* ----- Sections ---------------------------------------------------------------------------------------------------- */
.section { position: relative; padding: clamp(80px, 12vw, 160px) 0; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.row { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 800px) { .section-head.row { grid-template-columns: 1fr auto; } }
.section h2 { font-size: clamp(34px, 6.4vw, 76px); max-width: 15ch; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--mute); font-weight: 600; text-decoration: none; }
.link-arrow:hover { color: var(--volt); }

/* Games: the feature card. */
.feature { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); background: linear-gradient(160deg, var(--void-3), var(--void-2)); }
@media (min-width: 1000px) { .feature { grid-template-columns: 1.35fr 1fr; } }
.feature-media { position: relative; min-height: 280px; background: var(--void); }
.feature-media video { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
@media (min-width: 1000px) { .feature-media video { position: absolute; inset: 0; aspect-ratio: auto; } }
.feature-caption { position: absolute; left: 18px; right: 18px; bottom: 16px; color: var(--bone); font-size: 13px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9); }
.feature-media::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(7, 7, 10, 0.8)); }
.feature-caption { z-index: 1; }
.feature-body { display: grid; align-content: start; gap: 18px; padding: clamp(24px, 4vw, 44px); }
.feature-id { display: flex; align-items: center; gap: 16px; }
.feature-icon { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line-2); }
.feature-id h3 { margin-top: 10px; font-size: clamp(28px, 3.4vw, 42px); }
.feature-genre { color: var(--volt); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.feature-body > p:not(.feature-genre) { color: var(--mute); }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.platforms li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--bone); font-size: 13px; font-weight: 600; }
.platforms svg { width: 18px; height: 18px; fill: none; stroke: var(--volt); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.platforms svg circle { fill: var(--volt); stroke: none; }
.clips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.clip { position: relative; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--void); color: var(--bone); font: inherit; cursor: pointer; aspect-ratio: 16 / 10; }
.clip img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.clip span { position: absolute; left: 8px; bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-shadow: 0 1px 8px #000; }
.clip:hover img { opacity: 0.85; }
.clip[aria-pressed='true'] { border-color: var(--volt); box-shadow: 0 0 0 1px var(--volt); }
.clip[aria-pressed='true'] img { opacity: 1; }
html:not(.js) .clips { display: none; }
.feature-go { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* Newswire. */
.news-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .news-grid { grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; } .news-grid .post:first-child { grid-row: span 2; } }
.post { display: grid; align-content: start; gap: 10px; padding: 12px 12px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--void-2); color: inherit; text-decoration: none; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.post picture { overflow: hidden; border-radius: calc(var(--radius) - 8px); }
.post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post:hover img { transform: scale(1.04); }
.post:hover { border-color: var(--line-2); }
.post-meta, .post-title, .post-text { padding: 0 10px; }
.post-meta { display: flex; align-items: center; gap: 12px; margin-top: 8px; color: var(--dim); font-size: 13px; }
.tag { padding: 3px 10px; border-radius: 999px; background: rgba(200, 255, 46, 0.12); color: var(--volt); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.post-title { font-family: var(--display); font-size: clamp(18px, 2vw, 22px); font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.news-grid .post:first-child .post-title { font-size: clamp(22px, 2.8vw, 34px); }
.post-text { color: var(--mute); font-size: 15px; }

/* Studio. */
.studio { background: radial-gradient(640px circle at 88% 38%, rgba(109, 76, 255, 0.16), transparent 70%); }
.statement { margin-top: 24px; font-size: clamp(30px, 5.4vw, 70px); line-height: 1.05; }
.statement .w { color: var(--dim); }
.statement .w.lit { color: var(--bone); }
.statement .w.hot { color: var(--volt); }
.pillars { display: grid; gap: 14px; margin-top: clamp(48px, 7vw, 96px); }
@media (min-width: 800px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { display: grid; gap: 12px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--void-2), transparent); }
.pillar .num { color: var(--volt); font-family: var(--display); font-size: 13px; font-weight: 700; }
.pillar h3 { font-family: var(--display); font-size: 22px; font-weight: 700; text-transform: uppercase; }
.pillar p { color: var(--mute); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.stats > div { display: flex; flex-direction: column-reverse; gap: 6px; padding: clamp(18px, 3vw, 32px); }
.stats > div + div { border-left: 1px solid var(--line); }
.stats dt { color: var(--mute); font-size: clamp(12px, 1.4vw, 14px); }
.stats dd { font-family: var(--display); font-size: clamp(34px, 6vw, 72px); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }

/* Contact. */
.contact-card { --mx: 50%; --my: 0%; position: relative; overflow: hidden; isolation: isolate; padding: clamp(36px, 7vw, 88px) clamp(22px, 6vw, 72px); border: 1px solid var(--line-2); border-radius: calc(var(--radius) + 10px); background: var(--void-2); text-align: center; }
.contact-card h2 { margin: 18px auto 18px; }
.contact-card > p { max-width: 560px; margin: 0 auto; color: var(--mute); }
.contact-card .hiring { margin-top: 14px; font-size: 15px; }
.contact-card .hiring b { color: var(--bone); }
.socials { display: grid; gap: 12px; max-width: 880px; margin: 40px auto 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .socials { grid-template-columns: repeat(3, 1fr); } }
.socials a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; min-height: 76px; padding: 14px 22px; border: 1px solid var(--line-2); border-radius: 18px; background: rgba(7, 7, 10, 0.5); color: var(--bone); text-align: left; text-decoration: none; }
.socials a span { font-family: var(--display); font-size: 16px; font-weight: 700; text-transform: uppercase; }
.socials a small { grid-row: 2; color: var(--mute); font-size: 14px; }
.socials a b { grid-row: span 2; grid-column: 2; font-size: 22px; font-weight: 400; }
.socials a:hover { border-color: var(--volt); }
.socials a:hover b { color: var(--volt); }

/* Footer. */
.foot { padding: 72px 0 max(28px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--void-2); color: var(--mute); font-size: 14px; overflow: hidden; }
.foot-top { display: grid; gap: 40px; }
@media (min-width: 800px) { .foot-top { grid-template-columns: 1fr auto; } }
.foot-logo { width: 220px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: 24px 56px; }
.foot-cols h4 { margin: 0 0 8px; color: var(--dim); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.foot-cols a { display: flex; align-items: center; min-height: 40px; color: var(--bone); text-decoration: none; }
.foot-cols a:hover { color: var(--volt); }
.foot-giant { margin: 56px 0 24px; color: var(--void-3); font-size: clamp(40px, 12.2vw, 168px); line-height: 0.85; letter-spacing: -0.04em; white-space: nowrap; }
.foot-bottom { display: grid; gap: 6px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
@media (min-width: 900px) { .foot-bottom { grid-template-columns: 1fr auto; } }

/* The 404. */
.lost { display: grid; place-items: center; min-height: 100svh; padding: 48px var(--gutter); text-align: center; }
.lost > div { display: grid; justify-items: center; gap: 20px; }
.lost h1 { font-size: clamp(48px, 12vw, 120px); }
.lost p { color: var(--mute); }

/* ----- Motion: only for those who have not asked for less ----------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn, .nav-links a, .nav-links a::after, .chip, .clip img, .post, .post img, .socials a, .socials a b, .nav-toggle i, .link-arrow, .arrow, .statement .w { transition: all 0.35s var(--ease); }
  .nav { transition: background 0.3s, border-color 0.3s; }
  .js .nav-links { transition: opacity 0.3s var(--ease), visibility 0.3s; }
  .hero-card, .post { transition: transform 0.4s var(--ease), border-color 0.3s; }
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
  .ticker-track { animation: ticker 32s linear infinite; }
  .live .dot, .kicker .dot { animation: pulse 2s infinite; }
  .scroll-cue span::after { animation: cue 1.8s var(--ease) infinite; }
}
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--volt-glow); } 70% { box-shadow: 0 0 0 10px rgba(200, 255, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 255, 46, 0); } }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
