/* ═══════════════════════════════════════════════════════
   INTERROGATION — 심문실 테마 CSS
   CRT 모니터 / 네온 / 누아르 스타일
═══════════════════════════════════════════════════════ */

/* ─── CSS 변수 ─────────────────────────────────────── */
:root {
  --bg:          #0a0a0a;
  --surface:     #111111;
  --surface2:    #1a1a1a;
  --red-neon:    #ff2d2d;
  --red-dim:     #8b0000;
  --white-neon:  #e8e8e8;
  --dim:         #555555;
  --safe:        #4488ff;
  --warn:        #ffaa00;
  --danger:      #ff2d2d;

  --font-mono: 'Courier New', 'Lucida Console', monospace;
  --transition-scene: 0.4s ease;
}

/* ─── 리셋 & 기본 ───────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--white-neon);
  font-family: var(--font-mono);
  font-size: 16px;
  overflow: hidden;
}

/* ─── CRT 스캔라인 오버레이 ─────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
}

/* ─── 씬 컨테이너 ───────────────────────────────────── */
.scene {
  display: none;
  position: fixed;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-scene);
}

.scene.active {
  display: flex;
  opacity: 1;
}

.scene.fade-out {
  opacity: 0;
}

.scene.fade-in {
  opacity: 1;
}

/* ══════════════════════════════════════════════════════
   씬 1: 인트로
══════════════════════════════════════════════════════ */
#scene-intro {
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 40px 24px;
  overflow-y: auto;
}

.intro-inner {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* 헤더 */
.intro-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

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

.title-prefix {
  font-size: 16px;
  letter-spacing: 6px;
  color: var(--dim);
  text-transform: uppercase;
}

/* 게임 타이틀 — 네온 글로우 */
.game-title {
  font-family: var(--font-mono);
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 900;
  letter-spacing: 16px;
  text-transform: uppercase;
  color: var(--red-neon);
  text-shadow:
    0 0 10px var(--red-neon),
    0 0 30px var(--red-neon),
    0 0 60px rgba(255, 45, 45, 0.5),
    0 0 100px rgba(255, 45, 45, 0.3);
  animation: neon-flicker 6s infinite;
}

@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow:
      0 0 10px var(--red-neon),
      0 0 30px var(--red-neon),
      0 0 60px rgba(255, 45, 45, 0.5),
      0 0 100px rgba(255, 45, 45, 0.3);
    opacity: 1;
  }
  20%, 24%, 55% {
    text-shadow: none;
    opacity: 0.85;
  }
}

.game-subtitle {
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--dim);
}

.header-deco {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 400px;
}

.deco-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--red-dim));
}

.deco-line:last-child {
  background: linear-gradient(to left, transparent, var(--red-dim));
}

.deco-eye {
  color: var(--red-neon);
  font-size: 18px;
  text-shadow: 0 0 8px var(--red-neon);
}

/* 사건 선택 섹션 */
.case-select-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-label {
  font-size: 16px;
  letter-spacing: 4px;
  color: var(--dim);
  text-transform: uppercase;
  font-weight: normal;
}

/* 사건 카드 그리드 */
#case-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* 사건 카드 — JS가 .case-card 클래스로 생성 */
.case-card {
  background: var(--surface);
  border: 1px solid var(--dim);
  padding: 28px 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.25s,
    transform 0.25s,
    box-shadow 0.25s;
}

.case-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 45, 45, 0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
}

.case-card:hover {
  border-color: var(--red-neon);
  transform: scale(1.03);
  box-shadow:
    0 0 16px rgba(255, 45, 45, 0.35),
    0 0 40px rgba(255, 45, 45, 0.15),
    inset 0 0 20px rgba(255, 45, 45, 0.05);
}

.case-card:hover::before {
  opacity: 1;
}

.case-card-id {
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--dim);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.case-card-name {
  font-size: 18px;
  font-weight: bold;
  color: var(--white-neon);
  margin-bottom: 10px;
  line-height: 1.4;
}

.case-card-difficulty {
  font-size: 16px;
  color: var(--warn);
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.case-card-desc {
  font-size: 18px;
  color: var(--dim);
  line-height: 1.7;
  border-top: 1px solid #222;
  padding-top: 12px;
}

.case-card-detective {
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-size: 16px;
  color: var(--red-dim);
  letter-spacing: 1px;
}

/* 인트로 푸터 */
.intro-footer {
  text-align: center;
}

.footer-text {
  font-size: 16px;
  letter-spacing: 2px;
  color: #333;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════
   씬 2: 심문
══════════════════════════════════════════════════════ */
#scene-interrogation {
  flex-direction: column;
}

.interrogation-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

/* HUD 바 */
.hud-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid #1e1e1e;
  flex-shrink: 0;
}

.hud-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
}

.hud-label {
  font-size: 18px;
  letter-spacing: 3px;
  color: var(--dim);
  text-transform: uppercase;
}

.hud-detective {
  font-size: 18px;
  color: var(--red-neon);
  text-shadow: 0 0 6px rgba(255, 45, 45, 0.6);
}

/* 용의도 게이지 */
.hud-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#suspicion-bar-wrap {
  width: 100%;
  height: 8px;
  background: #1e1e1e;
  border: 1px solid #2a2a2a;
  position: relative;
  overflow: hidden;
}

#suspicion-bar {
  height: 100%;
  width: 50%;
  background: var(--safe);
  transition: width 0.5s ease, background-color 0.5s ease;
  position: relative;
}

#suspicion-bar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  filter: blur(2px);
}

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

.sus-label-left,
.sus-label-right {
  font-size: 18px;
  color: var(--dim);
  letter-spacing: 1px;
}

#suspicion-value {
  font-size: 18px;
  color: var(--white-neon);
  font-weight: bold;
  letter-spacing: 1px;
}

/* 용의도 색상 — JS로 class 조작 */
#suspicion-bar.sus-safe    { background-color: var(--safe); }
#suspicion-bar.sus-warn    { background-color: var(--warn); }
#suspicion-bar.sus-danger  { background-color: var(--danger); }

/* 턴 카운터 */
.hud-right {
  min-width: 80px;
  text-align: right;
}

#turn-counter {
  font-size: 16px;
  color: var(--white-neon);
  letter-spacing: 1px;
  transition: color 0.3s;
}

#turn-counter.urgent {
  color: var(--danger);
  animation: blink 0.8s infinite;
}

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

/* ─── 채팅 영역 ──────────────────────────────────────── */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
  width: 4px;
}
.chat-messages::-webkit-scrollbar-track {
  background: var(--bg);
}
.chat-messages::-webkit-scrollbar-thumb {
  background: var(--red-dim);
  border-radius: 2px;
}

/* 말풍선 공통 */
.bubble {
  max-width: 72%;
  padding: 14px 18px;
  line-height: 1.7;
  font-size: 16px;
  position: relative;
  animation: slide-in 0.3s ease forwards;
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 형사 말풍선 — 좌측, 빨간 테두리 */
.bubble-detective {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--red-dim);
  border-left: 3px solid var(--red-neon);
  box-shadow: -4px 0 12px rgba(255, 45, 45, 0.15);
}

.bubble-detective .bubble-sender {
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--red-neon);
  margin-bottom: 6px;
  text-transform: uppercase;
}

/* 플레이어 말풍선 — 우측, 흰 테두리 */
.bubble-player {
  align-self: flex-end;
  background: var(--surface2);
  border: 1px solid #333;
  border-right: 3px solid var(--white-neon);
  box-shadow: 4px 0 12px rgba(232, 232, 232, 0.05);
}

.bubble-player .bubble-sender {
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--dim);
  margin-bottom: 6px;
  text-transform: uppercase;
  text-align: right;
}

.bubble-text {
  color: var(--white-neon);
}

/* 타이핑 인디케이터 */
.bubble-typing {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
}

.bubble-typing .dot {
  width: 6px;
  height: 6px;
  background: var(--red-dim);
  border-radius: 50%;
  animation: typing-dot 1.2s infinite;
}

.bubble-typing .dot:nth-child(2) { animation-delay: 0.2s; }
.bubble-typing .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-dot {
  0%, 60%, 100% { opacity: 0.2; transform: scale(1); }
  30%           { opacity: 1;   transform: scale(1.3); }
}

/* ─── 기존 JS 클래스명 별칭 (interrogation.js 호환) ─── */
/* chat-bubble--detective = bubble-detective */
.chat-bubble {
  max-width: 72%;
  padding: 14px 18px;
  line-height: 1.7;
  font-size: 16px;
  position: relative;
  animation: slide-in 0.3s ease forwards;
}

.chat-bubble--detective {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--red-dim);
  border-left: 3px solid var(--red-neon);
  box-shadow: -4px 0 12px rgba(255, 45, 45, 0.15);
}

.chat-bubble--player {
  align-self: flex-end;
  background: var(--surface2);
  border: 1px solid #333;
  border-right: 3px solid var(--white-neon);
  box-shadow: 4px 0 12px rgba(232, 232, 232, 0.05);
}

.chat-bubble__name {
  display: block;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.chat-bubble--detective .chat-bubble__name {
  color: var(--red-neon);
}

.chat-bubble--player .chat-bubble__name {
  color: var(--dim);
  text-align: right;
}

.chat-bubble__text {
  color: var(--white-neon);
}

/* 타이핑 인디케이터 (interrogation.js 호환) */
.chat-bubble--typing {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-bubble--typing span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--red-dim);
  border-radius: 50%;
  animation: typing-dot 1.2s infinite;
}

.chat-bubble--typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-bubble--typing span:nth-child(3) { animation-delay: 0.4s; }

/* result.js 호환 클래스 */
.result--innocent {
  border-top-color: var(--safe);
  box-shadow: 0 0 40px rgba(68, 136, 255, 0.1), 0 20px 60px rgba(0, 0, 0, 0.6);
}

.result--undecided {
  border-top-color: var(--warn);
  box-shadow: 0 0 40px rgba(255, 170, 0, 0.1), 0 20px 60px rgba(0, 0, 0, 0.6);
}

.result--guilty {
  border-top-color: var(--danger);
  box-shadow: 0 0 40px rgba(255, 45, 45, 0.15), 0 20px 60px rgba(0, 0, 0, 0.6);
}

.result-verdict__label {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 900;
  letter-spacing: 8px;
  text-transform: uppercase;
  text-align: center;
}

.result--guilty .result-verdict__label   { color: var(--danger); text-shadow: 0 0 12px var(--danger), 0 0 30px rgba(255,45,45,0.5); }
.result--innocent .result-verdict__label { color: var(--safe);   text-shadow: 0 0 12px var(--safe),   0 0 30px rgba(68,136,255,0.5); }
.result--undecided .result-verdict__label { color: var(--warn);  text-shadow: 0 0 12px var(--warn),   0 0 30px rgba(255,170,0,0.4); }

.result-verdict__subtitle {
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--dim);
  text-align: center;
  margin-top: 8px;
}

.result-meta {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid #222;
  padding-top: 16px;
}

.result-meta__row {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
}

.result-meta__label {
  color: var(--dim);
  letter-spacing: 1px;
}

.result-meta__value {
  color: var(--white-neon);
}

.result-meta__quote {
  font-size: 18px;
  color: var(--dim);
  font-style: italic;
  line-height: 1.8;
  border-left: 2px solid var(--red-dim);
  padding-left: 14px;
  margin-top: 8px;
}

/* case-card__* 클래스 (intro.js가 생성하는 DOM 호환) */
.case-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.case-card__id {
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--dim);
  text-transform: uppercase;
}

.case-card__difficulty {
  font-size: 16px;
  color: var(--warn);
  letter-spacing: 2px;
}

.case-card__name {
  font-size: 18px;
  font-weight: bold;
  color: var(--white-neon);
  margin-bottom: 10px;
  line-height: 1.4;
}

.case-card__description {
  font-size: 18px;
  color: var(--dim);
  line-height: 1.7;
  border-top: 1px solid #222;
  padding-top: 12px;
  margin-bottom: 28px;
}

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

.case-card__detective {
  font-size: 16px;
  color: var(--red-dim);
  letter-spacing: 1px;
}

.case-card__arrow {
  font-size: 18px;
  color: var(--dim);
  transition: color 0.2s, transform 0.2s;
}

.case-card:hover .case-card__arrow {
  color: var(--red-neon);
  transform: translateX(4px);
}

/* 카드 클릭 플래시 */
@keyframes card-flash {
  0%   { background: var(--surface); }
  50%  { background: rgba(255, 45, 45, 0.15); }
  100% { background: var(--surface); }
}

.case-card--flash {
  animation: card-flash 0.4s ease;
}

/* 타이핑 커서 */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--red-neon);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink 0.7s infinite;
}

/* ─── 입력 영역 ──────────────────────────────────────── */
.input-area {
  flex-shrink: 0;
  padding: 14px 20px 18px;
  background: var(--surface);
  border-top: 1px solid #1e1e1e;
}

.input-row {
  display: flex;
  gap: 10px;
}

#user-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid #2a2a2a;
  color: var(--white-neon);
  font-family: var(--font-mono);
  font-size: 16px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  letter-spacing: 0.5px;
}

#user-input::placeholder {
  color: var(--dim);
  letter-spacing: 1px;
}

#user-input:focus {
  border-color: var(--red-neon);
  box-shadow: 0 0 10px rgba(255, 45, 45, 0.2), inset 0 0 6px rgba(255, 45, 45, 0.05);
}

#user-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.send-btn {
  background: var(--red-dim);
  color: var(--white-neon);
  border: 1px solid var(--red-neon);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.send-btn:hover:not(:disabled) {
  background: var(--red-neon);
  box-shadow: 0 0 16px rgba(255, 45, 45, 0.6), 0 0 32px rgba(255, 45, 45, 0.3);
}

.send-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.send-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.input-hint {
  margin-top: 8px;
  font-size: 18px;
  letter-spacing: 2px;
  color: #333;
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════
   씬 3: 결과
══════════════════════════════════════════════════════ */
#scene-result {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.result-inner {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

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

.result-label {
  font-size: 16px;
  letter-spacing: 6px;
  color: var(--dim);
  text-transform: uppercase;
}

/* 결과 카드 */
#result-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid #2a2a2a;
  border-top: 3px solid var(--red-neon);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow:
    0 0 40px rgba(255, 45, 45, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

#result-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top center, rgba(255, 45, 45, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* 판결 텍스트 */
#result-verdict {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 900;
  letter-spacing: 8px;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}

#result-verdict.verdict-guilty {
  color: var(--danger);
  text-shadow:
    0 0 12px var(--danger),
    0 0 30px rgba(255, 45, 45, 0.5);
}

#result-verdict.verdict-innocent {
  color: var(--safe);
  text-shadow:
    0 0 12px var(--safe),
    0 0 30px rgba(68, 136, 255, 0.5);
}

#result-verdict.verdict-ambiguous {
  color: var(--warn);
  text-shadow:
    0 0 12px var(--warn),
    0 0 30px rgba(255, 170, 0, 0.4);
}

.result-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--dim), transparent);
}

/* 점수 */
#result-score {
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--dim);
  text-align: center;
}

#result-score strong {
  color: var(--white-neon);
  font-size: 20px;
}

/* 마지막 형사 대사 */
#result-quote {
  font-size: 18px;
  color: var(--dim);
  text-align: center;
  font-style: italic;
  line-height: 1.8;
  max-width: 460px;
  border-left: 2px solid var(--red-dim);
  padding-left: 16px;
  text-align: left;
}

/* 결과 버튼들 */
.result-actions {
  display: flex;
  gap: 16px;
}

.btn {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--red-dim);
  color: var(--white-neon);
  border-color: var(--red-neon);
}

.btn-primary:hover {
  background: var(--red-neon);
  box-shadow: 0 0 16px rgba(255, 45, 45, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--dim);
  border-color: #333;
}

.btn-secondary:hover {
  border-color: var(--dim);
  color: var(--white-neon);
}

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

/* ══════════════════════════════════════════════════════
   유틸리티 / 공통
══════════════════════════════════════════════════════ */

/* 스크롤바 (전역) */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--red-dim) var(--bg);
}

/* 시스템 메시지 */
.bubble-system {
  align-self: center;
  font-size: 16px;
  letter-spacing: 3px;
  color: var(--dim);
  text-transform: uppercase;
  padding: 4px 0;
}

/* ══════════════════════════════════════════════════════
   모바일 대응
══════════════════════════════════════════════════════ */
@media (max-width: 680px) {
  #case-cards {
    grid-template-columns: 1fr;
  }

  .game-title {
    font-size: 40px;
    letter-spacing: 8px;
  }

  .hud-bar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hud-left,
  .hud-right {
    min-width: unset;
    flex: 1;
  }

  .hud-center {
    order: 3;
    width: 100%;
    flex: unset;
  }

  .bubble {
    max-width: 90%;
  }

  #user-input {
    width: 100%;
  }

  .result-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  #result-card {
    padding: 28px 20px;
  }
}

@media (max-width: 400px) {
  .send-btn {
    padding: 12px 14px;
    letter-spacing: 1px;
  }
}

.retry-notice {
  text-align: center;
  color: var(--warn, #ffaa00);
  font-size: 0.85rem;
  padding: 8px;
  opacity: 0.8;
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════
   씬 1.5: 브리핑
═══════════════════════════════════════ */
#scene-briefing {
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}

.briefing-inner {
  max-width: 680px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.briefing-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.briefing-tag {
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--red-neon);
  text-shadow: 0 0 6px rgba(255,45,45,0.5);
}

.briefing-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--white-neon);
  letter-spacing: 2px;
  border-bottom: 1px solid var(--red-dim);
  padding-bottom: 12px;
}

.briefing-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.briefing-block {
  background: var(--surface);
  border-left: 3px solid var(--dim);
  padding: 14px 18px;
}

.briefing-block.briefing-warning {
  border-left-color: var(--red-neon);
  background: rgba(255,45,45,0.05);
}

.briefing-block-label {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--dim);
  margin-bottom: 8px;
}

.briefing-block.briefing-warning .briefing-block-label {
  color: var(--red-neon);
}

.briefing-text {
  font-size: 15px;
  color: var(--white-neon);
  line-height: 1.8;
}

.briefing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid #222;
}

.briefing-detective {
  font-size: 13px;
  color: var(--red-neon);
  letter-spacing: 1px;
}

.briefing-start {
  min-width: 140px;
}

@media (max-width: 600px) {
  .briefing-footer {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .briefing-start {
    width: 100%;
  }
}

/* 뒤로 가기 버튼 */
.back-btn {
  position: absolute;
  top: 16px;
  left: 16px;
  background: transparent;
  border: 1px solid #333;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 6px 12px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: color 0.2s, border-color 0.2s;
  z-index: 10;
}
.back-btn:hover {
  color: var(--white-neon);
  border-color: var(--red-neon);
}

/* MBTI 결과 */
.result-mbti {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #333;
  background: rgba(255,45,45,0.03);
  width: 100%;
}
.mbti-label {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--dim);
  margin-bottom: 8px;
}
.mbti-type {
  font-size: 28px;
  font-weight: bold;
  color: var(--red-neon);
  text-shadow: 0 0 10px rgba(255,45,45,0.5);
  letter-spacing: 4px;
  margin-bottom: 8px;
}
.mbti-reason {
  font-size: 14px;
  color: var(--white-neon);
  line-height: 1.7;
}
