:root {
  --bg: #0b0c10;
  --bg-2: #12151a;
  --bg-3: #181c22;
  --ink: #ffffff;
  --muted: #9aa3ad;
  --accent: #52efff;
  --accent-2: #7b5cff;
  --accent-dim: color-mix(in srgb, var(--accent) 16%, transparent);
  --line: rgba(255, 255, 255, 0.08);
  --danger: #ff5d6c;
  --radius: 14px;
  --font: "Montserrat", sans-serif;
  --container: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 480px at 70% -10%, rgba(20, 80, 70, 0.35), transparent 60%),
    radial-gradient(700px 400px at 10% 20%, rgba(82, 239, 255, 0.08), transparent 55%),
    linear-gradient(180deg, #0e1414 0%, var(--bg) 40%, #08090c 100%);
  line-height: 1.55;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.site-header,
main,
.site-footer { position: relative; z-index: 1; }

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 2rem);
}

.section-inner.narrow { max-width: 720px; }

/* Header */
.site-header-cm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.2rem, 4vw, 2.5rem);
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 12, 16, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-badge {
  width: 36px;
  height: 36px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background:
    linear-gradient(145deg, var(--accent), #1a6b62);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 35%, transparent);
}

.brand-logo { height: 34px; width: auto; display: block; }

.brand-name {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active,
.site-nav a.nav-ext { color: var(--accent); }

.nav-login {
  padding: 0.55rem 0.9rem !important;
  border-radius: 999px;
  background: #1a1f27;
  border: 1px solid var(--line);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 7px 8px;
  background: var(--accent);
}

/* Hero */
.hero-cm {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(2.5rem, 7vw, 5rem) 0 4rem;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(82, 239, 255, 0.12), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(20, 90, 70, 0.25), transparent 45%),
    linear-gradient(180deg, transparent 60%, var(--bg));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.brand-hero {
  margin: 0 0 0.8rem;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  animation: rise-in 0.7s ease both;
}

.hero-cm h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  animation: rise-in 0.8s ease 0.05s both;
}

.hero-lead {
  margin: 1.1rem 0 1.6rem;
  color: var(--muted);
  max-width: 34rem;
  font-size: 1.02rem;
  animation: rise-in 0.9s ease 0.1s both;
}

.hero-actions { animation: rise-in 1s ease 0.15s both; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-play,
.btn-primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 35%, #143b38), #0f2a28);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 24px color-mix(in srgb, var(--accent) 18%, transparent);
  min-width: 220px;
}

.btn-play:hover,
.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-buy {
  background: var(--accent-2);
  color: #fff;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  border-radius: 999px;
}

.btn-ico {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 25%, transparent);
  font-size: 0.7rem;
}

.server-pill {
  margin-top: 1.3rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  animation: rise-in 1.05s ease 0.2s both;
}

.server-pill strong { color: var(--accent); }

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #666;
}

.status-dot.is-online {
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent);
  animation: ping-dot 1.8s infinite;
}

.status-dot.is-offline { background: var(--danger); }

.hero-ip {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.text-link {
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

.hero-visual {
  position: relative;
  min-height: 380px;
  display: grid;
  place-items: center;
  animation: rise-in 1s ease 0.18s both;
}

.hero-character {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 1;
}

.hero-glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%);
  filter: blur(8px);
  animation: glow-breathe 5s ease-in-out infinite;
}

.hero-block-stack {
  position: absolute;
  inset: 18% 22% 22%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.hero-block-stack span {
  background: linear-gradient(145deg, #2a3638, #11181a);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.25);
  animation: block-bob 3.2s ease-in-out infinite;
}

.hero-block-stack span:nth-child(2) { animation-delay: .15s; background: linear-gradient(145deg, #3a4f55, #152022); }
.hero-block-stack span:nth-child(3) { animation-delay: .3s; }
.hero-block-stack span:nth-child(4) { animation-delay: .1s; height: 120%; }
.hero-block-stack span:nth-child(5) { animation-delay: .25s; background: linear-gradient(145deg, var(--accent), #1c6f75); }
.hero-block-stack span:nth-child(6) { animation-delay: .4s; }

.hero-sword {
  position: absolute;
  right: 8%;
  top: 28%;
  width: 14px;
  height: 120px;
  background: linear-gradient(180deg, #e8ffff, var(--accent), #1a4);
  border-radius: 3px;
  box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 55%, transparent);
  transform: rotate(28deg);
  animation: sword-glow 2.4s ease-in-out infinite;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  color: var(--accent);
  text-decoration: none;
  font-size: 1.4rem;
  opacity: 0.8;
  animation: bob 1.8s ease-in-out infinite;
}

/* Stats */
.stats-bar {
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.stat-cm strong {
  display: block;
  color: var(--accent);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.stat-cm p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* News feature */
.news-feature {
  position: relative;
  min-height: 380px;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.news-feature-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 12, 0.92) 10%, rgba(8, 10, 12, 0.45) 55%, rgba(8, 10, 12, 0.2)),
    radial-gradient(circle at 70% 40%, rgba(82, 239, 255, 0.15), transparent 40%),
    linear-gradient(135deg, #1a2a24, #0b1014 50%, #1b1528);
}

.news-feature-inner {
  position: relative;
  padding-top: 4rem;
  padding-bottom: 3.5rem;
  max-width: 560px;
  margin-left: clamp(1.2rem, 8vw, 10vw);
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.news-feature h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
}

.news-feature p {
  color: var(--muted);
  margin: 0 0 1.2rem;
}

/* Shop */
.shop-preview { padding: 3.5rem 0; }

.shop-card {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.6rem;
  border-radius: 18px;
  background:
    radial-gradient(500px 220px at 20% 50%, rgba(123, 92, 255, 0.28), transparent 60%),
    linear-gradient(180deg, #151821, #10131a);
  border: 1px solid rgba(123, 92, 255, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.shop-copy h2 {
  margin: 0 0 0.4rem;
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.shop-copy p { color: var(--muted); margin: 0 0 1rem; }

.shop-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.shop-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.shop-product {
  text-align: center;
  padding: 1rem 0.7rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
}

.shop-product h3 {
  margin: 0.5rem 0 0.2rem;
  font-size: 0.92rem;
}

.shop-price {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.coin-stack {
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe08a, #d4a017 60%, #8a6508);
  box-shadow: 0 0 0 3px rgba(255, 210, 100, 0.2);
}

.coin-2 { box-shadow: 0 4px 0 #a67c00, 0 0 0 3px rgba(255, 210, 100, 0.2); }
.coin-3 { box-shadow: 0 4px 0 #a67c00, 0 8px 0 #7a5a00, 0 0 0 3px rgba(255, 210, 100, 0.2); }

/* Sections general */
.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section h1,
.section h2 {
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-lead {
  margin: 0 0 2rem;
  color: var(--muted);
}

.status-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.4rem 0;
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.stat-value { font-size: 1.15rem; }

.list-heading {
  margin: 2rem 0 0.8rem;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.count-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: #042028;
  background: var(--accent);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.player-list,
.plugin-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.player-list li,
.plugin-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
}

.plugin-list li {
  background: var(--accent-dim);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}

.muted-note { color: var(--muted); margin: 0; }

/* Team */
.team-section { padding: clamp(3rem, 7vw, 5rem) 0; }

.team-group { margin-bottom: 2.5rem; }

.team-group h3 {
  margin: 0 0 1.2rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1.2rem;
}

.team-card {
  text-align: center;
}

.team-card img {
  width: 88px;
  height: 88px;
  image-rendering: pixelated;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #111;
}

.team-card strong {
  display: block;
  margin-top: 0.55rem;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.team-card span {
  color: var(--muted);
  font-size: 0.8rem;
}

/* Community / votes / blog */
.community-grid {
  display: grid;
  gap: 1.2rem;
}

.community-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.community-grid.one { grid-template-columns: minmax(0, 520px); }

.community-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  background:
    linear-gradient(160deg, var(--accent-dim), transparent 55%),
    var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.community-top {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.community-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  position: relative;
  border-radius: 12px;
}

.discord-icon { background: #5865F2; }
.ts-icon { background: var(--accent); }

.community-panel h3 { margin: 0 0 0.35rem; font-size: 1.2rem; }

.community-status {
  margin: 0;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.community-name { margin: 0.35rem 0 0; font-weight: 700; }
.community-addr { margin: 0.45rem 0 0; }

.discord-widget {
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 320px;
  background: #0a1210;
}

.vote-list {
  display: grid;
  gap: 0.7rem;
  max-width: 640px;
}

.vote-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  background: var(--accent-dim);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.vote-link span { color: var(--accent); font-weight: 700; }
.vote-link:hover { border-color: var(--accent); transform: translateY(-1px); }

.post-list { display: grid; gap: 0; }

.post-row {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.post-row.has-cover {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 1rem;
}

.post-thumb img {
  width: 140px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
}

.post-row time { color: var(--muted); font-size: 0.85rem; }

.post-row h3 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.2rem;
}

.post-row h3 a,
.crumb a {
  color: var(--ink);
  text-decoration: none;
}

.post-row h3 a:hover,
.crumb a:hover { color: var(--accent); }

.post-row p { margin: 0; color: var(--muted); }
.section-more { margin-top: 2rem; }

.prose { color: color-mix(in srgb, var(--ink) 92%, #9cf); }
.prose p { margin: 0 0 1rem; }
.prose img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.post-cover {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  margin: 1rem 0 1.5rem;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.page-head { padding-bottom: 0; }

.rules-group { margin-bottom: 2.5rem; }
.rules-group h2 {
  color: var(--accent);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.rules-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rule;
}

.rules-list li {
  counter-increment: rule;
  padding: 1rem 0 1rem 3rem;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.rules-list li::before {
  content: counter(rule, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.rules-list p { margin: 0.35rem 0 0; color: var(--muted); }

/* Footer */
.site-footer-cm {
  margin-top: 2rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(600px 200px at 80% 100%, rgba(20, 90, 70, 0.2), transparent 60%),
    #0a0c10;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.footer-grid h4 {
  margin: 0 0 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.footer-grid a,
.footer-grid p {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.footer-grid a:hover { color: var(--accent); }

/* Contact / flashes / cookie / maintenance / loading / 404 */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  background: #10131a;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  padding: 0.75rem;
  font: inherit;
}

.contact-form .hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.flash-front {
  padding: 0.8rem 1rem;
  margin: 0 0 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.flash-front.flash-success { border-color: var(--accent); color: var(--accent); }
.flash-front.flash-error { border-color: var(--danger); color: var(--danger); }

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  background: #12151a;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  flex: 1 1 240px;
  font-size: 0.92rem;
}

.cookie-banner a { color: var(--accent); }

.maintenance-page,
.loading-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
}

.maintenance-box,
.loader { text-align: center; width: min(420px, 90vw); }

.loader-brand {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.loader-block {
  display: inline-grid;
  grid-template-columns: repeat(2, 22px);
  gap: 6px;
  margin-bottom: 1.2rem;
}

.loader-block span {
  width: 22px;
  height: 22px;
  background: var(--accent);
  animation: loader-flip 1s ease-in-out infinite;
}

.loader-block span:nth-child(2) { animation-delay: .15s; opacity: .8; }
.loader-block span:nth-child(3) { animation-delay: .3s; opacity: .65; }
.loader-block span:nth-child(4) { animation-delay: .45s; opacity: .5; }

.loader-text { color: var(--muted); }
.loader-bar {
  height: 10px;
  background: #14221c;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.loader-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

.loader-pct {
  color: var(--accent);
  font-weight: 700;
  margin-top: 0.8rem;
}

.error-404 {
  min-height: calc(100vh - 160px);
  display: grid;
  place-content: center;
  text-align: center;
  padding: 3rem 1.2rem;
  gap: 0.6rem;
}

.error-code {
  font-size: clamp(3rem, 10vw, 6rem);
  color: var(--accent);
  margin: 0;
  font-weight: 800;
}

.fun-line { color: var(--muted); font-style: italic; }

.creeper { display: grid; place-items: center; margin-bottom: 0.5rem; }
.creeper-face {
  width: 84px;
  height: 84px;
  background: #2f8f46;
  position: relative;
  box-shadow: 6px 6px 0 #163d22;
  animation: creeper-sway 2.5s ease-in-out infinite;
}

.creeper-face span,
.creeper-face i {
  position: absolute;
  background: #0c1a10;
}

.creeper-face span:nth-child(1) { width: 16px; height: 16px; left: 14px; top: 18px; }
.creeper-face span:nth-child(2) { width: 16px; height: 16px; right: 14px; top: 18px; }
.creeper-face i {
  width: 28px;
  height: 22px;
  left: 28px;
  bottom: 16px;
  clip-path: polygon(0 40%, 30% 40%, 30% 0, 70% 0, 70% 40%, 100% 40%, 100% 100%, 0 100%);
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes block-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes sword-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.35); }
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

@keyframes ping-dot {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes loader-flip {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.65); opacity: 0.5; }
}

@keyframes creeper-sway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

@media (max-width: 960px) {
  .hero-inner,
  .shop-card { grid-template-columns: 1fr; }
  .hero-visual { min-height: 260px; order: -1; }
  .stats-grid,
  .status-board,
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-products { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    right: 1rem;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    background: #12151a;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem;
    min-width: 200px;
  }
  .site-nav.is-open { display: flex; }
  .post-row,
  .post-row.has-cover {
    flex-direction: column;
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .post-thumb img { width: 100%; height: 160px; }
  .community-grid.two,
  .stats-grid,
  .status-board,
  .footer-grid { grid-template-columns: 1fr; }
}
