﻿:root {
  --bg: #050709;
  --bg-soft: #0c1013;
  --panel: rgba(14, 17, 18, .88);
  --panel-warm: rgba(31, 18, 12, .78);
  --line: rgba(174, 104, 47, .42);
  --line-soft: rgba(174, 104, 47, .22);
  --gold: #f1c777;
  --gold-dim: #b89155;
  --text: #fff4d8;
  --muted: #bcae90;
  --orange: #df7629;
  --orange-hot: #ff9b38;
  --green: #71d28a;
  --danger: #d46b4f;
  --violet: #b884ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, .55);
  --max: 1440px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 70% 10%, rgba(183, 91, 31, .12), transparent 28rem),
    radial-gradient(circle at 20% 0%, rgba(124, 92, 57, .10), transparent 22rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  min-width: 320px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-noise,
.embers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.site-noise {
  opacity: .09;
  mix-blend-mode: screen;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 3px 3px, 4px 4px;
}

.embers {
  opacity: .45;
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 111, 32, .9) 0 1px, transparent 2px),
    radial-gradient(circle at 24% 62%, rgba(255, 142, 52, .8) 0 1px, transparent 2px),
    radial-gradient(circle at 44% 34%, rgba(255, 112, 40, .7) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 26%, rgba(255, 143, 58, .7) 0 1px, transparent 2px),
    radial-gradient(circle at 91% 70%, rgba(255, 110, 35, .7) 0 1px, transparent 2px);
  animation: drift 12s linear infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-18px, -36px, 0); }
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 13px max(20px, calc((100vw - var(--max)) / 2));
  background: linear-gradient(180deg, rgba(8, 9, 10, .96), rgba(8, 9, 10, .86));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
  backdrop-filter: blur(16px);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: .75;
}

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

.brand__sigil {
  width: 54px;
  height: 54px;
  display: block;
  flex: 0 0 auto;
}

.brand__sigil img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__name {
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-weight: 700;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
}

.brand__name em {
  color: var(--gold-dim);
  font-style: normal;
}

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

.main-nav a {
  padding: 10px 14px;
  color: var(--muted);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--orange-hot);
  background: linear-gradient(180deg, rgba(220, 107, 36, .12), rgba(220, 107, 36, .03));
  border-color: var(--line-soft);
}

.topbar__actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 11px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font-weight: 800;
  color: var(--text);
  background: rgba(5, 6, 7, .7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 26px rgba(0,0,0,.25);
  transition: transform .16s ease, border-color .16s ease, filter .16s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 158, 64, .78);
  filter: brightness(1.08);
}

.btn--primary {
  color: #130805;
  border-color: rgba(255, 178, 84, .78);
  background:
    linear-gradient(180deg, rgba(255, 178, 78, .35), transparent 35%),
    linear-gradient(180deg, #ef8a35, #c55e23);
  text-shadow: 0 1px 0 rgba(255,255,255,.24);
}

.btn--ghost { color: var(--text); }
.btn--small { min-height: 40px; padding-inline: 16px; }
.btn--huge { min-height: 58px; padding: 16px 26px; font-size: 1rem; }
.btn--outline { color: var(--gold); background: rgba(5,6,7,.48); }
.btn--wide { width: 100%; }
.btn__icon { font-size: 1.2em; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 800px;
  display: grid;
  align-items: center;
  padding: 86px 0 80px;
  border-bottom: 1px solid var(--line-soft);
}

.hero__bg,
.hero__vignette {
  position: absolute;
  inset: 0;
}

.hero__bg {
  background-image: url("/images/home/background-bastion.png");
  background-size: cover;
  background-position: center right;
  filter: saturate(.95) contrast(1.08);
  transform: scale(1.02);
}

.hero__vignette {
  background:
    linear-gradient(90deg, rgba(5,7,9,.90), rgba(5,7,9,.55) 35%, rgba(5,7,9,.35) 62%, rgba(5,7,9,.78)),
    linear-gradient(0deg, rgba(5,7,9,.96), transparent 36%, rgba(5,7,9,.38));
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 64px;
  align-items: start;
}

.hero-beta {
  width: min(560px, calc(100vw - 40px));
  margin-bottom: 42px;
  padding: 14px 16px 15px;
  color: #fff5d5;
  background:
    linear-gradient(90deg, rgba(229, 107, 31, .36), rgba(14, 7, 5, .72) 64%, rgba(14, 7, 5, .18)),
    rgba(16, 10, 7, .78);
  border: 1px solid rgba(255, 139, 46, .78);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .55),
    0 18px 50px rgba(0, 0, 0, .45),
    0 0 34px rgba(255, 111, 32, .18);
  backdrop-filter: blur(8px);
}

.hero-beta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: #ffb65d;
  padding: 0;
  font-size: .92rem;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-beta span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ff8a2b;
  box-shadow: 0 0 18px rgba(255, 123, 37, .72);
}

.hero-beta p {
  max-width: 46rem;
  margin: 0;
  color: #ead8b4;
  font-size: .95rem;
}

.hero__copy { max-width: 720px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--orange-hot);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(4.2rem, 9vw, 8.4rem);
  line-height: .78;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #f5ecd4;
  text-shadow:
    0 3px 0 rgba(48, 25, 13, .9),
    0 10px 40px rgba(0,0,0,.75),
    0 0 50px rgba(255, 127, 40, .10);
}

.hero-title span {
  display: inline-block;
  color: #d8c2a0;
  background: linear-gradient(180deg, #fff7e1 0%, #b99765 48%, #6c3a22 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: #f0dfbd;
  font-size: clamp(1.05rem, 1.55vw, 1.25rem);
  text-shadow: 0 2px 16px rgba(0,0,0,.85);
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.trust-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--muted);
  font-size: .9rem;
}

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

.trust-row span::before {
  content: "◇";
  color: var(--orange-hot);
  font-size: .75rem;
}

.world-card,
.panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(26, 28, 28, .92), rgba(10, 12, 13, .95)),
    radial-gradient(circle at 50% 0%, rgba(222, 106, 35, .13), transparent 20rem);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.04);
}

.world-card {
  padding: 28px;
  background-color: rgba(12, 12, 12, .86);
}

.world-card__header,
.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.world-card__header p,
.world-card__subtitle {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .75rem;
  font-weight: 800;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-dot::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 20px currentColor;
}

.world-card h2,
.panel h2,
.section-heading h2,
.final-cta h2 {
  margin: 0;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  letter-spacing: .01em;
}

.world-card h2 {
  margin-top: 8px;
  font-size: 2rem;
  color: #fff3cf;
}

.world-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.world-stats div {
  min-width: 0;
  padding: 12px;
  background: rgba(5, 6, 7, .42);
  border: 1px solid var(--line-soft);
}

.world-stats span,
.resource-kicker {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.world-stats strong {
  display: block;
  margin-top: 4px;
  color: #fff1cf;
  font-size: 1.25rem;
  line-height: 1.1;
}

.resource-kicker {
  margin: 22px 0 -10px;
}

.resource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0;
}

.resource {
  padding: 14px;
  min-height: 92px;
  background: rgba(28, 16, 11, .72);
  border: 1px solid var(--line-soft);
}

.resource__icon {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .55));
}
.resource b {
  display: block;
  margin-top: 6px;
  font-size: 1.45rem;
  line-height: 1.1;
}
.resource small { display: block; color: var(--muted); }

.activity-mini {
  margin: 20px 0 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.activity-mini h3 {
  margin: 0 0 8px;
  color: var(--gold-dim);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}

.activity-mini ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.activity-mini li { display: flex; justify-content: space-between; gap: 14px; color: #e7d4af; font-size: .9rem; }
.activity-mini time { color: var(--muted); white-space: nowrap; }

.feature-band,
.split-section,
.screenshots,
.final-cta { padding: 76px 0 0; }

.section-heading {
  max-width: 780px;
  margin-bottom: 24px;
}

.section-heading--row,
.panel__header {
  max-width: none;
  margin-bottom: 22px;
}

.section-heading--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2,
.final-cta h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.05;
  color: #fff1d1;
}

.feature-band .section-heading h2,
.screenshots .section-heading h2 {
  font-size: clamp(1.75rem, 2.35vw, 2.55rem);
  line-height: 1.12;
}

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

.feature-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 330px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  background: #07090a;
  border: 1px solid var(--line-soft);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), 0 16px 50px rgba(0,0,0,.28);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--feature-image);
  background-size: cover;
  background-position: var(--feature-position, center);
  opacity: .78;
  filter: saturate(.88) contrast(1.08);
  transform: scale(1.04);
  transition: opacity .18s ease, transform .18s ease, filter .18s ease;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 7, 9, .04), rgba(5, 7, 9, .48) 42%, rgba(5, 7, 9, .95)),
    linear-gradient(90deg, rgba(5, 7, 9, .86), rgba(5, 7, 9, .12) 54%, rgba(5, 7, 9, .68)),
    radial-gradient(circle at 78% 22%, var(--feature-accent, rgba(255, 142, 51, .28)), transparent 11rem);
}

.feature-card:hover {
  border-color: rgba(255, 156, 62, .66);
}

.feature-card:hover::before {
  opacity: .88;
  filter: saturate(.92) contrast(1.12);
  transform: scale(1.08);
}

.feature-card--produce {
  --feature-image: url("/images/home/features/production.png");
  --feature-position: 44% 52%;
  --feature-accent: rgba(235, 135, 53, .30);
}

.feature-card--build {
  --feature-image: url("/images/home/features/construction.png");
  --feature-position: 50% 48%;
  --feature-accent: rgba(241, 199, 119, .24);
}

.feature-card--spy {
  --feature-image: url("/images/home/features/espionnage.png");
  --feature-position: 30% 55%;
  --feature-accent: rgba(170, 120, 255, .24);
}

.feature-card--raid {
  --feature-image: url("/images/home/features/alliance-pillage.png");
  --feature-position: 52% 50%;
  --feature-accent: rgba(224, 83, 53, .24);
}

.feature-card h3 {
  position: relative;
  margin: 0 0 8px;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  color: #fff2d1;
  font-size: 1.55rem;
  text-transform: uppercase;
}

.feature-card p {
  position: relative;
  margin: 0 0 18px;
  color: var(--muted);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .85);
}

.feature-card a {
  position: relative;
  color: var(--orange-hot);
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, .7fr);
  gap: 18px;
}

.panel { padding: 28px; }
.panel h2 { font-size: 1.8rem; color: #fff1d0; }

.event-list,
.ranking-list { list-style: none; margin: 0; padding: 0; }
.event-list { display: grid; gap: 0; }
.event-list li {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}

.event-list__icon { color: var(--orange-hot); font-size: 1.2rem; }
.event-list b { display: block; color: var(--text); }
.event-list small { color: var(--muted); }
.event-list em {
  color: var(--gold);
  font-style: normal;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(31,18,12,.65);
}
.event-list time { color: var(--muted); }

.ranking-list { display: grid; gap: 8px; }
.ranking-list li {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 12px;
  background: rgba(5,6,7,.38);
  border: 1px solid rgba(255,255,255,.04);
}
.ranking-list b { color: var(--orange-hot); }
.ranking-list small { color: var(--muted); }
.ranking-list strong { color: var(--gold); }

.screenshot-carousel {
  position: relative;
  padding-bottom: 28px;
}

.screenshot-carousel::before,
.screenshot-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 28px;
  z-index: 2;
  width: 72px;
  pointer-events: none;
}

.screenshot-carousel::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.screenshot-carousel::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.screenshot-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding: 0 52px;
  scroll-behavior: smooth;
  scroll-padding-inline: 52px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.screenshot-rail::-webkit-scrollbar {
  display: none;
}

.shot-card {
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--line-soft);
  background: rgba(10, 12, 13, .9);
  box-shadow: 0 18px 60px rgba(0,0,0,.32);
}

.shot-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  opacity: .82;
  transition: opacity .16s ease, transform .16s ease;
}

.shot-card:hover img { opacity: 1; transform: scale(1.025); }
.shot-card figcaption {
  padding: 13px 16px 16px;
  color: var(--gold);
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-weight: 700;
}

.carousel-control {
  position: absolute;
  top: calc(50% - 26px);
  z-index: 3;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background:
    linear-gradient(180deg, rgba(36, 20, 12, .96), rgba(7, 8, 9, .94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .42);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, opacity .16s ease;
}

.carousel-control:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 158, 64, .78);
  color: var(--orange-hot);
}

.carousel-control:disabled {
  opacity: .35;
  cursor: default;
  transform: none;
}

.carousel-control--prev { left: 0; }
.carousel-control--next { right: 0; }

.carousel-dots {
  position: absolute;
  left: 52px;
  right: 52px;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 4;
}

.carousel-dots button {
  width: 28px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(241, 199, 119, .28);
  cursor: pointer;
  transition: background .16s ease, width .16s ease;
}

.carousel-dots button.is-active {
  width: 42px;
  background: var(--orange-hot);
  box-shadow: 0 0 16px rgba(255, 123, 37, .32);
}

.final-cta {
  margin-top: 60px;
  padding: 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  background:
    linear-gradient(90deg, rgba(223,118,41,.12), rgba(9,11,12,.92)),
    rgba(12, 13, 13, .92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.final-cta__sigil {
  width: 126px;
  height: 126px;
  display: block;
}

.final-cta__sigil img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-footer {
  margin-top: 76px;
  padding: 24px 0;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  background: rgba(5, 6, 7, .9);
}

.site-footer__inner {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav,
.language-switch { display: flex; gap: 14px; align-items: center; }
.language-switch form { margin: 0; }
.language-switch button {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
}
.language-switch button.is-active { color: var(--orange-hot); border-color: var(--line); background: rgba(223,118,41,.10); }

.public-page {
  padding: 82px 0 64px;
  background:
    radial-gradient(circle at 20% 10%, rgba(200, 111, 45, .12), transparent 34%),
    linear-gradient(180deg, rgba(9, 11, 13, .94), rgba(5, 7, 9, .98));
}

.public-page + .site-footer {
  margin-top: 0;
}

.public-ranking .section-heading p:not(.eyebrow) {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
}

.ranking-table {
  margin-top: 28px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(12, 14, 15, .9);
  box-shadow: var(--shadow);
}

.ranking-table table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

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

.ranking-table th {
  color: var(--gold);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: rgba(31, 18, 12, .7);
}

.ranking-table td {
  color: var(--text);
}

.ranking-table tbody tr:hover {
  background: rgba(255, 111, 28, .05);
}

.ranking-table td:nth-child(1),
.ranking-table td:nth-child(n+4),
.ranking-table th:nth-child(1),
.ranking-table th:nth-child(n+4) {
  text-align: right;
}

.ranking-table strong {
  color: var(--orange-hot);
}

.tone-good { color: #9fceb0 !important; }
.tone-warn { color: #e0a36d !important; }
.tone-hot { color: #d98b45 !important; }

.public-pagination {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 22px;
  flex-wrap: wrap;
}

.public-pagination a,
.public-pagination span,
.public-pagination strong {
  padding: 10px 13px;
  color: var(--gold);
  background: rgba(31, 18, 12, .62);
  border: 1px solid var(--line);
}

.public-pagination span {
  opacity: .45;
}

.main-nav--public {
  justify-content: center;
}

.public-wiki .section-heading p:not(.eyebrow) {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
}

.wiki-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.wiki-nav a {
  padding: 10px 14px;
  color: var(--gold);
  font-weight: 800;
  border: 1px solid var(--line-soft);
  background: rgba(5, 6, 7, .48);
}

.wiki-nav a:hover,
.wiki-nav a.is-active {
  color: var(--orange-hot);
  border-color: var(--line);
  background: rgba(223, 118, 41, .12);
}

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

.wiki-card,
.wiki-table {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(16, 18, 19, .94), rgba(8, 10, 11, .96)),
    radial-gradient(circle at 70% 0%, rgba(223, 118, 41, .08), transparent 18rem);
  border: 1px solid var(--line-soft);
  box-shadow: 0 18px 52px rgba(0, 0, 0, .34);
}

.wiki-card--link {
  display: block;
  min-height: 170px;
  transition: transform .16s ease, border-color .16s ease;
}

.wiki-card--link:hover {
  transform: translateY(-2px);
  border-color: var(--line);
}

.wiki-card__media {
  aspect-ratio: 16 / 7;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: rgba(5, 6, 7, .5);
}

.wiki-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wiki-card__swatch {
  height: 62px;
  margin-bottom: 16px;
  border: 1px solid var(--line-soft);
}

.wiki-card__subtitle {
  margin: 0 0 8px;
  color: var(--gold-dim);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.wiki-card h2,
.wiki-table h2 {
  margin: 0 0 10px;
  color: #fff1d0;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.wiki-card p {
  color: var(--muted);
  margin: 0 0 14px;
}

.wiki-kv,
.wiki-resources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
}

.wiki-kv div,
.wiki-resources div {
  min-width: 0;
  padding: 10px;
  background: rgba(31, 18, 12, .54);
  border: 1px solid var(--line-soft);
}

.wiki-kv dt,
.wiki-resources dt {
  color: var(--muted);
  font-size: .76rem;
}

.wiki-kv dd,
.wiki-resources dd {
  margin: 2px 0 0;
  color: var(--text);
  font-weight: 900;
}

.wiki-resource-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  float: right;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5));
}

.wiki-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.wiki-block h3 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.wiki-list {
  display: grid;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.wiki-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .045);
}

.wiki-list span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}

.wiki-list strong {
  color: var(--text);
  text-align: right;
}

.wiki-list-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.wiki-table {
  margin-top: 18px;
}

.wiki-table p {
  color: var(--muted);
}

.wiki-table__scroll {
  overflow-x: auto;
}

.wiki-table table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

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

.wiki-table th {
  color: var(--gold);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: rgba(31, 18, 12, .58);
}

.wiki-table td {
  color: var(--text);
  overflow-wrap: anywhere;
}

.wiki-settings {
  margin-top: 18px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(17, 19, 20, .94), rgba(8, 10, 11, .96)),
    radial-gradient(circle at 18% 0%, rgba(223, 118, 41, .09), transparent 20rem);
  border: 1px solid var(--line-soft);
  box-shadow: 0 18px 52px rgba(0, 0, 0, .34);
}

.wiki-settings__header {
  max-width: 850px;
  margin-bottom: 18px;
}

.wiki-settings__header h2 {
  margin: 0;
  color: #fff1d0;
  font-family: Cinzel, Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.wiki-settings__header p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.wiki-setting {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
  padding: 16px;
  background: rgba(7, 9, 10, .72);
  border: 1px solid var(--line-soft);
}

.wiki-setting__key {
  margin: 0 0 6px;
  color: var(--gold-dim);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.wiki-setting h3 {
  margin: 0;
  color: #fff1d0;
  font-size: 1.02rem;
}

.wiki-setting p:not(.wiki-setting__key) {
  margin: 6px 0 0;
  color: var(--muted);
}

.wiki-setting__value {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 9px 12px;
  color: var(--text);
  background: rgba(31, 18, 12, .7);
  border: 1px solid var(--line-soft);
  overflow-wrap: anywhere;
}

.wiki-resources--compact {
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  margin-top: 0;
}

.wiki-pill-list,
.wiki-nested-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wiki-pill-list li,
.wiki-nested-list li {
  padding: 7px 10px;
  color: var(--gold);
  background: rgba(31, 18, 12, .62);
  border: 1px solid var(--line-soft);
}

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

.wiki-nested-list > div {
  padding: 12px;
  background: rgba(31, 18, 12, .42);
  border: 1px solid rgba(174, 104, 47, .18);
}

.wiki-nested-list h4 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: .95rem;
}

@media (max-width: 1100px) {
  .topbar { grid-template-columns: auto auto 1fr; }
  .main-nav {
    display: none;
    position: absolute;
    left: 20px; right: 20px; top: calc(100% + 10px);
    padding: 12px;
    flex-direction: column;
    background: rgba(8, 9, 10, .97);
    border: 1px solid var(--line-soft);
  }
  .main-nav.is-open { display: flex; }
  .main-nav--public {
    display: flex;
    position: static;
    padding: 0;
    flex-direction: row;
    background: transparent;
    border: 0;
  }
  .nav-toggle {
    display: inline-grid;
    grid-template-columns: 20px auto;
    gap: 8px;
    align-items: center;
    justify-self: start;
    color: var(--text);
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .nav-toggle span {
    grid-column: 1;
    display: block;
    width: 20px; height: 2px;
    background: var(--gold);
    margin: 2px 0;
  }
  .nav-toggle b { grid-column: 2; grid-row: 1 / span 3; text-transform: uppercase; font-size: .75rem; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .world-card { max-width: 560px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split-section { grid-template-columns: 1fr; }
  .final-cta { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .topbar {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }
  .main-nav--public { display: none; }
  .nav-toggle { order: 3; }
  .topbar__actions { display: none; }
  .public-page { padding: 48px 0 44px; }
  .ranking-table th,
  .ranking-table td { padding: 12px; }
  .hero { min-height: auto; padding: 68px 0 52px; }
  .hero-beta {
    width: auto;
    margin-bottom: 30px;
  }
  .hero__bg { background-position: 68% center; }
  .hero__vignette { background: linear-gradient(90deg, rgba(5,7,9,.95), rgba(5,7,9,.68)), linear-gradient(0deg, rgba(5,7,9,.98), transparent 50%); }
  .hero-title { font-size: clamp(3.5rem, 17vw, 5.8rem); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .trust-row { display: grid; }
  .resource-grid { grid-template-columns: 1fr; }
  .world-stats { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .section-heading--row { align-items: start; flex-direction: column; }
  .event-list li { grid-template-columns: auto 1fr; }
  .event-list em, .event-list time { grid-column: 2; justify-self: start; }
  .site-footer__inner { flex-direction: column; text-align: center; }
  .wiki-grid { grid-template-columns: 1fr; }
  .wiki-kv,
  .wiki-resources { grid-template-columns: 1fr; }
  .wiki-list li { display: grid; }
  .wiki-list strong { text-align: left; }
  .wiki-settings__grid { grid-template-columns: 1fr; }
  .wiki-resources--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

