:root {
  --gold: #f59e0b;
  --gold-dark: #d97706;
  --gold-light: #fef3c7;
  --primary: #ca8a04;
  --dark: #0f172a;
  --slate: #475569;
  --danger: #ef4444;
  --success: #10b981;
  --border: #e2e8f0;
  --radius: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background: #fffbeb;
  color: var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #fff;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(217, 119, 6, 0.25);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fef08a;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 0.8rem;
  opacity: 0.9;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  cursor: pointer;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.container {
  max-width: 860px;
  margin: 30px auto;
  padding: 0 20px;
  flex: 1;
  width: 100%;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid #fde68a;
  box-shadow: 0 10px 30px -5px rgba(217, 119, 6, 0.08);
  padding: 28px;
  margin-bottom: 24px;
}

/* Contestant status bar */
.contestant-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fef3c7;
  border: 1.5px solid #fde68a;
  border-radius: 14px;
  padding: 12px 20px;
  margin-bottom: 20px;
}

/* Options Grid for contestant */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.btn-option {
  padding: 20px 16px;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  background: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.15s ease-in-out;
  text-align: left;
}

.btn-option:hover {
  border-color: #f59e0b;
  background: #fffdf5;
}

.btn-option.selected {
  border-color: #d97706;
  background: #fef3c7;
  color: #b45309;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.25);
}

.btn-option.correct {
  border-color: #10b981 !important;
  background: #dcfce7 !important;
  color: #15803d !important;
}

.btn-option.wrong {
  border-color: #ef4444 !important;
  background: #fee2e2 !important;
  color: #b91c1c !important;
}

.opt-letter {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.selected .opt-letter {
  background: #d97706;
  color: #fff;
}

/* Countdown bar */
.timer-container {
  margin: 16px 0;
}

.timer-track {
  width: 100%;
  height: 12px;
  background: #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
}

.timer-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #f59e0b, #ef4444);
  width: 100%;
  transition: width 1s linear;
}

/* Arena Screen Styles */
.arena-body {
  background: radial-gradient(circle at center, #1e1b4b 0%, #09081a 100%);
  color: #fff;
}

.arena-box {
  background: rgba(30, 27, 75, 0.85);
  border: 2px solid rgba(254, 240, 138, 0.3);
  border-radius: 28px;
  padding: 40px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 50px rgba(245, 158, 11, 0.15);
}

.arena-timer-badge {
  font-size: 3rem;
  font-weight: 900;
  color: #fbbf24;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
}

@media (max-width: 640px) {
  .options-grid {
    grid-template-columns: 1fr;
  }
}
