@import url("https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@500;700&family=IBM+Plex+Mono:wght@400;500&family=Zen+Kaku+Gothic+New:wght@400;500&display=swap");

:root {
  --ink: #0c0b0a;
  --ink-2: #161311;
  --paper: #d9cbb6;
  --paper-dim: #b9a992;
  --lamp: #c9a16a;
  --lamp-dim: #8f7350;
  --seal: #9a2f2f;
  --seal-soft: rgba(154, 47, 47, 0.18);
  --fog: rgba(217, 203, 182, 0.08);
  --line: rgba(217, 203, 182, 0.22);
  --muted: #9a9084;
  --text: #e6ddd0;
  --danger: #c45c5c;
  --success: #6a9a78;
  --accent: var(--lamp);
  --accent-dim: var(--lamp-dim);
  --surface: #1a1714;
  --border: var(--line);
  --bg: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  line-height: 1.7;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(201, 161, 106, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(154, 47, 47, 0.08), transparent 50%),
    linear-gradient(180deg, #14110f 0%, var(--ink) 40%, #080706 100%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.09;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 48%,
    rgba(0, 0, 0, 0.04) 50%,
    transparent 52%,
    transparent 100%
  );
  background-size: 100% 4px;
  opacity: 0.35;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}

/* —— ブランド／ヘッダー —— */
.portal-hero {
  min-height: min(72vh, 560px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  animation: riseIn 0.9s ease both;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: var(--lamp);
  text-transform: uppercase;
}

.brand-mark::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--lamp);
}

.portal-hero h1 {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  margin: 0 0 0.75rem;
  line-height: 1.25;
  color: var(--paper);
}

.portal-hero .lead {
  max-width: 28rem;
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.98rem;
}

header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  animation: riseIn 0.7s ease both;
}

h1 {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 700;
  margin: 0 0 0.35rem;
  letter-spacing: 0.12em;
  color: var(--paper);
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: var(--lamp);
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.subtitle {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

.classified {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--seal);
  color: var(--seal);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  transform: rotate(-2deg);
}

/* —— 書類パネル —— */
.card {
  position: relative;
  background:
    linear-gradient(135deg, rgba(217, 203, 182, 0.04), transparent 40%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1.45rem 1.4rem 1.5rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  animation: riseIn 0.8s ease both;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--lamp), transparent 70%);
  opacity: 0.55;
}

.dossier {
  background:
    linear-gradient(180deg, rgba(217, 203, 182, 0.07), transparent 30%),
    #1c1915;
}

.story-quote {
  border-left: none;
}

.quote-text {
  font-family: "Shippori Mincho", serif;
  font-style: normal;
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
  color: var(--paper);
  line-height: 1.9;
}

.quote-author {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: right;
  font-family: "IBM Plex Mono", monospace;
}

.section-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  color: var(--lamp);
  margin: 0 0 0.85rem;
  letter-spacing: 0.16em;
}

.case-title {
  font-family: "Shippori Mincho", serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.9rem;
  letter-spacing: 0.08em;
  color: var(--paper);
}

.case-meta {
  margin: 0 0 1.1rem;
  display: grid;
  gap: 0.55rem;
}

.case-meta dt {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--lamp-dim);
}

.case-meta dd {
  margin: 0.1rem 0 0;
  color: var(--text);
}

.character-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.character-list li {
  margin: 0;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
}

.character-list li:last-child {
  border-bottom: none;
}

.character-list strong {
  font-family: "Shippori Mincho", serif;
  color: var(--paper);
  font-weight: 700;
}

.method-list {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  color: var(--text);
  font-size: 0.9rem;
}

.method-list li {
  margin: 0.55rem 0;
  padding-left: 0.15rem;
}

.method-list strong {
  color: var(--lamp);
  font-weight: 500;
}

.next-trail {
  margin: 0.35rem 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border-left: 2px solid var(--seal);
  background: var(--seal-soft);
  color: var(--paper);
  font-size: 0.88rem;
  line-height: 1.55;
}

.next-trail:empty {
  display: none;
}

.login-hint {
  margin: 0.5rem 0 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px dashed var(--line);
  color: var(--paper-dim);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* —— フォーム —— */
label {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--lamp-dim);
  margin-bottom: 0.4rem;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 0.75rem 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--paper);
  margin-bottom: 1rem;
  font-family: "IBM Plex Mono", monospace;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--lamp);
  box-shadow: 0 0 0 1px rgba(201, 161, 106, 0.25);
}

input[readonly] {
  opacity: 0.65;
  cursor: not-allowed;
}

button,
.btn-link {
  display: inline-block;
  background: var(--lamp);
  color: #1a140c;
  border: none;
  border-radius: 2px;
  padding: 0.8rem 1.35rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: transform 0.15s ease, background 0.15s ease;
}

button:hover,
.btn-link:hover {
  background: #dcb878;
  color: #1a140c;
  transform: translateY(-1px);
}

.btn-link {
  margin-top: 0.5rem;
}

.btn-ghost {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.8rem 1.35rem;
  background: transparent;
  color: var(--lamp);
  border: 1px solid var(--lamp-dim);
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: 0.06em;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn-ghost:hover {
  border-color: var(--lamp);
  color: var(--paper);
  transform: translateY(-1px);
  background: transparent;
}

.message {
  padding: 0.95rem 1rem;
  border-radius: 2px;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.message.error {
  background: rgba(154, 47, 47, 0.15);
  border: 1px solid var(--seal);
  color: #e8a8a8;
}

.message.success {
  background: rgba(106, 154, 120, 0.12);
  border: 1px solid var(--success);
  color: #b4d4be;
}

.message.warning {
  background: rgba(201, 161, 106, 0.1);
  border: 1px solid var(--lamp-dim);
  color: #e4d2b0;
}

.hidden {
  display: none !important;
}

a {
  color: var(--lamp);
}

footer {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
}

/* —— ルート（ファイル封筒） —— */
.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.route-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 1.15rem 1rem 1.2rem;
  background: linear-gradient(160deg, #2a241c 0%, #171410 100%);
  border: 1px solid var(--line);
  border-radius: 2px;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.route-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 22px 22px 0;
  border-color: transparent var(--lamp-dim) transparent transparent;
  opacity: 0.45;
}

.route-card:hover {
  border-color: var(--lamp);
  transform: translateY(-3px);
  color: var(--text);
}

.route-card-truth {
  border-color: rgba(154, 47, 47, 0.55);
}

.route-card-truth::after {
  border-color: transparent var(--seal) transparent transparent;
}

.route-id {
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--lamp);
}

.route-name {
  font-family: "Shippori Mincho", serif;
  font-size: 0.95rem;
  color: var(--paper);
}

.route-desc {
  font-size: 0.75rem;
  color: var(--muted);
}

.route-status {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  color: var(--seal);
  margin-top: 0.35rem;
  letter-spacing: 0.1em;
}

.route-unlocked {
  border-color: var(--lamp-dim);
  background: linear-gradient(160deg, #322a1f 0%, #1a1612 100%);
}

/* —— 証拠・報告 —— */
.report h2 {
  font-family: "Shippori Mincho", serif;
  font-size: 1.2rem;
  margin-top: 0;
  color: var(--paper);
}

.report dt {
  font-family: "IBM Plex Mono", monospace;
  color: var(--lamp-dim);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  margin-top: 0.75rem;
}

.report dd {
  margin: 0.15rem 0 0;
  color: var(--paper);
}

.story-briefing,
.story-scene {
  border-left: 2px solid var(--lamp-dim);
}

.story-question {
  margin: 1rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
  color: var(--lamp);
  font-family: "Shippori Mincho", serif;
  font-size: 0.98rem;
}

.story-epilogue {
  margin-top: 1.25rem;
  padding: 1rem;
  background: rgba(201, 161, 106, 0.08);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1.8;
}

.truth-heading {
  margin: 1.5rem 0 0.75rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--lamp);
}

.truth-block {
  margin: 0 0 0.9rem;
  line-height: 1.9;
  font-size: 0.95rem;
}

.truth-twist {
  padding: 0.95rem 1rem;
  border-left: 3px solid var(--seal);
  background: var(--seal-soft);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.9rem;
}

.timeline li:last-child {
  border-bottom: none;
}

.timeline-time {
  display: inline-block;
  min-width: 3.5rem;
  font-family: "IBM Plex Mono", monospace;
  color: var(--lamp);
  font-weight: 500;
  margin-right: 0.5rem;
}

/* —— 演出 —— */
.discover-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 5, 4, 0.88);
  animation: fadeIn 0.25s ease;
  cursor: pointer;
}

.discover-panel {
  text-align: center;
  padding: 2.2rem 1.6rem;
  border: 1px solid var(--lamp);
  background: #1a1714;
  max-width: 90vw;
  animation: popIn 0.4s ease;
}

.discover-label {
  margin: 0 0 0.85rem;
  letter-spacing: 0.28em;
  font-size: 0.68rem;
  color: var(--lamp);
  font-family: "IBM Plex Mono", monospace;
}

.discover-text {
  margin: 0;
  font-family: "Shippori Mincho", serif;
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--paper);
}

.discover-stamp {
  margin: 1.1rem 0 0;
  color: var(--seal);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.unlock-memo {
  border-left: 3px solid var(--lamp);
  background: rgba(201, 161, 106, 0.08);
  animation: slideUp 0.4s ease;
}

.stamp-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 1rem 0;
}

.stamp {
  border: 1px dashed var(--line);
  padding: 0.8rem 0.4rem;
  text-align: center;
  font-size: 0.78rem;
  background: rgba(0, 0, 0, 0.2);
}

.stamp strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: "Shippori Mincho", serif;
  color: var(--paper);
}

.stamp span {
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
}

.stamp-on {
  border-style: solid;
  border-color: var(--seal);
  background: var(--seal-soft);
  transform: rotate(-1.5deg);
}

.stamp-off {
  opacity: 0.4;
}

.memo-log {
  margin-top: 0.5rem;
}

.memo-item {
  font-size: 0.85rem;
  padding: 0.7rem 0;
  border-top: 1px dashed var(--line);
  color: var(--muted);
}

.report-reveal {
  animation: slideUp 0.45s ease;
}

.shake {
  animation: shake 0.4s ease;
}

.fog-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 1.5rem 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes popIn {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes riseIn {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

@media (max-width: 520px) {
  .stamp-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .portal-hero {
    min-height: 58vh;
  }

  .agency-home .agency-hero {
    min-height: min(70vh, 520px);
  }

  .agency-facts,
  .agency-facts.agency-facts-2,
  .agency-facts.agency-facts-4 {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-ghost {
    text-align: center;
  }
}

/* —— 事務所シェル（全ページ共通） —— */
.agency-shell .container,
.agency-home .container {
  max-width: 720px;
  padding-top: 1.5rem;
}

.agency-nav {
  display: flex;
  gap: 1.35rem;
  align-items: center;
  margin-bottom: 1.5rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  animation: riseIn 0.6s ease both;
}

.agency-nav-brand {
  display: inline-flex;
  align-items: center;
  margin-right: 0.35rem;
}

.agency-nav-brand img {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  display: block;
}

.agency-nav a {
  color: var(--lamp-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.agency-nav a:hover,
.agency-nav a[aria-current="page"] {
  color: var(--lamp);
}

.agency-page-hero {
  margin-bottom: 2.25rem;
  padding-bottom: 1.75rem;
  border-bottom: none;
  position: relative;
  animation: riseIn 0.75s ease both;
}

.agency-page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--lamp), transparent 70%);
  opacity: 0.45;
}

.agency-page-hero .brand-mark {
  margin-bottom: 0.85rem;
}

.agency-page-hero h1 {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(1.7rem, 4.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  margin: 0 0 0.65rem;
  color: var(--paper);
  line-height: 1.35;
}

.agency-page-hero .lead,
.agency-page-hero .subtitle {
  max-width: 28rem;
  margin: 0;
  color: var(--paper-dim);
  font-size: 0.98rem;
  line-height: 1.85;
}

.agency-home .agency-hero {
  min-height: min(78vh, 620px);
  border-bottom: none;
  margin-bottom: 0;
  position: relative;
}

.agency-home .agency-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--lamp), transparent 70%);
  opacity: 0.55;
}

.agency-home .agency-hero h1 {
  letter-spacing: 0.22em;
  text-shadow: 0 0 60px rgba(201, 161, 106, 0.08);
}

.agency-home .agency-heading {
  letter-spacing: 0.14em;
}

.agency-home .agency-prose-heavy p {
  line-height: 2.05;
  margin-bottom: 1.15rem;
}

.agency-home .agency-section {
  margin-bottom: 3.25rem;
}

.agency-home .agency-quote {
  margin: 3.25rem 0 3.5rem;
}

.agency-home .agency-quote .quote-text {
  font-size: 1.18rem;
  line-height: 2.15;
}

.agency-home .agency-hero .lead {
  max-width: 26rem;
  line-height: 1.95;
  font-size: 1.02rem;
  color: var(--paper-dim);
}

.agency-home .agency-hero .lead br {
  display: block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  animation: riseIn 1.1s ease both;
}

.agency-quote {
  margin: 2.25rem 0 2.75rem;
  padding: 0 0 0 1.15rem;
  border: none;
  border-left: 2px solid var(--seal);
  background: transparent;
  animation: riseIn 1s ease both;
  animation-delay: 0.08s;
}

.agency-quote .quote-text {
  margin: 0 0 0.85rem;
  font-size: 1.12rem;
  line-height: 2;
}

.agency-quote .quote-author {
  text-align: left;
}

.agency-section {
  margin: 0 0 2.75rem;
  animation: riseIn 0.85s ease both;
}

.agency-heading {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--paper);
  margin: 0 0 1.15rem;
  line-height: 1.45;
}

.agency-prose {
  max-width: 34rem;
}

.agency-prose p {
  margin: 0 0 0.95rem;
  line-height: 1.9;
  color: var(--text);
}

.agency-prose p:last-child {
  margin-bottom: 0;
}

.agency-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.75rem 0 0;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.agency-facts.agency-facts-2 {
  grid-template-columns: repeat(2, 1fr);
}

.agency-facts.agency-facts-4 {
  grid-template-columns: repeat(2, 1fr);
}

.agency-facts dt {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--lamp-dim);
  margin: 0 0 0.35rem;
}

.agency-facts dd {
  margin: 0;
  font-family: "Shippori Mincho", serif;
  font-size: 0.95rem;
  color: var(--paper);
  letter-spacing: 0.04em;
}

.agency-creed {
  list-style: none;
  margin: 0;
  padding: 0;
}

.agency-creed li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px dashed var(--line);
  align-items: start;
}

.agency-creed li:first-child {
  padding-top: 0.35rem;
}

.agency-creed li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.agency-creed strong {
  display: block;
  font-family: "Shippori Mincho", serif;
  font-size: 1.05rem;
  color: var(--paper);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.agency-creed p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.creed-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--lamp);
  padding-top: 0.2rem;
}

.agency-case {
  margin-top: 1.25rem;
  padding: 1.5rem 1.35rem 1.55rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(217, 203, 182, 0.06), transparent 40%),
    #1c1915;
  position: relative;
  animation: riseIn 0.9s ease both;
}

.agency-case::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--seal), transparent 65%);
  opacity: 0.7;
}

.agency-case .case-title {
  margin-bottom: 0.65rem;
}

.agency-case .agency-prose {
  margin-bottom: 1rem;
}

.agency-close .agency-case {
  margin-top: 2rem;
}

.agency-panel {
  margin: 0 0 1.75rem;
  padding: 1.35rem 1.3rem 1.4rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(217, 203, 182, 0.04), transparent 40%),
    var(--surface);
  position: relative;
  animation: riseIn 0.85s ease both;
}

.agency-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--lamp), transparent 70%);
  opacity: 0.5;
}

.agency-shell .route-grid {
  margin-top: 0.85rem;
}

.agency-shell .character-list {
  margin-top: 0.35rem;
}

.agency-footer {
  margin-top: 3.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
}

.agency-footer p {
  margin: 0.3rem 0;
}

.agency-footer a {
  color: var(--lamp-dim);
  text-decoration: none;
}

.agency-footer a:hover {
  color: var(--lamp);
}
