@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&display=swap');

/* ================================
   Base
================================ */

:root {
  --bg-1: #070726;
  --bg-2: #17104a;
  --bg-3: #4b0f63;
  --pink: #ff3ebf;
  --pink-2: #ff73d7;
  --cyan: #35dfff;
  --yellow: #ffd84d;
  --green: #36ff9b;
  --white: #ffffff;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --glass: rgba(255, 255, 255, 0.11);
  --glass-strong: rgba(8, 10, 45, 0.72);
  --border: rgba(255, 255, 255, 0.17);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Baloo 2', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 62, 191, 0.22), transparent 32%),
    radial-gradient(circle at top right, rgba(53, 223, 255, 0.16), transparent 30%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2) 46%, var(--bg-3));
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.035) 25%, transparent 25%);
  background-size: 90px 90px;
  background-position: 0 0, 45px 45px;
  opacity: 0.55;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.07), transparent 20%),
    radial-gradient(circle at 85% 75%, rgba(255, 62, 191, 0.12), transparent 28%);
  pointer-events: none;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a,
.card,
.status-card,
.rules-list div,
.past-row,
.ready-check {
  -webkit-tap-highlight-color: transparent;
}

/* ================================
   Page Layout
================================ */

.page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 54px;
}

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

.brand-chip,
.admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
  line-height: 1;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.20);
  backdrop-filter: blur(12px);

}

.admin-link {
  cursor: pointer;
}

.brand-chip:hover,
.admin-link:hover {
  background: rgba(255, 255, 255, 0.18);

  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

/* ================================
   Hero
================================ */

.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  padding: clamp(28px, 5vw, 58px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top left, rgba(255, 62, 191, 0.30), transparent 35%),
    radial-gradient(circle at bottom right, rgba(53, 223, 255, 0.18), transparent 36%),
    rgba(255, 255, 255, 0.11);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 180deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent,
    rgba(255, 62, 191, 0.10),
    transparent
  );

  pointer-events: none;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 62, 191, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(2.8rem, 8vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
}

.hero p {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  line-height: 1.35;
}

.marquee {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.bulb {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  color: #17071d;
  font-weight: 950;
  background: var(--yellow);
  box-shadow: 0 0 24px rgba(255, 216, 77, 0.44);

}

.bulb:nth-child(2n) {
  background: var(--pink-2);
  color: #ffffff;
  box-shadow: 0 0 24px rgba(255, 115, 215, 0.42);

}

.bulb:nth-child(3n) {
  background: var(--cyan);
  color: #05131a;
  box-shadow: 0 0 24px rgba(53, 223, 255, 0.42);

}

/* ================================
   Sections / Cards
================================ */

.section {
  margin-top: 28px;
}

.section-title {
  margin: 0 0 16px;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: var(--radius-lg);
  color: #ffffff;
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);

}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 62, 191, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(53, 223, 255, 0.12), transparent 34%);
  pointer-events: none;
}

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

.card:hover {

  background: rgba(255, 255, 255, 0.14);

  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.card.dark {
  background: var(--glass-strong);
}

.card h2 {
  margin: 10px 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.02;
}

.card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.42;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 15px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--pink);
  font-weight: 950;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(255, 62, 191, 0.24);
}

/* ================================
   Buttons
================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  width: fit-content;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 950;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);

}

.btn.hot {
  background: linear-gradient(135deg, var(--pink), #ff7a3d);
}

.btn.cyan {
  background: linear-gradient(135deg, var(--cyan), #7057ff);
}

.btn.yellow {
  background: linear-gradient(135deg, var(--yellow), #ff9f2e);
  color: #1b0f08;
}

.btn:hover {
  filter: brightness(1.08);

  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
}

/* ================================
   Past / Empty
================================ */

.past-list {
  display: grid;
  gap: 12px;
}

.past-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);

}

.past-row:hover {
  background: rgba(255, 255, 255, 0.14);

}

.past-row strong {
  display: block;
  font-size: 1.15rem;
}

.past-row span {
  display: block;
  color: var(--muted);
  line-height: 1.25;
}

.empty {
  padding: 26px;
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid var(--border);
}

.footer-note {
  margin: 32px 0 0;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

/* ================================
   Forms / Quiz
================================ */

.quiz-shell {
  max-width: 920px;
  margin: 0 auto;
}

.form {
  display: grid;
  gap: 14px;
}

.input {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  outline: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 999px rgba(255,255,255,0.01);
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.64);
}

.input:focus {
  border-color: rgba(53, 223, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(53, 223, 255, 0.14);
}

.question-count {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(53, 223, 255, 0.16);
  border: 1px solid rgba(53, 223, 255, 0.22);
  font-weight: 950;
}

.options {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.option {
  width: 100%;
  min-height: 58px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: #ffffff;
  text-align: left;
  font-weight: 900;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);

}

.option:hover:not(:disabled) {
  background: rgba(255, 62, 191, 0.24);
  border-color: rgba(255, 255, 255, 0.28);

}

.option:disabled {
  cursor: not-allowed;
}

.option.selected {

  opacity: 0.88;
  background: rgba(53, 223, 255, 0.22);
  border-color: rgba(53, 223, 255, 0.38);
}

.score-big {
  margin: 14px 0 0;
  font-size: clamp(4rem, 11vw, 8rem);
  font-weight: 950;
  line-height: 0.9;
  color: var(--yellow);
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
}

/* ================================
   Ready Checkbox
================================ */

.ready-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 20px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border);
  font-weight: 900;
  line-height: 1.4;
  cursor: pointer;

}

.ready-check:hover {
  background: rgba(255, 255, 255, 0.16);

}

.ready-check input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--pink);
  flex: 0 0 auto;
}

/* ================================
   Timer
================================ */

.timer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0 20px;
  padding: 14px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border);
}

.timer-label {
  font-weight: 950;
  opacity: 0.92;
}

.timer-number {
  min-width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #130815;
  font-size: 1.75rem;
  font-weight: 950;
  background: var(--yellow);
  box-shadow: 0 0 24px rgba(255, 216, 77, 0.32);
}

.timer-number.urgent {
  color: #ffffff;
  background: var(--pink);

}

/* ================================
   Quiz Status / Rules Section
================================ */

.quiz-status-section {
  margin-top: 34px;
}

.quiz-status-section .section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quiz-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.status-card,
.rules-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 24px;
  background: rgba(8, 10, 45, 0.72);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);

}

.status-card:hover,
.rules-card:hover {

  background: rgba(8, 10, 45, 0.80);

  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.status-card::before,
.rules-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 62, 191, 0.20), transparent 36%),
    radial-gradient(circle at bottom right, rgba(53, 223, 255, 0.14), transparent 36%);
  pointer-events: none;
}

.status-card > *,
.rules-card > * {
  position: relative;
  z-index: 1;
}

.status-card {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  align-items: start;
}

.status-card.main-status {
  grid-column: 1 / -1;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 145, 0.16),
    rgba(8, 10, 45, 0.78),
    rgba(255, 62, 191, 0.12)
  );
}

.status-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.08);

}

.status-card .badge {
  margin-bottom: 10px;
}

.status-card h2 {
  margin: 0 0 8px;
  font-size: clamp(1.95rem, 4vw, 3.15rem);
  line-height: 0.95;
}

.status-card h3 {
  margin: 0 0 8px;
  font-size: 1.28rem;
  line-height: 1.25;
}

.status-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}

.rules-card {
  margin-top: 18px;
}

.rules-card h2 {
  margin: 0 0 18px;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  line-height: 1;
}

.rules-list {
  display: grid;
  gap: 12px;
}

.rules-list div {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.10);

}

.rules-list div:hover {
  background: rgba(255, 255, 255, 0.13);

}

.rules-list span {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  background: rgba(255, 255, 255, 0.13);
}

.rules-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.90);
  line-height: 1.45;
}

/* ================================
   Tables
================================ */

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.10);
  box-shadow: var(--shadow);
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

th {
  color: #ffffff;
  background: rgba(255, 62, 191, 0.22);
  font-weight: 950;
}

td {
  color: rgba(255, 255, 255, 0.90);
}

tr:hover td {
  background: rgba(255, 255, 255, 0.07);
}

/* ================================
   Animations
================================ */

















/* ================================
   Mobile
================================ */

@media (max-width: 900px) {
  .grid,
  .quiz-status-grid {
    grid-template-columns: 1fr;
  }

  .status-card.main-status {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 24px, 1180px);
    padding-top: 18px;
  }

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

  .topbar > div:last-child {
    justify-content: flex-start !important;
  }

  .hero {
    padding: 26px 22px;
    border-radius: 26px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 13vw, 4.4rem);
  }

  .card,
  .status-card,
  .rules-card {
    padding: 20px;
  }

  .status-card {
    grid-template-columns: 1fr;
  }

  .status-icon {
    width: 52px;
    height: 52px;
  }

  .past-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .rules-list div {
    grid-template-columns: 42px 1fr;
    padding: 13px;
  }

  .rules-list span {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  th,
  td {
    padding: 12px;
  }
}

/* ================================
   Reduced Motion
================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {


    scroll-behavior: auto !important;

  }
}
/* ================================
   Gaybourhood Gameshow Scoreboard
================================ */

.scoreboard-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(32px, 7vw, 72px) 24px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top left, rgba(255, 62, 191, 0.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(53, 223, 255, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.scoreboard-hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(
    from 180deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent,
    rgba(255, 62, 191, 0.11),
    transparent
  );

  pointer-events: none;
}

.scoreboard-hero > * {
  position: relative;
  z-index: 1;
}

.scoreboard-hero h1 {
  margin: 18px auto 14px;
  max-width: 980px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #55f0ff, #b45cff, #ff62d8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.scoreboard-hero p {
  margin: 0 auto 18px;
  max-width: 680px;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.72);
}

.scoreboard-date-pill {
  width: fit-content;
  margin: 0 auto;
  padding: 10px 18px;
  border-radius: 999px;
  color: #ff72ce;
  font-weight: 950;
  border: 1px solid rgba(255, 216, 77, 0.72);
  background: rgba(255, 255, 255, 0.06);
}

.scoreboard-icons {
  margin-top: 22px;
  font-size: 1.65rem;
  letter-spacing: 0.16em;
}

.quiz-history-select {
  width: 100%;
  min-height: 62px;
  padding: 0 22px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 62, 191, 0.45);
  font: inherit;
  font-weight: 900;
  outline: none;
}

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

.score-stat-card {
  min-height: 130px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);

}

.score-stat-card:hover {
  background: rgba(255, 255, 255, 0.11);

}

.score-stat-card.featured {
  border-color: rgba(255, 216, 77, 0.7);
  box-shadow: inset 0 0 0 1px rgba(53, 255, 142, 0.28);
}

.score-stat-card.wide {
  grid-column: 1 / -1;
}

.score-stat-card strong {
  display: block;
  color: #6dff57;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1;
  font-weight: 950;
}

.score-stat-card span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scoreboard-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.scoreboard-tab {
  min-height: 58px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.scoreboard-tab.active {
  border-color: rgba(255, 216, 77, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 62, 191, 0.38);
}

.scoreboard-panel {
  display: none;
}

.scoreboard-panel.active {
  display: block;
}

.scoreboard-help {
  margin-top: -6px;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.leaderboard-search {
  width: 100%;
  min-height: 64px;
  margin: 16px 0 18px;
  padding: 0 22px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font: inherit;
  font-weight: 800;
  outline: none;
}

.leaderboard-search::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.leaderboard-search:focus {
  border-color: rgba(53, 223, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(53, 223, 255, 0.14);
}

.leaderboard-card-list {
  display: grid;
  gap: 14px;
}

.leaderboard-player-card {
  display: grid;
  grid-template-columns: 56px 54px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);

}

.leaderboard-player-card:first-child {
  border-color: rgba(255, 216, 77, 0.9);
  box-shadow: inset 0 0 0 1px rgba(53, 255, 142, 0.35);
}

.leaderboard-player-card:hover {
  background: rgba(255, 255, 255, 0.12);

}

.player-rank {
  font-weight: 950;
  font-size: 1.45rem;
  text-align: center;
}

.player-avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #16091d;
  background: linear-gradient(135deg, #ffd84d, #ff73d7);
  font-weight: 950;
}

.player-details h3 {
  margin: 0;
  font-size: 1.25rem;
}

.player-details p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.55);
}

.player-score {
  text-align: right;
}

.player-score strong {
  display: block;
  color: #6dff57;
  font-size: 1.75rem;
  line-height: 1;
}

.player-score span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-weight: 800;
}

.answers-list {
  display: grid;
  gap: 14px;
}

.answer-card {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.answer-card h3 {
  margin: 12px 0 8px;
}

.answer-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 760px) {
  .score-stats-grid,
  .scoreboard-tabs {
    grid-template-columns: 1fr;
  }

  .leaderboard-player-card {
    grid-template-columns: 42px 46px 1fr;
  }

  .player-score {
    grid-column: 1 / -1;
    text-align: left;
    padding-left: 102px;
  }

  .scoreboard-icons {
    letter-spacing: 0.05em;
  }
}


/* ================================
   Liquid Glass Enhancement Layer
   Gaybourhood Quiz Hub
================================ */

:root {
  --glass-bg: rgba(255, 255, 255, 0.105);
  --glass-bg-strong: rgba(255, 255, 255, 0.16);
  --glass-border: rgba(255, 255, 255, 0.26);
  --glass-highlight: rgba(255, 255, 255, 0.42);
  --glass-shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
  --glass-inner: inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

/* Better glass rendering where supported */
@supports ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .topbar,
  .hero,
  .card,
  .status-card,
  .rules-card,
  .past-row,
  .scoreboard-hero,
  .score-stat-card,
  .leaderboard-player-card,
  .answer-card,
  .empty,
  .brand-chip,
  .admin-link,
  .badge,
  .ready-check {
    background:
      linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.18),
        rgba(255, 255, 255, 0.07)
      );
    border: 1px solid var(--glass-border);
    box-shadow:
      var(--glass-shadow),
      var(--glass-inner);
    -webkit-backdrop-filter: blur(26px) saturate(1.45);
    backdrop-filter: blur(26px) saturate(1.45);
  }
}

/* Subtle glossy edge on main cards */
.hero,
.card,
.status-card,
.rules-card,
.scoreboard-hero,
.score-stat-card,
.leaderboard-player-card,
.answer-card {
  position: relative;
  overflow: hidden;
}

.hero::after,
.card::after,
.status-card::after,
.rules-card::after,
.scoreboard-hero::after,
.score-stat-card::after,
.leaderboard-player-card::after,
.answer-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.26),
      transparent 32%,
      transparent 64%,
      rgba(255, 255, 255, 0.08)
    );
  opacity: 0.75;
}

/* Keep content above the glass shine */
.hero > *,
.card > *,
.status-card > *,
.rules-card > *,
.scoreboard-hero > *,
.score-stat-card > *,
.leaderboard-player-card > *,
.answer-card > * {
  position: relative;
  z-index: 1;
}

/* Topbar layout */
.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  margin-bottom: 26px;
  padding: 10px;
  border-radius: 999px;
}

/* Better Liquid Glass buttons */
.btn,
button,
.brand-chip,
.admin-link {
  box-shadow:
    0 12px 34px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);

}

.btn:hover,
button:hover,
.brand-chip:hover,
.admin-link:hover {

  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

/* Liquid-style form fields */
.input,
input,
select,
textarea,
.leaderboard-search,
.quiz-history-select {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.075)
    );
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 14px 38px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  backdrop-filter: blur(18px) saturate(1.35);
}

.input:focus,
input:focus,
select:focus,
textarea:focus,
.leaderboard-search:focus,
.quiz-history-select:focus {
  border-color: rgba(53, 223, 255, 0.78);
  box-shadow:
    0 0 0 4px rgba(53, 223, 255, 0.16),
    0 18px 44px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

/* Softer glass background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 62, 191, 0.26), transparent 28%),
    radial-gradient(circle at 82% 14%, rgba(53, 223, 255, 0.22), transparent 30%),
    radial-gradient(circle at 50% 92%, rgba(255, 216, 77, 0.16), transparent 34%);
  filter: blur(10px);
}

/* Hero overlay opacity */
.scoreboard-hero::before,
.hero::before {
  opacity: 0.45;
}

/* Mobile: keep it glassy but lighter for performance */
@media (max-width: 760px) {
  @supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
    .topbar,
    .hero,
    .card,
    .status-card,
    .rules-card,
    .past-row,
    .scoreboard-hero,
    .score-stat-card,
    .leaderboard-player-card,
    .answer-card,
    .empty,
    .brand-chip,
    .admin-link,
    .badge,
    .ready-check {
      -webkit-backdrop-filter: blur(18px) saturate(1.25);
      backdrop-filter: blur(18px) saturate(1.25);
    }
  }

  .topbar {
    top: 8px;
    border-radius: 26px;
  }
}

/* Accessibility/performance fallback */
@media (prefers-reduced-transparency: reduce) {
  .topbar,
  .hero,
  .card,
  .status-card,
  .rules-card,
  .past-row,
  .scoreboard-hero,
  .score-stat-card,
  .leaderboard-player-card,
  .answer-card,
  .empty,
  .brand-chip,
  .admin-link,
  .badge,
  .ready-check,
  .input,
  input,
  select,
  textarea {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: rgba(35, 13, 48, 0.92) !important;
  }
}

/* Better page rhythm */
.section {
  margin-top: clamp(28px, 5vw, 54px);
}

.grid {
  gap: clamp(16px, 3vw, 28px);
}

.card,
.status-card,
.rules-card,
.scoreboard-hero {
  padding: clamp(20px, 4vw, 34px);
}

/* Cleaner quiz question layout */
.quiz-shell .card h2 {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.05;
  text-align: center;
}

.question-count {
  text-align: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.72;
}

/* Better answer buttons */
.option {
  min-height: 68px;
  border-radius: 24px;
  text-align: left;
  padding: 18px 22px;
  font-size: clamp(1rem, 3vw, 1.25rem);
  line-height: 1.15;
}

.option:hover:not(:disabled) {
  border-color: rgba(255, 216, 77, 0.7);
  background: rgba(255, 255, 255, 0.14);
}

.option.selected {
  border-color: rgba(109, 255, 87, 0.8);
  box-shadow:
    0 0 0 4px rgba(109, 255, 87, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

/* Clear keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.option:focus-visible {
  outline: 3px solid rgba(255, 216, 77, 0.95);
  outline-offset: 4px;
}

/* Better mobile topbar */
@media (max-width: 760px) {
  .topbar {
    align-items: stretch;
    gap: 10px;
  }

  .topbar .brand-chip,
  .topbar .admin-link {
    justify-content: center;
    width: 100%;
  }
}

/* Make first place feel iconic */
.leaderboard-player-card:first-child {
  position: relative;

}

.leaderboard-player-card:first-child::before {
  content: "👑 Current Quiz Royalty";
  position: absolute;
  top: -12px;
  right: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd84d, #ff73d7);
  color: #16091d;
  font-size: 0.78rem;
  font-weight: 950;
  z-index: 2;
}

/* Background glow */
body::after {
  content: "";
  position: fixed;
  inset: auto -20% -30% -20%;
  height: 45vh;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 50%, rgba(255, 62, 191, 0.18), transparent 34%),
    radial-gradient(circle at 70% 45%, rgba(53, 223, 255, 0.15), transparent 34%);
  filter: blur(28px);

}



@media (prefers-reduced-motion: reduce) {
}

/* Better player check-in form */
.form {
  gap: 16px;
}

.input {
  min-height: 62px;
  border-radius: 22px;
  font-size: 1.05rem;
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.54);
}

.ready-check {
  border-radius: 22px;
  padding: 16px 18px;
}

/* iPhone safe area support */
body {
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

/* Friendlier error state */
.card.dark .badge {
  background: rgba(255, 91, 124, 0.16);
  border-color: rgba(255, 91, 124, 0.38);
}

.card.dark h2 {
  color: #ffffff;
}

.card.dark p strong {
  color: #ffd84d;
}

/* ================================
   Post-Quiz Mood Share Card
================================ */

.result-mood-card {
  margin: 22px auto;
  padding: 22px;
  max-width: 680px;
  border-radius: 26px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.16),
      rgba(255, 255, 255, 0.07)
    );
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 18px 50px rgba(0, 0, 0, 0.22);
}

.result-mood-card h3 {
  margin: 12px 0 8px;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1;
  color: #ffd84d;
}

.result-mood-card p {
  max-width: 560px;
  margin: 0 auto 16px;
  color: rgba(255, 255, 255, 0.78);
}

.share-box {
  width: 100%;
  min-height: 132px;
  margin: 10px 0 14px;
  padding: 16px;
  border-radius: 20px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font: inherit;
  font-weight: 700;
  resize: vertical;
}

/* ================================
   Clearer Leaderboard Rows
================================ */

.improved-leaderboard-row {
  grid-template-columns: 64px 56px minmax(180px, 1fr) 110px 110px 110px;
  align-items: center;
  gap: 16px;
  padding: 18px;
}

.improved-rank {
  font-size: 1.55rem;
}

.improved-player-details h3 {
  font-size: 1.35rem;
  line-height: 1.05;
}

.improved-player-details p {
  margin-top: 4px;
  font-size: 0.95rem;
}

.leaderboard-metric {
  min-height: 74px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 10px 12px;
  border-radius: 18px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.15),
      rgba(255, 255, 255, 0.065)
    );
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 12px 32px rgba(0, 0, 0, 0.16);
}

.leaderboard-metric span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.leaderboard-metric strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 950;
}

.score-metric strong {
  color: #6dff57;
}

.percent-metric strong {
  color: #ffd84d;
}

.time-metric strong {
  color: #35dfff;
}

.leaderboard-player-card:first-child .leaderboard-metric {
  border-color: rgba(255, 216, 77, 0.38);
}

@media (max-width: 980px) {
  .improved-leaderboard-row {
    grid-template-columns: 52px 52px 1fr;
  }

  .leaderboard-metric {
    min-height: 68px;
  }

  .score-metric {
    grid-column: 1 / 2;
  }

  .percent-metric {
    grid-column: 2 / 3;
  }

  .time-metric {
    grid-column: 3 / 4;
  }
}

@media (max-width: 560px) {
  .improved-leaderboard-row {
    grid-template-columns: 44px 48px 1fr;
    gap: 12px;
    padding: 14px;
  }

  .improved-rank {
    font-size: 1.25rem;
  }

  .player-avatar {
    width: 48px;
    height: 48px;
  }

  .improved-player-details h3 {
    font-size: 1.15rem;
  }

  .leaderboard-metric {
    min-height: 62px;
    padding: 9px;
  }

  .leaderboard-metric strong {
    font-size: 1.08rem;
  }

  .leaderboard-metric span {
    font-size: 0.65rem;
  }
}

/* ================================
   Extra Liquid Glass Upgrade
   Paste at very bottom of styles.css
================================ */

:root {
  --liquid-glass-bg: rgba(255, 255, 255, 0.13);
  --liquid-glass-bg-strong: rgba(255, 255, 255, 0.19);
  --liquid-glass-border: rgba(255, 255, 255, 0.32);
  --liquid-glass-highlight: rgba(255, 255, 255, 0.48);
  --liquid-glass-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  --liquid-glass-inner: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* Stronger frosted glass across the main cards */
.topbar,
.hero,
.card,
.status-card,
.rules-card,
.past-row,
.scoreboard-hero,
.score-stat-card,
.leaderboard-player-card,
.answer-card,
.empty,
.brand-chip,
.admin-link,
.badge,
.ready-check,
.result-mood-card,
.leaderboard-metric,
.quiz-history-select,
.leaderboard-search,
.scoreboard-tab {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.22),
      rgba(255, 255, 255, 0.075)
    ) !important;
  border: 1px solid var(--liquid-glass-border) !important;
  box-shadow:
    var(--liquid-glass-shadow),
    var(--liquid-glass-inner),
    inset 0 -18px 38px rgba(255, 255, 255, 0.04) !important;
}

/* Actual blur effect where supported */
@supports ((backdrop-filter: blur(24px)) or (-webkit-backdrop-filter: blur(24px))) {
  .topbar,
  .hero,
  .card,
  .status-card,
  .rules-card,
  .past-row,
  .scoreboard-hero,
  .score-stat-card,
  .leaderboard-player-card,
  .answer-card,
  .empty,
  .brand-chip,
  .admin-link,
  .badge,
  .ready-check,
  .result-mood-card,
  .leaderboard-metric,
  .quiz-history-select,
  .leaderboard-search,
  .scoreboard-tab {
    -webkit-backdrop-filter: blur(30px) saturate(1.65) contrast(1.05);
    backdrop-filter: blur(30px) saturate(1.65) contrast(1.05);
  }
}

/* Shiny light streak on big glass panels */
.hero,
.card,
.status-card,
.rules-card,
.scoreboard-hero,
.leaderboard-player-card,
.result-mood-card {
  position: relative;
  overflow: hidden;
}

.hero::before,
.card::before,
.status-card::before,
.rules-card::before,
.scoreboard-hero::before,
.leaderboard-player-card::before,
.result-mood-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.34) 0%,
      rgba(255, 255, 255, 0.13) 18%,
      rgba(255, 255, 255, 0.03) 42%,
      rgba(255, 255, 255, 0) 70%
    );
  opacity: 0.55;
}

/* Glossy top edge */
.hero::after,
.card::after,
.status-card::after,
.rules-card::after,
.scoreboard-hero::after,
.leaderboard-player-card::after,
.result-mood-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 12px;
  height: 1px;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.75),
      transparent
    );
  opacity: 0.7;
}

/* Keep content above the shine */
.hero > *,
.card > *,
.status-card > *,
.rules-card > *,
.scoreboard-hero > *,
.leaderboard-player-card > *,
.result-mood-card > * {
  position: relative;
  z-index: 1;
}

/* More glassy buttons */
.btn,
.option,
button {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.46) !important;
}

.btn::before,
.option::before,
button::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.4),
      rgba(255, 255, 255, 0.05) 38%,
      transparent 70%
    );
  opacity: 0.45;
}

/* Inputs also glassy */
.input,
.share-box,
.quiz-history-select,
.leaderboard-search {
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.07)
    ) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 14px 36px rgba(0, 0, 0, 0.18) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.45);
  backdrop-filter: blur(24px) saturate(1.45);
}

/* Extra soft floating glow blobs */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 62, 191, 0.34), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(53, 223, 255, 0.28), transparent 30%),
    radial-gradient(circle at 50% 82%, rgba(255, 216, 77, 0.22), transparent 32%),
    radial-gradient(circle at 12% 88%, rgba(109, 255, 87, 0.18), transparent 26%);
  filter: blur(22px);
}

/* Background overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(
      120deg,
      transparent 0%,
      rgba(255, 255, 255, 0.06) 28%,
      transparent 48%,
      rgba(255, 255, 255, 0.045) 72%,
      transparent 100%
    );
  opacity: 0.7;
}

/* Card hover surfaces */
.card:hover,
.status-card:hover,
.leaderboard-player-card:hover,
.score-stat-card:hover {

  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

/* Mobile: reduce blur/shadow a bit for smoother performance */
@media (max-width: 640px) {
  .topbar,
  .hero,
  .card,
  .status-card,
  .rules-card,
  .past-row,
  .scoreboard-hero,
  .score-stat-card,
  .leaderboard-player-card,
  .answer-card,
  .empty,
  .result-mood-card,
  .leaderboard-metric {
    -webkit-backdrop-filter: blur(20px) saturate(1.35);
    backdrop-filter: blur(20px) saturate(1.35);
    box-shadow:
      0 18px 54px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.36) !important;
  }
}

/* ================================
   Fix Scoreboard Hero Glass Weirdness
================================ */

.scoreboard-hero {
  overflow: hidden;
  isolation: isolate;
  padding: clamp(34px, 6vw, 72px) clamp(18px, 5vw, 48px);
}

.scoreboard-hero::before {
  opacity: 0.18 !important;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0.04) 34%,
      transparent 62%
    ) !important;
}

.scoreboard-hero::after {
  opacity: 0.35 !important;
}

.scoreboard-hero > * {
  position: relative;
  z-index: 2;
}

.scoreboard-hero h1 {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2.4rem, 7vw, 5.8rem) !important;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.scoreboard-hero p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.scoreboard-date-pill {
  position: relative;
  z-index: 2;
}

/* ================================
   Fix Scoreboard Hero Sizing
================================ */

.scoreboard-hero {
  overflow: visible !important;
  padding: clamp(42px, 5vw, 72px) clamp(18px, 4vw, 44px) !important;
  text-align: center;
}

.scoreboard-hero .eyebrow {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 24px);
  margin: 0 auto 28px !important;
  white-space: normal !important;
  text-align: center;
  line-height: 1.25;
}

.scoreboard-hero h1 {
  max-width: 980px !important;
  margin: 0 auto 22px !important;
  font-size: clamp(2.1rem, 6vw, 5.1rem) !important;
  line-height: 0.95 !important;
  letter-spacing: -0.045em !important;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.scoreboard-hero p {
  margin-top: 0 !important;
  margin-bottom: 22px !important;
}

.scoreboard-date-pill {
  margin: 0 auto 22px !important;
  max-width: fit-content;
}

.scoreboard-icons {
  display: flex !important;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.2;
  margin-top: 10px !important;
  overflow: visible !important;
}



/* ==================================================
   Gaybourhood • Lion mascot, rainbow & trans Pride
   Applied consistently to hub, quiz and leaderboard.
================================================== */
:root {
  --pride-red: #f83d63;
  --pride-orange: #ff9645;
  --pride-yellow: #ffd857;
  --pride-green: #51d88a;
  --pride-blue: #35b6ff;
  --pride-purple: #aa70ff;
  --trans-blue: #5bcffb;
  --trans-pink: #f5a9b8;
  --trans-white: #ffffff;
}
body {
  background:
    radial-gradient(ellipse at 4% 10%, rgba(247, 77, 165, .26), transparent 33%),
    radial-gradient(ellipse at 94% 4%, rgba(91, 207, 251, .27), transparent 34%),
    radial-gradient(ellipse at 86% 78%, rgba(245, 169, 184, .14), transparent 38%),
    linear-gradient(140deg, #100a2c 0%, #1a1052 52%, #301345 100%);
}
body::after {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 224, 112, .06), transparent 28%),
    radial-gradient(circle at 80% 72%, rgba(91,207,251,.13), transparent 30%);
}
body::before { pointer-events: none; }
.page::before {
  content: "";
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, #e84255 0% 16%, #ff9b38 16% 32%, #ffdd55 32% 48%, #4acb7c 48% 64%, #36a8f5 64% 80%, #8959dd 80% 100%);
  box-shadow: 0 3px 18px rgba(0,0,0,.18);
  pointer-events: none;
}
.topbar { border: 1px solid rgba(255,255,255,.20); }
.brand-chip { gap: 12px; font-size: 1.08rem; }
.brand-mark {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  flex: none;
  border: 2px solid #fff;
  box-shadow: 0 3px 12px rgba(0,0,0,.32);
}
.hero-branded {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, .85fr);
  align-items: center;
  gap: clamp(18px, 4vw, 44px);
  min-height: 380px;
  border: 1px solid rgba(255,255,255,.25);
  background:
    radial-gradient(circle at 15% 20%, rgba(247,62,179,.32), transparent 45%),
    radial-gradient(circle at 100% 75%, rgba(91,207,251,.28), transparent 48%),
    linear-gradient(125deg,rgba(255,255,255,.14),rgba(255,255,255,.06));
}
.hero-branded::after {
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:6px;
  border-radius:0 0 var(--radius-xl) var(--radius-xl);
  background:linear-gradient(90deg,#5bcffb 0 20%,#f5a9b8 20% 40%,#fff 40% 60%,#f5a9b8 60% 80%,#5bcffb 80%);
  opacity:1;
}
.hero-branded .hero-content,
.hero-branded .hero-art {position: relative;z-index:2; min-width:0;}
.hero-branded h1 {
  max-width: 680px;
  line-height: 1.01;
  letter-spacing: -.055em;
  font-size: clamp(2.75rem, 5.7vw, 5.25rem);
  overflow-wrap: anywhere;
}
.hero-branded .hero-art {
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 8px;
}
.hero-branded .hero-art img {
  display:block;
  width: min(100%, 390px);
  height:auto;
  aspect-ratio:1;
  object-fit:contain;
  border-radius:50%;
  filter:drop-shadow(0 20px 32px rgba(0,0,0,.35));
}
.pride-message {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  width:fit-content;
  margin-top:20px;
  border:1px solid rgba(255,255,255,.24);
  background:rgba(16,8,43,.56);
  padding: 8px 15px;
  border-radius:999px;
  font-weight:800;
  color:#fff;
}
.pride-flag,.trans-flag {
  display:inline-block;
  width:29px;
  height:19px;
  border-radius:2px;
  flex:none;
  border:1px solid rgba(255,255,255,.4);
  box-shadow:0 2px 7px rgba(0,0,0,.24);
}
.pride-flag { background: linear-gradient(to bottom,#e84255 0% 16.66%,#ffa33d 16.66% 33.33%,#ffe65f 33.33% 50%,#58ce65 50% 66.66%,#4384fa 66.66% 83.33%,#8754b8 83.33%); }
.trans-flag { background: linear-gradient(to bottom,#5bcffb 0% 20%,#f5a9b8 20% 40%,#fff 40% 60%,#f5a9b8 60% 80%,#5bcffb 80%); }
.hero .eyebrow,.scoreboard-hero .eyebrow {
  background:rgba(18,8,48,.68);
  border-color:rgba(255,255,255,.35);
}
.section-title { text-shadow:0 3px 14px rgba(0,0,0,.3); }
.card,.status-card,.rules-card,.scoreboard-hero,.leaderboard-player-card,.answer-card {
  border-color:rgba(255,255,255,.22);
}
.badge { background:linear-gradient(115deg,#cf2897,#7c49e8); }
.btn.hot {background:linear-gradient(115deg,#fa407d,#fb795b);}
.btn.cyan {background:linear-gradient(115deg,#22a5dc,#7057df);}
.scoreboard-brand {
  display:flex;
  align-items:center;
  flex-direction:column;
  gap:10px;
  font-weight:900;
  letter-spacing:.04em;
  margin-bottom:20px;
}
.scoreboard-brand img {
  width:110px;
  height:110px;
  border-radius:50%;
  border:3px solid white;
  box-shadow:0 8px 25px rgba(0,0,0,.28);
}
.quiz-brand-row {display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:6px;}
.quiz-mini-logo {width:66px;height:66px;border:2px solid #fff;border-radius:50%;box-shadow:0 8px 22px rgba(0,0,0,.22);}
.quiz-brand-row .eyebrow {margin:0;}
.footer-note {padding-bottom:24px;}
:focus-visible {outline:3px solid var(--trans-blue);outline-offset:3px;}
@media (max-width: 800px) {
  .hero-branded {grid-template-columns:1fr;gap:18px;}
  .hero-branded .hero-art {order:-1;padding:0;}
  .hero-branded .hero-art img {width:min(68vw,260px);}
  .hero-branded .hero-content {text-align:center;}
  .hero-branded .hero-content .eyebrow,.hero-branded .hero-content .pride-message {margin-left:auto;margin-right:auto;}
  .hero-branded .hero-content .marquee {justify-content:center;}
}
@media (max-width: 520px) {
  .topbar {border-radius:24px;padding:10px 12px;}
  .brand-chip {font-size:.94rem;}
  .brand-mark {width:38px;height:38px;}
  .hero-branded {padding:24px 18px 28px;}
  .hero-branded h1 {font-size:clamp(2.2rem,10vw,3.4rem);}
  .pride-message {font-size:.86rem;}
  .scoreboard-brand img {width:88px;height:88px;}
}
@media (prefers-reduced-motion:reduce) {
  .hero::before,.bulb {animation:none!important;}
}

