/* ----------
  Minecraft‑styled Ko‑fi site
  ---------- */

:root {
  --bg: #0b0f12;
  --panel: #12181f;
  --panel-2: #0e141a;
  --text: #e8f1f2;
  --muted: #9fb0b6;
  --accent: #2e7d32;   /* Creeper green-ish */
  --accent-2: #1b5e20;
  --btn: #2e7d32;
  --btn-hover: #3e8f42;
  --warning: #ff5252;
  --ok: #4caf50;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 14px 30px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.02);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; scroll-behavior: smooth; }
body {
  font-family: 'Rubik', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #0b0f12 0%, #0b0f12 40%, #0c1318 100%);
  min-height: 100dvh;
}

.wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,15,18,.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
}
.brand-emoji { font-size: 1.4rem; }
.brand-text {
  font-family: 'Press Start 2P', cursive;
  letter-spacing: 1px;
  color: var(--text);
  font-size: 1.1rem;
}

/* Nav */
.nav { display: flex; align-items: center; gap: 18px; }
.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
}
.nav-link:hover { background: rgba(255,255,255,.06); }
.donate-link { color: #a6ff9f; }

/* Burger (mobile) */
.burger {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  border-radius: 8px;
}
.burger span {
  display: block;
  width: 26px; height: 3px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 10px;
  transition: transform .2s ease, opacity .2s ease;
}

/* Hero */
.hero {
  position: relative;
  padding: 64px 0 40px;
  overflow: hidden;
}
.hero-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
}
.mc-title {
  font-family: 'Press Start 2P', cursive;
  line-height: 1.25;
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 2.2vw + 1rem, 2.4rem);
  text-shadow: 0 4px 0 rgba(0,0,0,.45);
}
.lead { color: var(--muted); font-size: 1.05rem; }
.cta-row { display: flex; gap: 12px; margin: 22px 0 26px; }
.btn {
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 800;
  box-shadow: var(--shadow);
  transform: translateZ(0);
}
.btn-primary {
  background: linear-gradient(180deg, var(--btn) 0%, var(--accent-2) 100%);
  color: white;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary {
  background: #1b232b;
  color: var(--text);
}
.btn-secondary:hover { background: #212c36; }
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,.06); }

.status-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: radial-gradient(100% 100% at 50% 0, #151c23 0, var(--panel) 100%);
  border: 1px solid rgba(255,255,255,.06);
  padding: 12px 12px 12px 12px;
  border-radius: var(--radius);
  max-width: 520px;
}
.status-title { font-weight: 800; }
.status-sub { color: var(--muted); font-size: .95rem; }
.status-dot {
  width: 14px; height: 14px; border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255,255,255,.06);
}
.status-dot.offline { background: var(--warning); }
.status-dot.online  { background: var(--ok); }

.hero-art {
  display: grid;
  gap: 16px;
  justify-items: center;
  align-items: end;
  grid-template-columns: repeat(2, 120px);
  grid-auto-rows: 120px;
}
.cube {
  width: 120px; height: 120px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  background-size: 18px 18px;
}
.grass { background-image:
  linear-gradient(90deg, #3f8f2f 1px, transparent 1px),
  linear-gradient(#3f8f2f 1px, transparent 1px),
  linear-gradient(180deg, #3f8f2f, #2e7d32);
}
.dirt { background-image:
  linear-gradient(90deg, #6d4c41 1px, transparent 1px),
  linear-gradient(#6d4c41 1px, transparent 1px),
  linear-gradient(180deg, #6d4c41, #5d4037);
}
.stone { background-image:
  linear-gradient(90deg, #8d9aa3 1px, transparent 1px),
  linear-gradient(#8d9aa3 1px, transparent 1px),
  linear-gradient(180deg, #90a4ae, #607d8b);
}

.deco-grid {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 16px 16px;
  mask: linear-gradient(180deg, #000 0%, rgba(0,0,0,.6) 60%, transparent 100%);
}

/* Sections */
.section { padding: 64px 0; }
.section-title {
  font-family: 'Press Start 2P', cursive;
  margin: 0 0 18px;
  font-size: clamp(1.2rem, 1.2vw + 1rem, 1.6rem);
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 18px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.donate-section {
  background: linear-gradient(180deg, #0c1318 0%, #0c1318 60%, #0d151b 100%);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.donate-wrap { display: grid; place-items: center; }
.donate-card {
  width: min(720px, 96%);
  background: radial-gradient(100% 100% at 50% 0, #151c23 0, var(--panel) 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.kofi-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: linear-gradient(180deg, #22a6b3 0%, #1a7a84 100%);
  color: white;
  font-weight: 900;
  border-radius: 14px;
  padding: 16px 22px;
  margin-top: 10px;
  box-shadow: var(--shadow);
}
.kofi-btn:hover { filter: brightness(1.05); }
.kofi-logo { width: 24px; height: 24px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.donate-footnote { color: var(--muted); margin-top: 12px; font-size: .95rem; }

.steps { line-height: 1.9; }
.ip {
  background: #0f151b;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.card {
  margin: 0;
  padding: 0;
  background: var(--panel-2);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card-art {
  aspect-ratio: 16/10;
  background: repeating-conic-gradient(#10171e 0% 25%, #0e141a 0% 50%) 50% / 20px 20px;
}
.card figcaption {
  padding: 10px 12px;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: var(--panel-2);
  border: 1px solid rgba(255,255,255,.06);
  color: var(--text);
  padding: 14px 16px;
  border-radius: var(--radius);
}
.contact-card:hover { background: #151f26; }
.contact-emoji { font-size: 1.2rem; }

.site-footer {
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  color: var(--muted);
}
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.small { font-size: .92rem; }
.muted { color: var(--muted); }

/* Responsive */
@media (max-width: 880px) {
  .hero-wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; grid-template-columns: repeat(3, 100px); grid-auto-rows: 100px; }
  .burger { display: inline-block; }
  .nav { 
    position: fixed;
    right: 16px; top: 68px;
    display: none;
    flex-direction: column;
    background: var(--panel-2);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius);
    padding: 10px;
    width: calc(100vw - 32px);
    max-width: 360px;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
}
