/* ClapAssist Interview Arena & Boss Fight Simulator Stylesheet
   Apple/Linear-grade dark luxury aesthetics with high-contrast tactical HUD */

.arena-wrap {
  max-width: 880px;
  margin: 0 auto;
}

/* Stage: Setup Selection */
.setup-panel {
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
}

.selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 24px 0 32px;
}

.select-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.select-control {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--hair-2);
  background: var(--paper);
  font: 500 15px var(--sans);
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.select-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}

/* Arena Mission HUD */
.arena-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 24px;
  background: #0A0D16;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-md);
  color: #F8FAFC;
  margin-bottom: 24px;
}

.hud-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.hud-lives {
  font-size: 18px;
  letter-spacing: 2px;
}

.hud-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: monospace;
  font-size: 15px;
  font-weight: 700;
  color: #FBBF24;
  background: rgba(251, 191, 36, .1);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(251, 191, 36, .2);
}

.hud-timer.urgent {
  color: #F43F5E;
  background: rgba(244, 63, 94, .15);
  border-color: rgba(244, 63, 94, .3);
  animation: pulse-urgent 1s infinite;
}

@keyframes pulse-urgent {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}

.hud-round {
  background: rgba(255, 255, 255, .08);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  color: #E2E8F0;
  font-size: 12px;
}

/* Mission Stage Card */
.mission-card {
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
  position: relative;
}

.mission-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--accent-soft);
  color: var(--accent-ink);
  margin-bottom: 16px;
}

.mission-tag.boss {
  background: #FFF1F2;
  color: #BE123C;
  border: 1px solid #FECDD3;
}

.mission-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: 12px;
}

.mission-context {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: var(--paper-2);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--accent);
}

/* Interviewer Speech Bubble */
.interviewer-bubble {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: #0F172A;
  border-radius: var(--r-md);
  color: #F8FAFC;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, .08);
}

.interviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex: none;
}

.interviewer-text {
  font-size: 14.5px;
  line-height: 1.5;
  color: #E2E8F0;
}

.interviewer-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #94A3B8;
  margin-bottom: 4px;
  font-weight: 700;
}

/* Option Choices */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.option-btn {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--hair-2);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  font: 500 15px var(--sans);
  color: var(--ink);
  transition: all .16s cubic-bezier(.16, 1, .3, 1);
  outline: none;
}

.option-btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, .08);
}

.option-btn:disabled {
  cursor: default;
}

.option-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 1px solid var(--hair-3);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-2);
  flex: none;
}

.option-btn.correct {
  border-color: var(--ok);
  background: var(--ok-soft);
  color: #14532D;
}

.option-btn.correct .option-letter {
  background: var(--ok);
  color: #fff;
  border-color: var(--ok);
}

.option-btn.wrong {
  border-color: var(--bad);
  background: var(--bad-soft);
  color: #881337;
}

.option-btn.wrong .option-letter {
  background: var(--bad);
  color: #fff;
  border-color: var(--bad);
}

/* Feedback Box */
.feedback-box {
  padding: 20px;
  border-radius: var(--r-md);
  font-size: 14.5px;
  line-height: 1.55;
  margin-bottom: 24px;
  display: none;
}

.feedback-box.show {
  display: block;
}

.feedback-box.good {
  background: var(--ok-soft);
  border: 1px solid #BBF7D0;
  color: #14532D;
}

.feedback-box.bad {
  background: var(--bad-soft);
  border: 1px solid #FECDD3;
  color: #881337;
}

/* Outcome & Skill Tree Screen */
.outcome-panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
}

.outcome-header {
  text-align: center;
  margin-bottom: 36px;
}

.outcome-score-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 10px 24px -6px rgba(79, 70, 229, .3);
}

.outcome-score-circle.win {
  background: linear-gradient(135deg, #10B981, #059669);
}

.outcome-score-circle.loss {
  background: linear-gradient(135deg, #E11D48, #BE123C);
}

.skill-tree-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 36px;
}

@media (max-width: 600px) {
  .skill-tree-grid { grid-template-columns: 1fr; }
}

.skill-node {
  padding: 16px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--hair-2);
  background: var(--paper);
}

.skill-node-header {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.skill-bar {
  height: 8px;
  background: var(--hair-2);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  border-radius: var(--r-pill);
  transition: width .4s ease;
}

.skill-fill.green { background: #10B981; }
.skill-fill.amber { background: #F59E0B; }
.skill-fill.red { background: #E11D48; }

.outcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Audio & Voice Controls in HUD */
.hud-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-audio-btn {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #E2E8F0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .15s ease;
}

.hud-audio-btn:hover {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .3);
}

.hud-audio-btn.active {
  background: rgba(99, 102, 241, .25);
  border-color: rgba(99, 102, 241, .6);
  color: #A5B4FC;
}

/* Voice Speaking Animated Waveform */
.voice-waveform {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 14px;
  margin-left: 4px;
}

.voice-bar {
  width: 2.5px;
  height: 4px;
  background: #38BDF8;
  border-radius: 1px;
  animation: wave-bar 0.8s infinite ease-in-out;
}

.voice-bar:nth-child(2) { animation-delay: 0.15s; }
.voice-bar:nth-child(3) { animation-delay: 0.3s; }
.voice-bar:nth-child(4) { animation-delay: 0.45s; }

@keyframes wave-bar {
  0%, 100% { height: 4px; }
  50% { height: 14px; }
}

/* Architecture Blueprint Drawer */
.blueprint-drawer {
  margin: 16px 0;
  background: #0B0F19;
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--r-md);
  padding: 16px 20px;
  color: #94A3B8;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  overflow-x: auto;
}

.blueprint-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #818CF8;
  margin-bottom: 8px;
}

.blueprint-diagram {
  color: #38BDF8;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--r-sm);
  border-left: 2px solid #6366F1;
  white-space: pre-wrap;
}

/* Semantic Technical Playbook (Crawlable SEO & Study Guide) */
.arena-playbook-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--hair-2);
}

.playbook-header {
  text-align: center;
  margin-bottom: 28px;
}

.playbook-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.playbook-header p {
  font-size: 15px;
  color: var(--ink-3);
  max-width: 620px;
  margin: 0 auto;
}

.playbook-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--hair);
}

.playbook-tab-btn {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hair-2);
  background: var(--surface);
  font: 600 13px var(--sans);
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s ease;
}

.playbook-tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.playbook-tab-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.playbook-card {
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: var(--r-md);
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.playbook-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.playbook-card-meta {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-ink);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 12px;
}

.playbook-card-body {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.65;
}

.playbook-rubric-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 13.5px;
}

.playbook-rubric-table th {
  background: var(--paper-2);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--ink-2);
  border-bottom: 1px solid var(--hair-2);
}

.playbook-rubric-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--hair);
  color: var(--ink);
}

/* Track Intel Preview Card */
.track-intel-card {
  background: #0B0F19;
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin: 20px 0 28px;
  color: #CBD5E1;
}

.track-intel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.track-intel-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(99, 102, 241, 0.2);
  color: #A5B4FC;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.track-intel-stat {
  font-size: 13px;
  color: #94A3B8;
}

.track-intel-stat b {
  color: #F8FAFC;
}

.track-rounds-preview {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 0;
}

.track-round-pill {
  flex: 1;
  min-width: 90px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  text-align: center;
  font-size: 11px;
}

.track-round-pill .num {
  font-weight: 700;
  color: #38BDF8;
  display: block;
  margin-bottom: 2px;
}

.track-round-pill .lbl {
  color: #94A3B8;
  font-size: 10px;
  white-space: nowrap;
}

/* Scorecard Toast Notification */
.scorecard-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #10B981;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all .25s ease-out;
}

.scorecard-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Playbook FAQ Accordion */
.playbook-faq-item {
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color .15s ease;
}

.playbook-faq-item:hover {
  border-color: var(--accent);
}

.playbook-faq-item summary {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

.playbook-faq-item summary::-webkit-details-marker {
  display: none;
}

.playbook-faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--ink-3);
  font-weight: 400;
}

.playbook-faq-item[open] summary::after {
  content: "−";
}

.playbook-faq-body {
  padding: 0 20px 20px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
  border-top: 1px solid var(--hair);
  margin-top: 4px;
  padding-top: 14px;
}


