@font-face {
  font-family: 'Dogica Pixel';
  src: url('assets/fonts/dogicapixel.ttf') format('truetype');
  font-display: swap;
}

:root {
  --control-height: 40px;
  --consent-box-size: 16px;
  --accent: #14f195;
  --accent-alt: #00ffb2;
  --accent-soft: rgba(20, 241, 149, 0.14);
  --bg-base: #010207;
  --bg-secondary: #0b111b;
  --bg-surface: #141a24;
  --bg-surface-alt: #1b2331;
  --bg-card: #111a29;
  --bg-card-nested: #0d1524;
  --bg-inset: #0e141d;
  --bg-tint: rgba(20, 30, 45, 0.55);
  --bg-overlay: rgba(4, 8, 14, 0.86);
  --stroke: #324258;
  --stroke-strong: #4e6281;
  --divider: #243348;
  --text-primary: #f4f7fb;
  --text-secondary: #9fb2c8;
  --text-tertiary: #6f829a;
  --text-dark: #07291e;
  --banana: #ffd700;
  --danger: #ff5e7d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: 'Dogica Pixel', 'dogicapixel', monospace;
  color: var(--text-primary);
  background: var(--bg-base);
  text-transform: lowercase;
  letter-spacing: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  width: 100%;
  text-align: center;
  color: var(--text-tertiary);
  font-size: 8px;
  line-height: 12px;
  padding: 6px 12px 2px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.screen-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.layer {
  position: absolute;
  inset: 0;
}

.base-layer {
  background: linear-gradient(160deg, #010207 0%, #040811 46%, #060a13 100%);
}

.accent-layer {
  opacity: 0.95;
}

.accent-layer-a {
  background: linear-gradient(
    145deg,
    rgba(20, 241, 149, 0.06) 0%,
    rgba(0, 194, 255, 0.04) 52%,
    rgba(153, 69, 255, 0.08) 100%
  );
  animation: drift-a 16.8s ease-in-out infinite alternate;
}

.accent-layer-b {
  background: linear-gradient(
    145deg,
    rgba(153, 69, 255, 0.08) 0%,
    rgba(20, 241, 149, 0) 50%,
    rgba(0, 194, 255, 0.07) 100%
  );
  animation: drift-b 16.8s ease-in-out infinite alternate;
}

.smoke-layer {
  opacity: 0.95;
  background: linear-gradient(
    145deg,
    rgba(2, 4, 9, 0.66) 0%,
    rgba(10, 13, 19, 0.2) 50%,
    rgba(1, 2, 6, 0.76) 100%
  );
}

.texture-layer {
  opacity: 0.34;
  background-image: radial-gradient(
    circle,
    rgba(220, 231, 243, 0.34) 0.55px,
    transparent 0.7px
  );
  background-repeat: repeat;
  background-size: 3px 3px;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: 10px;
  padding-bottom: 10px;
}

.hero {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.hero-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.brand-logo {
  width: min(350px, 64vw);
  height: auto;
}

.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.panel {
  border: 1px solid var(--stroke);
  background: var(--bg-tint);
  padding: 16px;
}

.hero-panel {
  border-color: var(--stroke);
  background: rgba(10, 16, 26, 0.9);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(500px, 100%);
  padding: 12px;
}

.eyebrow {
  margin: 0;
  color: var(--text-secondary);
  font-size: 8px;
  line-height: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  margin: 0;
  font-size: 24px;
  line-height: 28px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-copy {
  margin: 0;
  color: var(--text-secondary);
  font-size: 10px;
  line-height: 16px;
  max-width: 640px;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
  width: 100%;
}

.form-row .input-shell {
  flex: 1 1 auto;
  min-width: 0;
  height: var(--control-height);
  min-height: var(--control-height);
}

.form-row .btn {
  flex: 0 0 clamp(110px, 30%, 148px);
  width: clamp(110px, 30%, 148px);
  padding-inline: 8px;
  height: var(--control-height);
  min-height: var(--control-height);
}

.consent-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  width: 100%;
}

.consent-row input[type='checkbox'] {
  appearance: none;
  width: var(--consent-box-size);
  height: var(--consent-box-size);
  margin: 0;
  flex: 0 0 var(--consent-box-size);
  border: 1px solid var(--stroke-strong);
  background: var(--bg-surface-alt);
  position: relative;
  cursor: pointer;
}

.consent-row input[type='checkbox']:checked {
  border-color: var(--accent);
  background: rgba(20, 241, 149, 0.14);
}

.consent-row input[type='checkbox']:checked::after {
  content: '';
  position: absolute;
  left: calc(var(--consent-box-size) * 0.32);
  top: calc(var(--consent-box-size) * 0.12);
  width: calc(var(--consent-box-size) * 0.2);
  height: calc(var(--consent-box-size) * 0.48);
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent-row input[type='checkbox']:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 1px;
}

.consent-row label {
  display: inline-flex;
  align-items: center;
  min-height: var(--consent-box-size);
  color: var(--text-secondary);
  font-size: 8px;
  line-height: 13px;
  text-transform: none;
  cursor: pointer;
}

.turnstile-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 2px;
}

#turnstile-container {
  min-height: 65px;
}

.bot-trap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.field-label {
  color: var(--text-secondary);
  font-size: 8px;
  line-height: 10px;
  text-transform: uppercase;
}

.input-shell {
  min-height: var(--control-height);
  border: 1px solid var(--stroke-strong);
  background: var(--bg-surface-alt);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
}

.input-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 16px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.input-shell input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-primary);
  font-family: 'Dogica Pixel', 'dogicapixel', monospace;
  font-size: 10px;
  line-height: 14px;
  text-transform: none;
}

.input-shell input::placeholder {
  color: var(--text-tertiary);
}

.btn {
  min-height: var(--control-height);
  border: 1px solid var(--stroke-strong);
  background: var(--bg-surface-alt);
  color: var(--text-primary);
  font-family: 'Dogica Pixel', 'dogicapixel', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 7px 12px;
}

.btn:hover,
.btn:focus-visible {
  border-color: var(--accent);
}

.btn-primary {
  border-width: 2px;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--text-dark);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pulse {
  animation: pulse 1.8s ease-in-out infinite;
}

.impact-shake {
  animation: landing-shake 240ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.verified-pill {
  border: 1px solid rgba(20, 241, 149, 0.5);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 8px;
  line-height: 10px;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.form-status {
  display: none;
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 8px;
  line-height: 12px;
  text-align: center;
}

.form-status:not(:empty) {
  display: block;
}

.form-status.error {
  color: #ff8ca2;
}

.form-status.success {
  color: var(--accent);
}

.is-hidden {
  display: none;
}

.sprite-wrap {
  width: min(280px, 60vw);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sprite-gif {
  width: min(100%, 300px);
  height: auto;
  max-height: 34vh;
  object-fit: contain;
  image-rendering: pixelated;
}

@keyframes drift-a {
  from {
    transform: translate(-18px, -14px);
  }
  to {
    transform: translate(18px, 14px);
  }
}

@keyframes drift-b {
  from {
    transform: translate(12px, 10px);
  }
  to {
    transform: translate(-12px, -10px);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.018);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes landing-shake {
  0% {
    transform: translate3d(0, 0, 0);
  }
  20% {
    transform: translate3d(0, 1px, 0);
  }
  40% {
    transform: translate3d(-1px, 0, 0);
  }
  60% {
    transform: translate3d(1px, 0, 0);
  }
  80% {
    transform: translate3d(0, -1px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 980px) {
  .page-shell {
    width: calc(100% - 24px);
    padding-bottom: 10px;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
    gap: 14px;
  }

  .brand-logo {
    width: min(320px, 90vw);
  }
}

@media (max-height: 900px) and (min-width: 981px) {
  :root {
    --control-height: 38px;
  }

  .hero {
    gap: 6px;
  }

  .brand-logo {
    width: min(320px, 52vw);
  }

  .sprite-wrap {
    width: min(240px, 42vw);
  }

  .sprite-gif {
    max-height: 28vh;
  }

  .hero-panel {
    width: min(460px, 92vw);
    padding: 10px;
  }

}

@media (max-width: 640px) {
  :root {
    --consent-box-size: 20px;
  }

  .page-shell {
    width: calc(100% - 16px);
  }

  .panel {
    padding: 12px;
  }

  .hero-title {
    font-size: 18px;
    line-height: 20px;
  }

  .input-shell input {
    font-size: 16px;
    line-height: 20px;
  }

  .input-shell input::placeholder {
    font-size: 12px;
    line-height: 16px;
  }

  .btn {
    font-size: 10px;
  }

  .hero-panel {
    width: calc(100% - 40px);
    margin-inline: auto;
  }

  .form-row {
    flex-direction: column;
    padding-inline: 0;
  }

  .form-row .btn {
    width: 100%;
    flex-basis: auto;
  }

  .consent-row {
    gap: 10px;
    align-items: flex-start;
  }

  .consent-row label {
    font-size: 10px;
    line-height: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .accent-layer-a,
  .accent-layer-b,
  .pulse,
  .impact-shake {
    animation: none;
  }
}
