@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
  --dirt: #5a3e26;
  --dirt-dark: #3e2b1a;
  --grass: #5bba3a;
  --grass-dark: #3e8f27;
  --gold: #ffcc33;
  --aqua: #55ffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Press Start 2P', monospace;
  color: #fff;
  background-color: #1d1612;
  background-image:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
    repeating-conic-gradient(#553a23 0% 25%, #4a321e 0% 50%) 0 0 / 64px 64px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  image-rendering: pixelated;
}

/* ---------- header ---------- */
header {
  background: linear-gradient(#6dcb47, var(--grass) 60%, var(--grass-dark));
  border-bottom: 6px solid var(--dirt-dark);
  box-shadow: 0 4px 0 rgba(0,0,0,.4);
  padding: 18px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

header a { text-decoration: none; }

.logo {
  font-size: 26px;
  color: #fff;
  text-shadow: 3px 3px 0 #2c641b, 5px 5px 0 rgba(0,0,0,.35);
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo .cube {
  width: 24px;
  height: 24px;
  background: linear-gradient(180deg, #6dcb47 0 34%, #7a5230 34% 100%);
  border: 2px solid #000;
  box-shadow: 2px 2px 0 rgba(0,0,0,.4);
}

.logo span { color: var(--gold); }

.lang { font-size: 10px; }
.lang a { color: #2c641b; text-decoration: none; padding: 2px 5px; }
.lang a.active { color: #fff; text-shadow: 1px 1px 0 #2c641b; }

/* ---------- layout ---------- */
main {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 16px 48px;
}

h1 { font-size: 18px; color: var(--gold); text-shadow: 2px 2px 0 #000; margin: 0 0 16px; }
h2 { font-size: 14px; color: var(--gold); text-shadow: 2px 2px 0 #000; margin: 30px 0 14px; }
p, li, label, td, th { font-size: 11px; line-height: 1.8; }

a { color: var(--aqua); }

/* ---------- MC panel ---------- */
.panel {
  background: rgba(20, 14, 10, .82);
  border: 3px solid #000;
  outline: 3px solid rgba(255,255,255,.12);
  padding: 22px;
  margin-bottom: 22px;
  box-shadow: 0 6px 0 rgba(0,0,0,.45);
}

.hero { text-align: center; }
.hero p { max-width: 540px; margin-left: auto; margin-right: auto; }

/* ---------- MC buttons ---------- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 12px;
  color: #fff;
  text-shadow: 2px 2px 0 rgba(0,0,0,.5);
  background: linear-gradient(#6dcb47, #3e8f27);
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.45), inset -2px -2px 0 rgba(0,0,0,.45);
  padding: 12px 20px;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover { background: linear-gradient(#7fdd58, #4aa530); }
.btn:active { box-shadow: inset -2px -2px 0 rgba(255,255,255,.45), inset 2px 2px 0 rgba(0,0,0,.45); }

.btn-ghost { background: linear-gradient(#9b9b9b, #6f6f6f); }
.btn-ghost:hover { background: linear-gradient(#8da7ff, #5e79d6); }

.btn-danger {
  font-family: inherit;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0,0,0,.5);
  background: linear-gradient(#d65c5c, #9c2f2f);
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.35), inset -2px -2px 0 rgba(0,0,0,.45);
  padding: 8px 12px;
  font-size: 9px;
  cursor: pointer;
}
.btn-danger:hover { background: linear-gradient(#e76d6d, #b03636); }

.btn-small { padding: 8px 12px; font-size: 10px; }

/* ---------- forms ---------- */
label { display: block; margin-bottom: 2px; }

input[type=text], input[type=password], input[type=email] {
  width: 100%;
  font-family: inherit;
  font-size: 12px;
  color: #fff;
  background: #000;
  border: 2px solid #a0a0a0;
  outline: 2px solid #000;
  padding: 12px 10px;
  margin: 6px 0 16px;
}

input:focus { border-color: #fff; }

/* ---------- server cards ---------- */
.servers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-bottom: 22px; }
.server-card { margin: 0; }

.server-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.server-head strong { font-size: 13px; }

.tag {
  font-size: 8px;
  padding: 4px 7px;
  border: 2px solid #000;
  background: #444;
  color: #ccc;
}
.tag.new { background: #2a6b1f; color: #aef0a0; }

/* novy server vyraznejsie, stary stlmeny */
.server-card.new {
  outline-color: rgba(91, 186, 58, .65);
  box-shadow: 0 0 22px rgba(91, 186, 58, .35), 0 6px 0 rgba(0,0,0,.45);
  animation: newglow 2.4s ease-in-out infinite;
}
.server-card.new .server-head strong { color: #aef0a0; }
.server-card.old { opacity: .7; }

@keyframes newglow {
  0%, 100% { box-shadow: 0 0 14px rgba(91, 186, 58, .25), 0 6px 0 rgba(0,0,0,.45); }
  50% { box-shadow: 0 0 30px rgba(91, 186, 58, .55), 0 6px 0 rgba(0,0,0,.45); }
}

.dot { display: inline-block; width: 12px; height: 12px; flex: none; }
.dot.on { background: #54fb54; box-shadow: 0 0 8px #54fb54; }
.dot.off { background: #fb5454; }

.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0; }
.meta div { font-size: 9px; color: #9b9b9b; line-height: 1.8; }
.meta b { color: #fff; }

.addr {
  font-size: 11px;
  color: var(--aqua);
  background: #000;
  border: 2px solid #333;
  padding: 10px;
  display: block;
  margin-top: 10px;
  word-break: break-all;
  cursor: pointer;
}

code.invite {
  color: var(--gold);
  background: #000;
  padding: 4px 8px;
  border: 2px solid #333;
  font-family: inherit;
  font-size: 10px;
}

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { border: 2px solid #333; padding: 9px 8px; text-align: left; font-size: 10px; }
th { background: rgba(255,255,255,.08); color: var(--gold); }

.yes { color: #54fb54; }
.no { color: #fb5454; }
.muted { color: #9b9b9b; }
.gold { color: var(--gold); }

/* playtime bar */
.bar-wrap { display: flex; align-items: center; gap: 8px; }
.bar { height: 10px; background: linear-gradient(#6dcb47, #3e8f27); border: 1px solid #000; min-width: 4px; }

.rank { color: #9b9b9b; }
.rank.r1 { color: var(--gold); }

/* ---------- records tabs ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.tab-btn {
  font-family: inherit;
  font-size: 10px;
  color: #ccc;
  background: linear-gradient(#7b7b7b, #565656);
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.3), inset -2px -2px 0 rgba(0,0,0,.45);
  padding: 9px 14px;
  cursor: pointer;
}
.tab-btn.active { background: linear-gradient(#6dcb47, #3e8f27); color: #fff; text-shadow: 1px 1px 0 rgba(0,0,0,.5); }

/* ---------- misc ---------- */
.flash { border: 3px solid #000; padding: 13px; margin-bottom: 18px; font-size: 11px; }
.flash.error { background: #7c2222; }
.flash.ok { background: #2a6b1f; }

.steps { list-style: none; padding: 0; margin: 0; }
.steps li { padding: 6px 0; font-size: 11px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

.scroll { max-height: 420px; overflow-y: auto; }

.center { text-align: center; }
.mt { margin-top: 22px; }
.right { display: flex; justify-content: flex-end; margin-bottom: 10px; }

footer {
  text-align: center;
  font-size: 9px;
  color: #8d8d8d;
  padding: 18px;
  background: rgba(0,0,0,.5);
}

@media (max-width: 600px) {
  .logo { font-size: 18px; }
  th, td { font-size: 8px; padding: 6px 4px; }
}
