:root {
  --night: #0d0819;
  --violet: #7c55d6;
  --violet-hover: #946ff0;
  --pixel: 'Pixelify Sans', 'Courier New', monospace;
  --body: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--night); color: #efe9fb; font-family: var(--body); font-size: 1.05rem; line-height: 1.6; }
a { color: inherit; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Minecraft-achtige knoppen */
.mc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .5rem 1.5rem; cursor: pointer;
  font: 600 1.05rem var(--pixel); color: #fff; text-decoration: none;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .55);
  background: var(--violet); border: 2px solid #000;
  box-shadow: inset 3px 3px 0 rgba(255, 255, 255, .35), inset -3px -3px 0 rgba(0, 0, 0, .35);
}
.mc-btn:hover { background: var(--violet-hover); }
.mc-btn:active { box-shadow: inset 3px 3px 0 rgba(0, 0, 0, .35), inset -3px -3px 0 rgba(255, 255, 255, .2); }
.mc-btn.gray { background: #707078; }
.mc-btn.gray:hover { background: #8a8aa8; }

/* Hero: nachtelijke lucht met blokkerige maan en terrein */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 0 13rem;
  background: linear-gradient(to bottom,
    #150c2b 0 35%, #1d1040 35% 60%, #2a1758 60% 80%, #3a2076 80% 100%);
}
.hero::before { content: ''; position: absolute; inset: 0; background: url(stars.png); image-rendering: pixelated; opacity: .8; }
.moon {
  position: absolute; top: 2.5rem; right: clamp(1.5rem, 12%, 10rem);
  width: 72px; height: 72px; background: #f1eaff;
  box-shadow: inset -12px -12px 0 #d9ccf5, 0 0 0 6px rgba(241, 234, 255, .12);
}
.moon::after { content: ''; position: absolute; left: 14px; top: 16px; width: 14px; height: 14px; background: #d9ccf5; box-shadow: 30px 24px 0 #d9ccf5, 10px 34px 0 -2px #d9ccf5; }
.terrain {
  position: absolute; left: 0; right: 0; bottom: 0; height: 192px;
  background: url(terrain.png) repeat-x left bottom / auto 192px;
  image-rendering: pixelated;
}
.hero .wrap { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.logo { margin: 0 0 1.5rem; line-height: 0; }
.logo img { width: min(320px, 70vw); height: auto; filter: drop-shadow(0 8px 0 rgba(0, 0, 0, .25)); }

/* Serverlijst-regel, zoals in het Minecraft-menu Multiplayer */
.server {
  display: flex; align-items: flex-start; gap: 1rem; text-align: left;
  width: min(640px, 100%); padding: .7rem;
  background: rgba(0, 0, 0, .78); border: 2px solid #fff;
  font-family: var(--pixel); line-height: 1.3;
}
.server-icon { width: 64px; height: 64px; flex: none; }
.server-info { flex: 1; min-width: 0; }
.server-name { color: #fff; font-size: 1.25rem; font-weight: 600; }
.motd { color: #aaa; }
.motd .ver { color: #ff55ff; display: block; }
.ping { display: flex; align-items: center; gap: .55rem; flex: none; color: #aaa; }
.ping .bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.ping .bars i { width: 4px; background: #55ff55; }
.ping .bars i:nth-child(1) { height: 4px; }
.ping .bars i:nth-child(2) { height: 7px; }
.ping .bars i:nth-child(3) { height: 10px; }
.ping .bars i:nth-child(4) { height: 12px; }
.ping .bars i:nth-child(5) { height: 14px; }
.off .bars i, .unknown .bars i { background: #555; }
.off .count { color: #ff5555; }

.address { width: min(640px, 100%); margin-top: 1.25rem; text-align: left; }
.address label { display: block; margin-bottom: .3rem; color: #a0a0a0; font: 1rem var(--pixel); text-shadow: 2px 2px 0 #000; }
.addr-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.addr-row input {
  flex: 1 1 220px; min-width: 0; padding: .6rem .8rem;
  background: #000; color: #fff; border: 2px solid #a0a0a0; border-radius: 0;
  font: 1.15rem var(--pixel);
}
.addr-row input:focus { border-color: #fff; outline: none; }
.addr-row .mc-btn { min-width: 11rem; }
.actions { width: min(640px, 100%); margin-top: .8rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.actions .mc-btn { flex: 1 1 200px; }

/* Ondergrond: het team */
.ground {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(3rem, 8vw, 5rem);
  background: #4a4462 url(stone.png) 0 0 / 128px 128px;
  image-rendering: pixelated;
}
h2 { margin: 0 0 .5rem; font: 600 clamp(1.8rem, 5vw, 2.5rem) var(--pixel); color: #fff; text-shadow: 3px 3px 0 #000; }
.lead { margin: 0 0 2.2rem; max-width: 50ch; color: #f3eeff; text-shadow: 1px 1px 0 rgba(0, 0, 0, .7); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; list-style: none; margin: 0; padding: 0; }
.card {
  --accent: #fff;
  padding: 1.1rem .8rem 1rem; text-align: center;
  background: rgba(13, 8, 25, .9); border: 2px solid #000;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .14), inset -2px -2px 0 rgba(0, 0, 0, .5);
  font-family: var(--pixel);
}
.slot {
  width: 120px; height: 120px; margin: 0 auto .8rem; display: grid; place-items: center;
  background: #1a1230; border: 3px solid; border-color: #0a0614 #574784 #574784 #0a0614;
}
.slot img { width: 96px; height: 96px; object-fit: contain; image-rendering: pixelated; }
.card .name { color: #fff; font-size: 1.15rem; font-weight: 600; text-shadow: 2px 2px 0 #000; overflow-wrap: anywhere; }
.card .role { color: var(--accent); text-shadow: 2px 2px 0 #000; }
.empty { padding: 1.5rem; background: rgba(13, 8, 25, .9); border: 2px dashed #574784; font-family: var(--pixel); }

footer { padding: 1.6rem 0 2.2rem; background: var(--night); border-top: 4px solid #000; color: #a99cc9; font-size: .9rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem 1.5rem; }
.admin-link { display: inline-flex; align-items: center; gap: .45rem; color: #ff5555; font: 400 .95rem var(--pixel); text-decoration: none; }
.admin-link:hover { color: #ff9a9a; text-decoration: underline; }

/* Vote-pagina */
.brand { display: inline-block; margin-bottom: 1rem; line-height: 0; }
.brand img { width: min(200px, 55vw); height: auto; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .25)); }
.page-title { margin: 0 0 .5rem; font: 600 clamp(1.9rem, 6vw, 3rem) var(--pixel); line-height: 1.15; color: #fff; text-shadow: 3px 3px 0 #000; }
.page-sub { margin: 0 0 1.5rem; max-width: 46ch; color: #e6dcff; text-shadow: 1px 1px 0 #000; }
.vote-name, .vote {
  background: rgba(13, 8, 25, .9); border: 2px solid #000;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .14), inset -2px -2px 0 rgba(0, 0, 0, .5);
}
.vote-name { max-width: 720px; margin: 0 0 1.5rem; padding: 1rem; }
.vote-name label { display: block; margin-bottom: .3rem; color: #a0a0a0; font: 1rem var(--pixel); text-shadow: 2px 2px 0 #000; }
.vote-name input { width: 100%; padding: .6rem .8rem; background: #000; color: #fff; border: 2px solid #a0a0a0; border-radius: 0; font: 1.15rem var(--pixel); }
.vote-name input:focus { border-color: #fff; outline: none; }
.vote-name p { margin: .6rem 0 0; color: #cfc5ea; font-size: .95rem; }
.vote-list { max-width: 720px; margin: 0; padding: 0; list-style: none; display: grid; gap: .8rem; }
.vote { display: flex; align-items: center; gap: 1rem; padding: .8rem 1rem; font-family: var(--pixel); }
.vote .num {
  flex: none; width: 48px; height: 48px; display: grid; place-items: center;
  background: #1a1230; border: 3px solid; border-color: #0a0614 #574784 #574784 #0a0614;
  color: #ffaa00; font-size: 1.3rem; font-weight: 600; text-shadow: 2px 2px 0 #000;
}
.vote .title { flex: 1; min-width: 0; color: #fff; font-size: 1.15rem; font-weight: 600; text-shadow: 2px 2px 0 #000; overflow-wrap: anywhere; }
.vote .mc-btn { flex: none; }
@media (max-width: 520px) {
  .vote { flex-wrap: wrap; }
  .vote .title { flex-basis: calc(100% - 64px); }
  .vote .mc-btn { width: 100%; }
}
