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

:root {
  --bg: #0a080b;
  --bg-soft: #151015;
  --panel: #1a141b;
  --panel-soft: #201823;
  --line: rgba(255, 194, 111, 0.24);
  --line-strong: rgba(255, 194, 111, 0.5);
  --gold: #ffc26f;
  --gold-soft: #ffe2b8;
  --red: #d73333;
  --red-soft: #ff6b6b;
  --text: #f6f0e8;
  --muted: #ccb8a2;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 520px at -5% -10%, rgba(215, 51, 51, 0.2), transparent 55%),
    radial-gradient(1000px 460px at 110% -8%, rgba(255, 194, 111, 0.17), transparent 55%),
    linear-gradient(180deg, #0c090e 0%, #0a080b 45%, #09070a 100%);
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.ambient-noise {
  opacity: 0.11;
  background-image: radial-gradient(rgba(255, 216, 159, 0.45) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
}

.ambient-rings::before,
.ambient-rings::after {
  content: '';
  position: absolute;
  width: 34vmax;
  height: 34vmax;
  border-radius: 50%;
  border: 1px solid rgba(255, 194, 111, 0.08);
}

.ambient-rings::before {
  top: -12vmax;
  left: -10vmax;
}

.ambient-rings::after {
  right: -12vmax;
  bottom: -14vmax;
  border-color: rgba(215, 51, 51, 0.12);
}

.wrap {
  width: min(1160px, 94%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 9, 13, 0.94), rgba(11, 9, 13, 0.72));
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: #231307;
  background: linear-gradient(145deg, var(--gold), var(--red-soft));
  box-shadow: 0 0 20px rgba(215, 51, 51, 0.34);
}

.brand-text {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.25rem;
}

.site-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.site-nav-item {
  position: relative;
}

.site-nav-item.has-children::after {
  content: '';
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 14px;
}

.site-nav a {
  color: #f4e7d6;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  font-weight: 800;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.44rem 0.72rem;
  transition: all 0.18s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: var(--line-strong);
  color: var(--gold);
  background: rgba(255, 194, 111, 0.09);
}

.site-nav-item.has-children > a::after {
  content: '▾';
  margin-left: 0.35rem;
  font-size: 0.7rem;
}

.site-nav-item .site-nav-list {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(18, 12, 20, 0.97);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s linear 0.2s;
  z-index: 20;
}

.site-nav-item .site-nav-item > a {
  width: 100%;
  border-radius: 8px;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.site-nav-item:hover > .site-nav-list,
.site-nav-item:focus-within > .site-nav-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0s;
}

.page-main {
  padding: 2rem 0 4rem;
}

.site-hero {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 0.95rem;
  margin-bottom: 1.2rem;
}

.hero-main,
.hero-side article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(34, 20, 25, 0.85), rgba(19, 13, 22, 0.95));
}

.hero-main {
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
}

.hero-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(215, 51, 51, 0.16), rgba(255, 194, 111, 0.07));
  pointer-events: none;
}

.hero-main > * {
  position: relative;
}

.intro-kicker {
  margin: 0 0 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  color: var(--gold);
  font-weight: 800;
}

.hero-main h1 {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.1rem, 4.2vw, 3.3rem);
  letter-spacing: 0.06em;
  line-height: 1;
}

.tagline {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 62ch;
}

.hero-tags {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.48rem;
  flex-wrap: wrap;
}

.hero-tags span {
  border: 1px solid rgba(255, 194, 111, 0.42);
  background: rgba(255, 194, 111, 0.08);
  color: var(--gold-soft);
  border-radius: 999px;
  padding: 0.34rem 0.62rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-side {
  display: grid;
  gap: 0.95rem;
}

.hero-side article {
  padding: 0.88rem 0.92rem;
  background: linear-gradient(165deg, rgba(24, 18, 28, 0.95), rgba(17, 12, 21, 0.95));
}

.hero-side strong {
  display: block;
  margin-bottom: 0.26rem;
  color: var(--gold);
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-side p {
  margin: 0;
  color: #ddccba;
  line-height: 1.45;
}

.content-shell {
  border: 1px solid rgba(255, 194, 111, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(15, 11, 18, 0.84), rgba(13, 10, 16, 0.92));
  padding: 1rem;
}

.content-section {
  display: grid;
  gap: 0.95rem;
  margin-bottom: 1rem;
}

.content-section-title {
  margin: 0;
  grid-column: 1 / -1;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  color: #ffd892;
}

.content-section:last-child {
  margin-bottom: 0;
}

.content-section.layout-one {
  grid-template-columns: 1fr;
}

.content-section.layout-two-equal {
  grid-template-columns: 1fr 1fr;
}

.content-section.layout-two-left {
  grid-template-columns: 0.25fr 0.75fr;
}

.content-section.layout-two-right {
  grid-template-columns: 0.75fr 0.25fr;
}

.content-section.layout-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.content-column > .block:last-child,
.content-column > .block-divider:last-child {
  margin-bottom: 0;
}

.block {
  border: 1px solid rgba(255, 194, 111, 0.2);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(27, 19, 30, 0.9), rgba(17, 12, 21, 0.94));
  padding: 1.18rem 1.2rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.block:last-child {
  margin-bottom: 0;
}

.block h1,
.block h2 {
  margin: 0 0 0.72rem;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.045em;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1;
}

.block p {
  margin: 0;
  color: #efe4d7;
  line-height: 1.68;
  max-width: 68ch;
  font-size: 1.02rem;
}

.block-text,
.block-hero,
.block-image,
.block-html {
  position: relative;
  overflow: hidden;
}

.block-text::before,
.block-hero::before,
.block-image::before,
.block-html::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 194, 111, 0.85), rgba(255, 194, 111, 0));
  pointer-events: none;
}

.content-section.layout-three .block {
  min-height: 0;
}

.content-section.layout-three .block p {
  font-size: 0.96rem;
  line-height: 1.62;
}

.block-hero {
  border-color: rgba(215, 51, 51, 0.43);
  background:
    linear-gradient(115deg, rgba(215, 51, 51, 0.26), rgba(255, 194, 111, 0.08)),
    linear-gradient(180deg, rgba(27, 19, 30, 0.94), rgba(17, 12, 21, 0.96));
}

.block-quote {
  border-left: 3px solid var(--gold);
}

.block-quote blockquote {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.65;
}

.block-quote cite {
  display: inline-block;
  margin-top: 0.62rem;
  color: var(--gold);
  font-style: normal;
  font-weight: 700;
}

.block.block-button {
  border: 0;
  background: transparent;
  padding: 0;
  margin-bottom: 0.35rem;
}

.block-button .cta {
  min-width: 170px;
}

.block-html .anchor-target {
  display: block;
  height: 0;
  margin: 0;
  padding: 0;
}

.block.block-html:has(.anchor-target:only-child) {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
}

.sf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.sf-actions .cta {
  min-width: 170px;
}

.sf-games {
  display: grid;
  gap: 0.7rem;
}

.sf-games-title {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.06em;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.sf-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sf-pill {
  border: 1px solid rgba(255, 194, 111, 0.42);
  background: rgba(255, 194, 111, 0.08);
  color: var(--gold-soft);
  border-radius: 999px;
  padding: 0.34rem 0.68rem;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 800;
}

.sf-rules {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.28rem;
  color: #efe4d7;
  line-height: 1.5;
}

.sf-rules li::marker {
  color: var(--gold);
}

.block-server-tracker {
  display: grid;
  gap: 0.55rem;
}

.block.block-server-tracker {
  border: 0;
  background: transparent;
  padding: 0;
}

.block-server-tracker h2 {
  margin-bottom: 0.2rem;
}

.tracker-card {
  border: 1px solid rgba(255, 194, 111, 0.24);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(18, 21, 24, 0.9), rgba(13, 16, 18, 0.98));
  color: #e8f0e2;
  padding: 0.5rem 0.62rem;
  display: grid;
  gap: 0.35rem;
  position: relative;
  overflow: hidden;
}

.tracker-card.has-cover > * {
  position: relative;
  z-index: 1;
}

.tracker-layout-compact .tracker-head,
.tracker-layout-compact .tracker-stats,
.tracker-layout-compact .tracker-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.tracker-layout-compact .tracker-head strong {
  font-size: 0.9rem;
  color: #f0f6f4;
}

.tracker-layout-compact .tracker-stats,
.tracker-layout-compact .tracker-foot {
  font-size: 0.78rem;
  color: #c8d8c7;
}

.tracker-layout-compact .tracker-stats strong {
  color: #fff;
}

.tracker-pill {
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tracker-pill.is-loading {
  background: rgba(255,255,255,0.12);
  color: #f4ead8;
}

.tracker-pill.is-online {
  background: rgba(34, 197, 94, 0.2);
  color: #9ef7bd;
}

.tracker-pill.is-offline {
  background: rgba(239, 68, 68, 0.2);
  color: #ffb4b4;
}

.block-server-tracker.tracker-style-560x95 .tracker-card {
  width: min(560px, 100%);
  aspect-ratio: 560 / 220;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

.block-server-tracker.tracker-style-560x95 .tracker-card.has-cover {
  background-color: transparent;
}

.block-server-tracker.tracker-style-560x95 {
  border: 0;
  background: transparent;
  padding: 0;
}

.tracker-layout-560 .tracker-overlay {
  position: absolute;
  left: 30.4%;
  right: 6.6%;
  top: 19.8%;
  bottom: 15.8%;
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  grid-template-rows: 1.08fr 1fr 1.06fr;
  gap: 0.2rem 0.28rem;
}

.tracker-layout-560 .tracker-logo {
  position: absolute;
  left: calc(3.4% + 10px);
  top: 50%;
  transform: translateY(-50%);
  height: 69%;
  width: auto;
  max-width: 21.5%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.65));
  pointer-events: none;
}

.tracker-layout-560 .tracker-side {
  position: absolute;
  left: calc(3.2% + 10px);
  width: 21.8%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;
  padding: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.tracker-layout-560 .tracker-side-status {
  top: 12.0%;
}

.tracker-layout-560 .tracker-side-players {
  bottom: 13.0%;
}

.tracker-layout-560 .tracker-slot {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.04rem;
  font-size: 0.88rem;
  color: #f5f2ea;
  border: 1px solid rgba(255, 158, 0, 0.72);
  border-radius: 9px;
  background: rgba(6, 10, 16, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 158, 0, 0.12);
  padding: 0.12rem 0.34rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.tracker-layout-560 .tracker-slot-value {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  color: #eef6ff;
  font-weight: 800;
  line-height: 1.05;
}

.tracker-layout-560 .tracker-slot-label {
  display: inline-block;
  font-size: 0.51rem;
  line-height: 1.06;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  color: #ffaf2e;
  font-weight: 800;
}

.tracker-layout-560 .tracker-slot-name {
  grid-column: 1 / -1;
  grid-row: 1;
  min-height: 0;
}

.tracker-layout-560 .tracker-slot-name .tracker-slot-value {
  font-size: 0.9rem;
}

.tracker-layout-560 .tracker-slot-ip {
  grid-column: 1 / span 6;
  grid-row: 2;
}

.tracker-layout-560 .tracker-slot-port {
  grid-column: 7 / span 4;
  grid-row: 2;
}

.tracker-layout-560 .tracker-side .tracker-slot-value {
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.tracker-layout-560 .tracker-side-players .tracker-slot-value {
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.08rem 0.36rem;
  border: 1px solid rgba(255, 158, 0, 0.72);
  border-radius: 7px;
  background: rgba(6, 10, 16, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 158, 0, 0.12);
}

.tracker-layout-560 .tracker-slot-map {
  grid-column: 1 / -1;
  grid-row: 3;
  min-height: 0;
}

.tracker-layout-560 .tracker-slot-ip .tracker-slot-value {
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  word-break: normal;
  line-height: 1.08;
}

.tracker-layout-560 .tracker-slot-map .tracker-slot-value,
.tracker-layout-560 .tracker-slot-map .tracker-modpack-link {
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
  line-height: 1.08;
}

.tracker-modpack-link {
  color: #eef6ff;
  text-decoration: none;
  font-weight: 800;
  border-bottom: 1px solid rgba(255, 194, 111, 0.45);
}

.tracker-modpack-link:hover,
.tracker-modpack-link:focus-visible {
  color: #ffe1b2;
  border-bottom-color: rgba(255, 225, 178, 0.8);
}

.tracker-debug {
  width: min(560px, 100%);
  border: 1px solid rgba(255, 194, 111, 0.28);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(14, 17, 22, 0.92), rgba(10, 13, 18, 0.96));
  padding: 0.52rem 0.62rem;
}

.tracker-debug-title {
  display: block;
  margin-bottom: 0.34rem;
  color: #ffe1b2;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.tracker-debug-body {
  margin: 0;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #d8ebff;
}

.tracker-layout-560 .tracker-pill {
  padding: 0.08rem 0.36rem;
  font-size: 0.64rem;
  background: rgba(12, 18, 24, 0.85);
  border: 1px solid rgba(255, 194, 111, 0.36);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.block-server-tracker.tracker-style-350x20 .tracker-card {
  width: min(350px, 100%);
  padding: 0.28rem 0.45rem;
  gap: 0.22rem;
}

.block-server-tracker.tracker-style-350x20 .tracker-stats,
.block-server-tracker.tracker-style-350x20 .tracker-foot {
  font-size: 0.68rem;
}

.block-server-tracker.tracker-style-160x400 .tracker-card {
  width: min(180px, 100%);
}

.block-server-tracker.tracker-style-160x400 .tracker-head,
.block-server-tracker.tracker-style-160x400 .tracker-stats,
.block-server-tracker.tracker-style-160x400 .tracker-foot {
  flex-direction: column;
  align-items: flex-start;
}

.block-image {
  padding: 0.7rem;
}

.block-image img {
  width: 100%;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(255, 218, 161, 0.28);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.block-image figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
}

.block-image figcaption strong {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--text);
}

.block-image figcaption p {
  margin: 0;
}

.block-divider {
  height: 1px;
  border: 0;
  margin: 1.4rem auto;
  width: min(520px, 80%);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,194,111,0.9), rgba(255,255,255,0));
  position: relative;
}

.block-divider::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid rgba(255, 194, 111, 0.92);
  background: #100b12;
}

.block-carousel {
  position: relative;
  padding: 0.62rem;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 10px;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  position: relative;
  min-width: 100%;
  scroll-snap-align: start;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 194, 111, 0.25);
  aspect-ratio: 16 / 7;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-caption {
  position: absolute;
  left: 0.72rem;
  bottom: 0.72rem;
  max-width: min(62%, 520px);
  border: 1px solid rgba(255, 207, 138, 0.4);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(13, 11, 14, 0.35), rgba(13, 11, 14, 0.88));
  padding: 0.48rem 0.58rem;
}

.carousel-caption h3 {
  margin: 0;
  font-size: 0.96rem;
}

.carousel-caption p {
  margin: 0.18rem 0 0;
  font-size: 0.82rem;
  line-height: 1.3;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 205, 133, 0.52);
  background: rgba(17, 13, 20, 0.72);
  color: #ffeed7;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0;
  z-index: 2;
}

.carousel-nav.prev {
  left: 0.92rem;
}

.carousel-nav.next {
  right: 0.92rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 0.68rem 1.15rem;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--gold), var(--red-soft));
  color: #1e120a;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(215, 51, 51, 0.32);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: #b9a58f;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.76rem;
  padding: 1.35rem 0;
}

@media (max-width: 980px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.72rem;
  }

  .site-nav-list {
    flex-wrap: wrap;
  }

  .site-nav-item .site-nav-list {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    margin-top: 0.35rem;
  }

  .site-hero {
    grid-template-columns: 1fr;
  }

  .hero-side {
    grid-template-columns: 1fr 1fr;
  }

  .content-section.layout-two-equal,
  .content-section.layout-two-left,
  .content-section.layout-two-right,
  .content-section.layout-three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-main {
    padding-top: 1.45rem;
  }

  .content-shell {
    padding: 0.55rem;
  }

  .block {
    padding: 0.9rem;
  }

  .hero-main h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .hero-side {
    grid-template-columns: 1fr;
  }

  .carousel-slide {
    aspect-ratio: 4 / 3;
  }

  .carousel-caption {
    left: 0.5rem;
    right: 0.5rem;
    max-width: none;
  }
}

/* Distinctive front-end refresh: stronger identity without changing content structure. */
:root {
  --bg: #060b12;
  --bg-soft: #0d1723;
  --panel: #111f30;
  --panel-soft: #15283d;
  --line: rgba(120, 228, 255, 0.26);
  --line-strong: rgba(120, 228, 255, 0.58);
  --gold: #ffd166;
  --gold-soft: #ffe7aa;
  --red: #ef476f;
  --red-soft: #ff6f91;
  --text: #eef7ff;
  --muted: #9db8d0;
}

body {
  background:
    radial-gradient(1200px 700px at 0% -10%, rgba(120, 228, 255, 0.16), transparent 60%),
    radial-gradient(900px 520px at 100% 0%, rgba(255, 209, 102, 0.12), transparent 58%),
    linear-gradient(160deg, #060b12 0%, #08111c 42%, #0b1522 100%);
}

.ambient-noise {
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
}

.ambient-rings::before,
.ambient-rings::after {
  border-color: rgba(120, 228, 255, 0.16);
}

.site-header {
  border-bottom: 1px solid rgba(120, 228, 255, 0.25);
  background: linear-gradient(180deg, rgba(8, 16, 28, 0.94), rgba(8, 16, 28, 0.76));
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.brand-mark {
  border-radius: 0;
  clip-path: polygon(16% 0, 84% 0, 100% 22%, 100% 78%, 84% 100%, 16% 100%, 0 78%, 0 22%);
  background: linear-gradient(145deg, #78e4ff, #ffd166 70%);
  box-shadow: 0 0 22px rgba(120, 228, 255, 0.34);
  color: #062033;
}

.brand-text {
  letter-spacing: 0.1em;
  text-shadow: 0 0 20px rgba(120, 228, 255, 0.2);
}

.site-nav a {
  border-radius: 8px;
  border: 1px solid rgba(120, 228, 255, 0.14);
  background: rgba(120, 228, 255, 0.04);
  color: #e7f7ff;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: rgba(120, 228, 255, 0.6);
  background: rgba(120, 228, 255, 0.14);
  color: #ffffff;
}

.site-nav-item .site-nav-list {
  border-color: rgba(120, 228, 255, 0.26);
  background: rgba(7, 17, 28, 0.95);
}

.content-shell {
  border: 1px solid rgba(120, 228, 255, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(14, 25, 39, 0.86), rgba(10, 19, 30, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 44px rgba(0, 0, 0, 0.3);
}

.content-section {
  gap: 1.05rem;
  margin-bottom: 1.12rem;
}

.block {
  border: 1px solid rgba(120, 228, 255, 0.2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 35, 52, 0.9), rgba(14, 27, 42, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 34px rgba(0, 0, 0, 0.28);
}

.block h1,
.block h2 {
  letter-spacing: 0.055em;
  color: #f4fbff;
}

.block p {
  color: #d7e7f6;
}

.block-text::before,
.block-hero::before,
.block-image::before,
.block-html::before {
  height: 3px;
  background: linear-gradient(90deg, rgba(120, 228, 255, 0.9), rgba(120, 228, 255, 0));
}

.block-hero {
  background:
    radial-gradient(100% 180% at 100% 0, rgba(120, 228, 255, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(20, 36, 53, 0.95), rgba(15, 27, 42, 0.95));
}

.block-quote {
  border-left: 4px solid #78e4ff;
  background: linear-gradient(180deg, rgba(21, 37, 56, 0.9), rgba(14, 26, 40, 0.94));
}

.block-quote cite {
  color: #9deeff;
}

.sf-pill,
.hero-tags span {
  border-color: rgba(120, 228, 255, 0.5);
  background: rgba(120, 228, 255, 0.1);
  color: #d8f8ff;
}

.sf-rules li::marker {
  color: #78e4ff;
}

.block-divider {
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(120,228,255,0.95), rgba(255,255,255,0));
}

.block-divider::before {
  border-color: rgba(120, 228, 255, 0.95);
  background: #0a1624;
}

.tracker-card {
  border: 1px solid rgba(120, 228, 255, 0.28);
  background: linear-gradient(135deg, rgba(10, 20, 32, 0.92), rgba(10, 16, 24, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.tracker-layout-560 .tracker-slot {
  border-color: rgba(120, 228, 255, 0.72);
  background: rgba(6, 12, 20, 0.78);
  box-shadow: inset 0 0 0 1px rgba(120, 228, 255, 0.12);
}

.tracker-layout-560 .tracker-slot-label {
  color: #91ecff;
}

.tracker-layout-560 .tracker-pill {
  border-color: rgba(120, 228, 255, 0.5);
}

.tracker-modpack-link {
  border-bottom-color: rgba(120, 228, 255, 0.65);
}

.tracker-modpack-link:hover,
.tracker-modpack-link:focus-visible {
  color: #b9f4ff;
  border-bottom-color: rgba(185, 244, 255, 0.95);
}

.tracker-debug {
  border-color: rgba(120, 228, 255, 0.35);
  background: linear-gradient(180deg, rgba(10, 18, 30, 0.92), rgba(8, 14, 24, 0.96));
}

.tracker-debug-title {
  color: #94edff;
}

.carousel-slide {
  border-color: rgba(120, 228, 255, 0.34);
}

.carousel-caption {
  border-color: rgba(120, 228, 255, 0.46);
  background: linear-gradient(180deg, rgba(10, 17, 26, 0.38), rgba(10, 17, 26, 0.9));
}

.carousel-nav {
  border-color: rgba(120, 228, 255, 0.62);
  background: rgba(8, 16, 26, 0.8);
  color: #d8f6ff;
}

.cta {
  background: linear-gradient(140deg, #78e4ff, #ffd166);
  color: #062033;
  box-shadow: 0 10px 26px rgba(120, 228, 255, 0.28);
}

.site-footer {
  border-top: 1px solid rgba(120, 228, 255, 0.24);
  color: #8fb2cd;
}

@media (prefers-reduced-motion: no-preference) {
  .site-nav a,
  .cta,
  .carousel-nav {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  }

  .cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(120, 228, 255, 0.36);
  }

  .carousel-nav:hover {
    transform: translateY(-50%) scale(1.04);
  }
}

.page-type-rules-docs .content-shell {
  border-color: var(--line);
}

.rules-docs-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.rules-docs-index {
  position: sticky;
  top: 5.2rem;
  border: 1px solid rgba(120, 228, 255, 0.24);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(14, 25, 39, 0.86), rgba(10, 19, 30, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 44px rgba(0, 0, 0, 0.3);
  padding: 0.75rem;
}

.rules-docs-index h2 {
  margin: 0 0 0.6rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.5rem, 2.3vw, 2.2rem);
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.rules-docs-nav {
  display: block;
}

.rules-docs-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.rules-docs-category-list .rules-docs-category-list {
  margin-top: 0.35rem;
}

.rules-docs-category-item {
  display: block;
}

.rules-docs-nav-btn {
  text-align: left;
  border: 1px solid rgba(120, 228, 255, 0.2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 35, 52, 0.9), rgba(14, 27, 42, 0.94));
  color: var(--text);
  padding: 0.68rem 0.72rem;
  padding-left: calc(0.72rem + (var(--rules-depth, 0) * 0.9rem));
  cursor: pointer;
  width: 100%;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.rules-docs-nav-btn strong {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 800;
}

.rules-docs-nav-btn span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rules-docs-nav-btn.is-active {
  border-color: var(--line-strong);
  background: linear-gradient(120deg, rgba(120, 228, 255, 0.24), rgba(120, 228, 255, 0.08));
}

.rules-docs-nav-btn:hover,
.rules-docs-nav-btn:focus-visible {
  border-color: var(--line-strong);
  color: #ffffff;
  background: linear-gradient(120deg, rgba(120, 228, 255, 0.2), rgba(120, 228, 255, 0.06));
}

.rules-docs-panel {
  border: 1px solid rgba(120, 228, 255, 0.2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 35, 52, 0.9), rgba(14, 27, 42, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 14px 34px rgba(0, 0, 0, 0.28);
  padding: 1rem 1.1rem;
}

.rules-docs-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffd892;
  font-size: 0.78rem;
  font-weight: 700;
}

.rules-docs-panel h3 {
  margin: 0.3rem 0 0.7rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.rules-docs-panel-body {
  display: grid;
  gap: 0;
}

.rules-docs-panel-body h4 {
  margin: 10px 0 0;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  letter-spacing: 0.01em;
}

.rules-docs-panel-body h4:first-child {
  margin-top: 0;
}

.rules-docs-panel-body h5,
.rules-docs-panel-body h6 {
  margin: 10px 0 0;
  font-family: 'Manrope', sans-serif;
  letter-spacing: 0.01em;
}

.rules-docs-panel-body h5 {
  font-size: clamp(0.98rem, 1.3vw, 1.12rem);
}

.rules-docs-panel-body h6 {
  font-size: 0.98rem;
  opacity: 0.95;
}

.rules-docs-panel-body p {
  margin: 0;
  line-height: 1.35;
  color: var(--text);
}

.rules-docs-panel-body a {
  color: #9deeff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rules-docs-panel-body code {
  display: inline-block;
  padding: 0.08rem 0.35rem;
  border-radius: 6px;
  background: rgba(8, 18, 30, 0.9);
  border: 1px solid rgba(120, 228, 255, 0.35);
  font-size: 0.86em;
}

.rules-docs-code-inline {
  white-space: pre-wrap;
}

.rules-docs-align-left,
.rules-docs-align-center,
.rules-docs-align-right {
  display: block;
}

.rules-docs-align-left {
  text-align: left;
}

.rules-docs-align-center {
  text-align: center;
}

.rules-docs-align-right {
  text-align: right;
}

.rules-docs-panel-body u {
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.rules-docs-inline-img {
  display: block;
  max-width: min(100%, 560px);
  margin: 10px 0;
  border-radius: 10px;
  border: 1px solid rgba(120, 228, 255, 0.35);
}

.rules-docs-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 6px;
}

.rules-docs-list li {
  line-height: 1.6;
  color: var(--text);
}

.rules-docs-list li::marker {
  color: #78e4ff;
}

.rules-docs-list-ordered {
  list-style: decimal;
}

.rules-docs-list-alpha {
  list-style: lower-alpha;
}

.rules-docs-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(120, 228, 255, 0), rgba(120, 228, 255, 0.95), rgba(120, 228, 255, 0));
  margin: 6px 0;
}

.rules-docs-quote {
  margin: 0;
  padding: 14px 16px;
  border-left: 4px solid #78e4ff;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(21, 37, 56, 0.9), rgba(14, 26, 40, 0.94));
  font-style: italic;
}

.rules-docs-quote-author {
  margin-top: 4px;
  font-size: 0.88rem;
  opacity: 0.86;
}

.rules-docs-html {
  display: grid;
  gap: 10px;
}

.rules-docs-image {
  margin: 0;
}

.rules-docs-image img {
  display: block;
  width: 100%;
  max-height: min(50vh, 360px);
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 980px) {
  .rules-docs-layout {
    grid-template-columns: 1fr;
  }

  .rules-docs-index {
    position: static;
  }
}
