:root {
  --bg: #060806;
  --panel: rgba(9, 11, 8, 0.9);
  --panel-2: rgba(15, 17, 13, 0.96);
  --panel-3: rgba(24, 24, 20, 0.9);
  --paper: #cfc5aa;
  --ink: #ded6c2;
  --muted: #938a74;
  --yellow: #d1a41f;
  --green: #78d55a;
  --red: #aa3229;
  --border: rgba(177, 138, 40, 0.36);
  --border-strong: rgba(177, 138, 40, 0.7);
  --shadow: rgba(0, 0, 0, 0.58);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(152, 112, 28, 0.12), transparent 20%),
    radial-gradient(circle at 88% 24%, rgba(118, 213, 90, 0.06), transparent 18%),
    radial-gradient(circle at 82% 82%, rgba(156, 32, 32, 0.09), transparent 22%),
    linear-gradient(180deg, #080a08 0%, #040503 100%);
  position: relative;
}

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

body::before {
  opacity: 0.12;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 120px);
  mix-blend-mode: soft-light;
}

body::after {
  opacity: 0.22;
  background:
    radial-gradient(circle at center, transparent 52%, rgba(0, 0, 0, 0.44) 100%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent 35%, rgba(255, 255, 255, 0.015) 70%, transparent 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1460px, calc(100% - 20px));
  margin: 10px auto;
  border: 1px solid rgba(169, 130, 39, 0.42);
  background:
    linear-gradient(180deg, rgba(10, 12, 8, 0.95), rgba(6, 7, 5, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 223, 121, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.7),
    0 30px 120px rgba(0, 0, 0, 0.62);
}

.site-shell::before,
.site-shell::after,
.dossier-panel::before,
.dossier-panel::after,
.site-header::before,
.site-footer::before,
.archive-card::before,
.dossier-card::before,
.story-preview-shell::before,
.story-actions::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.site-shell::before {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.04), transparent 18%),
    radial-gradient(circle at 72% 66%, rgba(255, 255, 255, 0.02), transparent 22%);
  opacity: 0.75;
}

.site-shell::after,
.dossier-panel::after,
.archive-card::before,
.dossier-card::before,
.story-preview-shell::before,
.story-actions::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.015), transparent 40%),
    linear-gradient(25deg, transparent 10%, rgba(255, 255, 255, 0.012) 50%, transparent 88%);
  mix-blend-mode: soft-light;
}

.page-wrap {
  padding: 18px 18px 30px;
}

.site-header,
.system-bar,
.site-footer,
.dossier-panel,
.archive-card,
.dossier-card,
.story-preview-shell,
.story-actions {
  position: relative;
  overflow: hidden;
}

.site-header,
.system-bar,
.site-footer {
  background: rgba(8, 10, 8, 0.92);
}

.site-header::before,
.site-footer::before,
.dossier-panel::before {
  background:
    radial-gradient(circle at 10% 12%, rgba(255, 255, 255, 0.03), transparent 18%),
    radial-gradient(circle at 88% 84%, rgba(255, 255, 255, 0.02), transparent 24%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 4px);
  opacity: 0.65;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.logo-group,
.logo-lockup {
  display: flex;
  align-items: center;
}

.logo-group {
  gap: 16px;
}

.logo-lockup {
  gap: 16px;
  min-width: 0;
}

.logo-mark,
.seal-mini,
.seal-large {
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(170, 136, 34, 0.38);
  position: relative;
}

.logo-mark {
  width: 54px;
  height: 54px;
  background:
    radial-gradient(circle at 50% 42%, rgba(151, 171, 99, 0.85) 0 36%, transparent 37%),
    radial-gradient(circle at 50% 50%, #141710 0, #060706 72%);
  box-shadow: inset 0 0 22px rgba(222, 198, 101, 0.15);
}

.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  top: 18px;
  width: 9px;
  height: 14px;
  border-radius: 50%;
  background: #0a0b08;
}

.logo-mark::before {
  left: 17px;
}

.logo-mark::after {
  right: 17px;
}

.logo-text strong {
  display: block;
  color: var(--yellow);
  text-transform: uppercase;
  font-family: Impact, "Arial Black", Haettenschweiler, system-ui, sans-serif;
  font-size: clamp(2.35rem, 1.95rem + 1.35vw, 4.2rem);
  line-height: 0.88;
  letter-spacing: 0.07em;
  text-shadow: 0 1px 0 rgba(255, 248, 204, 0.08), 0 0 20px rgba(194, 142, 20, 0.06);
}

.logo-text small {
  display: block;
  margin-top: 4px;
  font-size: 0.98rem;
  color: #9d957f;
  letter-spacing: 0.02em;
}

.seal-mini {
  width: 46px;
  height: 46px;
  opacity: 0.38;
  background:
    radial-gradient(circle at center, rgba(255, 211, 100, 0.12) 0 14%, transparent 15% 100%),
    radial-gradient(circle at center, transparent 0 46%, rgba(211, 175, 72, 0.24) 47% 52%, transparent 53% 100%);
}

.seal-large {
  width: 148px;
  height: 148px;
  margin-bottom: 22px;
  opacity: 0.35;
  background:
    radial-gradient(circle at center, rgba(255, 230, 140, 0.08) 0 20%, transparent 21% 100%),
    radial-gradient(circle at center, transparent 0 45%, rgba(186, 156, 77, 0.2) 46% 50%, transparent 51% 100%);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 22px;
}

.top-nav a {
  padding: 11px 4px 12px;
  border-bottom: 3px solid transparent;
  color: rgba(232, 225, 204, 0.88);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.08rem;
}

.top-nav a:hover,
.top-nav a.active {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

.id-switcher {
  margin-left: 8px;
  border: 1px solid rgba(204, 171, 90, 0.45);
  padding-inline: 18px !important;
  min-width: 80px;
  text-align: center;
}

.system-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 13px 22px;
  border-top: 1px solid rgba(255, 223, 121, 0.04);
  border-bottom: 1px solid rgba(171, 131, 36, 0.3);
  font-size: 0.98rem;
}

.meta-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(120, 213, 90, 0.8);
}

.system-pill {
  color: #b5b0a0;
  letter-spacing: 0.04em;
}

.system-pill-green {
  color: var(--green);
}

.system-pill-right {
  margin-left: auto;
}

.tiny-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.96rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.tiny-meta.green,
.green {
  color: var(--green);
}

.tiny-meta.yellow,
.yellow {
  color: var(--yellow);
}

.red {
  color: #ef564a;
}

.page-title,
.mega-title {
  margin: 0;
  text-transform: uppercase;
  font-family: Impact, "Arial Black", Haettenschweiler, system-ui, sans-serif;
  color: #dad3c4;
  line-height: 0.9;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}

.page-title {
  font-size: clamp(2.8rem, 2.2rem + 2.8vw, 6rem);
}

.mega-title {
  font-size: clamp(5rem, 3.4rem + 4vw, 10rem);
}

.text-link {
  color: var(--yellow);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.text-link::after {
  content: " ›";
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 20px;
  border: 1px solid rgba(194, 160, 70, 0.44);
  background: rgba(6, 8, 6, 0.55);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

.btn-primary {
  background:
    linear-gradient(180deg, #d4b132 0%, #bb8e12 100%);
  border-color: rgba(244, 210, 112, 0.48);
  color: #101008;
  font-family: Impact, "Arial Black", Haettenschweiler, system-ui, sans-serif;
  font-size: 1.12rem;
  box-shadow: inset 0 1px 0 rgba(255, 247, 198, 0.24);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ddb83d 0%, #c89a17 100%);
}

.btn-ghost {
  background: rgba(8, 10, 8, 0.74);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(213, 164, 31, 0.72);
  color: var(--yellow);
}

.btn-danger {
  border-color: rgba(170, 50, 41, 0.66);
  color: #f06d62;
}

.btn-danger:hover {
  background: rgba(83, 16, 13, 0.38);
}

.green-border {
  border-color: rgba(120, 213, 90, 0.54);
}

.green-border:hover {
  color: var(--green);
  border-color: rgba(120, 213, 90, 0.9);
}

.btn-big {
  min-height: 68px;
  padding-inline: 26px;
  font-size: 1.25rem;
}

.btn-small {
  min-height: 42px;
  padding: 9px 14px;
  font-size: 0.92rem;
}

.button-row,
.button-stack {
  display: flex;
  gap: 14px;
}

.button-row.wrap {
  flex-wrap: wrap;
}

.button-stack {
  flex-direction: column;
}

.dossier-panel,
.dossier-card,
.archive-card,
.story-preview-shell,
.story-actions {
  background:
    linear-gradient(180deg, rgba(11, 13, 10, 0.94), rgba(7, 8, 6, 0.96));
  border: 1px solid var(--border);
  box-shadow:
    inset 0 0 0 1px rgba(255, 220, 133, 0.035),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03),
    0 16px 32px rgba(0, 0, 0, 0.24);
}

.dossier-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  background:
    linear-gradient(180deg, rgba(18, 21, 16, 0.95), rgba(11, 13, 10, 0.96));
  border: 1px solid var(--border);
  color: #c4bb9f;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.warning-icon {
  color: var(--yellow);
  font-size: 1.05rem;
}

.warning-row,
.warning-strip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border: 1px solid rgba(168, 136, 40, 0.45);
  background: rgba(40, 31, 7, 0.38);
  color: #d5bf6b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.warning-label {
  color: var(--yellow);
}

.warning-box {
  padding: 22px 20px;
  border: 1px solid rgba(172, 136, 40, 0.35);
  background: rgba(10, 11, 8, 0.64);
}

.warning-box strong {
  display: block;
  margin-bottom: 10px;
  color: var(--yellow);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.warning-box p {
  margin: 0;
  color: #bdb39b;
  line-height: 1.65;
}

.red-outline {
  border-color: rgba(170, 50, 41, 0.58);
}

.stamp {
  position: absolute;
  z-index: 2;
  padding: 12px 18px;
  border: 2px solid currentColor;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: Impact, "Arial Black", Haettenschweiler, system-ui, sans-serif;
  opacity: 0.34;
  pointer-events: none;
}

.stamp.red {
  color: rgba(170, 50, 41, 0.86);
}

.stamp.tilt {
  transform: rotate(-13deg);
}

.top-right {
  top: 34px;
  right: 28px;
}

.bottom-right {
  bottom: 30px;
  right: 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: 18px;
  margin-bottom: 18px;
}

.hero-copy,
.hero-visual {
  padding: 30px;
  min-height: 760px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-copy .tiny-meta {
  margin-bottom: 30px;
}

.hero-lead {
  max-width: 540px;
  margin: 30px 0 28px;
  font-size: clamp(2.2rem, 1.8rem + 2.2vw, 4.35rem);
  line-height: 1.18;
  color: #ece5d2;
}

.hero-copy .button-row {
  flex-wrap: wrap;
}

.hero-footnote {
  margin-top: auto;
  padding-top: 20px;
  color: var(--muted);
  font-size: 1rem;
}

.hero-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  align-items: center;
  gap: 20px;
}

.hero-figure {
  min-height: 650px;
  padding: 24px;
  background: rgba(18, 19, 15, 0.88);
  border: 1px solid rgba(201, 171, 95, 0.35);
  box-shadow: inset 0 0 0 4px rgba(185, 158, 87, 0.08);
}

.hero-figure img {
  width: 100%;
  height: 100%;
  max-height: 650px;
  object-fit: cover;
}

.hero-side-meta {
  display: grid;
  gap: 26px;
  color: #746d5d;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.98rem;
}

.hero-side-meta p {
  margin: 0;
}

.home-warning-strip {
  margin: 0 0 18px;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dossier-card {
  padding: 20px;
  min-height: 300px;
}

.dossier-card h2 {
  margin: 0 0 18px;
  font-family: Impact, "Arial Black", Haettenschweiler, system-ui, sans-serif;
  color: var(--yellow);
  font-size: 2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dossier-card p {
  margin: 14px 0 0;
  color: #d0c8b2;
  line-height: 1.52;
  font-size: 1rem;
}

.card-media {
  height: 132px;
  overflow: hidden;
  border: 1px solid rgba(177, 138, 40, 0.32);
  background: rgba(20, 21, 17, 0.96);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

.card-media-terminal {
  background:
    linear-gradient(180deg, rgba(20, 40, 18, 0.3), rgba(8, 10, 8, 0.95)),
    radial-gradient(circle at center, rgba(120, 213, 90, 0.12), transparent 40%);
}

.card-media-paper {
  background:
    linear-gradient(180deg, rgba(95, 82, 49, 0.42), rgba(37, 31, 18, 0.86)),
    radial-gradient(circle at center, rgba(220, 203, 152, 0.1), transparent 42%);
}

.page-intro {
  position: relative;
  margin-bottom: 16px;
  padding: 10px 0 18px;
}

.page-intro-center {
  text-align: center;
}

.page-intro p {
  max-width: 920px;
  margin: 16px auto 0;
  color: #d2c7af;
  line-height: 1.56;
  font-size: 1.1rem;
}

.left-dossier-tab {
  position: absolute;
  left: 0;
  top: 6px;
  width: 170px;
  min-height: 288px;
  padding: 22px 16px;
  border: 1px solid rgba(168, 136, 40, 0.36);
  background:
    linear-gradient(180deg, rgba(97, 79, 42, 0.82), rgba(74, 58, 28, 0.75));
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255, 230, 165, 0.05);
}

.left-dossier-tab span,
.left-dossier-tab strong,
.left-dossier-tab small {
  display: block;
  color: #1d180e;
  text-transform: uppercase;
}

.left-dossier-tab span,
.left-dossier-tab small {
  font-size: 0.95rem;
}

.left-dossier-tab strong {
  margin: 18px 0 24px;
  font-size: 1.35rem;
}

.bureau-form {
  padding: 34px 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(171, 131, 36, 0.24);
}

.form-row:first-of-type {
  border-top: 0;
}

.form-row > label,
.form-row > legend {
  padding-top: 14px;
  color: #e3dac3;
  font-size: 1.1rem;
}

.form-row input[type="text"],
.form-row input[type="file"],
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(179, 146, 58, 0.34);
  background: rgba(9, 10, 8, 0.74);
  color: #e3dcc9;
}

.form-row textarea {
  min-height: 180px;
  resize: vertical;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #837b68;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.choice-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 14px;
  color: #ddd5c1;
}

.choice-pill input {
  width: 18px;
  height: 18px;
  accent-color: var(--yellow);
}

.upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 124px;
  border: 1px dashed rgba(213, 164, 31, 0.5);
  background: rgba(12, 14, 11, 0.7);
  text-align: center;
  cursor: pointer;
}

.upload-box small {
  color: #8c846f;
  margin-top: 4px;
}

.upload-box-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  color: #c9bc88;
}

.bureau-form input[type="file"] {
  position: absolute;
  left: -9999px;
}

.checkbox-row {
  grid-template-columns: 1fr;
}

.consent-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(179, 146, 58, 0.3);
  background: rgba(11, 13, 10, 0.68);
}

.consent-box input {
  margin-top: 2px;
  accent-color: var(--yellow);
}

.form-submit {
  padding-top: 26px;
  text-align: center;
}

.form-note {
  margin: 14px 0 0;
  color: #9e947e;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.analysis-layout {
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  gap: 18px;
}

.analysis-sidebar,
.analysis-main,
.status-search,
.result-header,
.witness-card,
.claim-main,
.claim-sidebar,
.claim-rejected,
.doc-layout,
.narrow-panel {
  padding: 26px;
}

.narrow-panel {
  max-width: 900px;
  margin: 0 auto 18px;
}

.meta-list,
.result-list {
  margin: 0;
  display: grid;
  gap: 14px;
}

.meta-list div,
.result-list div {
  display: grid;
  gap: 6px;
}

.meta-list dt,
.result-list dt {
  color: #867d69;
  text-transform: uppercase;
  font-size: 0.96rem;
}

.meta-list dd,
.result-list dd {
  margin: 0;
  color: #dad3c3;
  font-size: 1.2rem;
}

.analysis-main {
  min-height: 780px;
}

.analysis-sidebar .warning-box {
  margin-top: 24px;
}

.analysis-main .page-title {
  text-align: center;
  margin-bottom: 28px;
}

.analysis-frame {
  max-width: 880px;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(177, 138, 40, 0.42);
  background: rgba(19, 18, 14, 0.86);
}

.analysis-frame img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.03);
}

.analysis-frame.small img {
  max-height: 220px;
}

.analysis-divider {
  width: min(680px, 100%);
  height: 1px;
  margin: 24px auto 18px;
  background: linear-gradient(90deg, transparent, rgba(177, 138, 40, 0.7), transparent);
}

.terminal-panel {
  width: min(760px, 100%);
  margin: 0 auto;
}

.terminal-lines {
  display: grid;
  gap: 12px;
  color: var(--green);
  font-size: clamp(1.15rem, 1rem + 0.4vw, 1.8rem);
  line-height: 1.45;
  min-height: 270px;
}

.terminal-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.terminal-actions {
  padding-top: 12px;
}

.is-hidden {
  display: none !important;
}

.status-search {
  max-width: 1060px;
  margin-inline: auto;
}

.status-search-header {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.status-search-header p {
  margin: 10px 0 0;
  color: #9a917d;
}

.status-search-icon {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(177, 138, 40, 0.36);
  position: relative;
  flex: 0 0 auto;
}

.status-search-icon::before,
.status-search-icon::after {
  content: "";
  position: absolute;
}

.status-search-icon::before {
  inset: 16px;
  border: 3px solid var(--yellow);
  border-radius: 50%;
}

.status-search-icon::after {
  width: 26px;
  height: 3px;
  background: var(--yellow);
  right: 11px;
  bottom: 14px;
  transform: rotate(45deg);
}

.status-form label {
  display: block;
  margin-bottom: 12px;
  color: var(--yellow);
  font-size: 1.2rem;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 18px;
}

.search-row input {
  padding: 18px;
  border: 1px solid rgba(177, 138, 40, 0.38);
  background: rgba(8, 10, 8, 0.74);
  color: #ebe4d3;
  font-size: 1.2rem;
}

.result-utility-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(171, 131, 36, 0.26);
  color: #bba54c;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 28px;
}

.result-image-frame {
  padding: 14px;
  border: 1px solid rgba(177, 138, 40, 0.42);
  background: rgba(18, 17, 13, 0.92);
}

.result-image-frame img {
  width: 100%;
  aspect-ratio: 1 / 1.18;
  object-fit: cover;
}

.result-image-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--green);
  text-transform: uppercase;
  font-size: 0.95rem;
}

.result-list {
  gap: 10px;
}

.result-list div {
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(171, 131, 36, 0.2);
}

.result-copy {
  max-width: 520px;
  margin: 32px 0 28px;
  font-size: 1.2rem;
  line-height: 1.7;
}

.success-banner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px 22px;
  margin-bottom: 22px;
  padding: 14px 0 20px;
  border-bottom: 1px solid rgba(171, 131, 36, 0.22);
}

.success-banner strong {
  color: var(--green);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}

.success-banner p {
  margin: 8px 0 0;
  color: #c0b7a1;
}

.witness-transaction-code {
  min-width: 200px;
  padding: 14px 18px;
  border: 1px solid rgba(177, 138, 40, 0.28);
  background: rgba(10, 11, 8, 0.68);
}

.witness-transaction-code small,
.witness-transaction-code strong {
  display: block;
}

.witness-transaction-code small {
  color: #93866c;
  margin-bottom: 6px;
}

.witness-transaction-code strong {
  font-size: 1.28rem;
}

.witness-register {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 26px;
}

.witness-thumb {
  padding: 16px;
  border: 1px solid rgba(177, 138, 40, 0.34);
  background: rgba(16, 15, 12, 0.9);
}

.witness-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1.14;
  object-fit: cover;
}

.witness-info h2 {
  margin: 0 0 22px;
  font-family: Impact, "Arial Black", Haettenschweiler, system-ui, sans-serif;
  text-transform: uppercase;
  font-size: clamp(3rem, 2rem + 2vw, 6rem);
  line-height: 0.92;
  letter-spacing: 0.06em;
}

.witness-info p {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid rgba(171, 131, 36, 0.2);
  font-size: 1.18rem;
  line-height: 1.55;
}

.witness-strip {
  margin-top: 14px;
}

.archive-header,
.leaderboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 18px;
  margin-bottom: 18px;
}

.archive-header p,
.leaderboard-heading p {
  max-width: 720px;
  margin: 16px 0 0;
  color: #d2c8af;
  line-height: 1.55;
  font-size: 1.1rem;
}

.info-callout,
.leaderboard-callout {
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 22px;
  border: 1px solid rgba(177, 138, 40, 0.28);
  background: rgba(11, 14, 10, 0.8);
}

.info-callout strong,
.leaderboard-callout strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
}

.info-callout p,
.leaderboard-callout p {
  margin: 0;
  color: #c4baa2;
  font-size: 1.05rem;
  line-height: 1.6;
}

.leaderboard-eye {
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  border: 1px solid rgba(120, 213, 90, 0.36);
  position: relative;
}

.leaderboard-eye::before,
.leaderboard-eye::after {
  content: "";
  position: absolute;
  inset: 16px;
}

.leaderboard-eye::before {
  border: 2px solid rgba(120, 213, 90, 0.58);
  clip-path: polygon(50% 0, 100% 55%, 50% 100%, 0 55%);
}

.leaderboard-eye::after {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(120, 213, 90, 0.6);
  inset: 34px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid rgba(171, 131, 36, 0.24);
}

.filter-tabs a {
  padding: 16px 20px;
  border: 1px solid rgba(171, 131, 36, 0.24);
  border-bottom: 0;
  color: #c7bc9f;
  text-transform: uppercase;
}

.filter-tabs a.active,
.filter-tabs a:hover {
  background: rgba(42, 33, 8, 0.55);
  color: var(--yellow);
}

.archive-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 0 8px;
}

.archive-total {
  margin: 0;
  color: #cfc4ac;
  font-size: 1.05rem;
}

.archive-sort-search {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.archive-sort,
.archive-search {
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid rgba(177, 138, 40, 0.32);
  background: rgba(8, 10, 8, 0.74);
  color: #bcb39a;
}

.archive-search {
  min-width: 320px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.archive-empty {
  grid-column: 1 / -1;
  padding: 50px 24px;
  text-align: center;
  border: 1px dashed rgba(177, 138, 40, 0.36);
}

.archive-empty h2 {
  margin: 0 0 14px;
  font-family: Impact, "Arial Black", Haettenschweiler, system-ui, sans-serif;
  font-size: 3rem;
  color: var(--yellow);
}

.archive-card {
  padding: 14px;
}

.archive-thumb {
  border: 1px solid rgba(177, 138, 40, 0.3);
  background: rgba(17, 17, 13, 0.9);
}

.archive-thumb img {
  width: 100%;
  aspect-ratio: 1 / 0.85;
  object-fit: cover;
  filter: grayscale(0.45) contrast(0.92) sepia(0.08);
}

.archive-body {
  padding: 14px 4px 2px;
}

.archive-body h2 {
  margin: 0 0 8px;
  font-size: 2rem;
  color: var(--yellow);
}

.archive-location,
.archive-status,
.archive-category,
.archive-date {
  margin: 0 0 8px;
  line-height: 1.45;
}

.archive-location {
  color: #cbc0a6;
  text-transform: uppercase;
}

.archive-status {
  color: #df6a55;
}

.archive-category {
  color: #9cc76d;
  text-transform: uppercase;
}

.archive-date {
  color: #8f8570;
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.pagination a {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(177, 138, 40, 0.28);
  background: rgba(8, 10, 8, 0.72);
}

.pagination a.active,
.pagination a:hover {
  background: rgba(202, 157, 26, 0.9);
  color: #111008;
}

.archive-footer-grid,
.leaderboard-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.86fr;
  gap: 18px;
  margin-top: 26px;
}

.archive-footer-copy,
.archive-footer-warning,
.archive-footer-doc,
.archive-footer-tag,
.leaderboard-footer-copy,
.leaderboard-footer-warning,
.leaderboard-footer-doc,
.leaderboard-footer-tag,
.leaderboard-footer-seal {
  padding: 18px;
  border: 1px solid rgba(177, 138, 40, 0.24);
  background: rgba(9, 10, 8, 0.68);
  color: #c8bea3;
  line-height: 1.55;
}

.archive-footer-warning,
.leaderboard-footer-warning {
  color: var(--yellow);
}

.archive-footer-tag,
.leaderboard-footer-tag {
  color: #9fcb6c;
  text-transform: uppercase;
}

.claim-announcement {
  margin-bottom: 18px;
}

.claim-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
}

.claim-sidebar {
  display: grid;
  gap: 18px;
  align-content: start;
}

.sidebar-big-number {
  padding: 12px 0;
}

.sidebar-big-number small,
.sidebar-big-number span {
  display: block;
}

.sidebar-big-number strong {
  display: block;
  margin: 8px 0;
  font-family: Impact, "Arial Black", Haettenschweiler, system-ui, sans-serif;
  color: var(--yellow);
  font-size: 4rem;
  line-height: 0.92;
}

.claim-main p {
  color: #d0c7b0;
  line-height: 1.55;
}

.claim-main .page-title {
  text-align: center;
  margin-bottom: 8px;
}

.claim-form {
  margin-top: 26px;
  display: grid;
  gap: 14px;
}

.claim-form .btn-primary {
  justify-self: center;
  min-width: min(560px, 100%);
}

.claim-form .form-row {
  grid-template-columns: minmax(0, 1fr) 420px;
  padding: 12px 0;
}

.claim-form .form-row label {
  padding-top: 14px;
  font-size: 1.08rem;
}

.claim-rejected.red-panel {
  border-color: rgba(170, 50, 41, 0.34);
}

.status-line {
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.claim-rejected-grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 28px;
  margin: 24px 0 26px;
}

.red-frame {
  border-color: rgba(170, 50, 41, 0.44);
}

.barcode-strip {
  margin-top: 14px;
  padding: 12px;
  background:
    repeating-linear-gradient(90deg, rgba(245, 245, 245, 0.9) 0 2px, transparent 2px 5px);
  color: #999078;
  text-align: center;
}

.claim-reason p {
  margin: 0 0 18px;
  font-size: 1.18rem;
  line-height: 1.7;
}

.visible-disclaimer {
  color: #e1b4ad;
}

.claim-bottom-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(170, 50, 41, 0.24);
  color: #998a77;
}

.certificate-wrap {
  display: grid;
  gap: 18px;
}

.simple-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.simple-form .btn {
  width: fit-content;
}

.certificate-sheet {
  background:
    radial-gradient(circle at 15% 25%, rgba(79, 71, 49, 0.18), transparent 24%),
    linear-gradient(180deg, #d2cab5 0%, #c4baa1 100%);
  border: 1px solid rgba(54, 44, 26, 0.7);
  padding: 30px;
  color: #161410;
}

.certificate-inner {
  position: relative;
  min-height: 760px;
  padding: 56px 70px 74px;
  border: 2px solid rgba(24, 20, 14, 0.82);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 26%),
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.04));
}

.certificate-corners::before,
.certificate-corners::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border: 5px double rgba(20, 18, 14, 0.95);
}

.certificate-corners::before {
  top: 18px;
  left: 18px;
  border-right: 0;
  border-bottom: 0;
}

.certificate-corners::after {
  right: 18px;
  bottom: 18px;
  border-left: 0;
  border-top: 0;
}

.certificate-inner h1,
.certificate-inner h2,
.certificate-inner p {
  text-align: center;
}

.certificate-inner h1 {
  margin: 22px 0 44px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 2.4rem + 2vw, 6rem);
  letter-spacing: 0.08em;
}

.certificate-inner h2 {
  margin: 34px auto 22px;
  width: min(620px, 100%);
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(35, 31, 24, 0.35);
  font-size: clamp(2.8rem, 2rem + 1vw, 4.2rem);
  font-weight: 400;
}

.certificate-inner p {
  font-size: 1.35rem;
  line-height: 1.7;
}

.certificate-id,
.certificate-status {
  margin-top: 34px;
  font-size: 1.85rem !important;
}

.certificate-signature {
  margin-top: 70px;
  text-align: center;
}

.signature-line {
  display: inline-block;
  width: 180px;
  height: 46px;
  border-bottom: 2px solid rgba(29, 22, 16, 0.6);
}

.certificate-stamp {
  position: absolute;
  right: 74px;
  bottom: 96px;
  padding: 18px 24px;
  border: 4px solid rgba(162, 71, 57, 0.62);
  color: rgba(162, 71, 57, 0.72);
  font-family: Impact, "Arial Black", Haettenschweiler, system-ui, sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
  transform: rotate(-12deg);
}

.certificate-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.certificate-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  color: #b4aa93;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(320px, 1fr);
  gap: 22px;
  align-items: start;
}

.story-preview-shell {
  padding: 22px;
}

.story-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 34px 30px 28px;
  background:
    radial-gradient(circle at top left, rgba(118, 213, 90, 0.08), transparent 24%),
    radial-gradient(circle at bottom right, rgba(170, 50, 41, 0.12), transparent 25%),
    linear-gradient(180deg, #0b0d0a 0%, #060705 100%);
  border: 1px solid rgba(177, 138, 40, 0.44);
  display: flex;
  flex-direction: column;
}

.story-preview::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(177, 138, 40, 0.3);
  pointer-events: none;
}

.story-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.story-preview h1 {
  margin: 18px 0 14px;
  font-family: Impact, "Arial Black", Haettenschweiler, system-ui, sans-serif;
  font-size: clamp(3rem, 2rem + 2vw, 5rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.story-alias {
  margin-bottom: 18px;
  color: #ecdfc3;
  font-size: clamp(1.6rem, 1.2rem + 1vw, 2.4rem);
  text-transform: uppercase;
}

.story-thumb {
  border: 1px solid rgba(177, 138, 40, 0.36);
  background: rgba(18, 17, 13, 0.94);
  overflow: hidden;
}

.story-thumb img {
  width: 100%;
  aspect-ratio: 1 / 0.92;
  object-fit: cover;
}

.story-metrics {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.story-metrics p {
  margin: 0;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(171, 131, 36, 0.16);
}

.story-quote {
  margin: auto 0 18px;
  color: var(--yellow);
  font-size: 1.15rem;
  line-height: 1.6;
}

.story-footer-text {
  display: grid;
  gap: 8px;
  color: #d1c6aa;
}

.story-footer-text small {
  color: #9f957e;
}

.story-actions {
  padding: 28px;
}

.story-actions h2 {
  margin: 0 0 12px;
  font-family: Impact, "Arial Black", Haettenschweiler, system-ui, sans-serif;
  color: var(--yellow);
  font-size: 3.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.story-actions p {
  margin: 0 0 16px;
  color: #c9bea3;
  line-height: 1.62;
}

.story-fallback {
  margin-top: 18px !important;
  color: #e6b6aa !important;
}

.alien-terminal {
  padding: 0;
}

.alien-terminal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.95fr);
  min-height: 860px;
}

.alien-terminal-copy {
  padding: 54px 52px;
  border-right: 1px solid rgba(120, 213, 90, 0.16);
}

.alien-terminal-code {
  color: var(--green);
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.alien-terminal-separator {
  color: var(--green);
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 20px;
}

.alien-terminal-copy pre {
  margin: 0;
  white-space: pre-wrap;
  color: var(--green);
  font-size: clamp(1.35rem, 1.05rem + 0.8vw, 2.35rem);
  line-height: 1.62;
}

.alien-terminal-portrait {
  background: rgba(7, 10, 8, 0.9);
}

.alien-terminal-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.alien-terminal-cursor {
  width: 26px;
  height: 34px;
  margin-top: 20px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(120, 213, 90, 0.6);
  animation: blink 1.2s step-end infinite;
}

.alien-terminal-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 24px;
  border-top: 1px solid rgba(120, 213, 90, 0.14);
  color: #6ca158;
}

.footer-barcode-mini {
  width: 126px;
  min-height: 20px;
  background: repeating-linear-gradient(90deg, rgba(120, 213, 90, 0.8) 0 2px, transparent 2px 5px);
}

.flicker-screen {
  position: relative;
}

.flicker-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 5px);
  opacity: 0.12;
  pointer-events: none;
  animation: flicker 5s linear infinite;
}

.leaderboard-board {
  padding: 26px;
}

.leaderboard-columns {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 180px;
  gap: 18px;
  padding: 12px 16px;
  color: #908871;
}

.leaderboard-master-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.leaderboard-master-list li {
  display: grid;
  grid-template-columns: 120px 66px minmax(0, 1fr) 190px;
  align-items: center;
  gap: 12px;
  padding: 18px 18px;
  border: 1px solid rgba(177, 138, 40, 0.28);
  background: rgba(8, 10, 8, 0.58);
}

.leaderboard-rank {
  font-size: 2.5rem;
  font-weight: 700;
}

.leaderboard-icon {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(177, 138, 40, 0.42);
  border-radius: 50%;
  position: relative;
}

.leaderboard-icon::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: rgba(177, 138, 40, 0.16);
}

.leaderboard-entry-copy strong {
  display: block;
  font-family: Impact, "Arial Black", Haettenschweiler, system-ui, sans-serif;
  font-size: clamp(2rem, 1.4rem + 1vw, 3.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.leaderboard-entry-copy small {
  display: block;
  margin-top: 6px;
  color: #8f8670;
}

.leaderboard-entry-id {
  justify-self: end;
  font-size: 2rem;
  color: #d0c7b3;
}

.leaderboard-actions {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.leaderboard-footer-seal {
  display: flex;
  gap: 16px;
  align-items: center;
}

.leaderboard-footer-seal .seal-large {
  width: 92px;
  height: 92px;
  margin: 0;
}

.doc-layout {
  max-width: 960px;
  margin-inline: auto;
}

.doc-layout p {
  margin: 16px 0 0;
  color: #d3c8af;
  line-height: 1.7;
  font-size: 1.1rem;
}

.doc-list {
  margin: 24px 0 0;
  padding-left: 20px;
  color: #d9d0b8;
  line-height: 1.8;
  font-size: 1.08rem;
}

.site-footer {
  margin-top: 20px;
  border-top: 1px solid rgba(171, 131, 36, 0.3);
}

.footer-disclaimer {
  border-inline: 0;
  border-top: 0;
}

.footer-disclaimer p {
  margin: 0;
}

.footer-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto auto;
  align-items: center;
  gap: 20px;
  padding: 18px 24px 24px;
}

.footer-copy {
  color: #958b74;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: #bdb39a;
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-barcode {
  min-width: 180px;
  min-height: 22px;
  padding-top: 26px;
  background:
    repeating-linear-gradient(90deg, rgba(212, 203, 185, 0.82) 0 2px, transparent 2px 5px);
  color: #7f7765;
  text-align: right;
  font-size: 0.92rem;
}

@keyframes blink {
  0%,
  45%,
  100% {
    opacity: 1;
  }

  50%,
  95% {
    opacity: 0;
  }
}

@keyframes flicker {
  0%,
  100% {
    opacity: 0.08;
  }

  25% {
    opacity: 0.15;
  }

  26% {
    opacity: 0.04;
  }

  61% {
    opacity: 0.12;
  }

  62% {
    opacity: 0.05;
  }
}

@media (max-width: 1180px) {
  .hero-grid,
  .analysis-layout,
  .claim-layout,
  .story-layout,
  .archive-header,
  .leaderboard-hero,
  .result-layout,
  .witness-register,
  .claim-rejected-grid,
  .alien-terminal-grid {
    grid-template-columns: 1fr;
  }

  .card-grid-3,
  .archive-grid,
  .archive-footer-grid,
  .leaderboard-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .left-dossier-tab {
    position: static;
    width: auto;
    min-height: 0;
    margin: 0 auto 18px;
  }

  .page-intro {
    padding-top: 0;
  }

  .hero-copy,
  .hero-visual {
    min-height: 0;
  }

  .hero-visual {
    grid-template-columns: 1fr;
  }

  .hero-side-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .leaderboard-columns,
  .leaderboard-master-list li {
    grid-template-columns: 100px 58px minmax(0, 1fr);
  }

  .leaderboard-entry-id {
    justify-self: start;
    grid-column: 3;
  }

  .footer-lower {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .page-wrap {
    padding: 14px 14px 24px;
  }

  .site-header,
  .system-bar,
  .site-footer,
  .dossier-panel,
  .dossier-card,
  .archive-card,
  .story-actions,
  .story-preview-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .top-nav {
    justify-content: flex-start;
    gap: 10px 16px;
  }

  .mega-title {
    font-size: clamp(4rem, 3rem + 6vw, 6.4rem);
  }

  .hero-lead {
    font-size: clamp(1.9rem, 1.3rem + 4vw, 3rem);
  }

  .form-row,
  .claim-form .form-row,
  .result-list div,
  .search-row {
    grid-template-columns: 1fr;
  }

  .form-row > label,
  .form-row > legend,
  .claim-form .form-row label {
    padding-top: 0;
  }

  .archive-grid,
  .card-grid-3,
  .archive-footer-grid,
  .leaderboard-footer {
    grid-template-columns: 1fr;
  }

  .leaderboard-columns {
    display: none;
  }

  .leaderboard-master-list li {
    grid-template-columns: 64px 44px minmax(0, 1fr);
    padding: 16px 14px;
  }

  .leaderboard-entry-copy strong {
    font-size: 1.8rem;
  }

  .certificate-inner {
    padding: 34px 22px 40px;
    min-height: 0;
  }

  .certificate-stamp {
    position: static;
    margin: 30px auto 0;
    display: inline-block;
  }

  .certificate-meta,
  .claim-bottom-meta,
  .footer-lower,
  .alien-terminal-footer,
  .result-utility-bar {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .logo-mark {
    width: 42px;
    height: 42px;
  }

  .logo-mark::before,
  .logo-mark::after {
    top: 14px;
    width: 8px;
    height: 12px;
  }

  .logo-mark::before {
    left: 13px;
  }

  .logo-mark::after {
    right: 13px;
  }

  .logo-text strong {
    font-size: 2rem;
  }

  .top-nav a {
    font-size: 0.96rem;
  }

  .hero-copy,
  .hero-visual {
    padding: 18px;
  }

  .hero-figure {
    min-height: 420px;
    padding: 16px;
  }

  .witness-info h2,
  .page-title {
    font-size: clamp(2.2rem, 1.8rem + 4vw, 3.2rem);
  }

  .story-preview {
    padding: 22px 18px;
  }
}

@media print {
  body {
    background: #ffffff;
    color: #000000;
  }

  body::before,
  body::after,
  .site-header,
  .system-bar,
  .site-footer,
  .certificate-controls,
  .no-print {
    display: none !important;
  }

  .site-shell,
  .page-wrap,
  .certificate-wrap,
  .certificate-sheet,
  .certificate-inner {
    margin: 0;
    width: 100%;
    max-width: 100%;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }

  .certificate-sheet {
    padding: 0;
  }

  .certificate-inner {
    min-height: auto;
    padding: 28px 34px;
    border: 2px solid #111;
  }

  .certificate-stamp {
    opacity: 0.55;
  }
}

/* =====================================================================
   MOCKUP-MATCH PASS — real emblem images, grunge headlines, PNG stamps
   (appended; overrides earlier placeholder styling)
   ===================================================================== */

/* --- Official seal / crest / badge as real gold artwork --- */
.site-header .logo-mark {
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 0;
  background: url('img/seal-lapor-alien.png') center / contain no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}
.site-header .logo-mark::before,
.site-header .logo-mark::after { content: none; display: none; }

.seal-mini {
  width: 48px;
  height: 48px;
  border: none;
  opacity: 0.85;
  background: url('img/seal-lapor-alien.png') center / contain no-repeat;
}

.seal-large,
.leaderboard-footer-seal .seal-large {
  width: 150px;
  height: 150px;
  border: none;
  opacity: 0.9;
  background: url('img/badge-unit-intelligence.png') center / contain no-repeat;
}
.analysis-sidebar .seal-large {
  background-image: url('img/seal-lapor-alien.png');
}

/* --- Grunge / worn-stencil erosion on big headlines (no font files) --- */
.mega-title,
.page-title,
.logo-text strong {
  -webkit-mask-image: url('img/tex-distress.png');
  mask-image: url('img/tex-distress.png');
  -webkit-mask-size: 340px auto;
  mask-size: 340px auto;
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
}
.logo-text strong {
  -webkit-mask-size: 180px auto;
  mask-size: 180px auto;
}

/* --- Real rubber-stamp PNG overlays --- */
.stamp-png {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  width: 220px;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.55));
}
.stamp-png.stamp-round { width: 150px; }
.stamp-png.stamp-lg { width: 300px; }
.stamp-png.stamp-tilt { transform: rotate(-11deg); }
.stamp-top-right { top: 26px; right: 26px; }
.stamp-bottom-right { bottom: 30px; right: 26px; }
.stamp-mid-right { top: 44%; right: 30px; }
.hero-visual .stamp-bottom-right { bottom: 40px; right: 30px; }

/* --- Title flanked by winged crest (claim / results) --- */
.crest-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.crest-title-row .page-title { -webkit-mask-image: url('img/tex-distress.png'); }
.title-crest {
  width: 74px;
  height: auto;
  flex: 0 0 auto;
  opacity: 0.92;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}

/* --- Green CRT scan frame (claim sidebar) --- */
.analysis-frame.scan-frame {
  border-color: rgba(120, 213, 90, 0.4);
  box-shadow: inset 0 0 34px rgba(70, 160, 60, 0.28);
}
.analysis-frame.scan-frame img { filter: saturate(1.1) contrast(1.05); }

/* --- Certificate: real verifikasi stamp + unit seal --- */
.certificate-stamp { display: none; }
.certificate-stamp-png {
  position: absolute;
  right: 6%;
  bottom: 12%;
  width: 210px;
  height: auto;
  transform: rotate(-9deg);
  opacity: 0.9;
  pointer-events: none;
}
.certificate-seal-badge {
  position: absolute;
  right: 12%;
  bottom: 16%;
  width: 150px;
  height: auto;
  opacity: 0.55;
  mix-blend-mode: luminosity;
  pointer-events: none;
}

/* --- Alien imagery: dossier frame + subtle scanline over report photos --- */
.hero-figure,
.result-image-frame,
.analysis-frame,
.witness-thumb,
.alien-terminal-portrait {
  position: relative;
}
.hero-figure::after,
.result-image-frame::after,
.analysis-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 4px);
  opacity: 0.5;
  mix-blend-mode: multiply;
}
.hero-figure img { filter: contrast(1.05) saturate(0.96); }

/* keep decorative card photos framed like the mockups */
.card-media img { object-position: center 30%; }

/* winged crest above result title (mockup 04) */
.result-main { text-align: center; }
.result-crest { width: 118px; height: auto; margin: 0 auto 4px; opacity: 0.92; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.result-main .result-layout { text-align: left; }
.bureau-form { position: relative; overflow: hidden; }
.bureau-form .stamp-png { width: 190px; opacity: 0.7; }

/* =====================================================================
   HOMEPAGE HERO — match mockup 01 (fix oversized text + bleed the alien)
   ===================================================================== */
.page-home .hero-grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 24px;
  align-items: stretch;
}
.page-home .hero-copy,
.page-home .hero-visual {
  min-height: 0;
  padding: 34px 36px;
}

/* headline: fits two lines in the column, still huge + distressed */
.page-home .mega-title {
  font-size: clamp(2.6rem, 1rem + 4.4vw, 6rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  overflow-wrap: break-word;
  margin-bottom: 4px;
}
.page-home .hero-copy .tiny-meta { margin-bottom: 20px; font-size: 0.9rem; }

/* the warning rule under the headline */
.page-home .warning-row { margin: 18px 0 6px; }

/* lead paragraph: readable, ~3 lines like the mockup (was 4.35rem) */
.page-home .hero-lead {
  font-size: clamp(1.15rem, 0.9rem + 0.7vw, 1.75rem);
  line-height: 1.4;
  max-width: 30ch;
  margin: 22px 0 26px;
  color: #ece5d2;
}
.page-home .btn-big { align-self: flex-start; }

/* RIGHT PANEL: alien fills the panel and bleeds into the dark, no inner frame */
.page-home .hero-visual {
  display: block;
  position: relative;
  min-height: 620px;
  overflow: hidden;
}
.page-home .hero-figure {
  position: absolute;
  inset: 0;
  min-height: 0;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  z-index: 1;
}
.page-home .hero-figure img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center 18%;
  filter: contrast(1.05) saturate(0.96);
}
/* vignette so the portrait melts into the panel's black (overrides scanline) */
.page-home .hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(125% 105% at 62% 42%, transparent 38%, rgba(6, 8, 6, 0.9) 100%),
    linear-gradient(90deg, rgba(6, 8, 6, 0.85), transparent 26%);
  mix-blend-mode: normal;
  opacity: 1;
}
/* dossier meta stack overlaid on the right of the alien */
.page-home .hero-side-meta {
  position: absolute;
  right: 26px;
  top: 34%;
  width: 148px;
  z-index: 3;
  gap: 20px;
}

.seal-mini { width: 42px; height: 42px; opacity: 0.32; }

@media (max-width: 900px) {
  .page-home .hero-visual { min-height: 420px; }
  .page-home .hero-side-meta { position: static; width: auto; margin-top: 14px;
    display: flex; flex-wrap: wrap; gap: 6px 20px; }
  .page-home .hero-figure { position: relative; inset: auto; height: 380px; }
}

/* =====================================================================
   LAPOR FORM — radio fieldsets into the 2-column dossier row layout
   (<legend> can't be a grid item, so use flow-root + floated legend)
   ===================================================================== */
.bureau-form fieldset.form-row {
  display: flow-root;            /* contains the floated legend cleanly */
  border: 0;
  border-top: 1px solid rgba(171, 131, 36, 0.24);
  margin: 0;
  padding: 18px 0;
  min-inline-size: 0;
}
.bureau-form fieldset.form-row > legend {
  float: left;
  width: 264px;
  margin: 0;
  padding: 2px 16px 0 0;
  color: #e3dac3;
  font-size: 1.1rem;
  box-sizing: border-box;
}
.bureau-form fieldset.form-row > .choice-row {
  margin-left: 280px;
  padding-top: 2px;
}
/* radio options: tidy inline pills like the mockup */
.bureau-form .choice-row { gap: 12px 26px; }
.bureau-form .choice-pill { min-height: 0; padding: 6px 4px; }

@media (max-width: 820px) {
  .bureau-form fieldset.form-row > legend { float: none; width: auto; padding: 0 0 10px; }
  .bureau-form fieldset.form-row > .choice-row { margin-left: 0; }
}

/* status result: move ARSIP ROUTING stamp below the utility bar so it doesn't cover WAKTU SERVER */
.result-header { position: relative; }
.result-header .stamp-png.stamp-top-right {
  top: 92px;
  right: 46px;
  width: 208px;
}
@media (max-width: 820px) {
  .result-header .stamp-png.stamp-top-right { top: 120px; right: 18px; width: 150px; }
}

/* hidden truth link: footer doc-code looks like plain text; alien-page terminal link is dim */
a.footer-barcode { color: inherit; text-decoration: none; cursor: default; }
.terminal-truth {
  display: inline-block;
  margin-top: 26px;
  color: rgba(120, 213, 90, 0.26);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.terminal-truth:hover { color: rgba(120, 213, 90, 0.85); }

/* =====================================================================
   Language switcher (ID / EN) — two inline links, cannot be overlapped
   ===================================================================== */
.lang-switcher {
  display: inline-flex;
  align-items: stretch;
  margin-left: 8px;
  border: 1px solid rgba(204, 171, 90, 0.45);
}
.lang-switcher .lang-opt {
  padding: 9px 14px;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.96rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.lang-switcher .lang-opt + .lang-opt { border-left: 1px solid rgba(204, 171, 90, 0.3); }
.lang-switcher .lang-opt:hover { color: var(--ink); }
.lang-switcher .lang-opt.active { color: var(--yellow); background: rgba(209, 164, 31, 0.14); }

/* language dropdown must sit above the system bar below it */
.site-header { position: relative; z-index: 30; }
.system-bar { position: relative; z-index: 20; }
.lang-switcher { z-index: 31; }
.lang-menu { z-index: 100; }

/* homepage feature cards: reserve equal heading height so the images align
   even when a translated heading wraps to two lines (e.g. CONFIDENTIALITY GUARANTEED) */
.card-grid-3 .dossier-card h2 {
  min-height: 2.2em;   /* ~two lines at this font-size */
  line-height: 1.06;
  margin: 0 0 16px;
}

/* upload box: selected-file + drag states */
.upload-box .upload-box-text { word-break: break-word; }
.upload-box.has-file { border-style: solid; border-color: rgba(120, 213, 90, 0.55); background: rgba(20, 30, 16, 0.6); }
.upload-box.has-file .upload-box-icon { display: none; }
.upload-box.is-dragover { border-color: var(--yellow); background: rgba(209, 164, 31, 0.10); }
.upload-box-preview { max-height: 92px; width: auto; margin-top: 12px; border: 1px solid rgba(177, 138, 40, 0.45); }
