/* ==========================================================================
   PHONK DRIFT SPEED ARENA, 1% CLUB LOGIC VAULT & BOSS COMBAT
   ========================================================================== */

/* 1. PHONK DRIFT ARENA */
#view-phonk-arena {
  background: radial-gradient(circle at 50% 50%, #20063b 0%, #0c0217 100%);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.drift-arena-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.drift-top-bar {
  height: 72px;
  background: rgba(18, 4, 34, 0.85);
  border-bottom: 2px solid var(--phonk-pink);
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 10;
}

.drift-timer-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 0, 127, 0.2);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--phonk-pink);
}

.drift-combo-meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.combo-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--phonk-cyan);
}

.combo-multiplier {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 28px;
  color: #fff;
  text-shadow: 0 0 10px var(--phonk-pink), 0 0 20px var(--phonk-cyan);
  transition: transform 0.1s ease;
}

.combo-multiplier.hype-bounce {
  transform: scale(1.3);
  color: var(--lego-yellow);
}

.combo-flame-bar {
  width: 90px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.drift-score-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-mono);
}

.drift-score-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-aura);
}

.drift-score-lbl {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.drift-game-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
}

/* Speed Lines Background */
.drift-speed-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 50px,
    rgba(255, 0, 127, 0.05) 50px,
    rgba(0, 240, 255, 0.05) 100px
  );
  animation: speedWarp 1.5s linear infinite;
  pointer-events: none;
}

@keyframes speedWarp {
  0% { transform: scale(1) translateY(0); opacity: 0.3; }
  50% { opacity: 0.7; }
  100% { transform: scale(1.1) translateY(20px); opacity: 0.3; }
}

.drift-question-card {
  background: rgba(26, 8, 48, 0.95);
  border: 3px solid var(--phonk-cyan);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.4), inset 0 0 15px rgba(255, 0, 127, 0.2);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  z-index: 2;
}

.drift-q-label {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--phonk-pink);
}

.drift-math-expression {
  font-family: var(--font-mono);
  font-size: 52px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.drift-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.drift-tap-btn {
  background: var(--bg-surface-elevated);
  border: 2px solid var(--phonk-purple);
  border-radius: var(--radius-md);
  padding: 20px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 0 #5b1a99, 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.1s ease;
  text-align: center;
}

.drift-tap-btn:hover {
  border-color: var(--phonk-cyan);
  box-shadow: 0 6px 0 #008899, 0 0 15px var(--phonk-cyan);
  transform: translateY(-2px);
}

.drift-tap-btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #5b1a99;
}

/* ==========================================================================
   2. THE 1% CLUB LOGIC VAULT
   ========================================================================== */
#view-logic-club {
  background: radial-gradient(circle at 50% 30%, #1e1b4b 0%, #090916 100%);
  display: flex;
  flex-direction: column;
}

.logic-vault-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.logic-header {
  height: 72px;
  background: rgba(15, 15, 35, 0.9);
  border-bottom: 2px solid #6366f1;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logic-tier-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tier-percent {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  color: #818cf8;
  letter-spacing: 1px;
}

.tier-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.logic-lives-container {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-aura);
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid var(--accent-aura);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.logic-question-stage {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.logic-card {
  background: rgba(30, 27, 75, 0.9);
  border: 2px solid #6366f1;
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.logic-visual-clue {
  background: rgba(15, 15, 35, 0.8);
  border: 2px dashed #818cf8;
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 24px;
  letter-spacing: 4px;
  color: #c7d2fe;
}

.logic-footer {
  height: 80px;
  background: rgba(15, 15, 35, 0.95);
  border-top: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}

.logic-pass-btn {
  background: rgba(251, 191, 36, 0.2);
  border: 2px solid var(--accent-aura);
  color: var(--accent-aura);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.logic-pass-btn:hover {
  transform: translateY(-2px);
  background: rgba(251, 191, 36, 0.3);
}

/* ==========================================================================
   3. BOSS COMBAT ARENA
   ========================================================================== */
#view-boss-battle {
  background: radial-gradient(circle at 50% 30%, #3f0a0a 0%, #150303 100%);
  display: flex;
  flex-direction: column;
}

.boss-arena-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.boss-top-bar {
  height: 80px;
  background: rgba(30, 5, 5, 0.9);
  border-bottom: 3px solid #dc2626;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.boss-health-card {
  flex: 1;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.boss-info-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 13px;
}

.boss-name {
  color: #f87171;
  letter-spacing: 0.5px;
}

.boss-hp-text {
  color: #fff;
}

.boss-hp-bar-wrap {
  height: 16px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1px solid #dc2626;
}

.boss-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #b91c1c);
  transition: width 0.4s ease-out;
}

.boss-combat-stage {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.boss-avatar-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.boss-sprite {
  font-size: 72px;
  filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.6));
  animation: bossFloat 2.5s infinite ease-in-out;
}

@keyframes bossFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

.boss-status-speech {
  background: rgba(20, 5, 5, 0.9);
  border: 2px solid #ef4444;
  border-radius: var(--radius-md);
  padding: 8px 18px;
  font-size: 14px;
  color: #fca5a5;
  font-style: italic;
}

.boss-question-card {
  width: 100%;
}
