/* =========================================================
   DonutSMP — style.css
   ========================================================= */

:root {
  --bg: #000000;
  --card-bg: #16161d;
  --card-bg-2: #1d1d26;
  --donut: #60a5fa;
  --donut-2: #3b82f6;
  --text: #eef0f5;
  --muted: #9a9aa8;

  --font-pixel: "Press Start 2P", monospace;
  --font-nav: "Montserrat", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius: 20px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  animation: page-fade-in 0.28s ease-out both;
}

@keyframes page-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =========================================================
   CUSTOM CURSOR — crystal
   ========================================================= */
html, body {
  cursor: url("crystal.png") 16 16, auto;
}

a,
button,
.copyable,
.copy-trigger,
.carousel-arrow,
.carousel-dot,
.blog-toggle,
.rule summary,
.faq-item summary {
  cursor: url("crystal.png") 16 16, pointer;
}

input,
textarea {
  cursor: text;
}

/* =========================================================
   NAV HOVER — ender pearl cursor
   ========================================================= */
.nav-link,
.nav-link * {
  cursor: url("pearl.png") 16 16, pointer !important;
}

/* =========================================================
   BACKGROUND
   ========================================================= */
.liquid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #000;
}

/* =========================================================
   CARD SURFACE
   ========================================================= */
.liquid-glass {
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* =========================================================
   HEADER / BRAND
   ========================================================= */
.site-header {
  padding: 16px 22px 0;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  filter:
    drop-shadow(0 0 16px rgba(96, 165, 250, 0.55))
    drop-shadow(0 0 32px rgba(59, 130, 246, 0.30));
  animation: donut-spin 12s linear infinite;
  transform-origin: center;
}

@keyframes donut-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.brand-name {
  font-family: var(--font-pixel);
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 1.5px;
  color: var(--text);
  display: inline-block;
  text-shadow:
    0 0 20px rgba(96, 165, 250, 0.55),
    0 0 50px rgba(59, 130, 246, 0.30),
    3px 3px 0 rgba(0, 0, 0, 0.55);
}

/* =========================================================
   YOUTUBE BUTTON (top-left)
   ========================================================= */
.youtube-btn {
  position: absolute;
  top: 16px;
  left: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--card-bg-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.3px;
  cursor: url("pearl.png") 16 16, pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  z-index: 3;
}

.youtube-btn:hover {
  color: #ffffff;
  background: #ff0033;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(255, 0, 51, 0.45);
}

.youtube-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.youtube-btn span { line-height: 1; }

/* =========================================================
   SUPPORT BUTTON (top-right)
   ========================================================= */
.support-btn {
  position: absolute;
  top: 16px;
  right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--card-bg-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.3px;
  cursor: url("pearl.png") 16 16, pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  z-index: 3;
}

.support-btn:hover {
  color: #0b1220;
  background: linear-gradient(135deg, var(--donut), var(--donut-2));
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(96, 165, 250, 0.45);
}

.support-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.support-btn span { line-height: 1; }

/* ---------- SERVER ADDRESS / PORT ---------- */
.brand-server {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-family: var(--font-pixel);
}

.server-address,
.server-port,
.copy-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  cursor: url("crystal.png") 16 16, pointer;
  font: inherit;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.server-address {
  font-family: var(--font-pixel);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text);
  text-shadow:
    0 0 12px rgba(96, 165, 250, 0.45),
    2px 2px 0 rgba(0, 0, 0, 0.55);
}

.server-address:hover { color: var(--donut); }

.server-port {
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--donut);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(96, 165, 250, 0.10);
  border: 1px solid rgba(96, 165, 250, 0.28);
}

.server-port:hover {
  background: rgba(96, 165, 250, 0.18);
  transform: translateY(-1px);
}

.copy-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  color: var(--muted);
}

.copy-trigger:hover {
  color: var(--donut);
  transform: scale(1.12);
}

.copy-trigger .copy-icon {
  width: 14px;
  height: 14px;
  opacity: 1;
}

.copy-trigger.copied { color: #4ade80; }
.copyable.copied { color: #4ade80 !important; }

/* =========================================================
   LIVE PLAYER STATUS
   ========================================================= */
.player-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card-bg-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f87171;
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.6);
  transition: background 0.25s ease, box-shadow 0.25s ease;
  flex: 0 0 auto;
}

.status-dot.online {
  background: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.7);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

.status-label { color: var(--muted); font-weight: 500; }

.status-count {
  color: var(--donut);
  font-weight: 700;
  letter-spacing: 0.3px;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.35);
  font-variant-numeric: tabular-nums;
}

/* ---------- LOADING + TIMESTAMP ---------- */
.player-status .status-count {
  transition: opacity 0.3s ease;
}

.player-status.is-loading .status-count {
  background: linear-gradient(
    90deg,
    rgba(154, 154, 168, 0.4) 0%,
    rgba(230, 236, 245, 0.95) 50%,
    rgba(154, 154, 168, 0.4) 100%
  );
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
  animation: shimmer 1.4s linear infinite;
}

.player-status.is-loading .status-dot {
  opacity: 0.35;
  animation: none;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.player-updated {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.2px;
  opacity: 0.6;
  min-height: 14px;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.4s ease;
}

.player-updated:empty { opacity: 0; }

.player-updated.is-stale {
  color: #f87171;
  opacity: 0.8;
}

/* =========================================================
   NAV BAR
   ========================================================= */
.main-nav {
  margin-top: 4px;
  border-radius: 999px;
  padding: 5px;
  background: var(--card-bg-2);
  font-family: var(--font-nav);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 3px;
  font-family: var(--font-nav);
}

.nav-link {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.3px;
  transition: color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link[aria-current="page"] {
  color: #0b1220;
  background: linear-gradient(135deg, var(--donut), var(--donut-2));
  box-shadow: 0 6px 18px rgba(96, 165, 250, 0.40);
}

/* =========================================================
   MAIN
   ========================================================= */
.site-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 22px 60px;
  position: relative;
  z-index: 2;
}

.site-main:has(.rules-list),
.site-main:has(.store),
.site-main:has(.terms-content) {
  max-width: 1100px;
}

.blog {
  display: flex;
  flex-direction: column;
  padding-top: 40px;
}

.blog h2 {
  font-family: var(--font-pixel);
  font-size: 13px;
  letter-spacing: 1.5px;
  margin: 0 0 14px;
  color: var(--text);
  text-align: center;
  text-shadow:
    0 0 16px rgba(96, 165, 250, 0.35),
    2px 2px 0 rgba(0, 0, 0, 0.5);
}

/* =========================================================
   BLOG CAROUSEL
   ========================================================= */
.blog-carousel {
  position: relative;
  padding: 0 60px;
}

.blog-wheel {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
}

.blog-card {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transition:
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
  will-change: transform, opacity;
  overflow: hidden;
}

.blog-card[data-position="front"] {
  transform: translateX(0) scale(1);
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
}

.blog-card[data-position="next"] {
  transform: translateX(58%) scale(0.9);
  opacity: 0.35;
  z-index: 2;
  pointer-events: none;
}

.blog-card[data-position="prev"] {
  transform: translateX(-58%) scale(0.9);
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
}

/* ---------- ARROWS ---------- */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--card-bg-2);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: url("crystal.png") 16 16, pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.carousel-arrow:hover {
  background: linear-gradient(135deg, var(--donut), var(--donut-2));
  color: #0b1220;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 10px 28px rgba(96, 165, 250, 0.45);
}

.carousel-arrow:active { transform: translateY(-50%) scale(0.98); }

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

/* ---------- DOTS ---------- */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.20);
  cursor: url("crystal.png") 16 16, pointer;
  transition: background 0.2s ease, width 0.2s ease;
  padding: 0;
}

.carousel-dot.is-active {
  width: 24px;
  background: linear-gradient(135deg, var(--donut), var(--donut-2));
}

/* ---------- CARD CONTENT ---------- */
.blog-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #0f0f14;
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-body { padding: 16px 22px 18px; }

.blog-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.blog-date {
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 11px;
  color: var(--donut);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.blog-tag {
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-title {
  margin: 0 0 10px;
  font-family: var(--font-pixel);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--text);
  line-height: 1.65;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.25);
}

.blog-excerpt {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
}

/* ---------- READ MORE BUTTON ---------- */
.blog-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 7px 14px;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 999px;
  color: var(--donut);
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.4px;
  line-height: 1;
  text-decoration: none;
  cursor: url("crystal.png") 16 16, pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
}

.blog-toggle:hover {
  background: rgba(96, 165, 250, 0.22);
  border-color: rgba(96, 165, 250, 0.55);
  text-decoration: none;
}

.blog-card:not([data-position="front"]) .blog-toggle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ---------- VIEW ALL UPDATES ---------- */
.blog-view-all {
  text-align: center;
  margin-top: 20px;
}

.blog-view-all a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--card-bg-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  cursor: url("pearl.png") 16 16, pointer;
}

.blog-view-all a:hover {
  color: var(--text);
  border-color: rgba(96, 165, 250, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(96, 165, 250, 0.20);
}

/* =========================================================
   SERVER INFO CARD
   ========================================================= */
.server-info {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.server-info h2 {
  font-family: var(--font-pixel);
  font-size: 13px;
  letter-spacing: 1.5px;
  margin: 0;
  color: var(--text);
  text-align: center;
  text-shadow:
    0 0 16px rgba(96, 165, 250, 0.35),
    2px 2px 0 rgba(0, 0, 0, 0.5);
}

.server-info-card {
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
  padding: 6px 22px;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.server-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.server-info-row:last-child { border-bottom: none; }

.server-info-label {
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  flex: 0 0 auto;
}

.server-info-value {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  text-align: right;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-info-motd {
  font-style: italic;
  color: var(--donut);
  text-shadow: 0 0 8px rgba(96, 165, 250, 0.35);
}

/* =========================================================
   RULES PAGE
   ========================================================= */
.rules h2 {
  font-family: var(--font-pixel);
  font-size: 16px;
  letter-spacing: 1.5px;
  margin: 0 0 24px;
  color: var(--text);
  text-align: center;
  text-shadow:
    0 0 18px rgba(96, 165, 250, 0.35),
    2px 2px 0 rgba(0, 0, 0, 0.5);
}

.rules-disclaimer {
  text-align: center;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-style: italic;
  margin: -12px 0 24px;
  opacity: 0.8;
}

.rules-list {
  border-radius: var(--radius);
  padding: 10px;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  align-items: start;
}

.rule {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.rule:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.10);
}

.rule[open] {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(96, 165, 250, 0.30);
  grid-column: span 2;
}

.rule summary {
  list-style: none;
  cursor: url("crystal.png") 16 16, pointer;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  user-select: none;
}

.rule summary::-webkit-details-marker { display: none; }
.rule summary::marker { display: none; }

.rule-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--text);
  letter-spacing: 0.2px;
  line-height: 1.45;
}

.rule-chevron {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.25s ease, border-color 0.25s ease;
  margin-top: -3px;
}

.rule[open] .rule-chevron {
  transform: rotate(-135deg);
  margin-top: 3px;
  border-color: var(--donut);
}

.rule summary:hover .rule-chevron { border-color: var(--donut); }

.rule-body {
  padding: 0 14px 12px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12.5px;
  line-height: 1.6;
}

/* =========================================================
   STORE PAGE
   ========================================================= */
.store h2 {
  font-family: var(--font-pixel);
  font-size: 16px;
  letter-spacing: 1.5px;
  margin: 0 0 8px;
  color: var(--text);
  text-align: center;
  text-shadow:
    0 0 18px rgba(96, 165, 250, 0.35),
    2px 2px 0 rgba(0, 0, 0, 0.5);
}

.store-tagline {
  text-align: center;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14.5px;
  margin: 0 0 6px;
}

.store-notice {
  text-align: center;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  margin: -6px 0 20px;
  opacity: 0.75;
}

.store-section {
  font-family: var(--font-pixel);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--text);
  margin: 28px 0 16px;
  text-shadow: 0 0 12px rgba(96, 165, 250, 0.30);
}

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

.rank-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.rank-card.is-featured {
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(96, 165, 250, 0.15),
    0 0 40px rgba(96, 165, 250, 0.15);
}

.rank-name {
  font-family: var(--font-pixel);
  font-size: 14px;
  letter-spacing: 1px;
  margin: 0;
  color: var(--donut);
  text-shadow: 0 0 14px rgba(96, 165, 250, 0.55);
}

.rank-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rank-perks li {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  padding-left: 18px;
  position: relative;
}

.rank-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--donut), var(--donut-2));
  transform: translateY(-50%);
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.65);
}

.rank-price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.price-amount {
  font-family: var(--font-pixel);
  font-size: 18px;
  color: var(--text);
  letter-spacing: 0.5px;
}

.price-unit {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
}

.shard-card {
  aspect-ratio: 1 / 1;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.shard-image-wrap {
  position: relative;
  flex: 1 1 72%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.shard-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(96, 165, 250, 0.30));
}

.shard-bonus {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.4px;
  color: #0b1220;
  background: linear-gradient(135deg, var(--donut), var(--donut-2));
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(96, 165, 250, 0.45);
}

.shard-body {
  flex: 1 1 28%;
  padding: 10px 14px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 0;
}

.shard-amount {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--text);
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.25);
  line-height: 1.5;
}

.shard-base {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
}

.shard-price {
  margin-top: 4px;
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--donut);
  letter-spacing: 0.5px;
  text-shadow: 0 0 12px rgba(96, 165, 250, 0.45);
  line-height: 1.5;
}

.shard-price .price-unit {
  font-family: var(--font-body);
  font-size: 11.5px;
  color: var(--muted);
  margin-left: 2px;
}

/* ---------- STORE LINKS ---------- */
.rank-card,
.shard-card {
  text-decoration: none;
  color: inherit;
  cursor: url("crystal.png") 16 16, pointer;
}

.rank-card:focus-visible,
.shard-card:focus-visible {
  outline: 2px solid var(--donut);
  outline-offset: 3px;
}

.rank-card:hover,
.shard-card:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.30);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(96, 165, 250, 0.25);
}

.rank-card.is-featured:hover {
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(96, 165, 250, 0.25),
    0 0 50px rgba(96, 165, 250, 0.22);
}

/* =========================================================
   COMMUNITY SECTION
   ========================================================= */
.community {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.community h2 {
  font-family: var(--font-pixel);
  font-size: 13px;
  letter-spacing: 1.5px;
  margin: 0;
  color: var(--text);
  text-align: center;
  text-shadow:
    0 0 16px rgba(96, 165, 250, 0.35),
    2px 2px 0 rgba(0, 0, 0, 0.5);
}

.discord-widget {
  max-width: 380px;
  margin: 0 auto;
}

.discord-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.discord-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.discord-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--donut), var(--donut-2));
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.45);
  flex: 0 0 auto;
  overflow: hidden;
  padding: 6px;
}

.discord-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
}

.discord-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.discord-name {
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.discord-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
}

.discord-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
  animation: pulse-dot 2s ease-in-out infinite;
}

.discord-join {
  display: block;
  text-align: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--donut), var(--donut-2));
  color: #0b1220;
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: url("crystal.png") 16 16, pointer;
}

.discord-join:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(96, 165, 250, 0.45);
}

/* =========================================================
   ABOUT SECTION
   ========================================================= */
.about {
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.about h2 {
  font-family: var(--font-pixel);
  font-size: 13px;
  letter-spacing: 1.5px;
  margin: 0;
  color: var(--text);
  text-align: center;
  text-shadow:
    0 0 16px rgba(96, 165, 250, 0.35),
    2px 2px 0 rgba(0, 0, 0, 0.5);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

.about-card {
  position: relative;
  padding: 24px 28px 26px 32px;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.about-card::before,
.terms-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--donut), var(--donut-2));
  opacity: 0.85;
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.55);
}

.about-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.28);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(96, 165, 250, 0.12);
}

.about-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.about-num {
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #0b1220;
  background: linear-gradient(135deg, var(--donut), var(--donut-2));
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  box-shadow:
    0 4px 14px rgba(96, 165, 250, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  flex: 0 0 auto;
}

.about-section {
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
  color: var(--text);
  margin: 0;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.25);
}

.about-content p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 12px;
}

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

.about-content strong {
  color: var(--text);
  font-weight: 600;
}

/* =========================================================
   TERMS PAGE
   ========================================================= */
.terms h2 {
  font-family: var(--font-pixel);
  font-size: 16px;
  letter-spacing: 1.5px;
  margin: 0 0 24px;
  color: var(--text);
  text-align: center;
  text-shadow:
    0 0 18px rgba(96, 165, 250, 0.35),
    2px 2px 0 rgba(0, 0, 0, 0.5);
}

.terms-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

.terms-card {
  position: relative;
  padding: 24px 28px 26px 32px;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.terms-card p {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 12px;
}

.terms-card p:last-child { margin-bottom: 0; }

.terms-card strong {
  color: var(--text);
  font-weight: 600;
}

.terms-card a {
  color: var(--donut);
  text-decoration: none;
  border-bottom: 1px solid rgba(96, 165, 250, 0.35);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.terms-card a:hover {
  color: var(--text);
  border-color: var(--donut);
}

.terms-card code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  background: rgba(96, 165, 250, 0.10);
  color: var(--donut);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(96, 165, 250, 0.20);
}

.terms-list {
  list-style: none;
  margin: 12px 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.terms-list li {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}

.terms-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--donut), var(--donut-2));
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.55);
}

.terms-list li strong {
  color: var(--text);
  font-weight: 600;
}

.terms-updated {
  text-align: center;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-style: italic;
  margin: 24px 0 0;
  opacity: 0.7;
}

/* =========================================================
   FAQ PAGE
   ========================================================= */
.faq h2 {
  font-family: var(--font-pixel);
  font-size: 16px;
  letter-spacing: 1.5px;
  margin: 0 0 8px;
  color: var(--text);
  text-align: center;
  text-shadow:
    0 0 18px rgba(96, 165, 250, 0.35),
    2px 2px 0 rgba(0, 0, 0, 0.5);
}

.faq-tagline {
  text-align: center;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14px;
  margin: 0 0 32px;
}

.faq-section {
  font-family: var(--font-pixel);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--text);
  margin: 32px 0 14px;
  text-shadow: 0 0 12px rgba(96, 165, 250, 0.30);
  text-align: center;
}

.faq-section:first-of-type { margin-top: 0; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}

.faq-item[open] {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(96, 165, 250, 0.30);
}

.faq-item summary {
  list-style: none;
  cursor: url("crystal.png") 16 16, pointer;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }

.faq-question {
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
  letter-spacing: 0.2px;
  line-height: 1.5;
}

.faq-item[open] .faq-question { color: var(--donut); }

.faq-answer {
  padding: 0 20px 18px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
}

.faq-answer strong {
  color: var(--text);
  font-weight: 600;
}

.faq-answer a {
  color: var(--donut);
  text-decoration: none;
  border-bottom: 1px solid rgba(96, 165, 250, 0.35);
}

.faq-answer a:hover {
  color: var(--text);
  border-color: var(--donut);
}

.faq-answer code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  background: rgba(96, 165, 250, 0.10);
  color: var(--donut);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(96, 165, 250, 0.20);
}

/* =========================================================
   UPDATES ARCHIVE PAGE
   ========================================================= */
.updates h2 {
  font-family: var(--font-pixel);
  font-size: 16px;
  letter-spacing: 1.5px;
  margin: 0 0 8px;
  color: var(--text);
  text-align: center;
  text-shadow:
    0 0 18px rgba(96, 165, 250, 0.35),
    2px 2px 0 rgba(0, 0, 0, 0.5);
}

.updates-tagline {
  text-align: center;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14px;
  margin: 0 0 40px;
}

.updates-timeline {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 40px;
}

.updates-timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(96, 165, 250, 0.6),
    rgba(96, 165, 250, 0.15) 80%,
    transparent
  );
  border-radius: 2px;
}

.update-year {
  position: relative;
  font-family: var(--font-pixel);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--donut);
  margin: 32px 0 16px;
  padding-left: 4px;
  text-shadow: 0 0 14px rgba(96, 165, 250, 0.45);
}

.update-year:first-child { margin-top: 0; }

.update-year::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--donut), var(--donut-2));
  transform: translateY(-50%);
  box-shadow:
    0 0 12px rgba(96, 165, 250, 0.7),
    0 0 0 3px rgba(96, 165, 250, 0.15);
}

.update-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px 22px 22px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  scroll-margin-top: 24px;
}

.update-card::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 24px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2px solid var(--donut);
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.55);
}

.update-card:hover {
  transform: translateX(3px);
  border-color: rgba(96, 165, 250, 0.28);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(96, 165, 250, 0.12);
}

.update-card:target {
  animation: anchor-flash 1.4s ease-out;
}

@keyframes anchor-flash {
  0%, 100% {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  }
  30% {
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow:
      0 12px 32px rgba(0, 0, 0, 0.6),
      0 0 0 2px rgba(96, 165, 250, 0.25);
  }
}

.update-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.update-date {
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.update-tag {
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}

.update-tag-event {
  color: #ffd580;
  background: rgba(255, 213, 128, 0.12);
  border: 1px solid rgba(255, 213, 128, 0.30);
}

.update-tag-rule {
  color: #f87171;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.30);
}

.update-tag-feature {
  color: var(--donut);
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.30);
}

.update-title {
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.3px;
  color: var(--text);
  margin: 0 0 12px;
  line-height: 1.4;
  text-shadow: 0 0 12px rgba(96, 165, 250, 0.20);
}

.update-text {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 10px;
}

.update-text:last-child { margin-bottom: 0; }

.update-list {
  list-style: none;
  margin: 8px 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.update-list li {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
}

.update-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--donut), var(--donut-2));
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.55);
}

.update-list li strong {
  color: var(--text);
  font-weight: 600;
}

.updates-footer-note {
  max-width: 820px;
  margin: 32px auto 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-style: italic;
  color: var(--muted);
  opacity: 0.7;
  line-height: 1.6;
}

/* =========================================================
   404 ERROR PAGE
   ========================================================= */
.error-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 320px);
  padding: 40px 0;
}

.error-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  max-width: 560px;
  width: 100%;
}

.error-block {
  width: 90px;
  height: 90px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #16161d, #0f0f14);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  animation: error-float 3.6s ease-in-out infinite;
}

.error-block-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.error-block-icon {
  font-size: 36px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
  transform: translate(-6px, -6px);
}

.error-block-icon-2 {
  position: absolute;
  transform: translate(10px, 12px) rotate(15deg);
  opacity: 0.5;
  filter: blur(0.4px) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.5));
}

@keyframes error-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-6px) rotate(-2deg); }
}

.error-code {
  font-family: var(--font-pixel);
  font-size: 68px;
  letter-spacing: 4px;
  line-height: 1;
  color: var(--text);
  text-shadow:
    0 0 24px rgba(96, 165, 250, 0.55),
    0 0 60px rgba(59, 130, 246, 0.30),
    4px 4px 0 rgba(0, 0, 0, 0.65);
}

.error-title {
  font-family: var(--font-pixel);
  font-size: 16px;
  letter-spacing: 1.5px;
  margin: 0;
  color: var(--text);
  text-shadow:
    0 0 18px rgba(96, 165, 250, 0.35),
    2px 2px 0 rgba(0, 0, 0, 0.5);
}

.error-desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  max-width: 460px;
}

.error-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  letter-spacing: 0.3px;
  cursor: url("pearl.png") 16 16, pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.error-btn-primary {
  background: linear-gradient(135deg, var(--donut), var(--donut-2));
  color: #0b1220;
  box-shadow: 0 8px 24px rgba(96, 165, 250, 0.40);
}

.error-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(96, 165, 250, 0.55);
}

.error-btn-secondary {
  background: var(--card-bg-2);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.error-btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(96, 165, 250, 0.30);
}

.error-hint {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--muted);
  opacity: 0.75;
  margin: 12px 0 0;
}

.error-hint a {
  color: var(--donut);
  text-decoration: none;
  border-bottom: 1px solid rgba(96, 165, 250, 0.35);
}

.error-hint a:hover {
  color: var(--text);
  border-color: var(--donut);
}

/* =========================================================
   FOOTER — slim
   ========================================================= */
.site-footer {
  margin-top: 80px;
  padding: 20px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 10, 15, 0.4);
  position: relative;
  z-index: 2;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 20px;
  font-family: var(--font-body);
  font-size: 11.5px;
  letter-spacing: 0.2px;
}

.footer-copy {
  color: var(--muted);
  opacity: 0.55;
  margin-right: 6px;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
  opacity: 0.75;
  transition: color 0.15s ease, opacity 0.15s ease;
  cursor: url("pearl.png") 16 16, pointer;
}

.footer-inner a:hover {
  color: var(--donut);
  opacity: 1;
}

/* =========================================================
   MINECRAFT ACHIEVEMENT TOAST
   ========================================================= */
.mc-achievement {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px 10px 12px;
  min-width: 320px;
  max-width: 380px;
  background: #1d1d1d;
  border: 2px solid #8b8b8b;
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 2px #0a0a0a,
    inset 0 2px 0 2px rgba(255, 255, 255, 0.05),
    0 10px 40px rgba(0, 0, 0, 0.7);
  transform: translateX(calc(100% + 40px));
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1), opacity 0.4s ease;
  pointer-events: none;
}

.mc-achievement.show {
  transform: translateX(0);
  opacity: 1;
}

.mc-achievement-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: #2a2a2a;
  border: 2px solid #0a0a0a;
  border-radius: 4px;
  flex: 0 0 auto;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.08);
}

.mc-achievement-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mc-achievement-title {
  font-family: var(--font-pixel);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.3px;
  color: #ffd800;
  text-shadow:
    2px 2px 0 rgba(0, 0, 0, 0.9),
    0 0 12px rgba(255, 216, 0, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mc-achievement-desc {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: #e0e0e0;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
   MINECRAFT-STYLE EXPLOSION
   ========================================================= */
.mc-boom {
  position: fixed;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 9999;
}

.mc-puff {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 68% 32%,
      transparent 58%,
      currentColor 59%
    );
  transform:
    translate(-50%, -50%)
    rotate(var(--rot, 0deg))
    scale(0.2);
  animation: mc-puff 0.8s cubic-bezier(0.15, 0.7, 0.3, 1) forwards;
  animation-delay: var(--delay);
  opacity: 0;
  color: #e6e6e6;
}

.mc-puff[data-tone="light"] {
  color: #e6e6e6;
  filter: drop-shadow(0 0 6px rgba(230, 230, 230, 0.45));
}

.mc-puff[data-tone="dark"] {
  color: #8a8a8a;
  filter: drop-shadow(0 0 6px rgba(138, 138, 138, 0.35));
}

@keyframes mc-puff {
  0% {
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg)) scale(0.2);
    opacity: 0;
  }
  15% { opacity: 0.95; }
  100% {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy)))
               rotate(var(--rot, 0deg)) scale(1.4);
    opacity: 0;
  }
}

/* =========================================================
   PAGE LOAD — purple particle vignette
   ========================================================= */
.sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 1;
  background: transparent;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  animation-name: sparkle-fall;
  animation-timing-function: cubic-bezier(0.45, 0.05, 0.55, 0.95);
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
  will-change: transform, opacity;
}

.sparkle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  background: currentColor;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 currentColor,
    -6px -4px 0 currentColor,
    6px -4px 0 currentColor,
    -4px 6px 0 currentColor,
    4px 6px 0 currentColor,
    -8px 2px 0 currentColor,
    8px -2px 0 currentColor,
    -2px -8px 0 currentColor,
    2px 8px 0 currentColor,
    -10px 0 0 currentColor,
    10px 0 0 currentColor,
    0 -10px 0 currentColor,
    0 10px 0 currentColor,
    -12px -6px 0 currentColor,
    12px 6px 0 currentColor,
    -6px 12px 0 currentColor,
    6px -12px 0 currentColor;
}

@keyframes sparkle-fall {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0;
  }
  2% {
    transform: translate(-50%, -50%) scale(1.25);
    opacity: 1;
  }
  6% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  10% {
    transform: translate(calc(-50% + 8px), calc(-50% + 4vh)) scale(0.95);
    opacity: 0.25;
  }
  14% {
    transform: translate(calc(-50% - 6px), calc(-50% + 8vh)) scale(0.9);
    opacity: 0.08;
  }
  18% {
    transform: translate(calc(-50% + 6px), calc(-50% + 14vh)) scale(0.85);
    opacity: 0;
  }
  100% {
    transform: translate(calc(-50% + 4px), calc(-50% + 100vh)) scale(0.65);
    opacity: 0;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .rules-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .rank-grid,
  .shard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .site-header { padding: 20px 14px 0; }

  .youtube-btn {
    top: 12px;
    left: 14px;
    padding: 7px 12px;
    font-size: 11.5px;
  }

  .youtube-btn span { display: none; }

  .youtube-icon {
    width: 16px;
    height: 16px;
  }

  .support-btn {
    top: 12px;
    right: 14px;
    padding: 7px 12px;
    font-size: 11.5px;
  }

  .support-btn span { display: none; }

  .support-icon {
    width: 16px;
    height: 16px;
  }

  .brand-icon { width: 36px; height: 36px; }
  .brand-name { font-size: 24px; letter-spacing: 1px; }
  .server-address { font-size: 10px; }
  .server-port { font-size: 9px; padding: 5px 8px; }
  .copy-trigger .copy-icon { width: 12px; height: 12px; }

  .player-status { font-size: 11.5px; padding: 5px 12px; }
  .player-updated { font-size: 10px; }

  .main-nav { padding: 5px; }
  .main-nav ul { flex-wrap: wrap; justify-content: center; }
  .nav-link { padding: 8px 12px; font-size: 12px; }

  .site-main {
    padding: 20px 16px 60px;
  }

  .blog { padding-top: 20px; }
  .blog h2 { font-size: 12px; margin-bottom: 16px; }
  .blog-carousel { padding: 0 8px; }

  .carousel-arrow {
    width: 34px;
    height: 34px;
  }

  .carousel-prev { left: -4px; }
  .carousel-next { right: -4px; }

  .blog-card[data-position="next"] {
    transform: translateX(48%) scale(0.92);
    opacity: 0.25;
  }

  .blog-card[data-position="prev"] {
    transform: translateX(-48%) scale(0.92);
    opacity: 0.25;
  }

  .blog-title { font-size: 10.5px; }
  .blog-excerpt { font-size: 13px; }
  .blog-body { padding: 14px 18px 16px; }

  .server-info { margin-top: 45px; }
  .server-info h2 { font-size: 12px; }
  .server-info-card { padding: 4px 16px; }
  .server-info-row { padding: 12px 0; gap: 10px; }
  .server-info-label { font-size: 11px; }
  .server-info-value { font-size: 13px; }

  .rules-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .rule[open] { grid-column: span 2; }

  .rules h2 { font-size: 13px; }
  .rules-disclaimer { font-size: 12px; }

  .store h2 { font-size: 13px; }
  .store-tagline { font-size: 13.5px; }
  .store-notice { font-size: 12px; }
  .store-section { font-size: 11px; }
  .price-amount { font-size: 16px; }
  .shard-amount { font-size: 10.5px; }
  .shard-price { font-size: 12px; }

  .about { margin-top: 50px; }
  .about h2 { font-size: 12px; }
  .about-card { padding: 20px 20px 22px 22px; }
  .about-section { font-size: 14.5px; }
  .about-content p { font-size: 14px; line-height: 1.7; }

  .terms-card { padding: 20px 20px 22px 22px; }
  .terms-card p,
  .terms-list li { font-size: 14px; }
  .terms h2 { font-size: 13px; }

  .faq h2 { font-size: 13px; }
  .faq-tagline { font-size: 13px; margin-bottom: 24px; }
  .faq-section { font-size: 11px; margin: 24px 0 12px; }
  .faq-item summary { padding: 14px 16px; }
  .faq-question { font-size: 13.5px; }
  .faq-answer { padding: 0 16px 16px; font-size: 13.5px; }

  .updates h2 { font-size: 13px; }
  .updates-tagline { font-size: 13px; margin-bottom: 28px; }
  .updates-timeline { padding-left: 26px; }
  .updates-timeline::before { left: 6px; }
  .update-year { font-size: 11px; margin: 24px 0 12px; }
  .update-year::before {
    left: -26px;
    width: 10px;
    height: 10px;
  }
  .update-card { padding: 16px 18px 18px; border-radius: 12px; }
  .update-card::before {
    left: -25px;
    width: 6px;
    height: 6px;
    top: 20px;
  }
  .update-date { font-size: 10.5px; }
  .update-title { font-size: 15px; }
  .update-text,
  .update-list li { font-size: 13.5px; }
  .updates-footer-note { font-size: 11.5px; }

  .error-page { min-height: auto; padding: 40px 0 20px; }
  .error-block { width: 72px; height: 72px; }
  .error-block-icon { font-size: 28px; }
  .error-code { font-size: 48px; letter-spacing: 3px; }
  .error-title { font-size: 13px; }
  .error-desc { font-size: 14px; }
  .error-btn { padding: 10px 18px; font-size: 12.5px; }
  .error-hint { font-size: 11.5px; }

  .site-footer {
    padding: 16px 14px;
    margin-top: 60px;
  }

  .footer-inner {
    font-size: 11px;
    gap: 4px 14px;
  }

  .footer-copy {
    margin-right: 0;
    flex-basis: 100%;
    text-align: center;
    margin-bottom: 6px;
  }

  .mc-achievement {
    top: 14px;
    right: 14px;
    left: 14px;
    min-width: 0;
    max-width: none;
    padding: 10px 14px 10px 10px;
  }

  .mc-achievement-icon {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .mc-achievement-title { font-size: 9px; }
  .mc-achievement-desc { font-size: 11.5px; }
}

@media (max-width: 560px) {
  .rank-grid,
  .shard-grid {
    grid-template-columns: 1fr;
  }

  .shard-card { aspect-ratio: auto; }

  .shard-image-wrap {
    flex: 0 0 auto;
    min-height: 160px;
  }
}

@media (max-width: 480px) {
  .rules-list {
    grid-template-columns: 1fr;
  }

  .rule[open] { grid-column: auto; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { animation: none; }
  .brand-icon { animation: none; }
  .blog-card, .nav-link { transition: none; }
  .mc-puff { animation-duration: 0.01s; }
  .sparkle { animation-duration: 0.01s; }
  .error-block { animation: none; }
  .update-card:target { animation: none; }
  .player-status.is-loading .status-count {
    animation: none;
    background: none;
    color: var(--muted);
    -webkit-text-fill-color: var(--muted);
    opacity: 0.5;
  }
}