/*
Theme Name:   Whoop-Tang
Theme URI:    https://whooptangclan.com
Author:       Whoop-Tang Clan
Description:  Underground tinywhoop street-crew theme: concrete, spray stencil, VHS noise, FPV OSD. Classic PHP theme, self-contained — no CDNs, no webfonts, no build step. Pairs with the whooptang-core plugin for all data.
Version:      1.1.0
Requires at least: 6.4
Requires PHP: 8.2
License:      GPL-2.0-or-later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  whooptang
*/

/* =========================================================================
   1. TOKENS — the approved design system. Do not invent new colors.
   ====================================================================== */
:root {
  --asphalt: #171916;
  --concrete: #23261f;
  --slab: #2e322a;
  --bone: #e8e6dd;
  --dust: #9a9a8c;
  --toxin: #b4ff00;
  --rust: #d96b2b;
  --line: #3a3e34;
  --display: Impact, "Arial Narrow Bold", Haettenschweiler, "Arial Black", sans-serif;
  --mono: "Courier New", ui-monospace, monospace;
  --body: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* =========================================================================
   2. BASE
   ====================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--asphalt);
  color: var(--bone);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
::selection { background: var(--toxin); color: var(--asphalt); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--toxin); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--toxin);
  outline-offset: 2px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--toxin); color: var(--asphalt);
  padding: .6rem 1rem; font-family: var(--mono); z-index: 999;
}
.skip-link:focus { left: 0; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; word-wrap: normal !important;
}

/* Stencil display headings */
.stencil, h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: .95;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 8vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 3.5vw, 1.8rem); }

/* Outlined display text (the "CLAN" line) */
.stencil-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--bone);
}

/* Monospace eyebrow */
.eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--toxin);
  margin: 0 0 1rem;
}

/* Layout helpers */
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3rem, 8vw, 6rem) 0; position: relative; }
.section-line { border-top: 1px solid var(--line); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .85rem 1.5rem;
  border: 2px solid var(--toxin);
  color: var(--toxin);
  background: transparent;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, color .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-toxin { background: var(--toxin); color: var(--asphalt); font-weight: 700; }
.btn-toxin:hover { background: var(--bone); border-color: var(--bone); color: var(--asphalt); }
.btn-ghost:hover { background: var(--toxin); color: var(--asphalt); }
.btn-rust { border-color: var(--rust); color: var(--rust); }
.btn-rust:hover { background: var(--rust); color: var(--asphalt); }

/* =========================================================================
   3. GRAIN OVERLAY — site-wide analog noise (SVG feTurbulence data URI).
   Pointer-events none so it never blocks clicks.
   ====================================================================== */
.grain {
  position: fixed; inset: -100%;
  width: 300%; height: 300%;
  pointer-events: none;
  z-index: 9000;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 1.2s steps(6) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* =========================================================================
   4. ANNOUNCEMENT BAR
   ====================================================================== */
.announce {
  background: var(--toxin);
  color: var(--asphalt);
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: center;
  padding: .55rem 1rem;
}
.announce a { color: var(--asphalt); text-decoration: underline; }

/* =========================================================================
   5. HEADER / STICKY NAV
   ====================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 8000;
  background: rgba(23, 25, 22, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .7rem;
}
.site-logo {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: .04em;
  color: var(--bone);
  text-transform: uppercase;
  white-space: nowrap;
}
.site-logo:hover { text-decoration: none; color: var(--toxin); }
.site-logo .tag { color: var(--toxin); }
.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: .5rem; cursor: pointer;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--toxin); display: block; }
.site-nav { display: none; }
.site-nav.is-open {
  display: block;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--asphalt);
  border-bottom: 2px solid var(--toxin);
}
.site-nav ul { list-style: none; margin: 0; padding: .5rem 0; }
.site-nav li { border-top: 1px dashed var(--line); }
.site-nav a {
  display: block;
  font-family: var(--mono);
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bone);
  padding: .85rem 1.4rem;
}
.site-nav a:hover { color: var(--toxin); text-decoration: none; }
.site-nav .menu-cta a { color: var(--toxin); font-weight: 700; }
@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; background: none; border: 0; }
  .site-nav ul { display: flex; gap: .25rem; padding: 0; }
  .site-nav li { border: 0; }
  .site-nav a { padding: .5rem .8rem; font-size: .78rem; }
}

/* =========================================================================
   6. FPV DVR HERO
   ====================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--asphalt);
}
/* Video facade + iframe: oversized to cover, centered */
.hero-video {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background: radial-gradient(ellipse at center, #20231e 0%, var(--asphalt) 75%);
}
.hero-video iframe {
  position: absolute; top: 50%; left: 50%;
  width: 178vh; min-width: 100vw;
  height: 100.25vw; min-height: 100vh; /* 16:9 cover math */
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 0;
}
/* Dark gradient shade so the wordmark always reads */
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(23,25,22,.55) 0%, rgba(23,25,22,.35) 40%, rgba(23,25,22,.92) 100%);
}
/* CRT scanlines */
.hero-scanlines {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0px, rgba(0,0,0,.22) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: overlay;
}
/* OSD corner readouts */
.hero-osd {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  font-family: var(--mono);
  font-size: clamp(.62rem, 1.6vw, .8rem);
  letter-spacing: .12em;
  color: var(--toxin);
  text-shadow: 0 0 6px rgba(180,255,0,.55);
}
.hero-osd .osd { position: absolute; padding: 1rem 1.1rem; white-space: pre; }
.osd-tl { top: 0; left: 0; }
.osd-tr { top: 0; right: 0; text-align: right; }
.osd-bl { bottom: 0; left: 0; }
.osd-br { bottom: 0; right: 0; text-align: right; }
/* width:100% because .hero is a flex container — without it the flex item
   shrinks to its content and everything hugs the left viewport edge.
   text-align:center: the wordmark sits dead-center of the DVR frame. */
.hero-content { position: relative; z-index: 4; width: 100%; padding: 7rem 0 5.5rem; text-align: center; }
.hero-title {
  font-size: clamp(3.2rem, 14vw, 9rem);
  line-height: .85;
  margin: 0 0 1rem;
}
.hero-title .line2 { display: block; }
.hero-tagline {
  font-family: var(--mono);
  letter-spacing: .32em;
  text-transform: uppercase;
  font-size: clamp(.7rem, 2.2vw, .95rem);
  color: var(--bone);
  margin: 0 0 2rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

/* =========================================================================
   7. WANTED BOUNTY POSTER
   ====================================================================== */
.poster-zone { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 880px) { .poster-zone { grid-template-columns: minmax(0, 460px) 1fr; } }
.poster {
  position: relative;
  background: var(--bone);
  color: #1c1d1a;
  padding: 2.4rem 1.8rem 2rem;
  transform: rotate(-1.2deg);
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
  font-family: var(--mono);
}
/* Tape strips */
.poster::before, .poster::after {
  content: "";
  position: absolute; top: -14px;
  width: 90px; height: 28px;
  background: rgba(214, 205, 175, .8);
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.poster::before { left: 12%; transform: rotate(-6deg); }
.poster::after { right: 12%; transform: rotate(4deg); }
.poster-wanted {
  font-family: var(--display);
  font-size: clamp(2.6rem, 9vw, 3.6rem);
  text-align: center;
  letter-spacing: .12em;
  margin: 0;
}
.poster-no {
  text-align: center;
  font-size: .8rem;
  letter-spacing: .3em;
  margin: .2rem 0 1.2rem;
  color: #55584d;
}
.poster-trick {
  border: 2px dashed #1c1d1a;
  padding: 1.2rem 1rem;
  font-size: 1.02rem;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.45;
}
.poster-reward {
  text-align: center;
  margin: 1.2rem 0;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.poster-reward strong { color: var(--rust); }
.poster-rules { list-style: none; padding: 0; margin: 1.2rem 0 0; font-size: .82rem; line-height: 1.7; }
.poster-rules li::before { content: "» "; color: var(--rust); font-weight: 700; }
/* Rust OPEN stamp */
.poster-stamp {
  position: absolute; top: 1.6rem; right: 1rem;
  transform: rotate(8deg);
  border: 4px solid var(--rust);
  color: var(--rust);
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: .2em;
  padding: .15em .5em;
  opacity: .9;
  text-transform: uppercase;
}
.poster-stamp.is-closed { border-color: #55584d; color: #55584d; }
.poster-code {
  margin-top: 1.2rem; text-align: center; font-size: .8rem;
  letter-spacing: .18em; text-transform: uppercase;
}
.poster-code strong { background: #1c1d1a; color: var(--bone); padding: .15em .5em; }

/* Countdown next to / under the poster */
.countdown { font-family: var(--mono); }
.countdown-label { font-size: .78rem; letter-spacing: .32em; text-transform: uppercase; color: var(--dust); margin: 0 0 .6rem; }
.countdown-clock {
  display: flex; gap: .8rem; flex-wrap: wrap;
  font-size: clamp(1.6rem, 6vw, 2.8rem);
  color: var(--toxin);
  text-shadow: 0 0 10px rgba(180,255,0,.4);
}
.countdown-clock .unit { text-align: center; }
.countdown-clock .unit small {
  display: block; font-size: .65rem; letter-spacing: .25em; color: var(--dust); margin-top: .2rem;
}
.countdown.is-over .countdown-clock { color: var(--rust); text-shadow: none; }

/* =========================================================================
   8. ROSTER PILOT CARDS
   ====================================================================== */
.roster-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.pilot-card {
  position: relative;
  background: var(--concrete);
  border: 1px solid var(--line);
  padding: 1.4rem 1.3rem 1.2rem;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column; gap: .4rem;
  color: var(--bone);
}
a.pilot-card:hover { text-decoration: none; }
.pilot-card:hover {
  transform: translateY(-6px);
  border-color: var(--toxin);
  box-shadow: 0 16px 30px rgba(0,0,0,.45);
}
.pilot-flag { position: absolute; top: .9rem; right: 1rem; font-size: 1.4rem; line-height: 1; }
.pilot-avatar { width: 72px; height: 72px; object-fit: cover; border: 2px solid var(--line); margin-bottom: .5rem; }
.pilot-callsign { font-family: var(--display); font-size: 1.6rem; text-transform: uppercase; line-height: 1; margin: 0; }
.pilot-style { font-family: var(--mono); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--toxin); margin: 0 0 .6rem; }
.pilot-spec {
  display: flex; justify-content: space-between; gap: 1rem;
  border-top: 1px dashed var(--line);
  padding-top: .45rem; margin-top: .45rem;
  font-size: .8rem;
}
.pilot-spec dt { font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dust); margin: 0; }
.pilot-spec dd { margin: 0; text-align: right; }
/* Recruitment card */
.pilot-card.open-seat {
  border: 2px dashed var(--toxin);
  background: transparent;
  align-items: flex-start; justify-content: center;
  min-height: 220px;
}
.pilot-card.open-seat:hover { transform: translateY(-6px); }
.open-seat .pilot-callsign { color: var(--toxin); }
.open-seat p { font-size: .9rem; color: var(--dust); margin: 0; }

/* =========================================================================
   9. VIDEO FACADES + GRIDS
   ====================================================================== */
.video-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.yt-facade {
  position: relative; aspect-ratio: 16 / 9;
  background: var(--concrete) center / cover no-repeat;
  border: 1px solid var(--line);
  cursor: pointer; overflow: hidden;
  display: block; width: 100%; padding: 0;
}
.yt-facade::after { /* slight VHS tint over the thumb */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(23,25,22,.1), rgba(23,25,22,.45));
}
.yt-facade .yt-play {
  position: absolute; z-index: 2; inset: 0; margin: auto;
  width: 74px; height: 50px;
  background: var(--toxin);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 700; color: var(--asphalt); letter-spacing: .1em;
  transition: transform .12s ease;
}
.yt-facade:hover .yt-play { transform: scale(1.08); }
.yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.video-card h3 { margin: .8rem 0 .2rem; font-size: 1.1rem; }
.video-card .video-meta { font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dust); }
.video-card .video-meta .series { color: var(--toxin); }
/* Series filter row */
.series-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.series-filter a {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--dust); padding: .45rem .8rem;
}
.series-filter a:hover { border-color: var(--toxin); color: var(--toxin); text-decoration: none; }
.series-filter a.is-active { background: var(--toxin); border-color: var(--toxin); color: var(--asphalt); font-weight: 700; }

/* Featured mission block */
.mission { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 880px) { .mission { grid-template-columns: 3fr 2fr; } }
.mission-schedule { font-family: var(--mono); font-size: .78rem; letter-spacing: .32em; text-transform: uppercase; color: var(--dust); margin-top: 1.2rem; }

/* =========================================================================
   10. STATEMENT / DISCORD CTA / PARTNERS
   ====================================================================== */
.statement-text { font-size: clamp(1.15rem, 2.6vw, 1.6rem); line-height: 1.5; max-width: 56ch; margin: 0 0 1.2rem; }
.statement-sub { font-family: var(--mono); color: var(--toxin); letter-spacing: .06em; }

.discord-cta { background: var(--concrete); border-block: 1px solid var(--line); }
.discord-cta ul { list-style: none; padding: 0; margin: 1.5rem 0 2rem; max-width: 52ch; }
.discord-cta li { padding: .4rem 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.discord-cta li::before { content: "» "; color: var(--toxin); font-family: var(--mono); font-weight: 700; }

.partner-strip { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .partner-strip { grid-template-columns: repeat(4, 1fr); } }
.partner-slot {
  border: 1px solid var(--line);
  background: var(--concrete);
  min-height: 110px;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  filter: grayscale(1) contrast(1.05);
  transition: filter .15s ease, border-color .15s ease;
}
.partner-slot:hover { filter: none; border-color: var(--toxin); }
.partner-slot img { max-height: 56px; width: auto; }
.partner-slot.is-empty {
  border: 2px dashed var(--line);
  background: transparent;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .25em;
  color: var(--dust); text-transform: uppercase; text-align: center;
  filter: none;
}

/* =========================================================================
   11. SOUND TOGGLE — fixed bottom-left, EQ bars animate while playing
   ====================================================================== */
.sound-toggle {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 8500;
  display: flex; align-items: center; gap: .6rem;
  background: rgba(23,25,22,.9);
  border: 1px solid var(--line);
  color: var(--dust);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .22em;
  padding: .6rem .9rem; cursor: pointer;
}
.sound-toggle:hover { border-color: var(--toxin); color: var(--bone); }
.sound-eq { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound-eq span { width: 3px; height: 4px; background: var(--dust); }
.sound-toggle.is-on { color: var(--toxin); border-color: var(--toxin); }
.sound-toggle.is-on .sound-eq span {
  background: var(--toxin);
  animation: eq-bounce .7s ease-in-out infinite alternate;
}
.sound-toggle.is-on .sound-eq span:nth-child(2) { animation-delay: .15s; }
.sound-toggle.is-on .sound-eq span:nth-child(3) { animation-delay: .3s; }
.sound-toggle.is-on .sound-eq span:nth-child(4) { animation-delay: .45s; }
@keyframes eq-bounce { from { height: 3px; } to { height: 14px; } }
/* The hidden music player iframe parks off-screen, not display:none
   (YouTube refuses to play hidden players in some browsers). */
.music-player { position: fixed; left: -9999px; bottom: 0; width: 200px; height: 113px; }

/* =========================================================================
   12. SINGLE PILOT PAGE
   ====================================================================== */
.pilot-hero {
  position: relative; min-height: 320px;
  background: var(--concrete) center / cover no-repeat;
  display: flex; align-items: flex-end;
  border-bottom: 2px solid var(--toxin);
}
.pilot-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,25,22,.25), rgba(23,25,22,.92)); }
.pilot-hero .wrap { position: relative; z-index: 2; padding-block: 2rem; display: flex; gap: 1.4rem; align-items: flex-end; }
.pilot-hero .pilot-avatar { width: 110px; height: 110px; border-color: var(--toxin); }
.pilot-hero h1 { margin: 0; }
.pilot-hero .pilot-style { margin: 0; }
.pilot-cols { display: grid; gap: 2.5rem; }
@media (min-width: 880px) { .pilot-cols { grid-template-columns: 2fr 1fr; } }
.spec-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.spec-table th, .spec-table td { text-align: left; padding: .5rem 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.spec-table th { font-family: var(--mono); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--dust); width: 38%; }
.gear-list, .achievement-list { list-style: none; padding: 0; margin: 0; }
.gear-list li, .achievement-list li { padding: .45rem 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.gear-list li::before { content: "» "; color: var(--toxin); font-family: var(--mono); }
.achievement-list .year { font-family: var(--mono); color: var(--toxin); margin-right: .6rem; }
.social-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.social-row a {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid var(--line); padding: .45rem .8rem; color: var(--bone);
}
.social-row a:hover { border-color: var(--toxin); color: var(--toxin); text-decoration: none; }

/* =========================================================================
   13. CREW DASHBOARD + LOGIN + FORMS
   ====================================================================== */
.wtc-login-box, .wtc-dash { max-width: 760px; }
.wtc-login-box { max-width: 460px; }
.wtc-dash-card, .wtc-login-box {
  background: var(--concrete);
  border: 1px solid var(--line);
  padding: 1.8rem 1.6rem;
  margin-bottom: 1.6rem;
}
.wtc-form label, .wtc-login-box label, .acf-field .acf-label label {
  display: block;
  font-family: var(--mono); font-size: .72rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--dust); margin-bottom: .4rem;
}
.wtc-form input, .wtc-login-box input[type="text"], .wtc-login-box input[type="password"],
.acf-field input[type="text"], .acf-field input[type="url"], .acf-field input[type="number"],
.acf-field input[type="password"], .acf-field textarea, .acf-field select {
  width: 100%;
  background: var(--asphalt);
  border: 1px solid var(--line);
  color: var(--bone);
  font-family: var(--mono);
  padding: .7rem .8rem;
  font-size: .95rem;
}
.wtc-form input:focus, .acf-field input:focus, .acf-field textarea:focus { border-color: var(--toxin); outline: none; }
.wtc-login-box .login-remember label { display: inline; font-size: .75rem; }
.wtc-login-box .login-submit input[type="submit"] {
  width: auto; background: var(--toxin); color: var(--asphalt);
  border: 2px solid var(--toxin); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; padding: .85rem 1.5rem; cursor: pointer;
}
.wtc-login-msg, .wtc-dash-msg { font-family: var(--mono); font-size: .85rem; }
.wtc-login-msg.is-error, .wtc-dash-msg.is-error { color: var(--rust); }
.wtc-dash-msg.is-ok { color: var(--toxin); }
.wtc-login-lost, .wtc-login-note { font-size: .8rem; color: var(--dust); }
.wtc-status { font-family: var(--mono); font-size: .8rem; letter-spacing: .05em; border: 1px solid; padding: .9rem 1.1rem; margin-bottom: 1.4rem; }
.wtc-status.is-pending { border-color: var(--rust); color: var(--rust); }
.wtc-status.is-rejected { border-color: var(--rust); color: var(--rust); background: rgba(217,107,43,.08); }
.wtc-status.is-approved { border-color: var(--toxin); color: var(--toxin); }
.wtc-status-comment { color: var(--bone); }
.wtc-meter { margin-bottom: 1.6rem; }
.wtc-meter-label { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .72rem; letter-spacing: .22em; color: var(--dust); margin-bottom: .4rem; }
.wtc-meter-pct { color: var(--toxin); }
.wtc-meter-track { height: 10px; background: var(--concrete); border: 1px solid var(--line); }
.wtc-meter-fill { height: 100%; background: var(--toxin); transition: width .4s ease; }
.wtc-meter-hint { font-family: var(--mono); font-size: .72rem; color: var(--dust); margin: .5rem 0 0; }
.wtc-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.wtc-table th, .wtc-table td { text-align: left; padding: .55rem .4rem; border-bottom: 1px dashed var(--line); }
.wtc-table th { font-family: var(--mono); font-weight: 400; font-size: .7rem; letter-spacing: .2em; color: var(--dust); }
.wtc-result-winner { color: var(--toxin); font-weight: 700; }
.wtc-result-pending { color: var(--rust); }
/* ACF front-end form chrome on dark */
.acf-form .acf-fields > .acf-field { border-top: 1px dashed var(--line); padding: 1.1rem 0; }
.acf-form .acf-fields { border: 0; background: transparent; }
.acf-form .acf-label .description, .acf-form p.description { color: var(--dust); font-size: .78rem; }
.acf-form .acf-repeater .acf-row-handle { background: var(--slab); border-color: var(--line); }
.acf-form .acf-table { border-color: var(--line); background: transparent; }
.acf-form .acf-table > tbody > tr > td, .acf-form .acf-table > thead > tr > th { background: var(--concrete); border-color: var(--line); color: var(--bone); }
.acf-form .acf-button.btn { margin-top: 1rem; }

/* =========================================================================
   14. ARCHIVES, CONTENT, FOOTER, 404
   ====================================================================== */
.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 0; }
.entry-content { max-width: 68ch; }
.entry-content a { text-decoration: underline; }
.bounty-list { display: grid; gap: 1rem; margin-top: 2rem; }
.bounty-row {
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: baseline;
  border: 1px solid var(--line); background: var(--concrete);
  padding: 1rem 1.2rem; color: var(--bone);
}
a.bounty-row:hover { border-color: var(--toxin); text-decoration: none; }
.bounty-row .no { font-family: var(--display); font-size: 1.4rem; color: var(--toxin); }
.bounty-row .meta { font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dust); }
.bounty-row .meta .winner { color: var(--toxin); }

.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 5rem; margin-top: 4rem; }
.site-footer .wrap { display: flex; flex-direction: column; gap: .6rem; }
.footer-line { font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dust); }
.footer-worldwide { font-family: var(--display); font-size: 1.1rem; letter-spacing: .35em; color: var(--bone); }
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 0 0 .8rem; padding: 0; }
.footer-nav a { font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dust); }
.footer-nav a:hover { color: var(--toxin); }

.error-404 { text-align: center; padding: 6rem 0; }
.error-404 .code { font-family: var(--display); font-size: clamp(5rem, 20vw, 11rem); color: var(--toxin); line-height: 1; }

/* Search form */
.search-form { display: flex; gap: .5rem; max-width: 420px; }
.search-form input[type="search"] {
  flex: 1; background: var(--concrete); border: 1px solid var(--line);
  color: var(--bone); font-family: var(--mono); padding: .7rem .8rem;
}
.search-form button { white-space: nowrap; }

/* Pagination */
.pagination { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 2.5rem; font-family: var(--mono); }
.pagination .page-numbers { border: 1px solid var(--line); padding: .45rem .8rem; color: var(--dust); font-size: .8rem; }
.pagination .page-numbers.current { background: var(--toxin); border-color: var(--toxin); color: var(--asphalt); }
.pagination a.page-numbers:hover { border-color: var(--toxin); color: var(--toxin); text-decoration: none; }

/* =========================================================================
   14b. LEADERBOARD + REGISTRATION + DISCORD WIDGET
   ====================================================================== */
/* Honeypot field: visually gone, still in the DOM for bots to fill. */
.wtc-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.wtc-lb { max-width: 640px; font-size: 1rem; }
.wtc-lb .lb-rank { font-family: var(--mono); color: var(--dust); width: 3ch; }
.wtc-lb .lb-pts { font-family: var(--mono); color: var(--toxin); text-align: right; font-weight: 700; }
.wtc-lb tr.is-first td { border-bottom: 2px solid var(--toxin); }
.wtc-lb tr.is-first .lb-pts { text-shadow: 0 0 8px rgba(180,255,0,.45); }
.wtc-lb td a { color: var(--bone); }
.wtc-lb td a:hover { color: var(--toxin); }

.discord-widget { margin-top: 2rem; }
.discord-widget iframe { max-width: 100%; border: 1px solid var(--line); }

/* =========================================================================
   15. REDUCED MOTION — kill grain, scanline flicker, EQ, hover lifts.
   ====================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; opacity: .04; }
  .sound-toggle.is-on .sound-eq span { animation: none; height: 10px; }
  .pilot-card, .btn, .yt-facade .yt-play { transition: none; }
  .pilot-card:hover, .btn:hover { transform: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Print: nobody prints this site, but don't waste their toner. */
@media print {
  .grain, .sound-toggle, .hero-video, .hero-scanlines, .site-nav { display: none !important; }
  body { background: #fff; color: #000; }
}
