*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #000000;
  --card: #080808;
  --red: #d32f2f;
  --red-dim: #8b1a1a;
  --text: #f2f2f2;
  --muted: #a3a3a3;
  --dim: #6b6b6b;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', system-ui, sans-serif;
  --card-w: 548px;
  --cyan: #00e5ff;
}

html, body {
  overflow: hidden;
  height: 100%;
  background: var(--bg);
}

body {
  font-family: var(--sans);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ── Glitch background (unchanged core) ── */
.glitch-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.glitch-field {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.glitch-word {
  position: absolute;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  will-change: transform, opacity;
  pointer-events: none;
}

.glitch-word .layer { display: block; }
.glitch-word .layer-base { color: rgba(255, 255, 255, 0.2); }

.glitch-word .layer-r {
  position: absolute;
  top: 0; left: 0;
  color: transparent;
  text-shadow: -2px 0 var(--red);
  opacity: 0;
  clip-path: inset(0 0 0 0);
}

.glitch-word .layer-b {
  position: absolute;
  top: 0; left: 0;
  color: transparent;
  text-shadow: 2px 0 var(--cyan);
  opacity: 0;
  clip-path: inset(0 0 0 0);
}

.glitch-word.is-glitching .layer-r {
  opacity: 0.85;
  animation: glitch-r 0.12s steps(3) infinite;
}

.glitch-word.is-glitching .layer-b {
  opacity: 0.85;
  animation: glitch-b 0.12s steps(3) infinite;
}

.glitch-word.is-glitching .layer-base {
  animation: glitch-base 0.12s steps(3) infinite;
}

@keyframes glitch-r {
  0%   { transform: translate(-3px, 0); clip-path: inset(15% 0 55% 0); }
  50%  { transform: translate(2px, 1px); clip-path: inset(60% 0 10% 0); }
  100% { transform: translate(-1px, -1px); clip-path: inset(30% 0 40% 0); }
}

@keyframes glitch-b {
  0%   { transform: translate(3px, 0); clip-path: inset(40% 0 30% 0); }
  50%  { transform: translate(-2px, -1px); clip-path: inset(10% 0 65% 0); }
  100% { transform: translate(1px, 2px); clip-path: inset(55% 0 20% 0); }
}

@keyframes glitch-base {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-2px, 1px) skewX(-2deg); }
  66% { transform: translate(2px, -1px) skewX(2deg); }
}

.glitch-tear {
  position: fixed;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 8px rgba(211, 47, 47, 0.35);
  opacity: 0;
}

.glitch-tear.flash { animation: tear-flash 0.25s ease-out forwards; }

@keyframes tear-flash {
  0%   { opacity: 0.85; }
  100% { opacity: 0; }
}

.crt-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0, 0, 0, 0.12) 2px, rgba(0, 0, 0, 0.12) 4px
  );
  opacity: 0.35;
}

.crt-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.6) 100%);
}

/* ── Page ── */
.page {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* ── Card shell + drag tab ── */
.card-shell {
  position: fixed;
  width: var(--card-w);
  pointer-events: auto;
  animation: card-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.card-shell.is-dragging {
  box-shadow:
    0 0 30px rgba(211, 47, 47, 0.12),
    0 24px 80px rgba(0, 0, 0, 0.9);
  cursor: grabbing;
  user-select: none;
}

.card-shell.is-dragging .drag-tab {
  animation: tab-glitch 0.14s steps(2) infinite;
  border-color: var(--red-dim);
}

.card-shell.is-dragging .drag-label {
  color: var(--red);
  animation: label-flicker 0.1s steps(2) infinite;
}

.card-shell.is-dragging .card-panel {
  animation: panel-shake 0.1s steps(3) infinite;
  border-color: rgba(211, 47, 47, 0.45);
  box-shadow:
    0 0 24px rgba(211, 47, 47, 0.1),
    0 16px 50px rgba(0, 0, 0, 0.85),
    inset 0 0 30px rgba(0, 229, 255, 0.03);
}

.card-shell.is-dragging .panel-glitch-r,
.card-shell.is-dragging .panel-glitch-b {
  opacity: 1;
}

.card-shell.is-dragging .panel-scan {
  opacity: 0.85;
  animation: scan-sweep 0.35s linear infinite;
}

@keyframes tab-glitch {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(-2px) skewX(-2deg); }
}

@keyframes label-flicker {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

@keyframes panel-shake {
  0%   { transform: translate(0, 0); filter: drop-shadow(0 0 0 transparent); }
  33%  { transform: translate(-2px, 1px) skewX(-0.4deg); filter: drop-shadow(2px 0 0 rgba(255, 40, 80, 0.25)) drop-shadow(-2px 0 0 rgba(0, 229, 255, 0.2)); }
  66%  { transform: translate(2px, -1px) skewX(0.4deg); filter: drop-shadow(-1px 0 0 rgba(255, 40, 80, 0.2)) drop-shadow(1px 0 0 rgba(0, 229, 255, 0.25)); }
  100% { transform: translate(0, 0); }
}

@keyframes scan-sweep {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.card-shell.is-dragging * {
  cursor: grabbing;
}

.drag-tab {
  width: 92px;
  margin: 0 auto;
  padding: 7px 14px 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0c0c0c;
  border: 1px solid #222;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  cursor: grab;
  position: relative;
  z-index: 2;
  transition: background 0.15s, border-color 0.15s;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.drag-tab:hover {
  background: #111;
  border-color: #2a2a2a;
}

.drag-tab:active {
  cursor: grabbing;
}

.drag-grip {
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0.55;
}

.drag-grip i {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--muted);
  border-radius: 2px;
}

.drag-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.card-panel {
  position: relative;
  background: var(--card);
  border: 1px solid #1a1a1a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.85);
}

.panel-glitch {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 11;
  opacity: 0;
  border-radius: inherit;
  mix-blend-mode: screen;
}

.panel-glitch-r {
  background: rgba(255, 40, 80, 0.06);
}

.panel-glitch-b {
  background: rgba(0, 229, 255, 0.05);
}

.card-shell.is-dragging .panel-glitch-r {
  animation: glitch-slice-r 0.12s steps(2) infinite;
}

.card-shell.is-dragging .panel-glitch-b {
  animation: glitch-slice-b 0.12s steps(2) infinite;
}

@keyframes glitch-slice-r {
  0%   { clip-path: inset(8% 0 72% 0); transform: translateX(-3px); }
  50%  { clip-path: inset(55% 0 20% 0); transform: translateX(2px); }
  100% { clip-path: inset(30% 0 50% 0); transform: translateX(-1px); }
}

@keyframes glitch-slice-b {
  0%   { clip-path: inset(40% 0 35% 0); transform: translateX(3px); }
  50%  { clip-path: inset(12% 0 68% 0); transform: translateX(-2px); }
  100% { clip-path: inset(65% 0 15% 0); transform: translateX(1px); }
}

.panel-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  opacity: 0.35;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 48%,
    rgba(211, 47, 47, 0.06) 50%,
    transparent 52%,
    transparent 100%
  );
  animation: scan-sweep 5s linear infinite;
}

.scary-whisper {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 42%;
  z-index: 13;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: var(--red);
  text-shadow: 0 0 14px rgba(211, 47, 47, 0.45);
  pointer-events: none;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.82);
  border: 1px solid var(--red-dim);
  border-radius: 6px;
  animation: whisper-flicker 0.14s steps(2) infinite;
}

.card-shell.is-dragging .scary-whisper {
  display: block;
}

@keyframes whisper-flicker {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50%      { opacity: 0.75; transform: translateY(-1px); }
}

.card-shell.is-dragging .glitch-text {
  color: var(--red);
}

@keyframes card-in {
  from { opacity: 0; transform: translate(-50%, -48%) scale(0.97); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.card-inner {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
}

/* ── Left column ── */
.col-left {
  padding: 22px 18px 20px 22px;
  border-right: 1px solid #161616;
}

.hero {
  margin-bottom: 14px;
}

.hero-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.hero-name {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 0;
}

.leet-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--red);
  padding: 3px 8px;
  border: 1px solid var(--red);
  background: rgba(211, 47, 47, 0.12);
  line-height: 1;
  transform: translateY(2px);
  animation: tag-pulse 3s ease-in-out infinite;
}

@keyframes tag-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(211, 47, 47, 0); }
  50%      { box-shadow: 0 0 10px rgba(211, 47, 47, 0.2); }
}

.hero-alias {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--dim);
}

.hero-alias span {
  color: var(--muted);
}

/* Meta lines */
.meta-lines {
  margin-bottom: 16px;
}

.meta-row {
  display: flex;
  gap: 6px;
  font-size: 11px;
  line-height: 1.65;
  margin-bottom: 2px;
}

.meta-row dt {
  font-family: var(--mono);
  color: var(--red);
  font-weight: 500;
  flex-shrink: 0;
}

.meta-row dt::after {
  content: ' :';
}

.meta-row dd {
  color: var(--muted);
  font-weight: 400;
}

/* Portrait */
.portrait-wrap {
  margin-bottom: 18px;
}

.portrait-frame {
  border: 1px solid rgba(211, 47, 47, 0.55);
  border-radius: 14px;
  padding: 4px;
  line-height: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #141414 0%, #0a0a0a 100%);
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.portrait-wrap:hover .portrait-frame {
  border-color: rgba(211, 47, 47, 0.85);
  box-shadow:
    0 6px 22px rgba(0, 0, 0, 0.5),
    0 0 18px rgba(211, 47, 47, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.portrait {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px;
  filter: grayscale(100%) contrast(1.08);
  transition: filter 0.5s ease, transform 0.4s ease;
}

.portrait-frame picture {
  display: block;
  line-height: 0;
}

.portrait-wrap:hover .portrait {
  filter: grayscale(25%) contrast(1.05);
}

/* Foot tags */
.foot-tags {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.7;
  color: var(--muted);
}

.foot-label {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.foot-line + .foot-line {
  margin-top: 4px;
}

/* ── Right column ── */
.col-right {
  padding: 22px 22px 18px 18px;
  display: flex;
  flex-direction: column;
}

/* Banner strip */
.banner-strip {
  margin-bottom: 16px;
}

.banner-frame {
  border: 1px solid rgba(211, 47, 47, 0.45);
  border-radius: 12px;
  padding: 3px;
  overflow: hidden;
  line-height: 0;
  background: #0a0a0a;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.banner-frame picture,
.mini-strip picture,
.portrait-frame picture {
  display: block;
  width: 100%;
  line-height: 0;
}

.banner-strip:hover .banner-frame {
  border-color: rgba(211, 47, 47, 0.7);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.45),
    0 0 16px rgba(211, 47, 47, 0.1);
}

.banner-img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  border-radius: 9px;
  filter: grayscale(70%) contrast(1.05);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.banner-strip:hover .banner-img {
  filter: grayscale(25%) contrast(1.04);
}

.banner-quote {
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  text-align: center;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.4;
}

/* Section head */
.section-head {
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}

.section-rule {
  height: 3px;
  background: linear-gradient(
    to bottom,
    var(--text) 0,
    var(--text) 1px,
    transparent 1px,
    transparent 2px,
    var(--text) 2px,
    var(--text) 3px
  );
  opacity: 0.85;
  max-width: 100%;
}

/* Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
  margin-bottom: 14px;
  font-family: var(--mono);
}

.data-table th {
  text-align: left;
  color: var(--red);
  font-weight: 500;
  padding: 5px 8px;
  border-bottom: 1px solid var(--red);
  letter-spacing: 0.04em;
}

.data-table th:last-child {
  border-left: 1px solid var(--red);
}

.data-table td {
  padding: 5px 8px;
  color: var(--muted);
  border-bottom: 1px solid var(--red-dim);
}

.data-table td:first-child {
  border-right: 1px solid var(--red-dim);
}

.data-table a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}

.data-table a:hover {
  color: var(--red);
}

/* Orbs */
.orb-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.orb {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(211, 47, 47, 0.35);
  background: rgba(211, 47, 47, 0.1);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.orb svg {
  width: 17px;
  height: 17px;
  display: block;
}

.orb-steam svg {
  width: 20px;
  height: 20px;
}

.orb-roblox svg {
  width: 18px;
  height: 18px;
}

.orb:hover {
  background: rgba(211, 47, 47, 0.22);
  border-color: var(--red);
  color: var(--text);
  box-shadow: 0 0 14px rgba(211, 47, 47, 0.2);
  transform: scale(1.06);
}

/* Bullet list */
.bullet-list {
  list-style: none;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 14px;
}

.bullet-list li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
}

.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 5px;
  height: 5px;
  background: var(--red);
}

.bullet-label {
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.bullet-list a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.bullet-list a:hover {
  color: var(--red);
}

/* Mini strip */
.mini-strip {
  overflow: hidden;
  margin-bottom: 12px;
  line-height: 0;
  border: 1px solid rgba(211, 47, 47, 0.35);
  border-radius: 10px;
  padding: 3px;
  background: #0a0a0a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.mini-img {
  width: 100%;
  height: 56px;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 7px;
  filter: grayscale(70%) contrast(1.05);
  opacity: 0.95;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

.mini-strip:hover .mini-img {
  filter: grayscale(30%) contrast(1.04);
  opacity: 1;
}

.card-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: auto;
}

.card-lines span {
  display: block;
  height: 1px;
  background: var(--text);
  opacity: 0.7;
}

.card-lines span:first-child { width: 100%; }
.card-lines span:nth-child(2) { width: 72%; }
.card-lines .line-red {
  width: 45%;
  background: var(--red);
  opacity: 1;
}

/* ── Responsive ── */
@media (max-width: 580px) {
  :root {
    --card-w: 100%;
  }

  html, body {
    overflow-x: hidden;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .glitch-word {
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .page {
    position: relative !important;
    inset: unset !important;
    min-height: 100dvh;
    height: auto !important;
    padding:
      max(10px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      max(24px, env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: visible !important;
  }

  .card-shell,
  .card-shell.is-mobile-layout {
    position: relative !important;
    width: 100% !important;
    max-width: 400px !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 auto;
    animation: card-in-mobile 0.65s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .card-shell.is-mobile-layout {
    animation: none !important;
  }

  @keyframes card-in-mobile {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .card-inner {
    grid-template-columns: 1fr;
  }

  .col-left {
    border-right: none;
    border-bottom: 1px solid #161616;
    padding: 16px 14px 14px;
  }

  .col-right {
    padding: 16px 14px 18px;
  }

  .hero-name {
    font-size: 30px;
  }

  .hero-alias {
    font-size: 14px;
  }

  .meta-row {
    font-size: 10px;
  }

  .portrait-wrap {
    margin-bottom: 12px;
  }

  .portrait-frame {
    max-width: 220px;
    margin: 0 auto;
  }

  .portrait {
    aspect-ratio: 4 / 5;
    max-height: 240px;
  }

  .foot-tags {
    font-size: 8px;
    line-height: 1.65;
  }

  .banner-img {
    height: 72px;
  }

  .section-title {
    font-size: 11px;
  }

  .data-table {
    font-size: 9px;
  }

  .orb {
    width: 36px;
    height: 36px;
  }

  .bullet-list {
    font-size: 8px;
  }

  .mini-strip {
    margin-top: 4px;
  }

  .card-lines {
    margin-top: 8px;
  }

  .drag-tab {
    width: 84px;
    padding: 8px 12px 6px;
  }

  .drag-label {
    font-size: 9px;
  }
}

/* JS-toggled mobile layout (works with cache-busted CSS) */
html.mobile-layout,
body.mobile-layout {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100%;
}

html.mobile-layout .page {
  position: relative !important;
  inset: unset !important;
  height: auto !important;
  overflow: visible !important;
}

html.mobile-layout .card-shell {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: 400px !important;
  animation: none !important;
}

/* ── Photo trap (5s hold) ── */
body.trap-locked {
  overflow: hidden;
}

.photo-trap {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: all;
  visibility: hidden;
  opacity: 0;
  background: #000;
}

.photo-trap:not([hidden]) {
  visibility: visible;
}

.trap-flash-burst {
  position: absolute;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

.trap-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ececec 0%, #d4d4d4 45%, #c9c9c9 100%);
  opacity: 0;
  pointer-events: none;
}

.trap-static {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: multiply;
}

.photo-trap.is-flashing .trap-flash-burst {
  animation: trap-burst 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.photo-trap.is-flashing .trap-wash {
  animation: trap-wash-in 0.95s ease forwards;
}

.photo-trap.is-flashing {
  animation: trap-overlay-in 0.95s ease forwards;
}

@keyframes trap-burst {
  0%   { opacity: 0; }
  8%   { opacity: 1; }
  16%  { opacity: 0.05; }
  24%  { opacity: 1; }
  34%  { opacity: 0.1; }
  44%  { opacity: 0.98; }
  58%  { opacity: 0.2; }
  72%  { opacity: 0.9; }
  100% { opacity: 0; }
}

@keyframes trap-wash-in {
  0%   { opacity: 0; }
  45%  { opacity: 0; }
  62%  { opacity: 0.7; }
  100% { opacity: 1; }
}

@keyframes trap-overlay-in {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

.photo-trap.is-locked {
  opacity: 1;
  background: #d2d2d2;
}

.photo-trap.is-locked .trap-wash {
  opacity: 1;
}

.photo-trap.is-locked .trap-static {
  opacity: 0.12;
  animation: trap-static-flicker 0.12s steps(2) infinite;
}

@keyframes trap-static-flicker {
  0%, 100% { opacity: 0.1; }
  50%      { opacity: 0.14; }
}

.trap-message {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.05em;
  color: #1f1f1f;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  z-index: 2;
}

.photo-trap.is-flashing .trap-message {
  animation: trap-message-flash 0.85s ease forwards;
}

.photo-trap.is-locked .trap-message {
  opacity: 1;
  animation: trap-message-lock 0.55s ease 0.05s forwards;
}

.trap-message.is-success {
  color: #2d4a38;
  animation: trap-message-success 0.6s ease forwards;
}

@keyframes trap-message-flash {
  0%, 32%  { opacity: 0; filter: blur(8px); transform: translate(-50%, -48%); }
  42%, 52% { opacity: 1; filter: blur(0); transform: translate(-50%, -50%); }
  68%      { opacity: 0.85; }
  100%     { opacity: 0; }
}

@keyframes trap-message-lock {
  from { opacity: 0; filter: blur(4px); transform: translate(-50%, -48%); }
  to   { opacity: 1; filter: blur(0); transform: translate(-50%, -50%); }
}

@keyframes trap-message-success {
  0%   { opacity: 0.6; filter: blur(2px); transform: translate(-50%, -50%) scale(0.98); }
  100% { opacity: 1; filter: blur(0); transform: translate(-50%, -50%) scale(1); }
}

.trap-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  opacity: 0;
  z-index: 2;
}

.photo-trap.is-locked .trap-hint {
  animation: trap-hint-in 1s ease 2.8s forwards;
}

@keyframes trap-hint-in {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to   { opacity: 0.55; transform: translateX(-50%) translateY(0); }
}
