/* General layout */
:root {
  --color-bg: #03071e;
  --color-bg-accent: #0a1554;
  --color-surface: rgba(255, 255, 255, 0.96);
  --color-surface-muted: rgba(255, 255, 255, 0.85);
  --color-border: rgba(32, 40, 68, 0.12);
  --color-border-strong: rgba(32, 40, 68, 0.25);
  --color-primary: #4f6ef7;
  --color-primary-strong: #3853d6;
  --color-accent: #efaa50;
  --color-text: #111a3b;
  --color-text-strong: #050b21;
  --color-muted: #5c6595;
  --shadow-soft: 0 20px 45px -24px rgba(5, 14, 54, 0.65);
  --shadow-card: 0 24px 60px -32px rgba(3, 12, 64, 0.55);
  --shadow-focus: 0 0 0 3px rgba(79, 110, 247, 0.28);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  background: radial-gradient(circle at 10% 20%, #081457 0%, #03071e 60%);
  color: var(--color-text);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  position: relative;
}

body::before {
  background: linear-gradient(160deg, rgba(79, 110, 247, 0.14), rgba(239, 170, 80, 0.12));
  content: '';
  inset: 0;
  opacity: 1;
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

.app-body {
  background-color: transparent;
}

a {
  color: var(--color-primary);
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:focus,
a:hover {
  color: var(--color-primary-strong);
  text-decoration: none;
}

strong {
  color: var(--color-text-strong);
}

hr {
  border-color: rgba(255, 255, 255, 0.12);
  margin: 24px 0;
}

label {
  font-weight: 600;
  color: var(--color-text-strong);
}

.form-control {
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: none;
  color: var(--color-text);
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.form-control:focus {
  background-color: #fff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}

.form-group + .form-group {
  margin-top: 18px;
}

.help-block {
  color: var(--color-muted);
  font-size: 12px;
}

.btn {
  border-radius: 999px;
  border-width: 0;
  box-shadow: none;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 12px 28px;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:focus,
.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, #4f88ff 100%);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--color-primary-strong) 0%, #4f6ef7 100%);
}

.btn-info {
  background: linear-gradient(135deg, #30b0ff 0%, #1463ff 100%);
}

.btn-success {
  background: linear-gradient(135deg, #31d0aa 0%, #0c9b86 100%);
}

.btn-default {
  background: rgba(17, 26, 59, 0.08);
  border: 1px solid rgba(17, 26, 59, 0.08);
  color: var(--color-text-strong);
}

.btn-default:hover,
.btn-default:focus {
  background: rgba(17, 26, 59, 0.12);
}

.btn-warning {
  background: linear-gradient(135deg, #ffce63 0%, #efaa50 100%);
  color: #342200;
}

.btn-link {
  color: var(--color-primary);
  font-weight: 600;
  text-transform: none;
}

.btn-link:hover,
.btn-link:focus {
  color: var(--color-primary-strong);
  text-decoration: none;
}

.panel {
  background: var(--color-surface);
  border: 1px solid rgba(14, 32, 92, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.panel-heading {
  background: transparent;
  border-bottom: 1px solid rgba(14, 32, 92, 0.08);
  padding: 18px 22px;
}

.panel-title {
  color: var(--color-text-strong);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.panel-body {
  padding: 22px;
}

.panel-footer {
  background: rgba(79, 110, 247, 0.06);
  border-top: 1px solid rgba(14, 32, 92, 0.08);
}

.navbar-app {
  background: rgba(5, 10, 40, 0.82);
  backdrop-filter: blur(16px);
  border: 0;
  border-bottom: 1px solid rgba(79, 110, 247, 0.22);
  border-radius: 0;
  box-shadow: 0 28px 60px -28px rgba(3, 12, 54, 0.75);
  min-height: 72px;
  padding: 14px 0;
}

.navbar-app .container-fluid {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

.navbar-app .navbar-header {
  align-items: center;
  display: flex;
  gap: 18px;
}

.navbar-app .navbar-brand {
  color: #f8f9ff;
  font-family: 'Fjalla One', sans-serif;
  font-size: 22px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.navbar-app .navbar-brand:hover,
.navbar-app .navbar-brand:focus {
  color: var(--color-accent);
}

.navbar-app .navbar-round {
  background: rgba(79, 110, 247, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  letter-spacing: 0.16em;
  margin: 0;
  padding: 6px 18px;
  text-transform: uppercase;
}

.navbar-app .navbar-right {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin: 0;
}

.navbar-app .navbar-right,
.navbar-app .navbar-nav {
  float: none !important;
}

.navbar-app .navbar-right.btn-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.navbar-app .navbar-btn {
  align-items: center;
  display: inline-flex;
  font-size: 12px;
  margin-left: 0;
  padding: 10px 20px;
}

.navbar-app .navbar-btn .glyphicon {
  margin-right: 8px;
}

.navbar-user {
  align-items: center;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  gap: 10px;
  margin-right: 6px;
}

.navbar-user__name {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.navbar-user__logout {
  color: var(--color-accent);
  font-weight: 600;
  padding: 0;
}

.navbar-code {
  align-items: center;
  background: rgba(239, 170, 80, 0.18);
  border: 1px solid rgba(239, 170, 80, 0.4);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px rgba(239, 170, 80, 0.12);
  color: #ffdd9b;
  display: flex;
  flex-direction: column;
  font-weight: 700;
  justify-content: center;
  min-width: 110px;
  padding: 8px 16px;
  text-transform: uppercase;
}

.navbar-code__label {
  font-size: 10px;
  letter-spacing: 0.18em;
}

.navbar-code__value {
  font-family: 'Fjalla One', sans-serif;
  font-size: 20px;
  letter-spacing: 0.2em;
}

.navbar-app .navbar-hint {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  margin: 0 0 0 8px;
}

.navbar-app .btn-warning {
  color: #2b1b00;
}

.host-screen,
.page-container {
  padding-top: 120px;
  padding-bottom: 60px;
  position: relative;
}

.page-container {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin: 120px auto 90px;
  max-width: 1080px;
  padding: 60px 70px 70px;
}

.page-container.join-page {
  max-width: 640px;
}

.page-container::before {
  background: linear-gradient(135deg, rgba(79, 110, 247, 0.08), rgba(239, 170, 80, 0.12));
  border-radius: inherit;
  bottom: 24px;
  content: '';
  left: 24px;
  position: absolute;
  right: 24px;
  top: 24px;
  z-index: 0;
}

.page-container > .row,
.page-container > .row > [class*='col-'] {
  position: relative;
  z-index: 1;
}

.page-container .panel {
  box-shadow: none;
}

.page-container .panel-default {
  border: 1px solid rgba(17, 26, 59, 0.08);
}

.page-container .panel-heading {
  padding-top: 16px;
}

.page-container p.text-muted {
  color: var(--color-muted);
}

.page-container .btn {
  box-shadow: none;
}

.section-title {
  color: var(--color-text-strong);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 30px 0 20px;
  position: relative;
  text-transform: uppercase;
}

.section-title::after {
  background: linear-gradient(90deg, var(--color-primary), transparent);
  border-radius: 999px;
  content: '';
  display: block;
  height: 3px;
  margin-top: 10px;
  max-width: 120px;
}

.host-screen .section-title {
  color: rgba(255, 255, 255, 0.92);
}

.host-screen .section-title::after {
  background: linear-gradient(90deg, rgba(239, 170, 80, 0.6), transparent);
}

.session-status {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: 32px;
  padding: 28px 32px;
}

.session-status__count {
  align-items: baseline;
  display: flex;
  font-size: 18px;
  font-weight: 600;
  gap: 6px;
  margin-bottom: 6px;
}

.session-status__count strong {
  color: var(--color-primary);
  font-family: 'Fjalla One', sans-serif;
  letter-spacing: 0.08em;
}

.session-status__hint {
  color: var(--color-muted);
  margin-top: 10px;
}

.session-status .buzzer-status {
  margin-top: 6px;
}

.session-status code {
  background: rgba(79, 110, 247, 0.12);
  border-radius: var(--radius-xs);
  color: var(--color-primary-strong);
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 2px 8px;
}

.clue-audio-panel {
  margin: 20px 0;
}

.clue-audio-panel .alert {
  margin-bottom: 8px;
}

.clue-audio-toolbar .btn {
  min-width: 140px;
}

.progress-sm {
  background: rgba(79, 110, 247, 0.12);
  border-radius: 999px;
  height: 8px;
  margin: 6px 0 14px;
}

.progress-sm .progress-bar {
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 999px;
  box-shadow: 0 2px 4px rgba(79, 110, 247, 0.25);
}

.home-hero {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin: 120px auto 80px;
  overflow: hidden;
  padding: 80px 70px;
  position: relative;
}

.home-hero::before,
.home-hero::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  filter: blur(0.5px);
  opacity: 0.6;
}

.home-hero::before {
  background: radial-gradient(circle at center, rgba(79, 110, 247, 0.36), transparent 70%);
  height: 420px;
  right: -160px;
  top: -120px;
  width: 420px;
}

.home-hero::after {
  background: radial-gradient(circle at center, rgba(239, 170, 80, 0.42), transparent 70%);
  bottom: -220px;
  left: -180px;
  height: 480px;
  width: 480px;
}

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

.home-kicker {
  align-items: center;
  color: var(--color-accent);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 10px;
  letter-spacing: 0.24em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.home-kicker::before {
  background: currentColor;
  border-radius: 999px;
  content: '';
  display: inline-block;
  height: 2px;
  width: 36px;
}

.home-hero h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 18px;
}

.home-subtitle {
  color: var(--color-muted);
  font-size: 18px;
  max-width: 540px;
  margin-bottom: 28px;
}

.home-highlights {
  display: grid;
  gap: 14px;
  margin: 0 0 30px;
  padding: 0;
}

.home-highlights__item {
  align-items: center;
  background: var(--color-surface-muted);
  border: 1px solid rgba(32, 40, 68, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  backdrop-filter: blur(6px);
}

.home-highlights__item .glyphicon {
  background: rgba(79, 110, 247, 0.18);
  border-radius: 999px;
  color: var(--color-primary);
  font-size: 16px;
  line-height: 1;
  padding: 10px;
}

.home-highlights__copy {
  color: var(--color-text);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 24px 0 12px;
}

.home-actions .btn {
  font-size: 13px;
  letter-spacing: 0.16em;
  padding: 12px 28px;
}

.home-cta-note {
  align-items: center;
  color: var(--color-muted);
  display: inline-flex;
  font-size: 14px;
  gap: 10px;
  margin-top: 16px;
}

.home-auth-panel {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-card);
}

.home-auth-panel .panel-heading {
  border-bottom: none;
  padding-bottom: 12px;
}

.home-auth-panel .panel-body {
  padding: 24px 26px 30px;
}

.auth-form legend {
  border: 0;
  color: var(--color-text-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.auth-form .btn {
  width: 100%;
}

@media (max-width: 991px) {
  .home-hero {
    margin: 110px auto 70px;
    padding: 60px 40px;
  }

  .home-hero h1 {
    font-size: 42px;
  }

  .home-auth-panel {
    margin-top: 30px;
  }

  .page-container {
    margin: 110px auto 70px;
    padding: 50px 40px 60px;
  }

  .practice-container {
    margin: 110px auto 70px;
    padding: 60px 45px 70px;
  }

  .player-container {
    margin: 110px auto 70px;
    padding: 60px 45px 70px;
  }
}

@media (max-width: 767px) {
  .home-hero {
    margin: 90px 15px 60px;
    padding: 42px 24px;
  }

  .home-highlights {
    gap: 12px;
  }

  .home-highlights__item {
    align-items: flex-start;
  }

  .home-actions {
    flex-direction: column;
  }

  .home-actions .btn {
    width: 100%;
    text-align: center;
  }

  .page-container {
    margin: 90px 15px 60px;
    padding: 36px 24px 42px;
  }

  .page-container::before {
    display: none;
  }

  .practice-container {
    margin: 90px 15px 60px;
    padding: 38px 24px 45px;
  }

  .player-container {
    margin: 90px 15px 60px;
    padding: 38px 24px 45px;
  }
}

.practice-container {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin: 120px auto 90px;
  overflow: hidden;
  padding: 70px 70px 80px;
  position: relative;
}

.practice-container select.form-control {
  height: auto;
}

.practice-container h1 {
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.practice-container h3 {
  color: var(--color-text-strong);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.practice-board {
  background: linear-gradient(160deg, #0b1b75 0%, #041050 100%);
  border: 1px solid rgba(6, 20, 86, 0.8);
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 25px 45px -28px rgba(4, 12, 70, 0.8);
  margin-bottom: 40px;
  overflow: hidden;
}

.practice-row {
  display: flex;
}

.practice-header .practice-cell {
  background: rgba(0, 0, 0, 0.35);
  color: #ffdea6;
  font-weight: 700;
  font-family: 'Fjalla One', sans-serif;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.practice-cell {
  border: 1px solid rgba(0, 0, 0, 0.35);
  color: #ffffff;
  flex: 1;
  min-height: 120px;
  padding: 10px;
  text-align: center;
}

.practice-card {
  align-items: center;
  cursor: pointer;
  display: flex;
  height: 100%;
  justify-content: center;
  padding: 12px;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.practice-card:hover {
  background: rgba(239, 170, 80, 0.22);
  box-shadow: inset 0 0 0 1px rgba(239, 170, 80, 0.4);
  transform: translateY(-4px);
}

.practice-card--revealed {
  background: rgba(6, 16, 76, 0.8);
  box-shadow: inset 0 0 0 1px rgba(239, 170, 80, 0.45);
  color: #ffdb93;
  flex-direction: column;
  gap: 10px;
  text-transform: none;
}

.practice-card--empty {
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.55);
  cursor: default;
  text-transform: uppercase;
}

.practice-clue {
  font-size: 16px;
  line-height: 1.45;
  margin-bottom: 10px;
}

.practice-answer {
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.practice-answer strong {
  color: var(--color-accent);
  margin-right: 6px;
}

.practice-final {
  background: linear-gradient(160deg, rgba(79, 110, 247, 0.2), rgba(79, 110, 247, 0.05));
  border: 1px solid rgba(79, 110, 247, 0.15);
  border-radius: var(--radius-md);
  color: var(--color-text);
  margin-bottom: 50px;
  padding: 24px 28px;
}

.practice-summary {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(32, 40, 68, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 20px 24px;
}

/* Player grid */
.player-grid {
  margin-bottom: 30px;
}

.player-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(17, 26, 59, 0.12);
  border-left: 4px solid transparent;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  min-height: 160px;
  padding: 20px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.player-card:hover {
  box-shadow: 0 20px 40px -24px rgba(8, 16, 58, 0.6);
  transform: translateY(-3px);
}

.player-card--active {
  background: rgba(239, 170, 80, 0.12);
  border-color: var(--color-accent);
  box-shadow: 0 22px 35px -28px rgba(239, 170, 80, 0.65);
}

.player-card__header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.player-card__control {
  align-items: center;
  background: linear-gradient(135deg, rgba(239, 170, 80, 0.9), rgba(255, 206, 140, 0.9));
  border-radius: 999px;
  color: #2f230d;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  gap: 6px;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  text-transform: uppercase;
}

.player-card__label {
  color: var(--color-text-strong);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.player-card__input {
  font-size: 16px;
}

.player-card__score {
  align-items: center;
  display: flex;
  font-size: 14px;
  justify-content: space-between;
  letter-spacing: 0.06em;
  margin: 18px 0 0;
  padding: 0;
  text-transform: uppercase;
}

.player-card__score dt {
  color: var(--color-muted);
  font-weight: 700;
  margin: 0;
}

.player-card__score dd {
  color: var(--color-primary);
  font-family: 'Fjalla One', sans-serif;
  font-size: 28px;
  margin: 0;
}

.player-card__meta {
  color: var(--color-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-top: 16px;
  text-transform: uppercase;
}

.player-grid--empty {
  color: rgba(255, 255, 255, 0.75);
  margin: 40px auto;
  max-width: 420px;
}

.buzzer-control {
  margin: 20px 0;
}

.buzzer-control .label {
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-left: 8px;
}

/* Round summaries */
.game-summary .panel,
.page-container .panel,
.final-round .panel {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(17, 26, 59, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.round-table th {
  color: var(--color-muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.round-table td {
  color: var(--color-text);
  vertical-align: middle;
}

.round-table > tbody > tr td {
  border-top: 1px solid rgba(17, 26, 59, 0.08);
}

.final-round .panel-heading strong {
  color: var(--color-text-strong);
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.final-links {
  margin-top: 20px;
}

.final-links a {
  color: var(--color-primary);
  font-weight: 600;
}

.game-complete {
  color: rgba(255, 255, 255, 0.9);
  margin-top: 60px;
}

/* Board management view */
.round-board {
  margin-top: 35px;
}

.category-card {
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(17, 26, 59, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  min-height: 130px;
  padding: 16px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  box-shadow: 0 24px 45px -28px rgba(8, 18, 69, 0.35);
  transform: translateY(-4px);
}

.category-card__title {
  color: var(--color-text-strong);
  font-family: 'Fjalla One', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.3;
  margin: 0;
  text-transform: uppercase;
}

.category-card__note {
  color: var(--color-muted);
  font-size: 13px;
  margin: 0;
}

.category-card__toggle {
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 0;
}

.clue-row {
  margin-bottom: 14px;
}

.clue-card {
  background: linear-gradient(160deg, #0c1c7a 0%, #062678 100%);
  border: 1px solid rgba(12, 28, 122, 0.6);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 35px -24px rgba(4, 12, 74, 0.8);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  padding: 16px 18px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.clue-card::after {
  background: radial-gradient(circle at top right, rgba(239, 170, 80, 0.18), transparent 60%);
  content: '';
  height: 100%;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transition: opacity 0.2s ease;
  width: 100%;
}

.clue-card:hover {
  border-color: rgba(239, 170, 80, 0.6);
  box-shadow: 0 26px 45px -22px rgba(4, 12, 74, 0.9);
  transform: translateY(-6px);
}

.clue-card:hover::after {
  opacity: 1;
}

.clue-card__value {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  justify-content: center;
  text-align: center;
  text-transform: uppercase;
}

.clue-card__amount {
  color: var(--color-accent);
  font-family: 'Fjalla One', sans-serif;
  font-size: 44px;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.clue-card__dd {
  background: rgba(239, 170, 80, 0.2);
  border: 1px solid rgba(239, 170, 80, 0.5);
  border-radius: 999px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 14px;
}

.clue-card__body {
  color: #ffcb7b;
  font-size: 16px;
  line-height: 1.35;
  margin: 0;
  text-shadow: none;
}

.clue-card--cleared {
  background: rgba(244, 245, 255, 0.7);
  border: 1px dashed rgba(79, 110, 247, 0.4);
  box-shadow: none;
  color: #6c7589;
  cursor: default;
}

.clue-card--cleared:hover {
  transform: none;
}

.clue-card--cleared .clue-card__body {
  color: #6c7589;
}

.clue-card__amount--cleared {
  color: rgba(79, 110, 247, 0.8);
}

/* Responsive helpers */
@media (max-width: 991px) {
  .navbar-app .container-fluid {
    justify-content: center;
  }

  .navbar-app .navbar-header {
    justify-content: space-between;
    width: 100%;
  }

  .navbar-app .navbar-right {
    justify-content: space-between;
    width: 100%;
  }

  .navbar-app .navbar-round {
    display: none;
  }

  .player-card {
    margin-bottom: 20px;
  }
}

@media (max-width: 767px) {
  .navbar-app .container-fluid {
    flex-direction: column;
    align-items: stretch;
  }

  .navbar-app .navbar-header,
  .navbar-app .navbar-right {
    justify-content: center;
  }

  .navbar-app .navbar-right {
    gap: 8px;
  }

  .host-screen,
  .page-container {
    padding-top: 70px;
  }

  .category-card {
    margin-bottom: 15px;
  }

  .clue-card {
    min-height: 130px;
  }
}

/* Seasons tables */
.page-container .panel-title {
  color: var(--color-text-strong);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-container .table > thead > tr > th {
  background: rgba(79, 110, 247, 0.08);
  border-bottom: 1px solid rgba(17, 26, 59, 0.12);
  color: var(--color-muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-container .table > tbody > tr > td {
  border-top: 1px solid rgba(17, 26, 59, 0.08);
}

.join-page .panel {
  margin-top: 30px;
}

.player-container {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  margin: 120px auto 90px;
  padding: 70px 70px 80px;
}

.player-container h1 {
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 0;
}

.buzzer-panel {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(17, 26, 59, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 28px 32px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.buzzer-panel__message {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.buzzer-panel--armed {
  border-color: var(--color-primary);
  box-shadow: 0 16px 32px -24px rgba(79, 110, 247, 0.65);
}

.buzzer-panel--won {
  border-color: #2daa5f;
  box-shadow: 0 16px 28px -20px rgba(45, 170, 95, 0.35);
}

.btn-buzzer {
  background: radial-gradient(circle at 30% 30%, #ffb347, #ff5c5c);
  border: none;
  border-radius: 999px;
  color: #ffffff;
  font-family: 'Fjalla One', sans-serif;
  font-size: 40px;
  letter-spacing: 0.12em;
  padding: 30px 40px;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.btn-buzzer:focus,
.btn-buzzer:hover {
  box-shadow: 0 26px 45px -22px rgba(255, 114, 94, 0.5);
  transform: translateY(-4px);
}

.btn-buzzer[disabled] {
  background: rgba(216, 222, 242, 0.6);
  color: rgba(108, 117, 137, 0.6);
  box-shadow: none;
  transform: none;
}

.player-container .panel-default {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(17, 26, 59, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.player-container .panel-title {
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.player-container .label-default {
  margin-left: 8px;
}

.table-scoreboard {
  margin-bottom: 0;
}

.table-scoreboard .table-active-player td {
  background: rgba(239, 170, 80, 0.18);
  font-weight: 600;
}

.table-scoreboard .table-inactive-player td {
  color: rgba(23, 32, 66, 0.45);
}

.scoreboard-name {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.scoreboard-badge {
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-left: 6px;
  text-transform: uppercase;
}

.table-host-scoreboard {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.table-host-scoreboard .table-active-player td {
  background: rgba(79, 110, 247, 0.12);
  font-weight: 600;
}

.score-delta {
  display: inline-block;
  font-weight: 600;
  min-width: 64px;
  text-align: right;
}

.score-delta--positive {
  color: #1f9d73;
}

.score-delta--negative {
  color: #d94d64;
}

.control-panel .panel-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.last-event-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.last-event-list li {
  align-items: center;
  display: flex;
  font-size: 13px;
  justify-content: space-between;
  padding: 4px 0;
}

.last-event-name {
  font-weight: 600;
  margin-right: 8px;
}

.clue-timeline {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.clue-timeline > li {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(17, 26, 59, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  margin-bottom: 12px;
  padding: 14px 18px;
}

.clue-timeline__header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.clue-timeline__label {
  color: var(--color-text-strong);
  font-weight: 600;
}

.clue-timeline__round {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.clue-timeline__scores {
  margin: 8px 0 0;
  padding: 0;
}

.clue-timeline__scores li {
  font-size: 13px;
  margin-right: 16px;
}

.timeline-player {
  font-weight: 600;
  margin-right: 4px;
}

.board-final-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.board-final-list li {
  display: inline-block;
  font-size: 20px;
  font-weight: 600;
  margin: 0 12px;
}

.board-final-name {
  margin-right: 6px;
}

.board-final-score {
  color: #1f9d73;
  font-weight: 700;
}

.board-modal-scoreboard {
  list-style: none;
  margin: 0;
  padding: 0;
}

.board-modal-scoreboard li {
  border-bottom: 1px dashed rgba(17, 26, 59, 0.18);
  display: flex;
  font-size: 14px;
  justify-content: space-between;
  padding: 6px 0;
}

.board-modal-scoreboard li:last-child {
  border-bottom: 0;
}

.board-modal-name {
  font-weight: 600;
}

.board-modal-score {
  font-weight: 600;
}

.board-join .panel {
  margin-top: 50px;
  box-shadow: var(--shadow-soft);
}

.board-join .btn {
  font-weight: 600;
}

/* Video wrapper (board intro) */
.video-wrapper {
  height: 0;
  padding-bottom: 56.25%;
  padding-top: 25px;
  position: relative;
}

.video-wrapper iframe {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

/* Public board */
.jeopardy-board {
  background: #0015a0;
  color: #ffffff;
  font-family: 'Fjalla One', sans-serif;
  height: 100%;
  position: absolute;
  text-shadow: 4px 4px #000000;
  width: 100%;
}

.jeopardy-board .board-row {
  height: 16%;
}

.jeopardy-board .fj-row {
  height: 100%;
}

.jeopardy-board .category-row {
  border-bottom: 3px solid black;
}

.jeopardy-board .score-row {
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  font-size: 130%;
  height: 4%;
  margin: 0;
  padding: 0 20px;
}

.jeopardy-board .score-row > [class*="col-"] {
  float: none;
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 10px;
}

.board-scorecard {
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  display: flex;
  gap: 10px;
  height: 100%;
  padding: 4px 10px;
}

.board-scorecard--active {
  background: rgba(239, 170, 80, 0.25);
  box-shadow: inset 0 0 0 2px #efaa50;
}

.board-scorecard__icon {
  color: #efaa50;
  font-size: 22px;
}

.board-scorecard__name {
  display: block;
  font-family: 'Korinna', 'Kadwa', serif;
  font-size: 150%;
  line-height: 1.1;
  text-transform: uppercase;
}

.board-scorecard__score {
  display: block;
  font-family: 'Fjalla One', sans-serif;
  font-size: 170%;
  text-shadow: 2px 2px rgba(0, 0, 0, 0.6);
}

.board-round {
  align-items: center;
  display: flex;
  font-family: 'Fjalla One', sans-serif;
  justify-content: flex-end;
  text-transform: uppercase;
}

.board-round__badge {
  margin-right: 6px;
  background: #efaa50;
  color: #05104c;
  border-radius: 999px;
  font-size: 70%;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  text-shadow: none;
}

.board-round__title {
  letter-spacing: 0.04em;
}

.jeopardy-board .board-cell {
  border: 3px solid black;
  height: 100%;
}

.jeopardy-board .board-cell > div,
.board-modal-open .modal-body > div {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

.jeopardy-board .category-cell {
  font-size: 200%;
}

.jeopardy-board .fj-cell {
  font-size: 600%;
}

.jeopardy-board .fj-cell .player-name,
.jeopardy-board .fj-cell .player-score {
  font-size: 66.67%;
}

.jeopardy-board .clue-cell {
  color: #efaa50;
  font-size: 600%;
}

.board-modal-open .modal-dialog {
  height: 90%;
  width: 95%;
}

.board-modal-open .modal-content {
  background: #0015a0;
  color: #ffffff;
  font-family: 'Korinna', 'Kadwa', serif;
  font-size: 400%;
  font-weight: 600;
  height: 100%;
  text-align: center;
  text-shadow: 4px 4px #000000;
  text-transform: uppercase;
}

.board-modal-open .modal-body {
  height: 100%;
  padding-left: 50px;
  padding-right: 50px;
}

.board-modal-open .carousel img {
  margin: 0 auto;
  max-height: 700px;
  min-height: 700px;
}

.board-modal-open .carousel-caption {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
  font-size: 50%;
  left: 3%;
  right: 3%;
}

.player-name {
  font-family: 'Korinna', 'Kadwa', serif;
  text-transform: uppercase;
}

.player-score {
  font-family: 'Fjalla One', sans-serif;
}

.panel {
  margin-bottom: 15px;
}
