/* ═══════════════════════════════════════════════════════════════
   BADGE & BULL**** — Police Report Simulator
   styles.css — AAA Photo-Realistic Dark UI
   happystoner5420 Games!
═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Palette */
  --bg:           #0a0b0e;
  --surface:      #111318;
  --surface2:     #181c24;
  --surface3:     #1e2330;
  --border:       #2a2f3d;
  --border-bright:#3a4155;
  --text:         #e8eaf0;
  --text-muted:   #6b7385;
  --text-dim:     #9aa0b2;
  --accent:       #3a7bd5;
  --accent-glow:  #3a7bd566;
  --gold:         #d4a843;
  --gold-glow:    #d4a84344;
  --red:          #c0392b;
  --red-glow:     #c0392b44;
  --green:        #27ae60;
  --green-glow:   #27ae6044;
  --orange:       #e67e22;
  --purple:       #8e44ad;
  --cyan:         #00b4d8;
  --paper:        #f5f0e8;
  --paper-line:   #d4c9b0;
  --ink:          #1a1a2e;

  /* Fonts */
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Courier New', 'Courier', monospace;
  --font-display: 'Impact', 'Arial Narrow', sans-serif;
}

html, body {
  width: 100%; height: 100%;
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  user-select: none;
}

/* ── Screens ── */
.screen {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10;
}
.screen.active { display: flex; }
.overlay-screen { z-index: 100; background: rgba(0,0,0,0.75); align-items: center; justify-content: center; }

/* ── Scanlines overlay ── */
.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 5;
}

/* ══════════════════════════════════════════
   MAIN MENU
══════════════════════════════════════════ */
#screen-mainmenu {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mm-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, #1a2a4a 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, #2a0a0a 0%, transparent 50%),
    linear-gradient(180deg, #0a0b0e 0%, #0c0f16 100%);
  z-index: 0;
}

/* City skyline silhouette behind the menu using box shadows + clip */
.mm-bg-overlay::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  background:
    /* building silhouettes as gradient layers */
    linear-gradient(180deg, transparent 60%, #06080d 100%);
  z-index: 1;
}

.mm-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.mm-badge-icon {
  font-size: 72px;
  filter: drop-shadow(0 0 24px #3a7bd5aa) drop-shadow(0 0 60px #3a7bd533);
  animation: badge-pulse 3s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%,100% { filter: drop-shadow(0 0 24px #3a7bd5aa) drop-shadow(0 0 60px #3a7bd533); }
  50%      { filter: drop-shadow(0 0 36px #3a7bd5cc) drop-shadow(0 0 80px #3a7bd555); }
}

.mm-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 8vw, 80px);
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--text);
  text-shadow:
    0 0 20px var(--accent-glow),
    0 0 60px var(--accent-glow),
    2px 2px 0 rgba(0,0,0,0.8);
  line-height: 1;
}

.mm-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 8px 24px;
}

.mm-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 340px;
  margin-top: 12px;
}

/* ── Buttons ── */
.mm-btn {
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 14px 28px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
  overflow: hidden;
}
.mm-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transition: left 0.4s ease;
}
.mm-btn:hover::before { left: 160%; }

.btn-primary {
  background: linear-gradient(135deg, #2a5fbb 0%, #3a7bd5 50%, #2a5fbb 100%);
  color: #fff;
  border: 1px solid #4a8ae0;
  box-shadow: 0 4px 20px #3a7bd544, inset 0 1px 0 rgba(255,255,255,0.1);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #3a6fd5 0%, #4a8be8 50%, #3a6fd5 100%);
  box-shadow: 0 6px 28px #3a7bd566, inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 10px #3a7bd544; }

.btn-secondary {
  background: linear-gradient(135deg, #1a1f2e 0%, #222838 100%);
  color: var(--text-dim);
  border: 1px solid var(--border-bright);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.btn-secondary:hover {
  background: linear-gradient(135deg, #222838 0%, #2a3248 100%);
  color: var(--text);
  border-color: #4a5572;
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, #7a1a1a 0%, #a02020 50%, #7a1a1a 100%);
  color: #ffaaaa;
  border: 1px solid #c03030;
  box-shadow: 0 4px 20px #c0392b22;
}
.btn-danger:hover {
  background: linear-gradient(135deg, #a02020 0%, #c03030 50%, #a02020 100%);
  color: #fff;
  box-shadow: 0 6px 28px #c0392b44;
  transform: translateY(-1px);
}

.btn-sm { font-size: 12px; padding: 8px 16px; letter-spacing: 1.5px; width: 100%; }

.mm-version {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 1px;
}

/* ══════════════════════════════════════════
   MODAL PANELS (How to Play, Credits, Intro)
══════════════════════════════════════════ */
#screen-howtoplay, #screen-credits, #screen-intro {
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.modal-panel {
  position: relative;
  z-index: 10;
  background: linear-gradient(180deg, #13181f 0%, #0e1218 100%);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  padding: 36px 40px;
  width: min(680px, 94vw);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 20px 60px rgba(0,0,0,0.7),
    0 0 80px var(--accent-glow);
}
.wide-panel { width: min(780px, 96vw); }
.small-panel { width: min(480px, 94vw); }

.modal-panel::-webkit-scrollbar { width: 6px; }
.modal-panel::-webkit-scrollbar-track { background: #0a0b0e; }
.modal-panel::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 3px; }

.panel-title {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 3px;
  color: var(--text);
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  text-shadow: 0 0 20px var(--accent-glow);
}

/* How To Play */
.htp-body p { font-size: 14px; color: var(--text-dim); line-height: 1.7; margin-bottom: 16px; }
.htp-tag { color: var(--gold); font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; }
.htp-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.htp-list li { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; padding: 8px 12px; background: var(--surface2); border-left: 3px solid var(--accent); border-radius: 0 4px 4px 0; }
.htp-list li strong { color: var(--text); }
.htp-tip { font-size: 13px; color: var(--text-muted); background: var(--surface3); padding: 10px 14px; border-radius: 4px; border: 1px solid var(--border); }

/* Credits */
.credits-body { text-align: center; }
.credits-studio { font-family: var(--font-display); font-size: 32px; color: var(--gold); letter-spacing: 4px; text-shadow: 0 0 20px var(--gold-glow); }
.credits-tagline { font-size: 13px; color: var(--text-muted); font-style: italic; margin: 8px 0 24px; }
.credits-scroll { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.credits-role { font-size: 11px; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; margin-top: 16px; }
.credits-name { font-size: 15px; color: var(--text); font-weight: 600; }
.credits-disclaimer { font-size: 11px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 16px; margin-top: 8px; line-height: 1.6; }

/* Intro screen */
.intro-flavor { font-size: 14px; color: var(--text-dim); line-height: 1.7; margin-bottom: 24px; padding: 12px 16px; background: var(--surface2); border-radius: 4px; border-left: 3px solid var(--gold); }
.intro-flavor strong { color: var(--text); }
.form-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.form-row label { font-size: 12px; color: var(--text-muted); letter-spacing: 1.5px; text-transform: uppercase; min-width: 110px; font-weight: 600; }
.text-input, .select-input {
  flex: 1;
  background: var(--surface3);
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  color: var(--text);
  font-size: 14px;
  padding: 9px 12px;
  font-family: var(--font-main);
  outline: none;
  transition: border-color 0.2s;
}
.text-input:focus, .select-input:focus { border-color: var(--accent); }
.select-input option { background: var(--surface2); }

.chief-intro { display: flex; gap: 16px; align-items: flex-start; margin-top: 24px; padding: 16px; background: var(--surface2); border-radius: 6px; border: 1px solid var(--border); }
.npc-portrait { font-size: 48px; flex-shrink: 0; line-height: 1; }
.npc-speech { flex: 1; }
.npc-name { font-size: 11px; color: var(--accent); letter-spacing: 2px; text-transform: uppercase; font-weight: 700; margin-bottom: 6px; }
.npc-speech p { font-size: 13.5px; color: var(--text-dim); line-height: 1.7; font-style: italic; }

.intro-actions { display: flex; gap: 12px; margin-top: 24px; justify-content: flex-end; }
.intro-actions .mm-btn { min-width: 180px; }

/* ══════════════════════════════════════════
   GAME SCREEN
══════════════════════════════════════════ */
#screen-game {
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 56px;
  background: linear-gradient(90deg, #0e1218 0%, #13181f 50%, #0e1218 100%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
  flex-shrink: 0;
  z-index: 20;
  position: relative;
}
.header-left { display: flex; align-items: center; gap: 12px; }
.header-badge { font-size: 24px; filter: drop-shadow(0 0 8px #3a7bd588); }
.header-officer-info { display: flex; flex-direction: column; }
.header-name { font-size: 13px; font-weight: 700; color: var(--text); }
.header-rank { font-size: 11px; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.header-center { display: flex; gap: 28px; }
.header-stat { display: flex; flex-direction: column; align-items: center; }
.stat-label { font-size: 9px; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; }
.stat-val { font-size: 20px; font-weight: 700; color: var(--text); font-family: var(--font-mono); }
.rep-val { color: var(--gold); text-shadow: 0 0 10px var(--gold-glow); }
.hdr-btn {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 14px;
  background: var(--surface2);
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.hdr-btn:hover { color: var(--text); border-color: var(--red); background: rgba(192,57,43,0.1); }

/* Game Body Layout */
.game-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  gap: 0;
}

/* ── Panels ── */
.panel-left, .panel-right {
  width: 280px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.panel-right { border-right: none; border-left: 1px solid var(--border); }

.panel-left::-webkit-scrollbar,
.panel-right::-webkit-scrollbar { width: 4px; }
.panel-left::-webkit-scrollbar-thumb,
.panel-right::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 2px; }

.panel-section { border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.panel-label {
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}

/* Crime info */
.crime-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 2px;
  background: var(--red);
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.crime-title { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.3; margin-bottom: 4px; }
.crime-case-num { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }
.crime-location { font-size: 13px; color: var(--text-dim); }
.crime-time { font-size: 13px; color: var(--text-dim); font-family: var(--font-mono); }

/* Suspects, Witnesses, Evidence lists */
.suspects-list, .witnesses-list { display: flex; flex-direction: column; gap: 6px; }
.suspect-card, .witness-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 7px 10px;
}
.suspect-name { font-size: 12px; font-weight: 700; color: var(--text); }
.suspect-detail { font-size: 11px; color: var(--text-muted); line-height: 1.5; }
.suspect-status { display: inline-block; font-size: 10px; padding: 2px 6px; border-radius: 2px; margin-top: 3px; font-weight: 600; }
.status-detained { background: #4a1a1a; color: #ff9999; }
.status-fled    { background: #3a2a0a; color: #ffcc66; }
.status-suspect { background: #1a2a4a; color: #99ccff; }
.status-witness { background: #1a3a1a; color: #99ff99; }

.evidence-list { display: flex; flex-direction: column; gap: 4px; }
.evidence-item { font-size: 11px; color: var(--text-dim); padding: 4px 8px; background: var(--surface3); border-radius: 3px; border-left: 2px solid var(--accent); }

.scene-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; font-style: italic; }

/* ── Center / Report Panel ── */
.panel-center {
  flex: 1;
  overflow-y: auto;
  background: linear-gradient(180deg, #1a1a2a 0%, #141420 100%);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.panel-center::-webkit-scrollbar { width: 6px; }
.panel-center::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 3px; }

/* The actual paper-like report form */
.report-paper {
  width: 100%;
  max-width: 640px;
  background: var(--paper);
  border-radius: 3px;
  box-shadow:
    0 0 0 1px #ccc8bb,
    4px 4px 0 rgba(0,0,0,0.3),
    8px 8px 0 rgba(0,0,0,0.2),
    0 20px 60px rgba(0,0,0,0.6);
  overflow: hidden;
}

.report-header-stamp {
  background: linear-gradient(135deg, #1a1a3a 0%, #0e1030 100%);
  padding: 16px 20px;
  text-align: center;
  border-bottom: 3px double #3a3a6a;
}
.report-dept {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 3px;
  color: #c8d0e8;
  text-transform: uppercase;
}
.report-form-label { font-size: 11px; color: #7080a8; letter-spacing: 2px; margin-top: 3px; }
.report-case-ref { font-size: 12px; color: #99aacc; font-family: var(--font-mono); margin-top: 4px; }

.report-field { padding: 16px 20px; border-bottom: 1px dashed var(--paper-line); }
.report-field-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #4a3a2a;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.report-textarea {
  width: 100%;
  min-height: 240px;
  background: transparent;
  border: none;
  border-bottom: 1px dashed var(--paper-line);
  color: var(--ink);
  font-size: 13.5px;
  font-family: var(--font-mono);
  line-height: 2;
  resize: vertical;
  outline: none;
  padding: 4px 0;
  /* Lined paper effect */
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 27px,
    var(--paper-line) 27px,
    var(--paper-line) 28px
  );
  background-attachment: local;
}
.report-textarea::placeholder { color: #a09080; font-style: italic; }
.report-word-count { font-size: 10px; color: #888; text-align: right; margin-top: 4px; font-family: var(--font-mono); }

/* Recommendation grid */
.recommendation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.rec-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #333;
  padding: 6px 10px;
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--paper-line);
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.1s;
}
.rec-option:hover { background: rgba(58,123,213,0.08); border-color: var(--accent); }
.rec-option input { accent-color: var(--accent); }

/* Signature row */
.report-sign-row { display: flex; gap: 20px; padding: 12px 20px; border-bottom: 1px dashed var(--paper-line); }
.report-sign-field { flex: 1; }
.sign-line { font-family: var(--font-mono); font-size: 13px; color: var(--ink); border-bottom: 1px solid #888; padding: 2px 0 4px; min-height: 24px; }

.submit-btn {
  width: calc(100% - 40px);
  margin: 16px 20px;
  display: block;
  font-size: 14px;
  letter-spacing: 3px;
  padding: 14px;
}

/* ── Right Panel: NPC Reactions ── */
.npc-section { padding-bottom: 12px; }
.npc-label { font-size: 9px; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; font-weight: 700; margin-bottom: 8px; }

.chief-portrait, .judge-portrait {
  font-size: 52px;
  display: block;
  text-align: center;
  margin-bottom: 6px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.npc-mood {
  font-size: 11px;
  text-align: center;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}

.npc-dialog-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 12px;
  position: relative;
}
.npc-dialog-box::before {
  content: '"';
  position: absolute;
  top: -8px; left: 10px;
  font-size: 28px;
  color: var(--border-bright);
  line-height: 1;
}
.npc-dialog-box p { font-size: 12px; color: var(--text-dim); line-height: 1.65; font-style: italic; }

.npc-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* Verdict */
.verdict-section { }
.verdict-box {
  background: linear-gradient(135deg, #0a0f1a, #0d1320);
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  padding: 14px;
  text-align: center;
}
.verdict-suspect { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.verdict-outcome {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 2px;
  margin-bottom: 6px;
  padding: 8px;
  border-radius: 4px;
}
.verdict-outcome.guilty   { color: #ff6666; background: rgba(192,57,43,0.15); border: 1px solid #c0392b; text-shadow: 0 0 10px #c0392b66; }
.verdict-outcome.not-guilty{ color: #66ff99; background: rgba(39,174,96,0.15); border: 1px solid #27ae60; text-shadow: 0 0 10px #27ae6066; }
.verdict-outcome.dismissed { color: var(--gold); background: rgba(212,168,67,0.1); border: 1px solid var(--gold); }
.verdict-outcome.held      { color: #cc88ff; background: rgba(142,68,173,0.15); border: 1px solid #8e44ad; }
.verdict-sentence { font-size: 13px; color: var(--text-dim); margin-top: 6px; }
.verdict-reason { font-size: 11px; color: var(--text-muted); margin-top: 6px; line-height: 1.5; font-style: italic; }

/* Score */
.score-section { padding-top: 8px; }
.score-grid { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.score-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); }
.score-row-val { font-weight: 700; font-family: var(--font-mono); }
.score-row-val.pos { color: var(--green); }
.score-row-val.neg { color: var(--red); }
.score-total { font-size: 14px; font-weight: 700; color: var(--gold); text-align: right; padding-top: 6px; border-top: 1px solid var(--border); font-family: var(--font-mono); margin-bottom: 10px; text-shadow: 0 0 10px var(--gold-glow); }

/* ══════════════════════════════════════════
   TOAST NOTIFICATIONS
══════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--surface2);
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 13px;
  color: var(--text);
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.hidden { display: none; }
.toast.t-success { border-left: 3px solid var(--green); }
.toast.t-error   { border-left: 3px solid var(--red); }
.toast.t-info    { border-left: 3px solid var(--accent); }
.toast.t-gold    { border-left: 3px solid var(--gold); }

/* ══════════════════════════════════════════
   EXIT / RETURN SCREENS
══════════════════════════════════════════ */
.exit-msg { font-size: 14px; color: var(--text-dim); line-height: 1.7; margin-bottom: 24px; text-align: center; }
.exit-actions { display: flex; gap: 12px; justify-content: center; }
.exit-actions .mm-btn { min-width: 180px; }

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-6px); }
  40%     { transform: translateX(6px); }
  60%     { transform: translateX(-4px); }
  80%     { transform: translateX(4px); }
}
@keyframes flash-red {
  0%,100% { box-shadow: 0 0 0 rgba(192,57,43,0); }
  50%     { box-shadow: 0 0 40px rgba(192,57,43,0.6), inset 0 0 40px rgba(192,57,43,0.1); }
}
@keyframes flash-green {
  0%,100% { box-shadow: 0 0 0 rgba(39,174,96,0); }
  50%     { box-shadow: 0 0 40px rgba(39,174,96,0.5), inset 0 0 40px rgba(39,174,96,0.08); }
}
@keyframes gavel-drop {
  0%   { transform: rotate(-40deg) translateY(-20px); }
  60%  { transform: rotate(20deg) translateY(0px); }
  75%  { transform: rotate(10deg); }
  100% { transform: rotate(15deg); }
}
@keyframes slide-in-right {
  from { transform: translateX(30px); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes slide-in-up {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes type-cursor {
  0%,100% { opacity: 1; } 50% { opacity: 0; }
}

.animate-shake     { animation: shake 0.5s ease; }
.animate-flash-red { animation: flash-red 0.8s ease 2; }
.animate-flash-green { animation: flash-green 0.8s ease 2; }
.animate-slide-in  { animation: slide-in-right 0.4s ease; }
.animate-slide-up  { animation: slide-in-up 0.4s ease; }

/* NPC mood color classes */
.mood-happy    { color: var(--green) !important; }
.mood-angry    { color: var(--red) !important; }
.mood-confused { color: var(--orange) !important; }
.mood-amused   { color: var(--gold) !important; }
.mood-disgusted{ color: var(--purple) !important; }

/* Crime category badge colors */
.badge-murder    { background: #8b0000; }
.badge-theft     { background: #5a3a00; color: #ffc; }
.badge-assault   { background: #6a1a1a; }
.badge-drugs     { background: #3a1a5a; }
.badge-fraud     { background: #1a3a5a; }
.badge-domestic  { background: #3a0a3a; }
.badge-other     { background: #1a2a1a; }

/* ── Responsive minimum ── */
@media (max-width: 900px) {
  .panel-left, .panel-right { width: 220px; }
}
@media (max-width: 700px) {
  .game-body { flex-direction: column; }
  .panel-left, .panel-right { width: 100%; height: auto; }
  .panel-center { order: -1; }
}

/* ══════════════════════════════════════════
   CRIME BRIEFING MODAL
══════════════════════════════════════════ */
#screen-briefing {
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow-y: auto;
}

.briefing-panel {
  position: relative;
  z-index: 10;
  width: min(1100px, 98vw);
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: #0e1018;
  border: 1px solid var(--border-bright);
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 30px 80px rgba(0,0,0,0.9),
    0 0 60px rgba(58,123,213,0.12);
  overflow: hidden;
}

/* Header */
.briefing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: linear-gradient(90deg, #0d1020 0%, #111828 50%, #0d1020 100%);
  border-bottom: 2px solid var(--border-bright);
  flex-shrink: 0;
}
.briefing-dept-stamp {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 3px;
  color: #c8d0ee;
  text-transform: uppercase;
}
.briefing-form-sub {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 3px;
}
.briefing-header-right {
  text-align: right;
}
.briefing-case-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 1px;
}
.briefing-severity {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 3px 8px;
  border-radius: 2px;
  margin-top: 4px;
  display: inline-block;
  text-transform: uppercase;
}
.sev-felony-1   { background: #5a0000; color: #ffaaaa; border: 1px solid #8b0000; }
.sev-felony-2   { background: #3a1a00; color: #ffcc88; border: 1px solid #7a3a00; }
.sev-felony-3   { background: #2a2a00; color: #ffee88; border: 1px solid #5a5a00; }
.sev-misdemeanor{ background: #0a1a3a; color: #88aaff; border: 1px solid #1a3a6a; }
.sev-citation   { background: #0a1a0a; color: #88cc88; border: 1px solid #1a3a1a; }
.sev-civil      { background: #1a0a2a; color: #cc88ff; border: 1px solid #3a1a5a; }

/* Crime banner */
.briefing-crime-banner {
  padding: 18px 24px 14px;
  background: linear-gradient(135deg, #111520 0%, #0d1018 100%);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.briefing-cat-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 4px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.briefing-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 3vw, 26px);
  letter-spacing: 2px;
  color: var(--text);
  text-shadow: 0 0 20px rgba(255,100,100,0.2);
  margin-bottom: 8px;
  line-height: 1.2;
}
.briefing-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.briefing-meta span {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}
.briefing-meta span span {
  color: var(--text-dim);
}

/* Body — two columns */
.briefing-body {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.briefing-body::-webkit-scrollbar { width: 5px; }
.briefing-body::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 3px; }

.briefing-col-left {
  border-right: 1px solid var(--border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  background: #0b0d12;
}
.briefing-col-right {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

/* Sections */
.briefing-section {
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.briefing-section:last-child { border-bottom: none; }
.briefing-section-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* Charges */
.brief-charges-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.brief-charge-item {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffcccc;
  background: rgba(192,57,43,0.12);
  border: 1px solid rgba(192,57,43,0.3);
  border-left: 3px solid var(--red);
  border-radius: 0 3px 3px 0;
  padding: 6px 10px;
  letter-spacing: 0.5px;
}

/* Victim */
.brief-victim-text {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.6;
  background: rgba(139,0,0,0.1);
  border: 1px solid rgba(139,0,0,0.3);
  border-radius: 4px;
  padding: 8px 10px;
}

/* Suspects */
.brief-suspects-list,
.brief-witnesses-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.brief-suspect-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 12px;
  position: relative;
}
.brief-suspect-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 4px 0 0 4px;
  background: var(--red);
}
.brief-witness-card::before { background: var(--accent) !important; }
.brief-suspect-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.brief-suspect-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 5px;
  font-family: var(--font-mono);
}
.brief-suspect-desc {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.55;
}
.brief-status-pill {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 2px 7px;
  border-radius: 2px;
  text-transform: uppercase;
  margin-top: 5px;
}

/* Evidence */
.brief-evidence-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brief-evidence-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-dim);
  padding: 5px 8px;
  background: var(--surface3);
  border-radius: 3px;
  border-left: 2px solid var(--accent);
}
.brief-evidence-item::before {
  content: '📦';
  font-size: 11px;
  flex-shrink: 0;
}

/* Scene & narrative */
.brief-scene-text {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.75;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
  font-style: italic;
  border-left: 3px solid var(--gold);
}
.brief-narrative-text {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.75;
  padding: 10px 14px;
  background: linear-gradient(135deg, #0d1018, #0b0d12);
  border: 1px solid var(--border);
  border-radius: 4px;
  border-left: 3px solid var(--accent);
  white-space: pre-line;
}

/* Officer notes textarea */
.brief-notes-textarea {
  width: 100%;
  min-height: 120px;
  background: #12150d;
  border: 1px solid #2a3a1a;
  border-radius: 4px;
  color: #aaffaa;
  font-size: 12.5px;
  font-family: var(--font-mono);
  line-height: 1.7;
  padding: 10px 12px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}
.brief-notes-textarea:focus {
  border-color: #3a6a2a;
  box-shadow: 0 0 0 1px #3a6a2a44;
}
.brief-notes-textarea::placeholder { color: #3a5a3a; font-style: italic; }

/* Footer */
.briefing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: linear-gradient(90deg, #0d1020 0%, #111828 50%, #0d1020 100%);
  border-top: 1px solid var(--border-bright);
  flex-shrink: 0;
  gap: 16px;
  flex-wrap: wrap;
}
.briefing-footer-left {
  flex: 1;
}
.briefing-warn {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.5px;
  line-height: 1.5;
}
.briefing-footer-right {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.briefing-footer-right .mm-btn {
  min-width: 160px;
  padding: 12px 20px;
}

/* Responsive */
@media (max-width: 760px) {
  .briefing-body { grid-template-columns: 1fr; }
  .briefing-col-left { border-right: none; border-bottom: 1px solid var(--border); }
}

