@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap");

:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #5f5f5f;
  --border: #0f0f0f;
  --accent: #00a6b4;
  --danger: #d13a2f;
  --theme-grad-start: #f2fbff;
  --theme-grad-mid: #eef6ff;
  --theme-grad-end: #fff3e2;
  --theme-stripe-rgb: 0, 166, 180;
  --theme-grid-rgb: 17, 17, 17;
  --theme-diagonal-a-rgb: 0, 166, 180;
  --theme-diagonal-b-rgb: 255, 185, 102;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  background: linear-gradient(140deg, var(--theme-grad-start) 0%, var(--theme-grad-mid) 45%, var(--theme-grad-end) 100%);
  color: var(--ink);
  font-family: "VT323", monospace;
  font-size: 1.35rem;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.95;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(var(--theme-stripe-rgb), 0.15) 0 20px,
      rgba(255, 255, 255, 0) 20px 42px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(var(--theme-grid-rgb), 0.07) 0 2px,
      rgba(255, 255, 255, 0) 2px 12px
    );
  background-size: 200% 200%, 12px 12px;
  animation: pixel-bars 16s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0) 0 42%, rgba(var(--theme-diagonal-a-rgb), 0.13) 42% 57%, rgba(255, 255, 255, 0) 57% 100%),
    linear-gradient(45deg, rgba(255, 255, 255, 0) 0 46%, rgba(var(--theme-diagonal-b-rgb), 0.14) 46% 60%, rgba(255, 255, 255, 0) 60% 100%);
  background-size: 90px 90px, 120px 120px;
  animation: pixel-diagonals 22s linear infinite;
}

body > * {
  position: relative;
  z-index: 1;
}

body.landing-theme-planes {
  --accent: #00a6b4;
  --theme-grad-start: #f2fbff;
  --theme-grad-mid: #eef6ff;
  --theme-grad-end: #fff3e2;
  --theme-stripe-rgb: 0, 166, 180;
  --theme-diagonal-a-rgb: 0, 166, 180;
  --theme-diagonal-b-rgb: 255, 185, 102;
}

body.landing-theme-quedadas {
  --accent: #1d9f6f;
  --theme-grad-start: #eefbf5;
  --theme-grad-mid: #e9f8ff;
  --theme-grad-end: #fef7ea;
  --theme-stripe-rgb: 29, 159, 111;
  --theme-diagonal-a-rgb: 29, 159, 111;
  --theme-diagonal-b-rgb: 88, 189, 142;
}

body.landing-theme-hacer-amigos {
  --accent: #6d5ce8;
  --theme-grad-start: #f5f0ff;
  --theme-grad-mid: #eef5ff;
  --theme-grad-end: #fff0f7;
  --theme-stripe-rgb: 109, 92, 232;
  --theme-diagonal-a-rgb: 109, 92, 232;
  --theme-diagonal-b-rgb: 223, 113, 184;
}

body.landing-theme-fiesta {
  --accent: #f15a24;
  --theme-grad-start: #1d1030;
  --theme-grad-mid: #2b153f;
  --theme-grad-end: #47213e;
  --theme-stripe-rgb: 241, 90, 36;
  --theme-grid-rgb: 245, 197, 255;
  --theme-diagonal-a-rgb: 241, 90, 36;
  --theme-diagonal-b-rgb: 255, 60, 151;
  --ink: #fff4f9;
  --muted: #f6cedd;
  --border: #ffe7f2;
}

body.brand-domain-planes {
  --accent: #2f6df6;
  --theme-grad-start: #f4f7ff;
  --theme-grad-mid: #eef3ff;
  --theme-grad-end: #fff4dc;
  --theme-stripe-rgb: 47, 109, 246;
  --theme-diagonal-a-rgb: 47, 109, 246;
  --theme-diagonal-b-rgb: 255, 196, 108;
}

body.brand-domain-quedadas {
  --accent: #2f6e4f;
  --theme-grad-start: #f3fbf6;
  --theme-grad-mid: #fff1e8;
  --theme-grad-end: #fff8ef;
  --theme-stripe-rgb: 47, 110, 79;
  --theme-diagonal-a-rgb: 47, 110, 79;
  --theme-diagonal-b-rgb: 236, 166, 118;
}

body.brand-domain-hacer-amigos {
  --accent: #0d5d67;
  --theme-grad-start: #eef7f8;
  --theme-grad-mid: #f2faf5;
  --theme-grad-end: #f8f1e8;
  --theme-stripe-rgb: 13, 93, 103;
  --theme-diagonal-a-rgb: 13, 93, 103;
  --theme-diagonal-b-rgb: 114, 177, 136;
}

body.brand-domain-fiesta {
  --accent: #d8ff3f;
  --theme-grad-start: #110a1c;
  --theme-grad-mid: #1a122a;
  --theme-grad-end: #2a1630;
  --theme-stripe-rgb: 216, 255, 63;
  --theme-grid-rgb: 245, 220, 255;
  --theme-diagonal-a-rgb: 216, 255, 63;
  --theme-diagonal-b-rgb: 255, 103, 184;
  --ink: #fff4f9;
  --muted: #f6cedd;
  --border: #ffe7f2;
}

h1,
h2,
h3,
.brand,
.button {
  font-family: "Press Start 2P", monospace;
  line-height: 1.45;
}

h1 {
  font-size: 1rem;
}

h2 {
  font-size: 0.85rem;
}

p {
  margin: 0.3rem 0 0.9rem;
}

.hero-domain-subtitle {
  margin-top: 0.4rem;
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 60ch;
}

a {
  color: inherit;
}

.container {
  width: min(100%, 960px);
  padding: 0 1rem;
  margin: 0 auto;
}

.topbar {
  padding: 0.9rem 0;
  border-bottom: 3px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(2px);
  position: sticky;
  top: 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.topbar .topbar-centered {
  justify-content: center;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-navbar {
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.admin-navbar-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.admin-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.45rem;
  border: 2px solid var(--border);
  background: #ffffff;
  text-decoration: none;
  font-family: "Press Start 2P", monospace;
  font-size: 0.52rem;
  box-shadow: 2px 2px 0 var(--border);
}

.admin-nav-link-active {
  background: #dff6ff;
}

.admin-logout-button {
  margin: 0;
}

.brand {
  text-decoration: none;
  font-size: 0.72rem;
}

.community-modal {
  border: 3px solid var(--border);
  box-shadow: 6px 6px 0 var(--border);
  max-width: min(90vw, 560px);
  padding: 0;
}

.community-modal::backdrop {
  background: rgba(17, 17, 17, 0.45);
}

.community-modal-content {
  background: #ffffff;
  padding: 1rem;
}

.community-modal-content h2 {
  margin-top: 0.2rem;
}

.page-content {
  padding-top: 1rem;
  padding-bottom: 3rem;
}

.legal-footer {
  padding-bottom: 1.1rem;
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.home-no-scroll {
  overflow: hidden;
}

.home-no-scroll .page-content {
  height: 100vh;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.home-no-scroll .pixel-card {
  margin-bottom: 0;
}

.pixel-card {
  border: 3px solid var(--border);
  background: #ffffff;
  box-shadow: 6px 6px 0 var(--border);
  padding: 1rem;
  margin-bottom: 1rem;
}

.hero {
  margin-top: 1rem;
}

.home-no-scroll .hero {
  margin-top: 0;
}

.home-hero {
  overflow: hidden;
}

.home-hero::after {
  content: "";
  display: block;
  height: 8px;
  margin: 0 -1rem -1rem;
  background: repeating-linear-gradient(
    90deg,
    #00a6b4 0 20px,
    #9ce9f0 20px 40px,
    #ffbe73 40px 60px,
    #ffffff 60px 80px
  );
}

.home-no-scroll .home-hero {
  padding: 0.72rem;
}

.home-no-scroll .home-hero p {
  margin: 0.2rem 0 0.5rem;
  line-height: 1.12;
}

.mystery-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 0.85rem;
  border: 3px solid var(--border);
  background: linear-gradient(135deg, #f3fdff 0%, #fff8eb 100%);
  box-shadow: 3px 3px 0 var(--border);
  overflow: hidden;
}

.home-no-scroll .mystery-stats {
  margin-top: 0.55rem;
}

.mystery-stat {
  min-height: 90px;
  padding: 0.35rem 0.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.mystery-stat + .mystery-stat {
  border-left: 3px solid var(--border);
}

.mystery-stat-label {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.mystery-stat-value {
  margin: 0;
  font-family: "Press Start 2P", monospace;
  font-size: 1.15rem;
  line-height: 1.25;
}

.arcade-card h2 {
  margin-bottom: 0.7rem;
}

.home-no-scroll .arcade-card {
  padding: 0.72rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.home-no-scroll .arcade-card p {
  margin: 0.2rem 0 0.45rem;
  line-height: 1.1;
}

.dino-game {
  border: 2px dashed var(--border);
  background: #fff8e9;
  padding: 0.8rem;
}

.home-no-scroll .dino-game {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dino-track {
  position: relative;
  width: 100%;
  height: 108px;
  border: 2px solid var(--border);
  background:
    linear-gradient(to top, #cfeef3 0 28%, #f9feff 28% 100%),
    repeating-linear-gradient(90deg, rgba(15, 15, 15, 0.06) 0 12px, rgba(255, 255, 255, 0) 12px 24px);
  overflow: hidden;
  margin-bottom: 0.7rem;
  cursor: pointer;
}

.home-no-scroll .dino-track {
  flex: 1;
  height: auto;
  min-height: 88px;
  margin-bottom: 0.42rem;
}

.dino-track:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.dino-track::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 3px;
  background: var(--border);
}

.dino-player {
  position: absolute;
  left: 30px;
  bottom: 18px;
  width: 22px;
  height: 24px;
  border: 2px solid var(--border);
  background: #ffffff;
  box-shadow: 2px 2px 0 var(--border);
}

.dino-obstacle {
  position: absolute;
  left: 0;
  bottom: 18px;
  width: 16px;
  height: 28px;
  border: 2px solid var(--border);
  background: #ffbe73;
  box-shadow: 2px 2px 0 var(--border);
}

.arcade-hit {
  width: 100%;
}

.arcade-progress {
  margin-bottom: 0.5rem;
}

.plan-show-header {
  margin: -1rem -1rem 0;
  padding: 1rem;
  border-bottom: 3px solid var(--border);
  background: #f7f7f7;
}

.plan-show-header h1 {
  margin: 0.35rem 0 0.75rem;
}

.plan-show-header .plan-date {
  margin: 0;
}

.eyebrow {
  color: var(--accent);
  letter-spacing: 1px;
  font-family: "Press Start 2P", monospace;
  font-size: 0.62rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border: 3px solid var(--border);
  background: #ffffff;
  color: var(--ink);
  padding: 0.5rem 0.65rem;
  font-size: 0.62rem;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--border);
}

.button:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--border);
}

.button-secondary {
  background: #ebebeb;
}

.button-danger {
  color: #ffffff;
  background: var(--danger);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
  box-shadow: 3px 3px 0 var(--border);
}

.nav-link,
.text-link {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.flash {
  border: 2px dashed var(--border);
  background: #fff8df;
  margin-bottom: 0.8rem;
  padding: 0.4rem 0.6rem;
}

.flash.alert {
  background: #ffe2df;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.analytics-range-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.analytics-range-option {
  border: 2px solid var(--border);
  background: #ffffff;
  box-shadow: 2px 2px 0 var(--border);
  text-decoration: none;
  font-family: "Press Start 2P", monospace;
  font-size: 0.5rem;
  line-height: 1.4;
  padding: 0.3rem 0.45rem;
}

.analytics-range-option-active {
  background: #dff6ff;
}

.analytics-muted {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.analytics-kpi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.analytics-kpi-card {
  margin-bottom: 0;
}

.analytics-kpi-label {
  margin: 0;
  color: var(--muted);
}

.analytics-kpi-value {
  margin: 0.35rem 0 0;
  font-family: "Press Start 2P", monospace;
  font-size: 1rem;
}

.analytics-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.daily-bars-chart {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(24px, 1fr));
  gap: 0.4rem;
  min-height: 170px;
  align-items: end;
}

.daily-bars-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.daily-bars-column {
  width: 100%;
  height: 140px;
  border: 2px solid var(--border);
  background: #f6f7fb;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding: 0 2px;
}

.daily-bars-bar {
  width: 42%;
  min-height: 3px;
}

.daily-bars-visits {
  background: #2f6df6;
}

.daily-bars-leads {
  background: #2f9f6d;
}

.daily-bars-label {
  margin: 0;
  font-size: 0.92rem;
}

.intent-chart-list {
  margin-top: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.intent-chart-row {
  display: grid;
  grid-template-columns: minmax(96px, 130px) 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.intent-chart-label,
.intent-chart-value {
  margin: 0;
}

.intent-chart-bar-wrap {
  height: 16px;
  border: 2px solid var(--border);
  background: #eef4ff;
}

.intent-chart-bar {
  height: 100%;
  min-width: 4px;
  background: linear-gradient(90deg, #8f95ff 0%, #2f6df6 100%);
}

.domain-chart-list {
  margin-top: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.domain-chart-row {
  display: grid;
  grid-template-columns: minmax(125px, 170px) 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.domain-chart-label,
.domain-chart-value {
  margin: 0;
}

.domain-chart-bar-wrap {
  height: 16px;
  border: 2px solid var(--border);
  background: #eef4ff;
}

.domain-chart-bar {
  height: 100%;
  min-width: 4px;
  background: linear-gradient(90deg, #5a69ff 0%, #2f6df6 100%);
}

.stacked-intent-chart {
  height: 16px;
  border: 2px solid var(--border);
  display: flex;
  width: 100%;
  min-width: 180px;
  overflow: hidden;
}

.stacked-intent-segment {
  height: 100%;
}

.stacked-intent-segment-0 {
  background: #2f6df6;
}

.stacked-intent-segment-1 {
  background: #17a384;
}

.stacked-intent-segment-2 {
  background: #f59e0b;
}

.stacked-intent-segment-3 {
  background: #e4558f;
}

.plan-row {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.plan-form .field {
  margin-bottom: 0.8rem;
}

label {
  display: block;
  margin-bottom: 0.25rem;
  font-family: "Press Start 2P", monospace;
  font-size: 0.55rem;
}

input,
textarea,
select {
  width: 100%;
  border: 3px solid var(--border);
  padding: 0.55rem;
  font: inherit;
  background: #ffffff;
}

.field-inline-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.field-inline-check input[type="checkbox"] {
  width: auto;
  margin: 0;
  transform: scale(1.2);
}

.field-inline-check label {
  margin: 0;
}

.madrid-landing {
  max-width: 760px;
  margin: 1rem auto 0;
}

.madrid-landing .field-inline-check {
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.2rem 0 0.75rem;
}

.madrid-landing .field {
  margin-bottom: 0.85rem;
}

.madrid-landing .field-inline-check label {
  font-family: "VT323", monospace;
  font-size: 1.15rem;
  line-height: 1.2;
}

.madrid-landing-challenge {
  margin: 0.75rem 0 0.95rem;
}

.madrid-landing-challenge h2 {
  margin-top: 0;
}

.madrid-landing [data-madrid-form-step] {
  margin-top: 0.45rem;
}

.madrid-success-ctas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.madrid-landing-footer {
  margin-top: 0.45rem;
  text-align: center;
}

.madrid-community-text-trigger {
  border: 0;
  background: none;
  color: #ffffff;
  padding: 0;
  font: inherit;
  font-size: 1.05rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.featured-image-wrap {
  border: 3px solid var(--border);
  background: #f7f7f7;
  margin: 0.8rem 0;
}

.featured-image-full {
  border: 0;
  margin-left: -1rem;
  margin-right: -1rem;
  margin-top: 0;
  position: relative;
  overflow: hidden;
}

.featured-image {
  width: 100%;
  height: auto;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
}

.price-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--border);
  padding: 0.3rem 0.45rem;
  font-family: "Press Start 2P", monospace;
  font-size: 0.52rem;
  line-height: 1.4;
  color: var(--ink);
  background: #eef8fa;
  box-shadow: 2px 2px 0 var(--border);
}

.price-badge-free {
  background: #ddf7e9;
}

.price-badge-paid {
  background: #f7ead1;
}

.price-badge-approx {
  background: #dff1f7;
}

.price-badge-static {
  position: static;
  margin: 0.8rem 0;
}

.date-badge {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--border);
  padding: 0.3rem 0.45rem;
  font-family: "Press Start 2P", monospace;
  font-size: 0.48rem;
  line-height: 1.4;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 2px 2px 0 var(--border);
}

.date-badge-static {
  position: static;
  margin: 0 0 0.8rem;
}

.people-meter {
  position: relative;
  width: 100%;
  height: 16px;
  border: 2px solid var(--border);
  background: #f1f1f1;
  box-shadow: 2px 2px 0 var(--border);
  overflow: hidden;
}

.people-meter-current {
  height: 100%;
  background: repeating-linear-gradient(45deg, #00a6b4, #00a6b4 8px, #61d3dd 8px, #61d3dd 16px);
}

.people-marker {
  position: absolute;
  top: 0;
  width: 3px;
  height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
}

.people-strip {
  margin: 0 -1rem 1rem;
  padding: 0.85rem 1rem 0.75rem;
  background: #f8fcfd;
}

.people-marker-min {
  background: #ef4444;
}

.people-marker-current {
  background: #111111;
}

.people-bar-labels {
  margin: 0.4rem 0 0;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 1.1rem;
}

.map-section {
  margin: 1rem -1rem;
}

.ticket-cta-wrap {
  padding: 0 1rem 0.7rem;
}

.button-full {
  width: 100%;
}

.ticket-cta {
  min-height: 46px;
  justify-content: center;
}

.plan-map-wrap {
  position: relative;
}

.map-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--border);
  padding: 0.28rem 0.42rem;
  text-decoration: none;
  font-family: "Press Start 2P", monospace;
  font-size: 0.46rem;
  line-height: 1.2;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 2px 2px 0 var(--border);
}

.map-meta {
  padding: 0.35rem 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.map-address {
  margin: 0;
  font-size: 0.95rem;
  text-align: center;
  color: var(--muted);
}

.plan-map {
  width: 100%;
  min-height: 220px;
  border-top: 3px solid var(--border);
  border-bottom: 3px solid var(--border);
}

.public-plan-card {
  margin-bottom: 6rem;
}

.floating-signup-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  border-top: 3px solid var(--border);
  backdrop-filter: blur(2px);
}

.floating-signup-cta .cta-meta {
  margin: 0 0 0.4rem;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
}

.floating-signup-cta .cta-button {
  width: 100%;
  min-height: 46px;
  justify-content: center;
  font-size: 0.56rem;
}

.floating-signup-cta .cta-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #96f7ff 0%, #63e7f4 55%, #d9fff2 100%);
  box-shadow: 4px 4px 0 var(--border);
  animation: cta-pop 1.8s ease-in-out infinite;
}

.floating-signup-cta .cta-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  transform: skewX(-20deg);
  animation: cta-shine 2.5s linear infinite;
}

.floating-signup-cta .cta-primary:hover {
  transform: translate(-1px, -1px) scale(1.01);
}

.floating-signup-cta form {
  margin: 0;
}

.signup-card {
  max-width: 760px;
}

.success-card {
  border-color: var(--accent);
}

.success-list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}

.success-list li {
  margin-bottom: 0.45rem;
}

.signup-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  border: 2px solid var(--border);
}

.signup-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-bottom: 2px solid var(--border);
}

.signup-list li:last-child {
  border-bottom: 0;
}

.signup-list span {
  color: var(--muted);
  font-size: 1rem;
}

.signup-card .text-link {
  overflow-wrap: anywhere;
}

.ref-link-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}

.ref-link-input {
  width: 100%;
  border: 3px solid var(--border);
  background: #f5fbff;
  padding: 0.55rem;
  font: inherit;
}

.copy-feedback {
  min-height: 1.2rem;
  margin: 0 0 0.9rem;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.copy-feedback.visible {
  opacity: 1;
}

.referral-banner {
  border: 2px dashed var(--accent);
  background: #e7fbff;
  padding: 0.65rem 0.75rem;
  margin: 0 0 0.9rem;
}

.referral-banner p {
  margin: 0;
}

.referral-sub {
  margin-top: 0.35rem;
  color: var(--muted);
}

.participants-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.participants-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  border: 2px solid var(--border);
}

.participants-table th,
.participants-table td {
  border: 2px solid var(--border);
  padding: 0.5rem 0.55rem;
  text-align: left;
  vertical-align: top;
}

.participants-table th {
  font-family: "Press Start 2P", monospace;
  font-size: 0.5rem;
  background: #f1f8ff;
}

.token-cell {
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.ticket-warning {
  border: 2px dashed var(--border);
  padding: 0.65rem 0.75rem;
  background: #fff6da;
  margin-bottom: 0.8rem;
}

.ticket-warning p:last-child {
  margin-bottom: 0;
}

.form-errors {
  border: 2px dashed var(--danger);
  padding: 0.6rem;
  background: #ffe8e6;
  margin-bottom: 0.8rem;
}

.field-error {
  margin: 0.35rem 0 0;
  color: var(--danger);
  font-size: 1.12rem;
  line-height: 1.15;
}

.field-errors {
  margin-top: 0.25rem;
  padding-left: 0.15rem;
}

.field-with-error input,
.field-with-error textarea,
.field-with-error select {
  border-color: var(--danger);
}

.field-inline-check .field-error {
  width: 100%;
  margin: 0.45rem 0 0;
}

.field-inline-check .field-errors {
  flex-basis: 100%;
}

@keyframes pixel-bars {
  0% {
    background-position: 0 0, 0 0;
  }

  100% {
    background-position: 320px 0, 0 120px;
  }
}

@keyframes pixel-diagonals {
  0% {
    background-position: 0 0, 0 0;
  }

  100% {
    background-position: 180px 120px, -160px 140px;
  }
}

@keyframes cta-pop {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

@keyframes cta-shine {
  0% {
    left: -45%;
  }

  100% {
    left: 120%;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1317;
    --ink: #e8edf3;
    --muted: #9aa8b8;
    --border: #d4dee8;
    --accent: #67e8f9;
    --danger: #f87171;
  }

  body {
    background: linear-gradient(140deg, #121821 0%, #11192a 45%, #1f1822 100%);
  }

  body::before {
    background-image:
      repeating-linear-gradient(
        90deg,
        rgba(103, 232, 249, 0.13) 0 20px,
        rgba(255, 255, 255, 0) 20px 42px
      ),
      repeating-linear-gradient(
        0deg,
        rgba(212, 222, 232, 0.06) 0 2px,
        rgba(255, 255, 255, 0) 2px 12px
      );
  }

  body::after {
    background-image:
      linear-gradient(135deg, rgba(255, 255, 255, 0) 0 42%, rgba(103, 232, 249, 0.11) 42% 57%, rgba(255, 255, 255, 0) 57% 100%),
      linear-gradient(45deg, rgba(255, 255, 255, 0) 0 46%, rgba(249, 168, 212, 0.1) 46% 60%, rgba(255, 255, 255, 0) 60% 100%);
  }

  .topbar,
  .pixel-card,
  .plan-show-header,
  .featured-image-wrap,
  .button,
  input,
  textarea,
  select,
  .floating-signup-cta,
  .map-badge {
    background: #0f1722;
    color: var(--ink);
  }

  .button-secondary,
  .flash,
  .people-strip,
  .people-meter,
  .signup-list,
  .signup-list li {
    background: #162233;
  }

  .admin-nav-link {
    background: #162233;
  }

  .admin-nav-link-active {
    background: #1f344d;
  }

  .flash.alert,
  .form-errors {
    background: #2a1c24;
  }

  .ticket-warning {
    background: #352d1a;
  }

  .mystery-stat {
    background: #102332;
  }

  .mystery-stats {
    background: linear-gradient(135deg, #0f2537 0%, #2c2218 100%);
  }

  .dino-game {
    background: #2d2414;
  }

  .dino-track {
    background:
      linear-gradient(to top, #23374a 0 28%, #101a2b 28% 100%),
      repeating-linear-gradient(90deg, rgba(212, 222, 232, 0.05) 0 12px, rgba(255, 255, 255, 0) 12px 24px);
  }

  .dino-player {
    background: #0f1722;
  }

  .dino-obstacle {
    background: #7c5532;
  }

  .referral-banner {
    background: #12303a;
  }

  .participants-table th {
    background: #1e2b3c;
  }

  .analytics-range-option {
    background: #162233;
  }

  .analytics-range-option-active {
    background: #1f344d;
  }

  .daily-bars-column,
.intent-chart-bar-wrap,
.domain-chart-bar-wrap {
    background: #162233;
  }

  .stacked-intent-chart {
    background: #162233;
  }

  .ref-link-input {
    background: #162233;
    color: var(--ink);
  }

  .date-badge {
    background: #0f1722;
  }

  .floating-signup-cta .cta-primary {
    background: linear-gradient(135deg, #0f5f70 0%, #126576 55%, #1a4a4a 100%);
  }

  .floating-signup-cta .cta-primary::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(103, 232, 249, 0.35), rgba(255, 255, 255, 0));
  }

  .price-badge {
    background: #1a2a33;
  }

  .price-badge-free {
    background: #16382a;
  }

  .price-badge-paid {
    background: #3a2d19;
  }

  .price-badge-approx {
    background: #173345;
  }
}

@media (min-width: 700px) {
  h1 {
    font-size: 1.2rem;
  }

  .field-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mystery-stats {
    grid-template-columns: 1fr 1fr;
  }

  .mystery-stat-value {
    font-size: 1.7rem;
  }

  .plan-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .analytics-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ref-link-row {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}
