﻿:root {
  --bg: #0b0b0b;
  --paper: #141414;
  --line: #2a2a2a;
  --text: #d0d0d0;
  --accent: #7a0c0c;
  --muted: #9b9b9b;
  --btn-inner: #0e0e0e;
  --btn-glow: rgba(255, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

@keyframes archive-border-shift {
  0% { background-position: 0 0, 0% 50%; }
  50% { background-position: 0 0, 100% 50%; }
  100% { background-position: 0 0, 0% 50%; }
}

:where(.listen-btn, .jump-btn, .card-actions a, .board-fullscreen-btn, .board-close-btn, .mobile-nav-toggle, .mobile-nav-item, .to-top) {
  border: 2px solid transparent;
  background:
    linear-gradient(180deg, rgba(34, 10, 10, 0.92), rgba(10, 10, 10, 0.98)) padding-box,
    linear-gradient(90deg, rgba(255, 43, 43, 1), rgba(255, 120, 120, 0.72), rgba(122, 12, 12, 0.98), rgba(255, 43, 43, 1), rgba(255, 88, 88, 0.9)) border-box;
  background-size: 100% 100%, 320% 320%;
  animation: archive-border-shift 4.8s linear infinite;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

:where(.listen-btn, .jump-btn, .card-actions a, .board-fullscreen-btn, .board-close-btn, .mobile-nav-toggle, .mobile-nav-item, .to-top):hover {
  box-shadow: 0 0 18px var(--btn-glow), 0 0 28px rgba(122, 12, 12, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  filter: brightness(1.08) contrast(1.06);
}

:where(.listen-btn, .jump-btn, .card-actions a, .board-fullscreen-btn, .board-close-btn, .mobile-nav-toggle, .mobile-nav-item):hover {
  transform: translateY(-1px) scale(1.02);
}

:where(.listen-btn, .jump-btn, .card-actions a, .board-fullscreen-btn, .board-close-btn, .mobile-nav-toggle, .mobile-nav-item, .to-top):focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 59, 59, 0.22), 0 0 18px rgba(255, 0, 0, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

:where(.listen-btn, .jump-btn, .card-actions a, .board-fullscreen-btn, .board-close-btn, .mobile-nav-toggle, .mobile-nav-item) {
  transition: transform 0.15s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Mono", "Consolas", monospace;
  line-height: 1.62;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: -2;
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 255, 255, 0.035), transparent 34%),
    radial-gradient(circle at 90% 85%, rgba(255, 255, 255, 0.03), transparent 39%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.014) 0, rgba(255, 255, 255, 0.014) 1px, transparent 1px, transparent 4px);
  opacity: 0.56;
}

body::after {
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170' viewBox='0 0 170 170'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'%3E%3Cpath d='M8 28h44M96 24h62M26 88h28M90 100h46M37 148h58'/%3E%3C/g%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.42;
}

.warning-tape {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  overflow: hidden;
  background: repeating-linear-gradient(-45deg, #ff0000 0, #ff0000 18px, #000000 18px, #000000 36px);
  border-bottom: 1px solid #7e6d1d;
  z-index: 1500;
}

.warning-track {
  display: flex;
  width: max-content;
  animation: tape-scroll 13s linear infinite;
}

.warning-track span {
  white-space: nowrap;
  color: #c8ff00;
  font: 1000 clamp(1.2rem, 2.8vw, 2rem)/54px "Special Elite", "Courier New", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-right: 2.4rem;
}

@keyframes tape-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 54px;
  z-index: 1495;
  display: none;
  padding: 8px 10px 10px;
  background: rgba(12, 12, 12, 0.92);
  border-bottom: 1px solid rgba(255, 59, 59, 0.22);
  backdrop-filter: blur(6px);
}

.mobile-nav-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: #f0f0f0;
  font-family: inherit;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.mobile-nav-caret {
  transition: transform 0.2s ease;
}

.mobile-nav-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.28s ease, opacity 0.25s ease, transform 0.25s ease;
  padding-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-nav.open .mobile-nav-panel {
  max-height: 420px;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav.open .mobile-nav-caret {
  transform: rotate(180deg);
}

.mobile-nav-item {
  appearance: none;
  width: 100%;
  padding: 10px 10px;
  color: #f4f0f0;
  font-family: inherit;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: clamp(0.74rem, 1.7vw, 0.9rem);
  cursor: pointer;
}

.page {
  width: min(1120px, calc(100% - 20px));
  margin: 0 auto;
  padding: 82px 0 58px;
}

.section {
  width: 100%;
  margin: 0 auto 42px;
}

.top-block {
  text-align: center;
  margin-bottom: 30px;
}

.main-title {
  margin: 0;
  text-transform: uppercase;
  font: 700 clamp(2.5rem, 9vw, 6rem) "Special Elite", "Courier New", monospace;
  letter-spacing: 0.14em;
  color: #ff0000;
  text-shadow: 0 0 22px rgba(122, 12, 12, 0.5), 0 0 4px rgba(255, 255, 255, 0.4);
}

.access-mark {
  margin: 12px auto 0;
  color: var(--muted);
  font-size: clamp(0.94rem, 2vw, 1.14rem);
  letter-spacing: 0.08em;
}

.document,
.final-block {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.96), rgba(13, 13, 13, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.012), 0 10px 28px rgba(0, 0, 0, 0.35);
  padding: clamp(16px, 2.8vw, 30px);
}

.document::after,
.final-block::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 85% 12%, rgba(122, 12, 12, 0.1), transparent 44%);
}

.doc-header {
  text-align: center;
  margin-bottom: 12px;
}

.doc-header h2 {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.95rem);
  letter-spacing: 0.08em;
}

.doc-header p {
  margin: 4px 0 0;
  color: #cf9696;
  font-size: clamp(0.95rem, 2.1vw, 1.16rem);
}

.archive-labels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  margin-bottom: 14px;
}

.archive-labels span {
  border: 1px dashed #303030;
  padding: 6px 8px;
  font-size: clamp(0.76rem, 1.7vw, 0.88rem);
  color: #b5b5b5;
}

.dossier-table {
  width: 100%;
  max-width: 780px;
  margin: 0 auto 20px;
  border-collapse: collapse;
}

.dossier-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: center;
  font-size: clamp(0.95rem, 2vw, 1.11rem);
  overflow-wrap: anywhere;
}

.dossier-table td:first-child {
  width: 48%;
}

.file-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
  align-items: start;
}

.file-text {
  text-align: center;
  font-size: clamp(1rem, 2.1vw, 1.15rem);
}

.file-text p {
  margin: 0 0 11px;
}

.indented-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  text-align: left;
  display: inline-block;
}

.indented-list li {
  margin-bottom: 4px;
}

.censor-line {
  color: #bbbbbb;
}

.censor {
  display: inline-block;
  min-width: 150px;
  letter-spacing: 0.08em;
  transition: color 0.35s ease;
}

.censor.revealed {
  color: #d6b0b0;
}

.cover-wrap {
  border: 1px solid var(--line);
  background: #101010;
  padding: 10px;
}

.cover-wrap img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.listen-btn {
  display: inline-block;
  margin-top: 8px;
  text-decoration: none;
  color: #f0f0f0;
  padding: 10px 16px;
  letter-spacing: 0.08em;
}

.listen-btn:hover { }

.section-jump {
  max-width: 980px;
  margin: 12px auto 18px;
  border: 1px dashed #303030;
  background: rgba(10, 10, 10, 0.32);
  padding: 10px 10px 12px;
}

.jump-title {
  text-align: center;
  letter-spacing: 0.09em;
  color: #c7b7b7;
  font-weight: 700;
  font-size: clamp(0.82rem, 1.6vw, 0.95rem);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.jump-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.jump-btn {
  appearance: none;
  color: #f4f0f0;
  padding: 10px 12px;
  font-family: inherit;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: clamp(0.72rem, 1.5vw, 0.9rem);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.jump-btn:hover {
  transform: translateY(-1px);
}

.jump-btn:active {
  transform: translateY(0);
}

.video-evidence {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.video-caption {
  margin: 0 auto 12px;
  max-width: 760px;
  color: #c8c8c8;
  font-size: clamp(0.92rem, 1.9vw, 1.05rem);
}

.video-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  color: #b8b8b8;
  letter-spacing: 0.1em;
  font-size: clamp(0.72rem, 1.6vw, 0.9rem);
  text-transform: uppercase;
}

.video-stamp {
  display: inline-block;
  border: 1px solid rgba(255, 59, 59, 0.5);
  padding: 3px 8px;
  color: rgba(255, 120, 120, 0.95);
  background: rgba(122, 12, 12, 0.1);
  transform: rotate(-2deg);
}

.video-note {
  margin: 8px 0 0;
  color: rgba(200, 200, 200, 0.82);
  font-size: clamp(0.86rem, 1.8vw, 1rem);
}

.video-caption p {
  margin: 0 0 6px;
}

.video-frame {
  position: relative;
  border: 1px solid var(--line);
  background: #0f0f0f;
  padding: 10px;
  overflow: hidden;
  max-width: 980px;
  margin: 0 auto;
}

.video-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 4px);
  opacity: 0.12;
}

.video-frame iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  position: relative;
  z-index: 1;
  background: #0f0f0f;
}

.video-preview {
  position: absolute;
  inset: 10px;
  z-index: 4;
  overflow: hidden;
  border: 1px dashed rgba(200, 200, 200, 0.22);
  background: #0b0b0b;
  display: grid;
  place-items: center;
}

.video-preview.hidden {
  display: none;
}

.video-preview-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9);
  transform: scale(1.02);
}

.video-preview-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 59, 59, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.78));
}

.video-play {
  position: relative;
  z-index: 1;
  padding: 14px 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.video-loader {
  position: absolute;
  inset: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(200, 200, 200, 0.22);
  background: rgba(0, 0, 0, 0.72);
  color: #f0f0f0;
  text-align: center;
  padding: 16px 12px;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.video-loader.hide {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.loader-title {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 180, 180, 0.95);
  text-shadow: 0 0 14px rgba(255, 0, 0, 0.12);
  margin-bottom: 8px;
}

.loader-sub {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 240, 240, 0.9);
}

.loader-bar {
  margin-top: 14px;
  width: min(420px, 100%);
  height: 10px;
  border: 1px solid rgba(255, 59, 59, 0.26);
  background: rgba(20, 10, 10, 0.28);
  overflow: hidden;
}

.loader-bar span {
  display: block;
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, rgba(255, 43, 43, 0.1), rgba(255, 43, 43, 0.75), rgba(255, 43, 43, 0.1));
  animation: loader-scan 1.2s ease-in-out infinite;
}

@keyframes loader-scan {
  0% { transform: translateX(-40%); opacity: 0.35; }
  50% { opacity: 0.95; }
  100% { transform: translateX(220%); opacity: 0.35; }
}

.video-overlay {
  display: none;
  position: absolute;
  inset: 10px;
  z-index: 2;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #f0f0f0;
  border: 1px dashed rgba(200, 200, 200, 0.32);
  background: rgba(0, 0, 0, 0.6);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: clamp(0.8rem, 2.2vw, 1.05rem);
}

.youtube-btn {
  margin-top: 12px;
}

.glitching {
  will-change: filter, transform, opacity;
}

#section-toast {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 2200;
  pointer-events: none;
  opacity: 0;
  max-width: min(640px, calc(100vw - 28px));
  border: 1px solid #5b4b2f;
  background: rgba(20, 16, 10, 0.92);
  color: #f2e7c7;
  padding: 9px 12px;
  font-size: clamp(0.82rem, 1.7vw, 0.96rem);
  letter-spacing: 0.06em;
  text-align: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#section-toast.show {
  opacity: 0.98;
  transform: translateX(-50%) translateY(-2px);
}

.to-top {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 2250;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 59, 59, 0.5);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 59, 59, 0.28), transparent 58%),
    linear-gradient(180deg, rgba(122, 12, 12, 0.32), rgba(10, 10, 10, 0.5));
  color: #f0f0f0;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.to-top.show {
  opacity: 0.95;
  pointer-events: auto;
  transform: translateY(0);
  animation: top-pulse 1.8s ease-in-out infinite;
}

.to-top:hover {
  box-shadow: 0 0 18px rgba(255, 0, 0, 0.18), 0 0 28px rgba(122, 12, 12, 0.34);
  filter: brightness(1.08) contrast(1.06);
}

.to-top:active {
  transform: translateY(1px);
}

@keyframes top-pulse {
  0% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03); }
  50% { box-shadow: 0 0 14px rgba(255, 0, 0, 0.12), 0 0 22px rgba(122, 12, 12, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.03); }
  100% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03); }
}

.section-title {
  margin: 0 0 16px;
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(1.55rem, 3.9vw, 2.6rem);
  letter-spacing: 0.09em;
}

.suspects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.accomplices-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profile-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.profile-card:hover {
  transform: translateY(-3px);
  border-color: #6d3131;
  box-shadow: 0 0 18px rgba(122, 12, 12, 0.26);
}

.profile-card img {
  width: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #0b0b0b;
}

.major img {
  aspect-ratio: 16 / 10;
}

.minor img {
  aspect-ratio: 5 / 4;
}

.card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px;
  font-size: clamp(0.9rem, 1.75vw, 1rem);
}

.card-body h3 {
  margin: 0 0 7px;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  text-align: center;
  color: #ff3b3b;
  letter-spacing: 0.04em;
  text-shadow:
    0 0 4px rgba(255, 59, 59, 0.95),
    0 0 14px rgba(165, 12, 12, 0.85),
    0 0 24px rgba(122, 12, 12, 0.75);
  overflow-wrap: anywhere;
}

.card-body p {
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}

.card-actions {
  margin-top: auto;
  padding-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
}

.card-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text);
  padding: 7px 4px;
  font-size: clamp(0.72rem, 1.45vw, 0.86rem);
}

.card-actions a:hover { }

.card-actions img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.chat-card {
  border: 1px solid #282828;
  background: #101010;
  padding: 10px;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.chat-card header {
  margin-bottom: 8px;
  color: #a0a0a0;
  font-size: clamp(0.76rem, 1.5vw, 0.86rem);
}

.chat-card p {
  margin: 0 0 8px;
}

.nick {
  font-weight: 700;
}

.nick.ak { color: #ff8b8b; }
.nick.p404 { color: #ff5f5f; }
.nick.mur { color: #3c5f99; }
.nick.mak { color: #2f4f87; }
.nick.x { color: #29477b; }

.board-section {
  border: 1px solid var(--line);
  background: #131313;
  padding: 16px;
}

.board-canvas {
  position: relative;
  min-height: 760px;
  background: linear-gradient(180deg, #201a13, #16120d);
  border: 1px solid #3b3325;
  overflow: hidden;
}

.board-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.08), transparent 22%),
    radial-gradient(circle at 80% 74%, rgba(255, 255, 255, 0.07), transparent 24%);
}

.board-fullscreen-btn {
  display: none;
  margin: 0 auto 10px;
  color: #d2e5fb;
  padding: 7px 10px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 2601;
}

.board-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2602;
  display: none;
  color: #f2c2c2;
  font-size: 0.78rem;
  padding: 6px 8px;
}

.board-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.board-lines line {
  stroke: rgba(188, 35, 35, 0.55);
  stroke-width: 2;
}

.board-lines text {
  fill: rgba(232, 218, 170, 0.86);
  font: 700 18px "IBM Plex Mono", monospace;
  letter-spacing: 0.03em;
}

.board-item {
  position: absolute;
  z-index: 2;
}

.note {
  width: 250px;
  min-height: 92px;
  padding: 20px 10px 10px;
  color: #221b13;
  background: #d7c896;
  border: 1px solid #7e6c44;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.34);
  font-size: clamp(0.8rem, 1.6vw, 0.9rem);
}

.note::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 10px;
  background: rgba(230, 230, 230, 0.45);
}

.photo {
  width: 180px;
  background: #120f0f;
  border: 1px solid #403030;
  padding: 8px;
  box-shadow: 0 9px 16px rgba(0, 0, 0, 0.36);
}

.photo img {
  width: 100%;
  display: block;
}

.track-node,
.suspect-node {
  border: 1px solid #4a4a4a;
  background: #131313;
  color: #ddd;
  padding: 8px 10px;
  font-size: 0.86rem;
  text-align: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.34);
}

.track-node {
  border-color: #756443;
  background: #2a241a;
  color: #f1deb2;
}

.suspect-node {
  border-color: #5f2f2f;
  background: #251515;
  color: #e2b2b2;
}

.t1 { left: 26%; top: 9%; transform: rotate(-2deg); }
.t2 { left: 47%; top: 8%; transform: rotate(1deg); }
.t3 { left: 66%; top: 8%; transform: rotate(-1deg); }
.t4 { left: 84%; top: 8%; transform: rotate(2deg); }

.s1 { left: 24%; top: 26%; transform: rotate(-1deg); }
.s2 { left: 43%; top: 26%; transform: rotate(1deg); }
.s3 { left: 62%; top: 26%; transform: rotate(-2deg); }
.s4 { left: 81%; top: 26%; transform: rotate(2deg); }

.a { left: 4%; top: 12%; transform: rotate(-5deg); }
.b { left: 4%; top: 34%; transform: rotate(3deg); }
.c { left: 4%; top: 58%; transform: rotate(-2deg); }
.d { left: 31%; top: 58%; transform: rotate(2deg); }

.f { left: 56%; top: 49%; transform: rotate(-4deg); }
.g { left: 72%; top: 48%; transform: rotate(3deg); }
.h { left: 86%; top: 48%; transform: rotate(-5deg); }
.k { left: 73%; top: 66%; transform: rotate(4deg); }

.track-evidence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.track-evidence div {
  border: 1px solid #262626;
  background: #111;
  padding: 8px 10px;
  display: grid;
  gap: 3px;
}

.track-evidence strong {
  font-size: clamp(0.9rem, 1.8vw, 1.03rem);
}

.track-evidence span {
  color: #b1b1b1;
  font-size: clamp(0.8rem, 1.6vw, 0.92rem);
}

.track-evidence em {
  color: #d69f9f;
  font-style: normal;
}

.records-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.record-card {
  position: relative;
  border: 1px solid #7a6a40;
  background: #d8ca9b;
  color: #271f10;
  padding: 18px 12px 12px;
  text-align: left;
  font-size: clamp(0.82rem, 1.65vw, 0.93rem);
  min-height: 140px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
}

.record-card::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 9px;
  background: rgba(230, 230, 230, 0.45);
}

.record-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
}

.record-card p {
  margin: 0;
}

.danger-note {
  margin: 14px 0 0;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
  font-size: clamp(0.98rem, 2vw, 1.1rem);
}

.final-doc {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.final-doc p {
  margin: 0 0 10px;
  font-size: clamp(0.96rem, 2vw, 1.13rem);
}

.final-alert {
  color: #d1a0a0;
  letter-spacing: 0.06em;
}

.final-btn {
  margin-top: 10px;
}

#screen-flash {
  position: fixed;
  inset: 0;
  z-index: 2300;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.02s linear;
}

#screen-flash.active {
  opacity: 0.9;
}

.floating-photo {
  position: fixed;
  z-index: 1800;
  pointer-events: none;
  opacity: 0;
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.5));
  animation-name: photo-fade;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
}

@keyframes photo-fade {
  0% { opacity: 0; }
  30% { opacity: 0.6; }
  100% { opacity: 0; }
}

.floating-stamp {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  border: 1px solid;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 3px 8px;
  font-size: clamp(0.72rem, 1.45vw, 0.9rem);
  font-weight: 700;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
  opacity: 0.56;
}

.stamp-red {
  color: #d57575;
  border-color: #b04141;
  background: rgba(122, 12, 12, 0.1);
}

.stamp-blue {
  color: #79abd7;
  border-color: #3e6f9c;
  background: rgba(30, 67, 110, 0.1);
}

.stamp-yellow {
  color: #d8c07a;
  border-color: #987d30;
  background: rgba(149, 122, 35, 0.08);
}

.listen-sticker {
  position: absolute;
  z-index: 4;
  text-decoration: none;
  color: #1f1508;
  background: rgb(241, 215, 109);
  border: 4px dotted #786325;
  padding: 5px 8px;
  font-size: clamp(0.72rem, 1.35vw, 0.84rem);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  opacity: 0.68;

  transform: rotate(var(--rot, 0deg)) scale(1);
  transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.listen-sticker:hover {
  opacity: 1;
  transform: rotate(var(--rot, 0deg)) scale(1.15);
  filter: brightness(1.1);
}

#system-message {
  position: fixed;
  left: 50%;
  top: 62px;
  transform: translateX(-50%);
  z-index: 2100;
  pointer-events: none;
  opacity: 0;
  color: #a8d8f8;
  border: 1px solid #416784;
  background: rgba(13, 28, 40, 0.92);
  padding: 6px 10px;
  font-size: clamp(0.72rem, 1.4vw, 0.86rem);
  letter-spacing: 0.09em;
  transition: opacity 0.25s ease;
}

#system-message.show {
  opacity: 0.95;
}

@media (max-width: 930px) {
  .file-layout {
    grid-template-columns: 1fr;
  }

  .cover-wrap {
    max-width: 420px;
    margin: 0 auto;
  }

  .archive-labels,
  .track-evidence,
  .docs-grid,
  .records-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .board-canvas {
    min-height: 980px;
  }

  .t1 { left: 8%; top: 4%; }
  .t2 { left: 38%; top: 4%; }
  .t3 { left: 64%; top: 4%; }
  .t4 { left: 8%; top: 14%; }
  .s1 { left: 38%; top: 14%; }
  .s2 { left: 64%; top: 14%; }
  .s3 { left: 8%; top: 24%; }
  .s4 { left: 38%; top: 24%; }
  .a { left: 8%; top: 34%; }
  .b { left: 44%; top: 34%; }
  .c { left: 8%; top: 50%; }
  .d { left: 44%; top: 50%; }
  .f { left: 8%; top: 67%; }
  .g { left: 44%; top: 67%; }
  .h { left: 8%; top: 82%; }
  .k { left: 44%; top: 82%; }
}

@media (max-width: 760px) {
  .page {
    width: min(1120px, calc(100% - 12px));
    padding-top: 132px;
  }

  .mobile-nav {
    display: block;
    top: 48px;
  }

  .section-jump {
    display: none;
  }

  #system-message {
    top: 112px;
  }

  .section {
    margin-bottom: 34px;
  }

  .warning-tape {
    height: 48px;
  }

  .warning-track span {
    line-height: 48px;
  }

  .main-title {
    letter-spacing: 0.08em;
  }

  .card-actions .btn-label {
    display: none;
  }

  .card-actions img {
    width: 17px;
    height: 17px;
  }

  .card-actions a {
    padding: 8px 4px;
  }

  .board-fullscreen-btn {
    display: block;
  }

  .board-canvas.fullscreen {
    position: fixed;
    inset: 0;
    z-index: 2500;
    min-height: 100vh;
    width: 100vw;
    margin: 0;
    border: none;
    border-radius: 0;
    background: linear-gradient(180deg, #1f1912, #15110c);
    overflow: auto;
    padding-bottom: 20px;
  }

  .board-canvas.fullscreen .board-close-btn {
    display: block;
    position: fixed;
    top: 10px;
    right: 10px;
  }

  body.board-open {
    overflow: hidden;
  }

  .board-canvas.fullscreen .board-item {
    transform-origin: center;
  }

  .section-jump {
    padding: 10px 8px 12px;
  }

  .jump-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .jump-btn {
    width: 100%;
    padding: 11px 10px;
  }

  .jump-btn[data-scroll="#file-444"] {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px), (pointer: coarse) {
  .video-overlay {
    display: none;
  }
}

@media (min-width: 931px) {
  .video-frame {
    max-width: 980px;
  }
}
