/* ============================
   Briefing Page Styles
   /manga/briefing
   ============================ */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Noto+Sans+JP:wght@400;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #00ff41;
  --green-dim: #00aa2a;
  --bg: #050505;
  --panel: #0a0f0a;
  --border: #1a3a1a;
  --warn: #ffcc00;
  --red: #ff4444;
}

html, body {
  background: var(--bg);
  color: var(--green);
  font-family: 'Share Tech Mono', monospace;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── ノイズ・スキャンライン ── */
#static-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='1' height='1' fill='%2300ff4108'/%3E%3C/svg%3E");
  animation: noise 0.08s steps(1) infinite;
  opacity: 0.4;
}
@keyframes noise {
  0%  { background-position: 0 0; }
  25% { background-position: 2px 2px; }
  50% { background-position: -2px 1px; }
  75% { background-position: 1px -2px; }
}

#scan-line {
  position: fixed; left: 0; right: 0; height: 2px;
  background: rgba(0,255,65,0.08);
  z-index: 1; pointer-events: none;
  animation: scan 6s linear infinite;
}
@keyframes scan {
  from { top: 0; }
  to   { top: 100vh; }
}

/* ── レイアウト ── */
#briefing-wrapper {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
}

#briefing-terminal {
  width: 100%; max-width: 720px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,255,65,0.08), 0 0 80px rgba(0,255,65,0.04);
}

/* ── ターミナルヘッダー ── */
.terminal-header {
  display: flex; align-items: center; gap: 8px;
  background: #0d1a0d;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.terminal-dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green  { background: #28c840; }
.terminal-title {
  margin-left: 8px;
  font-size: 0.7rem;
  color: #446644;
  letter-spacing: 1px;
}

/* ── ターミナル本文 ── */
#briefing-body {
  padding: 28px 28px 36px;
  line-height: 2;
}

.line {
  font-size: 0.85rem;
  margin-bottom: 4px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.line.visible { opacity: 1; }
.line.dimmed  { color: var(--green-dim); }

.prompt {
  color: var(--green-dim);
  margin-right: 8px;
}

.blink {
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── ミッションカード ── */
#mission-card {
  margin-top: 20px;
  opacity: 0;
}
#mission-card.fade-in {
  animation: fadeInUp 0.8s ease forwards;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.divider {
  font-size: 0.65rem;
  color: #2a4a2a;
  letter-spacing: 2px;
  margin: 20px 0 16px;
}

.body-text {
  font-size: 0.88rem;
  color: #aaccaa;
  line-height: 1.9;
  margin-bottom: 12px;
  font-family: 'Noto Sans JP', sans-serif;
}

.hl      { color: var(--green); font-weight: bold; }
.hl.warn { color: var(--warn); }

.hint-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px;
}
.hint-list li {
  font-size: 0.82rem;
  color: #aaccaa;
  font-family: 'Noto Sans JP', sans-serif;
  padding: 6px 0;
  border-bottom: 1px solid #0d1e0d;
  line-height: 1.7;
}
.hint-list li strong { color: var(--green); }

.warning-text {
  font-size: 0.78rem;
  color: var(--warn);
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.8;
  padding: 12px;
  border: 1px solid #3a3000;
  border-radius: 4px;
  margin-bottom: 28px;
  background: #0e0c00;
}

/* ── CTAボタン ── */
#cta-area {
  text-align: center;
  margin-top: 8px;
}

.start-button {
  display: inline-block;
  padding: 14px 40px;
  border: 1px solid var(--green);
  color: var(--green);
  background: transparent;
  font-family: 'Share Tech Mono', monospace;
  font-size: 1rem;
  letter-spacing: 3px;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.start-button:hover {
  background: var(--green);
  color: #000;
  box-shadow: 0 0 24px rgba(0,255,65,0.4);
}

.sub-note {
  font-size: 0.65rem;
  color: #2a4a2a;
  margin-top: 12px;
  font-family: 'Noto Sans JP', sans-serif;
}

.detail-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 28px;
  font-size: 0.82rem;
  color: var(--green-dim);
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 2px;
  text-decoration: none;
  border: 1px solid #1a3a1a;
  border-radius: 4px;
  background: transparent;
  transition: border-color 0.2s, color 0.2s, background 0.2s, box-shadow 0.2s;
}
.detail-link:hover {
  border-color: var(--green-dim);
  color: var(--green);
  background: rgba(0, 255, 65, 0.05);
  box-shadow: 0 0 12px rgba(0, 255, 65, 0.15);
}

/* ── モバイル ── */
@media (max-width: 600px) {
  #briefing-body { padding: 20px 18px 28px; }
  .body-text, .hint-list li { font-size: 0.82rem; }
  .start-button { font-size: 0.9rem; padding: 12px 28px; }
}
