@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

:root{
  --bg:#1e1e1e;
  --bg2:#2d2d2d;
  --card:#3a3a3a;
  --card2:#4a4a4a;
  --border:#4a4a4a;
  --border2:#5a5a5a;
  --text:#f5f5f5;
  --muted:#c2c2c2;
  --dim:#8a8a8a;
  --accent:#5AAA3A;
  --accent2:#3A7D2A;
  --accent-glow:rgba(90,170,58,0.30);
  --yellow:#f5d547;
  --radius:4px;
  --radius-sm:4px;
  --radius-pill:4px;
  /* minecraft extras */
  --stone:#8B8B8B;
  --stone-dark:#373737;
  --stone-light:#c6c6c6;
  --dirt:#8B5A2B;
  --grass:#5AAA3A;
}

*{box-sizing:border-box;margin:0;padding:0}
html{height:100%}
body{
  font-family:'DM Sans',system-ui,sans-serif;
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  image-rendering:pixelated;
  min-height:100vh; min-height:100dvh;
  display:flex; flex-direction:column;
}
main.container{flex:1}

/* Background — subtle stone / dirt pixel texture */
.bg{position:fixed;inset:0;z-index:-1;background: var(--bg); background-image: 
  linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size:16px 16px;
  transition: background 0.3s ease, background-image 0.3s ease;
}
.bg-grid{
  position:absolute;inset:0;
  background-image: 
    linear-gradient(rgba(90,170,58,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90,170,58,0.04) 1px, transparent 1px);
  background-size:32px 32px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 50%, transparent 80%);
  opacity:0.6; transition: opacity 0.3s ease;
}
/* Light mode — blue sky */
body.light-mode{ --bg:#87CEEB; }
body.light-mode .bg{
  background:#87CEEB;
  background-image:
    linear-gradient(rgba(255,255,255,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size:16px 16px;
}
body.light-mode .bg-grid{
  background-image:
    linear-gradient(rgba(255,255,255,0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.22) 1px, transparent 1px);
  opacity:0.55;
}
body.light-mode .hero-sub,
body.light-mode .section-head p{
  color:#1a2332;
  text-shadow: 0 1px 0 rgba(255,255,255,0.55);
}
body.light-mode .accept-hint{
  color:#b8b8b8;
  text-shadow:none;
}
/* Theme toggle — pixel sun / moon floating in sky (no box) */
.theme-toggle{
  position:fixed; top:8px; left:12px; z-index:40;
  width:88px; height:88px; display:grid; place-items:center;
  background:transparent; border:none; border-radius:0;
  cursor:pointer; padding:0;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.22)) drop-shadow(0 4px 8px rgba(0,0,0,0.22));
  image-rendering:pixelated; transition: transform 0.16s ease, filter 0.16s ease;
}
.theme-toggle:hover{transform:scale(1.10) rotate(2deg); filter: drop-shadow(0 3px 0 rgba(0,0,0,0.22)) drop-shadow(0 6px 12px rgba(0,0,0,0.28));}
.theme-toggle:active{transform:scale(0.94);}
.pixel-icon{position:absolute; display:none; image-rendering:pixelated;}
/* pixel sun — 28px center + rays (2×) */
.pixel-sun{
  width:28px; height:28px; background:#f5d547; border:4px solid #8a6d00;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.45), 0 0 0 1px rgba(0,0,0,0.08);
}
.pixel-sun::before{
  content:''; position:absolute; left:50%; top:50%; width:0; height:0;
  /* 8 rays — doubled offsets/sizes */
  box-shadow:
    0 -20px 0 4px #f5d547, 0 -20px 0 6px #8a6d00,
    0 20px 0 4px #f5d547, 0 20px 0 6px #8a6d00,
    -20px 0 0 4px #f5d547, -20px 0 0 6px #8a6d00,
    20px 0 0 4px #f5d547, 20px 0 0 6px #8a6d00,
    -14px -14px 0 2px #f5d547, -14px -14px 0 4px #8a6d00,
    14px -14px 0 2px #f5d547, 14px -14px 0 4px #8a6d00,
    -14px 14px 0 2px #f5d547, -14px 14px 0 4px #8a6d00,
    14px 14px 0 2px #f5d547, 14px 14px 0 4px #8a6d00;
}
/* pixel moon — block with craters (previous, 2×) */
.pixel-moon{
  width:32px; height:32px; background:#e8e8e8; border:4px solid #9a9a9a;
  box-shadow: inset 4px 4px 0 rgba(255,255,255,0.6), inset -4px -4px 0 rgba(0,0,0,0.08);
}
.pixel-moon::before{
  content:''; position:absolute; left:6px; top:8px; width:8px; height:8px;
  background:#c6c6c6; border:2px solid #8a8a8a;
  display:block;
}
.pixel-moon::after{
  content:''; position:absolute; right:8px; bottom:8px; width:6px; height:6px;
  background:#c6c6c6; border:2px solid #8a8a8a;
  display:block;
}
body.light-mode .pixel-sun{display:block;}
body:not(.light-mode) .pixel-moon{display:block;}
/* Minecraft clouds — floating behind content, pixel block style */
.mc-clouds{position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden;}
.mc-cloud{
  position:absolute; width:96px; height:28px; background:#fff;
  border:2px solid #c6c6c6; border-bottom-color:#8B8B8B;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.12), inset 0 2px 0 rgba(255,255,255,0.8);
  image-rendering:pixelated; opacity:0.32;
  animation: cloudDrift 28s linear infinite alternate;
}
.mc-cloud::before{
  content:''; position:absolute; left:14px; top:-12px; width:52px; height:16px;
  background:#fff; border:2px solid #c6c6c6; border-bottom:none;
  box-shadow: inset 0 2px 0 rgba(255,255,255,0.7);
}
.mc-cloud::after{
  content:''; position:absolute; right:12px; bottom:-2px; width:28px; height:10px;
  background:#e8e8e8; border-top:1px solid #c6c6c6;
}
.mc-cloud.small{transform:scale(0.75); opacity:0.22;}
.mc-cloud.small::before{width:42px; height:13px; left:10px; top:-10px;}
@keyframes cloudDrift{
  0%{transform: translateX(0) scale(var(--s,1));}
  100%{transform: translateX(24px) scale(var(--s,1));}
}
.mc-cloud.small{animation-duration:34s;}
.mc-cloud:nth-child(2){animation-duration:32s; animation-delay:-6s;}
.mc-cloud:nth-child(3){animation-duration:26s; animation-delay:-12s;}
.mc-cloud:nth-child(4){animation-duration:30s; animation-delay:-3s;}
.bg-glow{position:absolute;border-radius:50%;filter:blur(80px);opacity:0.18}
.bg-glow-1{width:600px;height:600px;background:#5ee65e;top:-150px;left:50%;transform:translateX(-50%)}
.bg-glow-2{width:500px;height:500px;background:#2a7a2a;bottom:-100px;right:-80px}

/* Funding strip — header */
.topbar{position:sticky;top:0;z-index:20;backdrop-filter:blur(12px);background:rgba(10,15,10,0.7);border-bottom:1px solid var(--border)}
.funding-strip{max-width:1100px;margin:0 auto;padding:10px 20px}
.funding-strip-inner{
  display:flex;align-items:center;justify-content:center;gap:12px;
  font-family:'JetBrains Mono',monospace;
  font-size:12px;letter-spacing:0.06em;
  text-align:center;
}
.fund-icon{color:var(--accent);font-size:14px}
.fund-label{color:var(--muted);font-weight:700}
.mini-bar{flex:1;max-width:280px;height:6px;background:rgba(255,255,255,0.08);border-radius:99px;overflow:hidden;position:relative}
.mini-bar-fill{height:100%;background:linear-gradient(90deg,var(--accent2),var(--accent));border-radius:99px;transition:width 0.8s cubic-bezier(0.22,1,0.36,1);box-shadow:0 0 10px var(--accent-glow)}
.fund-text{color:var(--text);font-weight:700;letter-spacing:0.02em}
.fund-pct{color:var(--accent);font-weight:700;background:rgba(94,230,94,0.12);padding:2px 8px;border-radius:99px;border:1px solid rgba(94,230,94,0.2)}

/* Container */
.container{max-width:860px;margin:0 auto;padding:24px 20px 40px; position:relative; z-index:1;}

.ip-card{
  display:flex;
  flex-direction:column;
  gap:6px;
  background:#4a4a4a;
  border:2px solid #373737; border-top-color:#7a7a7a; border-left-color:#7a7a7a;
  border-radius:0;
  padding:8px 12px;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.08);
  position:relative; image-rendering:pixelated;
}
.ip-row-full{display:flex;align-items:center;gap:16px}
.ip-label{min-width:80px;font-family:'JetBrains Mono',monospace;font-size:10px;letter-spacing:0.18em;color:var(--dim);font-weight:700}
.ip-value{flex:1;font-family:'JetBrains Mono',monospace;font-size:15px;font-weight:700;letter-spacing:0.02em;text-align:right}
.ip-port{flex:1;font-size:13px;color:var(--muted);text-align:right}
.ip-copy{
  background:#5AAA3A;color:#fff;
  border:2px solid #2d5a1f; border-top-color:#7bd667; border-left-color:#7bd667;
  border-radius:0; font-family:'VT323', monospace;
  font-weight:400;letter-spacing:0.06em;font-size:18px; line-height:1;
  padding:6px 14px;cursor:pointer;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.15), inset -1px -1px 0 rgba(0,0,0,0.2);
  text-shadow: 1px 1px 0 #2d5a1f;
  transition:transform 0.08s, filter 0.12s, background 0.12s;
  image-rendering:pixelated;
}
.ip-copy:hover{background:#6bc94f; border-top-color:#86efac; }
.ip-copy:active{transform:translate(1px,1px); box-shadow:none;}
.copy-toast{
  position:absolute;right:6px;top:-30px;
  background:#373737;border:2px solid #1a1a1a; border-top-color:#5a5a5a; border-left-color:#5a5a5a;
  color:var(--accent);font-family:'VT323', monospace;
  font-size:14px; line-height:1; font-weight:400;letter-spacing:0.05em;
  padding:4px 8px;border-radius:0;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.08);
  opacity:0;transform:translateY(6px);pointer-events:none;
  transition:all 0.18s; image-rendering:pixelated;
}
.copy-toast.show{opacity:1;transform:translateY(0)}

/* Segmented Control — minecraft hotbar with centered logo */
.segmented-wrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  margin:0 0 72px;
  position:sticky;
  top:34px; /* offset for logo height */
  z-index:20;
  padding:8px 0 4px;
}
.segmented{
  position:relative;
  display:flex;
  align-items:center;
  gap:4px;
  background:#8B8B8B;
  border:2px solid #373737; border-top-color:#c6c6c6; border-left-color:#c6c6c6;
  padding:4px 40px;
  border-radius:0;
  box-shadow: 0 4px 0 rgba(0,0,0,0.35), inset 1px 1px 0 rgba(255,255,255,0.2);
  image-rendering:pixelated;
}

/* Logo box - floats above hotbar on desktop, sits above on mobile */
.nav-logo-box{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  height:168px; /* 4x button height (~42px) */
  width:210px;
  margin-bottom:-84px; /* pull hotbar up to overlap */
  margin-top:-64px;
  pointer-events:none;
}
.nav-logo-box a{
  pointer-events:auto;
  display:grid;
  place-items:center;
}
.nav-logo-box img{
  height:144px;
  width:auto;
  image-rendering:auto;
  transition: transform 0.3s ease;
  margin-top:56px; /* center logo with navbar buttons */
}
.nav-logo-box:hover img{
  transform: scale(1.05);
}

/* Nav buttons - standard height */
.seg-btn{
  position:relative;z-index:1;
  display:flex;align-items:center;gap:6px;
  padding:10px 18px;border-radius:0;
  border:2px solid transparent; background:transparent; color:#2d2d2d;
  font-family:'VT323', monospace; font-weight:400; font-size:19px; line-height:1; letter-spacing:0.06em;
  cursor:pointer;transition:all 0.12s;white-space:nowrap;
  image-rendering:pixelated;
  height:42px; /* fixed height */
}
.seg-btn:hover{background:rgba(255,255,255,0.14); border-color:rgba(255,255,255,0.08)}
.seg-btn.is-active{color:#fff; background:transparent; border-color:transparent; box-shadow:none; text-shadow: 1px 1px 0 rgba(0,0,0,0.4);}
.seg-icon{font-size:13px;opacity:0.9}

/* Indicator sits behind buttons only */
.segmented-indicator{
  position:absolute;top:2px;height:42px;left:4px;
  background:var(--accent);border-radius:0;
  border:2px solid #2d5a1f; box-shadow:none;
  transition:transform 0.22s steps(6), width 0.22s steps(6);
  z-index:0;
  pointer-events:none;
}

@media(max-width:420px){
  .segmented-indicator{
    height:42px;
    top:2px;
  }
}

/* Button groups - create gap in middle for logo box */
.seg-group{display:flex;gap:4px}
.seg-group-left{margin-right:170px} /* half logo box width + gap */
.seg-group-right{margin-left:170px}

/* Hamburger — mobile only, hidden on desktop */
#menu-toggle{display:none;}

/* Solid page-background strip above the sticky nav — same width, travels with it */
.segmented::before{
  content:''; position:absolute; bottom:100%; left:-10px; right:-10px; height:64px;
  pointer-events:none;
  background-color:var(--bg);
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(rgba(90,170,58,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90,170,58,0.04) 1px, transparent 1px);
  background-size:16px 16px,16px 16px,32px 32px,32px 32px;
  background-attachment:fixed;
  transition:background-color 0.3s ease, background-image 0.3s ease;
}
body.light-mode .segmented::before{
  background-color:#87CEEB;
  background-image:
    linear-gradient(rgba(255,255,255,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.18) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.22) 1px, transparent 1px);
}

/* Pages */
.pages{min-height:300px}
.page{animation:fadeIn 0.38s ease}
.page[hidden]{display:none !important}
@keyframes fadeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}

/* Cards Home — minecraft block */
.card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.card{
  background: #6b6b6b;
  border:2px solid #373737;
  border-top-color:#8B8B8B; border-left-color:#8B8B8B;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.18), inset -2px -2px 0 rgba(0,0,0,0.25);
  border-radius:0;
  padding:14px;
  image-rendering:pixelated;
}
.card-icon{
  width:28px;height:28px;display:grid;place-items:center;
  background:#373737;border:2px solid #1a1a1a;
  border-top-color:#5a5a5a; border-left-color:#5a5a5a;
  border-radius:0;color:var(--accent);font-size:13px;margin-bottom:8px;
  image-rendering:pixelated;
}
.card h3{font-family:'VT323', monospace; font-size:22px; line-height:1.2; margin-bottom:4px; letter-spacing:0.04em; color:#fff; text-shadow: 1px 1px 0 #373737;}
.card p{color:#e8e8e8;font-size:13px;line-height:1.45; font-family:'DM Sans',sans-serif;}

.stats-row{
  margin-top:14px;display:flex;align-items:center;justify-content:space-between;
  background:#5a5a5a;border:2px solid #373737; border-top-color:#8B8B8B; border-left-color:#8B8B8B;
  border-radius:0;padding:10px 14px;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.15), inset -1px -1px 0 rgba(0,0,0,0.2);
}
.stat{display:flex;flex-direction:column;align-items:center;gap:2px;flex:1}
.stat-num{font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:18px}
.stat-label{font-family:'JetBrains Mono',monospace;font-size:10px;letter-spacing:0.14em;color:var(--dim);font-weight:700}
.stat-divider{width:1px;height:28px;background:var(--border)}

.home-features{margin-top:28px}

/* Features — block style */
.section-head h2{font-family:'VT323', monospace; font-size:34px; line-height:1.15; letter-spacing:0.06em; margin-bottom:4px; color:#fff; text-shadow: 2px 2px 0 #373737;}
.section-head p{color:#c2c2c2;margin-bottom:12px; font-size:13px;}
.feature-list{display:flex;flex-direction:column;gap:10px}
.feature{
  display:flex;gap:12px;
  background: #6b6b6b;
  border:2px solid #373737; border-top-color:#8B8B8B; border-left-color:#8B8B8B;
  border-radius:0; padding:12px;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.12), inset -1px -1px 0 rgba(0,0,0,0.2);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}
.feature:hover{
  border-color:#3A7D2A; border-top-color:#7bd667; border-left-color:#7bd667;
  background:#5a6b4a;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.10), inset -1px -1px 0 rgba(0,0,0,0.18), 0 0 14px rgba(90,170,58,0.28), 0 0 28px rgba(90,170,58,0.14);
  transform: translateY(-1px);
}
.feature-accordion{flex-direction:column; padding:0; gap:0;}
.feature-toggle{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px;
  background:transparent; border:none; padding:12px; cursor:pointer; text-align:left; color:inherit; font:inherit;
}
.feature-toggle:focus-visible{outline:2px solid var(--accent); outline-offset:-2px;}
.feature-summary{flex:1; min-width:0;}
.feature-summary h3{font-size:15px; margin-bottom:4px;}
.feature-summary p{margin-bottom:0;}
.feature-panel a{
  color:var(--accent); background:rgba(94,230,94,0.10); border:1px solid rgba(94,230,94,0.22);
  padding:1px 5px; border-radius:0; text-decoration:none; font-weight:700;
  transition: all 0.14s; text-shadow: 0 1px 0 rgba(0,0,0,0.25);
}
.feature-panel a:hover{
  color:#a6f0a6; background:rgba(94,230,94,0.16); border-color:rgba(94,230,94,0.32);
  box-shadow: 0 0 6px rgba(94,230,94,0.18);
}
.feature-chevron{
  flex-shrink:0; width:22px; height:22px; display:grid; place-items:center;
  background:#373737; border:2px solid #1a1a1a; border-top-color:#5a5a5a; border-left-color:#5a5a5a;
  border-radius:0; font-size:10px; color:var(--accent); line-height:1;
  transition: transform 0.2s steps(4), background 0.15s, border-color 0.15s;
}
.feature-accordion.is-open .feature-chevron{transform:rotate(180deg); background:#3a5a2e; border-color:#2d5a1f; border-top-color:#4a7a3a; border-left-color:#4a7a3a;}
.feature-panel{width:100%; border-top:2px solid #373737; background:#3a3a3a; overflow:hidden;}
.feature-panel[hidden]{display:none !important;}
.feature-panel-inner{padding:12px;}
.feature-panel-note{color:#a8a8a8; font-size:12.5px; line-height:1.4; margin:0;}
.video-wrap{position:relative; padding-top:56.25%; background:#1e1e1e; border:2px solid #373737; border-top-color:#2d2d2d; margin-top:8px; overflow:hidden;}
.video-wrap iframe{position:absolute; inset:0; width:100%; height:100%; border:none;}
.feature-num{
  font-family:'JetBrains Mono',monospace;font-weight:700;color:var(--accent);
  font-size:12px;background:rgba(94,230,94,0.1);border:1px solid rgba(94,230,94,0.18);
  height:fit-content;padding:6px 8px;border-radius:8px;
}
.feature h3{font-size:15px;margin-bottom:4px}
.feature p{color:var(--muted);font-size:13.5px;line-height:1.5;margin-bottom:8px}
.tags{display:flex;gap:6px;flex-wrap:wrap}
.tags span{
  font-family:'VT323', monospace;font-size:13px;letter-spacing:0.04em;
  background:#373737;border:1px solid #1a1a1a; border-top-color:#5a5a5a; border-left-color:#5a5a5a;
  padding:2px 6px;border-radius:0;color:#c2c2c2;font-weight:400; image-rendering:pixelated;
}

/* Funding — minecraft chest */
.funding-card{
  background: #6b6b6b;
  border:2px solid #373737; border-top-color:#8B8B8B; border-left-color:#8B8B8B;
  border-radius:0; padding:14px;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.12), inset -2px -2px 0 rgba(0,0,0,0.25);
  image-rendering:pixelated;
}
.funding-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:14px;flex-wrap:wrap}
.funding-head h2{font-family:'VT323', monospace;font-size:30px;line-height:1.15;display:flex;align-items:center;gap:8px; color:#fff; text-shadow: 1px 1px 0 #373737; letter-spacing:0.06em;}
.dot{width:10px;height:10px;background:var(--accent);border-radius:0;border:2px solid #1a1a1a; box-shadow:none; display:inline-block;animation:pulse 1.8s infinite; image-rendering:pixelated;}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:0.5}}
.funding-head p{color:var(--muted);font-size:13.5px;margin-top:4px}
.funding-amounts{display:flex;align-items:baseline;gap:6px}
.amount-current{font-family:'Space Grotesk',sans-serif;font-size:30px;font-weight:700;letter-spacing:-0.04em}
.amount-target{color:var(--muted);font-weight:700;font-size:15px}

.progress-wrap{margin-bottom:12px}
.progress-track{
  position:relative;height:27px;
  background:#373737;border:2px solid #1a1a1a; border-top-color:#2d2d2d;
  border-radius:0;overflow:visible;
  box-shadow:inset 1px 1px 0 rgba(255,255,255,0.08);
}
.progress-fill{
  position:absolute;inset:2px auto 2px 2px;
  background:linear-gradient(90deg, #14532d 0%, var(--accent) 25%, #7bd667 50%, var(--accent) 75%, #14532d 100%);
  background-size:200% 100%;
  border-radius:0; border:1px solid #1a4a1a;
  transition:width 0.9s steps(12);
  box-shadow:none;
  animation:flow 1.6s linear infinite;
}
@keyframes flow{
  0%{background-position:200% 0}
  100%{background-position:0 0}
}
.progress-shine{
  position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(255,255,255,0.10) 0%, transparent 60%);
  pointer-events:none;border-radius:0;
}
.progress-grid{
  position:absolute;inset:0;
  background-image:repeating-linear-gradient(90deg, transparent 0 12px, rgba(0,0,0,0.15) 12px 16px);
  opacity:0.35;pointer-events:none;
  image-rendering:pixelated;
}
.progress-tooltip{
  position:absolute; top:31px; left:50%; transform:translateX(-50%);
  background:#1e1e1e; border:1px solid #373737;
  color:#a8a8a8; font-family:'VT323', monospace; font-size:16px; line-height:1; letter-spacing:0.05em;
  padding:2px 6px; white-space:nowrap; pointer-events:none; opacity:0; transition:opacity 0.15s; z-index:5;
  image-rendering:pixelated;
}
.progress-fill:hover ~ .progress-tooltip{opacity:1;}
.progress-tooltip::after{
  content:''; position:absolute; bottom:100%; left:50%; transform:translateX(-50%);
  width:0; height:0; border-left:4px solid transparent; border-right:4px solid transparent; border-bottom:4px solid #373737;
}
.progress-meta{
  display:flex;justify-content:space-between;
  font-family:'VT323', monospace;font-size:17px; line-height:1.2;
  margin-top:28px;color:#c2c2c2;font-weight:400;letter-spacing:0.06em;
}
#progress-pct{color:var(--accent); font-family:'VT323', monospace; font-size:18px; letter-spacing:0.04em;}

/* Milestones on track */
.milestone-ticks{position:absolute;inset:0;pointer-events:none}
.tick{position:absolute;top:0;bottom:0;transform:translateX(-50%);display:block;pointer-events:none}
.tick-line{position:absolute; top:0; bottom:0; left:50%; transform:translateX(-50%); width:2px; background:rgba(255,255,255,0.18);}
.tick.is-reached .tick-line{background:rgba(94,230,94,0.55)}
.tick-dot{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:14px;height:11px; border-radius:0;
  background:#8B5A2B; border:1.5px solid #3e2516; border-top:3px solid #c49a6c;
  box-shadow:0 1px 0 rgba(0,0,0,0.25);
  transition:all 0.25s; image-rendering:pixelated;
}
.tick-dot::before{
  content:''; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:4px; height:4px; background:#f5d547; border:1px solid #8a6d00;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.tick-dot::after{
  content:''; position:absolute; left:0; right:0; top:3px; height:1px; background:rgba(0,0,0,0.18);
}
.tick.is-reached .tick-dot{background:#6b4423; border-color:#2d5a1f; border-top-color:#7bd667; box-shadow:0 0 6px var(--accent-glow);}
.tick.is-reached .tick-dot::before{background:#f5d547; border-color:#5a4a00;}
.tick-label{
  position:absolute;top:31px;left:50%;transform:translateX(-50%);
  font-family:'VT323', monospace;font-size:16px; line-height:1; font-weight:400; letter-spacing:0.05em;
  color:#a8a8a8;background:#1e1e1e;border:1px solid #373737;
  padding:2px 6px;border-radius:0;white-space:nowrap; image-rendering:pixelated;
}
.tick.is-reached .tick-label{color:var(--accent);border-color:rgba(94,230,94,0.3);background:rgba(94,230,94,0.12)}
.tick:last-child .tick-label{transform:translateX(-100%)}
.tick:first-child .tick-label{transform:translateX(-50%)}

/* Milestones legend — block */
.milestones-legend{display:flex;flex-direction:column;gap:6px;margin-top:32px}
.milestone{
  display:flex;align-items:center;gap:10px;
  background:#4a4a4a;border:2px solid #373737; border-top-color:#6b6b6b; border-left-color:#6b6b6b; border-radius:0;
  padding:8px 10px;transition:border-color 0.15s, background 0.15s; image-rendering:pixelated;
}
.milestone.is-reached{background:#3a5a2e;border-color:#2d4a1f; border-top-color:#4a7a3a; border-left-color:#4a7a3a;}
.milestone-dot{
  position:relative; width:14px; height:11px; flex-shrink:0;
  background:#8B5A2B; border:1.5px solid #3e2516; border-top:3px solid #c49a6c;
  border-radius:0; box-shadow:0 1px 0 rgba(0,0,0,0.15);
  transition:all 0.20s; image-rendering:pixelated;
}
.milestone-dot::before{
  content:''; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:4px; height:4px; background:#f5d547; border:1px solid #8a6d00;
  box-shadow:0 0 0 1px rgba(0,0,0,0.12);
}
.milestone-dot::after{
  content:''; position:absolute; left:0; right:0; top:3px; height:1px; background:rgba(0,0,0,0.18);
}
.milestone.is-reached .milestone-dot{background:#6b4423; border-color:#2d5a1f; border-top-color:#7bd667; box-shadow:0 0 6px var(--accent-glow);}
.milestone-amount{
  font-family:'VT323', monospace; font-size:24px; line-height:1; letter-spacing:0.06em;
  color:var(--text); font-weight:400; min-width:52px; text-align:center;
  text-shadow: 1px 1px 0 #373737; flex-shrink:0;
}
.milestone.is-reached .milestone-amount{color:var(--accent);}
.milestone.is-hover .milestone-amount{color:var(--accent);}
.milestone-text{flex:1;min-width:0; font-size:12.5px; line-height:1.4; color:#b8b8b8;}
.milestone-text strong{font-size:16px;color:var(--text);display:block;line-height:1.3; margin-bottom:2px;}
.milestone.is-reached .milestone-text strong{color:var(--accent)}
.milestone-text :not(strong){color:#a8a8a8;}
.milestone-text strong + *{margin-top:2px;}
.milestone-status{font-size:14px;font-weight:700;color:var(--dim);width:20px;text-align:center;flex-shrink:0}
.milestone.is-reached .milestone-status{color:var(--accent)}
.milestone.is-hover{border-color:rgba(94,230,94,0.45);background:rgba(94,230,94,0.13);box-shadow:0 0 14px rgba(94,230,94,0.15)}
.milestone.is-hover .milestone-dot{border-color:#7bd667; box-shadow:0 0 6px var(--accent-glow);}
.tick.is-hover .tick-dot{transform:translate(-50%,-50%) scale(1.25); border-color:#7bd667; box-shadow:0 0 10px var(--accent-glow);}
.tick.is-hover .tick-label{color:var(--accent);border-color:rgba(94,230,94,0.4);background:rgba(94,230,94,0.16)}
.tick.is-hover .tick-line{background:rgba(94,230,94,0.7)}

.funding-actions{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 16px;border-radius:0;
  font-weight:700;font-size:13px;text-decoration:none;
  border:2px solid #373737; border-top-color:#8B8B8B; border-left-color:#8B8B8B;
  cursor:pointer;transition:all 0.08s;
  font-family:'VT323', monospace; font-size:19px; line-height:1; letter-spacing:0.06em;
  image-rendering:pixelated;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.12), inset -1px -1px 0 rgba(0,0,0,0.2);
}
.btn:active{transform:translate(1px,1px); box-shadow:none;}
.btn-primary{background:#6b6b6b;color:#fff;border-color:#373737; border-top-color:#8B8B8B; border-left-color:#8B8B8B; text-shadow: 1px 1px 0 #373737;}
.btn-primary:hover{background:#7a7a7a; border-top-color:#9a9a9a; border-left-color:#9a9a9a;}
.btn-ghost{background:#5a5a5a;color:#e8e8e8;border-color:#373737; border-top-color:#7a7a7a; border-left-color:#7a7a7a;}
.btn-ghost:hover{background:#6b6b6b;}
#discord-btn{background:#5865F2;border-color:#2c3485; border-top-color:#8b96f5; border-left-color:#8b96f5;}
#discord-btn:hover{background:#6b77f5; border-top-color:#9aa3f7; border-left-color:#9aa3f7;}
.btn-small{padding:6px 12px;font-size:15px; line-height:1;}
.btn-large{padding:10px 20px;font-size:21px; line-height:1;}

.edit-hint{
  background:rgba(0,0,0,0.22);border:1px solid var(--border);
  border-radius:12px;padding:12px 14px;
}
.edit-hint summary{cursor:pointer;color:var(--muted);font-weight:700;font-size:13px;list-style:none}
.edit-hint summary::-webkit-details-marker{display:none}
.edit-hint[open] summary{margin-bottom:10px;color:var(--text)}
.edit-hint p{color:var(--muted);font-size:13px;margin-bottom:8px}
.edit-hint pre{background:#0d150d;border:1px solid var(--border);border-radius:8px;padding:10px;overflow:auto;margin-bottom:8px}
.edit-hint code{font-family:'JetBrains Mono',monospace;font-size:12px;color:#b8e6b8}
.inline-inputs{display:flex;align-items:center;gap:8px;margin-top:6px}
.inline-inputs input{
  width:90px;background:rgba(255,255,255,0.06);border:1px solid var(--border);
  color:var(--text);padding:6px 10px;border-radius:8px;
  font-family:'JetBrains Mono',monospace;font-weight:700;
}

.kofi-wrap{
  margin-top:12px;
  border:2px solid #373737; border-top-color:#8B8B8B; border-left-color:#8B8B8B;
  border-radius:0;
  overflow:hidden;
  background:#c6c6c6;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.2);
}
.kofi-wrap iframe{display:block; image-rendering:auto;}
.kofi-disclaimer{
  text-align:center;
  color:#d0d0d0;
  margin-top:8px;
  font-family:'VT323', monospace;
  letter-spacing:0.05em; font-size:15px; line-height:1.2;
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
}
.rank-note, .donate-note{
  display:flex;align-items:center;gap:10px;
  background:#4a4a4a;border:2px solid #373737; border-top-color:#6b6b6b; border-left-color:#6b6b6b;
  border-radius:0;padding:8px 10px;margin-top:8px; image-rendering:pixelated;
}
.rank-note-icon, .donate-note-icon, .discord-note-icon{
  width:28px;height:28px;flex-shrink:0;display:grid;place-items:center;
  background:rgba(94,230,94,0.14);border:1px solid rgba(94,230,94,0.22);
  border-radius:8px;color:var(--accent);font-size:13px;line-height:1;
}
.discord-note{
  display:flex;align-items:center;gap:10px;
  background:#4a4a4a;border:2px solid #373737; border-top-color:#6b6b6b; border-left-color:#6b6b6b;
  border-radius:0;padding:8px 10px;margin-top:10px; image-rendering:pixelated;
}
.discord-note strong{display:block;font-size:13px;color:var(--text);margin-bottom:2px}
.discord-note span{font-size:12.5px;color:var(--muted);line-height:1.4}
.discord-note em{color:var(--text);font-style:normal;font-weight:700}
.rank-note strong, .donate-note strong{display:block;font-size:13px;color:var(--text);margin-bottom:2px}
.rank-note span, .donate-note span{font-size:12.5px;color:var(--muted);line-height:1.4}
.rank-note em, .donate-note em{color:var(--text);font-style:normal;font-weight:700}
.section-divider{
  border:none;height:1px;margin:22px 0;
  background:linear-gradient(90deg, transparent, rgba(120,180,120,0.20), transparent);
  opacity:1;
}
.donate-rank-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.donate-rank-row .rank-note, .donate-rank-row .donate-note{margin-top:0}
@media(max-width:640px){.donate-rank-row{grid-template-columns:1fr}}

/* Join — Rules Gate — book */
.rules-card{
  background: #6b6b6b;
  border:2px solid #373737; border-top-color:#8B8B8B; border-left-color:#8B8B8B;
  border-radius:0; padding:14px;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.12), inset -1px -1px 0 rgba(0,0,0,0.2);
}
.rules-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.rules-head h3{font-family:'Space Grotesk',sans-serif;font-size:17px;display:flex;align-items:center;gap:8px}
.rules-icon{width:26px;height:26px;display:grid;place-items:center;background:rgba(94,230,94,0.12);border:1px solid rgba(94,230,94,0.2);border-radius:7px;color:var(--accent);font-size:12px}
.rules-badge{font-family:'JetBrains Mono',monospace;font-size:10px;letter-spacing:0.12em;font-weight:700;color:var(--accent);background:rgba(94,230,94,0.12);border:1px solid rgba(94,230,94,0.22);padding:4px 8px;border-radius:99px}
.rules-list{list-style:none;counter-reset:rules;display:flex;flex-direction:column;gap:10px;margin-bottom:18px}
.rules-list li{
  counter-increment:rules;
  display:flex;flex-direction:column;gap:3px;
  background:#5a5a5a;border:2px solid #373737; border-top-color:#7a7a7a; border-left-color:#7a7a7a; border-radius:0;
  padding:10px 10px 10px 48px;position:relative; image-rendering:pixelated;
}
.rules-list li::before{
  content:counter(rules);
  position:absolute;left:8px;top:50%;
  transform:translateY(-50%);
  width:22px;height:22px;display:grid;place-items:center;
  background:#373737;border:2px solid #1a1a1a; border-top-color:#5a5a5a; border-left-color:#5a5a5a;
  border-radius:0; font-family:'VT323', monospace; font-size:17px; line-height:1; font-weight:400; color:var(--accent);
}
.rules-list li strong{font-size:13.5px;line-height:1.35}
.rules-list li span{color:var(--muted);font-size:12.5px;line-height:1.5}

.accept-row{
  display:flex;align-items:center;gap:10px;
  background:rgba(255,255,255,0.04);border:1px solid var(--border);border-radius:12px;
  padding:12px 14px;cursor:pointer;user-select:none;margin-bottom:12px;
  transition:border-color 0.15s, background 0.15s;
}
.accept-row:hover{border-color:var(--border2);background:rgba(255,255,255,0.06)}
.accept-row input{position:absolute;opacity:0;pointer-events:none}
.checkmark{
  width:20px;height:20px;flex-shrink:0;
  border:2px solid rgba(255,255,255,0.18);border-radius:6px;
  display:grid;place-items:center;transition:all 0.15s;
  background:rgba(255,255,255,0.04);
}
.accept-row input:checked + .checkmark{background:var(--accent);border-color:var(--accent);color:#0a150a}
.accept-row input:checked + .checkmark::after{content:'✓';font-weight:700;font-size:13px;line-height:1}
.accept-row input:focus-visible + .checkmark{box-shadow:0 0 0 3px var(--accent-glow)}
.accept-row span:last-child{font-size:13.5px;font-weight:600}

.accept-btn{width:100%;justify-content:center;transition:opacity 0.15s, transform 0.15s, filter 0.15s}
.accept-btn:disabled{opacity:0.38;cursor:not-allowed;filter:grayscale(0.3);transform:none;box-shadow:none}
.accept-hint{text-align:center;font-size:11.5px;color:#b8b8b8;margin-top:8px;min-height:14px}
.accept-hint.is-error{color:#f0a060}

/* Reveal */
.join-reveal{margin-top:14px;animation:fadeIn 0.38s ease}
.reveal-banner{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  background:rgba(94,230,94,0.1);border:1px solid rgba(94,230,94,0.2);
  border-radius:12px;padding:10px 14px;margin-bottom:14px;
  font-size:13px;font-weight:700;
}
.check-circle{width:22px;height:22px;display:grid;place-items:center;background:var(--accent);color:#0a150a;border-radius:50%;font-size:13px;font-weight:700;flex-shrink:0}
.reveal-banner .btn{margin-left:auto}
.join-unlocked{display:flex;flex-direction:column;align-items:center;gap:12px;padding:16px 0 6px}
.step-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.step-body .ip-card{margin-top:10px}
.step-body .btn{margin-top:10px;align-self:flex-start}
.step-body .cta-sub{margin-top:6px}
.ip-card-large{width:100%;max-width:520px}
.steps{display:flex;flex-direction:column;gap:12px;margin-bottom:18px}
.step{
  display:flex;gap:12px;align-items:flex-start;
  background:#4a4a4a;
  border:2px solid #373737; border-top-color:#6b6b6b; border-left-color:#6b6b6b; border-radius:0; padding:12px;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.08);
}
.step-centered{
  flex-direction:column;align-items:center;text-align:center;
  padding:24px 18px;
}
.step-centered .step-body{align-items:center;text-align:center}
.step-centered .step-body .ip-card{margin-left:auto;margin-right:auto}
.step-centered .step-body .btn{align-self:center}
.step-num{
  width:38px;height:38px;display:grid;place-items:center;flex-shrink:0;
  background:var(--accent);color:#0a150a;font-weight:700;border-radius:50%;
  font-family:'Space Grotesk',sans-serif;font-size:15px;
  box-shadow:0 4px 12px var(--accent-glow);
}
.step h3{font-size:15px;margin-bottom:4px}
.step p{color:var(--muted);font-size:13.5px}
.ip-code{
  display:inline-block;margin:6px 0;
  background:rgba(94,230,94,0.1);border:1px solid rgba(94,230,94,0.2);
  color:var(--accent);padding:4px 10px;border-radius:8px;
  font-family:'JetBrains Mono',monospace;font-weight:700;font-size:13px;
}
.join-cta{text-align:center;padding:10px 0}
.cta-sub{color:var(--dim);font-size:12px;margin-top:8px}

/* Support — contact form */
.support-card{
  background:#6b6b6b;
  border:2px solid #373737; border-top-color:#8B8B8B; border-left-color:#8B8B8B;
  border-radius:0; padding:14px;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.12), inset -1px -1px 0 rgba(0,0,0,0.2);
  display:flex; flex-direction:column; gap:12px;
  image-rendering:pixelated;
}
.support-field{display:flex; flex-direction:column; gap:6px;}
.support-field > span{font-family:'VT323', monospace; font-size:19px; letter-spacing:0.06em; color:#fff; text-shadow:1px 1px 0 #373737;}
.support-field input, .support-field textarea{
  background:#2d2d2d; color:var(--text);
  border:2px solid #1a1a1a; border-top-color:#5a5a5a; border-left-color:#5a5a5a;
  border-radius:0; padding:10px 12px;
  font-family:'JetBrains Mono',monospace; font-size:14px;
  box-shadow: inset 1px 1px 0 rgba(0,0,0,0.4);
  resize:vertical;
}
.support-field input:focus, .support-field textarea:focus{outline:2px solid var(--accent); outline-offset:-2px;}
.support-field input::placeholder, .support-field textarea::placeholder{color:#6b6b6b;}
.support-send{align-self:flex-start;}
.support-send:disabled{opacity:0.6; cursor:wait;}
.support-hint{color:#b8b8b8; font-size:11.5px;}
.support-hint.is-error{color:#f0a060;}

/* Minecraft grassy footer with trees */
.mc-footer{margin-top:-512px; position:relative; z-index:0; pointer-events:none;}
.mc-footer-scene{
  position:relative; height:512px; overflow:hidden;
  background: transparent; image-rendering:pixelated;
}
.mc-grass{
  position:absolute; left:0; right:0; bottom:32px; height:14px;
  background:#5AAA3A; border-top:3px solid #7bd667;
  box-shadow: 0 2px 0 #3A7D2A, 0 -1px 0 rgba(255,255,255,0.12);
}
.mc-dirt{
  position:absolute; left:0; right:0; bottom:0; height:32px;
  background:#8B5A2B;
  border-top:2px solid #5a3d1e;
  background-image:
    linear-gradient(rgba(0,0,0,0.08) 2px, transparent 2px),
    linear-gradient(90deg, rgba(0,0,0,0.07) 2px, transparent 2px);
  background-size:16px 16px;
}
.mc-mountain{position:absolute; bottom:32px; left:-20px; width:460px; height:460px; image-rendering:pixelated;}
.mc-mtn-tier{
  position:absolute; bottom:0; left:50%; transform:translateX(-50%);
  background:#8B8B8B;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 2px, transparent 2px),
    linear-gradient(90deg, rgba(0,0,0,0.09) 2px, transparent 2px);
  background-size:16px 16px,16px 16px;
  border:3px solid #373737; border-top-color:#c6c6c6;
  box-shadow: inset 3px 3px 0 rgba(255,255,255,0.16), inset -3px -3px 0 rgba(0,0,0,0.28);
}
.mc-mtn-tier.t1{width:440px; height:40px;}
.mc-mtn-tier.t2{width:398px; height:38px; bottom:34px; margin-left:-14px;}
.mc-mtn-tier.t3{width:360px; height:38px; bottom:68px; margin-left:10px;}
.mc-mtn-tier.t4{width:316px; height:36px; bottom:102px; margin-left:-12px;}
.mc-mtn-tier.t5{width:282px; height:36px; bottom:134px; margin-left:12px;}
.mc-mtn-tier.t6{width:244px; height:34px; bottom:166px; margin-left:-10px;}
.mc-mtn-tier.t7{width:210px; height:34px; bottom:198px; margin-left:8px;}
.mc-mtn-tier.t8{width:176px; height:32px; bottom:230px; margin-left:-10px;}
.mc-mtn-tier.t9{width:144px; height:32px; bottom:260px; margin-left:8px;}
.mc-mtn-tier.t10{width:112px; height:30px; bottom:290px; margin-left:-6px;}
.mc-mtn-tier.t11{width:84px; height:30px; bottom:318px; margin-left:4px;}
.mc-mtn-tier.t12{width:58px; height:28px; bottom:346px;}
.mc-mtn-grass{
  position:absolute; width:34px; height:10px;
  background:#5AAA3A; border:2px solid #3A7D2A; border-top-color:#7bd667;
}
.mc-mtn-grass.g1{left:16px; bottom:34px;}
.mc-mtn-grass.g2{right:26px; bottom:64px;}
.mc-mtn-grass.g3{left:60px; bottom:96px; width:26px;}
.mc-mtn-ore{position:absolute; width:8px; height:8px; background:#2f2f2f;}
.mc-mtn-ore.o1{left:90px; bottom:140px; box-shadow: 16px 10px 0 #2f2f2f, 34px 2px 0 #454545, 52px 12px 0 #2f2f2f;}
.mc-mtn-ore.o2{left:250px; bottom:236px; background:#d8a583; box-shadow: -18px 8px 0 #b07a4f, 14px 12px 0 #d8a583;}
.mc-mtn-ore.o3{left:150px; bottom:210px; box-shadow: 16px -6px 0 #454545;}
.mc-mtn-snow{
  position:absolute; left:50%; transform:translateX(-50%);
  background:#f5f5f5; border:3px solid #c6c6c6; border-top-color:#ffffff;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.8);
}
.mc-mtn-snow.s1{width:88px; height:26px; bottom:372px;}
.mc-mtn-snow.s2{width:48px; height:24px; bottom:396px;}
.mc-mtn-snow.s3{width:26px; height:22px; bottom:418px;}
.mc-mtn-drip{position:absolute; width:10px; background:#f5f5f5; border:2px solid #c6c6c6; border-top:none;}
.mc-mtn-drip.d1{left:50%; margin-left:-40px; bottom:348px; height:26px;}
.mc-mtn-drip.d2{left:50%; margin-left:32px; bottom:350px; height:22px;}
.mc-mtn-drip.d3{left:50%; margin-left:-18px; bottom:378px; height:20px; width:8px;}
.mc-pine{position:absolute; width:30px; height:48px;}
.mc-pine i{position:absolute; left:50%; transform:translateX(-50%); display:block;}
.mc-pine .tr{bottom:0; width:6px; height:12px; background:#6B4226; border:1px solid #3e2516;}
.mc-pine .f1{bottom:10px; width:30px; height:10px; background:#2d5a1f; border:2px solid #1e3a1a;}
.mc-pine .f2{bottom:19px; width:22px; height:10px; background:#2d5a1f; border:2px solid #1e3a1a;}
.mc-pine .f3{bottom:28px; width:14px; height:10px; background:#35702a; border:2px solid #1e3a1a;}
.mc-pine.p1{left:34px; bottom:34px;}
.mc-pine.p2{left:196px; bottom:100px;}
/* rock strata banding — andesite/diorite feel */
.mc-mtn-tier.t4,.mc-mtn-tier.t5,.mc-mtn-tier.t6{background-color:#848484;}
.mc-mtn-tier.t10,.mc-mtn-tier.t11,.mc-mtn-tier.t12{background-color:#7c7c7c;}
/* grass-capped dirt tiers — foothills + upper benches */
.mc-mtn-tier.g{
  background-color:#8B5A2B;
  background-image:
    linear-gradient(rgba(0,0,0,0.08) 2px, transparent 2px),
    linear-gradient(90deg, rgba(0,0,0,0.07) 2px, transparent 2px);
  background-size:16px 16px,16px 16px;
  border-top-color:#7bd667;
}
.mc-mtn-tier.g::before{
  content:''; position:absolute; top:0; left:0; right:0; height:14px;
  background:#5AAA3A; border-bottom:2px solid #3A7D2A;
}
/* rolling hill ground — stepped grass-capped dirt mounds, bodies reach scene bottom */
.mc-hill{
  position:absolute; bottom:0;
  background:#8B5A2B;
  background-image:
    linear-gradient(rgba(0,0,0,0.08) 2px, transparent 2px),
    linear-gradient(90deg, rgba(0,0,0,0.07) 2px, transparent 2px);
  background-size:16px 16px;
  image-rendering:pixelated;
}
.mc-hill::before{
  content:''; position:absolute; top:0; left:0; right:0; height:14px;
  background:#5AAA3A; border-top:3px solid #7bd667;
  box-shadow:0 2px 0 #3A7D2A;
}
.mc-hill.h1{left:0; width:30%; height:90px;}
.mc-hill.h2{left:30%; width:30%; height:130px;}
.mc-hill.h3{left:60%; width:22%; height:100px;}
.mc-hill.h4{left:82%; width:18%; height:140px;}
/* background ridge — peaks at the very left, steps down rightward */
.mc-back{
  position:absolute; bottom:60px;
  background:#8B5A2B;
  background-image:
    linear-gradient(rgba(0,0,0,0.08) 2px, transparent 2px),
    linear-gradient(90deg, rgba(0,0,0,0.07) 2px, transparent 2px);
  background-size:16px 16px;
  filter:brightness(0.82);
  image-rendering:pixelated;
}
.mc-back::before{
  content:''; position:absolute; top:0; left:0; right:0; height:14px;
  background:#5AAA3A; border-top:3px solid #7bd667;
  box-shadow:0 2px 0 #3A7D2A;
}
.mc-back.b1{left:0; width:24%; height:300px;}
.mc-back.b2{left:22%; width:26%; height:230px;}
.mc-back.b3{left:45%; width:24%; height:180px;}
/* distance haze — dark wash in dark mode, pale wash in light mode */
.mc-back::after{
  content:''; position:absolute; inset:0;
  background:#1e1e1e; opacity:0.45;
}
body.light-mode .mc-back::after{
  background:#e6f0f6; opacity:0.4;
}
.mc-mountain.m2{left:54%; transform:scale(0.55); transform-origin:bottom left;}
.mc-tree.xl{transform:scale(1.7);}
.mc-scene-cloud{
  position:absolute; background:#fff;
  border:2px solid #c6c6c6; border-bottom-color:#8B8B8B;
  box-shadow:2px 2px 0 rgba(0,0,0,0.12);
  opacity:0.5; image-rendering:pixelated;
}
.mc-scene-cloud::before{
  content:''; position:absolute; left:12px; top:-12px;
  width:46px; height:14px; background:#fff;
  border:2px solid #c6c6c6; border-bottom:none;
}
.mc-scene-cloud.c1{left:34%; top:56px; width:92px; height:26px;}
.mc-scene-cloud.c2{left:64%; top:130px; width:70px; height:22px;}
.mc-scene-cloud.c2::before{width:36px; height:11px; top:-10px; left:10px;}
.mc-scene-cloud.c3{left:84%; top:48px; width:80px; height:24px;}
.mc-scene-cloud.c3::before{width:40px; height:12px; top:-11px;}
.mc-tree{position:absolute; bottom:32px; width:12px; height:48px; transform-origin:bottom center;}
.mc-tree.small{transform:scale(0.72)}
.mc-tree.large{transform:scale(1.18)}
.mc-trunk{
  position:absolute; bottom:0; left:50%; transform:translateX(-50%);
  width:10px; height:28px; background:#6B4226;
  border:1px solid #3e2516; border-top:none;
  box-shadow: inset 1px 0 0 rgba(255,255,255,0.14);
}
.mc-leaves{
  position:absolute; bottom:24px; left:50%; transform:translateX(-50%);
  width:42px; height:30px; background:#2d5a1f;
  border:2px solid #1e3a1a; border-top-color:#3A7D2A;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,0.07), inset -2px -2px 0 rgba(0,0,0,0.22);
}
.mc-leaves::after{
  content:''; position:absolute; inset:4px 6px 6px 6px;
  background:rgba(255,255,255,0.04);
  box-shadow: inset 6px 0 0 rgba(0,0,0,0.06);
}

/* Footer — pixel */
.foot{
  margin-top:0;display:flex;justify-content:center;gap:10px;align-items:center;
  color:#8a8a8a;font-family:'VT323', monospace;
  font-size:17px; line-height:1.2; letter-spacing:0.08em;flex-wrap:wrap;
  background:#1e1e1e; border-top:2px solid #373737; padding:14px 20px; image-rendering:pixelated;
}

/* Responsive */
@media(max-width:700px){
  .card-grid{grid-template-columns:1fr}
  .funding-tiers{grid-template-columns:1fr}
  .funding-head{flex-direction:column}
  .hero-title{font-size:34px}
  /* Mobile bar: centered logo + hamburger, links live in a dropdown */
  .segmented-wrap{
    flex-direction:row;
    align-items:center;
    justify-content:center;
    margin:0 0 24px;
    top:12px;
    padding:4px 0;
    overflow:visible;
  }
  .nav-logo-box{
    height:104px;
    width:auto;
    margin:0;
  }
  .nav-logo-box img{
    height:96px;
    margin-top:0;
  }
  #menu-toggle{
    display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px;
    position:absolute; right:4px; top:50%; transform:translateY(-50%);
    width:44px; height:44px;
    background:#8B8B8B;
    border:2px solid #373737; border-top-color:#c6c6c6; border-left-color:#c6c6c6;
    box-shadow:0 4px 0 rgba(0,0,0,0.35), inset 1px 1px 0 rgba(255,255,255,0.2);
    cursor:pointer; image-rendering:pixelated;
  }
  #menu-toggle:active{transform:translateY(calc(-50% + 1px)); box-shadow:none;}
  #menu-toggle span{display:block; width:22px; height:3px; background:#fff; box-shadow:1px 1px 0 rgba(0,0,0,0.4);}
  .segmented{display:none;}
  .segmented-wrap.menu-open .segmented{
    display:flex;
    position:absolute; top:calc(100% + 8px); left:0; right:0;
    flex-direction:column; align-items:stretch;
    z-index:30;
  }
  .seg-group{flex-direction:column; margin:0; width:100%;}
  .seg-btn{width:100%; justify-content:flex-start; height:42px; padding:10px 14px; font-size:19px;}
  .segmented-indicator{top:4px;}
  /* Theme toggle moves to top-left on mobile to make room for the hamburger */
  .theme-toggle{left:12px; right:auto; top:8px; width:64px; height:64px;}
  /* The desktop strip lives on .segmented, which becomes the dropdown on mobile —
     so hide it there and hang an equivalent strip off the bar instead */
  .segmented::before{display:none;}
  .segmented-wrap::before{
    content:''; position:absolute; bottom:100%; left:0; right:0; height:40px;
    pointer-events:none;
    background-color:var(--bg);
    background-image:
      linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px),
      linear-gradient(rgba(90,170,58,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(90,170,58,0.04) 1px, transparent 1px);
    background-size:16px 16px,16px 16px,32px 32px,32px 32px;
    background-attachment:fixed;
    transition:background-color 0.3s ease, background-image 0.3s ease;
  }
  body.light-mode .segmented-wrap::before{
    background-color:#87CEEB;
    background-image:
      linear-gradient(rgba(255,255,255,0.18) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.18) 1px, transparent 1px),
      linear-gradient(rgba(255,255,255,0.22) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.22) 1px, transparent 1px);
  }
}
@media(max-width:420px){
  .seg-btn{padding:9px 12px;font-size:12.5px}
  .funding-strip-inner{flex-wrap:wrap;gap:6px 10px}
  .mini-bar{order:5;max-width:100%;flex-basis:100%}
  /* Small phones: slightly smaller bar logo */
  .nav-logo-box{height:92px;}
  .nav-logo-box img{height:84px;}
  .mc-footer{margin-top:-120px;}
  .mc-back{display:none;}
  .mc-footer-scene{height:320px;}
  .mc-mountain{transform:scale(0.6); transform-origin:bottom left;}
  .mc-mountain.m2{display:none;}
  .mc-scene-cloud{opacity:0.35;}
}
