:root {
  --bg: #0d120d;
  --bg-alt: #131a13;
  --card: #182018;
  --card-border: #2b3a2b;
  --grass: #5b9b34;
  --grass-dark: #3f7024;
  --grass-light: #7cbb3f;
  --dirt: #6b4423;
  --dirt-dark: #4a2f18;
  --bright-green: #4dff4d;
  --bright-green-glow: #4dff4d99;
  --text: #e6f0e6;
  --text-dim: #a7b8a7;
  --wood: #8b5a2b;
  --wood-dark: #6b4423;
  --stone: #4a4f4a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'VT323', monospace;
  font-size: 20px;
  overflow-x: hidden;
}

h1, h2, h3, .btn, .ip-value, .ip-label {
  font-family: 'Press Start 2P', monospace;
}

/* subtle grid overlay for a "block world" feel */
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 32px 32px;
}

a { color: inherit; text-decoration: none; }
code {
  background: #0006;
  border: 1px solid var(--card-border);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'VT323', monospace;
  font-size: 1.05em;
  color: var(--grass-light);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(ellipse at top, #1c2b17 0%, var(--bg) 65%);
  padding: 64px 20px 0;
  text-align: center;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* isometric grass block, pure CSS */
.mc-cube {
  position: relative;
  width: 130px;
  height: 150px;
  margin-bottom: 18px;
  filter: drop-shadow(0 8px 18px #0008);
}
.mc-cube .face { position: absolute; width: 130px; height: 130px; }
.mc-cube .top {
  top: 0;
  background:
    repeating-linear-gradient(45deg, #0000 0 6px, #0001 6px 12px),
    linear-gradient(135deg, var(--grass-light), var(--grass));
  clip-path: polygon(50% 0%, 100% 25%, 50% 50%, 0% 25%);
}
.mc-cube .left {
  top: 10px;
  background:
    repeating-linear-gradient(0deg, #0000 0 5px, #0002 5px 10px),
    linear-gradient(var(--dirt), var(--dirt-dark));
  clip-path: polygon(0% 25%, 50% 50%, 50% 100%, 0% 75%);
}
.mc-cube .right {
  top: 10px;
  background:
    repeating-linear-gradient(0deg, #0000 0 5px, #0003 5px 10px),
    linear-gradient(#7a4f29, var(--dirt));
  clip-path: polygon(50% 50%, 100% 25%, 100% 75%, 50% 100%);
}

.title {
  font-size: 1.9rem;
  line-height: 1.4;
  margin: 8px 0 14px;
  color: #fff;
  text-shadow: 0 0 18px var(--bright-green-glow), 3px 3px 0 #000;
}

.subtitle {
  font-size: 1.4rem;
  color: var(--text-dim);
  margin: 0 0 28px;
}

.hl {
  color: var(--bright-green);
  text-shadow: 0 0 10px var(--bright-green-glow);
}

/* ---------- IP box ---------- */
.ip-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #060a06;
  border: 3px solid var(--grass-dark);
  box-shadow: inset 0 0 0 2px #0008, 0 0 24px #4dff4d22;
  border-radius: 6px;
  padding: 14px 22px;
  margin-bottom: 26px;
  flex-wrap: wrap;
  justify-content: center;
}
.ip-box.inline {
  display: inline-flex;
  padding: 8px 16px;
  margin: 6px 0 0;
}
.ip-box.big {
  padding: 22px 34px;
  gap: 20px;
}
.ip-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}
.ip-value {
  font-size: 1.3rem;
  color: var(--bright-green);
  text-shadow: 0 0 12px var(--bright-green-glow);
  letter-spacing: 1px;
}
.ip-box.big .ip-value { font-size: 1.7rem; }

.copy-btn {
  background: var(--stone);
  border: 2px solid #000;
  color: var(--text);
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform .1s, background .15s;
}
.copy-btn:hover { background: var(--grass-dark); transform: translateY(-1px); }
.copy-btn:active { transform: translateY(1px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  padding: 16px 26px;
  border-radius: 4px;
  border: 3px solid #000;
  cursor: pointer;
  margin: 6px 4px 26px;
  transition: transform .1s ease, filter .15s ease;
  box-shadow: 0 4px 0 #0006;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn:active { transform: translateY(1px); box-shadow: 0 2px 0 #0006; }

.btn-primary {
  background: linear-gradient(var(--grass-light), var(--grass-dark));
  color: #06210a;
}
.btn-sub { font-family: 'VT323', monospace; font-size: 1rem; opacity: .8; }

.btn-secondary {
  background: linear-gradient(#3a4a3a, #22301f);
  color: var(--text);
}

.btn-forge {
  background: linear-gradient(var(--wood), var(--wood-dark));
  color: #fff2df;
}

.btn-shader {
  background: linear-gradient(#3fb8b8, #237070);
  color: #e6ffff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.opt {
  font-family: 'VT323', monospace;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: normal;
}

/* ---------- Pixel divider ---------- */
.pixel-divider {
  height: 22px;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--grass) 0 22px,
    var(--grass-dark) 22px 44px
  );
  box-shadow: inset 0 -6px 0 #0003, inset 0 4px 0 #ffffff22;
  position: relative;
  z-index: 1;
}
.pixel-divider.small { height: 12px; margin: 48px 0; }

/* ---------- Layout ---------- */
main {
  position: relative;
  z-index: 1;
  background: var(--bg-alt);
}
.section {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 20px;
}
.section h2 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon { font-size: 1.1em; }

/* requirements grid */
.req-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.req-card {
  background: var(--card);
  border: 2px solid var(--card-border);
  border-radius: 6px;
  padding: 22px;
  text-align: center;
}
.req-card h3 { margin: 8px 0; font-size: .95rem; color: var(--grass-light); }
.req-card p { color: var(--text-dim); margin: 0; font-size: 1.15rem; }
.req-icon { font-size: 2rem; }

/* steps */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.steps li {
  display: flex;
  gap: 20px;
  background: var(--card);
  border: 2px solid var(--card-border);
  border-left: 5px solid var(--grass);
  border-radius: 6px;
  padding: 22px 24px;
}
.steps li.optional {
  border-left: 5px solid #3fb8b8;
  border-style: solid;
  background: #131c1c;
}
.steps li.optional .step-num {
  background: #237070;
}
.step-num {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grass-dark);
  border: 2px solid #000;
  border-radius: 4px;
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  color: #fff;
}
.step-body { flex: 1; min-width: 0; }
.step-body h3 { margin: 2px 0 10px; color: #fff; font-size: 1rem; }
.step-body p { margin: 0 0 10px; color: var(--text-dim); font-size: 1.2rem; line-height: 1.4; }
.step-body .tip {
  background: #1d270f;
  border: 1px dashed var(--grass-dark);
  padding: 8px 12px;
  border-radius: 4px;
  color: var(--grass-light);
  font-size: 1.05rem;
}
.path-list { color: var(--text-dim); font-size: 1.15rem; padding-left: 20px; }
.path-list li { margin-bottom: 4px; }

/* server section */
.server-section { text-align: center; }
.server-desc { color: var(--text-dim); font-size: 1.3rem; margin-bottom: 22px; }

/* footer */
footer {
  position: relative;
  z-index: 1;
  background: #070a07;
  border-top: 3px solid var(--grass-dark);
  padding: 30px 20px;
  text-align: center;
}
.footer-inner p { margin: 4px 0; color: var(--text-dim); font-size: 1.15rem; }
.footer-small { font-size: 0.95rem; opacity: .6; }

/* toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--grass-dark);
  color: #fff;
  border: 2px solid #000;
  padding: 10px 20px;
  border-radius: 6px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 50;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 600px) {
  .title { font-size: 1.3rem; }
  .steps li { flex-direction: column; }
  .ip-value { font-size: 1rem; }
  .ip-box.big .ip-value { font-size: 1.2rem; }
}
