/* Legal Trial - Courtroom Glass Morphism Theme */
/* Designed for 9:16 portrait mobile aspect ratio */

/* ====== CSS VARIABLES ====== */
:root {
  --bg: #1A1610;
  --bg-light: #2E261C;
  --card: rgba(36, 29, 22, 0.85);
  --accent: #2AAE2A;
  --accent-light: #5DC060;
  --success: #5DC060;
  --danger: #FF6A6A;
  --warning: #FFD03A;
  --text: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.5);
  --border: rgba(42, 174, 42, 0.35);
  --judge-gold: #E0BF4A;
  --prosecution-red: #D83535;
  --defense-blue: #2878D6;
  --glass-blur: 20px;
  --leather: #4E3530;
  --mahogany: #5E4238;
}

/* ====== BASE RESET & LAYOUT ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

html, body {
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
}

/* ====== 9:16 ASPECT RATIO CONTAINER ====== */
#game-root {
  width: 100%;
  height: 100dvh;
  max-width: calc(100dvh * 9 / 16);
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg);
  overflow: hidden;
  margin: 0 auto;
  padding-top: var(--sat, env(safe-area-inset-top, 0px));
  padding-bottom: 0;
}

/* On wide screens, center with subtle border */
@media (min-aspect-ratio: 9/16) {
  #game-root {
    border-left: 1px solid rgba(34, 139, 34, 0.15);
    border-right: 1px solid rgba(34, 139, 34, 0.15);
    box-shadow: 0 0 60px rgba(34, 139, 34, 0.05);
  }
}

/* Ensure content sits above background layers */
#game-root > *:not(.game-bg) {
  position: relative;
  z-index: 1;
}

/* ====== GAME BACKGROUND ====== */
.game-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

/* ====== GLASS MORPHISM COMPONENTS ====== */

/* Glass Card — primary container style */
.glass-card {
  background: var(--card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(34, 139, 34, 0.06);
}

/* Glass Button — prestige casino gradient with gold border */
.btn-glass {
  position: relative;
  background: rgba(27, 94, 32, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #FFD700;
  font-weight: 900;
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-top-color: rgba(255, 215, 0, 0.5);
  border-radius: 14px;
  cursor: pointer;
  flex-shrink: 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  transition: transform 0.15s, box-shadow 0.25s, background 0.25s;
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(27, 94, 32, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Inner glass shine — gold-tinted top highlight */
.btn-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 13px 13px 0 0;
}

/* Subtle gold glow — bottom edge */
.btn-glass::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.5), transparent);
  pointer-events: none;
}

.btn-glass:active {
  transform: scale(0.96);
  background: rgba(27, 94, 32, 0.3);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(34, 139, 34, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Primary — translucent crimson glass */
.btn-primary {
  background: rgba(139, 0, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.4);
  border-top-color: rgba(255, 215, 0, 0.55);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(139, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:active {
  background: rgba(139, 0, 0, 0.35);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(139, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Danger — translucent red glass */
.btn-danger {
  background: rgba(198, 40, 40, 0.2);
  border-color: rgba(255, 82, 82, 0.4);
  border-top-color: rgba(255, 82, 82, 0.55);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(198, 40, 40, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-danger:active {
  background: rgba(198, 40, 40, 0.35);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(198, 40, 40, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Success — translucent green glass */
.btn-success {
  background: rgba(46, 125, 50, 0.2);
  border-color: rgba(76, 175, 80, 0.4);
  border-top-color: rgba(76, 175, 80, 0.55);
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(46, 125, 50, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-success:active {
  background: rgba(46, 125, 50, 0.35);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(46, 125, 50, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Small button variant */
.btn-sm {
  font-size: 12px;
  padding: 8px 16px;
  letter-spacing: 1px;
}

/* Icon-only button — glass circle */
.btn-icon-only {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  background: rgba(27, 94, 32, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: #FFD700;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.btn-icon-only:active {
  transform: scale(0.92);
  background: rgba(27, 94, 32, 0.3);
}

/* Interview question buttons — left-aligned text */
.interview-question-btn {
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 16px;
  min-height: 44px;
  line-height: 1.4;
}

.interview-question-btn.used {
  opacity: 0.35;
  pointer-events: none;
  border-color: rgba(255, 215, 0, 0.1);
}


/* ====== GAME HEADER — Fixed Top Bar ====== */
.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 16px;
  background: rgba(26, 22, 16, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(34, 139, 34, 0.2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  z-index: 100;
  flex-shrink: 0;
  position: relative;
}

/* Safe area top is handled by #game-root padding-top */

.game-header .header-left,
.game-header .header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-header .header-center {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  justify-content: center;
}

.btn-back {
  position: relative;
  background: rgba(27, 94, 32, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #FFD700;
  font-weight: 900;
  font-size: 13px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-top-color: rgba(255, 215, 0, 0.5);
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  transition: transform 0.15s, box-shadow 0.25s, background 0.25s;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-back::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 10px 10px 0 0;
}

.btn-back:active {
  transform: scale(0.92);
  background: rgba(27, 94, 32, 0.3);
}

/* ====== SCREEN TITLE BLOCK — Shared stylistic header ====== */
.screen-title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.screen-title-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--judge-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.screen-title-main {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.screen-title-main.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.screen-title-sub {
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.round-indicator {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mute-btn {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(27, 94, 32, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 50%;
  cursor: pointer;
  color: #FFD700;
  font-size: 16px;
  transition: transform 0.15s, background 0.25s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mute-btn:active {
  transform: scale(0.9);
  background: rgba(27, 94, 32, 0.3);
}

.mute-btn.muted {
  opacity: 0.5;
}


/* ====== TITLE SCREEN ====== */
.title-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  padding-bottom: 24px;
  gap: 16px;
  animation: fadeIn 0.5s ease;
}

.title-poster {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
  padding: 0 16px;
}

.title-poster-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 20px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(212, 175, 55, 0.15);
}

.title-logo {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--accent), var(--accent-light), #D4AF37);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 12px rgba(34, 139, 34, 0.3));
}

.title-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  max-width: 280px;
  line-height: 1.5;
}

.title-icon {
  font-size: 64px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
}

.title-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 300px;
}

.title-buttons .btn-glass {
  font-size: 17px;
  padding: 18px 32px;
  text-align: center;
}

.title-buttons .btn-glass .btn-icon {
  margin-right: 8px;
}

/* Play button — translucent crimson glass with gold glow pulse */
.title-buttons .title-play-btn {
  background: rgba(139, 0, 0, 0.25);
  border-color: rgba(255, 215, 0, 0.5);
  border-top-color: rgba(255, 215, 0, 0.65);
  animation: glowPulse 2s infinite;
}

/* Exit button — translucent green glass */
.title-buttons .title-exit-btn {
  background: rgba(27, 94, 32, 0.18);
}


/* ====== CASE SELECT SCREEN ====== */
.case-select {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  min-height: 0;
  animation: fadeIn 0.4s ease;
}

.case-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 14px 24px;
}

.case-card {
  background: linear-gradient(135deg, rgba(36, 29, 22, 0.9), rgba(26, 22, 16, 0.95));
  border: 2px solid rgba(255, 215, 0, 0.25);
  border-radius: 16px;
  padding: 16px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(27, 94, 32, 0.08);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Inner glass shine */
.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.03) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 16px 16px 0 0;
}

.case-card:active {
  transform: scale(0.97);
}

.case-card:hover {
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(255, 215, 0, 0.1);
}

.case-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.case-category-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.case-card-title {
  font-size: 16px;
  font-weight: 900;
  color: #FFD700;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.case-card-category {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-left: 30px;
}

.case-card-hook {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 4px 0 8px;
}

.case-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.case-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Start Case button inside card */
.case-start-btn {
  font-size: 13px;
  padding: 10px 20px;
  text-align: center;
  width: 100%;
}

/* Difficulty chips */
/* Difficulty group headers on case select */
.difficulty-group-header {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 8px 4px 2px;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  margin-top: 4px;
}

.difficulty-group-easy {
  color: #4CAF50;
}

.difficulty-group-medium {
  color: #FF9800;
}

.difficulty-group-hard {
  color: #F44336;
}

.difficulty-chip {
  font-size: 10px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
  white-space: nowrap;
}

.difficulty-easy {
  background: linear-gradient(135deg, #2E7D32, #1B5E20);
  color: #FFD700;
  border: 1px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 8px rgba(46, 125, 50, 0.3);
}

.difficulty-medium {
  background: linear-gradient(135deg, #E65100, #BF360C);
  color: #FFD700;
  border: 1px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 8px rgba(230, 81, 0, 0.3);
}

.difficulty-hard {
  background: linear-gradient(135deg, #B71C1C, #7F0000);
  color: #FFD700;
  border: 1px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 8px rgba(183, 28, 28, 0.3);
}

.case-card.locked {
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(0.5);
}


/* ====== DISCOVERY / BRIEFING SCREEN ====== */
.discovery-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(26, 22, 16, 0.92);
  z-index: 50;
  padding: 24px 20px;
  padding-top: max(24px, var(--sat, env(safe-area-inset-top, 24px)));
  padding-bottom: max(24px, var(--sab, env(safe-area-inset-bottom, 24px)));
  animation: fadeIn 0.5s ease;
}

.discovery-header-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.discovery-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--judge-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.discovery-title {
  font-size: 26px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.discovery-case-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 16px;
}

.discovery-narrative {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: left;
  max-width: 340px;
  width: 100%;
  background: rgba(36, 29, 22, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(34, 139, 34, 0.15);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  max-height: 200px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.discovery-narrative .typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Charges list — animated slide-in items */
.charges-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 340px;
  margin-bottom: 20px;
}

.charge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(198, 40, 40, 0.08);
  border: 1px solid rgba(198, 40, 40, 0.25);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  animation: chargeSlideIn 0.4s ease both;
}

.charge-item:nth-child(1) { animation-delay: 0.1s; }
.charge-item:nth-child(2) { animation-delay: 0.25s; }
.charge-item:nth-child(3) { animation-delay: 0.4s; }
.charge-item:nth-child(4) { animation-delay: 0.55s; }
.charge-item:nth-child(5) { animation-delay: 0.7s; }

.charge-icon {
  font-size: 16px;
  flex-shrink: 0;
}

/* Accept case button — prominent glow pulse */
.accept-case-btn {
  font-size: 18px;
  padding: 16px 48px;
  animation: glowPulse 2s infinite;
}


/* ====== INTERVIEW / CLIENT SCREEN ====== */
.interview-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  min-height: 0;
  animation: fadeIn 0.4s ease;
}

.interview-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 12px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Proceed to Trial button — glass style in header */
.btn-proceed-trial {
  font-size: 11px;
  padding: 6px 12px;
  background: rgba(139, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-top-color: rgba(255, 215, 0, 0.55);
  border-radius: 10px;
  color: #FFD700;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.client-info {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.client-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(34, 139, 34, 0.15);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(34, 139, 34, 0.15);
}

.client-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.client-avatar-placeholder {
  font-size: 36px;
}

.client-details {
  flex: 1;
}

.client-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.client-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Emotional state badge */
.emotional-state {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

.emotional-state.calm {
  background: rgba(76, 175, 80, 0.15);
  color: var(--success);
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.emotional-state.nervous {
  background: rgba(255, 193, 7, 0.15);
  color: var(--warning);
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.emotional-state.anxious {
  background: rgba(255, 152, 0, 0.15);
  color: #FF9800;
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.emotional-state.distressed {
  background: rgba(255, 82, 82, 0.15);
  color: var(--danger);
  border: 1px solid rgba(255, 82, 82, 0.3);
}

.emotional-state.cooperative {
  background: rgba(21, 101, 192, 0.15);
  color: #42A5F5;
  border: 1px solid rgba(21, 101, 192, 0.3);
}

/* Interview questions list */
.interview-questions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0;
  flex-shrink: 0;
}

.question-card {
  background: rgba(46, 38, 28, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(34, 139, 34, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s, background 0.2s;
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
}

.question-card:active {
  transform: scale(0.97);
  background: rgba(34, 139, 34, 0.12);
  border-color: rgba(34, 139, 34, 0.5);
}

.question-card.asked {
  opacity: 0.4;
  pointer-events: none;
  border-color: rgba(34, 139, 34, 0.1);
}

/* Interview response area */
.interview-response {
  background: rgba(36, 29, 22, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(34, 139, 34, 0.15);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-height: 180px;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  flex-shrink: 0;
  animation: slideUp 0.3s ease;
}


/* ====== COURTROOM SCREEN ====== */
.courtroom {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  animation: fadeIn 0.4s ease;
}

/* Courtroom header — round, phase, credibility, score, timer */
.courtroom-header {
  display: flex;
  flex-direction: column;
  padding: 6px 10px;
  background: rgba(26, 22, 16, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34, 139, 34, 0.15);
  flex-shrink: 0;
  gap: 3px;
}

.courtroom-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.courtroom-header .round-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.courtroom-header .score-display {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-light);
  font-variant-numeric: tabular-nums;
}

/* Phase badge */
.phase-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.phase-badge.phase-opening {
  background: rgba(34, 139, 34, 0.15);
  color: var(--accent-light);
  border: 1px solid rgba(34, 139, 34, 0.3);
}

.phase-badge.phase-plaintiff,
.phase-badge.phase-prosecution {
  background: rgba(21, 101, 192, 0.15);
  color: #42A5F5;
  border: 1px solid rgba(21, 101, 192, 0.3);
}

.phase-badge.phase-defense {
  background: rgba(198, 40, 40, 0.15);
  color: #EF5350;
  border: 1px solid rgba(198, 40, 40, 0.3);
}

.phase-badge.phase-resolution,
.phase-badge.phase-closing {
  background: rgba(212, 175, 55, 0.15);
  color: var(--judge-gold);
  border: 1px solid rgba(212, 175, 55, 0.3);
}


/* ====== COURTROOM BODY & FOOTER ====== */
.courtroom-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  touch-action: pan-y;
  min-height: 0;
  padding: 0;
}

.courtroom-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 6px 12px;
  /* Extend footer background to screen edge, but keep buttons above home indicator */
  padding-bottom: calc(var(--sab, env(safe-area-inset-bottom, 0px)) + 14px);
  margin-bottom: calc(-1 * var(--sab, env(safe-area-inset-bottom, 0px)));
  flex-shrink: 0;
  border-top: 1px solid rgba(34, 139, 34, 0.1);
  background: rgba(26, 22, 16, 0.4);
}

.question-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 2px 0;
}

.question-text {
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 0 12px;
  text-align: center;
  color: var(--text);
  font-weight: 500;
}

.round-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  padding: 6px 12px 2px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ====== CREDIBILITY BAR ====== */
.credibility-bar {
  position: relative;
  width: 100%;
  height: 16px;
  background: rgba(46, 38, 28, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(34, 139, 34, 0.15);
  overflow: hidden;
  margin: 0;
  flex-shrink: 0;
}

.credibility-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s ease, background 0.4s ease;
  background: linear-gradient(90deg, var(--danger), var(--warning), var(--success));
  background-size: 200% 100%;
  position: relative;
}

/* Shift gradient based on credibility level */
.credibility-fill.low {
  background-position: 0% 50%;
}

.credibility-fill.medium {
  background-position: 50% 50%;
}

.credibility-fill.high {
  background-position: 100% 50%;
}

.credibility-label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.5px;
}


/* ====== DIALOGUE AREA ====== */
.dialogue-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 6px 12px 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  min-height: 0;
  gap: 4px;
}

.dialogue-entry {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: slideUp 0.3s ease;
}

/* Character portrait — 120px circular, role-colored border */
.character-portrait {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 38, 28, 0.8);
  font-size: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.character-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  border-radius: 50%;
}

.character-portrait.role-judge {
  border: 2px solid var(--judge-gold);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.character-portrait.role-prosecutor {
  border: 2px solid var(--prosecution-red);
  box-shadow: 0 0 12px rgba(198, 40, 40, 0.3);
}

.character-portrait.role-defense {
  border: 2px solid var(--defense-blue);
  box-shadow: 0 0 12px rgba(21, 101, 192, 0.3);
}

.character-portrait.role-witness {
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px rgba(34, 139, 34, 0.3);
}

/* Character name — bold, colored by role */
.character-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 2px;
}

.character-name.role-judge {
  color: var(--judge-gold);
}

.character-name.role-prosecutor {
  color: #EF5350;
}

.character-name.role-defense {
  color: #42A5F5;
}

.character-name.role-witness {
  color: var(--accent-light);
}

/* Dialogue bubble — layout with character portrait + text */
.dialogue-bubble {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dialogue-bubble .character-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* Prosecutor (player) — portrait and text left-aligned */
.dialogue-bubble.align-left .character-info {
  align-items: flex-start;
}
.dialogue-bubble.align-left .dialogue-text {
  border-color: rgba(198, 40, 40, 0.25);
}

/* Defense attorney — portrait and text right-aligned */
.dialogue-bubble.align-right .character-info {
  align-items: flex-end;
}
.dialogue-bubble.align-right .dialogue-text {
  border-color: rgba(21, 101, 192, 0.25);
}

/* Judge, witnesses, bailiff, etc. — centered */
.dialogue-bubble.align-center .character-info {
  align-items: center;
}

/* Dialogue text bubble */
.dialogue-content {
  flex: 1;
  min-width: 0;
}

.dialogue-text {
  background: rgba(46, 38, 28, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(34, 139, 34, 0.15);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.dialogue-text .typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}


/* ====== DIALOGUE CONTINUE BUTTON — pinned at bottom ====== */
.dialogue-next-btn {
  flex-shrink: 0;
  width: calc(100% - 24px);
  margin: 0 12px 8px;
  padding: 14px 24px;
  font-size: 16px;
  text-align: center;
}

/* Flash pulse when ready to continue */
.btn-flash {
  animation: btnFlash 1.5s ease-in-out infinite;
}

@keyframes btnFlash {
  0%, 100% {
    box-shadow:
      0 6px 20px rgba(0, 0, 0, 0.5),
      0 0 20px rgba(255, 215, 0, 0.15),
      inset 0 1px 0 rgba(255, 215, 0, 0.15);
  }
  50% {
    box-shadow:
      0 6px 24px rgba(0, 0, 0, 0.5),
      0 0 50px rgba(255, 215, 0, 0.4),
      inset 0 1px 0 rgba(255, 215, 0, 0.3);
    border-color: #FFE44D;
  }
}


/* ====== CHOICES CONTAINER — 4 Answer Cards ====== */
.choices-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 10px 8px;
  flex-shrink: 0;
}

.choice-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  min-height: 44px;
  background: rgba(46, 38, 28, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(34, 139, 34, 0.25);
  border-top-color: rgba(76, 175, 80, 0.4);
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  animation: slideUp 0.3s ease both;
}

.choice-card:nth-child(1) { animation-delay: 0.05s; }
.choice-card:nth-child(2) { animation-delay: 0.1s; }
.choice-card:nth-child(3) { animation-delay: 0.15s; }
.choice-card:nth-child(4) { animation-delay: 0.2s; }

/* Inner glass shine */
.choice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 14px 14px 0 0;
}

.choice-card:active {
  transform: scale(0.97);
}

.choice-card:hover {
  border-color: rgba(34, 139, 34, 0.5);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(34, 139, 34, 0.12);
}

/* Letter badge (A/B/C/D) */
.choice-letter {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(34, 139, 34, 0.2);
  border: 1px solid rgba(34, 139, 34, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-light);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.choice-text {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
}

/* Selected / correct answer */
.choice-card.selected {
  border-color: var(--accent);
  background: rgba(34, 139, 34, 0.15);
}

.choice-card.correct {
  border-color: var(--success);
  background: rgba(76, 175, 80, 0.12);
  box-shadow:
    0 0 20px rgba(76, 175, 80, 0.25),
    0 4px 16px rgba(0, 0, 0, 0.2);
}

.choice-card.correct .choice-letter {
  background: rgba(76, 175, 80, 0.3);
  border-color: var(--success);
  color: var(--success);
}

/* Wrong answer */
.choice-card.wrong {
  border-color: var(--danger);
  background: rgba(255, 82, 82, 0.12);
  box-shadow:
    0 0 20px rgba(255, 82, 82, 0.25),
    0 4px 16px rgba(0, 0, 0, 0.2);
}

.choice-card.wrong .choice-letter {
  background: rgba(255, 82, 82, 0.3);
  border-color: var(--danger);
  color: var(--danger);
}

/* Eliminated (lifeline) */
.choice-card.eliminated {
  opacity: 0.3;
  pointer-events: none;
  filter: grayscale(0.4);
}

/* Disabled after answering */
.choice-card.disabled {
  pointer-events: none;
}

/* Round result / explanation (layout defined in RESULT CARD LAYOUT section) */

.round-result-card {
  background: rgba(36, 29, 22, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(34, 139, 34, 0.15);
  border-radius: 12px;
  padding: 12px 14px;
}

.round-result-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.round-result-label.correct {
  color: var(--success);
}

.round-result-label.wrong {
  color: var(--danger);
}

.round-result-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.round-result-concept {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(34, 139, 34, 0.15);
  color: var(--accent-light);
  border: 1px solid rgba(34, 139, 34, 0.25);
  margin-top: 8px;
}


/* ====== EVIDENCE PANEL — Slide-up Drawer ====== */
.evidence-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 70%;
  background: rgba(26, 22, 16, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
  z-index: 150;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -8px 48px rgba(0, 0, 0, 0.5);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.evidence-panel.open {
  transform: translateY(0);
}

.evidence-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(34, 139, 34, 0.15);
  flex-shrink: 0;
}

.evidence-panel-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.evidence-panel-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(34, 139, 34, 0.12);
  border: 1px solid rgba(34, 139, 34, 0.3);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.evidence-panel-close:active {
  background: rgba(34, 139, 34, 0.25);
}

.evidence-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 10px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.evidence-card {
  background: rgba(46, 38, 28, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(34, 139, 34, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.evidence-card:active {
  background: rgba(34, 139, 34, 0.08);
  border-color: rgba(34, 139, 34, 0.4);
}

.evidence-type-icon {
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.evidence-info {
  flex: 1;
  min-width: 0;
}

.evidence-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.evidence-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Importance badges */
.importance-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  margin-top: 2px;
}

.importance-critical {
  background: rgba(255, 82, 82, 0.15);
  color: var(--danger);
  border: 1px solid rgba(255, 82, 82, 0.3);
  box-shadow: 0 0 8px rgba(255, 82, 82, 0.15);
}

.importance-high {
  background: rgba(255, 152, 0, 0.15);
  color: #FF9800;
  border: 1px solid rgba(255, 152, 0, 0.3);
}

.importance-medium {
  background: rgba(255, 193, 7, 0.15);
  color: var(--warning);
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.importance-low {
  background: rgba(158, 158, 158, 0.15);
  color: #9E9E9E;
  border: 1px solid rgba(158, 158, 158, 0.3);
}


/* ====== OBJECTION OVERLAY ====== */
.objection-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 24px;
}

.objection-text {
  font-size: 56px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--danger);
  text-shadow:
    0 0 30px rgba(255, 82, 82, 0.6),
    0 0 60px rgba(255, 82, 82, 0.3);
  animation: slamIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.objection-text::after {
  content: '';
  display: block;
  width: 80%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--danger), transparent);
  margin: 8px auto 0;
  animation: fadeIn 0.5s ease 0.4s both;
}

/* Sustained — green flash */
.objection-sustained {
  animation: flashGreen 0.4s ease 0.6s both;
}

@keyframes flashGreen {
  0% { background: rgba(0, 0, 0, 0.85); }
  50% { background: rgba(76, 175, 80, 0.2); }
  100% { background: rgba(0, 0, 0, 0.85); }
}

/* Overruled — red flash */
.objection-overruled {
  animation: flashRed 0.4s ease 0.6s both;
}

@keyframes flashRed {
  0% { background: rgba(0, 0, 0, 0.85); }
  50% { background: rgba(255, 82, 82, 0.2); }
  100% { background: rgba(0, 0, 0, 0.85); }
}

.objection-result {
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-top: 16px;
  animation: slideUp 0.3s ease 0.7s both;
}

.objection-result.sustained {
  color: var(--success);
  text-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
}

.objection-result.overruled {
  color: var(--danger);
  text-shadow: 0 0 20px rgba(255, 82, 82, 0.4);
}

.judge-response {
  font-size: 15px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 320px;
  margin-top: 20px;
  line-height: 1.6;
  animation: slideUp 0.3s ease 0.9s both;
}

.judge-response .typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--judge-gold);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}


/* ====== VERDICT SCREEN ====== */
.verdict-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  animation: fadeIn 0.5s ease;
}

/* Won — green glow theme */
.verdict-screen.verdict-won {
  background: radial-gradient(ellipse at center, rgba(76, 175, 80, 0.08) 0%, transparent 70%);
}

/* Lost — red glow theme */
.verdict-screen.verdict-lost {
  background: radial-gradient(ellipse at center, rgba(255, 82, 82, 0.08) 0%, transparent 70%);
}

.verdict-icon {
  font-size: 64px;
  margin-bottom: 12px;
  animation: pulse 2s ease infinite;
}

.verdict-title {
  font-size: 36px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 8px;
}

.verdict-won .verdict-title {
  color: var(--success);
  text-shadow:
    0 0 30px rgba(76, 175, 80, 0.5),
    0 0 60px rgba(76, 175, 80, 0.2);
}

.verdict-lost .verdict-title {
  color: var(--danger);
  text-shadow:
    0 0 30px rgba(255, 82, 82, 0.5),
    0 0 60px rgba(255, 82, 82, 0.2);
}

.verdict-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 20px;
  max-width: 300px;
  line-height: 1.5;
}

/* Score breakdown */
.score-breakdown {
  background: var(--card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  width: 100%;
  max-width: 320px;
  margin-bottom: 12px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(34, 139, 34, 0.06);
}

.score-breakdown-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.score-row:last-child {
  border-bottom: none;
}

.score-row-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.score-row-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.score-row-value.positive {
  color: var(--success);
}

.score-row-value.negative {
  color: var(--danger);
}

.score-row.total {
  border-top: 1px solid rgba(34, 139, 34, 0.2);
  margin-top: 4px;
  padding-top: 10px;
}

.score-row.total .score-row-label {
  font-weight: 700;
  color: var(--text);
}

.score-row.total .score-row-value {
  font-size: 18px;
  color: var(--accent-light);
}

/* Case summary stats */
.case-summary {
  background: var(--card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  width: 100%;
  max-width: 320px;
  margin-bottom: 20px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(34, 139, 34, 0.06);
}

.case-summary-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.case-summary-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.case-stat {
  text-align: center;
}

.case-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.case-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Verdict action buttons */
.verdict-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 320px;
}

.verdict-buttons .btn-glass {
  font-size: 15px;
  padding: 14px 24px;
  text-align: center;
}


/* ====== NOTEBOOK PANEL — Slide-in from Right ====== */
.notebook-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 360px;
  background: rgba(26, 22, 16, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--border);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: -8px 0 48px rgba(0, 0, 0, 0.5);
}

.notebook-panel.open {
  transform: translateX(0);
}

.notebook-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.notebook-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.notebook-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  padding-top: max(14px, var(--sat, env(safe-area-inset-top, 14px)));
  border-bottom: 1px solid rgba(34, 139, 34, 0.15);
  flex-shrink: 0;
}

.notebook-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.notebook-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(34, 139, 34, 0.12);
  border: 1px solid rgba(34, 139, 34, 0.3);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.notebook-close:active {
  background: rgba(34, 139, 34, 0.25);
}

.notebook-entries {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 10px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notebook-entry {
  background: rgba(46, 38, 28, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(34, 139, 34, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
}

.notebook-entry-round {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-light);
  margin-bottom: 4px;
}

.notebook-entry-question {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.4;
}

.notebook-entry-answer {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.notebook-entry-result {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 6px;
}

.notebook-entry-result.correct {
  background: rgba(76, 175, 80, 0.15);
  color: var(--success);
}

.notebook-entry-result.wrong {
  background: rgba(255, 82, 82, 0.15);
  color: var(--danger);
}

/* Legal concept tag */
.notebook-concept {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(34, 139, 34, 0.12);
  color: var(--accent-light);
  border: 1px solid rgba(34, 139, 34, 0.25);
  margin-right: 4px;
  margin-top: 6px;
}


/* ====== LIFELINE PANEL ====== */
.lifeline-panel {
  display: flex;
  gap: 6px;
  padding: 4px 10px;
  flex-shrink: 0;
  justify-content: center;
}

.lifeline-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(46, 38, 28, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(34, 139, 34, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.lifeline-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 14px 14px 0 0;
}

.lifeline-btn:active {
  transform: scale(0.92);
  background: rgba(34, 139, 34, 0.15);
  border-color: rgba(34, 139, 34, 0.5);
}

.lifeline-btn:hover:not(.used) {
  border-color: rgba(34, 139, 34, 0.5);
  box-shadow: 0 0 16px rgba(34, 139, 34, 0.15);
}

.lifeline-btn .lifeline-icon {
  font-size: 18px;
  margin-bottom: 1px;
}

.lifeline-btn .lifeline-label {
  font-size: 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Used lifeline — dimmed, disabled */
.lifeline-btn.used {
  opacity: 0.3;
  pointer-events: none;
  filter: grayscale(0.6);
}

.lifeline-btn.used::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 22, 16, 0.4);
  border-radius: 14px;
}


/* ====== TIMER BAR ====== */
.timer-bar-container {
  position: relative;
  width: 80%;
  max-width: 280px;
  height: 24px;
  margin: 2px auto;
  background: rgba(46, 38, 28, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(34, 139, 34, 0.3);
  overflow: hidden;
}

.timer-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 12px;
  transition: width 1s linear;
}

.timer-bar-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Warning — under 10s */
.timer-bar-container.warning {
  border-color: rgba(255, 193, 7, 0.4);
  animation: pulse 1.5s infinite;
}

.timer-bar-container.warning .timer-bar-fill {
  background: linear-gradient(90deg, var(--warning), #FFD54F);
}

.timer-bar-container.warning .timer-bar-text {
  color: var(--warning);
}

/* Danger — under 5s */
.timer-bar-container.danger {
  border-color: rgba(255, 82, 82, 0.4);
  animation: pulse 0.8s infinite;
}

.timer-bar-container.danger .timer-bar-fill {
  background: linear-gradient(90deg, var(--danger), #FF8A80);
}

.timer-bar-container.danger .timer-bar-text {
  color: var(--danger);
}


/* ====== ANIMATIONS ====== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

@keyframes slideUpPanel {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow:
      0 6px 24px rgba(0, 0, 0, 0.4),
      0 0 20px rgba(255, 215, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow:
      0 6px 28px rgba(0, 0, 0, 0.4),
      0 0 50px rgba(255, 215, 0, 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }
}

@keyframes slamIn {
  0% { transform: scale(3); opacity: 0; }
  60% { transform: scale(0.9); }
  80% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes chargeSlideIn {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes scoreCount {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes verdictReveal {
  0% { transform: scale(0.5); opacity: 0; filter: blur(10px); }
  60% { transform: scale(1.1); opacity: 1; filter: blur(0); }
  100% { transform: scale(1); }
}

@keyframes gavelSlam {
  0% { transform: rotate(-45deg) scale(1.5); opacity: 0; }
  50% { transform: rotate(0deg) scale(1); opacity: 1; }
  60% { transform: rotate(2deg) scale(0.98); }
  100% { transform: rotate(0deg) scale(1); opacity: 1; }
}


/* ====== UTILITY CLASSES ====== */
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-gold {
  background: linear-gradient(135deg, var(--judge-gold), #F0D78C);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-sm {
  margin-bottom: 8px;
}

.mb-md {
  margin-bottom: 16px;
}

.mb-lg {
  margin-bottom: 24px;
}

.mt-sm {
  margin-top: 8px;
}

.mt-md {
  margin-top: 16px;
}

.mt-lg {
  margin-top: 24px;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-sm {
  gap: 8px;
}

.gap-md {
  gap: 16px;
}


/* ====== LOADING / TRANSITION STATES ====== */
.screen-transition {
  animation: fadeIn 0.4s ease;
}

.screen-exit {
  animation: fadeOut 0.3s ease forwards;
  pointer-events: none;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(34, 139, 34, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
  animation: pulse 2s ease infinite;
}


/* ====== TOKEN COST DISPLAY ====== */
.token-cost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--accent-light);
  font-weight: 600;
}

.token-icon {
  font-size: 14px;
}


/* ====== JURY DELIBERATION SCREEN ====== */
.jury-deliberation-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
  animation: fadeIn 0.5s ease;
  gap: 16px;
}

.deliberation-gavel {
  font-size: 64px;
  animation: gavelSlam 0.6s ease both;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
}

.deliberation-title {
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--judge-gold);
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.4), 0 0 60px rgba(212, 175, 55, 0.15);
  text-align: center;
}

.deliberation-case {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.5px;
}

.deliberation-text {
  font-size: 18px;
  color: var(--text-secondary);
  font-style: italic;
  text-align: center;
  transition: color 0.3s ease, font-weight 0.3s ease;
}

.deliberation-countdown {
  font-size: 72px;
  font-weight: 900;
  color: var(--judge-gold);
  text-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
  animation: pulse 1s ease infinite;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.deliberation-countdown.pulse-once {
  animation: pulseOnce 0.4s ease;
}

.deliberation-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.delib-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--judge-gold);
  opacity: 0.4;
  animation: pulse 1.5s ease infinite;
}

.delib-dot:nth-child(2) {
  animation-delay: 0.3s;
}

.delib-dot:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes pulseOnce {
  0% { transform: scale(1.3); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}


/* ====== VERDICT ANNOUNCEMENT ====== */
.verdict-announcement {
  width: 100%;
  max-width: 320px;
  padding: 16px;
  margin-bottom: 12px;
  text-align: center;
}

.verdict-foreperson {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 12px;
}

.verdict-reading {
  font-size: 16px;
  color: var(--judge-gold);
  font-style: italic;
  line-height: 1.6;
  min-height: 52px;
}

.verdict-title-reveal {
  font-size: 36px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 8px;
}

.verdict-title-reveal.verdictReveal {
  animation: verdictReveal 0.6s ease both;
}

.verdict-won .verdict-title-reveal {
  color: var(--success);
  text-shadow: 0 0 30px rgba(76, 175, 80, 0.5), 0 0 60px rgba(76, 175, 80, 0.2);
}

.verdict-lost .verdict-title-reveal {
  color: var(--danger);
  text-shadow: 0 0 30px rgba(255, 82, 82, 0.5), 0 0 60px rgba(255, 82, 82, 0.2);
}

.verdict-description {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 300px;
  line-height: 1.5;
  margin-bottom: 12px;
}


/* ====== SAFE AREA SUPPORT ====== */
/* Note: Most safe-area insets are set inline on each element.
   This block only covers elements that don't set their own. */
@supports (padding: env(safe-area-inset-top)) {
  .evidence-panel {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}


/* ====== SCROLLBAR STYLING ====== */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(34, 139, 34, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(34, 139, 34, 0.5);
}


/* ====== CONFIRM DIALOG ====== */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 600;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.confirm-dialog {
  background: var(--card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 300px;
  text-align: center;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(34, 139, 34, 0.1);
  animation: slideUp 0.3s ease;
}

.confirm-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.confirm-message {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.confirm-buttons {
  display: flex;
  gap: 10px;
}

.confirm-buttons .btn-glass {
  flex: 1;
  font-size: 14px;
  padding: 12px 16px;
  text-align: center;
}


/* ====== TOAST / NOTIFICATION ====== */
.toast {
  position: fixed;
  top: max(20px, var(--sat, env(safe-area-inset-top, 20px)));
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  z-index: 700;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(34, 139, 34, 0.1);
  animation: slideDown 0.3s ease, fadeOut 0.3s ease 2.5s forwards;
  pointer-events: none;
}

.toast.toast-success {
  border-color: rgba(76, 175, 80, 0.4);
  color: var(--success);
}

.toast.toast-error {
  border-color: rgba(255, 82, 82, 0.4);
  color: var(--danger);
}

.toast.toast-warning {
  border-color: rgba(255, 193, 7, 0.4);
  color: var(--warning);
}

/* ====== JURY FAVOR BAR (TUG-OF-WAR) ====== */
.jury-favor-bar {
  width: 100%;
  margin: 0;
  flex-shrink: 0;
}

.jury-favor-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  margin-bottom: 2px;
}

.jury-favor-defendant {
  color: var(--prosecution-red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.jury-favor-plaintiff {
  color: var(--defense-blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.jury-favor-status {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.jury-favor-track {
  position: relative;
  width: 100%;
  height: 12px;
  background: rgba(46, 38, 28, 0.6);
  border-radius: 7px;
  border: 1px solid rgba(34, 139, 34, 0.15);
  overflow: hidden;
}

.jury-favor-center-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(-50%);
  z-index: 2;
}

.jury-favor-fill-defendant {
  position: absolute;
  top: 0;
  height: 100%;
  background: linear-gradient(to left, transparent, var(--prosecution-red));
  opacity: 0.6;
  border-radius: 7px 0 0 7px;
  transition: width 0.6s ease;
}

.jury-favor-fill-plaintiff {
  position: absolute;
  top: 0;
  height: 100%;
  background: linear-gradient(to right, transparent, var(--defense-blue));
  opacity: 0.6;
  border-radius: 0 7px 7px 0;
  transition: width 0.6s ease;
}

.jury-favor-indicator {
  position: absolute;
  top: -1px;
  width: 10px;
  height: 14px;
  background: #fff;
  border-radius: 3px;
  transform: translateX(-50%);
  z-index: 3;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
  transition: left 0.6s ease;
}

/* ====== ROUND TYPE BADGE ====== */
.round-type-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.round-type-cross_exam {
  background: rgba(198, 40, 40, 0.15);
  color: #EF5350;
  border: 1px solid rgba(198, 40, 40, 0.3);
}

.round-type-witness_exam {
  background: rgba(21, 101, 192, 0.15);
  color: #42A5F5;
  border: 1px solid rgba(21, 101, 192, 0.3);
}

.round-type-evidence_present {
  background: rgba(212, 175, 55, 0.15);
  color: var(--judge-gold);
  border: 1px solid rgba(212, 175, 55, 0.3);
}


/* ====== CROSS EXAMINATION ====== */
.cross-exam-section {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  gap: 10px;
}

.testimony-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.testimony-card {
  padding: 12px 14px;
  border-radius: 14px;
  position: relative;
  animation: slideUp 0.4s ease both;
}

.testimony-speaker {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--accent-light);
  margin-bottom: 4px;
}

.testimony-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  font-style: italic;
}

.object-btn {
  margin-top: 10px;
  width: 100%;
  font-size: 18px;
  padding: 12px 24px;
  letter-spacing: 2px;
}

/* Objection type picker — 3x2 grid */
.objection-prompt {
  padding: 4px 0;
}

.objection-prompt-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.objection-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.objection-type-btn {
  padding: 12px 10px;
  min-height: 44px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s, background 0.2s;
  text-align: center;
  animation: slideUp 0.3s ease both;
}

.objection-type-btn:nth-child(1) { animation-delay: 0.05s; }
.objection-type-btn:nth-child(2) { animation-delay: 0.1s; }
.objection-type-btn:nth-child(3) { animation-delay: 0.15s; }
.objection-type-btn:nth-child(4) { animation-delay: 0.2s; }
.objection-type-btn:nth-child(5) { animation-delay: 0.25s; }
.objection-type-btn:nth-child(6) { animation-delay: 0.3s; }

.objection-type-btn:active {
  transform: scale(0.95);
}

.objection-type-btn:hover {
  border-color: rgba(34, 139, 34, 0.5);
  box-shadow: 0 0 16px rgba(34, 139, 34, 0.12);
}

.objection-type-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.objection-type-btn.correct {
  border-color: var(--success);
  background: rgba(76, 175, 80, 0.12);
  box-shadow: 0 0 16px rgba(76, 175, 80, 0.25);
}

.objection-type-btn.correct .objection-type-label {
  color: var(--success);
}

.objection-type-btn.wrong {
  border-color: var(--danger);
  background: rgba(255, 82, 82, 0.12);
  box-shadow: 0 0 16px rgba(255, 82, 82, 0.25);
}

.objection-type-btn.wrong .objection-type-label {
  color: var(--danger);
}


/* ====== WITNESS EXAMINATION ====== */
.witness-exam-section {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  gap: 8px;
}

.witness-stand-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 0;
}

.question-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.question-option-card {
  padding: 14px 14px;
  min-height: 44px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
  text-align: left;
}

.question-option-card:active {
  transform: scale(0.97);
}

.question-option-card:hover {
  border-color: rgba(34, 139, 34, 0.5);
  box-shadow: 0 0 16px rgba(34, 139, 34, 0.12);
}

.question-option-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  font-style: italic;
}

.question-option-card.selected {
  border-color: var(--accent);
  background: rgba(34, 139, 34, 0.15);
}

.question-option-card.correct {
  border-color: var(--success);
  background: rgba(76, 175, 80, 0.12);
  box-shadow: 0 0 16px rgba(76, 175, 80, 0.25);
}

.question-option-card.wrong {
  border-color: var(--danger);
  background: rgba(255, 82, 82, 0.12);
  box-shadow: 0 0 16px rgba(255, 82, 82, 0.25);
}

.question-option-card.weak {
  border-color: var(--warning);
  background: rgba(255, 193, 7, 0.08);
}


/* ====== EVIDENCE ROUND ====== */
.evidence-round-section {
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  gap: 10px;
}

.evidence-round-label {
  font-size: 13px;
  font-weight: 700;
  color: #FFD700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.evidence-round-choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.evidence-choice-card {
  background: rgba(27, 94, 32, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-top-color: rgba(255, 215, 0, 0.5);
  border-radius: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
  text-align: left;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 30px rgba(27, 94, 32, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.evidence-choice-card:active {
  transform: scale(0.97);
}

.evidence-choice-card:hover {
  border-color: rgba(255, 215, 0, 0.55);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4), 0 0 35px rgba(255, 215, 0, 0.12);
}

.evidence-choice-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.evidence-choice-card .evidence-type-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.evidence-choice-title {
  font-size: 14px;
  font-weight: 900;
  color: #FFD700;
  flex: 1;
  min-width: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.evidence-choice-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  padding-left: 28px;
}

.evidence-choice-card.selected {
  border-color: rgba(255, 215, 0, 0.6);
  background: rgba(27, 94, 32, 0.3);
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.2), 0 6px 24px rgba(0, 0, 0, 0.4);
}

.evidence-choice-card.correct {
  border-color: var(--success);
  background: rgba(76, 175, 80, 0.2);
  box-shadow: 0 0 25px rgba(76, 175, 80, 0.3), 0 6px 24px rgba(0, 0, 0, 0.3);
}

.evidence-choice-card.wrong {
  border-color: var(--danger);
  background: rgba(255, 82, 82, 0.2);
  box-shadow: 0 0 25px rgba(255, 82, 82, 0.3), 0 6px 24px rgba(0, 0, 0, 0.3);
}

.evidence-choice-card.weak {
  border-color: var(--warning);
  background: rgba(255, 193, 7, 0.12);
  box-shadow: 0 0 20px rgba(255, 193, 7, 0.15), 0 6px 24px rgba(0, 0, 0, 0.3);
}


/* ====== WRONG ANSWER DRAMA NARRATION ====== */
.drama-narration {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 450;
  padding: 32px;
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
  font-style: italic;
}


/* ====== RESULT CARD LAYOUT ====== */
.round-result {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 10px 12px;
  animation: slideUp 0.3s ease;
}

.result-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  margin-bottom: 4px;
}

.result-badge {
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.result-badge.correct {
  color: var(--success);
  text-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
}

.result-badge.wrong {
  color: var(--danger);
  text-shadow: 0 0 20px rgba(255, 82, 82, 0.4);
}

.result-points {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-light);
  white-space: nowrap;
}

.result-scroll-area {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.result-explanation {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 8px 0;
  cursor: pointer;
  white-space: pre-line;
}

.result-concepts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-bottom: 8px;
}

.next-round-btn {
  width: 100%;
  font-size: 16px;
  padding: 14px 24px;
  flex-shrink: 0;
  margin-top: 8px;
}


/* ====== OBJECTION TYPE IN OVERLAY ====== */
.objection-type {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 12px;
  animation: slideUp 0.3s ease 0.5s both;
}

.objection-dismiss-btn {
  margin-top: 20px;
  font-size: 14px;
  padding: 10px 32px;
}


/* ====== SCREEN SHAKE (WRONG ANSWER) ====== */
@keyframes screenShake {
  0%, 100% { transform: translateX(0); }
  10% { transform: translateX(-6px) rotate(-0.5deg); }
  20% { transform: translateX(6px) rotate(0.5deg); }
  30% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  50% { transform: translateX(-3px); }
  60% { transform: translateX(3px); }
  70% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
  90% { transform: translateX(-1px); }
}

.screen-shake {
  animation: screenShake 0.5s ease-in-out;
}

/* ====== WRONG ANSWER RED FLASH ====== */
@keyframes wrongFlash {
  0% { opacity: 0; }
  20% { opacity: 0.3; }
  100% { opacity: 0; }
}

.wrong-flash {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(255, 40, 40, 0.4), rgba(200, 0, 0, 0.15));
  pointer-events: none;
  z-index: 999;
  animation: wrongFlash 0.6s ease-out forwards;
}

/* ====== EVIDENCE IMPACT TOAST ====== */
@keyframes toastSlideUp {
  0% { opacity: 0; transform: translateY(20px); }
  15% { opacity: 1; transform: translateY(0); }
  85% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-10px); }
}

.evidence-impact-toast {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 16px;
  text-align: center;
  z-index: 50;
  animation: toastSlideUp 3s ease forwards;
  backdrop-filter: blur(var(--glass-blur));
  min-width: 200px;
}

.evidence-impact-toast.positive {
  border-color: rgba(76, 175, 80, 0.5);
}

.evidence-impact-toast.negative {
  border-color: rgba(255, 82, 82, 0.5);
}

.impact-timing {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.evidence-impact-toast.positive .impact-timing {
  color: var(--success);
}

.evidence-impact-toast.negative .impact-timing {
  color: var(--danger);
}

.impact-numbers {
  display: flex;
  gap: 12px;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.impact-positive {
  color: var(--success);
}

.impact-negative {
  color: var(--danger);
}


/* ====== ACTION MENU — Player-driven courtroom action selection ====== */

.action-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 12px;
  animation: slideUp 0.3s ease;
}

.action-menu-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.action-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 10px;
  background: rgba(27, 94, 32, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-top-color: rgba(255, 215, 0, 0.45);
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  animation: slideUp 0.3s ease both;
  text-align: center;
  min-height: 100px;
}

/* Inner glass shine */
.action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 15px 15px 0 0;
}

.action-card:active {
  transform: scale(0.95);
}

.action-card:hover {
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.35),
    0 0 30px rgba(255, 215, 0, 0.1);
}

.action-card.selected {
  border-color: rgba(255, 215, 0, 0.6);
  background: rgba(27, 94, 32, 0.25);
  box-shadow:
    0 0 25px rgba(255, 215, 0, 0.2),
    0 6px 24px rgba(0, 0, 0, 0.35);
}

.action-card-icon {
  font-size: 28px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.action-card-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}

.action-card-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
  max-height: 2.6em;
  overflow: hidden;
}

/* Rest Case button — subdued secondary style */
.rest-case-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 280px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 215, 0, 0.5);
  background: rgba(27, 94, 32, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 12px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.15s, border-color 0.2s, color 0.2s;
}

.rest-case-btn:hover {
  color: var(--text-secondary);
  border-color: rgba(34, 139, 34, 0.3);
}

.rest-case-btn:active {
  transform: scale(0.96);
}

.rest-case-btn.rest-case-denied {
  animation: headShake 0.5s ease;
}

/* Rest case tooltip */
.rest-case-tooltip {
  font-size: 12px;
  color: var(--warning);
  text-align: center;
  padding: 6px 12px;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.25);
  border-radius: 8px;
  animation: slideUp 0.3s ease;
}

/* Headshake animation for denied rest case */
@keyframes headShake {
  0% { transform: translateX(0); }
  10% { transform: translateX(-6px); }
  20% { transform: translateX(5px); }
  30% { transform: translateX(-4px); }
  40% { transform: translateX(3px); }
  50% { transform: translateX(-2px); }
  60% { transform: translateX(0); }
}

/* ====== ATTORNEY SELECT SCREEN ====== */

.attorney-select {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 16px;
}

.attorney-select-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.attorney-select-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  letter-spacing: 0.5px;
}

/* Case select screen title spacing */
.case-select > .screen-title-block {
  padding: 12px 0 4px;
  flex-shrink: 0;
}

.attorney-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
}

.attorney-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 10px 14px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.25s, box-shadow 0.25s, opacity 0.3s;
  animation: slideUp 0.3s ease both;
  text-align: center;
}

.attorney-card:active {
  transform: scale(0.96);
}

.attorney-card.selected {
  border-color: var(--judge-gold);
  box-shadow:
    0 0 24px rgba(212, 175, 55, 0.35),
    0 0 48px rgba(212, 175, 55, 0.15),
    0 6px 24px rgba(0, 0, 0, 0.35);
}

.attorney-card.dimmed {
  opacity: 0.35;
  pointer-events: none;
}

.attorney-portrait {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid var(--judge-gold);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.attorney-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.attorney-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.attorney-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.3px;
}

.attorney-specialty {
  font-size: 11px;
  font-weight: 600;
  color: var(--judge-gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.attorney-trait {
  font-size: 11px;
  color: var(--text-secondary);
  font-style: italic;
}

/* ====== CASE MATCHUP SCREEN ====== */

.matchup-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 24px 20px;
  gap: 20px;
  text-align: center;
}

.matchup-header-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.matchup-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--judge-gold);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.matchup-case-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #FFFFFF, var(--judge-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.matchup-parties {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.matchup-judge-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.matchup-judge-portrait {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--judge-gold);
  overflow: hidden;
  box-shadow:
    0 0 24px rgba(212, 175, 55, 0.35),
    0 4px 16px rgba(0, 0, 0, 0.4);
}

.matchup-judge-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.matchup-judge-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--judge-gold);
}

.matchup-judge-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.matchup-versus {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.matchup-attorney-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.matchup-attorney-portrait {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid var(--text-muted);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.matchup-attorney-portrait.role-prosecutor {
  border-color: var(--defense-blue);
  box-shadow:
    0 0 20px rgba(21, 101, 192, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.4);
}

.matchup-attorney-portrait.role-defense {
  border-color: var(--prosecution-red);
  box-shadow:
    0 0 20px rgba(198, 40, 40, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.4);
}

.matchup-attorney-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.matchup-attorney-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.matchup-attorney-role {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.matchup-attorney-card.role-prosecutor .matchup-attorney-role {
  color: var(--defense-blue);
}

.matchup-attorney-card.role-defense .matchup-attorney-role {
  color: var(--prosecution-red);
}

.matchup-vs-text {
  font-size: 36px;
  font-weight: 900;
  color: var(--prosecution-red);
  text-shadow: 0 2px 12px rgba(198, 40, 40, 0.5);
  flex-shrink: 0;
  animation: slamIn 0.5s ease both;
  animation-delay: 0.3s;
}

.matchup-enter-btn {
  margin-top: 12px;
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  animation: glowPulse 2s ease-in-out infinite;
}

/* Verdict judge name */
.case-summary-judge {
  font-size: 13px;
  color: var(--judge-gold);
  font-weight: 600;
  font-style: italic;
}

/* ====== JURY BOX ====== */
.jury-box {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 0;
  margin: 4px 0;
}

.juror-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.juror-reaction {
  position: absolute;
  top: -14px;
  right: -6px;
  font-size: 0.75em;
  animation: jurorReact 2s ease-out forwards;
}

@keyframes jurorReact {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  50% { opacity: 1; transform: translateY(-8px) scale(1.2); }
  100% { opacity: 0; transform: translateY(-16px) scale(0.8); }
}

/* ====== WITNESS CREDIBILITY ====== */
.witness-credibility {
  font-size: 0.82em;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  text-align: center;
  margin: 4px 0;
}

/* ====== LIFELINE RESULT ====== */
.lifeline-result {
  padding: 6px 12px;
  margin: 4px 0;
}

.lifeline-result-text {
  font-size: 0.8em;
  color: var(--text-secondary);
  background: rgba(34, 139, 34, 0.08);
  border: 1px solid rgba(34, 139, 34, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  line-height: 1.4;
}

/* ====== EVIDENCE LOCKED ====== */
.evidence-card.evidence-locked {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.5);
}

.evidence-locked-label {
  font-size: 0.78em;
  color: var(--text-muted);
  font-style: italic;
}

/* ====== CASE LOCKED (GamePass gating) ====== */
.case-locked {
  opacity: 0.4;
  position: relative;
  pointer-events: auto;
}

.case-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  z-index: 10;
}

.case-lock-overlay .lock-label {
  color: #FFD700;
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
