/* zhurbenko.dev MC landing — "Inventory" style */
@font-face {
  font-family: "Press Start 2P";
  src: url("press-start-2p.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --coal: #1d1c1a;
  --coal-deep: #141311;
  --grass: #5b873a;
  --grass-dark: #44652b;
  --wood: #8b6b4a;
  --wood-dark: #6b5238;
  --paper: #e8e6e1;
  --paper-dim: #a8a49a;
  --red: #c74e3c;
  --red-dark: #96382b;
  --pixel: "Press Start 2P", "Courier New", monospace;
}

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

body {
  background: var(--coal);
  color: var(--paper);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  min-height: 100vh;
}

/* subtle grass-green glow from the top, like standing in a field */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 80% 40% at 50% -10%, rgba(91, 135, 58, 0.16), transparent 70%);
  pointer-events: none;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  position: relative;
}

/* ---------- header ---------- */
.top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 3px solid var(--wood-dark);
  margin-bottom: 28px;
}

.logo-slot {
  width: 56px;
  height: 56px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 32px;
  background: var(--coal-deep);
  border: 3px solid var(--wood);
  box-shadow: inset 0 0 0 2px var(--coal-deep), 0 3px 0 var(--wood-dark);
  /* pixel "inner bevel" via gradient corners */
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.07) 25%, transparent 25%);
  background-size: 8px 8px;
}

.top-text h1 {
  font-family: var(--pixel);
  font-size: 18px;
  line-height: 1.3;
  color: var(--paper);
  letter-spacing: 0.5px;
}

.top-sub { color: var(--paper-dim); font-size: 14px; margin-top: 4px; }

.status-chip {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--pixel);
  font-size: 9px;
  color: var(--paper-dim);
  background: var(--coal-deep);
  border: 2px solid var(--wood-dark);
  padding: 8px 10px;
  white-space: nowrap;
}

.status-chip.online { color: var(--grass); border-color: var(--grass-dark); }
.status-chip.offline { color: var(--red); border-color: var(--red-dark); }

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper-dim);
  animation: blink 1.2s steps(2, start) infinite;
}
.status-chip.online .pulse { background: var(--grass); animation: none; }
.status-chip.offline .pulse { background: var(--red); animation: none; }

@keyframes blink { 50% { opacity: 0.15; } }

/* ---------- slots (panels) ---------- */
.slot {
  background: var(--coal-deep);
  border: 3px solid var(--wood);
  box-shadow: inset 0 0 0 2px var(--coal-deep), 0 4px 0 var(--wood-dark);
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%);
  background-size: 10px 10px;
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 44px;
}

.hero-status {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.status-line { text-align: center; }

.pixel {
  font-family: var(--pixel);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 1px;
}

.pixel.big { font-size: 16px; }

#st-state.online-state { color: var(--grass); }
#st-state.offline-state { color: var(--red); }
#st-state.checking-state { color: var(--paper-dim); }

.status-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  align-items: baseline;
}

.status-grid .k { color: var(--paper-dim); font-size: 13px; }
.status-grid .v { font-size: 14px; }

.motd {
  margin-top: auto;
  text-align: center;
  color: var(--paper);
  font-size: 13px;
  font-style: italic;
  border-top: 2px dashed var(--wood-dark);
  padding-top: 12px;
}

.hero-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.hero-side h2 { font-size: 15px; color: var(--grass); word-break: break-all; }
.hero-side p { color: var(--paper-dim); font-size: 15px; }

.btn-copy {
  align-self: flex-start;
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--paper);
  background: var(--wood);
  border: 2px solid var(--wood);
  border-bottom-width: 4px;
  border-bottom-color: var(--wood-dark);
  padding: 12px 16px;
  cursor: pointer;
  transition: transform 0.05s, background 0.1s;
}

.btn-copy:hover { background: #9a7a57; }
.btn-copy:active { transform: translateY(3px); border-bottom-width: 1px; }
.btn-copy.copied { background: var(--grass); border-bottom-color: var(--grass-dark); }

/* ---------- howto ---------- */
.section-title {
  font-size: 20px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 3px;
  background: var(--wood-dark);
}

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

.step {
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--grass);
  color: var(--coal);
  font-size: 14px;
  box-shadow: 0 3px 0 var(--grass-dark);
}

.step h3 { font-size: 16px; color: var(--paper); }
.step p { color: var(--paper-dim); font-size: 14px; }

.addr {
  background: var(--coal);
  border: 2px dashed var(--wood-dark);
  padding: 10px;
  text-align: center;
  font-size: 10px;
  color: var(--paper);
  word-break: break-all;
}

.btn-green {
  margin-top: auto;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--paper);
  background: var(--grass);
  border: 2px solid var(--grass);
  border-bottom-width: 4px;
  border-bottom-color: var(--grass-dark);
  padding: 12px 14px;
  transition: transform 0.05s, background 0.1s;
}

.btn-green:hover { background: #689544; }
.btn-green:active { transform: translateY(3px); border-bottom-width: 1px; }

/* ---------- footer ---------- */
footer {
  margin-top: 48px;
  text-align: center;
  color: var(--paper-dim);
  font-size: 13px;
  border-top: 3px solid var(--wood-dark);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pixel.mini { font-size: 9px; color: var(--wood); }
.dim { opacity: 0.6; font-size: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .top-sub { display: none; }
  .status-chip { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; opacity: 1; }
}
