/* MCForge — clean gaming aesthetic. Light-first with dark-mode toggle.
   Square-ish corners, one restrained accent, subtle blocky details. */
:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-2: #eef0ea;
  --ink: #1a1f16;
  --muted: #5d6656;
  --line: #dfe3d8;
  --accent: #3f7d2c;
  --accent-ink: #ffffff;
  --accent-soft: #e7f0df;
  --danger: #b3261e;
  --radius: 4px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}
[data-theme="dark"] {
  --bg: #12150f;
  --surface: #1a1e16;
  --surface-2: #232820;
  --ink: #e9ede4;
  --muted: #a7b09d;
  --line: #2e352a;
  --accent: #7cc24a;
  --accent-ink: #101503;
  --accent-soft: #22301a;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 16px; min-height: 60px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-cube {
  width: 26px; height: 26px; border-radius: 3px; flex: none;
  background: linear-gradient(to bottom, var(--accent) 0 35%, #6b4a2f 35% 100%);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.18);
}
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--muted); padding: 8px 12px; border-radius: var(--radius); font-weight: 600; font-size: 14px; }
.nav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav a.active { background: var(--accent-soft); color: var(--ink); }
.theme-btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: var(--radius); padding: 7px 10px; cursor: pointer; font-size: 14px; font-family: inherit;
}
.menu-btn { display: none; }
.hero {
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
  padding: 40px 32px; margin: 28px 0 20px; border-top: 4px solid var(--accent);
}
.hero h1 { margin: 0 0 6px; font-size: clamp(30px, 5vw, 46px); letter-spacing: -0.5px; }
.hero p.lede { color: var(--muted); font-size: 17px; max-width: 62ch; margin: 0 0 18px; }
.hero-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ip-box {
  font-family: var(--mono); font-size: 15px; background: var(--surface-2);
  border: 1px dashed var(--line); border-radius: var(--radius); padding: 9px 14px;
  display: inline-flex; gap: 10px; align-items: center; cursor: pointer; color: var(--ink);
}
.btn {
  display: inline-block; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink);
  padding: 10px 18px; border-radius: var(--radius); font-weight: 700; cursor: pointer; font-size: 15px; font-family: inherit;
}
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.status-dot.on { background: #2fa84f; box-shadow: 0 0 0 4px rgba(47,168,79,0.18); animation: pulse 2s infinite; }
.status-dot.off { background: #c0392b; box-shadow: 0 0 0 4px rgba(192,57,43,0.15); }
@keyframes pulse { 50% { opacity: 0.6; } }
.grid { display: grid; gap: 14px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) {
  .grid.cols-3, .grid.cols-4, .grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .nav { display: none; width: 100%; }
  .nav.open { display: flex; flex-direction: column; align-items: stretch; padding-bottom: 10px; }
  .menu-btn { display: inline-block; margin-left: auto; }
}
@media (max-width: 520px) { .grid.cols-3, .grid.cols-4, .grid.cols-2 { grid-template-columns: 1fr; } }
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; animation: rise 0.35s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.stat-num { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; }
.stat-label { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; }
.section-title { font-size: 22px; margin: 26px 0 12px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th, table.tbl td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
table.tbl th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.pill {
  display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); text-transform: uppercase; letter-spacing: 0.4px;
}
.pill.rank-VIP { background: #e8f3ff; border-color: #bcd9f5; color: #14568f; }
.pill.rank-VIPPP { background: #f3e8ff; border-color: #d5bdf5; color: #5b21a8; }
.pill.rank-MEDIA { background: #fff3df; border-color: #ecd3a3; color: #7a5200; }
.pill.rank-YOUTUBER { background: #ffe7e7; border-color: #f0b9b9; color: #a11616; }
.pill.ok { background: #e4f6e8; border-color: #b6dfc0; color: #1c6b32; }
.pill.bad { background: #fbe4e4; border-color: #ecb6b6; color: #8f1d1d; }
[data-theme="dark"] .pill.rank-VIP { background: #16283a; color: #9cc8f5; }
[data-theme="dark"] .pill.rank-VIPPP { background: #2a1c40; color: #cfa9f7; }
[data-theme="dark"] .pill.ok { background: #17301d; color: #8fdc9f; }
[data-theme="dark"] .pill.bad { background: #3a1a1a; color: #f09393; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-weight: 600; font-size: 14px; }
.input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); font-size: 15px; font-family: inherit;
}
.input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.form-card { max-width: 440px; }
.alert { border: 1px solid var(--line); border-left: 4px solid var(--danger); background: var(--surface); padding: 10px 14px; border-radius: var(--radius); margin: 12px 0; }
.alert.ok { border-left-color: #2fa84f; }
.alert.info { border-left-color: var(--accent); }
.alert.err { border-left-color: var(--danger); }
.code-big { font-family: var(--mono); font-size: 34px; letter-spacing: 6px; font-weight: 800; }
.footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 0 40px; color: var(--muted); font-size: 14px; }
.avatar { width: 64px; height: 64px; border-radius: var(--radius); image-rendering: pixelated; background: var(--surface-2); }
.player-head { display: flex; gap: 16px; align-items: center; }
.activity { display: grid; gap: 0; font-size: 14px; }
.activity div { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.rank-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 820px) { .rank-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .rank-cards { grid-template-columns: 1fr; } }
.rank-card { border-top-width: 4px; border-top-style: solid; }
.rank-card h3 { margin: 0 0 4px; }
.price { font-size: 24px; font-weight: 800; }
.perks { margin: 10px 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
