/* Death Galaxy Esports — "Orbit".
   Art direction: a cinematic skull-planet hangs in deep space; the orbit around it is a ring of type that
   passes behind the planet and comes out in front. Scroll flies the camera into the planet, then the
   manifesto fills in word by word, then the recruitment console and partnership call.
   Bone for big type, violet only as light, orange only for live states and the primary action.
   Fonts: Dela Gothic One (artakana) + Bricolage Grotesque (Mathieu Triay), SIL OFL 1.1.
   Art: generated for this site (brand/art). Motion: GSAP + ScrollTrigger + SplitText, Lenis. */

@font-face { font-family: "Dela Gothic One"; src: url("fonts/dela-gothic-one-latin.woff2") format("woff2"); font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Dela Gothic One"; src: url("fonts/dela-gothic-one-latin-ext.woff2") format("woff2"); font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --void: #07051a;
  --night: #120c2c;
  --line: rgba(246, 239, 221, .12);
  --violet: #5a3df0;
  --violet-glow: #8a74ff;
  --bone: #f6efdd;
  --dim: #9d97bd;
  --comet: #ff6b3d;
  --display: "Dela Gothic One", "Arial Black", sans-serif;
  --text: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --edge: clamp(1.25rem, 4vw, 3.5rem);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--void); overflow-x: clip; scrollbar-color: #3a2f7a var(--void); scrollbar-width: thin; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  color: var(--bone);
  background: var(--void);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--comet); outline-offset: 4px; }
::selection { background: var(--comet); color: var(--void); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: .98; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
.wrap { width: min(80rem, 100% - 2 * var(--edge)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: -999px; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bone); color: var(--void); padding: .5rem 1rem; }

/* Grain over everything, very quiet */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: url("art/grain.png");
  opacity: .5;
}

/* Loader (only when JS adds .is-loading) */
.loader { display: none; }
.is-loading .loader {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  background: var(--void);
}
.loader-inner { display: grid; justify-items: center; gap: 1.25rem; }
.loader img { width: 84px; height: 84px; }
.loader-count { font: 400 clamp(3rem, 10vw, 7rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.loader-bar { width: 12rem; height: 2px; background: var(--line); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 100%; background: var(--comet); transform-origin: left; transform: scaleX(0); }

/* Cursor reticle (fine pointers, motion on) */
.reticle { display: none; }
.has-reticle .reticle {
  display: block; position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1.5px solid rgba(246, 239, 221, .7); border-radius: 50%;
  transition: width .25s, height .25s, margin .25s, border-color .25s, background .25s;
}
.has-reticle .reticle::before { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--bone); }
.has-reticle .reticle.hot { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--comet); background: rgba(255, 107, 61, .12); }
.has-reticle, .has-reticle a, .has-reticle button, .has-reticle select, .has-reticle label { cursor: none; }
.has-reticle input, .has-reticle textarea { cursor: text; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s; }
.nav.scrolled { background: rgba(7, 5, 26, .62); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.brand span { font: 400 .95rem/1.05 var(--display); }
.nav nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); font-weight: 600; font-size: .95rem; }
.nav nav a { text-decoration: none; color: var(--dim); transition: color .2s; }
.nav nav a:hover { color: var(--bone); }
.nav nav .pill { color: var(--void); background: var(--bone); padding: .55rem 1rem; border-radius: 999px; transition: background .2s; }
.nav nav .pill:hover { color: var(--void); background: var(--comet); }

/* Hero */
.hero { position: relative; height: 100svh; min-height: 640px; }

/* One persistent world behind the whole page; scroll moves the camera through it */
.world { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--void); }
.world > div { position: absolute; inset: 0; }
.w-nebula img, .w-debris img, .w-surface img { width: 100%; height: 100%; object-fit: cover; }
.w-nebula { inset: -8% !important; }
.w-debris { inset: -8% !important; }
.w-surface { opacity: 0; top: 30% !important; bottom: -45% !important; left: -6% !important; right: -6% !important; -webkit-mask: linear-gradient(transparent, #000 25%); mask: linear-gradient(transparent, #000 25%); }
.w-surface img { opacity: .8; }
.w-debris { opacity: .75; }
.w-shade { background: radial-gradient(130% 100% at 62% 45%, transparent 35%, rgba(7, 5, 26, .9) 100%); }

.stage {
  position: absolute;
  width: min(62vw, 98vh); aspect-ratio: 1400 / 935;
  left: 66%; top: 44%;
  translate: -50% -50%;
}
.stage-inner { position: absolute; inset: 0; }
.stage .planet { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; filter: drop-shadow(0 0 60px rgba(138, 116, 255, .35)); }
.stage .glow {
  position: absolute; z-index: 1; left: 38%; top: 42%; width: 44%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 61, .35), rgba(90, 61, 240, .25) 45%, transparent 70%);
  filter: blur(20px);
}
.orbit { position: absolute; left: -22%; top: -18%; width: 144%; height: 136%; overflow: visible; }
.orbit.back { z-index: 0; opacity: .5; }
.orbit.front { z-index: 3; }
.orbit text { font: 800 20px/1 var(--text); letter-spacing: .34em; fill: var(--bone); }
.orbit.back text { fill: var(--violet-glow); }
.orbit .track { fill: none; stroke: rgba(246, 239, 221, .16); stroke-width: 1; }

.hero-copy { position: absolute; z-index: 5; left: var(--edge); bottom: clamp(2rem, 7vh, 5rem); max-width: 46rem; }
.hero-copy::before { content: ""; position: absolute; z-index: -1; inset: -30% -40% -20% -30%; background: radial-gradient(closest-side, rgba(7, 5, 26, .75), transparent); pointer-events: none; }
.status { display: inline-flex; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 600; padding: .45rem .9rem .45rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(7, 5, 26, .45); backdrop-filter: blur(6px); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--comet); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 107, 61, .7); } 70%, 100% { box-shadow: 0 0 0 10px rgba(255, 107, 61, 0); } }
.hero h1 { margin-top: 1.2rem; font-size: clamp(3.2rem, 8.4vw, 8.2rem); line-height: .9; text-shadow: 0 10px 40px rgba(7, 5, 26, .6); }
.hero .lede { margin-top: 1.2rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #d8d2ec; max-width: 34rem; }
.hero .cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.scroll-cue { position: absolute; z-index: 5; right: var(--edge); bottom: clamp(2rem, 7vh, 5rem); display: flex; align-items: center; gap: .8rem; color: var(--dim); font-size: .9rem; font-weight: 600; }
.scroll-cue span { width: 1px; height: 54px; background: linear-gradient(var(--bone), transparent); animation: drip 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.btn {
  position: relative; display: inline-flex; align-items: center; gap: .6rem; overflow: hidden; isolation: isolate;
  font: 400 1rem/1 var(--display); text-decoration: none; cursor: pointer;
  padding: 1.05rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  transition: color .3s, border-color .3s, transform .2s;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.btn:hover::before { transform: none; }
.btn-solid { background: var(--comet); color: var(--void); }
.btn-solid::before { background: var(--bone); }
.btn-line { color: var(--bone); border-color: rgba(246, 239, 221, .35); }
.btn-line::before { background: var(--bone); }
.btn-line:hover { color: var(--void); border-color: var(--bone); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Manifesto: words fill from outline to bone with scroll */
.manifesto { position: relative; padding: clamp(7rem, 16vh, 11rem) 0 clamp(3rem, 6vh, 5rem); isolation: isolate; }
.manifesto .words { display: grid; gap: .12em; font: 400 clamp(3rem, 10.5vw, 10.5rem)/.95 var(--display); letter-spacing: -.03em; }
.manifesto .word {
  display: block; width: max-content; max-width: 100%;
  color: transparent; -webkit-text-stroke: 1.5px rgba(246, 239, 221, .28);
  background: linear-gradient(90deg, var(--bone) 0 50%, transparent 50% 100%) no-repeat;
  background-size: 200% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
}
.manifesto .word:nth-child(2) { margin-left: 10vw; }
.manifesto .word:nth-child(3) { margin-left: 4vw; background-image: linear-gradient(90deg, var(--comet) 0 50%, transparent 50% 100%); }
.manifesto .note { text-shadow: 0 2px 18px var(--void); margin: clamp(2rem, 4vw, 3rem) 0 0 auto; max-width: 30rem; color: var(--dim); font-size: 1.15rem; }
.manifesto .note strong { color: var(--bone); font-weight: 600; }
.still .manifesto .word { background-position: 0 0; }

/* Recruitment */
.recruit { position: relative; padding: clamp(5rem, 10vh, 8rem) 0 clamp(3rem, 6vh, 5rem); isolation: isolate; }
.console::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--rim, 0deg), transparent 0 60%, rgba(255, 107, 61, .9) 72%, rgba(138, 116, 255, .9) 82%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: rim 6s linear infinite;
}
@property --rim { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes rim { to { --rim: 360deg; } }
.recruit .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.recruit h2 { font-size: clamp(2.4rem, 4vw, 4.2rem); }
.recruit .intro p { margin-top: 1.5rem; color: var(--dim); font-size: 1.15rem; max-width: 30rem; }
.recruit .facts { margin: 2.25rem 0 0; padding: 0; list-style: none; display: grid; gap: .9rem; }
.recruit .facts li { display: flex; gap: 1rem; align-items: baseline; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.recruit .facts b { font: 400 .92rem/1.2 var(--display); color: var(--comet); min-width: 7.5rem; }
.recruit .facts span { color: #d8d2ec; }
.console {
  position: relative; padding: clamp(1.5rem, 3.5vw, 2.6rem);
  background: linear-gradient(180deg, rgba(18, 12, 44, .85), rgba(7, 5, 26, .85));
  border: 1px solid var(--line); border-radius: 24px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(246, 239, 221, .06);
}
form.sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 1.25rem; }
.field { display: grid; gap: .45rem; align-content: start; }
.field.wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .92rem; color: #d8d2ec; }
.field .hint { font-size: .85rem; color: var(--dim); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--bone); width: 100%;
  background-color: rgba(246, 239, 221, .04); border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1rem;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--night); }
.field input::placeholder, .field textarea::placeholder { color: #625c86; }
.field textarea { min-height: 7rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(246, 239, 221, .25); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet-glow); background-color: rgba(138, 116, 255, .08); box-shadow: 0 0 0 4px rgba(138, 116, 255, .18); }
.field [aria-invalid="true"] { border-color: #ff5a4a; }
.field .err { color: #ff8a7a; font-weight: 600; font-size: .88rem; }
.err:empty { display: none; }
.consent { grid-column: 1 / -1; display: flex; gap: .75rem; align-items: flex-start; color: var(--dim); font-size: .95rem; }
.consent input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--comet); flex: none; }
.consent a { color: var(--bone); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.submit-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .4rem; }
.submit-row .status { all: unset; font-weight: 600; color: var(--dim); }
.submit-row .status.error { color: #ff8a7a; }
.done { display: grid; gap: .75rem; padding: 1rem 0; }
.done:focus { outline: none; }
.done h3 { font-size: 2rem; }
.done p { color: var(--dim); }

/* Partnership */
.partners { position: relative; isolation: isolate; padding: clamp(6rem, 14vh, 9rem) 0 clamp(4rem, 8vh, 6rem); text-align: center; }
.partners h2 { font-size: clamp(2.8rem, 7vw, 6.4rem); }
.partners p { margin: 1.5rem auto 2.5rem; max-width: 34rem; color: #d8d2ec; font-size: 1.15rem; text-shadow: 0 2px 18px var(--void), 0 0 2px var(--void); }
.partners .mail { display: block; width: max-content; margin: 2rem auto 0; color: var(--dim); font-size: .95rem; text-decoration: none; border-bottom: 1px solid rgba(157, 151, 189, .35); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.partners .mail:hover { color: var(--bone); border-color: var(--bone); }

/* Footer with the giant cropped wordmark */
.foot { position: relative; overflow: hidden; padding: 3rem 0 2rem; }
.foot .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--dim); font-size: .92rem; }
.foot .brand img { width: 40px; height: 40px; }
.foot .brand span { font: 600 .92rem/1.2 var(--text); color: var(--dim); }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--bone); }
.giant { display: block; width: 100%; height: auto; overflow: visible; user-select: none; filter: drop-shadow(0 0 40px rgba(138, 116, 255, .35)); }
.giant text { font: 400 128px/1 var(--display); fill: var(--bone); }

/* Legal pages */
.page .nav { position: static; }
.page main { padding-block: clamp(2rem, 6vw, 5rem) clamp(5rem, 10vw, 8rem); }
.page h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.plain { margin-top: 2rem; display: grid; gap: 1rem; max-width: 46rem; color: #d8d2ec; }
.plain h2 { font-size: 1.35rem; margin-top: 1.25rem; color: var(--bone); }
.plain ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
address { font-style: normal; }
.page .foot { padding-bottom: 2rem; }

@media (max-width: 900px) {
  .hero-copy { right: var(--edge); }
  .scroll-cue { display: none; }
  .recruit .wrap { grid-template-columns: 1fr; }
  .stage { width: 118vw; left: 56%; top: 34%; }
  form.sheet { grid-template-columns: 1fr; }
  .manifesto .word:nth-child(2) { margin-left: 6vw; }
  .orbit text { font-size: 24px; }
}
@media (max-width: 560px) {
  .nav nav a.hide-sm { display: none; }
  .nav .brand span { display: none; }
  .w-debris { opacity: .45; }
}
@media (prefers-reduced-motion: reduce) {
  .status i, .scroll-cue span { animation: none; }
  .btn::before { transition: none; }
}

/* SplitText line masks: room for Turkish cedillas and descenders */
.split > div, .split .split-line { padding-bottom: .14em; margin-bottom: -.14em; }

/* Meteor shower behind everything after the hero */
.meteors { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .foot { position: relative; z-index: 1; }




/* Soft scrims so copy stays readable over the world (no hard edges) */
.recruit .intro, .partners .wrap, .manifesto .note { position: relative; }
.recruit .intro::before, .partners .wrap::before {
  content: ""; position: absolute; z-index: -1; inset: -25% -20%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(7, 5, 26, .7), transparent);
}
.foot .row { position: relative; }

/* Impact effects must never widen the page on phones */
main > section { overflow-x: clip; }

/* Game switch + per-game field groups */
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.games { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.games legend { font-weight: 600; font-size: .92rem; color: #d8d2ec; margin-bottom: .5rem; padding: 0; }
.game { position: relative; display: block; cursor: pointer; }
.game input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.game span { display: block; text-align: center; padding: .95rem 1rem; border-radius: 14px; border: 1px solid var(--line); background: rgba(246, 239, 221, .04); font: 400 .95rem/1.1 var(--display); color: var(--dim); transition: color .2s, border-color .2s, background .2s; }
.game:hover span { color: var(--bone); border-color: rgba(246, 239, 221, .3); }
.game input:checked + span { color: var(--void); background: var(--bone); border-color: var(--bone); }
.game input:focus-visible + span { outline: 2px solid var(--comet); outline-offset: 3px; }
.game-fields { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 1.25rem; }
@media (max-width: 900px) { .game-fields { grid-template-columns: 1fr; } }
