/* Death Galaxy Esports — dark edition.
   Deep-space violet night, a starfield, the crest glowing in the middle of it.
   The one loud idea: the crest floating over a giant outlined "DEATH GALAXY" in the hero.
   Everything after the hero stays quiet and dark so the hero carries the brand.
   Dela Gothic One by artakana and Bricolage Grotesque by Mathieu Triay, SIL Open Font License 1.1. */

@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: #0c0820;      /* page */
  --night: #150f2e;     /* panels, brand ink */
  --edge-line: #2c2160; /* hairlines on dark */
  --violet: #5a3df0;
  --violet-glow: #7b62ff;
  --bone: #f6efdd;
  --dim: #a59fc4;
  --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);
  --gap: clamp(5rem, 11vw, 9rem);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--void); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--bone);
  background: var(--void);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--comet); outline-offset: 3px; }
::selection { background: var(--comet); color: var(--void); }

.wrap { width: min(74rem, 100% - 2 * var(--edge)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 20; background: var(--bone); color: var(--void); padding: .5rem 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; max-width: 60ch; }

/* Bar */
.bar { position: absolute; inset: 0 0 auto; z-index: 5; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.home { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--display); font-size: 1rem; }
.home img { width: 40px; height: 40px; }
.bar nav { display: flex; gap: 1.5rem; align-items: center; font-weight: 600; color: var(--dim); }
.bar nav a { text-decoration: none; transition: color .15s; }
.bar nav a:hover { color: var(--bone); }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 50% at 50% 48%, rgba(90, 61, 240, .45), transparent 70%),
    radial-gradient(40% 35% at 70% 75%, rgba(255, 107, 61, .14), transparent 70%),
    var(--void);
}
.stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-stack { position: relative; display: grid; place-items: center; text-align: center; padding: 7rem var(--edge) 4rem; }
.ghost {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -62%);
  z-index: -1;
  font: 400 clamp(5rem, 17vw, 16rem)/.86 var(--display);
  color: transparent;
  -webkit-text-stroke: 2px rgba(123, 98, 255, .35);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.crest-wrap { position: relative; width: min(30rem, 78vw); }
.crest {
  width: 100%;
  filter: drop-shadow(0 0 40px rgba(123, 98, 255, .55)) drop-shadow(0 24px 40px rgba(0, 0, 0, .6));
  animation: arrive 1.1s .35s cubic-bezier(.16, 1, .3, 1) both, float 7s 1.6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }
/* Light burst behind the crest as it lands */
.crest-wrap::before {
  content: ""; position: absolute; inset: 10%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(123, 98, 255, .6) 35%, transparent 70%);
  opacity: 0; transform: scale(.2);
  animation: burst 1.2s .45s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes burst { 30% { opacity: 1; } to { opacity: 0; transform: scale(2.6); } }
/* Shine sweeping across the crest, clipped to its shape */
.crest-wrap::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .55) 48%, rgba(255, 236, 220, .15) 54%, transparent 62%) no-repeat;
  background-size: 260% 100%;
  background-position: 130% 0;
  -webkit-mask: url("crest.webp") center / contain no-repeat;
  mask: url("crest.webp") center / contain no-repeat;
  animation: shine 7s 1.5s ease-in-out infinite;
}
@keyframes shine { 0% { background-position: 130% 0; } 22%, 100% { background-position: -40% 0; } }
@keyframes arrive {
  from { opacity: 0; transform: translateY(30px) scale(.9); filter: drop-shadow(0 0 0 rgba(123, 98, 255, 0)) blur(6px); }
  to { opacity: 1; transform: none; }
}
.tagline {
  margin-top: 1.75rem;
  letter-spacing: .01em;
  font: 400 clamp(1.4rem, 3.4vw, 2.3rem)/1.1 var(--display);
  max-width: none;
  animation: rise .9s 1s cubic-bezier(.16, 1, .3, 1) both;
}
.hero .sub { margin: 1rem auto 0; color: var(--dim); font-size: 1.1rem; animation: rise .9s 1.15s cubic-bezier(.16, 1, .3, 1) both; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.25rem; animation: rise .9s 1.3s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 400 1.05rem/1 var(--display);
  padding: 1.05rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--comet);
  background: var(--comet);
  color: var(--void);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(255, 107, 61, 0);
  transition: box-shadow .2s, transform .2s, background .2s, color .2s, translate .35s cubic-bezier(.16, 1, .3, 1);
  background-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0), transparent 60%);
}
.btn.magnetic:hover { background-image: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .45), transparent 55%); }
.btn:hover { box-shadow: 0 0 36px rgba(255, 107, 61, .6); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn.ghost-btn { background: transparent; color: var(--bone); border-color: rgba(246, 239, 221, .35); }
.btn.ghost-btn:hover { border-color: var(--bone); box-shadow: 0 0 28px rgba(123, 98, 255, .45); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Scrolling name bands */
.band { overflow: hidden; border-block: 1px solid var(--edge-line); padding-block: 1.1rem; background: var(--void); }
.band-track { display: flex; align-items: center; gap: 2.5rem; width: max-content; will-change: transform; }
.band-track span { font: 400 clamp(1.6rem, 4vw, 3rem)/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px rgba(123, 98, 255, .55); white-space: nowrap; }
.band-track span:nth-of-type(3n+2) { color: var(--bone); -webkit-text-stroke: 0; }
.band-track i { font-style: normal; color: var(--comet); font-size: 1.4rem; }

/* Reveals (only when motion is allowed and JS runs) */
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: block; }
.motion .reveal .line > span { transform: translateY(105%); transition: transform 1s cubic-bezier(.16, 1, .3, 1); }
.motion .reveal .line:nth-child(2) > span { transition-delay: .1s; }
.motion .reveal .line:nth-child(3) > span { transition-delay: .2s; }
.motion .reveal.in .line > span { transform: none; }
.motion .fade { opacity: 0; transform: translateY(24px); transition: opacity .9s .25s, transform .9s .25s cubic-bezier(.16, 1, .3, 1); }
.motion .fade.in { opacity: 1; transform: none; }

/* Statement */
.statement { padding-block: var(--gap); position: relative; }
.statement .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.statement h2 { font-size: clamp(2.6rem, 7vw, 5.6rem); }
.statement h2 .line:nth-child(2) > span { color: transparent; -webkit-text-stroke: 2px var(--violet-glow); }
.statement h2 .line:nth-child(3) > span { color: var(--comet); }
.statement p { color: var(--dim); font-size: 1.15rem; }
.statement p strong { color: var(--bone); font-weight: 600; }

/* Tryouts */
.tryouts {
  padding-block: var(--gap);
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(90, 61, 240, .28), transparent 70%),
    var(--night);
  border-block: 1px solid var(--edge-line);
  position: relative;
  overflow: hidden;
}
.tryouts .mascot {
  position: absolute;
  right: -6rem; top: 3rem;
  width: min(32rem, 45vw);
  opacity: .14;
  transform: rotate(12deg);
  pointer-events: none;
}
.tryouts .intro { position: relative; display: grid; gap: 1rem; margin-bottom: 3rem; }
.tryouts .intro p { color: var(--dim); font-size: 1.15rem; }

form.sheet {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 1.5rem;
  max-width: 52rem;
}
.field { display: grid; gap: .45rem; align-content: start; }
.field.wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .98rem; }
.field .hint { font-size: .9rem; color: var(--dim); }
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--bone);
  background: rgba(12, 8, 32, .7);
  border: 1.5px solid var(--edge-line);
  border-radius: 12px;
  padding: .85rem 1rem;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.motion .field input:focus, .motion .field textarea:focus, .motion .field select:focus {
  border-color: transparent;
  background:
    linear-gradient(#120c2c, #120c2c) padding-box,
    conic-gradient(from var(--angle), #5a3df0, #ff6b3d, #7b62ff, #2c2160, #5a3df0) border-box;
  animation: spin 2.4s linear infinite;
}
.motion .field select:focus { background-image: linear-gradient(#120c2c, #120c2c), conic-gradient(from var(--angle), #5a3df0, #ff6b3d, #7b62ff, #2c2160, #5a3df0); background-origin: padding-box, border-box; background-clip: padding-box, border-box; background-size: auto; background-position: 0 0; }
@keyframes spin { to { --angle: 360deg; } }
.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: #6d6694; }
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet-glow); box-shadow: 0 0 0 3px rgba(123, 98, 255, .3); }
.field [aria-invalid="true"] { border-color: #ff5a4a; }
.field .err { color: #ff8a7a; font-weight: 600; font-size: .92rem; }
.err:empty { display: none; }
.consent { grid-column: 1 / -1; display: flex; gap: .75rem; align-items: flex-start; color: var(--dim); }
.consent input { width: 1.25rem; height: 1.25rem; 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: .5rem; }
.status { font-weight: 600; color: var(--dim); }
.status.error { color: #ff8a7a; }
.done { position: relative; max-width: 40rem; display: grid; gap: .75rem; padding: 2rem; border: 1px solid var(--violet-glow); border-radius: 18px; background: rgba(90, 61, 240, .12); box-shadow: 0 0 40px rgba(90, 61, 240, .25); }
.done:focus { outline: none; }
.done p { color: var(--dim); }

/* Sponsor */
.sponsor { padding-block: var(--gap); text-align: center; }
.sponsor h2 { max-width: 16ch; margin-inline: auto; }
.sponsor p { margin: 1.25rem auto 2.25rem; color: var(--dim); font-size: 1.15rem; }

/* Footer */
.foot { border-top: 1px solid var(--edge-line); color: var(--dim); padding-block: 2rem; font-size: .95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.foot a:hover { color: var(--bone); }

/* Legal pages */
.page .bar { position: static; }
.page main { padding-block: clamp(2rem, 5vw, 4rem) var(--gap); }
.page h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.plain { margin-top: 2rem; display: grid; gap: 1rem; max-width: 46rem; color: #d9d3ea; }
.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; }

@media (max-width: 860px) {
  .statement .wrap { grid-template-columns: 1fr; }
  form.sheet { grid-template-columns: 1fr; }
  .tryouts .mascot { right: -8rem; width: 22rem; }
}
@media (max-width: 520px) {
  .bar nav a.hide-sm { display: none; }
  .ghost { -webkit-text-stroke-width: 1px; }
  .tryouts .mascot { display: none; }
  .sponsor .btn { font-size: .9rem; padding: 1rem 1.2rem; max-width: 100%; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .crest, .tagline, .hero .sub, .actions, .crest-wrap::before, .crest-wrap::after { animation: none; }
  .crest-wrap::before, .crest-wrap::after { display: none; }
  .btn { transition: none; }
}
