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

/* ===== NEON ARCADE COLOR PALETTE =====
   Magenta accent:   #ff2bd1
   Cyan accent:      #00e0ff
   Deep purple:      #6b3aff
   Background dark:  #0f0820
   Card background:  rgba(10, 5, 25, 0.75)
   Text light:       #d0c8f0
   Text muted:       #8a7fb0
   Error/warning:    #ff4488
   Success accent:   #00ffaa (or keep cyan)
====================================== */

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

body {
  font-family: 'Orbitron', sans-serif;
  background:
    linear-gradient(rgba(15, 5, 35, 0.65), rgba(20, 8, 45, 0.75)),
    url('/assets/brick-bg.jpg') center/cover fixed;
  color: #fff;
  min-height: 100vh;
}

/* TOP BAR */
.top-bar {
  background: rgba(10, 5, 25, 0.92);
  padding: 18px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 3px solid #ff2bd1;
  box-shadow: 0 0 24px rgba(255, 43, 209, 0.5);
  backdrop-filter: blur(6px);
  min-height: 80px;
  /* Both .top-bar and .teacher-nav create their own stacking contexts via
     backdrop-filter. Without an explicit z-index here, .teacher-nav paints
     on top (later in DOM) and the account dropdown gets hidden behind it.
     This lifts .top-bar's whole stacking context above the toolbar. */
  position: relative;
  z-index: 100;
}

.brand-logo {
  grid-column: 2;
  justify-self: center;
}

.player-info {
  grid-column: 3;
  justify-self: end;
}

/* GO PRO upsell button. Lives in column 1 of the top-bar grid so the
   layout stays symmetric (PRO on left, logo center, gamer-tag on right).
   Glamorous styling — magenta→orange→gold gradient matching the PRO
   wordmark on /pro.html, layered dual-color glow that pulses, and a
   diagonal sheen sweep that runs across the button periodically. */
.pro-btn-wrapper {
  grid-column: 1;
  justify-self: start;
}
.pro-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ff2bd1 0%, #ff6a00 55%, #FFD700 100%);
  color: #1a0a00;
  border: 2px solid #FFD700;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 2.5px;
  font-weight: 900;
  padding: 10px 18px;
  cursor: pointer;
  box-shadow:
    0 0 14px rgba(255, 215, 0, 0.7),
    0 0 22px rgba(255, 43, 209, 0.35);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.35);
  animation: pro-btn-pulse 2.6s ease-in-out infinite;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

/* Diagonal sheen that sweeps across the button every few seconds. */
.pro-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.5) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: pro-btn-sheen 3.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pro-btn-pulse {
  0%, 100% {
    box-shadow:
      0 0 14px rgba(255, 215, 0, 0.7),
      0 0 22px rgba(255, 43, 209, 0.35);
  }
  50% {
    box-shadow:
      0 0 22px rgba(255, 215, 0, 1.0),
      0 0 36px rgba(255, 43, 209, 0.6);
  }
}

@keyframes pro-btn-sheen {
  0%, 60% { left: -75%; }
  100%    { left: 125%; }
}

.pro-btn:hover {
  background: linear-gradient(135deg, #ff60db 0%, #ff8c40 55%, #FFEC50 100%);
  transform: translateY(-1px) scale(1.04);
  box-shadow:
    0 0 22px rgba(255, 215, 0, 1.0),
    0 0 36px rgba(255, 43, 209, 0.7);
}

.brand-logo {
  height: 56px;
  width: auto;
  cursor: pointer;
  filter: drop-shadow(0 0 10px rgba(255, 43, 209, 0.4));
  transition: filter 0.2s ease;
}

.brand-logo:hover {
  filter: drop-shadow(0 0 18px rgba(255, 43, 209, 0.8));
}

.player-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

#gamer-tag-display {
  color: #00e0ff;
  font-size: 10px;
  text-shadow: 0 0 6px rgba(0, 224, 255, 0.7);
}

/* PAGE LAYOUT */
.page-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 24px;
}

.page-title {
  font-size: 18px;
  margin-bottom: 8px;
  color: #ff2bd1;
  text-shadow:
    0 0 8px #ff2bd1,
    0 0 18px #ff2bd1,
    0 0 32px rgba(255, 43, 209, 0.6);
  letter-spacing: 2px;
}

.page-subtitle {
  color: #b8a8e8;
  font-size: 10px;
  margin-bottom: 40px;
  line-height: 1.8;
  text-shadow: 0 0 4px rgba(184, 168, 232, 0.5);
}

/* GAME CARDS GRID */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.game-card {
  background: rgba(10, 5, 25, 0.75);
  border: 2px solid #00e0ff;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow:
    0 0 12px rgba(0, 224, 255, 0.4),
    inset 0 0 12px rgba(0, 224, 255, 0.08);
  backdrop-filter: blur(2px);
}

.game-card:hover:not(.coming-soon) {
  border-color: #ff2bd1;
  box-shadow:
    0 0 24px rgba(255, 43, 209, 0.7),
    inset 0 0 16px rgba(255, 43, 209, 0.12);
  transform: translateY(-4px);
}

.game-card.coming-soon {
  opacity: 0.55;
  cursor: default;
  border-color: #6b3aff;
  box-shadow: 0 0 8px rgba(107, 58, 255, 0.3);
}

.game-card.coming-soon:hover {
  transform: none;
}

.game-icon {
  font-size: 36px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 8px rgba(255, 43, 209, 0.6));
}

.game-card h3 {
  color: #00e0ff;
  font-size: 11px;
  margin-bottom: 12px;
  line-height: 1.8;
  text-shadow: 0 0 8px rgba(0, 224, 255, 0.7);
  transition: all 0.25s ease;
}

.game-card:hover:not(.coming-soon) h3 {
  color: #ff2bd1;
  text-shadow: 0 0 10px rgba(255, 43, 209, 0.9);
}

.game-card p {
  color: #d0c8f0;
  font-size: 8px;
  margin-bottom: 20px;
  line-height: 2;
  font-family: 'Georgia', serif;
}

.game-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tag {
  background: rgba(107, 58, 255, 0.3);
  color: #00e0ff;
  padding: 4px 10px;
  font-size: 7px;
  border: 1px solid #00e0ff;
  text-shadow: 0 0 4px rgba(0, 224, 255, 0.6);
}

/* BUTTONS */
.btn-primary {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #ff2bd1, #6b3aff);
  color: #fff;
  border: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
  box-shadow:
    0 0 12px rgba(255, 43, 209, 0.5),
    inset 0 0 8px rgba(255, 255, 255, 0.15);
}

.btn-primary:hover:not(:disabled) {
  box-shadow:
    0 0 20px rgba(255, 43, 209, 0.9),
    inset 0 0 12px rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: rgba(50, 30, 80, 0.6);
  color: #6655aa;
  cursor: default;
  box-shadow: none;
  text-shadow: none;
}

.btn-small {
  padding: 8px 14px;
  background: transparent;
  color: #00e0ff;
  border: 1px solid #00e0ff;
  font-family: 'Orbitron', sans-serif;
  font-size: 8px;
  cursor: pointer;
  text-shadow: 0 0 4px rgba(0, 224, 255, 0.6);
  transition: all 0.2s ease;
}

.btn-small:hover {
  background: rgba(0, 224, 255, 0.2);
  box-shadow: 0 0 12px rgba(0, 224, 255, 0.6);
}

/* LEADERBOARD LINK */
.leaderboard-link {
  text-align: center;
  color: #00e0ff;
  cursor: pointer;
  font-size: 11px;
  padding: 16px;
  border: 2px solid #00e0ff;
  display: inline-block;
  width: 100%;
  background: rgba(10, 5, 25, 0.75);
  text-shadow: 0 0 8px rgba(0, 224, 255, 0.7);
  box-shadow:
    0 0 12px rgba(0, 224, 255, 0.3),
    inset 0 0 8px rgba(0, 224, 255, 0.05);
  transition: all 0.2s ease;
}

.leaderboard-link:hover {
  border-color: #ff2bd1;
  color: #ff2bd1;
  text-shadow: 0 0 10px rgba(255, 43, 209, 0.9);
  box-shadow:
    0 0 20px rgba(255, 43, 209, 0.6),
    inset 0 0 10px rgba(255, 43, 209, 0.1);
}

/* LOGIN PAGE */
.container {
  background: rgba(10, 5, 25, 0.85);
  border: 2px solid #ff2bd1;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  margin: 80px auto;
  box-shadow:
    0 0 28px rgba(255, 43, 209, 0.5),
    inset 0 0 16px rgba(255, 43, 209, 0.05);
  backdrop-filter: blur(6px);
}

.container h1 {
  color: #ff2bd1;
  font-size: 18px;
  margin-bottom: 8px;
  line-height: 1.6;
  text-shadow:
    0 0 8px #ff2bd1,
    0 0 18px rgba(255, 43, 209, 0.6);
}

.subtitle {
  color: #b8a8e8;
  font-size: 8px;
  margin-bottom: 28px;
  font-family: 'Georgia', serif;
  text-shadow: 0 0 4px rgba(184, 168, 232, 0.5);
}

.tabs {
  display: flex;
  margin-bottom: 24px;
  border: 1px solid #00e0ff;
}

.tab {
  flex: 1;
  padding: 10px;
  background: transparent;
  color: #00e0ff;
  border: none;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-size: 8px;
  text-shadow: 0 0 4px rgba(0, 224, 255, 0.6);
}

.tab.active {
  background: #00e0ff;
  color: #0f0820;
  text-shadow: none;
}

input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid #00e0ff;
  color: #00e0ff;
  font-family: 'Georgia', serif;
  font-size: 13px;
}

input::placeholder {
  color: #6b8aa8;
}

input:focus {
  outline: none;
  border-color: #ff2bd1;
  box-shadow: 0 0 8px rgba(255, 43, 209, 0.4);
}

.error {
  color: #ff4488;
  margin-top: 16px;
  font-size: 8px;
  line-height: 1.8;
  text-shadow: 0 0 4px rgba(255, 68, 136, 0.6);
}

/* LOBBY */
.section-label {
  font-size: 9px;
  color: #00e0ff;
  margin-bottom: 16px;
  text-shadow: 0 0 4px rgba(0, 224, 255, 0.6);
}

.topic-selector {
  margin-bottom: 40px;
}

.topic-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topic-btn {
  padding: 10px 16px;
  background: rgba(10, 5, 25, 0.75);
  color: #00e0ff;
  border: 1px solid #00e0ff;
  font-family: 'Orbitron', sans-serif;
  font-size: 7px;
  cursor: pointer;
  text-shadow: 0 0 4px rgba(0, 224, 255, 0.6);
}

.topic-btn.active {
  background: linear-gradient(135deg, #ff2bd1, #6b3aff);
  color: #fff;
  border-color: #ff2bd1;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

.topic-btn:hover {
  background: rgba(0, 224, 255, 0.15);
  box-shadow: 0 0 8px rgba(0, 224, 255, 0.4);
}

.lobby-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.lobby-card {
  background: rgba(10, 5, 25, 0.75);
  border: 2px solid #00e0ff;
  padding: 28px 24px;
  box-shadow:
    0 0 12px rgba(0, 224, 255, 0.3),
    inset 0 0 8px rgba(0, 224, 255, 0.05);
  backdrop-filter: blur(2px);
}

.lobby-card h3 {
  color: #00e0ff;
  font-size: 11px;
  margin-bottom: 12px;
  text-shadow: 0 0 6px rgba(0, 224, 255, 0.7);
}

.lobby-card p {
  color: #d0c8f0;
  font-size: 8px;
  font-family: 'Georgia', serif;
  margin-bottom: 20px;
  line-height: 2;
}

.queue-status {
  color: #00e0ff;
  font-size: 8px;
  font-family: 'Georgia', serif;
  margin-bottom: 20px;
  padding: 12px;
  border: 1px dashed #00e0ff;
  text-align: center;
}

.notification {
  background: rgba(10, 5, 25, 0.92);
  border: 2px solid #ff2bd1;
  padding: 24px;
  margin-top: 24px;
  text-align: center;
  box-shadow: 0 0 16px rgba(255, 43, 209, 0.5);
}

.notification p {
  color: #ff2bd1;
  font-size: 9px;
  line-height: 2;
  text-shadow: 0 0 4px rgba(255, 43, 209, 0.6);
}

.btn-google {
  width: 100%;
  padding: 12px;
  background: #ffffff;
  color: #000000;
  border: 2px solid #00e0ff;
  font-family: 'Orbitron', sans-serif;
  font-size: 8px;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 0 8px rgba(0, 224, 255, 0.3);
}

.btn-google:hover {
  background: #00e0ff;
  color: #0f0820;
  box-shadow: 0 0 16px rgba(0, 224, 255, 0.6);
}

/* TEACHER DASHBOARD */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.dashboard-panel {
  background: rgba(10, 5, 25, 0.75);
  border: 2px solid #00e0ff;
  padding: 28px 24px;
  box-shadow:
    0 0 12px rgba(0, 224, 255, 0.3),
    inset 0 0 8px rgba(0, 224, 255, 0.05);
  backdrop-filter: blur(2px);
}

.panel-title {
  color: #ff2bd1;
  font-size: 11px;
  margin-bottom: 20px;
  text-shadow: 0 0 6px rgba(255, 43, 209, 0.6);
}

.empty-msg {
  color: #8a7fb0;
  font-size: 8px;
  font-family: 'Georgia', serif;
  line-height: 2;
}

.student-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(107, 58, 255, 0.3);
  cursor: pointer;
}

.student-row:hover {
  background: rgba(255, 43, 209, 0.08);
  padding-left: 8px;
}

.student-name {
  color: #00e0ff;
  font-size: 10px;
  margin-bottom: 4px;
  text-shadow: 0 0 4px rgba(0, 224, 255, 0.5);
}

.student-tag {
  color: #8a7fb0;
  font-size: 8px;
  font-family: 'Georgia', serif;
}

.arrow {
  color: #ff2bd1;
  font-size: 10px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.stat-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #00e0ff;
  padding: 16px 12px;
  text-align: center;
  box-shadow: 0 0 6px rgba(0, 224, 255, 0.2);
}

.stat-label {
  color: #8a7fb0;
  font-size: 7px;
  font-family: 'Georgia', serif;
  margin-bottom: 8px;
  line-height: 1.8;
}

.stat-num {
  color: #ff2bd1;
  font-size: 20px;
  text-shadow: 0 0 8px rgba(255, 43, 209, 0.7);
}

.game-row {
  border: 1px solid rgba(107, 58, 255, 0.4);
  padding: 14px;
  margin-bottom: 10px;
}

.game-row-top {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.game-type-tag {
  background: rgba(107, 58, 255, 0.3);
  color: #00e0ff;
  padding: 3px 8px;
  font-size: 7px;
  border: 1px solid #00e0ff;
}

.topic-tag {
  background: rgba(0, 224, 255, 0.15);
  color: #00e0ff;
  padding: 3px 8px;
  font-size: 7px;
  border: 1px solid #00e0ff;
}

.result-tag {
  padding: 3px 8px;
  font-size: 7px;
}

.result-tag.win {
  background: rgba(255, 43, 209, 0.2);
  color: #ff2bd1;
  border: 1px solid #ff2bd1;
}

.result-tag.loss {
  background: rgba(255, 68, 136, 0.2);
  color: #ff4488;
  border: 1px solid #ff4488;
}

.game-row-stats {
  color: #d0c8f0;
  font-size: 8px;
  font-family: 'Georgia', serif;
  margin-bottom: 6px;
}

.game-row-time {
  display: flex;
  gap: 16px;
  color: #8a7fb0;
  font-size: 7px;
  font-family: 'Georgia', serif;
  flex-wrap: wrap;
}

/* ACCOUNT DROPDOWN */
.account-dropdown-wrapper {
  position: relative;
}

.gamer-tag-btn {
  background: transparent;
  color: #00e0ff;
  border: 1px solid #00e0ff;
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  padding: 8px 12px;
  cursor: pointer;
  text-shadow: 0 0 4px rgba(0, 224, 255, 0.6);
}

.gamer-tag-btn:hover {
  background: rgba(0, 224, 255, 0.2);
  box-shadow: 0 0 12px rgba(0, 224, 255, 0.5);
}

.account-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  background: rgba(10, 5, 25, 0.95);
  border: 2px solid #ff2bd1;
  min-width: 200px;
  z-index: 1000;
  margin-top: 4px;
  box-shadow: 0 0 16px rgba(255, 43, 209, 0.5);
  backdrop-filter: blur(6px);
}

.dropdown-header {
  padding: 14px 16px;
}

.dropdown-tag {
  color: #ff2bd1;
  font-size: 10px;
  margin-bottom: 4px;
  text-shadow: 0 0 4px rgba(255, 43, 209, 0.6);
}

.dropdown-role {
  color: #8a7fb0;
  font-size: 8px;
  font-family: 'Georgia', serif;
  text-transform: uppercase;
}

.dropdown-divider {
  border-top: 1px solid rgba(107, 58, 255, 0.4);
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  color: #00e0ff;
  border: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 8px;
  text-align: left;
  cursor: pointer;
}

.dropdown-item:hover {
  background: rgba(0, 224, 255, 0.1);
}

.dropdown-item.danger {
  color: #ff4488;
}

.dropdown-item.danger:hover {
  background: rgba(255, 68, 136, 0.1);
}

/* NAV TABS */
.teacher-nav {
  background: rgba(10, 5, 25, 0.92);
  border-bottom: 2px solid #00e0ff;
  display: flex;
  gap: 0;
  box-shadow: 0 0 12px rgba(0, 224, 255, 0.3);
  backdrop-filter: blur(6px);
}

.nav-tab {
  padding: 12px 24px;
  background: transparent;
  color: #00e0ff;
  border: none;
  border-right: 1px solid rgba(107, 58, 255, 0.3);
  font-family: 'Orbitron', sans-serif;
  font-size: 8px;
  cursor: pointer;
  text-shadow: 0 0 4px rgba(0, 224, 255, 0.5);
}

.nav-tab:hover {
  background: rgba(0, 224, 255, 0.1);
}

.nav-tab.active {
  background: linear-gradient(135deg, #ff2bd1, #6b3aff);
  color: #fff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

/* STATUS DOTS */
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dot-online { background: #00ffaa; box-shadow: 0 0 6px #00ffaa; }
.dot-lobby { background: #ffcc00; box-shadow: 0 0 6px #ffcc00; }
.dot-game { background: #ff8844; box-shadow: 0 0 6px #ff8844; }
.dot-offline { background: #444444; }

.danger-btn {
  color: #ff4488;
  border-color: #ff4488;
  text-shadow: 0 0 4px rgba(255, 68, 136, 0.6);
}

.danger-btn:hover {
  background: rgba(255, 68, 136, 0.2);
  color: #ff4488;
  box-shadow: 0 0 12px rgba(255, 68, 136, 0.5);
}

/* ACCOUNT PAGE */
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.account-panel {
  background: rgba(10, 5, 25, 0.75);
  border: 2px solid #00e0ff;
  padding: 28px 24px;
  box-shadow:
    0 0 12px rgba(0, 224, 255, 0.3),
    inset 0 0 8px rgba(0, 224, 255, 0.05);
  backdrop-filter: blur(2px);
}

.account-field {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  color: #ff2bd1;
  font-size: 8px;
  margin-bottom: 8px;
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 0 4px rgba(255, 43, 209, 0.5);
}

.field-value {
  color: #d0c8f0;
  font-size: 10px;
  font-family: 'Georgia', serif;
  text-transform: uppercase;
}

.account-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid #00e0ff;
  color: #00e0ff;
  font-family: 'Georgia', serif;
  font-size: 13px;
}

.account-input::placeholder {
  color: #6b8aa8;
}

.account-input:focus {
  outline: none;
  border-color: #ff2bd1;
  box-shadow: 0 0 8px rgba(255, 43, 209, 0.4);
}

.role-buttons {
  display: flex;
  gap: 12px;
}

.role-btn {
  flex: 1;
  padding: 10px;
  background: transparent;
  color: #00e0ff;
  border: 1px solid #00e0ff;
  font-family: 'Orbitron', sans-serif;
  font-size: 8px;
  cursor: pointer;
  text-shadow: 0 0 4px rgba(0, 224, 255, 0.6);
}

.role-btn.active {
  background: linear-gradient(135deg, #ff2bd1, #6b3aff);
  color: #fff;
  border-color: #ff2bd1;
}

.role-btn:hover {
  background: rgba(0, 224, 255, 0.15);
}

.success-msg {
  font-size: 8px;
  margin-top: 10px;
  font-family: 'Georgia', serif;
  min-height: 16px;
}

/* TABLES */
.table-wrapper {
  overflow-x: auto;
  width: 100%;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Georgia', serif;
  font-size: 11px;
}

.data-table th {
  background: rgba(10, 5, 25, 0.85);
  color: #ff2bd1;
  font-family: 'Orbitron', sans-serif;
  font-size: 7px;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid #ff2bd1;
  white-space: nowrap;
  text-shadow: 0 0 4px rgba(255, 43, 209, 0.6);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(107, 58, 255, 0.3);
  color: #d0c8f0;
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(0, 224, 255, 0.08);
}

.period-header {
  color: #ff2bd1;
  font-size: 11px;
  margin-bottom: 12px;
  padding: 8px 0;
  border-bottom: 2px solid #ff2bd1;
  text-shadow: 0 0 6px rgba(255, 43, 209, 0.6);
}

.detail-header {
  background: rgba(10, 5, 25, 0.85);
  border: 2px solid #00e0ff;
  padding: 24px;
  margin-bottom: 8px;
  box-shadow:
    0 0 12px rgba(0, 224, 255, 0.3),
    inset 0 0 8px rgba(0, 224, 255, 0.05);
}

.detail-name {
  color: #ff2bd1;
  font-size: 16px;
  margin-bottom: 12px;
  text-shadow:
    0 0 8px #ff2bd1,
    0 0 14px rgba(255, 43, 209, 0.5);
}

.detail-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-chip {
  background: rgba(0, 0, 0, 0.5);
  color: #d0c8f0;
  border: 1px solid rgba(107, 58, 255, 0.5);
  padding: 4px 10px;
  font-family: 'Georgia', serif;
  font-size: 11px;
}

/* INNER TABS */
.inner-tabs {
  display: flex;
  margin-bottom: 24px;
  border-bottom: 2px solid #00e0ff;
}

.inner-tab {
  padding: 10px 20px;
  background: transparent;
  color: #00e0ff;
  border: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 8px;
  cursor: pointer;
  text-shadow: 0 0 4px rgba(0, 224, 255, 0.5);
}

.inner-tab.active {
  background: linear-gradient(135deg, #ff2bd1, #6b3aff);
  color: #fff;
}

.inner-tab:hover:not(.active) {
  background: rgba(0, 224, 255, 0.1);
}

/* ============================================ */
/* MOBILE — phones (≤480px) and tablets (≤768px) */
/* — Reduced glow intensity for mobile readability */
/* ============================================ */

@media (max-width: 768px) {

  /* Page layout */
  .page-container {
    padding: 20px 16px;
  }

  .page-title {
    font-size: 14px;
    line-height: 1.5;
    text-shadow: 0 0 3px #ff2bd1;
  }

  .page-subtitle {
    font-size: 9px;
    margin-bottom: 24px;
    text-shadow: none;
  }

  /* Top bar */
  .top-bar {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 6px rgba(255, 43, 209, 0.3);
  min-height: 0;
}

.brand-logo {
  height: auto;
  max-width: 90%;
  max-height: 80px;
  grid-column: auto;
  justify-self: auto;
  filter: drop-shadow(0 0 6px rgba(255, 43, 209, 0.5));
}

.brand-logo:hover {
  filter: drop-shadow(0 0 10px rgba(255, 43, 209, 0.8));
}

.player-info {
  grid-column: auto;
  justify-self: auto;
}

  .brand-logo {
  height: 42px;
  filter: drop-shadow(0 0 5px rgba(255, 43, 209, 0.4));
}

.brand-logo:hover {
  filter: drop-shadow(0 0 8px rgba(255, 43, 209, 0.7));
}

  /* Nav tabs scroll horizontally on tablets */
  .teacher-nav {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 0 6px rgba(0, 224, 255, 0.2);
  }

  .nav-tab {
    padding: 10px 16px;
    font-size: 7px;
    flex-shrink: 0;
    text-shadow: none;
  }

  /* Game cards — reduce glow on mobile */
  .game-card {
    padding: 20px 16px;
    box-shadow: 0 0 4px rgba(0, 224, 255, 0.4);
  }

  .game-card:hover:not(.coming-soon) {
    box-shadow: 0 0 6px rgba(255, 43, 209, 0.5);
  }

  .game-card h3 {
    text-shadow: 0 0 2px rgba(0, 224, 255, 0.7);
  }

  .game-card:hover:not(.coming-soon) h3 {
    text-shadow: 0 0 3px rgba(255, 43, 209, 0.8);
  }

  .game-icon {
    font-size: 28px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 3px rgba(255, 43, 209, 0.5));
  }

  /* Buttons reduce glow */
  .btn-primary {
    box-shadow: 0 0 4px rgba(255, 43, 209, 0.4);
  }

  .btn-primary:hover:not(:disabled) {
    box-shadow: 0 0 6px rgba(255, 43, 209, 0.6);
  }

  /* Leaderboard link reduce glow */
  .leaderboard-link {
    text-shadow: 0 0 2px rgba(0, 224, 255, 0.6);
    box-shadow: 0 0 4px rgba(0, 224, 255, 0.25);
  }

  .leaderboard-link:hover {
    text-shadow: 0 0 3px rgba(255, 43, 209, 0.8);
    box-shadow: 0 0 6px rgba(255, 43, 209, 0.4);
  }

  /* Account/lobby/dashboard panels */
  .account-panel,
  .lobby-card,
  .dashboard-panel {
    padding: 20px 16px;
    box-shadow: 0 0 4px rgba(0, 224, 255, 0.25);
  }

  /* Detail header tighter */
  .detail-header {
    padding: 16px;
    box-shadow: 0 0 4px rgba(0, 224, 255, 0.25);
  }

  .detail-name {
    font-size: 13px;
    text-shadow: 0 0 3px #ff2bd1;
  }

  /* Tables: keep horizontal scroll */
  .data-table {
    font-size: 10px;
  }

  .data-table th {
    font-size: 7px;
    padding: 10px 10px;
    text-shadow: none;
  }

  .data-table td {
    padding: 10px 10px;
  }

  /* Stat numbers reduce glow */
  .stat-num {
    text-shadow: 0 0 3px rgba(255, 43, 209, 0.6);
  }

  /* Tag readability — kill text-shadow on mobile */
  .tag {
    text-shadow: none;
  }
}

/* PHONE-ONLY (480px and below) */
@media (max-width: 480px) {

  body {
    font-size: 13px;
  }

  /* Page layout */
  .page-container {
    padding: 16px 12px;
  }

  .page-title {
    font-size: 12px;
  }

  .page-subtitle {
    font-size: 8px;
    line-height: 1.6;
  }

  /* Top bar */
 .top-bar {
  padding: 12px 14px;
  min-height: 0;
}

.brand-logo {
  max-height: 60px;
  height: auto;
  max-width: 90%;
}

  .player-info {
    gap: 10px;
  }

  #gamer-tag-display {
    font-size: 8px;
    text-shadow: 0 0 2px rgba(0, 224, 255, 0.5);
  }

  /* Nav tabs */
  .nav-tab {
    padding: 10px 12px;
    font-size: 6px;
  }

  /* Login container */
  .container {
    padding: 28px 20px;
    margin: 32px auto;
    max-width: 95%;
    box-shadow:
      0 0 12px rgba(255, 43, 209, 0.4),
      inset 0 0 8px rgba(255, 43, 209, 0.05);
  }

  .container h1 {
    font-size: 14px;
    text-shadow: 0 0 4px #ff2bd1;
  }

  /* Game cards */
  .games-grid {
    gap: 14px;
  }

  .game-card {
    padding: 18px 14px;
  }

  .game-card h3 {
    font-size: 10px;
  }

  .game-card p {
    font-size: 7px;
  }

  .game-icon {
    font-size: 24px;
    margin-bottom: 10px;
  }

  /* Buttons slightly smaller */
  .btn-primary {
    padding: 12px;
    font-size: 8px;
  }

  .btn-small {
    padding: 8px 12px;
    font-size: 7px;
  }

  /* Account/lobby/dashboard */
  .account-grid,
  .lobby-options,
  .dashboard-grid,
  .games-grid {
    gap: 14px;
  }

  .account-panel,
  .lobby-card,
  .dashboard-panel {
    padding: 18px 14px;
  }

  .panel-title {
    font-size: 10px;
    margin-bottom: 14px;
  }

  /* Forms */
  input,
  .account-input {
    font-size: 14px; /* 14px+ prevents iOS auto-zoom */
    padding: 11px 12px;
  }

  /* Dropdown adjustments */
  .account-dropdown {
    min-width: 180px;
  }

  .gamer-tag-btn {
    font-size: 8px;
    padding: 7px 10px;
  }

  /* Stats grid: 2 columns instead of auto on phones */
  .stat-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-box {
    padding: 12px 8px;
  }

  .stat-num {
    font-size: 16px;
  }

  /* Detail page */
  .detail-name {
    font-size: 12px;
  }

  .detail-chip {
    font-size: 9px;
    padding: 3px 8px;
  }

  /* Inner tabs */
  .inner-tabs {
    flex-wrap: wrap;
    gap: 4px;
  }

  .inner-tab {
    padding: 8px 12px;
    font-size: 7px;
  }

  /* Leaderboard */
  .leaderboard-tabs,
  .class-tabs {
    gap: 4px;
  }

  .lb-tab,
  .class-tab {
    padding: 10px 14px;
    font-size: 7px;
  }

  .class-subtab {
    font-size: 7px;
    padding: 6px 10px;
  }

  .lb-table th,
  .lb-table td {
    padding: 8px 6px;
    font-size: 10px;
  }

  .lb-rank {
    font-size: 9px;
    width: 44px;
  }

  .lb-tag {
    font-size: 8px;
  }

  .lb-points {
    font-size: 9px;
  }

  .class-card {
    padding: 12px;
  }

  .class-card-name {
    font-size: 9px;
  }

  .table-wrapper {
    -webkit-overflow-scrolling: touch;
  }

  /* DoND amount items */
  .amount-item {
    font-size: 9px;
    padding: 3px 6px;
  }

  /* Forms in cards */
  .role-buttons {
    flex-wrap: wrap;
  }

  .role-btn {
    min-width: 0;
    font-size: 7px;
    padding: 9px;
  }
}

/* VERY SMALL PHONES (360px and below) */
@media (max-width: 360px) {
  .brand-logo { max-height: 48px; height: auto; max-width: 90%; }
  .page-title { font-size: 11px; }
  .nav-tab { padding: 9px 10px; font-size: 5.5px; }
  .game-card h3 { font-size: 9px; }
  .btn-primary { font-size: 7px; padding: 11px; }
}

/* LOGIN PAGE — hero above container */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 16px;
}

.login-hero {
  text-align: center;
  margin-bottom: 24px;
  width: 100%;
  max-width: 600px;
}

.login-logo {
  max-width: 100%;
  height: auto;
  max-height: 460px;
  filter: drop-shadow(0 0 16px rgba(255, 43, 209, 0.6))
          drop-shadow(0 0 36px rgba(255, 43, 209, 0.4));
  margin-top: 44px;
  margin-bottom: -32px;
}

.login-tagline {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  color: #00e0ff;
  text-shadow:
    0 0 6px #00e0ff,
    0 0 14px rgba(0, 224, 255, 0.6);
  letter-spacing: 4px;
}

/* Override login container so it doesn't have its own top margin */
.login-page .container {
  margin: 0 auto;
}

.role-prompt {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  color: #00e0ff;
  margin-bottom: 14px;
  line-height: 1.8;
  text-shadow: 0 0 4px rgba(0, 224, 255, 0.5);
}

#student-class-picker select {
  background: rgba(0, 0, 0, 0.7);
  color: #00e0ff;
  border: 1px solid #00e0ff;
}

@media (max-width: 768px) {
  .login-logo {
    max-height: 320px;
    margin-top: 30px;
    margin-bottom: -22px;
    filter: drop-shadow(0 0 8px rgba(255, 43, 209, 0.5))
            drop-shadow(0 0 18px rgba(255, 43, 209, 0.3));
  }

  .login-tagline {
    font-size: 10px;
    letter-spacing: 3px;
    text-shadow: 0 0 4px #00e0ff;
  }
}

@media (max-width: 480px) {
  .login-page {
    padding: 24px 12px;
  }

  .login-logo {
    max-height: 240px;
    margin-top: 22px;
    margin-bottom: -16px;
  }

  .login-tagline {
    font-size: 9px;
    letter-spacing: 2px;
  }
}

/* ============================================
   ORBITRON TUNING — size + contrast bumps to compensate
   for Orbitron's lighter visual weight vs Orbitron.
   Added after the font-family swap to globally enhance.
   ============================================ */

/* Slight bump to body baseline so child elements scale better */
body { font-weight: 400; letter-spacing: 0.5px; }

/* Page title — bigger, more letter-spacing, stronger glow */
.page-title {
  font-size: 33px;
  font-weight: 900;
  letter-spacing: 3px;
  text-shadow:
    0 0 12px #ff2bd1,
    0 0 28px rgba(255, 43, 209, 0.7),
    0 0 60px rgba(255, 43, 209, 0.3);
}
.page-subtitle {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
}

/* Game / lobby / dashboard / account card titles */
.game-card h3,
.lobby-card h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #00f0ff;
  text-shadow:
    0 0 10px rgba(0, 240, 255, 0.85),
    0 0 24px rgba(0, 240, 255, 0.35);
}
.game-card:hover:not(.coming-soon) h3 {
  color: #ff2bd1;
  text-shadow:
    0 0 10px rgba(255, 43, 209, 0.95),
    0 0 24px rgba(255, 43, 209, 0.4);
}
.game-card p, .lobby-card p { font-size: 15px; line-height: 1.7; }
.panel-title { font-size: 20px; font-weight: 800; letter-spacing: 2px; }

/* Tags */
.tag, .topic-tag, .game-type-tag, .result-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 5px 11px;
}

/* Buttons — bumped to read at scale */
.btn-primary { font-size: 16px; font-weight: 700; letter-spacing: 2px; padding: 15px 20px; }
.btn-small { font-size: 13px; font-weight: 600; letter-spacing: 1.5px; padding: 10px 16px; }
.btn-google { font-size: 15px; font-weight: 700; letter-spacing: 1.5px; }

/* Inputs */
input, .account-input { font-size: 16px; letter-spacing: 0.5px; }

/* Top bar / navbar */
#gamer-tag-display { font-size: 16px; font-weight: 700; letter-spacing: 1.5px; }
.gamer-tag-btn { font-size: 15px; font-weight: 700; letter-spacing: 1.5px; padding: 10px 16px; }
.dropdown-tag { font-size: 16px; font-weight: 800; letter-spacing: 1.5px; }
.dropdown-role { font-size: 13px; }
.dropdown-item { font-size: 13px; font-weight: 600; letter-spacing: 1.5px; }
.nav-tab { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; padding: 14px 24px; }

/* Leaderboard link tile */
.leaderboard-link { font-size: 20px; font-weight: 800; letter-spacing: 2.5px; }

/* Dashboard / stats / tables */
.stat-num { font-size: 33px; font-weight: 800; }
.stat-label { font-size: 12px; letter-spacing: 1.5px; }
.student-name { font-size: 16px; font-weight: 700; }
.student-tag { font-size: 13px; }
.data-table th { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; }
.data-table td { font-size: 13px; }
.section-label { font-size: 15px; font-weight: 700; letter-spacing: 2px; }
.period-header { font-size: 17px; font-weight: 800; letter-spacing: 2px; }

/* Detail header */
.detail-name { font-size: 28px; font-weight: 900; letter-spacing: 2px; }
.detail-chip { font-size: 13px; }
.inner-tab { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; padding: 12px 24px; }

/* Login page */
.container h1 { font-size: 33px; font-weight: 900; letter-spacing: 3px; }
.subtitle { font-size: 13px; letter-spacing: 1px; }
.tab { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; }
.role-prompt { font-size: 15px; font-weight: 700; letter-spacing: 1.5px; }
.login-tagline { font-size: 17px; font-weight: 700; letter-spacing: 4px; }

/* Topic + role buttons */
.topic-btn { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; padding: 12px 20px; }
.role-btn { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; padding: 12px; }
.field-label { font-size: 13px; font-weight: 700; letter-spacing: 1.5px; }
.field-value { font-size: 13px; }

/* Form messages */
.success-msg, .error { font-size: 11px; }

/* Empty-state messages */
.empty-msg { font-size: 12px; }

/* Game row details */
.game-row-stats { font-size: 12px; }
.game-row-time { font-size: 10px; }

/* Contrast bumps — slightly brighter cyan in places */
.gamer-tag-btn, #gamer-tag-display { color: #00f0ff; text-shadow: 0 0 6px rgba(0, 240, 255, 0.7); }

/* Mobile tuning — keep things readable on small screens */
@media (max-width: 768px) {
  .page-title { font-size: 25px; letter-spacing: 2.5px; }
  .page-subtitle { font-size: 13px; }
  .game-card h3, .lobby-card h3 { font-size: 17px; letter-spacing: 1.5px; }
  .panel-title { font-size: 17px; }
  .btn-primary { font-size: 14px; padding: 13px 18px; }
  .btn-small { font-size: 12px; }
  .stat-num { font-size: 28px; }
  .detail-name { font-size: 22px; }
  .leaderboard-link { font-size: 17px; }
  .container h1 { font-size: 25px; }
  .data-table th { font-size: 11px; }
  .data-table td { font-size: 12px; }
  .nav-tab { font-size: 11px; padding: 11px 16px; }
  .login-tagline { font-size: 13px; }
}
@media (max-width: 480px) {
  .page-title { font-size: 20px; letter-spacing: 2px; }
  .page-subtitle { font-size: 11px; }
  .game-card h3, .lobby-card h3 { font-size: 15px; }
  .panel-title { font-size: 14px; }
  .btn-primary { font-size: 12px; padding: 12px; }
  .btn-small { font-size: 11px; }
  .stat-num { font-size: 23px; }
  .detail-name { font-size: 18px; }
  .leaderboard-link { font-size: 14px; }
  .container h1 { font-size: 20px; }
  .nav-tab { font-size: 10px; padding: 10px 12px; }
  .login-tagline { font-size: 11px; letter-spacing: 2px; }
}

/* ============================================ */
/* LEGAL / PROSE PAGES (privacy, terms)         */
/* ============================================ */

.legal-page .top-strip {
  background: rgba(10, 5, 25, 0.92);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #ff2bd1;
  box-shadow: 0 0 18px rgba(255, 43, 209, 0.4);
  backdrop-filter: blur(6px);
}

.legal-page .top-strip img {
  height: 48px;
  cursor: pointer;
  filter: drop-shadow(0 0 8px rgba(255, 43, 209, 0.6));
  transition: filter 0.2s ease;
}

.legal-page .top-strip img:hover {
  filter: drop-shadow(0 0 14px rgba(255, 43, 209, 0.9));
}

.legal-page .top-strip a.home-link {
  color: #00e0ff;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  border: 1px solid #00e0ff;
  padding: 8px 14px;
  text-shadow: 0 0 4px rgba(0, 224, 255, 0.6);
  transition: all 0.2s ease;
}

.legal-page .top-strip a.home-link:hover {
  background: rgba(0, 224, 255, 0.15);
  box-shadow: 0 0 12px rgba(0, 224, 255, 0.6);
}

.legal-card {
  background: rgba(10, 5, 25, 0.85);
  border: 2px solid #6b3aff;
  padding: 40px 48px;
  margin: 32px auto;
  max-width: 820px;
  box-shadow:
    0 0 18px rgba(107, 58, 255, 0.4),
    inset 0 0 12px rgba(107, 58, 255, 0.06);
  backdrop-filter: blur(2px);
  font-family: 'Georgia', serif;
  color: #d0c8f0;
  line-height: 1.7;
  font-size: 14px;
}

.legal-card h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  letter-spacing: 3px;
  color: #ff2bd1;
  text-shadow:
    0 0 8px #ff2bd1,
    0 0 18px rgba(255, 43, 209, 0.6);
  margin-bottom: 12px;
}

.legal-card h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  color: #00e0ff;
  text-shadow: 0 0 6px rgba(0, 224, 255, 0.7);
  margin-top: 32px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0, 224, 255, 0.25);
}

.legal-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #b8a8e8;
  margin-top: 18px;
  margin-bottom: 8px;
}

.legal-card p,
.legal-card li {
  font-family: 'Georgia', serif;
  font-size: 14px;
  line-height: 1.7;
  color: #d0c8f0;
}

.legal-card p {
  margin-bottom: 14px;
}

.legal-card ul {
  margin-left: 22px;
  margin-bottom: 14px;
}

.legal-card li {
  margin-bottom: 6px;
}

.legal-card a {
  color: #00e0ff;
  text-decoration: underline;
}

.legal-card a:hover {
  color: #ff2bd1;
}

.legal-card strong {
  color: #fff;
}

.legal-card .effective-date {
  color: #8a7fb0;
  font-size: 12px;
  margin-bottom: 24px;
}

.legal-card hr {
  border: none;
  border-top: 1px solid rgba(107, 58, 255, 0.3);
  margin: 24px 0;
}

/* Site footer (privacy/terms links). Used on the login page and injected
   by navbar.js below the main nav on every authenticated page. */
.site-footer {
  padding: 24px 32px;
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  letter-spacing: 2px;
  color: #8a7fb0;
  border-top: 1px solid rgba(107, 58, 255, 0.3);
  margin-top: 40px;
}

.site-footer a {
  color: #00e0ff;
  text-decoration: none;
  margin: 0 12px;
  text-shadow: 0 0 4px rgba(0, 224, 255, 0.5);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #ff2bd1;
  text-shadow: 0 0 6px rgba(255, 43, 209, 0.7);
}

.site-footer .footer-copy {
  display: block;
  margin-top: 8px;
  color: #6b5a8e;
  letter-spacing: 1px;
  line-height: 1.6;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer .footer-disclaimer {
  margin-top: 6px;
  font-style: italic;
  color: #7a6a9e;
}

.site-footer .footer-tm-pending {
  margin-top: 6px;
  color: #8a7fb0;
}

/* Landing/signup compliance copy — small, unobtrusive, readable. */
.landing-independent-notice {
  font-family: 'Georgia', serif;
  font-size: 10px;
  color: #8a7fb0;
  max-width: 460px;
  margin: 14px auto 0;
  line-height: 1.6;
  text-align: center;
  padding: 0 16px;
}

.signup-independent-notice {
  font-family: 'Georgia', serif;
  font-size: 9px;
  color: #8a7fb0;
  margin-top: 14px;
  line-height: 1.6;
  text-align: center;
}

.signup-gating-note {
  font-family: 'Georgia', serif;
  font-size: 10px;
  color: #ffcc66;
  background: rgba(255, 204, 102, 0.08);
  border: 1px solid rgba(255, 204, 102, 0.3);
  padding: 10px 12px;
  margin: 0 0 14px;
  line-height: 1.55;
}

.signup-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0;
  font-family: 'Georgia', serif;
  font-size: 11px;
  color: #d0c8f0;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}

.signup-checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: #ff2bd1;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.signup-checkbox-row a {
  color: #00e0ff;
  text-decoration: underline;
}

.signup-checkbox-row a:hover {
  color: #ff2bd1;
}

/* Student signup mode toggle (school email vs no email). */
.signup-mode-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  text-align: left;
}

.signup-mode-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Georgia', serif;
  font-size: 11px;
  color: #d0c8f0;
  cursor: pointer;
  padding: 6px 8px;
  border: 1px solid rgba(107, 58, 255, 0.3);
}

.signup-mode-option input[type="radio"] {
  accent-color: #ff2bd1;
  cursor: pointer;
}

.signup-helper-text {
  font-family: 'Georgia', serif;
  font-size: 10px;
  color: #8a7fb0;
  margin: 4px 0 8px;
  line-height: 1.5;
  text-align: left;
}

/* Login mode switch link (email <-> gamertag). */
.login-mode-switch {
  font-family: 'Georgia', serif;
  font-size: 11px;
  color: #8a7fb0;
  margin-top: 14px;
  text-align: center;
}
.login-mode-switch a {
  color: #00e0ff;
  text-decoration: underline;
}
.login-mode-switch a:hover { color: #ff2bd1; }

/* Student join-screen passive Terms notice. */
.join-legal-notice {
  font-family: 'Georgia', serif;
  font-size: 10px;
  color: #8a7fb0;
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

.join-legal-notice a {
  color: #00e0ff;
  text-decoration: underline;
}

.join-legal-notice a:hover {
  color: #ff2bd1;
}

@media (max-width: 768px) {
  .legal-card {
    padding: 24px 20px;
    margin: 20px 12px;
    font-size: 13px;
  }
  .legal-card h1 { font-size: 16px; letter-spacing: 2px; }
  .legal-card h2 { font-size: 12px; }
  .legal-page .top-strip { padding: 12px 16px; }
  .legal-page .top-strip img { height: 38px; }
  .site-footer { font-size: 8px; padding: 18px 16px; }
  .site-footer a { display: inline-block; margin: 4px 8px; }
}