/* ===== MINECRAFT ANCIENT CITY SITE SYSTEM ===== */
:root {
  --mc-void: #080b0c;
  --mc-deepslate: #101517;
  --mc-stone: #171d1f;
  --mc-surface: #1d2426;
  --mc-parchment: #f4f2ea;
  --mc-muted: #aaafae;
  --mc-grass: #63a636;
  --mc-emerald: #6fad42;
  --mc-dirt: #3d2e24;
  --mc-torch: #e5a348;
  --mc-border: rgba(155, 93, 229, 0.2);
  --mc-nav: #0d1012;
  --mc-nav-border: rgba(155, 93, 229, 0.25);
  --mc-purple: #9b5de5;
  --mc-purple-dark: #6e3fb5;
  --mc-purple-shadow: #4a2878;
  --rift-soul: #35d6d0;
  --font-display: "Russo One", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --nav-h: 70px;
  --announce-h: 38px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--mc-void);
  color: var(--mc-parchment);
  -webkit-font-smoothing: antialiased;
}

.font-display { font-family: var(--font-display); }

/* ===== FIXED TOP: NAV + ANNOUNCE ===== */
#summit-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

#rift-header,
.rift-header {
  background: linear-gradient(180deg, #0d1012 0%, var(--mc-nav) 100%);
  border-bottom: 1px solid var(--mc-nav-border);
  height: var(--nav-h);
  transition: box-shadow 0.2s;
  box-shadow: 0 1px 0 rgba(53, 214, 208, 0.05);
}

#rift-header.is-scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.rift-nav-shell {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) { .rift-nav-shell { padding: 0 1.5rem; } }
@media (min-width: 1024px) {
  .rift-nav-shell {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    padding: 0 2rem;
  }
}

.rift-nav-brand { display: flex; align-items: center; min-width: 0; }

.rift-brand-mark {
  display: block;
  height: 2rem;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.rift-brand-text {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mc-parchment);
  line-height: 1;
}

@media (min-width: 640px) {
  .rift-brand-mark { height: 2.25rem; }
  .rift-brand-text { font-size: 1.25rem; }
}
@media (min-width: 1024px) {
  .rift-brand-mark { height: 2.75rem; }
  .rift-brand-text { font-size: 1.375rem; }
}

.rift-nav-links {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
}

@media (min-width: 1024px) { .rift-nav-links { display: flex; } }

.rift-rail-link {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.rift-rail-link:hover,
.rift-rail-link:hover {
  opacity: 1;
  color: #fff;
}

.rift-rail-link.is-active,
.rift-rail-link.is-active {
  color: var(--rift-soul, #35d6d0);
}

.rift-nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

@media (min-width: 1024px) { .rift-nav-actions { margin-left: 0; } }

@media (min-width: 1024px) {
  .sr-wide { display: none !important; }
  #rift-menu-btn { display: none !important; }
  .rift-brand-anchor { padding-left: 0 !important; }
}

@media (max-width: 1023px) {
  .sr-narrow { display: none !important; }
}

@media (min-width: 640px) {
  .sm-show { display: inline-flex !important; }
}

.grid-2-lg {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .grid-2-lg { grid-template-columns: 1fr 1fr; }
}

#rift-menu-btn {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.5rem;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  z-index: 20;
  background: transparent;
  cursor: pointer;
}

.rift-brand-anchor { padding-left: 3rem; text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; }

.rift-brand-name {
  display: none;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mc-muted);
  line-height: 1.1;
}

@media (min-width: 640px) {
  .rift-brand-name { display: inline-block; }
}

.rift-mobile-link {
  display: block;
  padding: 0.5rem 0;
}

#rift-mobile-menu {
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--mc-nav);
  border-bottom: 1px solid var(--mc-nav-border);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#rift-mobile-menu.hidden { display: none; }

.rift-announce {
  height: var(--announce-h);
  background: #1a2332;
  border-bottom: 1px solid #0f141c;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c8d4e8;
  text-align: center;
  background-image: linear-gradient(90deg, transparent, rgba(80, 120, 180, 0.08) 50%, transparent);
}

.rift-announce span { color: #8eb4ff; }

/* ===== BUTTONS ===== */
.forge-emerald {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mc-grass);
  color: #fff;
  border: 2px solid #4a7028;
  border-bottom: 4px solid #2d4818;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.18);
  border-radius: 0;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
  transition: filter 0.18s, transform 0.18s, border-bottom-width 0.12s, box-shadow 0.18s;
}

.forge-emerald:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.forge-emerald:active {
  transform: translateY(2px);
  border-bottom-width: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Site-wide Download CTA (nav, FAB, page CTAs) */
.forge-emerald-dl {
  padding: 0.625rem 1.375rem;
  font-size: 0.875rem;
  min-height: 2.5rem;
}

.rift-mobile-dl {
  width: 100%;
  margin-top: 0.5rem;
  text-align: center;
}

.rift-fab-dl.forge-emerald-dl {
  padding: 0.75rem 1.125rem;
  font-size: 0.875rem;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.45);
}

.forge-emerald-lg {
  padding: 0.875rem 2.25rem;
  font-size: 0.9375rem;
}

.forge-amethyst {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mc-purple);
  color: #fff;
  border: 2px solid var(--mc-purple-dark);
  box-shadow: inset 0 2px rgba(255, 255, 255, 0.25), 0 4px 0 var(--mc-purple-shadow);
  border-radius: 0;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  padding: 0.875rem 2rem;
  transition: filter 0.18s, transform 0.18s, box-shadow 0.18s;
}

.forge-amethyst:hover { filter: brightness(1.12); transform: translateY(-1px); }
.forge-amethyst:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--mc-purple-shadow); }

.forge-slate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mc-stone);
  color: var(--mc-parchment);
  border: 2px solid var(--mc-border);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 3px 0 #1a1d1a;
  border-radius: 0;
  text-decoration: none;
  font-weight: 500;
  transition: border-color 0.2s, transform 0.18s;
}

.forge-slate:hover { border-color: var(--mc-muted); }
.forge-slate:active { transform: translateY(2px); }

/* ===== PANELS & BLOCKS ===== */
.stone-panel {
  background: var(--mc-surface);
  border: 2px solid var(--mc-border);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 4px 0 rgba(0, 0, 0, 0.35);
  border-radius: 0;
}

.stone-panel-interactive {
  transition: transform 0.22s, border-color 0.22s;
}

.stone-panel-interactive:hover {
  transform: translateY(-2px);
  border-color: #4a524c;
}

.deepslate-panel {
  background: #1c1e1b;
  border: 2px solid #333830;
  box-shadow: inset 0 2px rgba(255, 255, 255, 0.04), 0 6px 0 rgba(0, 0, 0, 0.45);
  border-radius: 0;
}

/* ===== DIVIDERS ===== */
.divider-grass {
  height: 14px;
  background: linear-gradient(to bottom, var(--mc-grass) 0%, var(--mc-grass) 42%, var(--mc-dirt) 42%, var(--mc-dirt) 100%);
  clip-path: polygon(0 0, 3% 100%, 7% 0, 11% 100%, 15% 0, 19% 100%, 23% 0, 27% 100%, 31% 0, 35% 100%, 39% 0, 43% 100%, 47% 0, 51% 100%, 55% 0, 59% 100%, 63% 0, 67% 100%, 71% 0, 75% 100%, 79% 0, 83% 100%, 87% 0, 91% 100%, 95% 0, 100% 100%, 100% 0);
}

.divider-dirt {
  height: 12px;
  background: linear-gradient(to bottom, var(--mc-dirt) 0%, #4a3525 100%);
  clip-path: polygon(0 100%, 0 40%, 4% 40%, 4% 70%, 8% 70%, 8% 20%, 12% 20%, 12% 100%, 16% 100%, 16% 50%, 20% 50%, 20% 30%, 24% 30%, 24% 80%, 28% 80%, 28% 10%, 32% 10%, 32% 100%, 36% 100%, 36% 45%, 40% 45%, 40% 65%, 44% 65%, 44% 25%, 48% 25%, 48% 100%, 52% 100%, 52% 55%, 56% 55%, 56% 35%, 60% 35%, 60% 75%, 64% 75%, 64% 15%, 68% 15%, 68% 100%, 72% 100%, 72% 40%, 76% 40%, 76% 60%, 80% 60%, 80% 20%, 84% 20%, 84% 100%, 88% 100%, 88% 50%, 92% 50%, 92% 70%, 96% 70%, 96% 30%, 100% 30%, 100% 100%);
}

.divider-stone {
  height: 10px;
  background: var(--mc-stone);
  border-top: 2px solid var(--mc-border);
  border-bottom: 2px solid #1a1d1a;
}

.divider-deepslate {
  height: 16px;
  background: #1a1c19;
  clip-path: polygon(0 0, 5% 100%, 10% 0, 15% 100%, 20% 0, 25% 100%, 30% 0, 35% 100%, 40% 0, 45% 100%, 50% 0, 55% 100%, 60% 0, 65% 100%, 70% 0, 75% 100%, 80% 0, 85% 100%, 90% 0, 95% 100%, 100% 0);
}

/* ===== MOSAIC ===== */
.block-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .block-mosaic { grid-template-columns: repeat(2, 1fr); }
}

.mosaic-block {
  background: var(--mc-surface);
  border: 2px solid var(--mc-border);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
  padding: 1.25rem;
  transition: transform 0.22s, border-color 0.22s;
  border-radius: 0;
}

.mosaic-block:hover {
  transform: translateY(-2px);
  border-color: #5a635c;
}

.mosaic-block.span-2 { grid-column: span 2; }
.mosaic-block.span-2-row { grid-column: span 2; grid-row: span 2; }
.mosaic-block.offset-y { transform: translateY(8px); }
.mosaic-block.offset-y:hover { transform: translateY(6px); }

/* ===== TABLES & ACCORDION ===== */
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.compare-table th, .compare-table td {
  border: 2px solid var(--mc-border);
  padding: 0.75rem 1rem;
  text-align: left;
}
.compare-table th { background: var(--mc-stone); font-weight: 600; }
.compare-table tr:nth-child(even) td { background: rgba(32, 37, 33, 0.6); }
.compare-table .bedrock-yes { color: var(--mc-emerald); }

[data-accordion-panel] { overflow: hidden; }

.accordion-block .accordion-trigger {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  font-weight: 600;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  font-size: 0.9375rem;
}

/* ===== PAGE SECTIONS ===== */
.section-cave {
  background: linear-gradient(180deg, #121411 0%, var(--mc-deepslate) 12%, var(--mc-deepslate) 100%);
  position: relative;
}

.section-deepslate { background: var(--mc-deepslate); }
.section-stone { background: var(--mc-surface); }

.content-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) { .content-wrap { padding: 0 1.5rem; } }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.section-py { padding: 4rem 0; }
@media (min-width: 768px) { .section-py { padding: 5rem 0; } }

/* ===== PAGE HERO (secondary pages) ===== */
.page-hero {
  position: relative;
  padding-top: calc(var(--nav-h) + var(--announce-h) + 3rem);
  padding-bottom: 3rem;
  overflow: hidden;
  min-height: 320px;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(12, 13, 12, 0.55) 0%, rgba(12, 13, 12, 0.85) 100%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.95;
  margin: 0;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.4);
}

.breadcrumb {
  font-size: 0.8125rem;
  color: var(--mc-muted);
  margin-bottom: 0.75rem;
}

.breadcrumb a { color: var(--mc-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--mc-parchment); }

/* ===== FOOTER & FAB ===== */
.site-footer {
  background: var(--mc-deepslate);
  border-top: 2px solid var(--mc-border);
  padding: 3rem 0;
}

.rift-fab-dl {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 40;
}

/* ===== LIGHTBOX ===== */
#rift-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#rift-lightbox.hidden { display: none; }

#rift-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 0;
}

#rift-lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border: 2px solid var(--mc-border);
}

:focus-visible {
  outline: 2px solid var(--mc-torch);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
