:root {
  --bg: #08090c;
  --bg-soft: #0d0f13;
  --surface: #13161c;
  --surface-2: #191d25;
  --surface-3: #222733;
  --text: #f2eadb;
  --muted: #b4ad9f;
  --muted-2: #817c74;
  --red: #d4384a;
  --red-dark: #8f1d2c;
  --red-glow: rgba(212, 56, 74, 0.24);
  --gold: #c4a15a;
  --gold-soft: #e1c78f;
  --blue: #5a9fe6;
  --green: #67c9a5;
  --border: rgba(242, 234, 219, 0.12);
  --border-strong: rgba(242, 234, 219, 0.22);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 30px;
  --container: min(1180px, calc(100vw - 40px));
  --cursor-x: 50vw;
  --cursor-y: 30vh;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(143, 29, 44, 0.1), transparent 25rem),
    linear-gradient(180deg, #08090c 0%, #0a0b0f 45%, #07080a 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  color: #fff;
  background: var(--red-dark);
}

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

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

p,
h1,
h2,
h3,
h4,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2.05rem, 4vw, 4rem);
  margin-bottom: 18px;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  margin-bottom: 10px;
}

p {
  color: var(--muted);
}

ul,
ol {
  color: var(--muted);
  padding-left: 1.25rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-150%);
  border-radius: 8px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(242, 234, 219, 0.08);
  background: rgba(8, 9, 12, 0.8);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-mark {
  width: 40px;
  aspect-ratio: 1;
  border-radius: 11px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(196, 161, 90, 0.4);
  background: linear-gradient(145deg, #19171a, #0d0d10);
  box-shadow: inset 0 0 24px rgba(212, 56, 74, 0.12);
}

.brand-mark svg {
  width: 27px;
  height: 27px;
}

.brand-copy small {
  display: block;
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  line-height: 1;
  margin-top: 4px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: #d7d0c4;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
  border-radius: 10px;
  place-items: center;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  inset: 77px 0 0;
  z-index: 45;
  padding: 24px 20px;
  background: rgba(8, 9, 12, 0.98);
  backdrop-filter: blur(22px);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu nav {
  width: min(460px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 8px;
}

.mobile-menu .nav-link {
  font-size: 1.15rem;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 760;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #e04455, var(--red-dark));
  box-shadow: 0 13px 34px rgba(143, 29, 44, 0.28);
}

.button-primary:hover {
  box-shadow: 0 18px 42px rgba(143, 29, 44, 0.42);
}

.button-secondary {
  color: var(--text);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.035);
}

.button-secondary:hover {
  border-color: rgba(196, 161, 90, 0.48);
  background: rgba(196, 161, 90, 0.07);
}

.button-ghost {
  color: var(--gold-soft);
  padding-inline: 6px;
}

.button-small {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 0.86rem;
}

.button svg,
.text-link svg {
  width: 18px;
  height: 18px;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  padding: 72px 0 64px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% 0 45%;
  background: radial-gradient(circle, rgba(143, 29, 44, 0.27), transparent 63%);
  filter: blur(10px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.11;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 15%, transparent 90%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--red);
  box-shadow: 0 0 13px var(--red);
}

.hero-title span {
  color: transparent;
  background: linear-gradient(100deg, var(--text), #9f9687);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-title em {
  color: var(--red);
  font-style: normal;
}

.hero-lead {
  max-width: 690px;
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  line-height: 1.68;
  margin-bottom: 30px;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 34px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-proof svg {
  width: 17px;
  color: var(--gold);
}

.hero-visual {
  position: relative;
  min-height: 580px;
  perspective: 1100px;
}

.evidence-board {
  position: absolute;
  inset: 4% 2% 2% 2%;
  overflow: hidden;
  border: 1px solid rgba(196, 161, 90, 0.25);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(26, 23, 24, 0.98), rgba(11, 12, 16, 0.96)),
    var(--surface);
  box-shadow: var(--shadow), inset 0 0 80px rgba(212, 56, 74, 0.05);
  transform: rotateY(-4deg) rotateX(2deg);
}

.evidence-board::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 42px 42px;
}

.board-line {
  position: absolute;
  height: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, #b82133, rgba(184, 33, 51, 0.12));
  box-shadow: 0 0 8px rgba(212, 56, 74, 0.35);
}

.line-a { width: 46%; left: 31%; top: 35%; transform: rotate(18deg); }
.line-b { width: 43%; left: 25%; top: 66%; transform: rotate(-22deg); }
.line-c { width: 38%; left: 52%; top: 51%; transform: rotate(73deg); }
.line-d { width: 31%; left: 15%; top: 44%; transform: rotate(95deg); }

.board-card {
  position: absolute;
  width: 150px;
  padding: 10px;
  border-radius: 9px;
  color: #151515;
  background: #ddd3bd;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  transform: rotate(var(--rotate, 0deg));
}

.board-card::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  top: 8px;
  left: 50%;
  border-radius: 50%;
  background: var(--red-dark);
  box-shadow: 0 2px 4px rgba(0,0,0,.5);
}

.board-card strong {
  display: block;
  margin-top: 6px;
  font-family: Georgia, serif;
  font-size: 0.98rem;
}

.board-card small {
  display: block;
  color: #5f574c;
  font-size: 0.7rem;
}

.board-card svg {
  width: 100%;
  height: 82px;
  margin-bottom: 4px;
}

.card-a { left: 8%; top: 10%; --rotate: -6deg; }
.card-b { right: 8%; top: 14%; --rotate: 5deg; }
.card-c { left: 12%; bottom: 9%; --rotate: 4deg; }
.card-d { right: 10%; bottom: 8%; --rotate: -5deg; }

.board-center {
  position: absolute;
  left: 50%;
  top: 51%;
  width: 178px;
  aspect-ratio: .78;
  transform: translate(-50%, -50%) rotate(-1deg);
  border: 1px solid rgba(196, 161, 90, .45);
  border-radius: 13px;
  overflow: hidden;
  background: linear-gradient(180deg, #191d24, #0c0e12);
  box-shadow: 0 20px 50px rgba(0,0,0,.55);
}

.board-center .stamp {
  position: absolute;
  right: -16px;
  bottom: 34px;
  transform: rotate(-12deg);
}

.stamp {
  display: inline-flex;
  padding: 6px 10px;
  border: 3px solid currentColor;
  color: var(--red);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .86;
}

.board-label {
  position: absolute;
  left: 24px;
  top: 24px;
  padding: 7px 10px;
  border: 1px solid rgba(196,161,90,.35);
  color: var(--gold-soft);
  background: rgba(0,0,0,.35);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue::after {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--red), transparent);
}

.section {
  position: relative;
  padding: clamp(78px, 10vw, 140px) 0;
}

.section-tight {
  padding: clamp(55px, 7vw, 88px) 0;
}

.section-dark {
  border-block: 1px solid rgba(255,255,255,.045);
  background: rgba(255,255,255,.018);
}

.section-redwash {
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 30%, rgba(143,29,44,.25), transparent 33rem),
    linear-gradient(180deg, rgba(143,29,44,.055), transparent);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 480px);
  gap: 30px;
  align-items: end;
  margin-bottom: 44px;
}

.section-heading p {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.section-heading.centered {
  display: block;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.section-heading.centered .eyebrow {
  justify-content: center;
}

.section-heading.centered .eyebrow::before {
  display: none;
}

.kicker {
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 20px;
}

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

.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(27, 30, 38, .88), rgba(14, 16, 21, .94));
  box-shadow: 0 16px 46px rgba(0,0,0,.18);
}

.feature-card {
  padding: 27px;
  overflow: hidden;
}

.feature-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -44px;
  bottom: -56px;
  border: 1px solid rgba(196,161,90,.16);
  border-radius: 50%;
}

.icon-box {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--gold-soft);
  border: 1px solid rgba(196,161,90,.3);
  border-radius: 12px;
  background: rgba(196,161,90,.07);
}

.icon-box svg {
  width: 25px;
  height: 25px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,.025);
}

.stat {
  padding: 25px 18px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  color: var(--text);
  font-family: Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.stat span {
  color: var(--muted);
  font-size: .83rem;
}

.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 7vw, 90px);
  align-items: center;
}

.app-window {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  border: 1px solid rgba(196,161,90,.26);
  border-radius: 24px;
  background: #0d0f13;
  box-shadow: var(--shadow);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: #15171c;
}

.window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #5f6269;
}

.window-bar span:first-child { background: #d75a62; }
.window-bar span:nth-child(2) { background: #d6ad54; }
.window-bar span:nth-child(3) { background: #67b889; }

.app-sidebar {
  position: absolute;
  left: 0;
  top: 46px;
  bottom: 0;
  width: 94px;
  padding: 18px 12px;
  border-right: 1px solid var(--border);
  background: #111319;
}

.fake-nav {
  height: 12px;
  margin-bottom: 14px;
  border-radius: 99px;
  background: #292d36;
}

.fake-nav.active { background: linear-gradient(90deg, var(--red), #7b2632); }

.app-main {
  margin-left: 94px;
  padding: 24px;
}

.app-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  color: #93ddba;
  border: 1px solid rgba(103,201,165,.25);
  border-radius: 99px;
  background: rgba(103,201,165,.08);
  font-size: .73rem;
  font-weight: 750;
}

.app-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #67c9a5;
  box-shadow: 0 0 9px #67c9a5;
}

.fake-title {
  width: 62%;
  height: 25px;
  margin: 21px 0 11px;
  border-radius: 7px;
  background: #e4ded1;
}

.fake-text {
  width: 86%;
  height: 11px;
  margin-bottom: 8px;
  border-radius: 99px;
  background: #3a3e48;
}

.fake-text.short { width: 48%; }

.player-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.player-tile {
  min-height: 90px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: linear-gradient(145deg, #1b1f27, #12151a);
}

.player-avatar {
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: linear-gradient(145deg, #626875, #282c34);
}

.player-tile:nth-child(2) .player-avatar,
.player-tile:nth-child(6) .player-avatar { background: linear-gradient(145deg, #b53d4a, #5f1d27); }

.player-name {
  width: 78%;
  height: 8px;
  border-radius: 99px;
  background: #555a65;
}

.app-alert {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(212,56,74,.3);
  border-radius: 10px;
  color: #f1b3b9;
  background: rgba(143,29,44,.15);
  font-size: .77rem;
}

.claim-box {
  padding: 20px 22px;
  margin: 25px 0;
  border-left: 3px solid var(--red);
  color: #ded5c7;
  background: rgba(212,56,74,.07);
}

.steps {
  counter-reset: steps;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step-card {
  position: relative;
  min-height: 220px;
  padding: 25px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.025);
}

.step-card::before {
  counter-increment: steps;
  content: "0" counter(steps);
  display: block;
  margin-bottom: 48px;
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 800;
}

.step-card::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(196,161,90,.13);
  border-radius: 50%;
}

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

.character-card {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(26,29,37,.98), rgba(12,14,18,.98));
  box-shadow: 0 16px 50px rgba(0,0,0,.22);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.character-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--role-color, var(--gold)) 55%, transparent);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}

.character-card[hidden] {
  display: none;
}

.character-art {
  position: relative;
  height: 252px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 25%, color-mix(in srgb, var(--role-color) 26%, transparent), transparent 58%),
    linear-gradient(180deg, #1a1d25, #101217);
}

.character-art::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle, #000, transparent 75%);
}

.character-art svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.character-content {
  padding: 22px;
}

.character-meta,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 27px;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #d9d2c7;
  background: rgba(255,255,255,.035);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .04em;
}

.badge-role {
  color: color-mix(in srgb, var(--role-color) 75%, white);
  border-color: color-mix(in srgb, var(--role-color) 35%, transparent);
  background: color-mix(in srgb, var(--role-color) 10%, transparent);
}

.badge-success {
  color: #9ee1c1;
  border-color: rgba(103,201,165,.25);
  background: rgba(103,201,165,.08);
}

.badge-warning {
  color: #efd49b;
  border-color: rgba(196,161,90,.28);
  background: rgba(196,161,90,.08);
}

.badge-danger {
  color: #f0a1aa;
  border-color: rgba(212,56,74,.3);
  background: rgba(212,56,74,.08);
}

.difficulty {
  display: inline-flex;
  gap: 3px;
}

.difficulty i {
  width: 5px;
  height: 13px;
  border-radius: 99px;
  background: rgba(255,255,255,.12);
}

.difficulty i.active {
  background: var(--gold);
}

.character-content p {
  min-height: 78px;
  margin-bottom: 17px;
  font-size: .92rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold-soft);
  font-weight: 760;
  font-size: .9rem;
}

.text-link:hover {
  color: #fff;
}

.filters {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 220px auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
}

.input,
.select {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  background: #101319;
}

.input:focus,
.select:focus {
  border-color: rgba(196,161,90,.55);
  box-shadow: 0 0 0 3px rgba(196,161,90,.08);
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
}

.checkbox input {
  width: 17px;
  height: 17px;
  accent-color: var(--red);
}

.result-line {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: .88rem;
}

.result-line strong {
  color: var(--text);
}

.empty-state {
  padding: 42px 24px;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
}

.empty-state[hidden] {
  display: none;
}

.page-hero {
  position: relative;
  padding: clamp(75px, 10vw, 130px) 0 clamp(58px, 7vw, 90px);
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.05);
  background:
    radial-gradient(circle at 82% 12%, rgba(143,29,44,.26), transparent 30rem),
    linear-gradient(180deg, rgba(255,255,255,.015), transparent);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -4vw;
  top: -10vw;
  width: 40vw;
  max-width: 560px;
  aspect-ratio: 1;
  border: 1px solid rgba(196,161,90,.1);
  border-radius: 50%;
  box-shadow: inset 0 0 90px rgba(212,56,74,.08);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
}

.page-hero p {
  max-width: 780px;
  font-size: 1.12rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted-2);
  font-size: .82rem;
}

.breadcrumbs a:hover {
  color: var(--gold-soft);
}

.breadcrumbs span::before {
  content: "/";
  margin-right: 8px;
  color: #55515a;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(34px, 6vw, 78px);
  align-items: start;
}

.prose {
  font-size: 1.02rem;
}

.prose > * + * {
  margin-top: 1.2em;
}

.prose h2 {
  margin-top: 2.2em;
  padding-top: .5em;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.prose h3 {
  margin-top: 1.8em;
}

.prose strong {
  color: var(--text);
}

.prose a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-decoration-color: rgba(196,161,90,.35);
  text-underline-offset: 3px;
}

.rule-block {
  scroll-margin-top: 100px;
  padding: 28px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(26,29,37,.72), rgba(13,15,19,.78));
}

.rule-head {
  display: flex;
  gap: 17px;
  align-items: flex-start;
}

.rule-head .icon-box {
  flex: 0 0 auto;
  margin: 0;
}

.rule-block p:last-child,
.rule-block ul:last-child,
.rule-block ol:last-child {
  margin-bottom: 0;
}

.sidebar {
  position: sticky;
  top: 102px;
}

.sidebar-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
}

.sidebar-card + .sidebar-card {
  margin-top: 16px;
}

.sidebar-card h3 {
  font-size: 1.15rem;
}

.toc {
  display: grid;
  gap: 7px;
}

.toc a {
  padding: 7px 9px;
  color: var(--muted);
  border-radius: 7px;
  font-size: .85rem;
}

.toc a:hover {
  color: #fff;
  background: rgba(255,255,255,.045);
}

.note {
  padding: 18px 20px;
  border: 1px solid rgba(196,161,90,.24);
  border-radius: 12px;
  color: #d7ccba;
  background: rgba(196,161,90,.06);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255,255,255,.025);
}

.faq-list summary {
  position: relative;
  padding: 19px 52px 19px 20px;
  color: var(--text);
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  color: var(--gold);
  font-size: 1.45rem;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 20px 18px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.character-detail-grid {
  display: grid;
  grid-template-columns: minmax(330px, .86fr) minmax(0, 1.14fr);
  gap: clamp(36px, 7vw, 88px);
  align-items: start;
}

.character-poster {
  position: sticky;
  top: 104px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--role-color) 40%, transparent);
  border-radius: 25px;
  background: linear-gradient(180deg, #1a1d25, #0c0e12);
  box-shadow: var(--shadow);
}

.character-poster-art {
  height: 520px;
  background:
    radial-gradient(circle at 50% 25%, color-mix(in srgb, var(--role-color) 28%, transparent), transparent 60%),
    linear-gradient(180deg, #1a1d25, #0c0e12);
}

.character-poster-art svg {
  width: 100%;
  height: 100%;
}

.poster-label {
  padding: 17px 20px;
  border-top: 1px solid var(--border);
}

.quote {
  position: relative;
  padding: 24px 26px;
  margin: 28px 0;
  border-left: 3px solid var(--role-color, var(--red));
  color: #e5ddcf;
  background: rgba(255,255,255,.025);
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
}

.info-list {
  display: grid;
  gap: 13px;
}

.info-item {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.022);
}

.info-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--gold-soft);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

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

.tip-list li {
  position: relative;
  padding: 13px 16px 13px 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,.02);
}

.tip-list li::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--role-color, var(--gold));
  box-shadow: 0 0 10px color-mix(in srgb, var(--role-color, var(--gold)) 50%, transparent);
}

.event-list {
  display: grid;
  gap: 18px;
}

.event-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(25,28,35,.9), rgba(12,14,18,.94));
}

.event-card[hidden] {
  display: none;
}

.event-card-visual {
  width: 100%;
  min-height: 230px;
  max-height: 430px;
  margin: 22px 0 18px;
  overflow: hidden;
  border: 1px solid rgba(196,161,90,.24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 38%, rgba(196,161,90,.09), transparent 48%),
    rgba(255,255,255,.025);
}

.event-card-photo {
  display: block;
}

.event-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 230px;
  max-height: 430px;
  object-fit: contain;
  object-position: center;
  transition: transform .25s ease;
}

.event-card:hover .event-card-photo img {
  transform: scale(1.015);
}

.event-card-map {
  display: grid;
  place-items: center;
  color: rgba(231,203,143,.9);
}

.event-card-map svg {
  width: clamp(130px, 22vw, 270px);
  height: auto;
  max-height: 250px;
  stroke-width: 1.35;
}

.event-date {
  min-height: 116px;
  display: grid;
  place-items: center;
  padding: 14px;
  text-align: center;
  border: 1px solid rgba(196,161,90,.24);
  border-radius: 13px;
  background: rgba(196,161,90,.055);
}

.event-date strong {
  display: block;
  color: var(--text);
  font-family: Georgia, serif;
  font-size: 2.25rem;
  line-height: 1;
}

.event-date span {
  color: var(--gold-soft);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.event-date small {
  color: var(--muted);
}

.event-content p {
  margin-bottom: 8px;
}

.event-place {
  color: var(--gold-soft);
  font-size: .85rem;
}

.event-content {
  min-width: 0;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.filter-chip {
  padding: 8px 13px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  cursor: pointer;
}

.filter-chip[aria-pressed="true"] {
  color: #fff;
  border-color: rgba(212,56,74,.45);
  background: rgba(212,56,74,.13);
}

.event-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 50px;
  align-items: end;
}

.event-hero-image {
  width: min(100%, 760px);
  max-height: 360px;
  margin: 0 0 30px;
  overflow: hidden;
  border: 1px solid rgba(196,161,90,.25);
  border-radius: var(--radius);
  background: rgba(255,255,255,.035);
  box-shadow: var(--shadow);
}

.event-hero-image img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  object-position: center;
}

.event-summary-box {
  padding: 24px;
  border: 1px solid rgba(196,161,90,.25);
  border-radius: var(--radius);
  background: rgba(11,13,17,.7);
  box-shadow: var(--shadow);
}

.event-summary-box dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.event-summary-box div {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--border);
}

.event-summary-box div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.event-summary-box dt {
  color: var(--muted-2);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.event-summary-box dd {
  margin: 3px 0 0;
  color: var(--text);
  font-weight: 700;
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.schedule-table th,
.schedule-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.schedule-table th {
  color: var(--gold-soft);
  background: rgba(196,161,90,.06);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.schedule-table tr:last-child td {
  border-bottom: 0;
}

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

.link-card {
  position: relative;
  min-height: 220px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(27,30,38,.9), rgba(12,14,18,.96));
  transition: transform 180ms ease, border-color 180ms ease;
}

.link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196,161,90,.4);
}

.link-card .icon-box {
  margin-bottom: 34px;
}

.link-card::after {
  content: "↗";
  position: absolute;
  right: 23px;
  top: 20px;
  color: var(--muted-2);
  font-size: 1.4rem;
}

.link-card.disabled {
  opacity: .68;
}

.cta-panel {
  position: relative;
  padding: clamp(32px, 6vw, 68px);
  overflow: hidden;
  border: 1px solid rgba(196,161,90,.26);
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 20%, rgba(212,56,74,.28), transparent 25rem),
    linear-gradient(145deg, #19171b, #0c0d11);
  box-shadow: var(--shadow);
}

.cta-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -130px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(196,161,90,.13);
  border-radius: 50%;
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel h2 {
  max-width: 760px;
}

.cta-panel p {
  max-width: 720px;
  font-size: 1.08rem;
}

.site-footer {
  padding: 58px 0 26px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: #07080a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr .7fr;
  gap: 44px;
  padding-bottom: 38px;
}

.footer-copy {
  max-width: 460px;
  margin-top: 18px;
}

.footer-heading {
  color: var(--gold-soft);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: var(--muted);
  font-size: .9rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.06);
  color: var(--muted-2);
  font-size: .8rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.not-found {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  text-align: center;
}

.not-found-code {
  color: transparent;
  background: linear-gradient(135deg, var(--red), var(--gold));
  background-clip: text;
  -webkit-background-clip: text;
  font-family: Georgia, serif;
  font-size: clamp(6rem, 22vw, 15rem);
  font-weight: 800;
  line-height: .8;
}

@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .menu-button { display: grid; }
  .hero-grid { grid-template-columns: 1fr 440px; gap: 32px; }
  .hero-visual { min-height: 520px; }
  .character-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 850px) {
  :root { --container: min(100% - 30px, 720px); }
  .header-actions > .button { display: none; }
  .hero { min-height: auto; padding-top: 62px; }
  .hero-grid,
  .split-panel,
  .section-heading,
  .content-layout,
  .character-detail-grid,
  .event-hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual { min-height: 500px; }
  .section-heading { align-items: start; }
  .sidebar,
  .character-poster { position: static; }
  .character-poster { max-width: 520px; }
  .event-card { grid-template-columns: 120px minmax(0, 1fr); }
  .event-card > .button { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  :root { --container: min(100% - 24px, 560px); }
  .header-inner { min-height: 68px; }
  .mobile-menu { top: 69px; }
  .brand-copy small { display: none; }
  .hero { padding-top: 48px; }
  .hero-actions .button,
  .section-actions .button { width: 100%; }
  .hero-visual { min-height: 430px; }
  .evidence-board { inset: 3% 0; transform: none; }
  .board-card { width: 116px; padding: 7px; }
  .board-card svg { height: 57px; }
  .board-card strong { font-size: .78rem; }
  .board-card small { font-size: .58rem; }
  .board-center { width: 140px; }
  .grid-2,
  .grid-3,
  .grid-4,
  .character-grid,
  .links-grid,
  .steps,
  .stat-strip {
    grid-template-columns: 1fr;
  }
  .stat { border-right: 0; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: 0; }
  .filters { grid-template-columns: 1fr; }
  .character-card { min-height: auto; }
  .character-content p { min-height: 0; }
  .player-grid { grid-template-columns: repeat(2, 1fr); }
  .app-window { min-height: 520px; }
  .app-sidebar { width: 72px; }
  .app-main { margin-left: 72px; padding: 18px 14px; }
  .rule-block { padding: 20px; }
  .rule-head { display: block; }
  .rule-head .icon-box { margin-bottom: 15px; }
  .character-poster-art { height: 430px; }
  .event-card { grid-template-columns: 1fr; }
  .event-date { min-height: 92px; }
  .event-card-visual { min-height: 180px; max-height: 320px; }
  .event-card-photo img { min-height: 180px; max-height: 320px; }
  .event-card > .button { grid-column: auto; }
  .schedule-table { display: block; overflow-x: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .button,
  .sidebar,
  .scroll-cue {
    display: none !important;
  }
  body {
    color: #111;
    background: #fff;
  }
  p, li { color: #333; }
  .section, .page-hero { padding: 24px 0; }
  .card, .rule-block { border-color: #bbb; box-shadow: none; background: #fff; }
}

/* Prawdziwe grafiki postaci. SVG pod spodem jest automatycznym fallbackiem,
   gdy plik obrazu nie istnieje albo ma błędną nazwę. */
.role-portrait {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.role-portrait > svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.role-portrait-background {
  z-index: 1;
}

/* Kolorowa poświata/okrąg jest częścią tła awaryjnego.
   Przy własnej grafice znika samo koło, ale zostaje ciemne,
   kolorystyczne tło karty. */
.role-portrait-halo {
  transition: opacity .18s ease;
}

.role-portrait.has-loaded-image .role-portrait-halo {
  opacity: 0;
}

.role-portrait-default {
  z-index: 2;
  transition: opacity .18s ease;
}

/* Gdy własny PNG/JPG/WebP poprawnie się wczyta, znika wyłącznie
   domyślna sylwetka. Kolorystyczne tło SVG pozostaje widoczne. */
.role-portrait.has-loaded-image .role-portrait-default {
  opacity: 0;
  visibility: hidden;
}

.role-image {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
