@font-face {
  font-family: "Bungee";
  src: url("/fonts/bungee-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --ink: #090511;
  --panel: #180b2e;
  --panel-deep: #0d0717;
  --lime: #b8ff2c;
  --green: #44f279;
  --orange: #ff7a1a;
  --cream: #fff3d6;
  --purple: #8f5bda;
  --muted: #9d8cbd;
  --gunmetal: #2a2438;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(circle at 86% 5%, rgba(137, 62, 229, 0.16), transparent 26rem),
    radial-gradient(circle at 10% 70%, rgba(184, 255, 44, 0.06), transparent 30rem),
    var(--ink);
  font-family: "Space Grotesk", sans-serif;
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.12;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.09) 4px
  );
  mix-blend-mode: soft-light;
}

.toast {
  position: fixed;
  top: 104px;
  left: 50%;
  z-index: 110;
  padding: 12px 20px;
  color: var(--ink);
  background: var(--lime);
  border: 2px solid var(--cream);
  box-shadow: 7px 7px 0 #4f1f75;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  width: min(1460px, calc(100% - 32px));
  height: 74px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border: 1px solid rgba(157, 140, 189, 0.44);
  background: rgba(9, 5, 17, 0.86);
  box-shadow:
    inset 0 -2px 0 rgba(143, 91, 218, 0.35),
    0 12px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 3px;
  background: var(--purple);
  box-shadow: 0 0 15px var(--purple);
}

.site-header::before {
  top: 0;
  left: 24px;
}

.site-header::after {
  right: 24px;
  bottom: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  width: fit-content;
  font-family: "Bungee", sans-serif;
  font-size: clamp(0.82rem, 1.5vw, 1.08rem);
  letter-spacing: 0.02em;
}

.brand-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  border: 2px solid var(--cream);
  box-shadow: 5px 5px 0 #4f1f75;
  transform: rotate(-2deg);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 58px);
  color: #caa9ff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.site-header nav a {
  position: relative;
  padding: 10px 0;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  justify-self: end;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--orange);
  background: #10091b;
  border: 2px solid var(--orange);
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
}

.hero {
  position: relative;
  min-height: 920px;
  padding: 124px 0 88px;
  display: block;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 2px solid #382452;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1460px, calc(100% - 32px));
  min-height: 708px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.07fr);
  align-items: center;
  gap: clamp(10px, 2vw, 36px);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(143, 91, 218, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 91, 218, 0.08) 1px, transparent 1px);
  background-size: 54px 54px;
  transform: perspective(700px) rotateX(64deg) scale(1.7) translateY(18%);
  transform-origin: center bottom;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 90px 0 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(9, 5, 17, 0.98) 0%, rgba(9, 5, 17, 0.55) 44%, transparent 72%),
    radial-gradient(circle at 72% 44%, rgba(125, 47, 221, 0.42), transparent 28%),
    repeating-radial-gradient(circle at 63% 48%, rgba(184, 255, 44, 0.08) 0 2px, transparent 2px 12px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 106px 18px 20px;
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(143, 91, 218, 0.24);
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 690px;
}

.live-pill {
  width: fit-content;
  margin-bottom: 28px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--lime);
  border: 1px solid var(--lime);
  border-radius: 999px;
  box-shadow: inset 0 0 20px rgba(184, 255, 44, 0.05);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.live-pill span,
.status-chip i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 14px var(--lime);
  animation: blink 1.5s steps(2) infinite;
}

.eyebrow {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--lime);
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.72rem, 1.3vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.36em;
}

.hero h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: "Bungee", sans-serif;
  font-size: clamp(5.2rem, 10.6vw, 11.6rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.73;
  filter: drop-shadow(9px 11px 0 #251238);
}

.hero h1 span:first-child {
  color: var(--cream);
  -webkit-text-stroke: 2px #26173d;
}

.hero h1 span:last-child {
  color: var(--lime);
  -webkit-text-stroke: 2px #26173d;
  text-shadow: 0 0 34px rgba(184, 255, 44, 0.28);
}

.hero-copy > p {
  margin: 38px 0 32px;
  color: var(--cream);
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  line-height: 1.72;
  letter-spacing: 0.055em;
}

.hero-stats {
  display: flex;
  gap: 1px;
  width: fit-content;
  border: 1px solid rgba(157, 140, 189, 0.32);
  background: rgba(157, 140, 189, 0.32);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.hero-stats div {
  min-width: 136px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  background: rgba(13, 7, 23, 0.9);
}

.hero-stats strong {
  color: var(--lime);
  font-family: "Bungee", sans-serif;
  font-size: 1.55rem;
  font-weight: 400;
}

.hero-stats span {
  margin-top: 3px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.57rem;
  letter-spacing: 0.08em;
}

.hero-art {
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 708px;
  --px: 0px;
  --py: 0px;
  perspective: 1200px;
}

.purple-burst {
  position: absolute;
  top: 12%;
  left: 5%;
  width: 620px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 15deg, rgba(184, 255, 44, 0.15) 0 1deg, transparent 1deg 7deg),
    radial-gradient(circle, rgba(151, 75, 249, 0.72), rgba(73, 17, 122, 0.22) 42%, transparent 69%);
  filter: blur(0.2px);
  animation: rotateBurst 40s linear infinite;
}

.dew-hero-image {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: auto;
  height: min(730px, 62vw);
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.55));
  mix-blend-mode: normal;
  transform: translate(-48%, -49%) rotate(2deg);
  animation: heroFloat 6s ease-in-out infinite;
}

.pixel-field i {
  position: absolute;
  z-index: 4;
  width: 8px;
  height: 8px;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  animation: pixelDrift 8s linear infinite;
}

.pixel-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pixel-field i:nth-child(1) { top: 31%; left: 59%; }
.pixel-field i:nth-child(2) { top: 66%; left: 54%; width: 5px; height: 5px; animation-delay: -2s; }
.pixel-field i:nth-child(3) { top: 51%; left: 89%; background: var(--orange); animation-delay: -3.5s; }
.pixel-field i:nth-child(4) { top: 75%; left: 71%; width: 4px; height: 4px; animation-delay: -5s; }
.pixel-field i:nth-child(5) { top: 25%; left: 82%; width: 6px; height: 6px; animation-delay: -1s; }
.pixel-field i:nth-child(6) { top: 80%; left: 93%; background: var(--orange); animation-delay: -6s; }

.scroll-cue {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: 5;
  width: min(390px, calc(100% - 40px));
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--lime);
  border: 2px solid #59416f;
  border-bottom: 0;
  background: #110a1b;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  letter-spacing: 0.18em;
  clip-path: polygon(42px 0, calc(100% - 42px) 0, 100% 100%, 0 100%);
  transform: translateX(-50%);
}

.board-section,
.leaderboard-section {
  position: relative;
  padding: 110px max(6vw, 24px);
}

.board-section {
  background:
    radial-gradient(circle at 50% 0, rgba(132, 54, 221, 0.18), transparent 26rem),
    linear-gradient(180deg, #0d0717, #090511);
}

.section-heading {
  margin: 0 auto 46px;
  max-width: 1380px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.board-actions {
  max-width: 470px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.board-actions p {
  margin: 0 16px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.section-kicker {
  color: var(--lime);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.section-heading h2,
.leaderboard-copy h2,
.challenge-placeholder h2,
.challenge-copy h2 {
  margin: 8px 0 0;
  color: var(--cream);
  font-family: "Bungee", sans-serif;
  font-size: clamp(2.35rem, 5vw, 5.3rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.arcade-button,
.icon-button,
.text-button,
.card-controls button,
.settled-controls button {
  border: 0;
  cursor: pointer;
}

.arcade-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  color: var(--ink);
  background: var(--lime);
  border: 2px solid #eaffb5;
  box-shadow: inset 0 -5px 0 #77b817, 6px 6px 0 #4f1f75;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: transform 150ms ease, filter 150ms ease;
}

.arcade-button:hover,
.arcade-button:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.arcade-button:active {
  box-shadow: inset 0 -2px 0 #77b817, 3px 3px 0 #4f1f75;
  transform: translate(3px, 3px);
}

.small-button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 18px;
}

.icon-button {
  flex: 0 0 auto;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--orange);
  border: 1px solid rgba(255, 122, 26, 0.7);
  background: #130a1c;
}

.icon-button.active {
  color: var(--ink);
  background: var(--orange);
}

.edit-board-button {
  color: var(--orange);
  border-color: rgba(255, 122, 26, 0.8);
  background: #130a1c;
  box-shadow: inset 0 -4px 0 #4b1d09, 6px 6px 0 #4f1f75;
}

.edit-board-button.active {
  color: var(--ink);
  border-color: #ffc38f;
  background: var(--orange);
}

.console-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(4, 2, 8, 0.82);
  backdrop-filter: blur(10px);
}

.wager-console {
  width: min(1040px, 100%);
  max-height: calc(100vh - 48px);
  margin: 0;
  overflow: auto;
  border: 1px solid rgba(184, 255, 44, 0.45);
  background:
    linear-gradient(135deg, rgba(184, 255, 44, 0.055), transparent 32%),
    #10091a;
  box-shadow: 10px 10px 0 #231037;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.console-close-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--orange);
  border: 1px solid rgba(255, 122, 26, 0.65);
  background: #0b0612;
  cursor: pointer;
}

.console-title {
  min-height: 54px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(157, 140, 189, 0.25);
  background: rgba(184, 255, 44, 0.04);
}

.console-title > span {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--lime);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  color: var(--muted);
  background: transparent;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.text-button:hover,
.text-button:focus-visible {
  color: var(--cream);
}

.console-grid,
.form-grid {
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.console-grid label,
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #bba9cd;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.59rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.console-grid input,
.console-grid textarea,
.console-grid select,
.form-grid input,
.form-grid textarea {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  color: var(--cream);
  outline: none;
  border: 1px solid rgba(157, 140, 189, 0.32);
  border-radius: 0;
  background: #0b0612;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.console-grid input:focus,
.console-grid textarea:focus,
.console-grid select:focus,
.form-grid input:focus,
.form-grid textarea:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(184, 255, 44, 0.09);
}

.console-grid select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--lime) 50%),
    linear-gradient(135deg, var(--lime) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 11px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.console-grid textarea,
.form-grid textarea {
  resize: vertical;
}

.upload-control {
  min-height: 64px;
  padding: 8px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(157, 140, 189, 0.32);
  background: #0b0612;
}

.upload-preview {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  color: var(--lime);
  border: 1px solid rgba(184, 255, 44, 0.42);
  background: linear-gradient(135deg, #25103b, #0d0717);
  font-family: "Bungee", sans-serif;
  font-size: 0.64rem;
}

.avatar-preview {
  width: 96px;
  height: 40px;
  border-radius: 3px;
}

.logo-preview {
  height: 36px;
  border-radius: 3px;
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-preview img {
  padding: 3px;
  object-fit: contain;
}

.upload-control input[type="file"] {
  padding: 0;
  border: 0;
  background: transparent;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.55rem;
}

.upload-control input[type="file"]::file-selector-button {
  margin-right: 8px;
  padding: 8px 10px;
  color: var(--ink);
  border: 0;
  background: var(--lime);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.span-two {
  grid-column: span 2;
}

.console-footer {
  padding: 0 22px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.reset-button {
  color: #c97878;
}

.save-button {
  min-width: 220px;
}

.wager-grid {
  max-width: 1380px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.wager-card {
  position: relative;
  min-width: 0;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(184, 255, 44, 0.56);
  background:
    linear-gradient(135deg, rgba(143, 91, 218, 0.14), transparent 44%),
    #10091a;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 60px rgba(0, 0, 0, 0.26);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.wager-card::before {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  background: repeating-linear-gradient(
    -12deg,
    rgba(255, 255, 255, 0.05) 0 25px,
    transparent 25px 50px
  );
  animation: angledRows 7s linear infinite;
  transition: opacity 220ms ease, background 220ms ease;
}

.wager-card > * {
  position: relative;
  z-index: 1;
}

.wager-card:hover {
  z-index: 3;
  border-color: rgba(184, 255, 44, 0.96);
  background:
    radial-gradient(circle at 18% 14%, rgba(184, 255, 44, 0.17), transparent 34%),
    linear-gradient(135deg, rgba(31, 91, 38, 0.5), transparent 48%),
    #031809;
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.35),
    0 0 34px rgba(184, 255, 44, 0.16),
    inset 0 0 36px rgba(184, 255, 44, 0.045);
  transform: translateY(-7px);
}

.wager-card:hover::before {
  opacity: 0.62;
  background: repeating-linear-gradient(
    -12deg,
    rgba(224, 255, 226, 0.045) 0 25px,
    transparent 25px 50px
  );
}

.wager-topline,
.wager-footer {
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.wager-topline {
  min-height: 58px;
  justify-content: flex-end;
  border-bottom: 1px solid rgba(157, 140, 189, 0.22);
  color: var(--muted);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 0.78rem;
}

.sport-chip {
  color: #c49cff;
  border: 1px solid rgba(184, 255, 44, 0.5);
  padding: 5px 8px;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
}

.status-chip i {
  width: 6px;
  height: 6px;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.matchup {
  min-height: 330px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.player-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.competitor {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.bettor-name {
  width: 100%;
  min-width: 0;
  min-height: 64px;
  padding: 10px 7px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--cream);
  border: 1px solid rgba(184, 255, 44, 0.76);
  border-radius: 4px;
  background: rgba(7, 4, 13, 0.7);
  font-family: "Bungee", sans-serif;
  font-size: clamp(0.7rem, 1.45vw, 1.38rem);
  line-height: 1.05;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.6);
}

.bettor-avatar {
  position: relative;
  width: 100%;
  aspect-ratio: 2.4 / 1;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: visible;
  color: var(--cream);
  border: 1px solid rgba(184, 255, 44, 0.76);
  border-radius: 4px;
  background:
    linear-gradient(145deg, rgba(93, 51, 126, 0.8), rgba(17, 7, 31, 0.9)),
    url("/avatar-panel-texture.png") center / cover;
  background-blend-mode: color, normal;
  box-shadow: 0 0 20px rgba(143, 91, 218, 0.22);
  font-family: "Bungee", sans-serif;
  font-size: clamp(1.2rem, 2vw, 2rem);
  cursor: pointer;
}

.bettor-avatar > img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.bettor-avatar > i {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--cream);
  border: 1px solid var(--lime);
  border-radius: 50%;
  background: #10091a;
}

.team-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Bungee", sans-serif;
  font-size: clamp(1.5rem, 2.7vw, 2.4rem);
  letter-spacing: -0.04em;
}

.team-versus-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.team-versus-row > .team-lockup:last-child {
  justify-content: flex-end;
}

.team-logo-tile {
  flex: 0 0 auto;
  display: grid;
  width: 66px;
  height: 66px;
  padding: 7px;
  place-items: center;
  overflow: hidden;
  color: var(--lime);
  border: 1px solid rgba(184, 255, 44, 0.82);
  border-radius: 50%;
  background: linear-gradient(135deg, #221034, #090611);
  box-shadow: 0 0 14px rgba(184, 255, 44, 0.09);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
}

.team-logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.versus {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #b68aff;
  border: 1px solid var(--lime);
  background: rgba(9, 5, 17, 0.82);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  font-weight: 600;
  transform: rotate(45deg);
}

.versus i {
  font-style: normal;
  transform: rotate(-45deg);
}

.bet-copy {
  min-height: 132px;
  padding: 20px 18px;
  border-top: 1px solid rgba(157, 140, 189, 0.22);
  border-bottom: 1px solid rgba(157, 140, 189, 0.22);
  background: rgba(255, 255, 255, 0.018);
}

.bet-copy span {
  display: inline-block;
  color: transparent;
  background: linear-gradient(
    105deg,
    #b9780d 0%,
    #e4a928 24%,
    #ffe46f 42%,
    #fff7bd 50%,
    #f6c641 60%,
    #a96608 100%
  );
  background-position: 120% center;
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  font-family: "Bungee", sans-serif;
  font-size: clamp(1rem, 1.7vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  filter: drop-shadow(0 0 4px rgba(255, 197, 52, 0.28));
  animation: betGoldShine 3s ease-in-out infinite;
}

.bet-copy p {
  margin: 9px 0 0;
  color: #ded6e9;
  font-size: 0.88rem;
  line-height: 1.55;
}

.wager-footer {
  min-height: 78px;
  color: var(--muted);
}

.case-stake {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.case-stake > strong {
  color: var(--lime);
  font-family: "Bungee", sans-serif;
  font-size: 0.86rem;
  font-weight: 400;
  white-space: nowrap;
}

.soda-case-stack {
  display: inline-flex;
  align-items: center;
  padding-right: 3px;
}

.soda-case-stack img {
  width: 46px;
  height: 36px;
  margin-left: -13px;
  object-fit: contain;
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.48));
}

.soda-case-stack img:first-child {
  margin-left: 0;
}

.soda-case-stack img:nth-child(2) {
  transform: translateY(-2px);
}

.soda-case-stack img:nth-child(3) {
  transform: translateY(1px);
}

.soda-case-stack small {
  margin-left: 4px;
  color: var(--lime);
}

.wager-card:hover .wager-topline,
.wager-card:hover .wager-footer,
.wager-card:hover .versus {
  color: #dfffe4;
}

.wager-card:hover .status-chip,
.wager-card:hover .bettor-name,
.wager-card:hover .team-lockup,
.wager-card:hover .bet-copy p,
.wager-card:hover .case-stake > strong,
.wager-card:hover .soda-case-stack small {
  color: #effff0;
}

.wager-card:hover .wager-topline,
.wager-card:hover .bet-copy {
  border-color: rgba(203, 255, 207, 0.19);
}

.wager-card:hover .bettor-avatar {
  color: #effff0;
  border-color: #dfffe4;
  background:
    linear-gradient(145deg, rgba(56, 111, 63, 0.82), rgba(4, 29, 9, 0.92)),
    url("/avatar-panel-texture.png") center / cover;
  background-blend-mode: color, normal;
  box-shadow: 0 0 19px rgba(184, 255, 44, 0.18);
  filter: none;
}

.wager-card:hover .bettor-avatar > img {
  filter: none;
}

.wager-card:hover .bettor-name {
  border-color: rgba(205, 255, 211, 0.78);
  background: rgba(2, 25, 7, 0.75);
}

.wager-card:hover .team-logo-tile {
  border-color: #dfffe4;
  background: linear-gradient(135deg, #183c1e, #041508);
}

.wager-card:hover .team-logo-tile img,
.wager-card:hover .soda-case-stack img {
  filter: grayscale(0.35) sepia(0.75) hue-rotate(58deg) saturate(0.8) brightness(1.12)
    drop-shadow(0 5px 7px rgba(0, 0, 0, 0.48));
}

.card-controls {
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  border-top: 1px solid rgba(157, 140, 189, 0.18);
  background: #0b0612;
}

.card-controls button {
  min-height: 34px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  border: 1px solid rgba(157, 140, 189, 0.28);
  background: transparent;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.57rem;
  letter-spacing: 0.08em;
}

.card-controls button:hover {
  color: var(--cream);
  border-color: var(--lime);
}

.empty-state {
  max-width: 1380px;
  min-height: 270px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--muted);
  border: 1px dashed rgba(184, 255, 44, 0.35);
  text-align: center;
}

.empty-state svg {
  width: 42px;
  height: 42px;
  color: var(--lime);
}

.empty-state h3 {
  margin: 0;
  color: var(--cream);
  font-family: "Bungee", sans-serif;
  font-weight: 400;
}

.empty-state p {
  margin: 0;
}

.closed-book {
  max-width: 1380px;
  margin: 90px auto 0;
}

.closed-heading {
  margin-bottom: 20px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.closed-heading h3 {
  margin: 5px 0 0;
  font-family: "Bungee", sans-serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.closed-heading > span {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.63rem;
  letter-spacing: 0.1em;
}

.settled-list {
  border: 1px solid rgba(157, 140, 189, 0.28);
  background: rgba(16, 9, 26, 0.62);
}

.settled-row {
  min-height: 84px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 0.55fr 2.2fr 0.8fr 0.6fr auto;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid rgba(157, 140, 189, 0.16);
}

.settled-row:last-child {
  border-bottom: 0;
}

.settled-row:hover {
  background: rgba(184, 255, 44, 0.03);
}

.settled-game,
.settled-cases,
.settled-winner small,
.settled-matchup small {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.settled-game {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.settled-game small {
  padding: 4px 6px;
  color: var(--lime);
  border: 1px solid rgba(184, 255, 44, 0.35);
  font-size: 0.5rem;
}

.settled-matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
}

.settled-matchup span {
  font-family: "Bungee", sans-serif;
  font-size: 0.87rem;
}

.settled-matchup small {
  color: var(--purple);
}

.settled-winner {
  display: flex;
  flex-direction: column;
}

.settled-winner small {
  color: var(--muted);
}

.settled-winner strong,
.settled-cases {
  color: var(--lime);
}

.settled-controls {
  display: flex;
  gap: 6px;
}

.settled-controls button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--muted);
  border: 1px solid rgba(157, 140, 189, 0.25);
  background: transparent;
}

.settled-controls button:hover {
  color: var(--cream);
  border-color: var(--lime);
}

.leaderboard-section {
  max-width: 1510px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: clamp(50px, 9vw, 130px);
}

.leaderboard-copy > p {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.7;
}

.leaderboard-filters {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.leaderboard-filters button {
  min-width: 78px;
  min-height: 38px;
  padding: 0 14px;
  color: var(--muted);
  border: 1px solid rgba(157, 140, 189, 0.34);
  background: transparent;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.leaderboard-filters button:hover,
.leaderboard-filters button.active {
  color: #0a0412;
  border-color: var(--lime);
  background: var(--lime);
}

.trophy-orbit {
  position: relative;
  width: 160px;
  height: 160px;
  margin-top: 34px;
  display: grid;
  place-items: center;
  color: var(--orange);
  border: 1px solid rgba(255, 122, 26, 0.35);
  border-radius: 50%;
  box-shadow: inset 0 0 40px rgba(255, 122, 26, 0.08);
}

.trophy-orbit svg {
  width: 64px;
  height: 64px;
}

.trophy-orbit span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 16px var(--lime);
  animation: orbit 5s linear infinite;
}

.leaderboard-panel {
  border: 1px solid rgba(157, 140, 189, 0.42);
  background: #10091a;
  box-shadow: 12px 12px 0 #231037, 0 28px 80px rgba(0, 0, 0, 0.32);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}

.leaderboard-table[hidden] {
  display: none;
}

.leaderboard-empty {
  min-height: 96px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

.table-row {
  min-height: 78px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 0.5fr 1.5fr 1fr 0.7fr;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(157, 140, 189, 0.18);
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row:not(.table-header):hover {
  background: rgba(184, 255, 44, 0.04);
}

.table-header {
  min-height: 52px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.table-row strong {
  font-family: "Bungee", sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
}

.table-row span {
  font-family: "IBM Plex Mono", monospace;
}

.rank {
  color: var(--purple);
}

.positive {
  color: var(--lime);
}

.negative {
  color: var(--orange);
}

.challenge-placeholder {
  width: min(1380px, calc(100% - 48px));
  min-height: 250px;
  margin: 70px auto 120px;
  padding: 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  border: 1px dashed rgba(184, 255, 44, 0.55);
  background: linear-gradient(115deg, rgba(184, 255, 44, 0.07), rgba(143, 91, 218, 0.12));
}

.challenge-placeholder > svg {
  width: 54px;
  height: 54px;
  color: var(--lime);
}

.challenge-placeholder > p {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
}

.challenge-section {
  width: min(1450px, calc(100% - 48px));
  margin: 100px auto 130px;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: center;
  gap: clamp(58px, 9vw, 135px);
}

.challenge-copy {
  position: relative;
}

.challenge-copy h2 {
  margin: 16px 0 18px;
  color: var(--cream);
  font-family: "Bungee", sans-serif;
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.challenge-copy > p {
  max-width: 430px;
  color: var(--muted);
  line-height: 1.7;
}

.challenge-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 28px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--orange);
  border: 2px solid #ffc38f;
  box-shadow: 8px 8px 0 #4f1f75;
  transform: rotate(-3deg);
}

.challenge-icon svg {
  width: 34px;
  height: 34px;
}

.challenge-form {
  position: relative;
  padding-top: 36px;
  border: 1px solid rgba(184, 255, 44, 0.45);
  background:
    linear-gradient(145deg, rgba(143, 91, 218, 0.13), transparent 40%),
    #10091a;
  box-shadow: 12px 12px 0 #231037;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}

.form-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  color: var(--lime);
  border-bottom: 1px solid rgba(157, 140, 189, 0.22);
  background: rgba(184, 255, 44, 0.04);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.1em;
}

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

.challenge-button {
  width: calc(100% - 44px);
  margin: 0 22px 13px;
}

.challenge-form > small {
  display: block;
  padding: 0 22px 22px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.56rem;
  text-align: center;
}

.discord-orbit {
  position: relative;
  width: 270px;
  height: 270px;
  margin-top: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(157, 140, 189, 0.45);
  border-radius: 50%;
}

.discord-orbit img {
  width: 82%;
  height: auto;
  mix-blend-mode: screen;
}

.discord-orbit span {
  position: absolute;
  left: 20px;
  bottom: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 16px var(--lime);
  animation: orbit 5s linear infinite;
}

.challenge-steps {
  position: relative;
  border: 1px solid rgba(157, 140, 189, 0.4);
  background: rgba(16, 9, 26, 0.74);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}

.challenge-steps ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.challenge-steps li {
  min-height: 150px;
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(157, 140, 189, 0.22);
}

.challenge-steps li > span {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--purple);
  border-right: 1px solid rgba(157, 140, 189, 0.22);
  font-family: "IBM Plex Mono", monospace;
  font-size: 2rem;
  font-weight: 600;
}

.challenge-steps li > div {
  padding: 24px 42px;
}

.challenge-steps li strong {
  color: var(--lime);
  font-family: "Bungee", sans-serif;
  font-size: clamp(1rem, 1.65vw, 1.45rem);
  font-weight: 400;
}

.challenge-steps li p {
  margin: 10px 0 0;
  color: var(--cream);
  font-size: 1rem;
  line-height: 1.55;
}

.challenge-time {
  min-height: 76px;
  padding: 0 36px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.challenge-time span,
.challenge-room-link,
.challenge-note {
  font-family: "IBM Plex Mono", monospace;
}

.challenge-time span {
  color: var(--purple);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
}

.challenge-time strong {
  color: var(--cream);
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.9rem, 1.7vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.challenge-room-link {
  width: fit-content;
  margin: 28px 36px 0;
  padding: 12px 0 8px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #b68aff;
  border-bottom: 1px solid #b68aff;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.challenge-room-link:hover {
  color: var(--lime);
  border-color: var(--lime);
}

.challenge-room-link.disabled {
  opacity: 0.55;
}

.challenge-note {
  margin: 18px 36px 28px;
  color: var(--muted);
  font-size: 0.56rem;
  line-height: 1.6;
}

footer {
  min-height: 80px;
  padding: 0 max(6vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid rgba(157, 140, 189, 0.22);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.63rem;
  letter-spacing: 0.1em;
}

/* DreamHost PHP build */

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-actions form {
  margin: 0;
}

.admin-access {
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  border: 1px solid rgba(184, 255, 44, 0.42);
  background: rgba(16, 9, 26, 0.8);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.admin-access:hover,
.admin-access:focus-visible {
  color: var(--cream);
  border-color: var(--lime);
}

.brand-icon {
  font-size: 1.65rem;
  line-height: 1;
}

.eyebrow > span:first-child,
.eyebrow > span:last-child {
  color: var(--lime);
  font-size: 1.1rem;
}

.trophy-glyph {
  display: grid;
  width: 90px;
  height: 90px;
  place-items: center;
  color: var(--lime);
  border: 1px solid rgba(184, 255, 44, 0.42);
  border-radius: 50%;
  font-size: 3.4rem;
}

.card-controls a,
.card-controls button,
.settled-controls a,
.settled-controls button {
  min-height: 34px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--muted);
  border: 1px solid rgba(157, 140, 189, 0.28);
  background: transparent;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.card-controls form,
.settled-controls form {
  margin: 0;
}

.card-controls a:hover,
.card-controls button:hover,
.settled-controls a:hover,
.settled-controls button:hover {
  color: var(--lime);
  border-color: var(--lime);
}

.toast-error {
  color: #fff;
  background: #b72c4b;
}

.admin-shell {
  min-height: 100vh;
  padding: 54px 22px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(9, 5, 17, 0.76), rgba(9, 5, 17, 0.92)),
    repeating-linear-gradient(-12deg, rgba(255, 255, 255, 0.04) 0 10px, transparent 10px 20px),
    var(--ink);
}

.auth-card,
.editor-card {
  width: min(100%, 620px);
  padding: clamp(28px, 5vw, 52px);
  color: var(--cream);
  border: 1px solid rgba(184, 255, 44, 0.72);
  background:
    linear-gradient(135deg, rgba(143, 91, 218, 0.16), transparent 45%),
    #10091a;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 30px rgba(184, 255, 44, 0.08);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.install-card {
  width: min(100%, 760px);
}

.auth-card h1,
.editor-card h1 {
  margin: 12px 0 16px;
  color: var(--cream);
  font-family: "Bungee", sans-serif;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 0.95;
}

.auth-card > p {
  margin: 0 0 24px;
  color: #d9cee8;
  line-height: 1.6;
}

.admin-form,
.wager-editor-form {
  display: grid;
  gap: 18px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.admin-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--cream);
  border: 1px solid rgba(157, 140, 189, 0.42);
  outline: none;
  background: #0b0612;
}

.admin-form input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(184, 255, 44, 0.09);
}

.admin-form hr {
  width: 100%;
  margin: 8px 0;
  border: 0;
  border-top: 1px solid rgba(157, 140, 189, 0.22);
}

.form-alert {
  margin: 18px 0;
  padding: 13px 15px;
  color: #dfffe4;
  border: 1px solid rgba(68, 242, 121, 0.5);
  background: rgba(68, 242, 121, 0.08);
  line-height: 1.5;
}

.form-alert.error {
  color: #ffd7df;
  border-color: rgba(255, 86, 120, 0.55);
  background: rgba(255, 86, 120, 0.09);
}

.back-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
}

.editor-page {
  display: block;
}

.editor-card {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.editor-heading {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.editor-heading h1 {
  margin-bottom: 0;
}

.wager-editor-form .console-grid {
  padding: 0;
}

.hidden {
  display: none !important;
}

.auth-card small,
.console-footer small {
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-actions {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .header-actions {
    gap: 0;
  }

  .admin-access {
    min-height: 34px;
    padding-inline: 8px;
    font-size: 0.52rem;
  }

  .editor-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-card,
  .editor-card {
    padding: 28px 20px;
  }
}

@keyframes blink {
  50% { opacity: 0.35; }
}

@keyframes rotateBurst {
  to { transform: rotate(360deg); }
}

@keyframes heroFloat {
  0%, 100% { transform: translate(calc(-48% + var(--px)), calc(-49% + var(--py))) rotate(2deg) scale(1); }
  50% { transform: translate(calc(-50% + var(--px)), calc(-52% + var(--py))) rotate(-1deg) scale(1.015); }
}

@keyframes pixelDrift {
  0%, 100% { transform: translateY(0) rotate(0); opacity: 0.3; }
  35% { opacity: 1; }
  50% { transform: translateY(-34px) rotate(90deg); opacity: 0.7; }
}

@keyframes orbit {
  from { transform: rotate(0deg) translateX(79px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(79px) rotate(-360deg); }
}

@keyframes angledRows {
  from { transform: translate3d(0, -20px, 0); }
  to { transform: translate3d(0, 20px, 0); }
}

@keyframes betGoldShine {
  0%,
  68% {
    background-position: 120% center;
    filter: drop-shadow(0 0 4px rgba(255, 197, 52, 0.28));
  }
  82% {
    background-position: -20% center;
    filter: drop-shadow(0 0 11px rgba(255, 220, 104, 0.68));
  }
  100% {
    background-position: -20% center;
    filter: drop-shadow(0 0 4px rgba(255, 197, 52, 0.28));
  }
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .site-header nav.mobile-open {
    position: absolute;
    top: 68px;
    right: 0;
    left: 0;
    display: flex;
    padding: 20px;
    justify-content: center;
    gap: 26px;
    border: 1px solid rgba(157, 140, 189, 0.4);
    background: rgba(9, 5, 17, 0.97);
  }

  .hero {
    min-height: 900px;
  }

  .hero-content {
    min-height: 740px;
    grid-template-columns: 1fr 0.9fr;
  }

  .hero-art {
    min-height: 570px;
    transform: scale(0.83);
    transform-origin: center;
  }

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

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

  .challenge-section {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 45px;
  }
}

@media (max-width: 760px) {
  .site-header {
    top: 8px;
    width: calc(100% - 16px);
    height: 66px;
    padding: 0 14px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .menu-button {
    width: 40px;
    height: 40px;
  }

  .hero {
    min-height: 1050px;
    padding: 102px 0 100px;
    display: block;
  }

  .hero-content {
    width: calc(100% - 40px);
    min-height: auto;
    display: block;
  }

  .hero-copy {
    position: relative;
    z-index: 5;
  }

  .hero h1 {
    font-size: clamp(4.5rem, 23vw, 7rem);
  }

  .hero-stats {
    width: 100%;
  }

  .hero-stats div {
    flex: 1 1 0;
    min-width: 0;
    padding: 11px 9px;
  }

  .hero-stats span {
    font-size: 0.48rem;
  }

  .hero-art {
    min-height: 460px;
    margin: 20px -34px 0;
    transform: scale(0.74);
    transform-origin: center top;
  }

  .purple-burst {
    left: -8%;
  }

  .dew-hero-image {
    width: auto;
    height: 680px;
  }

  .board-section,
  .leaderboard-section {
    padding: 82px 20px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .board-actions {
    width: 100%;
    max-width: none;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .board-actions p {
    flex: 1 0 100%;
    margin: 0 0 8px;
  }

  .console-grid,
  .form-grid,
  .challenge-form .form-grid {
    grid-template-columns: 1fr;
  }

  .span-two {
    grid-column: auto;
  }

  .console-footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .console-overlay {
    padding: 10px;
  }

  .wager-console {
    max-height: calc(100vh - 20px);
  }

  .save-button {
    width: 100%;
  }

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

  .matchup {
    min-height: 292px;
    padding: 24px 16px;
    gap: 22px;
  }

  .player-grid {
    gap: 10px;
  }

  .bettor-name {
    min-height: 50px;
    padding-inline: 5px;
    font-size: clamp(0.62rem, 3.7vw, 1.12rem);
  }

  .team-lockup {
    gap: 7px;
    font-size: clamp(1.2rem, 6.2vw, 1.85rem);
  }

  .team-versus-row {
    gap: 9px;
  }

  .team-logo-tile {
    width: 48px;
    height: 48px;
    padding: 5px;
  }

  .versus {
    width: 34px;
    height: 34px;
    font-size: 0.62rem;
  }

  .wager-footer {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  .case-stake {
    width: 100%;
    justify-content: space-between;
  }

  .settled-row {
    padding: 18px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .settled-matchup {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .settled-winner {
    grid-column: 1;
    grid-row: 3;
  }

  .settled-cases {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
  }

  .settled-controls {
    grid-column: 1 / -1;
  }

  .leaderboard-section {
    grid-template-columns: 1fr;
  }

  .trophy-orbit {
    display: none;
  }

  .table-row {
    min-height: 68px;
    padding: 0 15px;
    grid-template-columns: 0.42fr 1.2fr 0.8fr 0.7fr;
    gap: 8px;
  }

  .table-row strong {
    font-size: 0.88rem;
  }

  .table-row span {
    font-size: 0.72rem;
  }

  .table-header span {
    font-size: 0.48rem;
  }

  .challenge-placeholder {
    width: calc(100% - 40px);
    margin: 40px auto 80px;
    padding: 34px 26px;
    grid-template-columns: 1fr;
  }

  .challenge-section {
    width: calc(100% - 40px);
    margin: 30px auto 80px;
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .challenge-copy h2 {
    font-size: clamp(3.8rem, 19vw, 6rem);
  }

  .discord-orbit {
    width: 220px;
    height: 220px;
  }

  .challenge-steps li {
    min-height: 132px;
    grid-template-columns: 72px 1fr;
  }

  .challenge-steps li > span {
    font-size: 1.35rem;
  }

  .challenge-steps li > div {
    padding: 20px 18px;
  }

  .challenge-steps li strong {
    font-size: 0.9rem;
  }

  .challenge-steps li p {
    font-size: 0.84rem;
  }

  .challenge-time {
    padding: 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .challenge-room-link {
    max-width: 100%;
    margin-right: 18px;
    margin-left: 18px;
    font-size: 0.58rem;
  }

  .challenge-note {
    margin-right: 18px;
    margin-left: 18px;
  }

  footer {
    gap: 18px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.discord-setup-panel {
  margin: 24px 0;
  padding: 22px;
  border: 1px solid rgba(184, 255, 44, 0.32);
  background: rgba(10, 4, 19, 0.68);
}

.discord-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.discord-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.discord-check strong {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
}

.discord-check.ready strong {
  color: #071009;
  background: #a7ff22;
}

.discord-check.missing strong {
  color: #fff;
  background: #a32643;
}

.discord-endpoint {
  display: block;
  margin-top: 14px;
  padding: 14px;
  overflow-wrap: anywhere;
  color: #a7ff22;
  border: 1px solid rgba(155, 93, 229, 0.45);
  background: #08040e;
}

.discord-setup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
}

.discord-setup-actions form,
.discord-setup-actions button {
  width: 100%;
}

.discord-roster-link {
  display: flex;
  width: 100%;
  margin-bottom: 24px;
  justify-content: center;
}

.discord-activity-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.discord-activity-row {
  display: grid;
  grid-template-columns: 1.5fr 0.6fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
}

.discord-activity-row small {
  grid-column: 1 / -1;
  color: #ff8ca3;
}

.roster-editor {
  max-width: 1180px;
}

.roster-add-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}

.roster-list {
  display: grid;
  gap: 16px;
}

.roster-card {
  padding: 18px;
  border: 1px solid rgba(184, 255, 44, 0.38);
  background: rgba(9, 4, 17, 0.76);
}

.roster-player-form {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.roster-avatar {
  display: grid;
  width: 128px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid #a7ff22;
  background: linear-gradient(145deg, #322045, #130c20);
  font-family: "Bungee", sans-serif;
  font-size: 2rem;
}

.roster-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.roster-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.roster-fields small {
  grid-column: 1 / -1;
}

.roster-actions {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.roster-remove-photo {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.72rem;
}

.roster-delete {
  margin-top: 14px;
  padding: 0;
  color: #ff718c;
  border: 0;
  background: transparent;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 760px) {
  .discord-check-grid,
  .discord-setup-actions {
    grid-template-columns: 1fr;
  }

  .discord-activity-row {
    grid-template-columns: 1fr 1fr;
  }

  .roster-add-form,
  .roster-player-form,
  .roster-fields {
    grid-template-columns: 1fr;
  }

  .roster-actions {
    justify-items: stretch;
  }
}

/* Corrected mobile overflow and hero-title fix */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

main {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 760px) {
  .site-header {
    left: 8px;
    right: 8px;
    width: auto;
    max-width: none;
    transform: none;
  }

  .hero {
    width: 100%;
    overflow-x: hidden;
  }

  .hero-content {
    width: calc(100% - 32px);
    max-width: none;
    overflow: visible;
  }

  .hero-copy {
    width: 100%;
    min-width: 0;
  }

  .hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(4rem, 20vw, 5.25rem);
    letter-spacing: -0.055em;
    line-height: 0.82;
  }

  .hero h1 span {
    display: block;
    white-space: nowrap;
  }

  .hero-art {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .wager-grid,
  .wager-card,
  .player-grid,
  .team-versus-row {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}
