:root {
  --void: #0b0f14;
  --stone: #1a1f24;
  --stone2: #2a3138;
  --grass: #4caf50;
  --grass-dark: #2e7d32;
  --dirt: #6d4c41;
  --gold: #f4c430;
  --diamond: #4fc3f7;
  --iron: #cfd8dc;
  --redstone: #e53935;
  --ink: #e8f5e9;
  --muted: #9aa7b0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--void);
  color: var(--ink);
  font-family: "Pixelify Sans", sans-serif;
  overflow-x: hidden;
  image-rendering: pixelated;
}

.dirt {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 900px 500px at 70% 0%, rgba(79, 195, 247, 0.12), transparent 55%),
    radial-gradient(ellipse 700px 400px at 10% 30%, rgba(76, 175, 80, 0.1), transparent 50%),
    repeating-linear-gradient(
      0deg,
      #12171c 0 8px,
      #161c22 8px 16px
    ),
    linear-gradient(180deg, #0a1018 0%, #121820 40%, #0d1410 100%);
}

.grass-strip {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  z-index: 5;
  background:
    linear-gradient(180deg, var(--grass) 0 7px, var(--grass-dark) 7px 11px, var(--dirt) 11px 100%);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
}

.stars {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 28% 42%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 61% 22%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 78% 55%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 88% 14%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 45% 8%, rgba(255, 255, 255, 0.4), transparent);
  animation: twinkle 4.5s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes twinkle {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem clamp(1rem, 4vw, 2.5rem);
  animation: rise 0.7s ease both;
}

.brand-mark {
  font-family: "VT323", monospace;
  letter-spacing: 0.12em;
  font-size: 1.35rem;
  color: var(--gold);
  text-shadow: 2px 2px 0 #000;
}

.copy-chip {
  appearance: none;
  border: 2px solid #000;
  background: linear-gradient(180deg, #55c0ff 0%, #2a8fd4 100%);
  color: #041018;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25), 2px 2px 0 #000;
}

.copy-chip:hover {
  filter: brightness(1.08);
}

.hero {
  min-height: calc(100vh - 5.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 1.5rem clamp(1rem, 5vw, 3.5rem) 3.5rem;
  max-width: 56rem;
}

.logo {
  width: min(42vw, 280px);
  height: auto;
  display: block;
  image-rendering: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
  animation: logoIn 0.9s ease both, floaty 5s ease-in-out 1s infinite;
}

@keyframes logoIn {
  from { opacity: 0; transform: translateY(18px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

h1 {
  margin-top: 1.1rem;
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 600;
  color: var(--gold);
  text-shadow: 2px 2px 0 #000;
  animation: rise 0.85s 0.12s ease both;
}

.lede {
  margin-top: 0.75rem;
  max-width: 30rem;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.45;
  animation: rise 0.85s 0.18s ease both;
}

.players {
  margin-top: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  animation: rise 0.85s 0.24s ease both;
}

.heart {
  color: var(--redstone);
  font-size: 1.2rem;
  text-shadow: 1px 1px 0 #000;
  animation: beat 1.2s ease-in-out infinite;
}

@keyframes beat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.players strong {
  font-family: "VT323", monospace;
  font-size: clamp(2rem, 5vw, 2.8rem);
  color: #fff;
  text-shadow: 2px 2px 0 #000;
  font-variant-numeric: tabular-nums;
}

.players-label {
  color: var(--muted);
  font-size: 1.05rem;
}

.cta {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: rise 0.85s 0.3s ease both;
}

.primary {
  appearance: none;
  border: 3px solid #000;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1b2e0e;
  background: linear-gradient(180deg, #8bc34a 0%, #558b2f 55%, #33691e 100%);
  padding: 0.9rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.22),
    inset 0 -3px 0 rgba(0, 0, 0, 0.25),
    4px 4px 0 #000;
  transition: transform 0.12s ease;
}

.primary:hover {
  transform: translate(-1px, -1px);
  filter: brightness(1.06);
}

.primary:active {
  transform: translate(2px, 2px);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.15),
    1px 1px 0 #000;
}

.btn-icon {
  font-size: 1.1rem;
}

.hint {
  color: #7cff7c;
  font-family: "VT323", monospace;
  font-size: 1.35rem;
  text-shadow: 2px 2px 0 #000;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.modes {
  padding: 0 clamp(1rem, 5vw, 3.5rem) 4.5rem;
  max-width: 56rem;
}

.modes h2 {
  font-family: "VT323", monospace;
  letter-spacing: 0.08em;
  font-size: 1.8rem;
  color: var(--gold);
  text-shadow: 2px 2px 0 #000;
  margin-bottom: 1rem;
}

.modes ul {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.modes li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 3px solid #000;
  background: linear-gradient(180deg, #243038 0%, #1a2228 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.06), 3px 3px 0 #000;
}

.modes strong {
  display: block;
  color: var(--diamond);
  font-size: 1.15rem;
  text-shadow: 1px 1px 0 #000;
  margin-bottom: 0.15rem;
}

.modes p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.35;
}

.block {
  width: 36px;
  height: 36px;
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.2), inset -2px -2px 0 rgba(0, 0, 0, 0.35);
}

.block.grass {
  background: linear-gradient(180deg, #66bb6a 0 45%, #8d6e63 45% 100%);
}

.block.redbed {
  background: linear-gradient(180deg, #ef5350 0 55%, #cfd8dc 55% 100%);
}

.block.dirt-b {
  background: linear-gradient(180deg, #a1887f 0%, #6d4c41 100%);
}

.block.iron {
  background: linear-gradient(180deg, #eceff1 0%, #90a4ae 100%);
}

.foot {
  padding: 1.25rem clamp(1rem, 5vw, 3.5rem) 2.75rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 3px solid #000;
  background: rgba(0, 0, 0, 0.35);
}

@media (max-width: 640px) {
  .hero { min-height: calc(100svh - 5rem); }
  .brand-mark { font-size: 1.1rem; }
}
