/* EL PUEBLO — journal, documents, recordings and investigation UI */

/* Journal */
.ep-journal {
  width: min(1180px, calc(100% - 24px));
  height: min(90vh, 920px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  border: 1px solid rgba(242, 230, 207, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(242, 230, 207, 0.045), transparent 40%),
    rgba(10, 14, 10, 0.96);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.ep-journal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px 12px;
}

.ep-journal__head h2 {
  margin: 0;
  font-family: var(--ep-serif);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--ep-cream);
}

.ep-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 20px 12px;
  border-bottom: 1px solid rgba(242, 230, 207, 0.1);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ep-tabs::-webkit-scrollbar {
  display: none;
}

.ep-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ep-cream-dim);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.ep-tab:hover {
  background: rgba(242, 230, 207, 0.06);
  color: var(--ep-cream);
}

.ep-tab.is-active {
  border-color: rgba(214, 162, 74, 0.45);
  background: rgba(214, 162, 74, 0.14);
  color: var(--ep-gold-soft);
}

.ep-journal__content {
  overflow: auto;
  padding: 20px 26px 30px;
  scrollbar-width: thin;
  scrollbar-color: rgba(214, 162, 74, 0.5) transparent;
}

.ep-journal-section {
  max-width: 100%;
}

.ep-journal-section + .ep-journal-section {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(242, 230, 207, 0.1);
}

.ep-journal-section h3 {
  margin: 0 0 8px;
  font-family: var(--ep-serif);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  color: var(--ep-cream);
}

.ep-journal-section h4 {
  margin: 18px 0 8px;
  font-family: var(--ep-serif);
  font-size: 1.1rem;
  color: var(--ep-cream);
}

.ep-journal-section p {
  line-height: 1.65;
  color: var(--ep-cream-dim);
}

.ep-hint-box {
  margin: 18px 0 12px;
  padding: 14px 16px;
  border-left: 2px solid var(--ep-gold);
  background: rgba(214, 162, 74, 0.07);
}

.ep-hint-box p {
  margin: 0;
}

.ep-objective-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.ep-objective-list li {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(242, 230, 207, 0.08);
  border-radius: 10px;
  opacity: 0.55;
}

.ep-objective-list li.is-current {
  border-color: rgba(214, 162, 74, 0.4);
  background: rgba(214, 162, 74, 0.06);
  opacity: 1;
}

.ep-objective-list li.is-done {
  opacity: 0.75;
}

.ep-objective-mark {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(242, 230, 207, 0.2);
  border-radius: 50%;
  color: var(--ep-gold);
  font-weight: 800;
}

.ep-objective-list strong {
  color: var(--ep-cream);
}

.ep-objective-list p {
  margin: 3px 0 0;
  font-size: 0.84rem;
}

/* Filters and clue cards */
.ep-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.ep-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid rgba(242, 230, 207, 0.16);
  border-radius: 999px;
  background: transparent;
  color: var(--ep-cream-dim);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.ep-chip.is-active,
.ep-chip:hover {
  border-color: rgba(214, 162, 74, 0.5);
  background: rgba(214, 162, 74, 0.12);
  color: var(--ep-gold-soft);
}

.ep-clue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.ep-clue-card {
  display: flex;
  gap: 13px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(242, 230, 207, 0.1);
  border-radius: 12px;
  background: rgba(242, 230, 207, 0.025);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.ep-clue-card:hover {
  border-color: rgba(214, 162, 74, 0.4);
  background: rgba(214, 162, 74, 0.055);
  transform: translateY(-1px);
}

.ep-clue-icon,
.ep-list-icon,
.ep-pick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(214, 162, 74, 0.32);
  border-radius: 10px;
  background: rgba(214, 162, 74, 0.09);
  color: var(--ep-gold-soft);
}

.ep-clue-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ep-clue-type {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ep-gold);
}

.ep-clue-body strong {
  font-family: var(--ep-serif);
  font-size: 1.03rem;
  color: var(--ep-cream);
}

.ep-clue-short {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ep-cream-dim);
}

.ep-clue-place {
  margin-top: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ep-muted);
}

/* Lists */
.ep-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.ep-list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(242, 230, 207, 0.09);
  border-radius: 10px;
  background: rgba(242, 230, 207, 0.02);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.ep-list-row:hover {
  border-color: rgba(214, 162, 74, 0.38);
  background: rgba(214, 162, 74, 0.05);
}

.ep-list-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.ep-list-main strong {
  color: var(--ep-cream);
  font-size: 0.92rem;
}

.ep-list-main span {
  color: var(--ep-muted);
  font-size: 0.76rem;
}

.ep-list-state {
  flex: 0 0 auto;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ep-gold);
}

.ep-list-row.is-read {
  opacity: 0.72;
}

.ep-list-row.is-read .ep-list-state {
  color: var(--ep-muted);
}

/* Characters */
.ep-character-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.ep-character-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(242, 230, 207, 0.1);
  border-radius: 14px;
  background: rgba(242, 230, 207, 0.025);
}

.ep-character-card.is-locked {
  align-items: center;
  min-height: 150px;
  color: var(--ep-muted);
  opacity: 0.6;
}

.ep-locked-silhouette {
  width: 64px;
  height: 78px;
  border-radius: 40% 40% 18% 18%;
  background: rgba(242, 230, 207, 0.08);
  filter: blur(2px);
}

.ep-portrait {
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.ep-character-main {
  min-width: 0;
}

.ep-character-main h3 {
  margin: 2px 0 0;
  font-size: 1.25rem;
}

.ep-character-main p {
  margin: 6px 0;
  font-size: 0.84rem;
  line-height: 1.55;
}

.ep-quote {
  padding-left: 10px;
  border-left: 2px solid var(--ep-gold);
  color: var(--ep-gold-soft) !important;
  font-family: var(--ep-serif);
  font-style: italic;
}

.ep-character-main details {
  margin-top: 8px;
  color: var(--ep-cream-dim);
  font-size: 0.8rem;
}

.ep-character-main summary {
  cursor: pointer;
  color: var(--ep-gold-soft);
}

.ep-character-main ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

/* Timeline */
.ep-timeline {
  display: grid;
  gap: 0;
  margin: 18px 0 0;
  padding: 0 0 0 18px;
  list-style: none;
  border-left: 1px solid rgba(214, 162, 74, 0.4);
}

.ep-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  padding: 0 0 22px 14px;
}

.ep-timeline li::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ep-gold);
  box-shadow: 0 0 0 4px rgba(214, 162, 74, 0.12);
}

.ep-timeline-date {
  font-family: var(--ep-serif);
  font-size: 1.05rem;
  color: var(--ep-gold-soft);
}

.ep-timeline strong {
  display: block;
  color: var(--ep-cream);
}

.ep-timeline span:not(.ep-timeline-date) {
  display: block;
  margin: 2px 0 4px;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ep-muted);
}

.ep-timeline p {
  margin: 0;
  font-size: 0.86rem;
}

/* Deductions */
.ep-deduction-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  margin-top: 18px;
}

.ep-deduction-picker,
.ep-deduction-list {
  min-width: 0;
}

.ep-pick-list {
  display: grid;
  gap: 6px;
  max-height: 46vh;
  overflow: auto;
  padding-right: 4px;
  margin-bottom: 12px;
}

.ep-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(242, 230, 207, 0.08);
  border-radius: 9px;
  background: rgba(242, 230, 207, 0.02);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.ep-pick:hover,
.ep-pick.is-selected {
  border-color: rgba(214, 162, 74, 0.4);
  background: rgba(214, 162, 74, 0.07);
}

.ep-pick input {
  width: 16px;
  height: 16px;
  accent-color: var(--ep-gold);
  flex: 0 0 auto;
}

.ep-pick > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ep-pick strong {
  color: var(--ep-cream);
  font-size: 0.82rem;
}

.ep-pick small {
  color: var(--ep-muted);
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ep-deduction {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(242, 230, 207, 0.1);
  border-radius: 12px;
  background: rgba(242, 230, 207, 0.025);
}

.ep-deduction.is-final {
  border-color: rgba(214, 162, 74, 0.55);
  background: linear-gradient(160deg, rgba(214, 162, 74, 0.12), rgba(214, 162, 74, 0.02));
}

.ep-deduction h4 {
  margin: 8px 0 6px;
}

.ep-deduction p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
}

.ep-deduction details {
  margin-top: 8px;
  color: var(--ep-cream-dim);
  font-size: 0.82rem;
}

.ep-deduction summary {
  cursor: pointer;
  color: var(--ep-gold-soft);
}

.ep-badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ep-badge--fact {
  background: rgba(120, 178, 124, 0.16);
  color: #a8d3a8;
}

.ep-badge--hypo {
  background: rgba(214, 162, 74, 0.16);
  color: var(--ep-gold-soft);
}

.ep-questions {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--ep-cream-dim);
  font-size: 0.82rem;
  line-height: 1.55;
}

.ep-questions li {
  margin-bottom: 4px;
}

.ep-memory-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.ep-memory-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(214, 162, 74, 0.2);
  border-radius: 8px;
  background: rgba(214, 162, 74, 0.05);
  color: var(--ep-cream-dim);
  font-size: 0.84rem;
}

.ep-memory-list button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ep-memory-list button:hover {
  color: var(--ep-gold-soft);
}

.ep-memory-list svg {
  color: var(--ep-gold);
  flex: 0 0 auto;
}

.ep-empty {
  padding: 18px;
  border: 1px dashed rgba(242, 230, 207, 0.16);
  border-radius: 10px;
  color: var(--ep-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

/* Reader */
.ep-overlay--reader {
  background: rgba(4, 6, 4, 0.84);
  backdrop-filter: blur(9px);
}

.ep-reader {
  width: min(860px, 100%);
}

.ep-reader__paper {
  position: relative;
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: clamp(26px, 5vw, 52px);
  border-radius: 6px 14px 14px 6px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.08), transparent 8%),
    linear-gradient(180deg, #f2e6cd, #e6d7b8);
  color: #342a1e;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 0 80px rgba(120, 80, 30, 0.08);
  font-family: var(--ep-serif);
}

.ep-reader__paper.ep-paper--letter {
  background:
    repeating-linear-gradient(180deg, transparent 0 31px, rgba(80, 65, 40, 0.11) 31px 32px),
    linear-gradient(180deg, #f4e9d0, #ead9b8);
}

.ep-reader__paper.ep-paper--typed {
  background: linear-gradient(180deg, #eee9dc, #e2dccb);
  font-family: "Courier New", Courier, monospace;
}

.ep-reader__paper.ep-paper--ledger {
  background:
    repeating-linear-gradient(180deg, transparent 0 29px, rgba(80, 65, 40, 0.16) 29px 30px),
    linear-gradient(180deg, #efe2c2, #e3d0a7);
  font-family: "Courier New", Courier, monospace;
}

.ep-reader__paper.ep-paper--note {
  background: linear-gradient(160deg, #f6edc7, #e9d9a4);
}

.ep-reader__paper.ep-paper--photo,
.ep-reader__paper.ep-paper--drawing {
  background: #1b1711;
  color: var(--ep-cream);
  max-width: 760px;
}

.ep-reader__paper h2 {
  margin: 0 0 6px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.08;
}

.ep-reader__meta {
  margin: 0 0 22px;
  font-size: 0.82rem;
  font-style: italic;
  color: #6d5a3d;
}

.ep-reader__paper.ep-paper--photo .ep-reader__meta,
.ep-reader__paper.ep-paper--drawing .ep-reader__meta {
  color: var(--ep-cream-dim);
}

.ep-reader__body p {
  margin: 0 0 14px;
  font-size: 1.02rem;
  line-height: 1.75;
}

.ep-reader__signature {
  margin-top: 26px;
  font-style: italic;
  color: #5c4a32;
}

.ep-reader__note {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(70, 55, 35, 0.2);
  font-size: 0.82rem;
  font-style: italic;
  color: #756247;
}

.ep-reader__paper.ep-paper--photo .ep-reader__note,
.ep-reader__paper.ep-paper--drawing .ep-reader__note {
  color: var(--ep-cream-dim);
  border-top-color: rgba(242, 230, 207, 0.16);
}

.ep-reader__illustration {
  margin: 0 0 22px;
  border-radius: 4px;
  overflow: hidden;
  background: #0e0b07;
}

.ep-reader__illustration img {
  display: block;
  width: 100%;
  height: auto;
  filter: sepia(0.15) contrast(1.02);
}

.ep-reader__close {
  position: sticky;
  top: 0;
  float: right;
  margin: -8px -8px 8px 12px;
  border-color: rgba(60, 45, 25, 0.25);
  background: rgba(40, 30, 18, 0.12);
  color: #3b2d1d;
}

.ep-reader__paper.ep-paper--photo .ep-reader__close,
.ep-reader__paper.ep-paper--drawing .ep-reader__close {
  color: var(--ep-cream);
  border-color: rgba(242, 230, 207, 0.3);
  background: rgba(0, 0, 0, 0.3);
}

.ep-reader__paper .ep-btn--ghost {
  color: #4a3824;
  border-color: rgba(70, 50, 25, 0.3);
}

.ep-reader__paper.ep-paper--photo .ep-btn--ghost,
.ep-reader__paper.ep-paper--drawing .ep-btn--ghost {
  color: var(--ep-cream);
  border-color: rgba(242, 230, 207, 0.3);
}

/* Recording */
.ep-recording {
  width: min(720px, 100%);
}

.ep-recording__meta {
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: var(--ep-muted);
}

.ep-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 58px;
  margin: 0 0 18px;
  padding: 0 4px;
  border-top: 1px solid rgba(242, 230, 207, 0.1);
  border-bottom: 1px solid rgba(242, 230, 207, 0.1);
}

.ep-wave span {
  flex: 1;
  height: 18%;
  min-height: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ep-gold-soft), var(--ep-coffee));
  opacity: 0.55;
}

.ep-wave span:nth-child(3n) { height: 52%; }
.ep-wave span:nth-child(4n) { height: 78%; }
.ep-wave span:nth-child(5n) { height: 34%; }
.ep-wave span:nth-child(7n) { height: 92%; }

.ep-wave.is-playing span {
  animation: epWave 0.9s ease-in-out infinite alternate;
}

.ep-wave.is-playing span:nth-child(2n) { animation-delay: 0.12s; }
.ep-wave.is-playing span:nth-child(3n) { animation-delay: 0.24s; }
.ep-wave.is-playing span:nth-child(5n) { animation-delay: 0.36s; }

@keyframes epWave {
  from { transform: scaleY(0.5); opacity: 0.4; }
  to { transform: scaleY(1); opacity: 0.9; }
}

.ep-transcript {
  display: grid;
  gap: 5px;
  max-height: 34vh;
  overflow: auto;
  margin-bottom: 18px;
  padding-right: 6px;
}

.ep-transcript p {
  margin: 0;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  border-radius: 6px;
  color: var(--ep-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.ep-transcript p.is-past {
  color: var(--ep-cream-dim);
}

.ep-transcript p.is-current {
  border-left-color: var(--ep-gold);
  background: rgba(214, 162, 74, 0.08);
  color: var(--ep-cream);
}

/* Keypad */
.ep-keypad {
  width: min(420px, 100%);
  text-align: center;
}

.ep-keypad__display {
  margin: 18px auto;
  padding: 14px;
  border: 1px solid rgba(214, 162, 74, 0.4);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.32);
  font-family: "Courier New", Courier, monospace;
  font-size: 2rem;
  letter-spacing: 0.35em;
  color: var(--ep-gold-soft);
}

.ep-keypad__display.is-shaking {
  animation: epShake 0.38s ease;
}

@keyframes epShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
}

.ep-keypad__buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.ep-key {
  min-height: 54px;
  border: 1px solid rgba(242, 230, 207, 0.18);
  border-radius: 10px;
  background: rgba(242, 230, 207, 0.05);
  color: var(--ep-cream);
  font-family: "Courier New", Courier, monospace;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

.ep-key:hover {
  background: rgba(214, 162, 74, 0.12);
  border-color: rgba(214, 162, 74, 0.4);
}

.ep-key--wide {
  grid-column: span 1;
  font-family: var(--font-body);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ep-key--enter {
  background: linear-gradient(135deg, #d8a84f, #a9702c);
  color: #17110a;
  border-color: transparent;
}

.ep-keypad__message {
  min-height: 22px;
  margin: 0 0 12px;
  font-size: 0.82rem;
}

.ep-keypad__message.is-error {
  color: #e49b8e;
}

.ep-keypad__message.is-ok {
  color: #a8d3a8;
}

/* Detail */
.ep-detail {
  width: min(640px, 100%);
}

.ep-detail-place {
  margin: 0 0 12px !important;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ep-gold) !important;
}

.ep-related {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(242, 230, 207, 0.1);
}

.ep-related strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ep-cream);
}

.ep-related > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Inventory */
.ep-inventory {
  width: min(760px, 100%);
}

.ep-inventory__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.ep-inventory-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  border: 1px solid rgba(242, 230, 207, 0.12);
  border-radius: 12px;
  background: rgba(242, 230, 207, 0.03);
  color: var(--ep-cream);
  font-size: 0.78rem;
  cursor: pointer;
}

.ep-inventory-item:hover {
  border-color: rgba(214, 162, 74, 0.45);
  background: rgba(214, 162, 74, 0.07);
}

.ep-inventory-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(214, 162, 74, 0.35);
  border-radius: 12px;
  background: rgba(214, 162, 74, 0.1);
  color: var(--ep-gold-soft);
}

.ep-inventory__detail {
  min-height: 76px;
  padding: 14px;
  border: 1px solid rgba(242, 230, 207, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.16);
}

.ep-inventory__detail h3 {
  margin: 0 0 6px;
  font-family: var(--ep-serif);
  font-size: 1.15rem;
}

.ep-inventory__detail p {
  margin: 0;
  line-height: 1.6;
  color: var(--ep-cream-dim);
}

/* Responsive */
@media (max-width: 900px) {
  .ep-clue-grid,
  .ep-character-grid,
  .ep-deduction-layout {
    grid-template-columns: 1fr;
  }

  .ep-inventory__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ep-journal {
    height: 94vh;
  }
}

@media (max-width: 620px) {
  .ep-journal {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: 0;
  }

  .ep-journal__head {
    padding: 16px 16px 8px;
  }

  .ep-tabs {
    padding: 0 12px 10px;
  }

  .ep-journal__content {
    padding: 16px;
  }

  .ep-timeline li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .ep-character-card {
    flex-direction: column;
  }

  .ep-reader__paper {
    padding: 22px 18px;
    border-radius: 0;
    max-height: 100vh;
  }

  .ep-reader {
    width: 100%;
    height: 100%;
  }

  .ep-overlay--reader {
    padding: 0;
  }

  .ep-keypad__display {
    font-size: 1.6rem;
  }
}
