/* ── ENVIRONMENTAL DECORATIONS ────────────────────────────── */

/* Coffee ring stain */
.env-coffee-ring {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid rgba(90, 60, 20, 0.12);
  background: radial-gradient(
    circle,
    rgba(110, 75, 30, 0.06) 40%,
    transparent 70%
  );
  z-index: 1;
  pointer-events: none;
}

.env-coffee-ring.small {
  width: 45px;
  height: 45px;
  border-width: 2px;
  opacity: 0.7;
}

/* Tape strip */
.env-tape-strip {
  position: absolute;
  width: 60px;
  height: 18px;
  background: rgba(255, 255, 220, 0.25);
  border: 1px solid rgba(255, 255, 200, 0.15);
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Scribbled notes */
.env-scribble {
  position: absolute;
  font-family: var(--font-hand);
  font-size: calc(0.95rem * var(--board-readability-scale));
  color: rgba(60, 50, 30, 0.5);
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

/* Stamp */
.env-stamp {
  position: absolute;
  font-family: var(--font-case);
  font-size: max(calc(0.65rem * var(--board-readability-scale)), 0.76rem);
  letter-spacing: 0.15em;
  color: rgba(170, 20, 20, 0.2);
  border: 2px solid rgba(170, 20, 20, 0.2);
  padding: 5px 13px;
  border-radius: 3px;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

/* Newspaper clipping */
.env-newspaper {
  position: absolute;
  width: 156px;
  background: linear-gradient(180deg, #e8e2d0 0%, #ddd6c2 100%);
  padding: 9px 12px;
  border-radius: 1px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  z-index: 1;
  transform-origin: center;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.env-newspaper:hover {
  transform: rotate(3deg) scale(1.05) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.newspaper-headline {
  font-family: var(--font-case);
  font-size: max(calc(0.55rem * var(--board-readability-scale)), 0.66rem);
  letter-spacing: 0.04em;
  color: #1a1a1a;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.26;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  padding-bottom: 4px;
}

.newspaper-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.newspaper-line {
  height: 2.2px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 1px;
}

.newspaper-line.short {
  width: 65%;
}

/* Pinned photo */
.env-photo-pin {
  position: absolute;
  width: 64px;
  text-align: center;
  z-index: 1;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.env-photo-pin:hover {
  transform: rotate(6deg) scale(1.1) !important;
}

.photo-pin-img {
  width: 58px;
  height: 58px;
  background: #ddd;
  border: 3px solid white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: grid;
  place-items: center;
  font-size: calc(1.5rem * var(--board-readability-scale));
  margin: 0 auto 2px;
}

.env-photo-pin .small {
  font-size: calc(0.82rem * var(--board-readability-scale));
}

.camera-anchor {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.env-timeline-memo {
  width: 104px;
  padding: 12px 10px 10px;
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #ece3cf 0%, #e1d5bb 50%, #d5c6a7 100%);
  border: 1px solid rgba(90, 74, 46, 0.14);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 2px 8px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.env-timeline-memo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 18px,
      rgba(60, 48, 28, 0.05) 18px 19px
    );
  opacity: 0.65;
}

.timeline-pin {
  position: absolute;
  top: -7px;
  left: calc(50% - 7px);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ec6767 0%, var(--pin-red) 42%, #8b1a1a 100%);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
  z-index: 2;
}

.timeline-head,
.timeline-body,
.slip-eyebrow,
.slip-bars,
.slip-stamp,
.travel-passport,
.travel-tag,
.travel-stub {
  position: relative;
  z-index: 1;
}

.timeline-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
  padding-bottom: 7px;
  border-bottom: 1px dashed rgba(90, 74, 46, 0.26);
  font-family: var(--font-case);
  font-size: max(calc(0.56rem * var(--board-readability-scale)), 0.66rem);
  letter-spacing: 0.1em;
  color: #69573a;
}

.timeline-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-body::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 6px;
  left: 27px;
  width: 1.5px;
  background: linear-gradient(180deg, rgba(139, 26, 26, 0.18), rgba(139, 26, 26, 0.52), rgba(139, 26, 26, 0.18));
}

.timeline-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
}

.timeline-time {
  position: relative;
  font-family: var(--font-case);
  font-size: max(calc(0.52rem * var(--board-readability-scale)), 0.62rem);
  letter-spacing: 0.08em;
  color: #7b6645;
}

.timeline-time::after {
  content: "";
  position: absolute;
  top: 5px;
  right: -9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(139, 26, 26, 0.74);
  box-shadow: 0 0 0 2px rgba(226, 213, 184, 0.92);
}

.timeline-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 1px;
}

.timeline-bars span {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: rgba(64, 52, 31, 0.34);
}

.timeline-bars .short {
  width: 68%;
}

.env-redacted-slip {
  width: 138px;
  padding: 16px 14px 14px;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 24%),
    linear-gradient(180deg, #ece2cf 0%, #dfd2b9 55%, #d2c39f 100%);
  border: 1px solid rgba(90, 74, 46, 0.15);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.28),
    0 3px 10px rgba(0, 0, 0, 0.18);
}

.env-redacted-slip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(
      -14deg,
      transparent 0 8px,
      rgba(255, 255, 255, 0.03) 8px 10px
    );
  opacity: 0.8;
}

.slip-clip {
  position: absolute;
  top: -14px;
  left: 18px;
  width: 34px;
  height: 22px;
  border: 3px solid rgba(102, 92, 79, 0.82);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  transform: rotate(-8deg);
}

.slip-eyebrow {
  margin-bottom: 10px;
  font-family: var(--font-case);
  font-size: max(calc(0.58rem * var(--board-readability-scale)), 0.68rem);
  letter-spacing: 0.16em;
  color: #78654a;
}

.slip-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slip-bars span {
  display: block;
  height: 10px;
  border-radius: 2px;
  background: rgba(14, 14, 16, 0.82);
}

.slip-bars .short {
  width: 72%;
}

.slip-stamp {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px 5px;
  border: 1.5px solid rgba(139, 26, 26, 0.32);
  border-radius: 3px;
  font-family: var(--font-case);
  font-size: max(calc(0.54rem * var(--board-readability-scale)), 0.64rem);
  letter-spacing: 0.16em;
  color: rgba(139, 26, 26, 0.72);
}

.env-travel-cluster {
  width: 172px;
  height: 166px;
}

.travel-passport,
.travel-tag,
.travel-stub {
  position: absolute;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.28),
    0 3px 10px rgba(0, 0, 0, 0.16);
}

.travel-passport {
  left: 10px;
  top: 24px;
  width: 116px;
  height: 98px;
  border-radius: 10px 7px 12px 8px;
  background: linear-gradient(180deg, #24405c 0%, #1a3046 48%, #122436 100%);
  overflow: hidden;
}

.travel-passport::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(246, 232, 196, 0.12);
  border-radius: 8px;
}

.travel-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

.travel-cover-mark {
  font-family: var(--font-case);
  font-size: max(calc(0.52rem * var(--board-readability-scale)), 0.62rem);
  letter-spacing: 0.16em;
  color: rgba(242, 226, 187, 0.64);
}

.travel-cover-title {
  font-family: var(--font-case);
  font-size: max(calc(0.78rem * var(--board-readability-scale)), 0.92rem);
  letter-spacing: 0.14em;
  color: rgba(244, 234, 204, 0.92);
}

.travel-seal {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(232, 216, 178, 0.38);
  box-shadow: inset 0 0 0 5px rgba(232, 216, 178, 0.08);
}

.travel-stub {
  top: 4px;
  right: 14px;
  width: 92px;
  padding: 10px 10px;
  border-left: 4px solid rgba(175, 74, 74, 0.42);
  border-radius: 4px;
  background: linear-gradient(180deg, #efe3ca 0%, #e1d1b1 100%);
  transform: rotate(8deg);
  overflow: hidden;
}

.travel-stub::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 11px,
      rgba(96, 78, 45, 0.08) 11px 12px
    );
  opacity: 0.56;
}

.travel-stub span {
  position: relative;
  z-index: 1;
  display: block;
  font-family: var(--font-case);
  font-size: max(calc(0.56rem * var(--board-readability-scale)), 0.66rem);
  letter-spacing: 0.16em;
  color: #6a5a3f;
}

.travel-stub span + span {
  margin-top: 6px;
}

.travel-tag {
  right: 0;
  bottom: 12px;
  width: 76px;
  padding: 10px 9px 10px 13px;
  border-radius: 5px;
  background: linear-gradient(180deg, #f0dfb6 0%, #e7d29b 100%);
  transform: rotate(6deg);
}

.travel-tag::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bc9b67;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.travel-flag {
  display: block;
  margin-bottom: 3px;
  font-size: calc(1.2rem * var(--board-readability-scale));
}

.travel-tag-copy {
  display: block;
  color: #2f2817;
  font-size: calc(0.9rem * var(--board-readability-scale));
  line-height: 1;
}

/* ── INTRO OVERLAY ───────────────────────────────────────── */

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  isolation: isolate;
  background: rgba(6, 8, 12, 0.34);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}

.intro-overlay::before {
  content: "";
  position: absolute;
  inset: -4%;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.26) 0%, rgba(5, 7, 10, 0.42) 100%),
    url("../background.png") center center / cover no-repeat;
  filter: blur(14px) saturate(0.9) brightness(0.62);
  transform: scale(1.08);
}

.intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-content {
  text-align: center;
  animation: intro-fade-in 1.2s ease-out;
}

.intro-badge {
  font-family: var(--font-case);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--string);
  border: 1.5px solid var(--string);
  display: inline-block;
  padding: 4px 20px;
  margin-bottom: 20px;
  animation: intro-stamp 0.6s 0.5s ease-out both;
}

.intro-title {
  font-family: var(--font-case);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 12px;
  animation: intro-fade-in 1s 0.3s ease-out both;
}

.intro-subtitle {
  font-family: var(--font-hand);
  font-size: 1.2rem;
  color: rgba(220, 210, 190, 0.5);
  animation: intro-fade-in 1s 0.8s ease-out both;
}

.intro-line {
  width: 60px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 20px auto 0;
  animation: intro-line-grow 0.8s 1s ease-out both;
}

@keyframes intro-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes intro-stamp {
  0% {
    opacity: 0;
    transform: scale(2.5) rotate(-8deg);
  }
  60% {
    opacity: 1;
    transform: scale(0.95) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes intro-line-grow {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 60px;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-overlay {
    transition-duration: 0.18s;
  }

  .intro-content,
  .intro-badge,
  .intro-title,
  .intro-subtitle,
  .intro-line {
    animation: none !important;
  }
}
