.main {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 80vh;
}

.title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  background: linear-gradient(45deg, #9f7aea, #667eea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.statsContainer {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.statBox {
  background: var(--secondary-bg);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.statLabel {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.statValue {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-header);
}

.panelsGrid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .panelsGrid {
    grid-template-columns: 1fr;
  }
}

.quizPanel,
.predictorPanel {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.panelHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.panelTitleRow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.panelTitleRow h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-header);
  margin: 0;
}

.panelIcon {
  color: var(--accent-color);
}

.playerCount {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Lobby */
.loginPrompt {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

.lobbyState {
  text-align: center;
  padding: 3rem 1rem;
}

.lobbyIcon {
  color: var(--accent-color);
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

.lobbyState h3 {
  font-size: 1.2rem;
  color: var(--text-header);
  margin-bottom: 0.5rem;
}

.lobbyState p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.joinBtn {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: #fff;
  border: none;
  padding: 0.85rem 2.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.joinBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.4);
}

.joinBtn:active {
  transform: translateY(0) scale(0.97);
}

.joinedBadge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  font-weight: 600;
}

/* Quiz Active */
.quizActive {
  animation: fadeIn 0.3s ease;
}

.questionBox {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(59, 130, 246, 0.05));
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.questionBox h3 {
  font-size: 1.15rem;
  color: var(--text-header);
  line-height: 1.5;
}

.optionsGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.optionBtn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--primary-bg);
  color: var(--text-main);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: left;
}

.optionBtn:hover:not(:disabled) {
  border-color: var(--accent-color);
  background: rgba(139, 92, 246, 0.05);
  transform: translateY(-2px);
}

.optionBtn:active:not(:disabled) {
  transform: scale(0.97);
}

.optionBtn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.optionBtn.selected {
  border-color: var(--accent-color);
  background: rgba(139, 92, 246, 0.1);
}

.optionBtn.correct {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.optionBtn.wrong {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.optionKey {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.resultBanner {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
}

.correctBanner {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.wrongBanner {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Finished */
.finishedState {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--accent-color);
}

.finishedState h3 {
  margin-top: 1rem;
  color: var(--text-header);
}

.finishedState p {
  color: var(--text-muted);
}

/* World Cup Predictor */
.matchesList {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.noMatches {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.noMatches p {
  margin-top: 0.75rem;
}

.matchCard {
  background: var(--primary-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1rem;
  transition: all 0.2s ease;
}

.matchCard:hover {
  border-color: rgba(139, 92, 246, 0.2);
}

.matchCard:active {
  transform: scale(0.98);
}

.matchHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.matchTeams {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-header);
}

.matchTime {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--secondary-bg);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.matchResult {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  padding: 0.75rem;
}

.finalScore {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-header);
}

.finishedLabel {
  font-size: 0.75rem;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
}

.predictRow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.scoreInputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.inputGroup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.inputGroup label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.inputGroup input {
  width: 52px;
  padding: 0.4rem 0.25rem;
  text-align: center;
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
  -moz-appearance: textfield;
}

.inputGroup input::-webkit-outer-spin-button,
.inputGroup input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.inputGroup input:focus {
  border-color: var(--accent-color);
}

.inputGroup input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.vsDash {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.predictBtn {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  margin-top: 1rem;
}

.predictBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.predictBtn:active {
  transform: translateY(0) scale(0.96);
}

.predictedBadge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #10b981;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 1rem;
  white-space: nowrap;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(16, 185, 129, 0.95);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease;
  z-index: 100;
}

.toastError {
  background: rgba(239, 68, 68, 0.95);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}


.quizModernPanel {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
}

.quizModernHeader {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quizModernHeaderTitle {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quizModernHeaderBadge {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #10b981;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.quizModernLobbyState {
  padding: 4rem 2rem;
  text-align: center;
  background: radial-gradient(circle at center, rgba(var(--accent-rgb, 139, 92, 246), 0.1) 0%, transparent 70%);
}

.quizModernLobbyIcon {
  display: inline-flex;
  padding: 2rem;
  background: rgba(var(--accent-rgb, 139, 92, 246), 0.1);
  border-radius: 50%;
  margin-bottom: 2rem;
  box-shadow: 0 0 30px rgba(var(--accent-rgb, 139, 92, 246), 0.2);
  animation: pulse 2s infinite;
  color: var(--accent-color);
}

.quizModernJoinBtn {
  background: var(--accent-color);
  color: #fff;
  border: none;
  padding: 1.25rem 4rem;
  border-radius: 100px;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(var(--accent-rgb, 139, 92, 246), 0.4);
  transition: transform 0.2s;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.quizModernJoinBtn:hover {
  transform: scale(1.05);
}
.quizModernJoinBtn:active {
  transform: scale(0.95);
}

.quizModernQuestionBox {
  background: var(--primary-bg);
  border: 1px solid var(--border-color);
  padding: 3rem 2rem;
  border-radius: 24px;
  text-align: center;
  margin-bottom: 2rem;
}
.quizModernQuestionBox h3 {
  font-size: 1.75rem;
  line-height: 1.4;
  color: var(--text-header);
}

.quizModernOptionBtn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 16px;
  font-size: 1.1rem;
  background: var(--primary-bg);
  border: 2px solid var(--border-color);
  color: var(--text-main);
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: left;
}
.quizModernOptionBtn:hover:not(:disabled) {
  border-color: var(--accent-color);
  background: rgba(var(--accent-rgb, 139, 92, 246), 0.05);
}
.quizModernOptionBtn:active:not(:disabled) {
  transform: scale(0.97);
}
.quizModernOptionBtn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.quizModernOptionBtn.selected {
  border-color: var(--accent-color);
  background: rgba(var(--accent-rgb, 139, 92, 246), 0.15);
}
.quizModernOptionBtn.correct {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}
.quizModernOptionBtn.wrong {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.quizModernFinishedState {
  padding: 4rem 2rem;
  text-align: center;
  border-radius: 24px;
  background: var(--primary-bg);
  border: 1px solid var(--border-color);
}
.quizModernFinishedIcon {
  display: inline-flex;
  padding: 1.5rem;
  background: rgba(251, 191, 36, 0.1);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}



.quizGamerPanel {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3), inset 0 2px 20px rgba(255,255,255,0.02);
  overflow: hidden;
  position: relative;
  font-family: 'Inter', system-ui, sans-serif;
}

.quizGamerPanel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  opacity: 0.5;
}

.quizGamerHeader {
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(128, 128, 128, 0.05);
  border-bottom: 1px solid var(--border-color);
}

.quizGamerHeaderTitle {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-header);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.quizGamerHeaderBadge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.quizGamerLobbyState {
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
}

.quizGamerLobbyState::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 300px; height: 300px;
  transform: translate(-50%, -50%);
  background: var(--accent-color);
  filter: blur(150px);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.quizGamerLobbyIcon {
  display: inline-flex;
  padding: 2.5rem;
  background: var(--primary-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  margin-bottom: 2.5rem;
  box-shadow: 0 0 50px rgba(0,0,0,0.1), inset 0 0 20px rgba(128,128,128,0.05);
  position: relative;
  z-index: 1;
}

.quizGamerLobbyIcon svg {
  color: var(--accent-color);
  filter: drop-shadow(0 0 10px var(--accent-color));
  animation: pulseGamer 2s infinite;
}

@keyframes pulseGamer {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 20px var(--accent-color)); }
  100% { transform: scale(1); opacity: 0.8; }
}

.quizGamerJoinBtn {
  position: relative;
  z-index: 1;
  background: var(--accent-color);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 1.5rem 5rem;
  border-radius: 8px;
  font-size: 1.5rem;
  font-weight: 900;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 4px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0% 100%);
}

.quizGamerJoinBtn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px var(--accent-color);
}

.quizGamerJoinBtn:active {
  transform: translateY(0) scale(0.96);
}

.quizGamerQuestionBox {
  background: var(--primary-bg);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-color);
  padding: 4rem 2rem;
  margin: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(128,128,128,0.1);
}
.quizGamerQuestionBox h3 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-header);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 1;
}

.quizGamerOptionsGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 0 2rem 3rem 2rem;
}

.quizGamerOptionBtn {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 2rem;
  background: var(--primary-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: left;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
}

.quizGamerOptionBtn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0; width: 4px;
  background: var(--border-color);
  transition: all 0.2s ease;
}

.quizGamerOptionBtn:hover:not(:disabled) {
  background: var(--secondary-bg);
  transform: translateX(10px);
}
.quizGamerOptionBtn:hover:not(:disabled)::before {
  background: var(--accent-color);
  box-shadow: 0 0 15px var(--accent-color);
}
.quizGamerOptionBtn:active:not(:disabled) {
  transform: scale(0.97);
}

.quizGamerOptionBtn.selected {
  background: rgba(var(--accent-rgb, 139, 92, 246), 0.1);
  color: var(--text-header);
  border-color: var(--accent-color);
}
.quizGamerOptionBtn.selected::before {
  background: var(--accent-color);
  width: 8px;
  box-shadow: 0 0 20px var(--accent-color);
}

.quizGamerOptionBtn.correct {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}
.quizGamerOptionBtn.correct::before {
  background: #10b981;
  width: 100%;
  opacity: 0.2;
}

.quizGamerOptionBtn.wrong {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}
.quizGamerOptionBtn.wrong::before {
  background: #ef4444;
  width: 100%;
  opacity: 0.2;
}

.quizGamerOptionKey {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-header);
  background: var(--secondary-bg);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}
.quizGamerOptionText {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.quizGamerFinishedState {
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at bottom, rgba(251, 191, 36, 0.15), transparent 70%);
}

.quizGamerFinishedIcon {
  display: inline-flex;
  padding: 2rem;
  background: var(--primary-bg);
  border-radius: 50%;
  border: 1px solid rgba(251, 191, 36, 0.2);
  margin-bottom: 2rem;
  box-shadow: 0 0 60px rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}



.quizHudWrapper {
  position: relative;
  width: 100%;
  min-height: 700px;
  background: var(--primary-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  font-family: 'Inter', monospace;
  box-shadow: inset 0 0 100px rgba(0,0,0,0.5);
}

.quizHudBackground {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 0;
  pointer-events: none;
}

.quizHudHeader {
  position: relative;
  z-index: 10;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--accent-color);
  background: rgba(0,0,0,0.3);
  box-shadow: 0 5px 20px rgba(var(--accent-rgb, 139, 92, 246), 0.1);
}

.quizHudHeaderTitle {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.quizHudBadge {
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  background: rgba(var(--accent-rgb, 139, 92, 246), 0.1);
  box-shadow: 0 0 10px rgba(var(--accent-rgb, 139, 92, 246), 0.2);
}

/* LOBBY STATE */
.quizHudLobby {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quizHudCore {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
}

.quizHudRing1, .quizHudRing2, .quizHudRing3 {
  position: absolute;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid transparent;
}

.quizHudRing1 {
  width: 100%; height: 100%;
  border-top-color: var(--accent-color);
  border-bottom-color: var(--accent-color);
  animation: spinHud 8s linear infinite;
  box-shadow: 0 0 20px rgba(var(--accent-rgb, 139, 92, 246), 0.3);
}

.quizHudRing2 {
  width: 80%; height: 80%;
  border-left-color: #0ea5e9; /* secondary tech cyan */
  border-right-color: #0ea5e9;
  animation: spinHudReverse 6s linear infinite;
  opacity: 0.7;
}

.quizHudRing3 {
  width: 120%; height: 120%;
  border: 1px dashed rgba(255,255,255,0.2);
  animation: spinHud 15s linear infinite;
}

@keyframes spinHud { 100% { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spinHudReverse { 100% { transform: translate(-50%, -50%) rotate(-360deg); } }

.quizHudJoinBtn {
  background: rgba(var(--accent-rgb, 139, 92, 246), 0.15);
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  padding: 1rem 3rem;
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 4px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: inset 0 0 20px rgba(var(--accent-rgb, 139, 92, 246), 0.2), 0 0 20px rgba(var(--accent-rgb, 139, 92, 246), 0.2);
  clip-path: polygon(15% 0, 100% 0, 85% 100%, 0% 100%);
}

.quizHudJoinBtn:hover {
  background: var(--accent-color);
  color: var(--primary-bg);
  box-shadow: 0 0 40px var(--accent-color);
}

.quizHudJoinBtn:active {
  transform: scale(0.95);
}

/* ACTIVE STATE - ORBITAL LAYOUT */
.quizHudActiveArea {
  position: absolute;
  top: 80px; bottom: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
}

.quizHudCenterQuestion {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 320px; height: 320px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  box-shadow: 0 0 50px rgba(var(--accent-rgb, 139, 92, 246), 0.2), inset 0 0 30px rgba(var(--accent-rgb, 139, 92, 246), 0.2);
  border: 2px solid rgba(var(--accent-rgb, 139, 92, 246), 0.3);
  z-index: 20;
}
.quizHudCenterQuestion h3 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-header);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.quizHudOrbitPanel {
  position: absolute;
  width: 280px;
  padding: 1.5rem;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 3px solid var(--border-color);
  color: var(--text-main);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quizHudOrbitPanel:hover:not(:disabled) {
  border-top-color: var(--accent-color);
  background: rgba(var(--accent-rgb, 139, 92, 246), 0.1);
  box-shadow: 0 10px 30px rgba(var(--accent-rgb, 139, 92, 246), 0.2);
  transform: scale(1.05);
}

.quizHudOrbitPanel:active:not(:disabled) {
  transform: scale(0.95);
}

.quizHudOrbitPanel.selected {
  border-top-color: var(--accent-color);
  background: rgba(var(--accent-rgb, 139, 92, 246), 0.2);
  box-shadow: 0 0 40px rgba(var(--accent-rgb, 139, 92, 246), 0.4);
}

.quizHudOrbitPanel.correct {
  border-top-color: #10b981;
  background: rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.4);
}
.quizHudOrbitPanel.correct .quizHudKey { color: #10b981; }

.quizHudOrbitPanel.wrong {
  border-top-color: #ef4444;
  background: rgba(239, 68, 68, 0.2);
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.4);
}
.quizHudOrbitPanel.wrong .quizHudKey { color: #ef4444; }

.quizHudKey {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 2px;
}
.quizHudText {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Positioning for the 4 orbital panels */
.orbitTopLeft { top: 10%; left: 5%; }
.orbitTopRight { top: 10%; right: 5%; text-align: right; }
.orbitBottomLeft { bottom: 10%; left: 5%; }
.orbitBottomRight { bottom: 10%; right: 5%; text-align: right; }

.quizHudConnectorLine {
  position: absolute;
  background: rgba(255,255,255,0.05);
  z-index: 5;
}

.quizHudTimerBar {
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 4px;
  background: rgba(0,0,0,0.5);
  z-index: 30;
}
.quizHudTimerFill {
  height: 100%;
  background: var(--accent-color);
  animation: shrinkHud 20s linear forwards;
  box-shadow: 0 0 20px var(--accent-color);
}
@keyframes shrinkHud { from { width: 100%; } to { width: 0%; } }

/* ULTRA-PREMIUM CORPORATE UI STYLES */
.quizPremiumWrapper {
  background: var(--primary-bg);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.08), 0 10px 30px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  position: relative;
  font-family: 'Inter', system-ui, sans-serif;
  margin: 2rem 0;
}

.quizPremiumHeader {
  padding: 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(20px);
}

.quizPremiumHeaderTitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-header);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quizPremiumBadge {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.4rem 1.25rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* LOBBY STATE */
.quizPremiumLobby {
  padding: 6rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(var(--accent-rgb, 16, 185, 129), 0.02) 0%, transparent 100%);
}

.quizPremiumLobbyIcon {
  width: 80px; height: 80px;
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  color: var(--text-header);
}

.quizPremiumJoinBtn {
  background: var(--text-header);
  color: var(--primary-bg);
  padding: 1.25rem 4rem;
  border-radius: 100px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  letter-spacing: -0.2px;
}

.quizPremiumJoinBtn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.quizPremiumJoinBtn:active {
  transform: translateY(0) scale(0.96);
}

/* ACTIVE STATE */
.quizPremiumActiveArea {
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.quizPremiumQuestionBox {
  margin-bottom: 4rem;
  text-align: center;
}

.quizPremiumQuestionBox h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-header);
  line-height: 1.3;
  letter-spacing: -1px;
}

.quizPremiumOptionsGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  width: 100%;
}

.quizPremiumOptionBtn {
  display: flex;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  color: var(--text-main);
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: left;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.quizPremiumOptionBtn:hover:not(:disabled) {
  border-color: rgba(var(--text-header-rgb, 255,255,255), 0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transform: translateY(-2px);
}

.quizPremiumOptionBtn:active:not(:disabled) {
  transform: scale(0.97);
}

.quizPremiumOptionBtn.selected {
  border-color: var(--accent-color);
  background: rgba(var(--accent-rgb, 16, 185, 129), 0.05);
}
.quizPremiumOptionBtn.selected .quizPremiumKey {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
}

.quizPremiumOptionBtn.correct {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.05);
}
.quizPremiumOptionBtn.wrong {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}

.quizPremiumKey {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--primary-bg);
  border: 1px solid var(--border-color);
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin-right: 1.5rem;
  transition: all 0.2s ease;
}

.quizPremiumText {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-header);
}

.quizPremiumTimerBar {
  width: 100%; height: 4px;
  background: var(--border-color);
  border-radius: 4px;
  margin-bottom: 3rem;
  overflow: hidden;
}
.quizPremiumTimerFill {
  height: 100%;
  background: var(--text-header);
  border-radius: 4px;
  animation: shrinkPremium 20s linear forwards;
}
@keyframes shrinkPremium { from { width: 100%; } to { width: 0%; } }

/* FINISHED STATE */
.quizPremiumFinished {
  padding: 6rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quizPremiumResultCard {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem;
  width: 100%;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.quizPremiumRank {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.quizPremiumRank:last-child { border-bottom: none; }
