/* mc.owieclan.com: blocky, but all our own art (CSS and tiny SVG patterns, no game assets). */
:root {
  --sky-top: #5aa8ff;
  --sky-bottom: #bfe3ff;
  --grass: #5fb83a;
  --grass-dark: #3f8a26;
  --dirt: #7a5433;
  --ink: #1d1a17;
  --paper: #f6efe3;
  --stone: #2b2d31;
  --stone-edge: #45484f;
  --gold: #ffd23f;
  --on: #49e06b;
  --off: #ff5a4e;
  --px: 4px;
  --font-px: 'Silkscreen', ui-monospace, monospace;
  --font: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: #3a2a1c; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); }
code { font-family: var(--font-px); }

/* ---------- Sky ---------- */
.sky {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  padding: 72px 20px 180px;
  background: linear-gradient(var(--sky-top), var(--sky-bottom));
  transition: background 1s;
}
body.night .sky { background: linear-gradient(#0b1230, #2a3a72); }

.stars {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1s;
  background-image:
    radial-gradient(2px 2px at 10% 20%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 30% 8%, #fff 50%, transparent 51%),
    radial-gradient(3px 3px at 55% 25%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 72% 12%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 88% 30%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 20% 45%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 65% 48%, #fff 50%, transparent 51%),
    radial-gradient(3px 3px at 92% 6%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 42% 40%, #fff 50%, transparent 51%);
}
body.night .stars { opacity: .9; }

.orb {
  position: absolute; top: 56px; right: 9%;
  width: 72px; height: 72px;
  background: #fff6a8;
  box-shadow: 0 0 0 8px rgba(255, 246, 168, .35), 0 0 60px 10px rgba(255, 230, 120, .6);
}
body.night .orb {
  background: #e9ecf5;
  box-shadow: 0 0 0 8px rgba(233, 236, 245, .15), 0 0 40px 6px rgba(200, 210, 255, .35),
    inset -14px -10px 0 0 #c9cfde, inset 12px 18px 0 -6px #d8dceb;
}

.cloud {
  position: absolute;
  height: 28px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 28px -20px 0 0 rgba(255, 255, 255, .92), 56px 0 0 0 rgba(255, 255, 255, .92);
  animation: drift linear infinite;
}
body.night .cloud { background: rgba(190, 200, 235, .25); box-shadow: 28px -20px 0 0 rgba(190, 200, 235, .25), 56px 0 0 0 rgba(190, 200, 235, .25); }
.c1 { top: 90px; width: 120px; animation-duration: 90s; animation-delay: -20s; }
.c2 { top: 170px; width: 90px; animation-duration: 120s; animation-delay: -70s; }
.c3 { top: 60px; width: 150px; animation-duration: 150s; animation-delay: -110s; }
@keyframes drift { from { transform: translateX(-260px); } to { transform: translateX(110vw); } }

.hero { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; text-align: center; }
.kicker {
  margin: 0;
  font-family: var(--font-px);
  font-size: 18px;
  color: #10325e;
  letter-spacing: 1px;
}
body.night .kicker { color: #b9c8ff; }
h1 {
  margin: 4px 0 28px;
  font-family: var(--font-px);
  font-weight: 700;
  font-size: clamp(44px, 9vw, 84px);
  line-height: .95;
  color: #fff;
  text-shadow: var(--px) var(--px) 0 #23406b, calc(var(--px) * 2) calc(var(--px) * 2) 0 rgba(0, 0, 0, .25);
}

.join-card {
  margin: 0 auto;
  max-width: 520px;
  padding: 20px 22px 18px;
  background: var(--stone);
  border: var(--px) solid #111;
  box-shadow: inset 0 var(--px) 0 var(--stone-edge), inset 0 calc(var(--px) * -1) 0 #1a1b1e,
    0 calc(var(--px) * 2) 0 rgba(0, 0, 0, .3);
}

.status {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-px);
  font-size: 15px;
  margin-bottom: 14px;
}
.lamp {
  width: 16px; height: 16px;
  background: #888;
  box-shadow: 0 0 0 3px #111;
}
.status[data-state="online"] .lamp { background: var(--on); box-shadow: 0 0 0 3px #111, 0 0 14px 2px var(--on); animation: pulse 2s ease-in-out infinite; }
.status[data-state="offline"] .lamp { background: var(--off); box-shadow: 0 0 0 3px #111, 0 0 10px 1px var(--off); }
.status[data-state="loading"] .lamp { animation: blink .8s steps(2) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 3px #111, 0 0 4px 0 var(--on); } }
@keyframes blink { 50% { background: #444; } }

.address { display: flex; gap: 10px; align-items: stretch; }
.address code {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 12px 14px;
  font-size: clamp(16px, 4.4vw, 24px);
  color: var(--gold);
  background: #111;
  border: 2px solid #000;
  box-shadow: inset 0 0 0 2px #2a2a2a;
  user-select: all;
  word-break: break-all;
}
.btn {
  font-family: var(--font-px);
  font-size: 15px;
  padding: 0 18px;
  color: #fff;
  cursor: pointer;
  background: #6d6f75;
  border: 3px solid #000;
  box-shadow: inset 3px 3px 0 #9fa2a9, inset -3px -3px 0 #45474c;
}
.btn:hover { background: #7f8fb8; box-shadow: inset 3px 3px 0 #aebbe0, inset -3px -3px 0 #4e5a7d; }
.btn:active { box-shadow: inset -3px -3px 0 #9fa2a9, inset 3px 3px 0 #45474c; }
.btn.done { background: #3f8a26; box-shadow: inset 3px 3px 0 #6fc24c, inset -3px -3px 0 #2a5e19; }

.hint { margin: 12px 0 0; font-size: 14px; color: #c9c3b8; }

.players { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.players span {
  font-family: var(--font-px);
  font-size: 12px;
  padding: 4px 8px;
  background: #1a3d12;
  border: 2px solid #000;
  color: #c8f5b0;
}

/* ---------- Ground at the bottom of the sky ---------- */
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: 1; }
.hill {
  position: absolute; bottom: 0;
  background: var(--grass-dark);
}
.h1 { left: -5%; width: 45%; height: 72px; box-shadow: 40px -24px 0 -8px var(--grass-dark), 120px -40px 0 -16px var(--grass-dark); }
.h2 { right: -5%; width: 40%; height: 88px; box-shadow: -60px -28px 0 -10px var(--grass-dark); }
body.night .hill { background: #1f4a17; }
body.night .h1 { box-shadow: 40px -24px 0 -8px #1f4a17, 120px -40px 0 -16px #1f4a17; }
body.night .h2 { box-shadow: -60px -28px 0 -10px #1f4a17; }
.tree { position: absolute; bottom: 70px; width: 16px; height: 48px; background: #6b4423; }
.tree i {
  position: absolute; left: -32px; top: -56px;
  width: 80px; height: 64px;
  background: #2f7d1f;
  box-shadow: 16px -24px 0 -8px #2f7d1f;
}
body.night .tree i { background: #1a4a12; box-shadow: 16px -24px 0 -8px #1a4a12; }
.t1 { left: 14%; }
.t2 { right: 18%; bottom: 86px; transform: scale(.8); transform-origin: bottom; }

/* ---------- Dirt (everything below the grass) ---------- */
.dirt {
  position: relative;
  padding: 56px 20px 40px;
  display: grid;
  gap: 28px;
  justify-items: center;
  background-color: var(--dirt);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' shape-rendering='crispEdges'%3E%3Crect width='8' height='8' fill='%237a5433'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23634228'/%3E%3Crect x='5' y='0' width='1' height='1' fill='%238c6440'/%3E%3Crect x='3' y='3' width='2' height='1' fill='%23634228'/%3E%3Crect x='6' y='4' width='1' height='1' fill='%23956c47'/%3E%3Crect x='0' y='6' width='1' height='1' fill='%238c6440'/%3E%3Crect x='4' y='6' width='1' height='1' fill='%23553820'/%3E%3Crect x='7' y='7' width='1' height='1' fill='%23634228'/%3E%3Crect x='2' y='5' width='1' height='1' fill='%23956c47'/%3E%3C/svg%3E");
  background-size: 48px 48px;
  image-rendering: pixelated;
}
.dirt::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' shape-rendering='crispEdges'%3E%3Crect width='8' height='3' fill='%235fb83a'/%3E%3Crect x='0' y='3' width='2' height='1' fill='%235fb83a'/%3E%3Crect x='3' y='3' width='1' height='1' fill='%235fb83a'/%3E%3Crect x='5' y='3' width='3' height='1' fill='%235fb83a'/%3E%3Crect x='2' y='0' width='1' height='1' fill='%2378cf4f'/%3E%3Crect x='6' y='1' width='1' height='1' fill='%234aa12a'/%3E%3C/svg%3E");
  background-size: 48px 24px;
  image-rendering: pixelated;
}

.panel {
  width: 100%;
  max-width: 760px;
  padding: 26px 28px;
  color: var(--ink);
  background: var(--paper);
  border: var(--px) solid #1a120b;
  box-shadow: inset 0 calc(var(--px) * -1) 0 #d9cdb8, 0 calc(var(--px) * 2) 0 rgba(0, 0, 0, .35);
}
.panel h2 {
  margin: 0 0 12px;
  font-family: var(--font-px);
  font-size: 24px;
  line-height: 1.15;
  color: #3a2a1c;
}
.panel a { color: #2456c4; }
.lede { margin: 0 0 16px; font-size: 17px; }
.small { font-size: 14px; color: #6b5d4c; margin: 12px 0 0; }

.now { background: #233a5c; color: #eef3ff; box-shadow: inset 0 calc(var(--px) * -1) 0 #18294a, 0 calc(var(--px) * 2) 0 rgba(0, 0, 0, .35); }
.now h2 { color: var(--gold); font-size: clamp(26px, 5vw, 36px); }
.tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 8px;
  font-family: var(--font-px);
  font-size: 12px;
  color: #233a5c;
  background: var(--gold);
}
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 5px 10px; font-size: 14px; background: rgba(255, 255, 255, .1); border: 2px solid rgba(255, 255, 255, .2); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.num {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  font-family: var(--font-px);
  font-size: 20px;
  color: #fff;
  background: var(--grass-dark);
  border: 3px solid #1a120b;
  box-shadow: inset 3px 3px 0 #6fc24c;
}
.steps code { background: #efe3cc; padding: 1px 6px; font-size: 14px; }

.faq { margin-top: 14px; border-top: 2px dashed #d9cdb8; padding-top: 10px; }
.faq summary { cursor: pointer; font-weight: 800; }
.faq p { margin: 8px 0 0; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.fact {
  display: grid; gap: 2px;
  padding: 14px;
  background: #efe3cc;
  border: 3px solid #1a120b;
}
.fact .big { font-family: var(--font-px); font-size: 22px; color: #3a2a1c; }
.fact span:last-child { font-size: 14px; color: #6b5d4c; }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: '';
  position: absolute; left: 0; top: 5px;
  width: 16px; height: 16px;
  background: var(--grass);
  border: 2px solid #1a120b;
  box-shadow: inset 0 -5px 0 var(--dirt);
}

.shelf { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.pack {
  display: grid;
  padding: 12px;
  background: #5b3b22;
  color: #f6efe3;
  border: 3px solid #1a120b;
  box-shadow: inset 0 4px 0 #7a5433;
}
.pack span { font-size: 13px; color: #d8c4a6; }

/* ---------- Bedrock footer ---------- */
.bedrock {
  padding: 28px 20px 36px;
  text-align: center;
  font-size: 14px;
  color: #c9c9c9;
  background-color: #2b2b2b;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' shape-rendering='crispEdges'%3E%3Crect width='8' height='8' fill='%232b2b2b'/%3E%3Crect x='1' y='1' width='2' height='1' fill='%23444'/%3E%3Crect x='5' y='2' width='1' height='2' fill='%23161616'/%3E%3Crect x='2' y='5' width='1' height='1' fill='%23555'/%3E%3Crect x='6' y='6' width='2' height='1' fill='%23161616'/%3E%3Crect x='0' y='4' width='1' height='1' fill='%23161616'/%3E%3C/svg%3E");
  background-size: 48px 48px;
  image-rendering: pixelated;
}
.bedrock p { margin: 4px 0; }
.bedrock .small { color: #9a9a9a; }

@media (max-width: 560px) {
  .sky { padding-top: 48px; min-height: 600px; }
  .orb { width: 52px; height: 52px; top: 28px; right: 6%; }
  .panel { padding: 20px 18px; }
  .address { flex-direction: column; }
  .btn { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .cloud, .lamp { animation: none !important; }
}
