:root {
  --ink: #f6f1e7;
  --muted: #ddd4c4;
  --grass: #5ea33a;
  --grass-dark: #3d7a28;
  --grass-light: #8fd45f;
  --dirt: #8b5a2b;
  --panel: rgba(24, 20, 16, 0.78);
  --stone: rgba(18, 16, 14, 0.84);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
  background: #1b140e url("wallpaper.png") center / cover no-repeat fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(12, 10, 8, 0.45), rgba(12, 10, 8, 0.18) 280px, rgba(12, 10, 8, 0.28));
}

.topbar,
.shell { position: relative; z-index: 1; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
  padding: 0.55rem 1.1rem;
  background: var(--stone);
  border-bottom: 4px solid var(--grass);
  box-shadow: 0 4px 0 #2f5c1e, 0 10px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.mark { color: var(--grass-light); font-size: 1.35rem; }

.ipbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.4rem;
  padding: 0.28rem 0.35rem 0.28rem 0.7rem;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid #5c4630;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.06);
}

.ip {
  color: var(--grass-light);
  font-family: Consolas, "Courier New", monospace;
  font-size: 1rem;
}

.copy,
.langs button,
.langs a,
.menu button,
.menu a {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.copy,
.langs button,
.langs a {
  color: #14210c;
  background: var(--grass);
  box-shadow: inset -2px -2px 0 var(--grass-dark), inset 2px 2px 0 var(--grass-light);
  text-decoration: none;
}

.copy { padding: 0.32rem 0.7rem; }

.langs {
  display: flex;
  gap: 0.35rem;
  margin-left: auto;
}

.langs button,
.langs a {
  min-width: 2.5rem;
  padding: 0.28rem 0.4rem;
  background: #3a3228;
  color: var(--muted);
  text-align: center;
  box-shadow: inset -2px -2px 0 #241c14, inset 2px 2px 0 #6a5a46;
}

.langs button.is-active,
.langs a.is-active {
  background: var(--grass);
  color: #14210c;
  box-shadow: inset -2px -2px 0 var(--grass-dark), inset 2px 2px 0 var(--grass-light);
}

.stats {
  display: flex;
  gap: 0.7rem;
  margin: 0 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.stats span + span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 0.7rem;
  background: var(--dirt);
  vertical-align: middle;
}

.shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100vh - 68px);
}

.menu {
  position: sticky;
  top: 68px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: calc(100vh - 68px);
  padding: 0.85rem 0.7rem;
  background: rgba(16, 13, 10, 0.72);
  border-right: 4px solid #5c4630;
  backdrop-filter: blur(8px);
}

.menu button,
.menu a {
  display: block;
  padding: 0.7rem 0.75rem;
  background: #2a241c;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  box-shadow: inset -2px -2px 0 #16120e, inset 2px 2px 0 #4a3d30;
}

.menu button:hover,
.menu a:hover { background: #352c22; }

.menu button.is-on,
.menu a.is-on,
.menu button.active {
  background: var(--grass-dark);
  color: #fff;
  box-shadow: inset -3px -3px 0 #2a5418, inset 3px 3px 0 var(--grass-light);
}

.menu button:focus-visible,
.menu a:focus-visible,
.langs button:focus-visible,
.langs a:focus-visible,
.copy:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--grass-light);
  outline-offset: 2px;
}

.view {
  padding: 1.6rem 1.8rem 2.5rem;
}

.pane {
  max-width: 760px;
  padding: 1.25rem 1.35rem 1.4rem;
  background: var(--panel);
  border: 3px solid #5c4630;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

h2 {
  margin: 0 0 0.9rem;
  padding-bottom: 0.45rem;
  border-bottom: 3px solid var(--grass);
  font-size: 1.35rem;
}

h3 { margin: 0 0 0.35rem; font-size: 1rem; }

p, .lines, .steps, .cmds dd { color: var(--muted); }

p { margin: 0.55rem 0 0; }

.steps, .lines { margin: 0; padding: 0; }

.steps { list-style: none; counter-reset: step; }

.steps li, .lines li { margin: 0 0 0.7rem; }

.steps li { position: relative; padding-left: 1.7rem; }

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  color: var(--grass-light);
  font-weight: 700;
}

.steps strong { display: block; color: var(--ink); }

.lines { padding-left: 1.15rem; }

.market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.85rem;
}

.sign {
  display: grid;
  width: 8rem;
  margin-top: 0.35rem;
  padding: 0.4rem 0.3rem;
  border: 3px solid #6d5030;
  background: #c9a36a;
  color: #2c2116;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  box-shadow: 3px 3px 0 #4a3420;
}

.sign-rent { border-color: #4d675f; background: #d5ebe3; box-shadow: 3px 3px 0 #35564e; }

.cmds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1.4rem;
  margin: 0;
}

.cmds div {
  display: grid;
  grid-template-columns: 6.6rem 1fr;
  gap: 0.4rem;
  align-items: baseline;
}

.cmds dt {
  margin: 0;
  color: var(--grass-light);
  font-family: Consolas, "Courier New", monospace;
}

.cmds dd { margin: 0; }

.note { margin-top: 0.9rem; }

@media (max-width: 860px) {
  .topbar { flex-wrap: wrap; padding: 0.7rem 0.8rem; }
  .stats { display: none; }
  .shell { grid-template-columns: 1fr; }
  .menu {
    position: static;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    border-right: 0;
    border-bottom: 4px solid #5c4630;
  }
  .menu button, .menu a { flex: 1 1 7rem; text-align: center; }
  .view { padding: 1rem 0.8rem 2rem; }
  .market-grid, .cmds { grid-template-columns: 1fr; }
}
