/* Feintfall – website styles.
   Modern and calm, the medieval character comes from the type (LT Museum), warm gold accents on deep night blue,
   the knight, the embers and one ornament under the title. Surfaces are quiet: soft fills, hairlines, rounded corners. */

@font-face {
  font-family: "LT Museum";
  src: url("fonts/LTMuseum-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("fonts/AlegreyaSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #090c13;
  --bg-2: #0d121b;
  --bg-3: #131a26;
  --card: rgba(255, 255, 255, 0.035);
  --card-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --gold: #e6b65a;
  --gold-light: #f5d796;
  --gold-soft: rgba(230, 182, 90, 0.14);
  --gold-line: rgba(230, 182, 90, 0.4);
  --ember: #ff8a3d;
  --text: #f1ebdd;
  --muted: #aab1bf;
  --dim: #7d8597;
  --ink: #17110a;
  --blue: #73cff5;
  --red: #ec6161;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.75), 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --gutter: clamp(18px, 4vw, 40px);
  --max: 1200px;
  --display: "LT Museum", "Cinzel", Georgia, serif;
  --body: "Alegreya Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* very light grain against banding in the large dark areas */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-light); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff3d6; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(230, 182, 90, 0.35); color: #fff; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Language blocks (legal pages) */
html[lang="de"] .only-en, html[lang="en"] .only-de { display: none !important; }

/* ================= Type and section basics ================= */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: 0.005em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); color: var(--text); text-wrap: balance; }
h3 { font-size: 1.4rem; color: var(--text); }
p { margin: 0; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 56ch; text-wrap: pretty; }

.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.78rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold);
}
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }

.section { position: relative; padding-block: clamp(80px, 10vw, 136px); }
.section-head { display: grid; gap: 14px; justify-items: start; margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }

.ornament { display: block; width: min(250px, 70%); height: 18px; color: var(--gold); opacity: 0.85; }

/* Generic surface (also used by the legal pages) */
.panel { background: linear-gradient(180deg, var(--card-strong), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }

/* ================= Buttons and badges ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm); border: 0;
  font: inherit; font-size: 1.04rem; letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(230, 182, 90, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-gold:hover { background: #f0c46e; color: var(--ink); transform: translateY(-1px); }
.btn-tint { background: var(--card-strong); color: var(--text); border: 1px solid var(--line-strong); }
.btn-tint:hover { color: var(--text); border-color: var(--gold-line); }

.badges { --bh: 52px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.store-badge { display: block; border-radius: 9px; transition: transform 0.2s ease, filter 0.2s ease; }
.store-badge img { height: var(--bh); width: auto; }
.soon-badge {
  display: inline-flex; align-items: center; gap: 10px; height: var(--bh); padding: 0 18px 0 14px;
  color: var(--muted); background: rgba(255, 255, 255, 0.03); border: 1px dashed var(--line-strong); border-radius: 9px;
}
.store-badge:hover { transform: translateY(-2px); filter: brightness(1.15); }
.soon-badge svg { width: 24px; height: 24px; flex: none; color: var(--gold); }
.soon-badge > span { display: grid; font-size: 1.12rem; line-height: 1.05; color: var(--text); font-weight: 500; }
.soon-badge small { font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }

/* ================= Header ================= */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color 0.3s ease, border-color 0.3s ease; }
.site-header.scrolled, .site-header.solid, .site-header.menu-open {
  background: rgba(9, 12, 19, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; gap: 22px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--text); text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand span { font-family: var(--display); font-size: 1.4rem; letter-spacing: 0.05em; }
.brand:hover { color: var(--gold-light); }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { position: relative; display: block; padding: 8px 14px; color: var(--muted); text-decoration: none; font-size: 1rem; border-radius: 999px; transition: color 0.2s ease, background-color 0.2s ease; }
.nav-links a:hover { color: var(--text); background: var(--card); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold); }

.lang-switch { display: flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.02); }
.lang-switch button {
  min-width: 42px; min-height: 32px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: inherit; font-size: 0.82rem; letter-spacing: 0.12em; color: var(--dim);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"] { background: var(--card-strong); color: var(--gold-light); }

.nav-cta { min-height: 42px; padding: 0 18px; font-size: 0.98rem; }
.menu-toggle { display: none; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); color: var(--text); cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle[aria-expanded="true"] { border-color: var(--gold-line); color: var(--gold-light); }
.menu-toggle .icon-close, .menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu { border-top: 1px solid var(--line); }
.mobile-menu ul { list-style: none; margin: 0 auto; padding: 8px 0 22px; display: grid; }
.mobile-menu a:not(.btn) { display: block; padding: 14px 4px; color: var(--text); text-decoration: none; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
.mobile-menu a:not(.btn):hover { color: var(--gold-light); }
.mobile-menu .btn { width: 100%; margin-top: 18px; }

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .menu-toggle { display: grid; }
}
@media (min-width: 1001px) { .mobile-menu { display: none !important; } }
@media (max-width: 560px) {
  .nav { gap: 10px; }
  .nav-cta { display: none; }
  .brand span { font-size: 1.22rem; }
}

/* ================= Hero ================= */
.hero {
  position: relative; overflow: hidden;
  min-height: min(100svh, 1000px);
  display: grid; align-items: center;
  padding: 128px 0 104px;
}
.hero-bg { position: absolute; inset: 0; background: url("img/hero-camp.webp") 72% center / cover no-repeat; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 72% 45%, rgba(9, 12, 19, 0) 0%, rgba(9, 12, 19, 0.35) 70%),
    linear-gradient(90deg, var(--bg) 0%, rgba(9, 12, 19, 0.92) 26%, rgba(9, 12, 19, 0.45) 58%, rgba(9, 12, 19, 0.55) 100%),
    linear-gradient(180deg, rgba(9, 12, 19, 0.6) 0%, rgba(9, 12, 19, 0) 26%, rgba(9, 12, 19, 0) 70%, var(--bg) 100%);
}
.embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: 32px; }
.hero-copy { display: grid; gap: 20px; justify-items: start; }
.hero-title {
  font-size: clamp(3.4rem, 8.6vw, 7rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff1c9 0%, var(--gold-light) 40%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.5));
}
.hero-tagline { font-family: var(--display); font-size: clamp(1.45rem, 2.5vw, 1.95rem); line-height: 1.18; color: var(--text); text-wrap: balance; }
.hero-sub { color: var(--muted); font-size: clamp(1.08rem, 1.6vw, 1.2rem); line-height: 1.6; max-width: 44ch; }
.hero-copy .badges { margin-top: 14px; }
.hero-meta { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--dim); font-size: 0.96rem; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 17px; height: 17px; color: var(--gold); }

.hero-art { position: relative; aspect-ratio: 1; width: min(100%, 560px); justify-self: center; }
.hero-art::before { content: ""; position: absolute; inset: -6% -10% -4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(9, 12, 19, 0.72), rgba(9, 12, 19, 0.35) 60%, rgba(9, 12, 19, 0)); }
.hero-glow {
  position: absolute; inset: 6%; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 58%, rgba(230, 182, 90, 0.32), rgba(230, 182, 90, 0) 52%),
    radial-gradient(circle at 50% 50%, rgba(70, 120, 200, 0.42), rgba(70, 120, 200, 0) 66%);
  filter: blur(8px);
}
.knight {
  position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none;
  transform: translateX(-46%);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.55));
  animation: hover 7s ease-in-out infinite;
}
@keyframes hover { 50% { transform: translateX(-46%) translateY(-12px); } }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; transform: translateX(-50%); color: var(--dim); animation: cue 2.4s ease-in-out infinite; }
.scroll-cue svg { width: 26px; height: 26px; }
.scroll-cue:hover { color: var(--gold-light); }
@keyframes cue { 50% { transform: translate(-50%, 6px); opacity: 0.55; } }

@media (max-width: 900px) {
  .hero { padding-top: 92px; min-height: 0; }
  .hero-bg { background-image: url("img/hero-camp-sm.webp"); background-position: 60% center; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(9, 12, 19, 0.55), rgba(9, 12, 19, 0.82) 55%, var(--bg)); }
  .hero-inner { grid-template-columns: 1fr; gap: 8px; }
  .hero-art { order: -1; width: min(62vw, 270px); margin-bottom: -10px; }
  .hero-copy { justify-items: center; text-align: center; }
  .hero-meta, .hero-copy .badges { justify-content: center; }
  .scroll-cue { display: none; }
}

/* ================= The game: screenshot with steps ================= */
.how { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.howview { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); box-shadow: var(--shadow); }
.howview-stage { position: relative; aspect-ratio: 16 / 10; }
.howview-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.7s ease; }
.howview-stage img.is-shown { opacity: 1; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.step {
  position: relative; width: 100%;
  display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; align-items: center;
  padding: 18px 20px 18px 16px; border: 1px solid transparent; border-radius: var(--radius-sm);
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.step:hover { background: var(--card); }
.step[aria-selected="true"] { background: var(--card-strong); border-color: var(--line); }
.step-num {
  grid-row: span 2; align-self: start; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 1.15rem; color: var(--gold);
  border: 1px solid var(--gold-line);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.step[aria-selected="true"] .step-num { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.step-title { font-family: var(--display); font-size: 1.3rem; line-height: 1.15; color: var(--text); }
.step-text { color: var(--muted); font-size: 1rem; line-height: 1.55; }
/* while the steps advance on their own, a thin bar fills under the selected one */
.how.is-auto .step[aria-selected="true"]::after {
  content: ""; position: absolute; left: 76px; right: 20px; bottom: 9px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--ember)); transform-origin: left center;
  animation: step-progress var(--step-ms, 6000ms) linear forwards;
}
@keyframes step-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; } }

/* round rules: four facts on hairlines */
.rules { display: grid; gap: 22px; margin-top: clamp(64px, 8vw, 104px); }
.rules-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rules-list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 28px 24px 28px 0; }
.rules-list li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.rules-list strong { display: block; margin-bottom: 6px; font-family: var(--display); font-weight: 700; font-size: 1.12rem; line-height: 1.2; color: var(--text); }
.rules-list div span { display: block; color: var(--muted); font-size: 0.98rem; line-height: 1.5; }
.icon-tile { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--gold); background: var(--gold-soft); border: 1px solid var(--gold-line); }
.icon-tile svg { width: 21px; height: 21px; }
@media (max-width: 1000px) {
  .rules-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules-list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .rules-list li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .rules-list { grid-template-columns: 1fr; }
  .rules-list li, .rules-list li + li { padding: 22px 0; border-left: 0; }
  .rules-list li + li { border-top: 1px solid var(--line); }
}

/* ================= Game modes: picture cards ================= */
.modes-section { background: var(--bg-2); }
.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mode {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(380px, 38vw, 470px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-3);
  box-shadow: var(--shadow);
}
.mode::before { content: ""; position: absolute; inset: 0; z-index: -2; background: center / cover no-repeat; transition: transform 1.2s ease; }
.mode::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9, 12, 19, 0.05) 0%, rgba(9, 12, 19, 0.45) 40%, rgba(9, 12, 19, 0.94) 82%); }
.mode-campaign::before { background-image: url("img/modes/campaign.webp"); }
.mode-online::before { background-image: url("img/modes/online-de.webp"); }
html[lang="en"] .mode-online::before { background-image: url("img/modes/online-en.webp"); }
.mode.in::before { transform: scale(1.04); }
.mode h3 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); }
.mode p { color: #cdd3dc; max-width: 48ch; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.65); }
.mode h3 { text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 6px 0 0; }
.chips li { padding: 5px 12px; font-size: 0.88rem; color: var(--text); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (max-width: 760px) {
  .modes { grid-template-columns: 1fr; }
  .mode { min-height: 400px; }
  .mode::after { background: linear-gradient(180deg, rgba(9, 12, 19, 0.1) 0%, rgba(9, 12, 19, 0.7) 32%, rgba(9, 12, 19, 0.96) 62%); }
}

/* ================= Gallery carousel ================= */
.gallery-section { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); }
.carousel { position: relative; --slide: min(80vw, 960px); }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--slide); gap: clamp(14px, 2vw, 26px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 8px calc(50% - var(--slide) / 2) 16px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline-offset: -2px; }
@media (max-width: 600px) { .carousel { --slide: 88vw; } }
.slide { margin: 0; scroll-snap-align: center; display: grid; gap: 14px; transition: opacity 0.5s ease, transform 0.5s ease; }
.js .slide:not(.is-active) { opacity: 0.35; transform: scale(0.94); }
.slide-btn { display: block; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-3); cursor: zoom-in; box-shadow: var(--shadow); transition: border-color 0.25s ease; }
.slide-btn:hover { border-color: var(--gold-line); }
.slide-btn img { width: 100%; aspect-ratio: 2868 / 1320; object-fit: cover; }
.slide figcaption { display: flex; align-items: baseline; gap: 12px; padding-inline: 4px; color: var(--text); font-size: 1.02rem; }
.slide-num { font-family: var(--display); color: var(--gold); font-size: 0.92rem; letter-spacing: 0.08em; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.carousel-btn, .lightbox-close, .lightbox-nav {
  width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  color: var(--text); background: rgba(9, 12, 19, 0.6); border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}
.carousel-btn:hover:not(:disabled), .lightbox-close:hover, .lightbox-nav:hover { border-color: var(--gold-line); color: var(--gold-light); background: rgba(9, 12, 19, 0.8); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }
.carousel-btn svg, .lightbox-close svg, .lightbox-nav svg { width: 22px; height: 22px; }
.carousel-dots { display: flex; gap: 6px; }
.carousel-dots i { position: relative; width: 22px; height: 18px; cursor: pointer; }
.carousel-dots i::before { content: ""; position: absolute; left: 7px; right: 7px; top: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); transition: left 0.25s ease, right 0.25s ease, background-color 0.25s ease; }
.carousel-dots i.on::before { left: 0; right: 0; background: var(--gold); }
@media (min-width: 901px) {
  .carousel-controls { margin-top: 18px; }
  .carousel-btn { position: absolute; z-index: 2; top: calc(8px + var(--slide) * 0.2301 - 25px); }
  .carousel-btn.prev { left: calc(50% - var(--slide) / 2 - 25px); }
  .carousel-btn.next { right: calc(50% - var(--slide) / 2 - 25px); }
}

.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1600px, 96vw); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 7, 12, 0.92); backdrop-filter: blur(6px); }
.lightbox img { max-height: 84vh; width: auto; margin-inline: auto; border-radius: 12px; box-shadow: var(--shadow); }
.lightbox p { text-align: center; color: var(--muted); margin-top: 14px; }
.lightbox-close, .lightbox-nav { position: absolute; }
.lightbox-close { top: -62px; right: 0; }
.lightbox-nav { top: calc(50% - 44px); }
.lightbox-nav.prev { left: 14px; }
.lightbox-nav.next { right: 14px; }

/* ================= Final call to action ================= */
.cta { position: relative; overflow: hidden; text-align: center; padding-block: clamp(100px, 13vw, 170px); background: url("img/hero-camp.webp") center 40% / cover no-repeat; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 50%, rgba(9, 12, 19, 0.62), rgba(9, 12, 19, 0.95)), linear-gradient(180deg, var(--bg), rgba(9, 12, 19, 0) 30%, rgba(9, 12, 19, 0) 70%, #07090e); }
.cta .wrap { position: relative; z-index: 1; display: grid; gap: 22px; justify-items: center; }
.cta-icon { width: 92px; height: 92px; border-radius: 22px; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.cta h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.cta .lead { max-width: 52ch; text-wrap: balance; margin-inline: auto; }
.cta .badges { justify-content: center; margin-top: 6px; }

/* ================= Footer ================= */
.site-footer { background: #07090e; border-top: 1px solid var(--line); padding: 44px 0 30px; color: var(--dim); font-size: 0.96rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.site-footer .brand { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 40px; padding-top: 22px; font-size: 0.9rem; }
.legal-note { margin: 0; max-width: 80ch; font-size: 0.82rem; color: #7c8496; line-height: 1.55; }

/* ================= Legal pages ================= */
.legal-main { padding: 132px 0 96px; }
.legal { max-width: 780px; margin-inline: auto; }
.legal header { display: grid; gap: 14px; margin-bottom: 40px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--text); }
.legal h2 { font-size: 1.5rem; color: var(--gold-light); margin: 44px 0 12px; }
.legal h3 { font-size: 1.1rem; color: var(--text); margin: 28px 0 8px; font-family: var(--body); font-weight: 500; letter-spacing: 0.02em; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; margin: 10px 0; }
.legal li + li { margin-top: 6px; }
.legal address { font-style: normal; color: var(--text); line-height: 1.7; }
.legal .meta { color: var(--dim); font-size: 0.95rem; }
.legal .card { margin: 18px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 1rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--muted); }
.legal th { color: var(--text); font-weight: 500; }
.todo { background: rgba(236, 97, 97, 0.16); color: #ffb3b3; padding: 0 4px; border-radius: 4px; outline: 1px dashed rgba(236, 97, 97, 0.55); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--text); }
.back-link svg { width: 18px; height: 18px; }
@media (max-width: 600px) {
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { display: none; }
  .legal td { border: 0; padding: 4px 0; }
  .legal tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .legal td:first-child { color: var(--text); }
}

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 0 80px; position: relative; overflow: hidden; }
.notfound .wrap { position: relative; z-index: 1; display: grid; gap: 20px; justify-items: center; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--text); }
.notfound .lead { margin-inline: auto; }
.notfound .code { font-family: var(--display); font-size: clamp(5rem, 18vw, 9rem); line-height: 1; background: linear-gradient(180deg, #fff1c9 0%, var(--gold-light) 40%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ================= Motion ================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 520px) {
  .badges { --bh: 46px; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .knight, .scroll-cue { animation: none; }
  .js .slide:not(.is-active) { transform: none; }
  .mode::before { transition: none; }
}
