:root {

  --duck-blue: #149ddd;
  --duck-blue-bright: #48c7ff;
  --duck-blue-dark: #075985;
  --duck-blue-deep: #063b63;
  --cyan: #55ddff;
  --cyan-soft: rgba(85, 221, 255, 0.12);

  --green: #52e89b;
  --red: #ff4d67;

  /* =====================================================
     BACKGROUND
  ====================================================== */

  --bg: #050a11;
  --bg-2: #08111c;
  --surface: #0b1420;
  --surface-2: #101d2b;
  --surface-3: #142536;

  --border: rgba(255, 255, 255, 0.08);
  --border-blue: rgba(20, 157, 221, 0.25);

  /* =====================================================
     TEXT
  ====================================================== */

  --text: #f4f9ff;
  --muted: #8da4b8;
  --soft: #60788d;

  /* =====================================================
     RADIUS
  ====================================================== */

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
}


/* =========================================================
   RESET
========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;

  background:
    radial-gradient(
      circle at 50% -20%,
      rgba(20, 157, 221, 0.20),
      transparent 42%
    ),
    var(--bg);

  color: var(--text);

  font-family:
    "Space Grotesk",
    sans-serif;

  overflow-x: hidden;
}


/* =========================================================
   BACKGROUND
========================================================= */

.ambient {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(130px);
  pointer-events: none;
  z-index: -3;
  opacity: .20;
}

.ambient-one {
  background: var(--duck-blue);
  top: -250px;
  left: -200px;
}

.ambient-two {
  background: var(--cyan);
  right: -250px;
  bottom: -250px;
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -4;
  opacity: .22;

  background-image:
    linear-gradient(
      rgba(20, 157, 221, .07) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(20, 157, 221, .07) 1px,
      transparent 1px
    );

  background-size: 45px 45px;

  mask-image:
    linear-gradient(
      to bottom,
      black,
      transparent 80%
    );
}


/* =========================================================
   APP
========================================================= */

.app {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 8px 0 70px;
}


/* =========================================================
   BACK BUTTON
========================================================= */

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  color: var(--muted);
  text-decoration: none;

  font-size: 12px;

  margin: 10px 0 25px;

  transition: .2s ease;
}

.back-button:hover {
  color: var(--duck-blue-bright);
  transform: translateX(-3px);
}


/* =========================================================
   HERO
========================================================= */

.hero {
  margin-bottom: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: var(--duck-blue-bright);

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;

  padding: 7px 12px;

  border:
    1px solid
    rgba(20,157,221,.28);

  background:
    rgba(20,157,221,.08);

  border-radius: 8px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;

  background: var(--green);

  box-shadow:
    0 0 10px var(--green);
}

.hero h1 {
  margin-top: 15px;

  font-family:
    "Chakra Petch",
    sans-serif;

  font-size:
    clamp(42px, 7vw, 70px);

  line-height: .95;
  letter-spacing: -2px;
}

.hero h1 span {
  color: var(--duck-blue-bright);

  text-shadow:
    0 0 35px
    rgba(20,157,221,.35);
}

.subtitle {
  max-width: 620px;

  margin-top: 14px;

  color: var(--muted);

  font-size: 14px;
  line-height: 1.7;
}


/* =========================================================
   GAME CARD
========================================================= */

.game-card {
  width: 100%;

  background:
    linear-gradient(
      180deg,
      rgba(15,34,52,.96),
      rgba(7,17,28,.98)
    );

  border:
    1px solid
    rgba(20,157,221,.28);

  border-radius:
    var(--radius-xl);

  overflow: hidden;

  box-shadow:
    0 25px 80px
    rgba(0,0,0,.45),
    0 0 60px
    rgba(20,157,221,.07);

  margin-bottom: 28px;
}


/* =========================================================
   GAME HEADER
========================================================= */

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 18px 22px;

  background:
    rgba(5,12,20,.75);

  border-bottom:
    1px solid
    var(--border);
}

.game-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.game-icon {
  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  background:
    rgba(20,157,221,.12);

  border:
    1px solid
    rgba(20,157,221,.28);

  font-size: 23px;
}

.game-kicker {
  display: block;

  color: var(--duck-blue-bright);

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.2px;

  margin-bottom: 2px;
}

.game-brand h2 {
  font-family:
    "Chakra Petch",
    sans-serif;

  font-size: 22px;
  line-height: 1;
}

.game-brand h2 span {
  color: var(--duck-blue-bright);
}

.game-brand p {
  color: var(--soft);
  font-size: 10px;
  margin-top: 3px;
}

.game-status {
  display: flex;
  align-items: center;
  gap: 7px;

  padding: 7px 11px;

  border-radius: 8px;

  background:
    rgba(82,232,155,.06);

  border:
    1px solid
    rgba(82,232,155,.15);

  color: var(--green);

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 9px;
  font-weight: 800;
}


/* =========================================================
   GAME LIGHTS
========================================================= */

.game-lights {
  height: 10px;

  display: flex;
  gap: 7px;

  padding: 0 20px;

  align-items: center;

  background: #07111b;
}

.game-lights i {
  width: 5px;
  height: 5px;

  border-radius: 50%;

  background: var(--duck-blue);

  box-shadow:
    0 0 7px
    rgba(20,157,221,.8);

  opacity: .65;
}


/* =========================================================
   HUD
========================================================= */

.hud-bar {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  background:
    #08131f;

  border-bottom:
    1px solid
    var(--border);
}

.hud-item {
  min-width: 0;

  padding: 10px;

  text-align: center;

  border-right:
    1px solid
    var(--border);
}

.hud-item:last-child {
  border-right: none;
}

.hud-item span {
  display: block;

  color: var(--soft);

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 8px;
  letter-spacing: 1px;

  margin-bottom: 3px;
}

.hud-item strong {
  color: var(--duck-blue-bright);

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 15px;
}


/* =========================================================
   RIVER FRAME
========================================================= */

.river-frame {
  padding: 12px;

  background:
    #040a10;
}

.river-topbar {
  display: flex;
  justify-content: space-between;

  padding: 7px 10px;

  margin-bottom: 8px;

  border-radius: 7px;

  background:
    rgba(20,157,221,.06);

  border:
    1px solid
    rgba(20,157,221,.12);

  color: var(--soft);

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 8px;
  letter-spacing: 1px;
}


/* =========================================================
   RIVER
========================================================= */

.river-world {
  position: relative;

  width: 100%;

  border-radius: 10px;

  overflow: hidden;

  border:
    1px solid
    rgba(20,157,221,.22);

  background: #02101a;
}

#raceCanvas {
  display: block;

  width: 100%;
  height: auto;

  max-width: 100%;
}


/* =========================================================
   COUNTDOWN
========================================================= */

.countdown-overlay {
  position: absolute;
  inset: 0;

  display: grid;
  place-items: center;

  background:
    rgba(2,10,18,.78);

  backdrop-filter:
    blur(3px);

  opacity: 0;

  pointer-events: none;

  transition:
    opacity .2s ease;
}

.countdown-overlay.active {
  opacity: 1;
}

#countdownNumber {
  color: var(--duck-blue-bright);

  font-family:
    "Chakra Petch",
    sans-serif;

  font-size:
    clamp(70px, 10vw, 130px);

  text-shadow:
    0 0 25px
    rgba(20,157,221,.8),

    0 0 70px
    rgba(20,157,221,.35);

  animation:
    countdownPulse 1s infinite alternate;
}

@keyframes countdownPulse {

  from {
    transform: scale(.92);
  }

  to {
    transform: scale(1.05);
  }
}


/* =========================================================
   GAME FOOTER
========================================================= */

.river-footer {
  display: flex;
  justify-content: space-between;

  gap: 15px;

  padding: 9px 4px 2px;

  color: var(--soft);

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 8px;
  letter-spacing: .6px;
}

.river-footer span:last-child {
  color: var(--duck-blue-bright);
  text-align: right;
}


/* =========================================================
   DASHBOARD
========================================================= */

.dashboard-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.55fr)
    minmax(280px, .75fr);

  gap: 20px;

  align-items: start;
}


/* =========================================================
   PANELS
========================================================= */

.panel {
  min-width: 0;

  background:
    rgba(9,20,32,.92);

  border:
    1px solid
    var(--border);

  border-radius:
    var(--radius-xl);

  padding: 22px;

  box-shadow:
    0 20px 50px
    rgba(0,0,0,.25);
}


/* =========================================================
   PANEL HEADER
========================================================= */

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 15px;

  margin-bottom: 22px;
}

.section-kicker {
  display: block;

  color: var(--duck-blue-bright);

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.3px;

  margin-bottom: 5px;
}

.panel-header h2 {
  font-family:
    "Chakra Petch",
    sans-serif;

  font-size: 23px;
  line-height: 1.1;
}

.panel-sub {
  color: var(--muted);

  font-size: 11px;
  line-height: 1.5;

  margin-top: 5px;
}


/* =========================================================
   RACER COUNTER
========================================================= */

.racer-counter {
  flex-shrink: 0;

  min-width: 65px;

  padding: 8px 10px;

  text-align: center;

  background:
    rgba(20,157,221,.08);

  border:
    1px solid
    rgba(20,157,221,.2);

  border-radius: 9px;
}

.racer-counter strong {
  display: block;

  color: var(--duck-blue-bright);

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 17px;
}

.racer-counter span {
  color: var(--soft);

  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1px;
}


/* =========================================================
   FIELD
========================================================= */

.field {
  width: 100%;
  margin-bottom: 17px;
}

.field label {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;

  margin-bottom: 7px;

  color: var(--muted);

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 9px;
  font-weight: 800;
  letter-spacing: .7px;

  text-transform: uppercase;
}


/* =========================================================
   SOURCE BUTTONS
========================================================= */

.source-field {
  margin-bottom: 20px;
}

.source-buttons {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 8px;
}

.source-btn {
  display: flex;
  align-items: center;

  gap: 10px;

  min-width: 0;

  padding: 12px;

  text-align: left;

  border:
    1px solid
    var(--border);

  border-radius:
    var(--radius-md);

  background:
    #091522;

  color: var(--muted);

  font-family:
    "Space Grotesk",
    sans-serif;

  cursor: pointer;

  transition:
    border .2s ease,
    background .2s ease,
    transform .2s ease;
}

.source-btn:hover {
  border-color:
    rgba(20,157,221,.25);

  background:
    #0c1b29;
}

.source-btn.active {
  border-color:
    rgba(20,157,221,.55);

  background:
    linear-gradient(
      135deg,
      rgba(20,157,221,.16),
      rgba(6,59,99,.22)
    );

  box-shadow:
    inset 0 0 25px
    rgba(20,157,221,.04);
}

.source-icon {
  width: 28px;
  height: 28px;

  flex-shrink: 0;

  display: grid;
  place-items: center;

  border-radius: 7px;

  color: var(--duck-blue-bright);

  background:
    rgba(20,157,221,.10);

  font-family:
    "JetBrains Mono",
    monospace;

  font-weight: 800;
}

.source-btn strong {
  display: block;

  color: var(--text);

  font-size: 11px;
}

.source-btn small {
  display: block;

  color: var(--soft);

  font-size: 8px;

  margin-top: 2px;
}


/* =========================================================
   INPUTS
========================================================= */

input,
textarea,
select {
  width: 100%;

  border:
    1px solid
    var(--border);

  border-radius:
    var(--radius-md);

  background:
    #07131f;

  color: var(--text);

  padding: 11px 13px;

  font-family:
    "Space Grotesk",
    sans-serif;

  font-size: 12px;

  transition:
    border .2s ease,
    box-shadow .2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #40576b;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;

  border-color:
    var(--duck-blue);

  box-shadow:
    0 0 0 3px
    rgba(20,157,221,.10);
}

textarea {
  min-height: 105px;

  resize: vertical;

  line-height: 1.5;
}

select {
  cursor: pointer;
}


/* =========================================================
   ID INPUT
========================================================= */

.id-input {
  display: grid;

  grid-template-columns:
    1fr auto;

  gap: 8px;
}

.id-input .secondary-btn {
  min-width: 76px;
}


/* =========================================================
   BUTTONS
========================================================= */

.primary-btn,
.secondary-btn {
  border-radius:
    var(--radius-md);

  min-height: 42px;

  padding: 0 16px;

  font-family:
    "Space Grotesk",
    sans-serif;

  font-size: 11px;
  font-weight: 800;

  cursor: pointer;

  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background .2s ease;
}

.primary-btn {
  display: inline-flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  border: none;

  color: #02101a;

  background:
    linear-gradient(
      135deg,
      var(--duck-blue-bright),
      var(--duck-blue)
    );

  box-shadow:
    0 8px 25px
    rgba(20,157,221,.25);
}

.primary-btn:hover {
  transform: translateY(-2px);

  box-shadow:
    0 12px 30px
    rgba(20,157,221,.35);
}

.button-arrow {
  font-size: 17px;
}

.secondary-btn {
  border:
    1px solid
    var(--border);

  background:
    #0a1724;

  color: var(--text);
}

.secondary-btn:hover {
  border-color:
    rgba(20,157,221,.3);

  background:
    #0d1d2c;
}


/* =========================================================
   GIVEAWAY EMPTY
========================================================= */

.giveaway-empty {
  padding: 28px 18px;

  text-align: center;

  background:
    #07131f;

  border:
    1px dashed
    rgba(20,157,221,.18);

  border-radius:
    var(--radius-lg);
}

.empty-giveaway-icon {
  width: 40px;
  height: 40px;

  margin: 0 auto 9px;

  display: grid;
  place-items: center;

  border-radius: 10px;

  background:
    rgba(20,157,221,.08);

  color:
    var(--duck-blue-bright);

  font-size: 16px;
}

.giveaway-empty strong {
  display: block;
  font-size: 12px;
}

.giveaway-empty p {
  max-width: 300px;

  margin: 4px auto 0;

  color: var(--soft);

  font-size: 10px;
  line-height: 1.5;
}


/* =========================================================
   LOADED GIVEAWAY
========================================================= */

.loaded-giveaway {
  overflow: hidden;

  background:
    #07131f;

  border:
    1px solid
    rgba(20,157,221,.18);

  border-radius:
    var(--radius-lg);
}

.loaded-giveaway-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 10px;

  padding: 13px;

  border-bottom:
    1px solid
    var(--border);
}

.loaded-giveaway-header strong {
  display: block;

  margin-top: 4px;

  font-size: 12px;
}

.loaded-badge {
  color:
    var(--green);

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 7px;
  letter-spacing: 1px;
}

.loaded-check {
  width: 25px;
  height: 25px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background:
    rgba(82,232,155,.1);

  color:
    var(--green);

  font-size: 12px;
}


/* =========================================================
   GIVEAWAY STATS
========================================================= */

.giveaway-stats {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 7px;

  padding: 10px 13px;
}

.giveaway-stat {
  min-width: 0;

  padding: 9px;

  border:
    1px solid
    var(--border);

  border-radius: 8px;

  background:
    rgba(255,255,255,.015);
}

.stat-label {
  display: block;

  color: var(--soft);

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 7px;

  text-transform: uppercase;

  margin-bottom: 4px;
}

.giveaway-stat strong {
  display: block;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;

  color: var(--text);

  font-size: 10px;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.loaded-description {
  padding: 0 13px 12px;
}

.description-title {
  color: var(--duck-blue-bright);

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 7px;
  font-weight: 800;
  letter-spacing: .8px;
}

.loaded-description p {
  color: var(--muted);

  font-size: 10px;

  line-height: 1.5;

  margin-top: 4px;
}


/* =========================================================
   PARTICIPANTS
   CLEAN + COMPACT VERSION
========================================================= */

.participants-preview {
  margin-top: 2px;

  padding: 13px;

  border-top:
    1px solid
    rgba(255,255,255,.07);

  background:
    rgba(3,10,17,.30);
}


/* HEADER */

.participants-header {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 10px;

  margin-bottom: 9px;
}

.participants-header > div {
  min-width: 0;
}

.participants-header span {
  display: block;

  color: var(--text);

  font-size: 11px;

  font-weight: 700;

  line-height: 1.2;
}

.participants-header small {
  display: block;

  color: var(--soft);

  font-size: 8px;

  line-height: 1.3;

  margin-top: 3px;
}


/* PARTICIPANT COUNTER */

.counter-badge {
  flex-shrink: 0;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-width: 34px;

  height: 23px;

  padding: 0 8px;

  border-radius: 20px;

  color:
    var(--duck-blue-bright);

  background:
    rgba(20,157,221,.09);

  border:
    1px solid
    rgba(20,157,221,.22);

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 8px;

  font-weight: 800;

  white-space: nowrap;
}


/* =========================================================
   PARTICIPANT LIST
========================================================= */

.participant-list {

  display: grid;

  /*
     More columns = more participants visible.
     Cards automatically shrink depending
     on available width.
  */
  grid-template-columns:
    repeat(
      auto-fill,
      minmax(88px, 1fr)
    );

  gap: 5px;

  /*
     Keeps the participant section compact.
  */
  max-height: 128px;

  overflow-y: auto;

  overflow-x: hidden;

  padding: 1px 3px 2px 0;

  scrollbar-gutter: stable;
}


/* PARTICIPANT ITEM */

.participant-list > * {

  min-width: 0;

  height: 29px;

  display: flex;

  align-items: center;

  padding: 0 8px;

  border-radius: 7px;

  background:
    rgba(255,255,255,.025);

  border:
    1px solid
    rgba(255,255,255,.055);

  color:
    #b9cad8;

  font-size: 9px;

  line-height: 1;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;

  transition:
    background .15s ease,
    border-color .15s ease,
    color .15s ease;
}


/* Hover */

.participant-list > *:hover {

  background:
    rgba(20,157,221,.07);

  border-color:
    rgba(20,157,221,.20);

  color:
    var(--duck-blue-bright);
}


/* =========================================================
   IF PARTICIPANT ITEMS USE A SPECIFIC CLASS
========================================================= */

.participant-item {

  min-width: 0;

  height: 29px;

  display: flex;

  align-items: center;

  gap: 6px;

  padding: 0 8px;

  border-radius: 7px;

  background:
    rgba(255,255,255,.025);

  border:
    1px solid
    rgba(255,255,255,.055);

  color: #b9cad8;

  font-size: 9px;

  overflow: hidden;
}

.participant-item span {

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;
}


/* PARTICIPANT NUMBER / DOT */

.participant-number {

  flex-shrink: 0;

  width: 15px;

  height: 15px;

  display: grid;

  place-items: center;

  border-radius: 50%;

  background:
    rgba(20,157,221,.10);

  color:
    var(--duck-blue-bright);

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 6px;

  font-weight: 800;
}


/* =========================================================
   EMPTY PARTICIPANT STATE
========================================================= */

.participant-list .empty-state {

  grid-column:
    1 / -1;

  min-height: 58px;

  height: auto;

  display: flex;

  align-items: center;

  justify-content: center;

  flex-direction: column;

  padding: 13px;

  text-align: center;

  background:
    rgba(20,157,221,.025);

  border:
    1px dashed
    rgba(20,157,221,.14);

  border-radius: 8px;

  color: var(--soft);

  font-size: 9px;
}


/* =========================================================
   PARTICIPANT SCROLLBAR
========================================================= */

.participant-list::-webkit-scrollbar {
  width: 4px;
}

.participant-list::-webkit-scrollbar-track {
  background:
    rgba(255,255,255,.025);

  border-radius: 10px;
}

.participant-list::-webkit-scrollbar-thumb {
  background:
    rgba(20,157,221,.35);

  border-radius: 10px;
}

.participant-list::-webkit-scrollbar-thumb:hover {
  background:
    var(--duck-blue);
}


/* =========================================================
   MANUAL ENTRY
========================================================= */

.field-help {
  color: var(--soft);

  font-size: 9px;

  line-height: 1.5;

  margin-top: 6px;
}


/* =========================================================
   DRAW SETTINGS
========================================================= */

.draw-settings {

  margin-top: 22px;

  padding-top: 20px;

  border-top:
    1px solid
    var(--border);
}

.settings-heading {

  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 15px;

  margin-bottom: 15px;
}

.settings-heading h3 {

  font-family:
    "Chakra Petch",
    sans-serif;

  font-size: 18px;
}

.settings-note {

  color: var(--soft);

  font-size: 8px;

  text-align: right;
}

.settings-grid {

  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 0 12px;
}

.field-full {
  grid-column:
    1 / -1;
}

.description-input {
  min-height: 75px;
}

.field-lock {
  opacity: .6;
  font-size: 9px;
}


/* =========================================================
   RACE STATUS
========================================================= */

.race-status {

  height: 40px;

  display: flex;

  align-items: center;

  gap: 8px;

  padding: 0 12px;

  border:
    1px solid
    var(--border);

  border-radius:
    var(--radius-md);

  background:
    #07131f;

  color:
    var(--duck-blue-bright);

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 9px;

  font-weight: 800;
}

.race-status .status-dot {

  width: 7px;
  height: 7px;
}


/* =========================================================
   ACTIONS
========================================================= */

.actions {

  display: grid;

  grid-template-columns:
    minmax(160px, 1fr)
    auto
    auto;

  gap: 8px;

  margin-top: 7px;
}

.status {

  min-height: 16px;

  color:
    var(--duck-blue-bright);

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 9px;

  margin-top: 10px;
}


/* =========================================================
   WINNER PANEL
========================================================= */

.winners-panel {

  position: sticky;

  top: 20px;
}


/* =========================================================
   PROGRESS
========================================================= */

.progress-pill {

  flex-shrink: 0;

  padding: 6px 9px;

  border:
    1px solid
    rgba(20,157,221,.2);

  border-radius: 20px;

  background:
    rgba(20,157,221,.07);

  color:
    var(--duck-blue-bright);

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 8px;
}


/* =========================================================
   WINNER HERO
========================================================= */

.winner-panel {

  margin-bottom: 14px;

  padding: 13px;

  border:
    1px solid
    rgba(20,157,221,.3);

  border-radius:
    var(--radius-lg);

  background:
    linear-gradient(
      135deg,
      rgba(20,157,221,.12),
      rgba(6,59,99,.14)
    );
}

.winner-main {

  display: flex;

  align-items: center;

  gap: 11px;
}

.winner-icon {

  width: 42px;
  height: 42px;

  flex-shrink: 0;

  display: grid;

  place-items: center;

  border-radius: 11px;

  background:
    rgba(20,157,221,.14);

  border:
    1px solid
    rgba(20,157,221,.22);

  font-size: 21px;
}

.winner-label {

  color:
    var(--duck-blue-bright);

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 7px;

  font-weight: 800;

  letter-spacing: 1px;
}

.winner-main h3 {

  margin-top: 2px;

  font-family:
    "Chakra Petch",
    sans-serif;

  font-size: 19px;
}

.winner-main p {

  color:
    var(--cyan);

  font-size: 9px;

  margin-top: 2px;
}


/* =========================================================
   WINNER INFO
========================================================= */

.winner-info {

  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 7px;

  margin-top: 10px;
}

.winner-info > div {

  min-width: 0;

  padding: 8px;

  background:
    rgba(0,0,0,.18);

  border:
    1px solid
    var(--border);

  border-radius: 8px;
}

.winner-info span {

  display: block;

  color: var(--soft);

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 6px;

  margin-bottom: 3px;
}

.winner-info strong {

  display: block;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;

  font-size: 9px;
}


/* =========================================================
   WINNER LIST
========================================================= */

.winner-list {

  display: flex;

  flex-direction: column;

  gap: 7px;

  max-height: 430px;

  overflow-y: auto;
}

.empty-state {

  padding: 35px 15px;

  text-align: center;

  border:
    1px dashed
    rgba(20,157,221,.15);

  border-radius:
    var(--radius-lg);

  background:
    rgba(20,157,221,.025);
}

.empty-icon {

  display: block;

  font-size: 25px;

  margin-bottom: 8px;

  opacity: .8;
}

.empty-state strong {

  display: block;

  font-size: 11px;
}

.empty-state p {

  color: var(--soft);

  font-size: 9px;

  line-height: 1.5;

  margin-top: 4px;
}


/* =========================================================
   WINNER FOOTER
========================================================= */

.winner-footer {

  display: flex;

  justify-content: space-between;

  gap: 10px;

  margin-top: 14px;

  padding-top: 11px;

  border-top:
    1px solid
    var(--border);

  color: var(--soft);

  font-family:
    "JetBrains Mono",
    monospace;

  font-size: 6px;

  letter-spacing: .6px;
}


/* =========================================================
   HIDDEN
========================================================= */

.hidden {
  display: none !important;
}


/* =========================================================
   SCROLLBARS
========================================================= */

::-webkit-scrollbar {

  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {

  background:
    #07111b;
}

::-webkit-scrollbar-thumb {

  background:
    #174867;

  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {

  background:
    var(--duck-blue);
}


/* =========================================================
   FOOTER
========================================================= */

footer {

  border-top:
    1px solid
    var(--border);

  padding: 20px;
}

.footer-content {

  width:
    min(1180px, calc(100% - 32px));

  margin: auto;

  display: flex;

  justify-content: space-between;

  color: var(--soft);

  font-size: 9px;

  font-family:
    "JetBrains Mono",
    monospace;
}

.footer-content span {

  color:
    var(--duck-blue-bright);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

  .dashboard-grid {

    grid-template-columns:
      1fr;
  }

  .winners-panel {

    position: static;
  }

  .winner-list {

    max-height: 300px;
  }

  /*
     More participant columns on tablets.
  */

  .participant-list {

    grid-template-columns:
      repeat(
        auto-fill,
        minmax(95px, 1fr)
      );

    max-height: 135px;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

  .navbar {

    padding:
      16px;
  }

  .app {

    width:
      min(
        100% - 20px,
        1180px
      );

    padding-bottom: 40px;
  }

  .hero {

    margin-bottom: 22px;
  }

  .hero h1 {

    font-size:
      clamp(39px, 13vw, 55px);

    letter-spacing:
      -1.5px;
  }

  .subtitle {

    font-size: 12px;
  }


  /* =====================================================
     GAME
  ====================================================== */

  .game-header {

    padding: 13px;
  }

  .game-icon {

    width: 37px;
    height: 37px;

    font-size: 18px;
  }

  .game-brand h2 {

    font-size: 18px;
  }

  .game-status {

    font-size: 7px;

    padding:
      6px 8px;
  }


  /* =====================================================
     HUD
  ====================================================== */

  .hud-bar {

    grid-template-columns:
      repeat(4, 1fr);
  }

  .hud-item {

    padding:
      8px 4px;
  }

  .hud-item span {

    font-size: 6px;
  }

  .hud-item strong {

    font-size: 11px;
  }


  /* =====================================================
     RIVER
  ====================================================== */

  .river-frame {

    padding: 7px;
  }

  .river-topbar {

    font-size: 6px;
  }

  .river-footer {

    font-size: 6px;
  }


  /* =====================================================
     PANELS
  ====================================================== */

  .panel {

    padding: 16px;

    border-radius:
      17px;
  }

  .panel-header {

    margin-bottom:
      17px;
  }

  .panel-header h2 {

    font-size:
      20px;
  }


  /* =====================================================
     SOURCE
  ====================================================== */

  .source-buttons {

    grid-template-columns:
      1fr;
  }

  .source-btn {

    padding:
      10px;
  }


  /* =====================================================
     STATS
  ====================================================== */

  .giveaway-stats {

    grid-template-columns:
      1fr;
  }


  /* =====================================================
     PARTICIPANTS
  ====================================================== */

  .participants-preview {

    padding:
      11px;
  }

  .participants-header {

    margin-bottom:
      8px;
  }

  .participants-header span {

    font-size:
      10px;
  }

  .participants-header small {

    font-size:
      7px;
  }

  .counter-badge {

    min-width:
      31px;

    height:
      21px;

    padding:
      0 7px;

    font-size:
      7px;
  }

  .participant-list {

    grid-template-columns:
      repeat(
        auto-fill,
        minmax(82px, 1fr)
      );

    gap:
      4px;

    max-height:
      118px;
  }

  .participant-list > *,
  .participant-item {

    height:
      27px;

    padding:
      0 7px;

    border-radius:
      6px;

    font-size:
      8px;
  }


  /* =====================================================
     SETTINGS
  ====================================================== */

  .settings-grid {

    grid-template-columns:
      1fr;
  }

  .field-full {

    grid-column:
      auto;
  }


  /* =====================================================
     ACTIONS
  ====================================================== */

  .actions {

    grid-template-columns:
      1fr 1fr;
  }

  .actions .primary-btn {

    grid-column:
      1 / -1;
  }


  /* =====================================================
     WINNER
  ====================================================== */

  .winner-info {

    grid-template-columns:
      1fr;
  }

  .winner-footer {

    flex-direction:
      column;
  }
}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 390px) {

  .navbar {

    padding:
      14px 10px;
  }

  .app {

    width:
      calc(100% - 14px);
  }

  .game-header {

    align-items:
      flex-start;
  }

  .game-status {

    font-size:
      6px;
  }

  .hud-item strong {

    font-size:
      10px;
  }

  .panel {

    padding:
      13px;
  }

  .racer-counter {

    min-width:
      52px;
  }

  .source-btn strong {

    font-size:
      10px;
  }


  /* =====================================================
     EXTRA COMPACT PARTICIPANTS
  ====================================================== */

  .participants-preview {

    padding:
      9px;
  }

  .participant-list {

    grid-template-columns:
      repeat(
        auto-fill,
        minmax(72px, 1fr)
      );

    gap:
      3px;

    max-height:
      108px;
  }

  .participant-list > *,
  .participant-item {

    height:
      25px;

    padding:
      0 6px;

    font-size:
      7px;
  }

  .participants-header span {

    font-size:
      9px;
  }

  .participants-header small {

    font-size:
      6px;
  }
}