﻿:root {
  --bg: #070b0f;
  --display-font: "Manrope", "Segoe UI", Arial, sans-serif;
  --bg-soft: #0d1319;
  --panel: rgba(18, 25, 31, 0.82);
  --panel-solid: #12191f;
  --line: rgba(232, 236, 228, 0.13);
  --line-strong: rgba(173, 243, 253, 0.28);
  --text: #eef2e9;
  --muted: rgba(238, 242, 233, 0.68);
  --faint: rgba(238, 242, 233, 0.46);
  --cyan: #adf3fd;
  --blue: #4f94fc;
  --gold: #d9a33d;
  --red: #8f2520;
  --green: #6f8a55;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 4%, rgba(79, 148, 252, 0.14), transparent 34%),
    radial-gradient(circle at 92% 18%, rgba(217, 163, 61, 0.11), transparent 30%),
    linear-gradient(180deg, #080c10 0%, #0b1015 48%, #080b0e 100%);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.page-shell { overflow: hidden; }
.container {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
}
.site-header {
  position: relative;
  z-index: 50;
  padding: 14px 0;
  background: rgba(7, 11, 15, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner {
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}
.brand-logo {
  width: 108px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.42));
}
.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  background: rgba(18, 25, 31, 0.56);
}
.main-nav a {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}
.main-nav a:hover {
  color: var(--cyan);
  background: rgba(173, 243, 253, 0.08);
}
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.ip-chip, .discord-link {
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(18, 25, 31, 0.62);
  cursor: pointer;
  font-weight: 900;
}
.discord-link {
  border-color: rgba(173, 243, 253, 0.42);
  color: var(--cyan);
}

.hero-section {
  position: relative;
  min-height: 920px;
  padding: 150px 0 96px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
  filter: saturate(1.05) contrast(1.04);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 11, 15, 0.34), rgba(7, 11, 15, 0.96)),
    linear-gradient(90deg, rgba(7, 11, 15, 0.92), rgba(7, 11, 15, 0.22));
}
.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 500px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hero-copy { padding-top: 36px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: var(--display-font);
  font-weight: 800;
  letter-spacing: -0.025em;
}
h1 {
  margin-bottom: 20px;
  max-width: 820px;
  font-size: clamp(56px, 8vw, 116px);
  line-height: 0.92;
  letter-spacing: -0.04em;
}
h2 {
  margin-bottom: 18px;
  color: #f7f0df;
  font-size: clamp(32px, 4.6vw, 62px);
  line-height: 1.03;
  letter-spacing: 0;
}
h3 {
  margin-bottom: 10px;
  color: #f7f0df;
  font-size: 22px;
}
.lead {
  max-width: 760px;
  color: rgba(238, 242, 233, 0.82);
  font-size: clamp(18px, 2vw, 23px);
}
.hero-buttons, .server-card-actions, .final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(18, 25, 31, 0.72);
  cursor: pointer;
  font-weight: 950;
}
.button.primary {
  border-color: rgba(173, 243, 253, 0.56);
  background: linear-gradient(135deg, rgba(79, 148, 252, 0.96), rgba(29, 74, 128, 0.96));
}
.button.secondary {
  border-color: rgba(217, 163, 61, 0.48);
  background: rgba(217, 163, 61, 0.13);
}
.button.ghost { background: transparent; }
.button.full { width: 100%; }
.button:hover, .ip-chip:hover, .discord-link:hover { transform: translateY(-1px); }

.server-card {
  background: var(--panel);
  border: 0;
  box-shadow: none;
  backdrop-filter: blur(14px);
}
.server-card-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.server-card-body { padding: 24px; }
.server-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.server-card-topline strong { color: var(--cyan); }
.server-card-body h2 { font-size: clamp(30px, 4vw, 46px); }
.server-card-body p { color: var(--muted); }
.server-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.server-meta span, .tag-list span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 13px;
  font-weight: 800;
}
.server-ip-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(7, 11, 15, 0.36);
}
.server-ip-line span {
  color: var(--faint);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.server-ip-line strong {
  color: var(--cyan);
  overflow-wrap: anywhere;
}
.server-ip-line button {
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid rgba(173, 243, 253, 0.32);
  color: var(--cyan);
  background: rgba(79, 148, 252, 0.12);
  cursor: pointer;
  font-weight: 900;
}

.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-head { margin-bottom: 30px; }
.section-head.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.8fr);
  gap: 40px;
  align-items: end;
}
.section-head p { color: var(--muted); }
.section-head.centered { max-width: 760px; text-align: center; }
.feature-list {
  display: grid;
  gap: 10px;
}
.info-row {
  display: grid;
  grid-template-columns: 54px minmax(150px, 0.32fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: rgba(238, 242, 233, 0.045);
}
.info-row span, .step-row span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--gold);
  border: 1px solid rgba(217, 163, 61, 0.36);
  background: rgba(217, 163, 61, 0.08);
  font-weight: 950;
}
.info-row h3, .step-row h3 { margin: 0; }
.info-row p, .step-row p { margin: 0; color: var(--muted); }
.steps-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.step-row {
  display: grid;
  grid-template-columns: 54px minmax(170px, 0.34fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(238, 242, 233, 0.065), rgba(238, 242, 233, 0.025));
}
.step-row button {
  padding: 0;
  border: 0;
  color: var(--cyan);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(380px, 1.08fr) minmax(340px, 0.92fr);
  gap: 18px;
  align-items: stretch;
}
.map-frame,
.biome-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(18, 25, 31, 0.7);
  cursor: pointer;
  box-shadow: none;
}
.map-frame {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.map-frame img,
.biome-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
  transition: transform 0.28s ease, filter 0.28s ease;
}
.map-frame img {
  aspect-ratio: 1 / 1;
}
.biome-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.biome-card {
  min-height: 0;
  aspect-ratio: 16 / 10;
}
.media-preview span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 7px 9px;
  color: var(--text);
  background: rgba(7, 11, 15, 0.72);
  border: 1px solid rgba(238, 242, 233, 0.12);
  font-size: 13px;
  font-weight: 900;
  text-align: left;
}
.media-preview:hover img,
.media-preview:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.12) contrast(1.06);
}
.media-preview:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(2, 5, 8, 0.86);
  backdrop-filter: blur(10px);
  animation: lightboxFade 0.18s ease;
}
.media-lightbox[hidden] { display: none; }
.media-lightbox-card {
  width: min(1120px, 100%);
  margin: 0;
  transform: scale(0.98);
  animation: lightboxOpen 0.22s ease forwards;
}
.media-lightbox-card img {
  width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.media-lightbox-card figcaption {
  margin-top: 12px;
  color: var(--text);
  font-weight: 900;
  text-align: center;
}
.media-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(18, 25, 31, 0.86);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
@keyframes lightboxFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes lightboxOpen {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.generation-layout, .rules-panel, .final-cta-inner {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.generation-copy p { color: var(--muted); }
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.world-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.world-preview-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
}
.world-preview-grid img:first-child {
  grid-row: span 2;
  height: 100%;
}

.wide-showcase {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: end;
  overflow: hidden;
  border-block: 1px solid var(--line);
}
.wide-showcase img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wide-showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 11, 15, 0.92), rgba(7, 11, 15, 0.2)), linear-gradient(180deg, transparent, rgba(7, 11, 15, 0.82));
}
.wide-showcase-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
  padding: 88px 0;
}
.wide-showcase-content p { color: var(--muted); }


.mechanics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.mechanic-card {
  min-height: 170px;
  padding: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(238, 242, 233, 0.07), rgba(238, 242, 233, 0.025));
}
.mechanic-card h3 { margin-bottom: 36px; }
.mechanic-card p { margin: 0; color: var(--muted); }
.souls-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 16px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  background: rgba(18, 25, 31, 0.72);
  box-shadow: var(--shadow);
}
.souls-panel h3 { margin-bottom: 8px; }
.souls-panel p { margin: 0; color: var(--muted); }
.souls-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.souls-list figure {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(7, 11, 15, 0.32);
}
.souls-list img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}
.souls-list figcaption {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}
.rules-panel {
  padding: 34px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.rules-panel p { color: var(--muted); }
.rules-panel .button { justify-self: end; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}
.final-cta {
  padding: 54px 0;
  border-top: 1px solid var(--line);
  background: rgba(18, 25, 31, 0.58);
}
.final-cta-inner {
  grid-template-columns: auto minmax(0, 1fr) auto;
}
.final-logo {
  width: 170px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.52));
}
.final-cta h2 { font-size: clamp(30px, 4vw, 50px); }
.final-cta p { color: var(--muted); }
.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 54px);
  color: var(--faint);
  border-top: 1px solid var(--line);
}
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  padding: 12px 16px;
  color: #071016;
  background: var(--cyan);
  font-weight: 950;
  box-shadow: var(--shadow);
}

@media (max-width: 980px) {
  .header-inner { grid-template-columns: auto auto; }
  .main-nav { display: none; }
  .brand-logo { width: 92px; }
  .ip-chip { display: none; }
  .hero-section { min-height: auto; padding: 70px 0; }
  .hero-layout, .section-head.split, .generation-layout, .rules-panel, .final-cta-inner, .souls-panel { grid-template-columns: 1fr; }
  .mechanics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-layout { grid-template-columns: 1fr; }
  .biome-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-row, .step-row { grid-template-columns: 44px 1fr; }
  .info-row p, .step-row p { grid-column: 2; }
  .rules-panel .button { justify-self: start; }
  .final-actions { margin-top: 12px; }
}

@media (max-width: 640px) {
  .container, .header-inner { width: calc(100% - 28px); }
  .hero-buttons, .server-card-actions, .final-actions { display: grid; }
  .button, .discord-link { width: 100%; text-align: center; }
  .world-preview-grid, .gallery-grid, .biome-grid, .mechanics-grid, .souls-list { grid-template-columns: 1fr; }
  .info-row, .step-row, .server-ip-line { grid-template-columns: 1fr; }
  .info-row p, .step-row p { grid-column: auto; }
  .world-preview-grid img:first-child { grid-row: auto; }
  .server-card-image { height: 230px; }

  .footer { flex-direction: column; }
}









.rules-page {
  padding-top: 86px;
}
.rules-hero {
  padding: 92px 0 48px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(7, 11, 15, 0.78), rgba(7, 11, 15, 0.96)),
    url("assets/keeper-hall.webp") center/cover;
}
.rules-hero-inner {
  max-width: 820px;
}
.rules-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(42px, 7vw, 82px);
}
.rules-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}
.rules-content {
  display: grid;
  gap: 14px;
  max-width: 980px;
}
.rules-block {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(18, 25, 31, 0.72);
}
.rules-block h2 {
  margin: 0 0 16px;
  padding-left: 0;
  color: var(--text);
  border-left: 0;
  font-size: clamp(26px, 3.4vw, 38px);
  text-align: center;
}
.rule-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.62;
}
.rule-line:last-child {
  margin-bottom: 0;
}
.rule-line span {
  color: var(--cyan);
  font-weight: 900;
}
.rules-lead {
  margin: 0 0 14px;
  color: var(--muted);
}
.main-nav a[aria-current="page"] {
  color: var(--cyan);
  background: rgba(173, 243, 253, 0.08);
}
@media (max-width: 640px) {
  .rules-page { padding-top: 74px; }
  .rules-hero { padding: 70px 0 34px; }
  .rules-block { padding: 18px; }
  .rule-line { grid-template-columns: 64px minmax(0, 1fr); }
}






.site-loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(173, 243, 253, 0.16), transparent 34%),
    radial-gradient(circle at 50% 58%, rgba(217, 163, 61, 0.11), transparent 30%),
    #05080b;
  transition: opacity 0.75s ease, visibility 0.75s ease;
}
.site-loader::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(115deg, transparent 38%, rgba(173, 243, 253, 0.18) 48%, transparent 58%);
  transform: translateX(-40%);
  animation: loaderSweep 1.9s ease-in-out infinite;
}
.site-loader-glow {
  position: absolute;
  width: min(520px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(79, 148, 252, 0.16);
  filter: blur(34px);
  animation: loaderPulse 1.65s ease-in-out infinite;
}
.site-loader-logo {
  position: relative;
  z-index: 1;
  width: min(560px, 84vw);
  filter: drop-shadow(0 0 24px rgba(173, 243, 253, 0.38)) drop-shadow(0 22px 32px rgba(0, 0, 0, 0.55));
  animation: loaderLogo 1.15s ease both;
}
.site-loader-line {
  position: absolute;
  top: calc(50% + min(125px, 20vw));
  width: min(380px, 66vw);
  height: 2px;
  overflow: hidden;
  background: rgba(238, 242, 233, 0.14);
}
.site-loader-line span {
  display: block;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: loaderLine 1.35s ease-in-out infinite;
}
.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@keyframes loaderLogo {
  from { opacity: 0; transform: translateY(12px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes loaderPulse {
  0%, 100% { transform: scale(0.92); opacity: 0.56; }
  50% { transform: scale(1.08); opacity: 0.9; }
}
@keyframes loaderSweep {
  0% { transform: translateX(-42%); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: translateX(42%); opacity: 0; }
}
@keyframes loaderLine {
  from { transform: translateX(-110%); }
  to { transform: translateX(250%); }
}
@media (prefers-reduced-motion: reduce) {
  .site-loader::before,
  .site-loader-glow,
  .site-loader-logo,
  .site-loader-line span {
    animation: none;
  }
}



.quick-showcase {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: stretch;
}
.quick-showcase-image {
  position: relative;
  min-height: 440px;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}
.quick-showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
  transition: transform 0.35s ease, filter 0.35s ease;
}
.quick-showcase-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(7, 11, 15, 0.56));
  pointer-events: none;
}
.quick-showcase-image:hover img { transform: scale(1.025); filter: saturate(1.12) contrast(1.06); }
.quick-showcase-body {
  display: grid;
  align-content: center;
  gap: 22px;
  padding: clamp(8px, 2vw, 18px) 0;
}
.quick-showcase-body h2 { margin-bottom: 0; }
.quick-feature-list {
  display: grid;
  gap: 12px;
}
.quick-feature-list article {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.quick-feature-list article:last-child { border-bottom: 1px solid var(--line); }
.quick-feature-list span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}
.quick-feature-list h3 {
  margin-bottom: 4px;
  font-size: 22px;
}
.quick-feature-list p {
  margin: 0;
  color: var(--muted);
}
@media (max-width: 980px) {
  .quick-showcase { grid-template-columns: 1fr; }
  .quick-showcase-image { min-height: 320px; }
}
@media (max-width: 640px) {
  .quick-feature-list article { grid-template-columns: 1fr; gap: 6px; }
}
.compact-cta {
  padding: 28px 0;
  background: rgba(9, 14, 18, 0.68);
}
.compact-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.compact-cta-main {
  display: grid;
  gap: 2px;
}
.compact-cta-main span {
  color: var(--faint);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.compact-cta-main strong {
  color: var(--cyan);
  font-size: clamp(20px, 3vw, 30px);
  overflow-wrap: anywhere;
}
.compact-actions {
  margin-top: 0;
  justify-content: flex-end;
}
@media (max-width: 760px) {
  .compact-cta-inner { align-items: stretch; flex-direction: column; }
  .compact-actions { display: grid; justify-content: stretch; }
}
.video-section {
  padding-top: 0;
}
.video-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.video-copy span {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}
.video-copy h2 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 4vw, 48px);
}
.video-copy p {
  margin: 0;
  color: var(--muted);
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(18, 25, 31, 0.72);
}
@media (max-width: 980px) {
  .video-panel { grid-template-columns: 1fr; }
}.video-link {
  display: block;
  color: var(--text);
}
.video-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.video-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 15, 0.08), rgba(7, 11, 15, 0.62));
  pointer-events: none;
}
.video-link:hover img {
  transform: scale(1.025);
  opacity: 1;
}
.video-play {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 1;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border: 1px solid rgba(173, 243, 253, 0.48);
  color: var(--cyan);
  background: rgba(7, 11, 15, 0.82);
  font-weight: 950;
}
.single-video-panel {
  display: block;
  max-width: 980px;
  padding-top: 0;
}
.single-video-panel .video-frame {
  width: 100%;
}
.hero-buttons .button.primary {
  min-width: min(360px, 100%);
}
.site-footer {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  color: var(--faint);
  background: rgba(7, 11, 15, 0.72);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
@media (max-width: 640px) {
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-action {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  border: 1px solid rgba(238, 242, 233, 0.14);

  color: var(--text);
  background: rgba(238, 242, 233, 0.045);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.hero-action-primary {
  min-width: 260px;
  border-color: rgba(217, 163, 61, 0.36);
  color: var(--gold);
  background: rgba(217, 163, 61, 0.1);
}
.hero-action:hover {
  transform: translateY(-1px);
  border-color: rgba(173, 243, 253, 0.34);
  background: rgba(173, 243, 253, 0.075);
}
.hero-action-primary:hover {
  border-color: rgba(217, 163, 61, 0.54);
  background: rgba(217, 163, 61, 0.17);
}
.inline-guide-link {
  color: var(--cyan);
  font-weight: 900;
}
@media (max-width: 640px) {
  .hero-actions { display: grid; }
  .hero-action { width: 100%; }
}
.guides-hero {
  background:
    linear-gradient(180deg, rgba(7, 11, 15, 0.76), rgba(7, 11, 15, 0.96)),
    url("assets/chronicle-room.webp") center/cover;
}
.guides-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}
.guides-sidebar {
  position: sticky;
  top: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(18, 25, 31, 0.62);
}
.guides-sidebar h2 {
  margin: 0 0 16px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.guides-sidebar nav {
  display: grid;
  gap: 8px;
}
.guides-sidebar a {
  display: block;
  padding: 12px 14px;
  border: 1px solid transparent;
  color: var(--muted);
  background: rgba(238, 242, 233, 0.025);
  font-size: 14px;
  font-weight: 900;
}
.guides-sidebar a:hover {
  color: var(--cyan);
  border-color: rgba(173, 243, 253, 0.24);
  background: rgba(173, 243, 253, 0.065);
}
.guides-content {
  display: grid;
  gap: 34px;
}
.guides-title h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
}
.guides-title span {
  color: var(--cyan);
}
.guide-category {
  display: grid;
  gap: 14px;
  scroll-margin-top: 24px;
}
.guide-category > h3 {
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 28px;
}
.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.guide-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 190px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(18, 25, 31, 0.7);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.guide-card:hover {
  transform: translateY(-2px);
  border-color: rgba(173, 243, 253, 0.24);
  background: rgba(18, 25, 31, 0.86);
}
.guide-card-wide {
  grid-column: 1 / -1;
}
.guide-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: rgba(7, 11, 15, 0.42);
}
.guide-card div {
  padding: 22px;
}
.guide-card time {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.guide-card h4 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.08;
}
.guide-card p {
  margin: 0;
  color: var(--muted);
}
.guide-steps-mini {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}
.guide-steps-mini li + li {
  margin-top: 5px;
}
.guide-steps-mini a,
.guide-steps-mini button,
.guide-open-link {
  padding: 0;
  border: 0;
  color: var(--cyan);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}
.guide-open-link {
  display: inline-flex;
  margin-top: 14px;
}
@media (max-width: 980px) {
  .guides-layout { grid-template-columns: 1fr; }
  .guides-sidebar { position: static; }
  .guides-sidebar nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .guide-card-grid { grid-template-columns: 1fr; }
  .guide-card { grid-template-columns: 1fr; }
  .guide-card img { height: 210px; }
  .guides-sidebar nav { grid-template-columns: 1fr; }
}
.currency-guide-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(18, 25, 31, 0.7);
}
.currency-guide-intro h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 28px;
}
.currency-guide-intro p {
  margin: 0;
  color: var(--muted);
}
.currency-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.currency-types figure {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(7, 11, 15, 0.34);
  text-align: center;
}
.currency-types img {
  width: 86px;
  height: 86px;
  object-fit: contain;
}
.currency-types figcaption {
  color: var(--text);
  font-size: 16px;
  font-weight: 950;
}
.currency-types p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.currency-npc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.currency-npc-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(238, 242, 233, 0.035);
}
.currency-npc-card img {
  width: 132px;
  height: 132px;
  object-fit: contain;
  background: rgba(7, 11, 15, 0.36);
}
.currency-npc-card time {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.currency-npc-card h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 24px;
}
.currency-npc-card p {
  margin: 0 0 12px;
  color: var(--muted);
}
.npc-coords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.npc-coords div {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border: 1px solid rgba(173, 243, 253, 0.18);
  background: rgba(7, 11, 15, 0.36);
}
.npc-coords dt {
  color: var(--faint);
  font-weight: 950;
}
.npc-coords dd {
  margin: 0;
  color: var(--cyan);
  font-weight: 900;
}
@media (max-width: 980px) {
  .currency-types,
  .currency-npc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .currency-npc-card { grid-template-columns: 1fr; }
  .currency-npc-card img { width: 112px; height: 112px; }
}
.private-guide-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(18, 25, 31, 0.7);
}
.private-guide-intro h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 28px;
}
.private-guide-intro p {
  margin: 0;
  color: var(--muted);
}
.private-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.private-tool-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(238, 242, 233, 0.035);
}
.private-tool-card img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  background: rgba(7, 11, 15, 0.36);
}
.private-tool-card time {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.private-tool-card h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 24px;
}
.private-tool-card p {
  margin: 0;
  color: var(--muted);
}
@media (max-width: 980px) {
  .private-tool-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .private-tool-card { grid-template-columns: 1fr; }
  .private-tool-card img { width: 128px; height: 128px; }
}
.map-frame {
  aspect-ratio: 1 / 1;
  background: rgba(7, 11, 15, 0.58);
}
.map-frame img {
  object-fit: contain;
  aspect-ratio: auto;
  padding: 10px;
}
.map-frame.media-preview:hover img,
.map-frame.media-preview:focus-visible img {
  transform: none;
}
/* MineReam centered hero/video controls */
.hero-copy {
  display: grid;
  justify-items: start;
}
.hero-copy .hero-actions {
  width: min(820px, 100%);
  justify-content: center;
}
.video-play {
  left: 50%;
  bottom: 50%;
  transform: translate(-50%, 50%);
  min-width: 170px;
  justify-content: center;
  text-align: center;
}
.video-link:hover .video-play {
  transform: translate(-50%, 50%);
}
@media (max-width: 640px) {
  .hero-copy .hero-actions {
    width: 100%;
  }
}
/* Centered inner page titles */
.rules-hero-inner {
  margin-inline: auto;
  text-align: center;
}
.rules-hero p {
  margin-inline: auto;
}
/* Guide text cards and left-aligned hero CTA */
.guide-card-text {
  grid-template-columns: 1fr;
  min-height: 160px;
  position: relative;
}
.guide-card-text::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(173, 243, 253, 0.09), transparent 42%);
  pointer-events: none;
}
.guide-card-text div {
  position: relative;
}
.hero-copy .hero-actions {
  width: auto;
  justify-content: flex-start;
}
/* Square world map frame */
.map-layout {
  align-items: start;
}
.map-frame {
  align-self: start;
  aspect-ratio: 1 / 1;
  display: grid;
  background: linear-gradient(180deg, rgba(18, 25, 31, 0.82), rgba(7, 11, 15, 0.74));
}
.map-frame img {
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 8px;
  object-fit: contain;
}

/* Additions from the alternate homepage, kept in the original MineReam style */
.hero-online-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
}
.status-text { opacity: 0.82; }
.status-indicator {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 163, 61, 0.08);
}
.hero-online-status.is-online { color: var(--muted); }
.hero-online-status.is-online .status-indicator {
  background: #6f9c70;
  box-shadow: 0 0 0 3px rgba(111, 156, 112, 0.09);
}
.hero-online-status.is-offline .status-indicator {
  background: #9d6363;
  box-shadow: 0 0 0 3px rgba(157, 99, 99, 0.09);
}

.start-playing-section {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0%, rgba(79, 148, 252, 0.08), transparent 38%),
    rgba(9, 14, 18, 0.62);
}
.start-playing-section .section-head .lead,
.faq-section .section-head .lead,
.video-section .section-head .lead {
  margin-inline: auto;
  color: var(--muted);
}
.start-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.start-step-card {
  position: relative;
  min-height: 268px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 28px;
  padding: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(238, 242, 233, 0.065), rgba(238, 242, 233, 0.025));
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.start-step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(173, 243, 253, 0.3);
  background: linear-gradient(180deg, rgba(173, 243, 253, 0.08), rgba(238, 242, 233, 0.025));
}
.start-step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  border: 1px solid rgba(173, 243, 253, 0.3);
  background: rgba(79, 148, 252, 0.1);
  font-size: 13px;
  font-weight: 950;
}
.start-step-card h3 { margin-bottom: 9px; font-size: 25px; }
.start-step-card p { margin: 0; color: var(--muted); }
.start-step-card button {
  padding: 0;
  border: 0;
  color: var(--cyan);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}
.start-step-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}
.start-connect-wrap {
  max-width: 720px;
  margin-top: 18px;
}
.start-connect-compact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(18, 25, 31, 0.56);
}
.start-connect-compact > span {
  color: var(--faint);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.start-connect-compact strong { color: var(--cyan); font-size: 20px; overflow-wrap: anywhere; }
.start-connect-wrap > p { margin: 8px 0 0; color: var(--faint); font-size: 12px; text-align: center; }
.start-copy-button {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(173, 243, 253, 0.26);
  color: var(--cyan);
  background: rgba(79, 148, 252, 0.12);
  cursor: pointer;
  font-weight: 900;
}

.faq-section { background: rgba(7, 11, 15, 0.3); }
.faq-list { max-width: 940px; display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--line);
  background: rgba(18, 25, 31, 0.68);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.faq-item[open] {
  border-color: rgba(173, 243, 253, 0.28);
  background: rgba(18, 25, 31, 0.86);
}
.faq-item summary {
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  border: 1px solid rgba(173, 243, 253, 0.22);
  font-style: normal;
  transition: transform 0.2s ease;
}
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-answer { padding: 0 76px 20px 20px; }
.faq-answer p { margin: 0; color: var(--muted); line-height: 1.7; }
.faq-answer code { color: var(--cyan); font-family: Consolas, monospace; font-weight: 800; }

.video-section { padding-top: clamp(72px, 9vw, 110px); }
.video-gallery {
  max-width: 1080px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 18px;
}
.video-wrapper {
  min-width: 0;
  border: 1px solid var(--line-strong);
  background: rgba(18, 25, 31, 0.72);
  box-shadow: var(--shadow);
}
.video-wrapper .video-frame { width: 100%; }
.video-frame iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-navigation {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 30px;
}
.footer-navigation a {
  min-height: 96px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 0 10px;
  align-content: center;
  padding: 16px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(238, 242, 233, 0.025);
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.footer-navigation a:hover,
.footer-navigation a[aria-current="page"] {
  transform: translateY(-2px);
  color: var(--text);
  border-color: rgba(173, 243, 253, 0.3);
  background: rgba(173, 243, 253, 0.055);
}
.footer-navigation span {
  grid-row: 1 / 3;
  align-self: center;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 950;
}
.footer-navigation strong { color: inherit; font-size: 15px; }
.footer-navigation small { color: var(--faint); font-size: 11px; }

.site-footer-expanded { padding: 52px 0 22px; background: rgba(5, 8, 11, 0.92); }
.footer-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(130px, 0.7fr));
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}
.footer-about .footer-logo {
  width: 88px;
  height: 88px;
  margin-bottom: 18px;
  object-fit: contain;
}
.footer-about p { max-width: 400px; margin: 0; color: var(--muted); font-size: 14px; }
.footer-column h3 {
  margin: 4px 0 18px;
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-column nav { display: grid; gap: 11px; }
.footer-column a { color: var(--faint); font-size: 14px; transition: color 0.18s ease, transform 0.18s ease; }
.footer-column a:hover,
.footer-column a[aria-current="page"] { color: var(--cyan); transform: translateX(3px); }
.site-footer-expanded .footer-inner {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.scroll-top-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(173, 243, 253, 0.34);
  color: var(--cyan);
  background: rgba(10, 15, 20, 0.9);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 23px;
  transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.scroll-top-button:hover {
  transform: translateY(-3px);
  color: #071016;
  border-color: var(--cyan);
  background: var(--cyan);
}
.scroll-top-button span { transform: translateY(-1px); }

@media (max-width: 980px) {
  .start-steps-grid { grid-template-columns: 1fr; }
  .start-step-card { min-height: auto; grid-template-columns: 50px 1fr; grid-template-rows: auto; gap: 18px; }
  .footer-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .hero-online-status { align-items: flex-start; }
  .start-step-card { grid-template-columns: 1fr; }
  .start-connect-compact { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .start-connect-compact > span { grid-column: 1 / -1; }
  .start-copy-button { width: 100%; }
  .faq-item summary { min-height: 62px; padding: 14px 16px; font-size: 16px; }
  .faq-answer { padding: 0 16px 18px; }
  .footer-navigation { grid-template-columns: 1fr; }
  .footer-navigation a { min-height: 82px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-about { grid-column: auto; }
  .site-footer-expanded .footer-inner { margin-top: 30px; }
  .scroll-top-button { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}

/* Brewery guide */
.brewery-howto {
  gap: 18px;
}

.brewery-guide-intro-panel,
.brewery-important-panel,
.brewery-process-card {
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 14% 0%, rgba(214, 145, 57, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(18, 25, 31, 0.9), rgba(10, 15, 20, 0.94));
  box-shadow: var(--shadow);
}

.brewery-guide-intro-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
}

.brewery-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brewery-guide-intro-panel h4,
.brewery-important-panel h4 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 26px;
  line-height: 1.08;
}

.brewery-guide-intro-panel p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.brewery-stage-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.brewery-stage-strip li {
  min-width: 112px;
  padding: 12px 14px;
  border: 1px solid rgba(214, 145, 57, 0.26);
  background: rgba(214, 145, 57, 0.08);
  color: var(--text);
  font-weight: 900;
}

.brewery-stage-strip span {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.14em;
}

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

.brewery-process-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  align-items: stretch;
  overflow: hidden;
}

.brewery-process-card figure {
  position: relative;
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  isolation: isolate;
  background: rgba(7, 11, 15, 0.5);
}

.brewery-process-card figure::before,
.brewery-process-card figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.brewery-process-card figure::before {
  z-index: -2;
  background-image:
    linear-gradient(180deg, rgba(7, 11, 15, 0.08), rgba(7, 11, 15, 0.44)),
    var(--guide-image);
  background-size: cover;
  background-position: center;
  filter: blur(16px) saturate(1.18);
  transform: scale(1.12);
  opacity: 0.72;
}

.brewery-process-card figure::after {
  z-index: -1;
  background:
    radial-gradient(circle at 50% 42%, transparent 0 34%, rgba(7, 11, 15, 0.42) 78%),
    linear-gradient(90deg, transparent 58%, rgba(10, 15, 20, 0.52));
}

.brewery-process-card img {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  display: block;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.brewery-process-content {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
}

.brewery-process-content time {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brewery-process-content h4 {
  margin: 0;
  color: var(--text);
  font-size: 28px;
  line-height: 1.08;
}

.brewery-process-content p {
  margin: 0;
  color: var(--muted);
}

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

.brewery-process-columns > div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.brewery-process-columns h5 {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brewery-process-columns ul,
.brewery-process-columns ol,
.brewery-important-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.brewery-process-columns li + li,
.brewery-important-panel li + li {
  margin-top: 7px;
}

.brewery-guide-note {
  padding: 12px 14px;
  border-left: 3px solid var(--gold);
  background: rgba(214, 145, 57, 0.08);
}

.brewery-guide-note.is-danger {
  border-left-color: #c96a4a;
  background: rgba(201, 106, 74, 0.09);
}

.brewery-important-panel {
  padding: 22px;
}

.brewery-important-panel h4 {
  font-size: 24px;
}

@media (max-width: 980px) {
  .brewery-guide-intro-panel,
  .brewery-process-card {
    grid-template-columns: 1fr;
  }

  .brewery-stage-strip {
    grid-template-columns: 1fr;
  }

  .brewery-process-card figure {
    min-height: 340px;
    aspect-ratio: 1 / 1;
  }

  .brewery-process-card figure::after {
    background: linear-gradient(180deg, transparent 55%, rgba(10, 15, 20, 0.46));
  }
}

@media (max-width: 620px) {
  .brewery-guide-intro-panel,
  .brewery-process-content,
  .brewery-important-panel {
    padding: 18px;
  }

  .brewery-process-columns {
    grid-template-columns: 1fr;
  }

  .brewery-process-content h4,
  .brewery-guide-intro-panel h4 {
    font-size: 24px;
  }
}

/* Restored Brewery recipe styles */
.brewery-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.brewery-stats-row span {
  border: 1px solid var(--line);
  background: rgba(18, 25, 31, 0.72);
  color: var(--muted);
  padding: 10px 14px;
}

.brewery-stats-row b {
  color: var(--cyan);
}

.brewery-toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.brewery-toolbar label {
  flex: 1;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.brewery-toolbar input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(7, 11, 15, 0.78);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
}

.brewery-toolbar input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(173, 243, 253, 0.08);
}

.brewery-toolbar button,
.brewery-filter-row button {
  border: 1px solid var(--line);
  background: rgba(18, 25, 31, 0.72);
  color: var(--muted);
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 800;
}

.brewery-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.brewery-filter-row button.is-active,
.brewery-filter-row button:hover,
.brewery-toolbar button:hover {
  color: var(--cyan);
  border-color: var(--line-strong);
  background: rgba(173, 243, 253, 0.08);
}

.brewery-filter-row span {
  color: var(--gold);
}

.brewery-count {
  margin: 0 0 18px;
  color: var(--muted);
}

.brewery-empty {
  padding: 22px;
  border: 1px dashed var(--line-strong);
  background: rgba(18, 25, 31, 0.5);
  margin-bottom: 18px;
}

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

.brewery-recipe-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 25, 31, 0.92), rgba(10, 15, 20, 0.94));
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

.brewery-recipe-card header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.brewery-color {
  width: 16px;
  height: 48px;
  background: var(--drink-color, var(--gold));
  box-shadow: 0 0 24px color-mix(in srgb, var(--drink-color, var(--gold)) 55%, transparent);
}

.brewery-recipe-card time {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brewery-recipe-card h4 {
  margin: 3px 0 4px;
  font-size: 21px;
  line-height: 1.15;
}

.brewery-recipe-card code {
  color: var(--faint);
  font-size: 12px;
}

.brewery-recipe-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.brewery-recipe-stats span {
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
}

.brewery-recipe-stats span:nth-child(3n) {
  border-right: 0;
}

.brewery-recipe-stats b {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.brewery-recipe-body {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.brewery-label {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brewery-ingredients,
.brewery-quality,
.brewery-effects,
.brewery-lore {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.brewery-ingredients li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: start;
}

.brewery-ingredients strong {
  color: var(--gold);
}

.brewery-ingredients span,
.brewery-quality li,
.brewery-effects li,
.brewery-lore li {
  color: var(--muted);
}

.brewery-ingredients small {
  display: block;
  color: var(--faint);
  font-size: 12px;
}

.brewery-quality span {
  display: inline-block;
  min-width: 72px;
  color: var(--gold);
  font-size: 12px;
}

.brewery-ingredient-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.brewery-ingredient-list article {
  border: 1px solid var(--line);
  background: rgba(18, 25, 31, 0.72);
  padding: 14px;
}

.brewery-ingredient-list strong,
.brewery-ingredient-list span,
.brewery-ingredient-list code {
  display: block;
}

.brewery-ingredient-list strong {
  color: var(--text);
}

.brewery-ingredient-list span {
  color: var(--muted);
  margin-top: 4px;
}

.brewery-ingredient-list code {
  color: var(--faint);
  margin-top: 8px;
  font-size: 12px;
}

@media (max-width: 980px) {
  .brewery-guide-grid,
  .brewery-recipe-grid,
  .brewery-ingredient-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brewery-toolbar {
    display: grid;
  }

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

  .brewery-recipe-stats span:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .brewery-recipe-stats span:nth-child(2n) {
    border-right: 0;
  }
}


.brewery-guide-actions {
  margin-top: 16px;
}

.brewery-guide-actions .guide-open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  background: rgba(173, 243, 253, 0.08);
  color: var(--cyan);
  font-weight: 900;
}


.brewery-variant-note {
  display: block;
  color: var(--faint);
  font-size: 12px;
  margin-top: 6px;
}

/* Wider desktop guide pages */
@media (min-width: 1180px) {
  .guides-page .guides-section > .container {
    width: min(1520px, calc(100% - 56px));
  }

  .guides-page .guides-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: clamp(24px, 2.6vw, 40px);
  }

  .brewery-page .brewery-process-card {
    grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1.28fr);
  }

  .brewery-page .brewery-process-card img {
    width: min(100%, 460px);
  }

  .brewery-page .brewery-process-columns {
    grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.1fr);
  }

  .brewery-page .brewery-recipe-grid {
    grid-template-columns: repeat(2, minmax(430px, 1fr));
  }
}

@media (min-width: 1620px) {
  .guides-page .guides-section > .container {
    width: min(1640px, calc(100% - 72px));
  }

  .brewery-page .brewery-recipe-grid {
    grid-template-columns: repeat(2, minmax(520px, 1fr));
  }
}

/* Brewery recipes: three columns on wide desktop */
@media (min-width: 1320px) {
  .brewery-page .brewery-recipe-grid {
    grid-template-columns: repeat(3, minmax(300px, 1fr));
  }
}

@media (min-width: 1620px) {
  .brewery-page .brewery-recipe-grid {
    grid-template-columns: repeat(3, minmax(360px, 1fr));
  }
}

/* Brewery filters: no background flash on click */
body {
  background-attachment: fixed;
  background-size: 100vw 100vh;
}

.brewery-page .brewery-filter-row button,
.brewery-page .brewery-filter-row button:hover,
.brewery-page .brewery-filter-row button:focus,
.brewery-page .brewery-filter-row button:focus-visible,
.brewery-page .brewery-filter-row button:active,
.brewery-page .brewery-filter-row button.is-active,
.brewery-page .brewery-filter-row button.is-active:hover,
.brewery-page .brewery-filter-row button.is-active:focus,
.brewery-page .brewery-filter-row button.is-active:focus-visible,
.brewery-page .brewery-filter-row button.is-active:active {
  appearance: none;
  background: rgba(18, 25, 31, 0.72) !important;
  transition: color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.brewery-page .brewery-filter-row button:hover,
.brewery-page .brewery-filter-row button:focus-visible {
  color: var(--cyan);
  border-color: rgba(173, 243, 253, 0.3);
}

.brewery-page .brewery-filter-row button:focus {
  outline: none;
}

.brewery-page .brewery-filter-row button.is-active,
.brewery-page .brewery-filter-row button.is-active:hover,
.brewery-page .brewery-filter-row button.is-active:focus,
.brewery-page .brewery-filter-row button.is-active:focus-visible,
.brewery-page .brewery-filter-row button.is-active:active {
  color: var(--text);
  border-color: rgba(214, 145, 57, 0.58);
  box-shadow: inset 0 -2px 0 var(--gold), 0 0 0 1px rgba(214, 145, 57, 0.08);
}

.brewery-page .brewery-filter-row button.is-active span {
  color: var(--gold);
}
