:root {
  --bg: #070a14;
  --bg2: #05070f;
  --card: #0e1330;
  --text: #e6e9ff;
  --muted: #b2b7e6;
  --border: rgba(230,233,255,0.12);
  --primary: #7c3aed;
  --secondary: #3b82f6;
  --shadow: 0 16px 60px rgba(0,0,0,0.45);
  --radius: 18px;
  --radius2: 26px;
  --max: 1150px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  /* Purple-forward backdrop (Coil vibes, with a hint of blue) */
  /*
    IMPORTANT: No "horizon band"
    We keep all glows FIXED to the viewport and make the bottom glow *massive* + softly fading,
    so you never hit a hard edge while scrolling.
  */
  background:
      /* top glow */
      radial-gradient(1200px 700px at 40% -10%, rgba(124,58,237,0.30) 0%, rgba(124,58,237,0.14) 52%, transparent 82%),
      /* bottom glow (very soft + huge) */
      radial-gradient(2200px 1400px at 50% 110%, rgba(168,85,247,0.14) 0%, rgba(168,85,247,0.07) 55%, rgba(168,85,247,0.03) 72%, transparent 88%),
      /* side support glows */
      radial-gradient(1400px 1000px at 14% 90%, rgba(124,58,237,0.10) 0%, rgba(124,58,237,0.05) 55%, transparent 80%),
      radial-gradient(1100px 700px at 92% 12%, rgba(59,130,246,0.07) 0%, rgba(59,130,246,0.035) 55%, transparent 82%),
      linear-gradient(180deg, var(--bg), var(--bg2));
  background-attachment: fixed, fixed, fixed, fixed, fixed;
  background-repeat: no-repeat;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(7,10,20,0.65);
  border-bottom: 1px solid var(--border);
}
/* --- Background image layer (dimmed) --- */
body{
  background: #070a14; /* fallback */
}

/* Fixed background image + dim overlay + subtle purple vignette */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;

  /* purple vignette + dim overlay + image */
  background-image:
    radial-gradient(1200px 700px at 20% 20%, rgba(160,120,255,0.22), transparent 60%),
    linear-gradient(rgba(7,10,20,0.35), rgba(7,10,20,0.85)),
    url("/assets/img/mc-bg.webp");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* a little more settled for readability */
  filter: saturate(1.02) contrast(1.0) brightness(0.95);
}

/* Optional: blur behind cards for extra readability */
.card, .mc-card, .staff-card{
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Keep pixel rain above the background, but behind content */
#pixelRain{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Make sure your actual page content is above both layers */
.navbar, .page, .footer, section{
  position: relative;
  z-index: 1;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Taller top bar */
  padding: 26px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand svg {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 10px 20px rgba(124,58,237,0.25));
}

/* Most pages use an <img> logo, not inline SVG */
.brand img{
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 10px 20px rgba(124,58,237,0.25));
}

.nav-links {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  /* Bubble-rectangle links */
  font-size: 15px;
  color: rgba(230,233,255,0.88);
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(230,233,255,0.14);
  background: rgba(230,233,255,0.04);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.nav-links a:hover {
  border-color: rgba(230,233,255,0.22);
  background: rgba(230,233,255,0.08);
}

/* Make the primary CTA feel proportionate with the taller navbar */
.navbar .btn{
  padding: 12px 16px;
  border-radius: 16px;
}
.navbar .icon-btn{
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(230,233,255,0.14);
  background: rgba(230,233,255,0.04);
  color: var(--text);
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 14px;
}
.btn:hover {
  background: rgba(230,233,255,0.07);
  border-color: rgba(230,233,255,0.22);
}
.btn.primary {
  background: linear-gradient(135deg, rgba(124,58,237,0.95), rgba(168,85,247,0.55), rgba(59,130,246,0.18));
  border-color: rgba(230,233,255,0.18);
}
.btn.primary:hover {
  filter: brightness(1.04);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(230,233,255,0.14);
  background: rgba(230,233,255,0.03);
  cursor: pointer;
}
.icon-btn:hover {
  background: rgba(230,233,255,0.06);
  border-color: rgba(230,233,255,0.22);
}

.mobile-toggle {
  display: none;
}

.hero {
  padding: 36px 0 28px 0;
}

/* More "Minecrafty" cards: slightly blockier, pixel-y border vibe */
.mc-card {
  border-radius: 16px !important;
  position: relative;
}
.mc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  /* a chunky-ish inner border + subtle highlight like a UI panel */
  box-shadow:
    inset 0 0 0 2px rgba(230,233,255,0.10),
    inset 0 10px 30px rgba(124,58,237,0.08);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: stretch;
}

/* Home layout (simplified) */
.hero-wrap {
  padding: 22px;
}

.hero-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: start;
}

.hero-badge {
  display: inline-flex;
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(230,233,255,0.14);
  background: rgba(7,10,20,0.25);
  color: rgba(230,233,255,0.88);
}

.hero-h1 {
  margin: 12px 0 10px 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.06;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.ip-chip {
  font-family: var(--mono);
  font-size: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(230,233,255,0.14);
  background: rgba(230,233,255,0.03);
  color: rgba(230,233,255,0.90);
}

.side-panel {
  padding: 16px;
  background: rgba(7,10,20,0.18);
  border: 1px solid rgba(230,233,255,0.12);
}

.panel-title {
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-bottom: 12px;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(230,233,255,0.12);
  background: rgba(230,233,255,0.03);
  font-weight: 700;
  font-size: 14px;
}

.quick:hover {
  border-color: rgba(230,233,255,0.22);
  background: rgba(230,233,255,0.05);
}

.mini-note {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(230,233,255,0.72);
}

.home-section {
  margin-top: 18px;
  padding: 8px 0 8px 0;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.mode-card {
  padding: 16px;
  border: 1px solid rgba(230,233,255,0.12);
  background: rgba(230,233,255,0.03);
}

.mode-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(230,233,255,0.14);
  background: linear-gradient(135deg, rgba(124,58,237,0.38), rgba(59,130,246,0.18));
  font-size: 18px;
}

.mode-title {
  margin-top: 10px;
  font-weight: 900;
  font-size: 16px;
}

.mode-text {
  margin: 6px 0 0 0;
  color: rgba(230,233,255,0.80);
  font-size: 13px;
}

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

.step-card {
  padding: 16px;
  border: 1px solid rgba(230,233,255,0.12);
  background: rgba(230,233,255,0.03);
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 900;
  border: 1px solid rgba(230,233,255,0.14);
  background: rgba(7,10,20,0.25);
}

.step-title {
  margin-top: 10px;
  font-weight: 900;
  font-size: 16px;
}

.step-text {
  margin: 6px 0 0 0;
  color: rgba(230,233,255,0.80);
  font-size: 13px;
}

.step-meta {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(230,233,255,0.72);
  font-family: var(--mono);
}

.step-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.vibe-card {
  padding: 18px;
}

.vibe-title {
  font-weight: 900;
  font-size: 16px;
}

.vibe-text {
  margin: 8px 0 0 0;
  color: rgba(230,233,255,0.82);
  font-size: 13px;
}

.support-card {
  padding: 16px;
}

.support-note {
  margin-top: 10px;
}

.card {
  background: rgba(14,19,48,0.72);
  border: 1px solid rgba(230,233,255,0.12);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 26px;
  overflow: hidden;
  position: relative;
}

.hero-card:before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(700px 260px at 30% 0%, rgba(124,58,237,0.40), transparent 60%),
              radial-gradient(560px 260px at 70% 0%, rgba(168,85,247,0.26), transparent 60%),
              radial-gradient(520px 240px at 90% 20%, rgba(59,130,246,0.10), transparent 70%);
  pointer-events: none;
  opacity: 0.9;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(230,233,255,0.72);
}

h1 {
  margin: 14px 0 10px 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
}

.lead {
  margin: 0 0 18px 0;
  color: rgba(230,233,255,0.84);
  font-size: 16px;
  max-width: 58ch;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.pill {
  font-family: var(--mono);
  font-size: 12px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(230,233,255,0.14);
  background: rgba(230,233,255,0.03);
  color: rgba(230,233,255,0.88);
}

.side-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-title {
  font-weight: 700;
  font-size: 14px;
  color: rgba(230,233,255,0.90);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mini {
  font-size: 12px;
  color: rgba(230,233,255,0.70);
}

.search {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(230,233,255,0.14);
  background: rgba(7,10,20,0.35);
  color: var(--text);
  outline: none;
}
.search input:focus {
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.15);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  padding: 18px 0 38px 0;
}

.section-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.section-title h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.2px;
}
.section-title a {
  font-size: 13px;
  color: rgba(230,233,255,0.75);
}
.section-title a:hover {
  color: rgba(230,233,255,0.92);
}

.post-card {
  grid-column: span 4;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(230,233,255,0.12);
  background: rgba(230,233,255,0.03);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  position: relative;
  overflow: hidden;
}
.post-card:hover {
  transform: translateY(-2px);
  border-color: rgba(230,233,255,0.20);
  background: rgba(230,233,255,0.045);
}
.post-emoji {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124,58,237,0.40), rgba(59,130,246,0.25));
  border: 1px solid rgba(230,233,255,0.14);
  font-size: 18px;
}
.post-meta {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(230,233,255,0.70);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.post-title {
  margin: 8px 0 6px 0;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.2;
}
.post-excerpt {
  margin: 0;
  color: rgba(230,233,255,0.80);
  font-size: 13px;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.tag {
  font-size: 11px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(230,233,255,0.14);
  background: rgba(7,10,20,0.25);
  color: rgba(230,233,255,0.82);
}

.two-col {
  grid-column: span 6;
}

.purchase-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.purchase {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(230,233,255,0.12);
  background: rgba(7,10,20,0.22);
}
.purchase b {
  font-size: 13px;
}
.purchase span {
  font-size: 12px;
  color: rgba(230,233,255,0.72);
}
.purchase time {
  font-size: 11px;
  color: rgba(230,233,255,0.55);
  font-family: var(--mono);
  white-space: nowrap;
}
/* Tebex sidebar skin heads */
.purchase-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.purchase-head {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(230,233,255,0.14);
  background: rgba(7,10,20,0.35);
  image-rendering: pixelated;
  flex: 0 0 auto;
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
}

.purchase-name {
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.purchase-amount {
  font-size: 12px;
  color: rgba(230,233,255,0.72);
  white-space: nowrap;
}

.topdonor {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(230,233,255,0.12);
  background: rgba(7,10,20,0.22);
}

.topdonor img {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(230,233,255,0.14);
  background: rgba(7,10,20,0.35);
  image-rendering: pixelated;
  flex: 0 0 auto;
}

.page {
  padding: 26px 0 42px 0;
}
.page h1 {
  font-size: 34px;
  margin: 0 0 10px 0;
}
.page p {
  color: rgba(230,233,255,0.84);
  max-width: 75ch;
}

.prose {
  padding: 18px;
}
.prose h2 {
  margin-top: 22px;
}
.prose code {
  font-family: var(--mono);
  font-size: 0.95em;
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(230,233,255,0.12);
  background: rgba(7,10,20,0.35);
}
.prose pre {
  overflow: auto;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(230,233,255,0.12);
  background: rgba(7,10,20,0.35);
}

.hr {
  height: 1px;
  background: rgba(230,233,255,0.12);
  margin: 22px 0;
}

.footer {
  border-top: 1px solid rgba(230,233,255,0.12);
  padding: 26px 0;
  color: rgba(230,233,255,0.70);
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.footer a {
  color: rgba(230,233,255,0.80);
}
.footer a:hover {
  color: rgba(230,233,255,0.96);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: rgba(7,10,20,0.72);
  border: 1px solid rgba(230,233,255,0.18);
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .post-card { grid-column: span 6; }
  .hero-split { grid-template-columns: 1fr; }
  .mode-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .mobile-toggle { display: inline-flex; }
  .nav-links.mobile-open {
    display: flex;
    width: 100%;
    padding: 10px 0 4px 0;
  }
  .nav-inner {
    flex-wrap: wrap;
    /* Keep the navbar tall on desktop, but less chunky on mobile */
    padding: 18px 0;
  }
  .navbar .btn{ padding: 10px 14px; }
  .navbar .icon-btn{ width: 42px; height: 42px; }
  .post-card { grid-column: span 12; }
  .footer-grid { grid-template-columns: 1fr; }
  .mode-grid { grid-template-columns: 1fr; }
}


/* Embedded map */
.embed-frame {
  width: 100%;
  height: min(74vh, 860px);
  border: 1px solid rgba(230,233,255,0.12);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(7,10,20,0.35);
  position: relative;
}

.embed-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.embed-note {
  font-size: 12px;
  color: rgba(230,233,255,0.70);
  margin-top: 10px;
}


/* Staff page */
.staff-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.staff-card {
  grid-column: span 6;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(230,233,255,0.12);
  background: rgba(230,233,255,0.03);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.staff-card:hover {
  transform: translateY(-2px);
  border-color: rgba(230,233,255,0.20);
  background: rgba(230,233,255,0.045);
}

.staff-avatar {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  border: 1px solid rgba(230,233,255,0.14);
  background: rgba(7,10,20,0.30);
  box-shadow: 0 18px 40px rgba(0,0,0,0.38);
  object-fit: contain;        /* <-- key fix */
  object-position: center;    /* <-- keeps it centered */
  image-rendering: pixelated; /* <-- keeps skins crisp */
  flex: 0 0 auto;
}

.staff-info { min-width: 0; }

.staff-name {
  font-weight: 900;
  font-size: 16px;
  line-height: 1.15;
}

.staff-role {
  color: rgba(230,233,255,0.78);
  font-size: 13px;
  margin-top: 6px;
}

.staff-meta {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.staff-group-title {
  margin-top: 18px;
  font-weight: 800;
  font-size: 14px;
  color: rgba(230,233,255,0.88);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 940px) {
  .staff-card { grid-column: span 12; }
}

/* Falling pixel background (subtle) */
#pixelRain{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  z-index:0;
  pointer-events:none;
  opacity:0.70; /* tweak per your taste (0.3–0.9) */
}
body>:not(#pixelRain){position:relative;z-index:1;}
@media (prefers-reduced-motion: reduce){#pixelRain{display:none;}}

.purchase-amount{opacity:0.8}
