@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Spectral:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --earth: #0b0f0d;
  --void-black: #050607;
  --earth-2: #101711;
  --moss: #1f3a2e;
  --wood: #3b2f2f;
  --bone: #e8e3d9;
  --muted: #a8b3aa;
  --gold: #c2a86b;
  --blood: #8c1c1c;
  --void: #4b2e59;
  --cyan: #7fa7a3;
  --line: rgba(232, 227, 217, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 14%, rgba(140, 28, 28, 0.15), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(75, 46, 89, 0.18), transparent 28%),
    linear-gradient(180deg, var(--void-black) 0%, var(--earth) 42%, #070a08 100%);
  color: var(--bone);
  font-family: Spectral, Georgia, "Times New Roman", serif;
}

body::before {
  content: "";
  position: fixed;
  z-index: 50;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(232, 227, 217, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 227, 217, 0.06) 1px, transparent 1px);
  background-size: 38px 38px, 42px 42px;
  mix-blend-mode: overlay;
}

body.event-page::after {
  content: "";
  position: fixed;
  z-index: 51;
  inset: -20%;
  pointer-events: none;
  opacity: 0.18;
  background:
    repeating-linear-gradient(0deg, rgba(232, 227, 217, 0.035) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 50% 52%, transparent 0 44%, rgba(5, 6, 7, 0.9) 82%);
  animation: dread-grain 1.2s steps(2, end) infinite;
  mix-blend-mode: overlay;
}

body.event-page.is-haunted::after {
  opacity: 0.34;
  animation-duration: 0.28s;
}

.haunt-layer {
  position: fixed;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.haunt-layer span {
  position: absolute;
  width: 58vw;
  height: 42vh;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 227, 217, 0.08), transparent 64%);
  filter: blur(18px);
  opacity: 0.18;
  animation: forest-breath 24s ease-in-out infinite;
}

.haunt-layer span:nth-child(1) {
  top: 12vh;
  left: -24vw;
}

.haunt-layer span:nth-child(2) {
  right: -22vw;
  bottom: 16vh;
  animation-delay: -8s;
  animation-duration: 31s;
}

.haunt-layer span:nth-child(3) {
  top: 52vh;
  left: 22vw;
  background: radial-gradient(circle, rgba(140, 28, 28, 0.12), transparent 68%);
  animation-delay: -15s;
  animation-duration: 37s;
}

.blood-moon {
  position: fixed;
  z-index: 0;
  top: 74px;
  right: min(9vw, 120px);
  width: clamp(120px, 18vw, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.16;
  background:
    radial-gradient(circle at 42% 42%, rgba(194, 168, 107, 0.28), transparent 18%),
    radial-gradient(circle, rgba(140, 28, 28, 0.46), transparent 66%);
  filter: blur(1px);
  animation: moon-watch 18s ease-in-out infinite;
}

body::selection {
  background: var(--blood);
  color: var(--bone);
}

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

.site-header {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid rgba(232, 227, 217, 0.08);
  background: rgba(5, 6, 7, 0.78);
  backdrop-filter: blur(18px);
}

.site-header[data-elevated="true"] {
  background: rgba(7, 10, 8, 0.94);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(194, 168, 107, 0.42);
  border-radius: 50%;
  background: rgba(5, 6, 7, 0.48) url("./assets/logo/chata-2026-rune-logo.svg") center / 112% 112% no-repeat;
  box-shadow: 0 0 24px rgba(194, 168, 107, 0.18), inset 0 0 18px rgba(5, 6, 7, 0.62);
  animation: sigil-pulse 7s ease-in-out infinite;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Cinzel, Georgia, serif;
  font-size: 14px;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
}

nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

nav a,
.ghost-button,
.solid-button,
.ghost-link,
.text-link {
  min-height: 36px;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 13px;
  font-family: Spectral, Georgia, serif;
  line-height: 36px;
  white-space: nowrap;
}

nav a {
  color: rgba(232, 227, 217, 0.78);
}

nav a:hover,
.text-link:hover,
.ghost-link:hover {
  color: var(--gold);
  text-shadow: 0 0 18px rgba(194, 168, 107, 0.28);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.ghost-button {
  border: 1px solid var(--line);
  background: rgba(232, 227, 217, 0.04);
  color: var(--bone);
  cursor: pointer;
}

.ghost-button:hover {
  border-color: var(--cyan);
}

.solid-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(194, 168, 107, 0.78);
  background: var(--gold);
  color: #130f0a;
  font-weight: 700;
}

.solid-button:hover {
  background: #d8bf7b;
  box-shadow: 0 0 32px rgba(194, 168, 107, 0.2), 0 0 70px rgba(140, 28, 28, 0.18);
  transform: translateY(-1px);
}

.solid-button.large {
  min-height: 46px;
  padding: 0 18px;
  line-height: 46px;
}

.text-link,
.ghost-link {
  display: inline-flex;
  align-items: center;
  color: var(--bone);
}

.inline-guide-link,
.card-link,
.timeline a {
  color: var(--gold);
  font-weight: 700;
}

.inline-guide-link {
  display: inline-flex;
  margin-left: 8px;
  text-decoration: underline;
  text-decoration-color: rgba(194, 168, 107, 0.38);
  text-underline-offset: 4px;
}

.inline-guide-link:hover,
.card-link:hover,
.timeline a:hover {
  color: var(--bone);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(860px, 92vh);
  padding: 118px clamp(18px, 6vw, 72px) 86px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto -10% -22% -10%;
  height: 48%;
  pointer-events: none;
  opacity: 0.5;
  background:
    radial-gradient(ellipse at 28% 54%, rgba(232, 227, 217, 0.08), transparent 58%),
    radial-gradient(ellipse at 70% 44%, rgba(127, 167, 163, 0.05), transparent 54%);
  filter: blur(18px);
  animation: ground-mist 19s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.86), transparent 18%, transparent 72%, rgba(5, 6, 7, 0.88)),
    linear-gradient(0deg, rgba(5, 6, 7, 0.72), transparent 28%, transparent 74%, rgba(5, 6, 7, 0.7));
}

.hero-media,
.hero-vignette,
.village-media,
.join-media,
.feature-image {
  background-position: center;
  background-size: cover;
}

.hero-media {
  position: absolute;
  z-index: auto;
  inset: 0;
  overflow: hidden;
  background-image: url("./assets/images/optimized/banner_image-960.jpg");
  transform: scale(1.03);
  filter: saturate(0.56) contrast(1.16) brightness(0.68);
  animation: haunted-image 28s ease-in-out infinite;
}

.hero-media::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: url("./assets/images/optimized/banner_image_invider-960.jpg") center / cover no-repeat;
  filter: saturate(0.88) contrast(1.58) brightness(1.9);
  mask-image: radial-gradient(ellipse at 84% 47%, #000 0 42%, rgba(0, 0, 0, 0.84) 50%, transparent 68%);
  -webkit-mask-image: radial-gradient(ellipse at 84% 47%, #000 0 42%, rgba(0, 0, 0, 0.84) 50%, transparent 68%);
}

.hero-media::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 84% 47%, transparent 0 35%, rgba(5, 6, 7, 0.12) 48%, rgba(5, 6, 7, 0.52) 70%, rgba(5, 6, 7, 0.62) 100%),
    linear-gradient(90deg, rgba(5, 6, 7, 0.58), rgba(5, 6, 7, 0.48) 50%, rgba(5, 6, 7, 0.12) 78%, transparent 100%);
}

.hero-vignette {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.7) 0%, rgba(5, 6, 7, 0.22) 38%, rgba(5, 6, 7, 0.98) 100%),
    radial-gradient(circle at 16% 50%, rgba(140, 28, 28, 0.45), transparent 32%),
    radial-gradient(circle at 84% 46%, rgba(75, 46, 89, 0.36), transparent 28%);
  animation: omen-light 28s ease-in-out infinite;
}

.hero-vignette::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.2) 0%, rgba(5, 6, 7, 0.48) 42%, rgba(5, 6, 7, 0.92) 100%),
    radial-gradient(circle at 19% 47%, rgba(140, 28, 28, 0.74), transparent 33%),
    radial-gradient(circle at 52% 34%, rgba(140, 28, 28, 0.18), transparent 36%);
}

.hero-fragments {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-fragments span {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: var(--s, 18px);
  height: calc(var(--s, 18px) * 0.78);
  opacity: 0;
  background:
    linear-gradient(135deg, rgba(232, 227, 217, 0.34), rgba(232, 227, 217, 0.08)),
    rgba(232, 227, 217, 0.05);
  box-shadow: 0 0 12px rgba(232, 227, 217, 0.08);
  transform: translate3d(0, 0, 0) scale(0.6);
}

.hero-fragments span:nth-child(3n + 1) {
  background:
    linear-gradient(135deg, rgba(232, 227, 217, 0.28), rgba(232, 227, 217, 0.04)),
    rgba(127, 167, 163, 0.04);
  box-shadow: 0 0 16px rgba(127, 167, 163, 0.08);
}

.hero-fragments span:nth-child(3n + 2) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.035)),
    rgba(232, 227, 217, 0.03);
}

.hero-sigil {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 8vw, 120px);
  top: clamp(110px, 18vh, 190px);
  width: clamp(180px, 28vw, 420px);
  aspect-ratio: 1;
  border: 1px solid rgba(194, 168, 107, 0.16);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.26;
  background:
    radial-gradient(circle at center, transparent 0 27%, rgba(194, 168, 107, 0.08) 27% 28%, transparent 28% 49%, rgba(140, 28, 28, 0.12) 49% 50%, transparent 50%),
    conic-gradient(from 16deg, transparent 0 8%, rgba(194, 168, 107, 0.24) 8% 8.5%, transparent 8.5% 23%, rgba(127, 167, 163, 0.18) 23% 23.5%, transparent 23.5% 38%, rgba(140, 28, 28, 0.22) 38% 38.5%, transparent 38.5% 100%);
  filter: drop-shadow(0 0 34px rgba(140, 28, 28, 0.22));
  animation: sigil-turn 46s linear infinite, sigil-fade 9s ease-in-out infinite;
}

.hero-audio-call {
  position: absolute;
  z-index: 3;
  right: clamp(22px, 7vw, 110px);
  bottom: clamp(84px, 13vh, 150px);
  max-width: min(420px, 36vw);
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(232, 227, 217, 0.82);
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2.4vw, 36px);
  font-weight: 700;
  line-height: 1.08;
  text-align: right;
  text-shadow: 0 0 28px rgba(194, 168, 107, 0.2), 0 14px 42px rgba(0, 0, 0, 0.84);
  cursor: pointer;
  opacity: 1;
  transform: translateY(0);
  transition: color 220ms ease, opacity 2200ms ease, transform 2600ms ease, filter 2600ms ease;
  filter: blur(0);
}

.hero-audio-call:hover,
.hero-audio-call:focus-visible {
  color: var(--gold);
}

.hero-audio-call:focus-visible {
  outline: 2px solid rgba(194, 168, 107, 0.64);
  outline-offset: 8px;
}

.hero-audio-call::before {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -14px;
  width: 70%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(194, 168, 107, 0.48), rgba(140, 28, 28, 0.22));
  box-shadow: 0 0 18px rgba(194, 168, 107, 0.14);
}

body[data-audio-playing="true"] .hero-audio-call {
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  filter: blur(5px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: min(760px, 58vw);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 8vw, 112px);
  font-weight: 700;
  line-height: 0.92;
  text-shadow: 0 18px 52px rgba(0, 0, 0, 0.78), 0 0 22px rgba(140, 28, 28, 0.24);
}

.event-page h1 {
  animation: title-dread 8s ease-in-out infinite;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 28px;
  color: rgba(232, 227, 217, 0.84);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.56;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.top-audio {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  max-width: min(440px, 34vw);
  border: 1px solid rgba(194, 168, 107, 0.22);
  border-radius: 8px;
  padding: 4px 6px;
  background:
    linear-gradient(135deg, rgba(31, 58, 46, 0.18), rgba(140, 28, 28, 0.08)),
    rgba(5, 6, 7, 0.5);
  box-shadow: inset 0 0 24px rgba(5, 6, 7, 0.38);
  backdrop-filter: blur(10px);
}

.top-audio[data-playing="true"] {
  border-color: rgba(194, 168, 107, 0.46);
  box-shadow: 0 0 26px rgba(194, 168, 107, 0.1), inset 0 0 24px rgba(5, 6, 7, 0.38);
}

.track-select {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 38px;
  border: 1px solid rgba(232, 227, 217, 0.12);
  border-radius: 6px;
  padding: 0 10px;
  background: rgba(232, 227, 217, 0.035);
  color: rgba(232, 227, 217, 0.66);
  font-size: 11px;
}

.track-select select {
  width: clamp(130px, 12vw, 190px);
  border: 0;
  background: transparent;
  color: var(--bone);
  font-family: Spectral, Georgia, serif;
  font-size: 13px;
}

.track-select input[type="range"] {
  width: 66px;
  accent-color: var(--gold);
}

.track-select select:focus-visible,
.track-select input:focus-visible,
.sound-button:focus-visible {
  outline: 2px solid rgba(194, 168, 107, 0.68);
  outline-offset: 3px;
}

.track-select option {
  background: #0b0f0d;
  color: var(--bone);
}

.sound-button {
  min-height: 38px;
  border: 1px solid rgba(194, 168, 107, 0.62);
  border-radius: 6px;
  padding: 0 14px;
  background: rgba(194, 168, 107, 0.12);
  color: var(--gold);
  font-family: Spectral, Georgia, serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.sound-button:hover {
  border-color: var(--gold);
  background: rgba(194, 168, 107, 0.2);
  color: var(--bone);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 86px clamp(18px, 4vw, 32px);
}

.event-page.is-animated .section {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 900ms ease, transform 900ms ease;
}

.event-page.is-animated .section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.intro-grid,
.village,
.join {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.intro h2,
.section-heading h2,
.village h2,
.join h2 {
  margin-bottom: 0;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
}

.intro-copy p,
.village p,
.join p,
.feature p,
.path-card p,
.omen-section p,
.timeline span {
  color: rgba(232, 227, 217, 0.72);
  font-size: 15px;
  line-height: 1.68;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1240px;
  padding-top: 36px;
}

.feature,
.path-card,
.omen-section article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.14), rgba(5, 6, 7, 0.46)),
    rgba(31, 58, 46, 0.34);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease, filter 220ms ease;
}

.feature::before,
.path-card::before,
.omen-section article::before,
.feature::after,
.path-card::after,
.omen-section article::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms ease, transform 360ms ease;
}

.feature::before,
.path-card::before,
.omen-section article::before {
  background:
    radial-gradient(circle at 18% 8%, rgba(140, 28, 28, 0.32), transparent 26%),
    radial-gradient(circle at 82% 88%, rgba(127, 167, 163, 0.1), transparent 30%),
    linear-gradient(180deg, transparent 0 44%, rgba(5, 6, 7, 0.48) 100%);
  transform: translate3d(-5%, 8%, 0) scale(1.04);
}

.feature::after,
.path-card::after,
.omen-section article::after {
  inset: 10px;
  border: 1px solid rgba(140, 28, 28, 0.22);
  background:
    linear-gradient(90deg, rgba(140, 28, 28, 0.45) 0 18px, transparent 18px) top left / 42px 1px no-repeat,
    linear-gradient(180deg, rgba(140, 28, 28, 0.45) 0 18px, transparent 18px) top left / 1px 42px no-repeat,
    linear-gradient(270deg, rgba(127, 167, 163, 0.22) 0 16px, transparent 16px) bottom right / 38px 1px no-repeat,
    linear-gradient(0deg, rgba(127, 167, 163, 0.22) 0 16px, transparent 16px) bottom right / 1px 38px no-repeat;
  transform: scale(0.98);
}

.feature:hover,
.path-card:hover,
.omen-section article:hover {
  border-color: rgba(140, 28, 28, 0.54);
  box-shadow: 0 28px 96px rgba(0, 0, 0, 0.48), 0 0 46px rgba(140, 28, 28, 0.16), inset 0 0 38px rgba(5, 6, 7, 0.42);
  transform: translateY(-3px);
}

.feature:hover::before,
.path-card:hover::before,
.omen-section article:hover::before,
.feature:hover::after,
.path-card:hover::after,
.omen-section article:hover::after {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.feature {
  overflow: hidden;
}

.feature-image {
  height: 220px;
  border-bottom: 1px solid var(--line);
  filter: saturate(0.5) contrast(1.14) brightness(0.68);
  transition: filter 260ms ease, transform 360ms ease;
}

.feature:hover .feature-image {
  transform: scale(1.035);
  filter: saturate(0.42) contrast(1.22) brightness(0.58);
}

.image-shrine {
  background-image: url("./assets/images/optimized/celtic-path-480.jpg");
}

.image-combat {
  background-image: url("./assets/images/optimized/battle-480.jpg");
}

.image-artefact {
  background-image: url("./assets/images/optimized/artefacts-480.jpg");
}

.feature h3,
.feature p {
  position: relative;
  z-index: 1;
  padding-right: 18px;
  padding-left: 18px;
}

.feature h3 {
  margin: 18px 0 8px;
  font-family: Cinzel, Georgia, serif;
  font-size: 20px;
}

.feature p {
  margin-bottom: 20px;
}

.card-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 18px 18px;
  font-size: 13px;
}

.card-link::after {
  content: "᚛";
  margin-left: 8px;
  color: rgba(140, 28, 28, 0.86);
  transition: color 180ms ease, transform 180ms ease;
}

.feature:hover .card-link::after,
.path-card:hover .card-link::after,
.omen-section article:hover .card-link::after {
  color: var(--gold);
  transform: translateX(2px);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

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

.path-card {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  padding: 24px;
}

.path-portrait {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 56%;
  object-fit: cover;
  object-position: center 18%;
  opacity: 0.78;
  filter: saturate(0.68) contrast(1.12) brightness(0.82);
  transition: opacity 260ms ease, filter 260ms ease, transform 360ms ease;
}

.path-card::before {
  z-index: 0;
}

.path-card::after {
  z-index: 1;
}

.path-card::before {
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.06) 0%, rgba(5, 6, 7, 0.28) 36%, rgba(5, 6, 7, 0.9) 62%, rgba(5, 6, 7, 0.98) 100%),
    radial-gradient(circle at 18% 8%, rgba(140, 28, 28, 0.18), transparent 28%);
  transform: none;
}

.path-card:hover .path-portrait {
  opacity: 0.9;
  filter: saturate(0.76) contrast(1.18) brightness(0.9);
  transform: scale(1.035);
}

.path-icon {
  position: relative;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-top: auto;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(232, 227, 217, 0.05);
  color: var(--gold);
  font-size: 24px;
}

.path-card h3 {
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
  font-family: Cinzel, Georgia, serif;
  font-size: 28px;
}

.path-card ul {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.path-card li {
  border-top: 1px solid rgba(232, 227, 217, 0.1);
  padding-top: 8px;
  color: rgba(232, 227, 217, 0.84);
  font-size: 13px;
}

.path-card .card-link {
  z-index: 2;
  margin: auto 0 0;
  padding-top: 22px;
}

.path-card.druid {
  background: linear-gradient(180deg, rgba(31, 58, 46, 0.72), rgba(13, 21, 16, 0.8));
}

.path-card.pathfinder {
  background: linear-gradient(180deg, rgba(59, 47, 47, 0.74), rgba(13, 21, 16, 0.8));
}

.path-card.champion {
  background: linear-gradient(180deg, rgba(80, 31, 25, 0.56), rgba(13, 21, 16, 0.8));
}

.village {
  max-width: 1240px;
}

.village-media,
.join-media {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  filter: saturate(0.46) contrast(1.14) brightness(0.62);
}

.village-media {
  background-image: url("./assets/images/optimized/village-restoration-480.jpg");
}

.village-content,
.join-content {
  max-width: 560px;
}

.village-content h2,
.join-content h2 {
  margin-bottom: 18px;
}

.registration-panel {
  display: grid;
  gap: 16px;
  margin-top: 26px;
  border: 1px solid rgba(232, 227, 217, 0.16);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.26), rgba(5, 6, 7, 0.58)),
    rgba(31, 58, 46, 0.24);
  box-shadow: inset 0 0 34px rgba(5, 6, 7, 0.34);
}

.registration-status {
  border-left: 3px solid rgba(194, 168, 107, 0.64);
  padding: 9px 0 9px 12px;
  color: rgba(232, 227, 217, 0.78);
  font-size: 14px;
  line-height: 1.45;
}

.registration-status[data-tone="success"] {
  border-left-color: rgba(127, 167, 163, 0.88);
  color: var(--bone);
}

.registration-status[data-tone="error"],
.registration-warning {
  border-left-color: var(--blood);
  color: #f3d4d0;
}

.registration-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.auth-button {
  min-height: 46px;
  padding: 0 16px;
  line-height: 44px;
}

.character-form {
  display: grid;
  gap: 16px;
}

.character-form[hidden],
[data-registration-signed-out][hidden],
.registration-warning[hidden] {
  display: none;
}

.character-form label,
.character-form fieldset {
  display: grid;
  gap: 9px;
  margin: 0;
  border: 0;
  padding: 0;
}

.character-form span,
.character-form legend {
  color: var(--gold);
  font-family: Cinzel, Georgia, serif;
  font-size: 13px;
  font-weight: 800;
}

.character-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(232, 227, 217, 0.16);
  border-radius: 6px;
  padding: 0 12px;
  background: rgba(5, 6, 7, 0.5);
  color: var(--bone);
  font-family: Spectral, Georgia, serif;
  font-size: 15px;
}

.character-form input:focus-visible,
.class-choice-grid button:focus-visible {
  outline: 2px solid rgba(194, 168, 107, 0.68);
  outline-offset: 3px;
}

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

.class-choice-grid button {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid rgba(232, 227, 217, 0.14);
  border-radius: 8px;
  padding: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(194, 168, 107, 0.12), transparent 56%),
    rgba(5, 6, 7, 0.36);
  color: rgba(232, 227, 217, 0.8);
  font-family: Spectral, Georgia, serif;
  text-align: left;
  cursor: pointer;
}

.class-choice-grid button::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.02) 0%, rgba(5, 6, 7, 0.22) 36%, rgba(5, 6, 7, 0.94) 74%, rgba(5, 6, 7, 0.98) 100%),
    radial-gradient(circle at 50% 20%, rgba(194, 168, 107, 0.08), transparent 46%);
}

.class-choice-grid button img {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.82;
  filter: saturate(0.66) contrast(1.12) brightness(0.78);
  transition: transform 300ms ease, filter 240ms ease, opacity 240ms ease;
}

.class-choice-grid button:hover img,
.class-choice-grid button[data-selected="true"] img {
  opacity: 0.94;
  filter: saturate(0.78) contrast(1.16) brightness(0.88);
  transform: scale(1.035);
}

.class-choice-grid button[data-selected="true"] {
  border-color: rgba(194, 168, 107, 0.86);
  background:
    linear-gradient(180deg, rgba(194, 168, 107, 0.16), rgba(140, 28, 28, 0.11)),
    rgba(5, 6, 7, 0.46);
  box-shadow: 0 0 32px rgba(194, 168, 107, 0.12), inset 0 0 24px rgba(5, 6, 7, 0.5);
}

.class-choice-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 310px;
  padding: 16px;
}

.class-choice-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--bone);
  font-family: Cinzel, Georgia, serif;
  font-size: 16px;
}

.class-choice-grid span {
  color: rgba(232, 227, 217, 0.68);
  font-family: Spectral, Georgia, serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.34;
}

.registration-warning {
  border-left: 3px solid var(--blood);
  padding: 9px 0 9px 12px;
  background: rgba(140, 28, 28, 0.08);
  font-size: 13px;
  line-height: 1.45;
}

.registration-note {
  margin: 0;
  color: rgba(232, 227, 217, 0.62);
  font-size: 13px;
  line-height: 1.45;
}

.building-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.building-list a {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: rgba(232, 227, 217, 0.04);
  color: rgba(232, 227, 217, 0.86);
  font-size: 13px;
}

.building-list a:hover {
  border-color: rgba(194, 168, 107, 0.5);
  color: var(--gold);
  background: rgba(194, 168, 107, 0.08);
}

.omen-section {
  max-width: 1240px;
}

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

.omen-section article {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 0 22px 22px;
  background:
    linear-gradient(180deg, rgba(75, 46, 89, 0.22), rgba(31, 58, 46, 0.28)),
    rgba(16, 23, 17, 0.86);
}

.omen-card-image {
  position: relative;
  z-index: 1;
  height: 178px;
  margin: 0 -22px 20px;
  border-bottom: 1px solid rgba(232, 227, 217, 0.12);
  background-position: center;
  background-size: cover;
  filter: saturate(0.58) contrast(1.16) brightness(0.68);
  transition: filter 260ms ease, transform 360ms ease;
}

.omen-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.04), rgba(5, 6, 7, 0.72)),
    radial-gradient(circle at 50% 12%, transparent 0 38%, rgba(5, 6, 7, 0.28) 76%);
}

.omen-card:hover .omen-card-image {
  filter: saturate(0.68) contrast(1.2) brightness(0.76);
  transform: scale(1.018);
}

.omen-card-forest .omen-card-image {
  background-image: url("./assets/images/optimized/omen-480.jpg");
}

.omen-card-warning .omen-card-image {
  background-image: url("./assets/images/optimized/warning-480.jpg");
}

.omen-card-vow .omen-card-image {
  background-image: url("./assets/images/optimized/vow-480.jpg");
}

.omen-section strong {
  position: relative;
  z-index: 1;
  color: var(--cyan);
  font-size: 13px;
}

.omen-section h3 {
  position: relative;
  z-index: 1;
  margin: 24px 0 8px;
  font-family: Cinzel, Georgia, serif;
  font-size: 24px;
}

.omen-section p,
.path-card p {
  position: relative;
  z-index: 2;
}

.omen-section .card-link {
  margin: auto 0 0;
  padding-top: 20px;
}

.timeline {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  background: rgba(16, 23, 17, 0.96);
}

.timeline time {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.join {
  max-width: 1240px;
  padding-bottom: 106px;
}

.join-media {
  order: 2;
  background-image: url("./assets/images/optimized/get_ready-480.jpg");
}

@media (min-width: 760px) {
  .hero-media {
    background-image: url("./assets/images/optimized/banner_image-1600.jpg");
  }

  .hero-media::before {
    background-image: url("./assets/images/optimized/banner_image_invider-1600.jpg");
  }

  .image-shrine {
    background-image: url("./assets/images/optimized/celtic-path-800.jpg");
  }

  .image-combat {
    background-image: url("./assets/images/optimized/battle-800.jpg");
  }

  .image-artefact {
    background-image: url("./assets/images/optimized/artefacts-800.jpg");
  }

  .village-media {
    background-image: url("./assets/images/optimized/village-restoration-720.jpg");
  }

  .join-media {
    background-image: url("./assets/images/optimized/get_ready-720.jpg");
  }

  .omen-card-forest .omen-card-image {
    background-image: url("./assets/images/optimized/omen-800.jpg");
  }

  .omen-card-warning .omen-card-image {
    background-image: url("./assets/images/optimized/warning-800.jpg");
  }

  .omen-card-vow .omen-card-image {
    background-image: url("./assets/images/optimized/vow-800.jpg");
  }
}

@media (min-width: 1400px) {
  .hero-media {
    background-image: url("./assets/images/optimized/banner_image-2400.jpg");
  }

  .hero-media::before {
    background-image: url("./assets/images/optimized/banner_image_invider-2400.jpg");
  }

  .image-shrine {
    background-image: url("./assets/images/optimized/celtic-path-1200.jpg");
  }

  .image-combat {
    background-image: url("./assets/images/optimized/battle-1200.jpg");
  }

  .image-artefact {
    background-image: url("./assets/images/optimized/artefacts-1200.jpg");
  }

  .village-media {
    background-image: url("./assets/images/optimized/village-restoration-928.jpg");
  }

  .join-media {
    background-image: url("./assets/images/optimized/get_ready-928.jpg");
  }

  .omen-card-forest .omen-card-image {
    background-image: url("./assets/images/optimized/omen-1264.jpg");
  }

  .omen-card-warning .omen-card-image {
    background-image: url("./assets/images/optimized/warning-1264.jpg");
  }

  .omen-card-vow .omen-card-image {
    background-image: url("./assets/images/optimized/vow-1264.jpg");
  }
}

.join-content {
  order: 1;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  border-top: 1px solid var(--line);
  padding: 28px 18px;
  background: #070a08;
  color: rgba(232, 227, 217, 0.62);
  font-size: 13px;
}

.site-footer a:hover,
.site-footer button:hover {
  color: var(--gold);
}

.site-footer button {
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(232, 227, 217, 0.62);
  font: inherit;
  cursor: pointer;
}

.cookie-banner {
  position: fixed;
  z-index: 80;
  right: clamp(14px, 3vw, 34px);
  bottom: clamp(14px, 3vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  width: min(960px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid rgba(194, 168, 107, 0.36);
  border-radius: 8px;
  padding: clamp(16px, 2.4vw, 24px);
  background:
    radial-gradient(circle at 7% 0%, rgba(140, 28, 28, 0.34), transparent 30%),
    radial-gradient(circle at 96% 100%, rgba(127, 167, 163, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(16, 23, 17, 0.98), rgba(5, 6, 7, 0.98));
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.72), inset 0 0 44px rgba(5, 6, 7, 0.44), 0 0 42px rgba(140, 28, 28, 0.12);
}

.cookie-banner::before,
.cookie-banner::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.cookie-banner::before {
  inset: 10px;
  border: 1px solid rgba(140, 28, 28, 0.22);
  background:
    linear-gradient(90deg, rgba(194, 168, 107, 0.42) 0 22px, transparent 22px) top left / 54px 1px no-repeat,
    linear-gradient(180deg, rgba(194, 168, 107, 0.42) 0 22px, transparent 22px) top left / 1px 54px no-repeat,
    linear-gradient(270deg, rgba(127, 167, 163, 0.24) 0 18px, transparent 18px) bottom right / 46px 1px no-repeat,
    linear-gradient(0deg, rgba(127, 167, 163, 0.24) 0 18px, transparent 18px) bottom right / 1px 46px no-repeat;
}

.cookie-banner::after {
  top: -64px;
  left: -42px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(194, 168, 107, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(194, 168, 107, 0.08), transparent 54%),
    conic-gradient(from 12deg, transparent 0 13%, rgba(194, 168, 107, 0.22) 13% 14%, transparent 14% 34%, rgba(140, 28, 28, 0.2) 34% 35%, transparent 35% 100%);
  opacity: 0.64;
}

.cookie-banner h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  color: var(--gold);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(20px, 2.5vw, 30px);
  line-height: 1.08;
}

.cookie-banner p:not(.eyebrow) {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0;
  color: rgba(232, 227, 217, 0.76);
  font-size: 14px;
  line-height: 1.55;
}

.cookie-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: center;
  align-items: center;
  justify-content: flex-end;
}

.legal-layout .guide-section p + p {
  margin-top: 12px;
}

.guide-page {
  background:
    radial-gradient(circle at 80% 0%, rgba(140, 28, 28, 0.18), transparent 34%),
    linear-gradient(180deg, #050607 0%, #0b0f0d 34%, #070a08 100%);
}

.guide-hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 150px clamp(18px, 4vw, 32px) 52px;
}

.guide-hero::before {
  content: "";
  position: absolute;
  right: clamp(18px, 8vw, 90px);
  bottom: 42px;
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  border: 1px solid rgba(140, 28, 28, 0.34);
  border-radius: 50%;
  opacity: 0.48;
  background:
    radial-gradient(circle at center, rgba(140, 28, 28, 0.16), transparent 45%),
    conic-gradient(from 18deg, transparent 0 12%, rgba(194, 168, 107, 0.2) 12% 13%, transparent 13% 26%, rgba(127, 167, 163, 0.15) 26% 27%, transparent 27% 100%);
}

.guide-hero h1,
.guide-hero p {
  position: relative;
  max-width: 820px;
}

.guide-hero p:not(.eyebrow) {
  color: rgba(232, 227, 217, 0.78);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.6;
}

.guide-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 32px) 96px;
}

.guide-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: rgba(5, 6, 7, 0.62);
}

.guide-toc a {
  border-radius: 6px;
  padding: 9px 10px;
  color: rgba(232, 227, 217, 0.72);
  font-size: 13px;
}

.guide-toc a:hover {
  background: rgba(140, 28, 28, 0.16);
  color: var(--gold);
}

.guide-content {
  display: grid;
  gap: 16px;
}

.guide-section {
  scroll-margin-top: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 3vw, 30px);
  background:
    linear-gradient(180deg, rgba(31, 58, 46, 0.28), rgba(5, 6, 7, 0.58)),
    rgba(16, 23, 17, 0.82);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.guide-section h2 {
  margin-bottom: 14px;
  color: var(--gold);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(24px, 3vw, 34px);
}

.guide-section h3 {
  margin-bottom: 8px;
  font-family: Cinzel, Georgia, serif;
  font-size: 19px;
}

.guide-section p,
.guide-section li,
.guide-section td {
  color: rgba(232, 227, 217, 0.76);
  font-size: 15px;
  line-height: 1.7;
}

.guide-section ul {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
}

.guide-steps {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding-left: 22px;
}

.guide-steps li {
  color: rgba(232, 227, 217, 0.76);
  font-size: 15px;
  line-height: 1.7;
}

.rule-grid,
.mechanic-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.rule-grid article,
.mechanic-list article {
  border: 1px solid rgba(232, 227, 217, 0.12);
  border-radius: 6px;
  padding: 14px;
  background: rgba(232, 227, 217, 0.035);
}

.rule-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--bone);
  font-family: Cinzel, Georgia, serif;
}

.rule-grid span,
.mechanic-list p {
  color: rgba(232, 227, 217, 0.72);
  font-size: 14px;
  line-height: 1.6;
}

.guide-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.guide-table th,
.guide-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.guide-table th {
  color: var(--gold);
  font-family: Cinzel, Georgia, serif;
  font-size: 13px;
}

#skills>h3 {
  scroll-margin-top: 96px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 42px;
  margin-bottom: 12px;
  padding-top: 26px;
  border-top: 1px solid rgba(194, 168, 107, 0.26);
  color: var(--bone);
}

#skills>h3:first-of-type {
  margin-top: 28px;
  padding-top: 0;
  border-top: 0;
}

#skills>h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(194, 168, 107, 0.38), rgba(194, 168, 107, 0));
}

#skills .guide-table {
  margin-top: 0;
  margin-bottom: 6px;
  background: rgba(5, 6, 7, 0.28);
}

#skills .guide-table th:first-child,
#skills .guide-table td:first-child {
  width: 190px;
  min-width: 160px;
  white-space: nowrap;
}

#skills .guide-table th:nth-child(2),
#skills .guide-table td:nth-child(2) {
  width: 128px;
  min-width: 108px;
  white-space: nowrap;
}

.character-hero .character-auth {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-top: 26px;
  border: 1px solid rgba(232, 227, 217, 0.16);
  border-radius: 8px;
  padding: 16px;
  background: rgba(5, 6, 7, 0.48);
  box-shadow: inset 0 0 34px rgba(5, 6, 7, 0.38);
}

.character-shell {
  display: grid;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 32px) 96px;
}

.character-shell[hidden],
[data-character-signed-in][hidden],
[data-character-signed-out][hidden] {
  display: none;
}

.character-overview-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(5, 6, 7, 0.28), rgba(31, 58, 46, 0.26)),
    rgba(16, 23, 17, 0.82);
}

.character-overview-card h2 {
  margin-bottom: 8px;
}

.character-portrait-frame {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid rgba(232, 227, 217, 0.12);
  border-radius: 8px;
  background: rgba(5, 6, 7, 0.42);
  box-shadow: inset 0 0 44px rgba(5, 6, 7, 0.62);
}

.character-portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.02), rgba(5, 6, 7, 0.48)),
    radial-gradient(circle at 50% 18%, transparent 0 34%, rgba(5, 6, 7, 0.48) 78%);
}

.character-portrait-frame img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.72) contrast(1.14) brightness(0.86);
}

[data-character-class="druid"] .character-overview-card {
  border-color: rgba(194, 168, 107, 0.26);
}

[data-character-class="pathfinder"] .character-overview-card {
  border-color: rgba(127, 167, 163, 0.24);
}

[data-character-class="champion"] .character-overview-card {
  border-color: rgba(140, 28, 28, 0.28);
}

.character-level-ring {
  display: grid;
  place-items: center;
  width: 154px;
  aspect-ratio: 1;
  border: 1px solid rgba(194, 168, 107, 0.44);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(194, 168, 107, 0.12), transparent 62%),
    rgba(5, 6, 7, 0.42);
  box-shadow: inset 0 0 32px rgba(5, 6, 7, 0.58), 0 0 38px rgba(194, 168, 107, 0.08);
}

.character-level-ring strong {
  color: var(--gold);
  font-family: Cinzel, Georgia, serif;
  font-size: 46px;
  line-height: 1;
}

.character-level-ring span,
.character-level-ring small {
  color: rgba(232, 227, 217, 0.68);
  font-size: 13px;
}

.character-two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
}

.stat-grid,
.resource-grid,
.equipment-grid,
.skills-grid,
.progression-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

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

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

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

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

.stat-card,
.resource-card,
.equipment-card,
.skill-card,
.progression-list article {
  border: 1px solid rgba(232, 227, 217, 0.12);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(232, 227, 217, 0.045), rgba(5, 6, 7, 0.22)),
    rgba(5, 6, 7, 0.22);
}

.stat-card span,
.resource-card span,
.equipment-card span,
.skill-card span,
.progression-list span {
  display: block;
  color: rgba(194, 168, 107, 0.82);
  font-family: Cinzel, Georgia, serif;
  font-size: 12px;
  font-weight: 800;
}

.stat-card strong,
.resource-card strong,
.equipment-card strong,
.skill-card strong,
.progression-list strong {
  display: block;
  margin-top: 6px;
  color: var(--bone);
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(18px, 2.2vw, 24px);
  overflow-wrap: anywhere;
}

.equipment-card small,
.skill-card p,
.progression-list p {
  display: block;
  margin: 8px 0 0;
  color: rgba(232, 227, 217, 0.68);
  font-size: 14px;
  line-height: 1.5;
}

.skill-card[data-locked="true"] {
  opacity: 0.62;
  border-color: rgba(232, 227, 217, 0.08);
}

.character-table-wrap {
  overflow-x: auto;
}

.character-table td strong {
  display: block;
  color: var(--bone);
}

.character-table td small {
  display: block;
  max-width: 520px;
  margin-top: 4px;
  color: rgba(232, 227, 217, 0.56);
  font-size: 13px;
  line-height: 1.45;
}

body.omen .hero-media,
body.omen .feature-image,
body.omen .village-media,
body.omen .join-media {
  filter: saturate(0.36) contrast(1.16) brightness(0.52);
}

body.omen .hero-vignette {
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.42) 0%, rgba(5, 6, 7, 0.24) 38%, rgba(11, 15, 13, 0.96) 100%),
    radial-gradient(circle at 18% 48%, rgba(140, 28, 28, 0.38), transparent 34%),
    radial-gradient(circle at 82% 42%, rgba(127, 167, 163, 0.38), transparent 24%);
}

body.omen .brand-mark {
  border-color: var(--cyan);
  box-shadow: 0 0 30px rgba(127, 167, 163, 0.28);
}

body.omen h1::after {
  content: " ᚛";
  color: var(--cyan);
}

body.event-page.is-haunted .hero-media {
  animation: haunted-image 28s ease-in-out infinite, banner-visibility-cycle 7.2s linear 1, banner-digital-snap 7.2s steps(2, end) 1;
}

body.event-page.is-haunted .hero-media::before {
  animation: invader-banner-cycle 7.2s linear 1;
}

body.event-page.is-haunted .hero-media::after {
  animation: intruder-focus-mask 7.2s linear 1;
}

body.event-page.is-haunted .hero-vignette::before {
  animation: banner-corruption-shadow 7.2s linear 1;
}

body.event-page.is-haunted h1 {
  animation: title-digital-cycle 7.2s ease-out 1;
}

body.event-page.is-haunted .hero-fragments span {
  animation: fragment-disassemble 3.25s cubic-bezier(0.14, 0.66, 0.21, 1) var(--delay, 0ms) 1;
}

body.event-page.is-haunted .brand-mark,
body.event-page.is-haunted .hero-sigil {
  border-color: var(--blood);
  filter: drop-shadow(0 0 26px rgba(140, 28, 28, 0.58));
}

body.event-page.is-haunted .top-audio {
  border-color: rgba(140, 28, 28, 0.72);
  box-shadow: 0 0 28px rgba(140, 28, 28, 0.18), inset 0 0 24px rgba(5, 6, 7, 0.48);
}

@keyframes dread-grain {
  0% {
    transform: translate3d(-1%, -1%, 0);
  }

  25% {
    transform: translate3d(1%, 0.5%, 0);
  }

  50% {
    transform: translate3d(-0.5%, 1%, 0);
  }

  75% {
    transform: translate3d(0.5%, -0.5%, 0);
  }

  100% {
    transform: translate3d(1%, 1%, 0);
  }
}

@keyframes forest-breath {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.12;
  }

  45% {
    transform: translate3d(8vw, -3vh, 0) scale(1.18);
    opacity: 0.24;
  }

  70% {
    transform: translate3d(-4vw, 5vh, 0) scale(0.94);
    opacity: 0.16;
  }
}

@keyframes moon-watch {

  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.12;
  }

  50% {
    transform: translate3d(-1.2vw, 1vh, 0) scale(1.05);
    opacity: 0.22;
  }
}

@keyframes haunted-image {

  0%,
  100% {
    transform: scale(1.03) translate3d(0, 0, 0);
  }

  42% {
    transform: scale(1.065) translate3d(-0.7%, 0.4%, 0);
  }

  70% {
    transform: scale(1.045) translate3d(0.5%, -0.3%, 0);
  }
}

@keyframes omen-light {

  0%,
  100% {
    opacity: 0.94;
  }

  28% {
    opacity: 0.84;
  }

  58% {
    opacity: 1;
  }

  82% {
    opacity: 0.9;
  }
}

@keyframes banner-visibility-cycle {
  0% {
    filter: saturate(0.56) contrast(1.16) brightness(0.68);
  }

  22% {
    filter: saturate(0.5) contrast(1.22) brightness(0.58);
  }

  52% {
    filter: saturate(0.2) contrast(1.54) brightness(0.2) hue-rotate(-8deg);
  }

  58%,
  62% {
    filter: saturate(0.14) contrast(1.62) brightness(0.13);
  }

  68% {
    filter: saturate(0.18) contrast(1.56) brightness(0.18);
  }

  76% {
    filter: saturate(0.24) contrast(1.48) brightness(0.26);
  }

  84% {
    filter: saturate(0.4) contrast(1.28) brightness(0.48);
  }

  88% {
    filter: saturate(0.48) contrast(1.22) brightness(0.58);
  }

  100% {
    filter: saturate(0.56) contrast(1.16) brightness(0.68);
  }
}

@keyframes invader-banner-cycle {

  0%,
  22% {
    opacity: 0;
  }

  38% {
    opacity: 0.32;
  }

  52% {
    opacity: 0.9;
  }

  58%,
  60% {
    opacity: 1;
  }

  64% {
    opacity: 0.32;
  }

  68% {
    opacity: 0.04;
  }

  100% {
    opacity: 0;
  }
}

@keyframes intruder-focus-mask {

  0%,
  28% {
    opacity: 0;
  }

  46% {
    opacity: 0.42;
  }

  58%,
  60% {
    opacity: 0.78;
  }

  64% {
    opacity: 0.24;
  }

  68% {
    opacity: 0.02;
  }

  100% {
    opacity: 0;
  }
}

@keyframes banner-corruption-shadow {
  0% {
    opacity: 0;
  }

  22% {
    opacity: 0.2;
  }

  52% {
    opacity: 0.4;
  }

  58%,
  64% {
    opacity: 0.52;
  }

  74% {
    opacity: 0.36;
  }

  86% {
    opacity: 0.14;
  }

  100% {
    opacity: 0;
  }
}

@keyframes banner-digital-snap {

  0%,
  47%,
  57%,
  64%,
  100% {
    clip-path: inset(0 0 0 0);
  }

  50% {
    clip-path: inset(0 0 62% 0);
  }

  53% {
    clip-path: inset(18% 0 28% 0);
  }

  56% {
    clip-path: inset(72% 0 0 0);
  }
}

@keyframes fragment-disassemble {

  0%,
  12% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.62);
    filter: blur(0);
  }

  22% {
    opacity: 0.18;
    transform: translate3d(0, 0, 0) scale(1);
  }

  54% {
    opacity: 0.34;
    transform: translate3d(var(--dx, 80px), var(--dy, -80px), 0) scale(0.74);
    filter: blur(0.4px);
  }

  84%,
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--dx, 80px) * 1.28), calc(var(--dy, -80px) * 1.28), 0) scale(0.18);
    filter: blur(2px);
  }
}

@keyframes ground-mist {
  from {
    transform: translate3d(-4%, 0, 0) scale(1);
  }

  to {
    transform: translate3d(5%, -3%, 0) scale(1.08);
  }
}

@keyframes sigil-turn {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sigil-fade {

  0%,
  100% {
    opacity: 0.12;
  }

  48% {
    opacity: 0.3;
  }

  52% {
    opacity: 0.2;
  }
}

@keyframes sigil-pulse {

  0%,
  100% {
    box-shadow: 0 0 24px rgba(194, 168, 107, 0.18);
  }

  50% {
    box-shadow: 0 0 28px rgba(194, 168, 107, 0.34), 0 0 60px rgba(140, 28, 28, 0.12);
  }
}

@keyframes title-dread {

  0%,
  92%,
  100% {
    text-shadow: 0 18px 52px rgba(0, 0, 0, 0.78), 0 0 22px rgba(140, 28, 28, 0.24);
  }

  94% {
    text-shadow: 2px 0 0 rgba(127, 167, 163, 0.22), -2px 0 0 rgba(140, 28, 28, 0.36), 0 18px 52px rgba(0, 0, 0, 0.78);
  }
}

@keyframes title-digital-cycle {

  0%,
  47% {
    color: var(--bone);
    transform: translate3d(0, 0, 0);
    text-shadow: 0 18px 52px rgba(0, 0, 0, 0.78), 0 0 22px rgba(140, 28, 28, 0.24);
    opacity: 1;
  }

  50% {
    color: #eaf5f1;
    transform: translate3d(0, 0, 0);
    text-shadow: -5px 0 0 rgba(127, 167, 163, 0.5), 4px 0 0 rgba(140, 28, 28, 0.45), 0 0 34px rgba(127, 167, 163, 0.18);
    opacity: 0.78;
  }

  53% {
    color: transparent;
    text-shadow: 0 -12px 0 rgba(232, 227, 217, 0.88), 0 12px 0 rgba(127, 167, 163, 0.38), 0 0 30px rgba(127, 167, 163, 0.24);
    opacity: 0.64;
  }

  56% {
    color: var(--bone);
    text-shadow: 7px 0 0 rgba(127, 167, 163, 0.34), -4px 0 0 rgba(140, 28, 28, 0.4), 0 18px 52px rgba(0, 0, 0, 0.9);
    opacity: 0.92;
  }

  64% {
    text-shadow: 0 0 42px rgba(127, 167, 163, 0.34), 0 18px 52px rgba(0, 0, 0, 0.86);
  }

  74% {
    transform: translate3d(0, 0, 0);
    text-shadow: 0 0 28px rgba(127, 167, 163, 0.18), 0 18px 52px rgba(0, 0, 0, 0.84);
  }

  100% {
    color: var(--bone);
    transform: translate3d(0, 0, 0);
    opacity: 1;
    text-shadow: 0 18px 52px rgba(0, 0, 0, 0.78), 0 0 22px rgba(140, 28, 28, 0.24);
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .event-page.is-animated .section {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .top-audio {
    max-width: min(390px, 48vw);
  }

  .feature-band,
  .path-grid,
  .omen-grid,
  .intro-grid,
  .village,
  .join,
  .cookie-banner,
  .guide-layout,
  .character-overview-card,
  .character-two-column,
  .rule-grid,
  .mechanic-list {
    grid-template-columns: 1fr;
  }

  .stat-grid,
  .resource-grid,
  .equipment-grid,
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .character-level-ring {
    justify-self: start;
  }

  .guide-toc {
    position: static;
  }

  .cookie-actions {
    justify-content: flex-start;
  }

  .join-media {
    order: 1;
  }

  .join-content {
    order: 2;
  }

  .village-media,
  .join-media {
    min-height: 360px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-content {
    max-width: 760px;
  }

  .hero-audio-call {
    right: 24px;
    bottom: 58px;
    max-width: min(360px, 62vw);
  }

  .track-select select {
    width: clamp(130px, 20vw, 180px);
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 64px;
    padding: 10px 14px;
  }

  .brand small,
  .site-header .ghost-button {
    display: none;
  }

  .brand strong {
    font-size: 12px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .header-actions {
    gap: 6px;
  }

  .top-audio {
    max-width: calc(100vw - 174px);
    min-height: 36px;
    padding: 3px;
  }

  .track-select {
    min-height: 32px;
    padding: 0 6px;
  }

  .track-select input[type="range"] {
    display: none;
  }

  .track-select select {
    width: min(112px, 32vw);
    font-size: 12px;
  }

  .sound-button {
    min-height: 32px;
    padding: 0 9px;
    font-size: 12px;
  }

  .site-header .solid-button {
    min-height: 32px;
    padding: 0 9px;
    line-height: 32px;
  }

  .hero {
    min-height: 90vh;
    padding: 96px 18px 96px;
  }

  .hero-audio-call {
    right: 18px;
    bottom: 34px;
    max-width: 74vw;
    font-size: 18px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .building-list {
    grid-template-columns: 1fr;
  }

  .building-list {
    display: grid;
  }

  .class-choice-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid,
  .resource-grid,
  .equipment-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .feature-image {
    height: 190px;
  }

  #skills>h3 {
    margin-top: 34px;
    padding-top: 22px;
  }

  #skills .guide-table {
    display: block;
    overflow-x: auto;
  }

  #skills .guide-table th:first-child,
  #skills .guide-table td:first-child {
    min-width: 138px;
  }

  #skills .guide-table th:nth-child(2),
  #skills .guide-table td:nth-child(2) {
    min-width: 92px;
  }
}
