@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* =========================================================
   FRONTIER × CYBER PALETTE
   ========================================================= */
:root {
  --bg-void: #0a0806;
  --bg-surface: #14100c;
  --bg-panel: rgba(26, 20, 16, 0.86);
  --bg-card: linear-gradient(145deg, rgba(30, 22, 18, 0.96) 0%, rgba(12, 9, 7, 0.96) 100%);

  --amber: #ff6a00;
  --amber-bright: #ff8a3a;
  --amber-dim: rgba(255, 106, 0, 0.15);
  --gold: #ffb700;
  --gold2: #ffd070;
  --cyan: #00f3ff;
  --cyan-soft: #7fefff;
  --cyan-dim: rgba(0, 243, 255, 0.12);
  --blood: #ff3a3a;
  --blood-deep: #d92525;
  --success: #6dd49b;

  --ink: #f5ebd4;
  --ink-bright: #fff8e6;
  --muted: #b8a591;
  --steel: #3a2c24;

  --glow-amber: 0 0 26px rgba(255,106,0,.42);
  --glow-cyan: 0 0 18px rgba(0,243,255,.45);
  --glow-blood: 0 0 22px rgba(255,58,58,.4);
  --shadow-1: 0 8px 24px rgba(0,0,0,.5);
  --shadow-2: 0 24px 60px rgba(0,0,0,.7);
  --shadow-3: 0 40px 100px rgba(0,0,0,.85);

  --cut-lg: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
  --cut-md: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  --cut-sm: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));

  --font-display: "Bebas Neue", Impact, "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", ui-monospace, Consolas, monospace;
}

/* =========================================================
   GLOBAL
   ========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
::selection { background: var(--amber); color: var(--bg-void); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-void); border-left: 1px solid rgba(255,106,0,.1); }
::-webkit-scrollbar-thumb {
  background: var(--amber-dim);
  border: 1px solid var(--amber);
  border-radius: 0;
}
::-webkit-scrollbar-thumb:hover { background: var(--amber); box-shadow: var(--glow-amber); }

@keyframes boot-up {
  0%   { opacity: 0; filter: contrast(2.4) brightness(1.6) sepia(1) blur(2px); transform: translateY(14px); }
  60%  { filter: contrast(1.2) brightness(1.05) sepia(.3) blur(0); }
  100% { opacity: 1; filter: contrast(1) brightness(1) sepia(0); transform: translateY(0); }
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  4%  { opacity: .82; }
  6%  { opacity: .42; }
  8%  { opacity: .92; }
  50% { opacity: .96; }
  72% { opacity: .88; }
  74% { opacity: 1; }
}
@keyframes pulse-amber {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,106,0,.32), 0 0 18px rgba(255,106,0,.18); }
  50%      { box-shadow: 0 0 0 1px rgba(255,106,0,.55), 0 0 30px rgba(255,106,0,.35); }
}
@keyframes pulse-blood {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,58,58,.4), 0 0 18px rgba(255,58,58,.2); }
  50%      { box-shadow: 0 0 0 1px rgba(255,58,58,.7), 0 0 30px rgba(255,58,58,.4); }
}
@keyframes sweep {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(110%); }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-void);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(circle at 16% -2%, rgba(255,106,0,.18) 0%, transparent 38%),
    radial-gradient(circle at 84% 100%, rgba(0,243,255,.10) 0%, transparent 42%),
    radial-gradient(circle at 50% 50%, rgba(40,20,8,.4) 0%, transparent 60%),
    linear-gradient(rgba(255,106,0,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,106,0,.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 44px 44px, 44px 44px;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  opacity: .45;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(255,255,255,.018) 2px 3px);
  mix-blend-mode: screen;
}

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

.page {
  width: min(1520px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 100px;
  position: relative;
  z-index: 1;
}

/* =========================================================
   HERO — DIGITAL BOUNTY BOARD
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(36px, 5vw, 64px);
  background:
    radial-gradient(circle at 88% 14%, rgba(255,106,0,.16), transparent 38%),
    radial-gradient(circle at 8% 92%, rgba(0,243,255,.10), transparent 40%),
    linear-gradient(140deg, #14100c 0%, #1a130d 60%, #0e0907 100%);
  border: 2px solid var(--steel);
  border-top: 4px solid var(--amber);
  clip-path: var(--cut-lg);
  box-shadow: inset 0 0 120px rgba(0,0,0,.7), var(--shadow-3);
  margin-bottom: 36px;
  overflow: hidden;
}
/* corner rivets */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  width: 9px; height: 9px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: var(--glow-amber);
  z-index: 2;
}
.hero::before { top: 22px; left: 22px; }
.hero::after  { top: 22px; right: 22px; }

.eyebrow {
  display: inline-flex;
  padding: 7px 16px;
  background: var(--amber-dim);
  border: 1px solid var(--amber);
  color: var(--amber);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .26em;
  font-weight: 800;
  font-family: var(--font-mono);
  box-shadow: inset 0 0 14px rgba(255,106,0,.22);
}

.hero h1 {
  margin: 22px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(60px, 11vw, 168px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: .015em;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  gap: 0 .25em;
  position: relative;
  z-index: 1;
}
.hero h1 .west {
  color: var(--ink-bright);
  text-shadow:
    3px 3px 0 rgba(255,106,0,.55),
    6px 6px 0 rgba(0,0,0,.5),
    0 0 30px rgba(255,106,0,.18);
}
.hero h1 .cyber {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0,243,255,.5), 0 0 28px rgba(0,243,255,.3);
  animation: flicker 4.2s infinite;
}

.hero p {
  max-width: 820px;
  color: var(--ink);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.65;
  margin: 0;
  border-left: 3px solid var(--amber);
  padding: 6px 0 6px 18px;
  background: linear-gradient(90deg, rgba(255,106,0,.06), transparent 60%);
  position: relative;
  z-index: 1;
}

.hero-meta {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  position: relative;
  z-index: 1;
}
.meta-box {
  position: relative;
  background: rgba(0,0,0,.5);
  border: 1px dashed rgba(255,106,0,.32);
  border-left: 3px solid transparent;
  padding: 18px 20px;
  transition: all .3s ease;
}
.meta-box:hover {
  background: rgba(255,106,0,.06);
  border-color: var(--amber);
  border-left: 3px solid var(--amber);
  box-shadow: inset 0 0 22px rgba(255,106,0,.12);
  transform: translateY(-2px);
}
.meta-box strong {
  display: block;
  color: var(--gold);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 800;
  font-family: var(--font-mono);
}
.meta-box span {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.55;
}

/* =========================================================
   TOP NAV
   ========================================================= */
.top-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: sticky;
  top: 14px;
  z-index: 50;
  margin: 26px 0;
  padding: 10px;
  background: rgba(10,8,6,.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,106,0,.22);
  border-bottom: 2px solid var(--amber);
  box-shadow: var(--shadow-2), 0 12px 26px rgba(255,106,0,.06);
  width: fit-content;
  max-width: 100%;
}
.top-nav a {
  padding: 10px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.05);
  clip-path: var(--cut-sm);
  transition: all .2s ease;
}
.top-nav a:hover {
  background: var(--amber-dim);
  color: var(--gold);
  border-color: var(--amber);
  box-shadow: var(--glow-amber);
}

/* =========================================================
   SECTIONS
   ========================================================= */
section { margin-top: 72px; scroll-margin-top: 96px; }

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--steel);
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 110px; height: 2px;
  background: var(--amber);
  box-shadow: var(--glow-amber);
}
.section-title h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: .025em;
  text-transform: uppercase;
  color: var(--ink-bright);
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-title h2::before {
  content: '';
  display: block;
  width: 14px; height: 14px;
  background: var(--amber);
  box-shadow: var(--glow-amber);
  transform: rotate(45deg);
  flex: none;
}
.section-title p {
  margin: 0;
  color: var(--muted);
  max-width: 620px;
  font-size: 14px;
  line-height: 1.6;
}

.panel {
  background: var(--bg-panel);
  border: 1px solid rgba(255,106,0,.16);
  clip-path: var(--cut-lg);
  box-shadow: inset 0 0 60px rgba(0,0,0,.7), var(--shadow-1);
}
.panel.pad { padding: 32px; }

/* =========================================================
   DOSSIER — WANTED POSTER
   ========================================================= */
.dossier-list { display: grid; gap: 44px; }

.dossier {
  display: grid;
  grid-template-columns: 420px 1fr;
  background: var(--bg-card);
  border: 1px solid rgba(255,106,0,.22);
  clip-path: var(--cut-lg);
  box-shadow: var(--shadow-2);
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.dossier:hover {
  transform: translateY(-3px);
  box-shadow: 0 38px 80px rgba(0,0,0,.85), 0 0 38px rgba(255,106,0,.18);
  border-color: var(--amber);
}
/* WANTED watermark */
.dossier::before {
  content: 'WANTED';
  position: absolute;
  top: 18px; right: 38px;
  font-family: var(--font-display);
  font-size: clamp(70px, 10vw, 140px);
  font-weight: 400;
  color: rgba(255,106,0,.045);
  letter-spacing: .04em;
  pointer-events: none;
  z-index: 0;
  line-height: 1;
  text-transform: uppercase;
}

.dossier-left {
  padding: 24px;
  background: rgba(0,0,0,.62);
  border-right: 2px dashed rgba(255,106,0,.22);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.asset-group {
  display: grid;
  gap: 16px;
}
.asset-block {
  padding: 12px;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(255,106,0,.16);
  clip-path: var(--cut-md);
}
.asset-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 10px 12px;
  background: var(--amber-dim);
  border: 1px solid var(--amber);
  color: var(--amber);
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  font-weight: 800;
  box-shadow: inset 0 0 12px rgba(255,106,0,.12);
}
.asset-head.skill {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: inset 0 0 12px rgba(0,243,255,.10);
}
.asset-head small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .14em;
  font-weight: 700;
}

.art-wrap {
  position: relative;
  background: #000;
  clip-path: var(--cut-sm);
  aspect-ratio: 4 / 5;
  cursor: pointer;
  overflow: hidden;
  border: 2px solid var(--steel);
  transition: border-color .3s ease;
}
.art-wrap::after {
  content: '';
  position: absolute; inset: 0;
  box-shadow: inset 0 0 50px rgba(255,106,0,.32);
  pointer-events: none;
  transition: box-shadow .35s ease;
  z-index: 2;
}
.art-wrap:hover { border-color: var(--amber); }
.art-wrap:hover::after { box-shadow: inset 0 0 70px rgba(255,106,0,.62); }
.art-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: sepia(.5) contrast(1.18) brightness(.88) saturate(1.1);
  transition: transform .6s cubic-bezier(.16,1,.3,1), filter .5s ease;
}
.art-wrap:hover img {
  transform: scale(1.05);
  filter: sepia(0) contrast(1.12) brightness(1) saturate(1.15);
}
/* corner brackets */
.art-wrap::before {
  content: '';
  position: absolute;
  top: 10px; left: 10px;
  width: 38px; height: 38px;
  border-top: 2px solid var(--amber);
  border-left: 2px solid var(--amber);
  z-index: 3;
  pointer-events: none;
  transition: width .35s ease, height .35s ease;
}
.art-wrap:hover::before { width: 56px; height: 56px; }

.skill-wrap {
  aspect-ratio: 4 / 3;
}
.skill-wrap::after { box-shadow: inset 0 0 50px rgba(0,243,255,.28); }
.skill-wrap:hover::after { box-shadow: inset 0 0 70px rgba(0,243,255,.55); }
.skill-wrap:hover { border-color: var(--cyan); }
.skill-wrap::before { border-color: var(--cyan); }

.open-sheet {
  margin-top: 14px;
  width: 100%;
  border: 1px solid var(--amber);
  cursor: pointer;
  padding: 13px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--amber);
  background: rgba(255,106,0,.06);
  clip-path: var(--cut-sm);
  transition: all .2s ease;
  box-shadow: inset 0 0 12px rgba(255,106,0,.1);
}
.open-sheet:hover {
  background: var(--amber);
  color: var(--bg-void);
  box-shadow: var(--glow-amber);
}
.open-sheet.secondary {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0,243,255,.06);
  box-shadow: inset 0 0 12px rgba(0,243,255,.1);
}
.open-sheet.secondary:hover {
  background: var(--cyan);
  color: var(--bg-void);
  box-shadow: var(--glow-cyan);
}

/* =========================================================
   DOSSIER RIGHT — DATA COLUMN
   ========================================================= */
.dossier-right {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.topline {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding-bottom: 16px;
}
.serial {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(0,243,255,.06);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-bottom: 10px;
  box-shadow: inset 0 0 12px rgba(0,243,255,.1);
}

.dossier h3 {
  margin: 4px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 400;
  letter-spacing: .02em;
  line-height: .95;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 0 26px rgba(255,183,0,.22), 2px 2px 0 rgba(0,0,0,.3);
}
.role {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-family: var(--font-mono);
}

/* difficulty stamps — colored per tier */
.difficulty {
  padding: 9px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .14em;
  clip-path: var(--cut-sm);
  flex: 0 0 auto;
  background: rgba(0,243,255,.08);
  border: 1px solid var(--cyan);
  color: var(--cyan);
  box-shadow: inset 0 0 12px rgba(0,243,255,.14);
}
.difficulty[data-difficulty="easy-medium"] {
  background: rgba(109,212,155,.08);
  border-color: var(--success);
  color: var(--success);
  box-shadow: inset 0 0 12px rgba(109,212,155,.14), 0 0 14px rgba(109,212,155,.18);
}
.difficulty[data-difficulty="medium-hard"] {
  background: rgba(255,106,0,.08);
  border-color: var(--amber);
  color: var(--amber);
  box-shadow: inset 0 0 12px rgba(255,106,0,.14), 0 0 14px rgba(255,106,0,.22);
}
.difficulty[data-difficulty="hard"] {
  background: rgba(255,58,58,.08);
  border-color: var(--blood);
  color: var(--blood);
  animation: pulse-blood 2.4s ease-in-out infinite;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  padding: 6px 12px;
  background: #000;
  border: 1px solid var(--steel);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  transition: all .2s ease;
}
.chip:hover {
  border-color: var(--gold);
  background: rgba(255,183,0,.06);
  color: var(--gold2);
}

/* =========================================================
   IDENTITY (Fantasy box)
   ========================================================= */
.identity { display: block; }
.identity .box {
  padding: 18px 20px;
  background: rgba(0,0,0,.42);
  border-left: 3px solid var(--amber);
  position: relative;
  background-image: linear-gradient(90deg, rgba(255,106,0,.05), transparent 40%);
}
.identity strong, .review strong, .basic-attack strong {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 800;
  font-family: var(--font-mono);
}
.identity p, .review p, .basic-attack p {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
}

/* =========================================================
   STATS — TECH READOUT
   ========================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.pill {
  background: #000;
  border: 1px solid rgba(255,255,255,.06);
  padding: 14px 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.pill::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0,243,255,.6);
}
.pill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,243,255,.12), transparent);
  transform: translateX(-110%);
  pointer-events: none;
}
.pill:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
}
.pill:hover::after { animation: sweep 1s ease forwards; }
.pill small {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: .14em;
  font-weight: 700;
  font-family: var(--font-mono);
}
.pill strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: .01em;
  text-shadow: var(--glow-cyan);
}

.basic-attack {
  padding: 16px 20px;
  background: rgba(0,0,0,.42);
  border: 1px dashed rgba(255,106,0,.34);
  position: relative;
}
.basic-attack::before {
  content: '';
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 3px;
  background: linear-gradient(180deg, var(--amber), transparent);
}

/* =========================================================
   ABILITY TABLE
   ========================================================= */
.ability-table-wrap {
  overflow-x: auto;
  background: #000;
  border: 1px solid var(--steel);
}
.ability-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  font-size: 14px;
  line-height: 1.55;
}
.ability-table th, .ability-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.06);
  vertical-align: top;
}
.ability-table th {
  color: var(--amber);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  border-bottom: 1px solid var(--amber);
  font-family: var(--font-mono);
  background: rgba(255,106,0,.08);
  font-weight: 800;
}
.ability-table td { color: var(--ink); }
.ability-table tbody tr { transition: background .15s ease; }
.ability-table tbody tr:hover td { background: rgba(255,106,0,.05); }
.ability-table tbody tr:last-child td { border-bottom: none; }
.ability-table td:nth-child(2) {
  font-weight: 700;
  color: var(--ink-bright);
  font-size: 15px;
  letter-spacing: .005em;
}
.ability-table td:nth-child(4) {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold2);
  letter-spacing: 0;
}
/* Ultimate row → blood-red highlight */
.ability-table tbody tr:nth-child(3) td {
  background: linear-gradient(90deg, rgba(255,58,58,.06), transparent 70%);
}
.ability-table tbody tr:nth-child(3):hover td {
  background: linear-gradient(90deg, rgba(255,58,58,.10), rgba(255,106,0,.04) 70%);
}
.ability-table tbody tr:nth-child(3) .ability-type {
  background: rgba(255,58,58,.14);
  border-color: var(--blood);
  color: var(--blood);
}

.ability-type {
  display: inline-block;
  padding: 4px 10px;
  background: var(--amber-dim);
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}

/* =========================================================
   REVIEW QUADRANT — color-coded
   ========================================================= */
.review {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.review > div {
  padding: 16px 18px;
  background: rgba(0,0,0,.42);
  border-top: 2px solid var(--steel);
  position: relative;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.review > div:hover { transform: translateY(-2px); }
.review > div:nth-child(1) { border-top-color: var(--gold); }
.review > div:nth-child(2) { border-top-color: var(--success); }
.review > div:nth-child(3) { border-top-color: var(--blood); }
.review > div:nth-child(4) { border-top-color: var(--cyan); }
.review > div:nth-child(1) strong { color: var(--gold); }
.review > div:nth-child(2) strong { color: var(--success); }
.review > div:nth-child(3) strong { color: var(--blood); }
.review > div:nth-child(4) strong { color: var(--cyan); }
.review > div:nth-child(1):hover { background: rgba(255,183,0,.05); box-shadow: 0 0 22px rgba(255,183,0,.14); }
.review > div:nth-child(2):hover { background: rgba(109,212,155,.05); box-shadow: 0 0 22px rgba(109,212,155,.14); }
.review > div:nth-child(3):hover { background: rgba(255,58,58,.05); box-shadow: 0 0 22px rgba(255,58,58,.14); }
.review > div:nth-child(4):hover { background: rgba(0,243,255,.05); box-shadow: 0 0 22px rgba(0,243,255,.14); }

/* =========================================================
   MATRIX TABLES
   ========================================================= */
.table-wrap { overflow-x: auto; }
table.matrix {
  width: 100%;
  border-collapse: collapse;
  min-width: 960px;
  font-size: 14px;
  line-height: 1.5;
  background: rgba(0,0,0,.4);
}
.matrix th, .matrix td {
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-align: left;
  vertical-align: top;
}
.matrix th {
  color: var(--amber);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-family: var(--font-mono);
  font-weight: 800;
  background: rgba(255,106,0,.08);
  border-bottom: 1px solid var(--amber);
}
.matrix tbody tr { transition: background .2s ease; }
.matrix tbody tr:hover { background: rgba(0,243,255,.05); }
.matrix tbody tr:last-child td { border-bottom: none; }
.matrix td { color: var(--ink); }
.matrix td:first-child {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .02em;
  color: var(--gold2);
  text-transform: uppercase;
}
.matrix td:nth-child(2),
.matrix td:nth-child(3),
.matrix td:nth-child(4),
.matrix td:nth-child(5),
.matrix td:nth-child(6),
.matrix td:nth-child(7),
.matrix td:nth-child(8) {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan-soft);
}

/* =========================================================
   MODAL — CINEMATIC HOLO VIEWER
   ========================================================= */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  padding: 24px;
  overflow: auto;
}
.modal.open {
  display: block !important;
}

.modal-dialog {
  position: relative;
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 240px;
  background: #14100c;
  border: 2px solid #ff6a00;
  border-radius: 8px;
  box-shadow: 0 0 50px rgba(255, 106, 0, 0.4), 0 30px 80px rgba(0, 0, 0, 0.85);
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
.modal-top {
  position: sticky; top: 0; z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(0,0,0,.96);
  border-bottom: 1px solid var(--amber);
  border-radius: 8px 8px 0 0;
}
.modal-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--amber);
  text-shadow: 0 0 14px rgba(255,106,0,.4);
}
.modal-close {
  border: 1px solid var(--amber);
  cursor: pointer;
  width: 40px; height: 40px;
  background: transparent;
  color: var(--amber);
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 16px;
  flex: none;
  transition: all .2s ease;
}
.modal-close:hover {
  background: var(--amber);
  color: var(--bg-void);
  box-shadow: var(--glow-amber);
}
.modal-body {
  padding: 16px;
  background: #000;
}
.modal-body img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* =========================================================
   FOCUS
   ========================================================= */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .dossier { grid-template-columns: 1fr; }
  .dossier-left { border-right: none; border-bottom: 2px dashed rgba(255,106,0,.22); }
  .stats { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .review { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .page { width: min(100% - 16px, 1520px); padding: 18px 0 60px; }
  .hero { padding: 28px 22px; }
  .hero::before, .hero::after { width: 7px; height: 7px; top: 14px; }
  .hero::before { left: 14px; }
  .hero::after { right: 14px; }
  .hero h1 { font-size: clamp(48px, 14vw, 80px); }
  .stats, .review { grid-template-columns: 1fr; }
  .topline { flex-direction: column; }
  .section-title { display: block; }
  .section-title h2 { gap: 12px; }
  .section-title p { margin-top: 10px; }
  .dossier-right { padding: 24px 22px; }
  .top-nav { width: 100%; padding: 6px; }
  .top-nav a { padding: 8px 14px; font-size: 10px; flex: 1 1 auto; text-align: center; }
}
