:root {
  --bg: #07101f;
  --bg-soft: #0c1628;
  --card: rgba(16, 25, 45, .94);
  --card-2: rgba(20, 31, 54, .92);
  --line: rgba(180, 200, 255, .14);
  --text: #f5f8ff;
  --muted: #98a9c8;
  --purple: #8d82ff;
  --purple-soft: rgba(141, 130, 255, .14);
  --green: #35df89;
  --green-soft: rgba(53, 223, 137, .12);
  --red: #ff6f78;
  --orange: #ffb451;
  --cyan: #75dfff;
  --radius: 22px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(91, 93, 255, .12), transparent 35%),
    linear-gradient(180deg, #07101f 0%, #091426 52%, #06101b 100%);
  color: var(--text);
  font-family: Inter, ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
}

button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.sky-layer {
  position: fixed;
  inset: 0 0 auto 0;
  height: 610px;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(20, 31, 78, .72), rgba(8, 20, 42, .22) 70%, transparent);
  transition: background .6s ease;
}

body.day .sky-layer {
  background:
    linear-gradient(180deg, rgba(51, 148, 222, .42), rgba(19, 65, 113, .16) 70%, transparent);
}

.stars {
  position: absolute;
  inset: 0;
  opacity: .8;
  background-image:
    radial-gradient(circle, #fff 0 1px, transparent 1.6px),
    radial-gradient(circle, #a8c9ff 0 1px, transparent 1.7px);
  background-position: 20px 20px, 70px 90px;
  background-size: 110px 110px, 170px 170px;
  transition: opacity .5s ease;
}

body.day .stars { opacity: .08; }

.sky-orb {
  position: absolute;
  top: 96px;
  right: 9vw;
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 50%;
  pointer-events: auto;
  cursor: pointer;
  background: #d8ddff;
  box-shadow: 0 0 42px rgba(194, 205, 255, .56);
  transition: .5s ease;
}

.sky-orb::after {
  content: "";
  position: absolute;
  width: 62px;
  height: 62px;
  left: 19px;
  top: -6px;
  border-radius: 50%;
  background: #101d39;
  transition: .5s ease;
}

body.day .sky-orb {
  background: #ffd76a;
  box-shadow: 0 0 46px rgba(255, 202, 75, .55);
}
body.day .sky-orb::after { opacity: 0; transform: scale(.2); }

.cloud {
  position: absolute;
  width: 130px;
  height: 32px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .12);
  filter: blur(.2px);
  animation: cloudMove 30s linear infinite;
}
.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  bottom: 0;
  background: inherit;
  border-radius: 8px 8px 0 0;
}
.cloud::before { left: 22px; width: 44px; height: 54px; }
.cloud::after { right: 18px; width: 52px; height: 42px; }
.cloud-one { top: 150px; left: 8%; }
.cloud-two { top: 250px; left: 62%; animation-duration: 43s; animation-delay: -15s; }
@keyframes cloudMove { to { transform: translateX(120px); } }

.hero {
  position: relative;
  min-height: 610px;
  padding: 22px max(24px, calc((100vw - 1220px) / 2));
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: rgba(8, 15, 31, .62);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 55px rgba(0,0,0,.18);
}

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; }
.brand img { width: 37px; height: 37px; filter: drop-shadow(0 8px 8px rgba(0,0,0,.4)); }
.nav-links { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.nav-links a {
  padding: 9px 12px;
  border-radius: 10px;
  color: #c7d3e9;
  font-size: .84rem;
  font-weight: 750;
}
.nav-links a:hover { background: rgba(255,255,255,.07); color: white; }
.nav-links .nav-admin {
  border: 1px solid rgba(255, 179, 81, .24);
  background: rgba(255, 179, 81, .08);
  color: #ffd08b;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 60px;
  min-height: 440px;
  padding: 65px 28px 95px;
}

.eyebrow, .section-kicker {
  display: block;
  color: #95a8ff;
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1 {
  max-width: 850px;
  margin: 12px 0 20px;
  font-size: clamp(42px, 6.6vw, 84px);
  line-height: .98;
  letter-spacing: -.055em;
  text-wrap: balance;
}
h1 span { color: #88f0b4; text-shadow: 0 0 32px rgba(53,223,137,.16); }
.hero-copy {
  max-width: 700px;
  margin: 0;
  color: #b7c5dc;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button, .small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  font-weight: 850;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.button { min-height: 47px; padding: 0 18px; }
.button:hover, .small-button:hover { transform: translateY(-2px); }
.button.primary { background: linear-gradient(135deg, #35c97f, #2aa967); color: #07170e; }
.button.ghost { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: white; }
.button.danger { border-color: rgba(255,111,120,.36); background: rgba(255,111,120,.10); color: #ffabb1; }
.small-button {
  min-height: 38px;
  padding: 0 13px;
  border-color: rgba(133, 155, 255, .25);
  background: rgba(133, 155, 255, .09);
  color: #cbd3ff;
  font-size: .8rem;
}

.hero-block {
  position: relative;
  display: grid;
  place-items: center;
  width: 220px;
  height: 240px;
  border: 0;
  background: transparent;
  cursor: pointer;
  justify-self: center;
}
.hero-block img {
  width: 180px;
  filter: drop-shadow(0 34px 26px rgba(0,0,0,.5));
  animation: blockFloat 4s ease-in-out infinite;
  transition: transform .2s ease;
}
.hero-block:hover img { transform: scale(1.08) rotate(-2deg); }
.hero-block span {
  position: absolute;
  bottom: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(5, 12, 23, .7);
  color: #b8c6dd;
  font-size: .73rem;
}
@keyframes blockFloat { 50% { transform: translateY(-13px) rotate(1deg); } }

.hero-ground {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  height: 62px;
}
.hero-ground span {
  border-top: 12px solid #52a94e;
  background:
    linear-gradient(135deg, rgba(255,255,255,.06) 25%, transparent 25%) 0 0/22px 22px,
    #5e3d27;
  box-shadow: inset 0 9px #377b38;
}

.page-shell { width: min(1220px, calc(100% - 32px)); margin: -28px auto 0; position: relative; z-index: 2; }

.overview-bar, .panel, .server-card, .runner-shell, .admin-teaser {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(19, 29, 51, .96), rgba(9, 18, 34, .97));
  box-shadow: 0 24px 70px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.035);
}

.overview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
  padding: 18px 22px;
  border-radius: 18px;
}
.overview-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: .74rem; }
.overview-bar strong { font-size: 1rem; }
.overview-side { display: flex; gap: 9px; color: #aab8d0; font-size: .82rem; }
.separator { opacity: .35; }

.section { padding: 76px 0 0; }
.section-heading, .panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
h2 { margin: 6px 0 0; font-size: clamp(25px, 3vw, 36px); letter-spacing: -.035em; }
.section-heading p { max-width: 650px; margin: 8px 0 0; color: var(--muted); line-height: 1.55; }

.server-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.server-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 22px;
  border-radius: var(--radius);
}
.server-card::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -90px;
  top: -110px;
  border-radius: 50%;
  pointer-events: none;
  opacity: .5;
}
.server-card.purple::after { background: radial-gradient(circle, rgba(141,130,255,.2), transparent 67%); }
.server-card.green::after { background: radial-gradient(circle, rgba(53,223,137,.19), transparent 67%); }

.server-card-head, .server-status-row, .server-name-wrap {
  display: flex;
  align-items: center;
}
.server-card-head, .server-status-row { justify-content: space-between; gap: 14px; }
.server-name-wrap { gap: 12px; min-width: 0; }
.server-emblem {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  font-size: 23px;
}
.purple .server-emblem { border: 1px solid rgba(141,130,255,.29); background: var(--purple-soft); color: #b8b0ff; }
.green .server-emblem { border: 1px solid rgba(53,223,137,.28); background: var(--green-soft); color: #7df1ae; }
.server-label { color: var(--muted); font-size: .7rem; }
.server-card h3 { margin: 2px 0 0; font-size: 1.2rem; }
.server-port {
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: #b9c8de;
  font-size: .73rem;
  font-weight: 800;
}

.server-status-row { margin: 18px 0 14px; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  font-size: .79rem;
  font-weight: 850;
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #8190a9; box-shadow: 0 0 10px rgba(129,144,169,.5); }
.server-card.online .status-dot { background: var(--green); box-shadow: 0 0 12px rgba(53,223,137,.72); }
.server-card.offline .status-dot { background: var(--red); box-shadow: 0 0 12px rgba(255,111,120,.65); }
.server-card.degraded .status-dot { background: var(--orange); box-shadow: 0 0 12px rgba(255,180,81,.67); }
.server-card.scheduled .status-dot { background: var(--purple); box-shadow: 0 0 13px rgba(141,130,255,.75); }
.updated { color: var(--muted); font-size: .71rem; }

.sleep-panel {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 148px;
  margin: 13px 0 0;
  padding: 18px;
  border: 1px solid rgba(141,130,255,.28);
  border-radius: 17px;
  background:
    radial-gradient(circle at 90% 10%, rgba(141,130,255,.22), transparent 34%),
    linear-gradient(135deg, rgba(39,44,85,.92), rgba(17,25,48,.96));
}
.sleep-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border: 1px solid rgba(160,169,255,.3);
  border-radius: 19px;
  background: rgba(141,130,255,.13);
  color: #ccd0ff;
  font-size: 2rem;
}
.sleep-panel span { color: #aeb8ff; font-size: .68rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.sleep-panel strong { display: block; margin-top: 5px; font-size: 1.15rem; }
.sleep-panel p { margin: 5px 0 10px; color: #cbd4e7; font-size: .82rem; }
.sleep-panel b { display: inline-block; padding: 6px 9px; border: 1px solid rgba(53,223,137,.2); border-radius: 999px; background: rgba(53,223,137,.07); color: #74e7a5; font-size: .72rem; }

.server-card.scheduled .metric-grid { display: none; }
.server-card.scheduled .technical-message { display: none !important; }

.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.metric {
  min-width: 0;
  min-height: 92px;
  padding: 13px;
  border: 1px solid rgba(190,205,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.metric.wide { grid-column: 1 / -1; }
.metric > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: .72rem; }
.metric strong { display: block; font-size: .94rem; overflow-wrap: anywhere; }
.metric small { display: block; margin-top: 5px; color: #95a6c5; font-size: .7rem; overflow-wrap: anywhere; }
.player-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.player-chip {
  padding: 4px 7px;
  border: 1px solid rgba(53,223,137,.22);
  border-radius: 999px;
  background: rgba(53,223,137,.08);
  color: #adf4ca;
  font-size: .68rem;
}
.meter { height: 7px; margin-top: 10px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); }
.meter i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7785ff, #52dfff); transition: width .35s ease; }
.meter i.warn { background: linear-gradient(90deg, #ffbd55, #ff8e4e); }
.meter i.bad { background: linear-gradient(90deg, #ff8b6f, #ff5b67); }
.technical-message { margin-top: 10px; padding: 9px 11px; border: 1px solid rgba(255,180,81,.25); border-radius: 11px; background: rgba(255,180,81,.07); color: #ffcf87; font-size: .72rem; }

.split-section { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; }
.panel { min-width: 0; padding: 22px; border-radius: var(--radius); }
.panel-head { align-items: center; margin-bottom: 15px; }
.panel-head h2 { font-size: 1.45rem; }
.mini-steve { width: 58px; height: 70px; object-fit: contain; }
.pixel-badge { padding: 5px 8px; border-radius: 8px; background: rgba(255,111,120,.11); color: #ff9ca4; font-size: .66rem; font-weight: 900; }

.combined-players, .activity-feed { display: grid; gap: 9px; }
.combined-player, .activity-row {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 13px;
  background: rgba(255,255,255,.03);
}
.combined-player { grid-template-columns: 38px minmax(0,1fr) auto; }
.player-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(145deg, #9d704b 0 48%, #4d8f4d 48%);
  font-weight: 900;
}
.combined-player strong, .combined-player small { display: block; }
.combined-player small { margin-top: 3px; color: var(--muted); font-size: .7rem; }
.online-pip { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(53,223,137,.7); }
.activity-row { grid-template-columns: 11px minmax(0,1fr); }
.activity-row i { width: 9px; height: 9px; border-radius: 50%; background: var(--purple); }
.activity-row strong { display: block; font-size: .82rem; }
.activity-row small { display: block; margin-top: 3px; color: var(--muted); font-size: .69rem; }
.empty-state { padding: 17px; border: 1px dashed rgba(255,255,255,.13); border-radius: 13px; color: var(--muted); text-align: center; }

.runner-section { padding-bottom: 0; }
.score-box { text-align: right; }
.score-box span { display: block; color: var(--muted); font-size: .72rem; }
.score-box strong { font-size: 2rem; }
.runner-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  touch-action: manipulation;
}
#runner-canvas { display: block; width: 100%; height: auto; min-height: 260px; background: #18355e; }
.runner-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 20px;
  background: rgba(5, 11, 23, .68);
  backdrop-filter: blur(5px);
  text-align: center;
}
.runner-overlay.hidden { display: none; }
.runner-overlay img { width: 70px; height: 90px; object-fit: contain; }
.runner-overlay strong { font-size: 1.35rem; }
.runner-overlay span { color: #b9c7dd; font-size: .83rem; }
.runner-hud {
  position: absolute;
  top: 13px;
  left: 13px;
  right: 13px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
  color: white;
  font-size: .77rem;
  text-shadow: 0 2px 5px rgba(0,0,0,.7);
}

.admin-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 76px;
  padding: 25px;
  border-radius: var(--radius);
}
.admin-teaser p { max-width: 720px; margin: 9px 0 0; color: var(--muted); line-height: 1.55; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px max(24px, calc((100vw - 1220px) / 2));
  border-top: 1px solid rgba(255,255,255,.08);
  color: #8292ae;
  font-size: .77rem;
}
footer a { color: #b9c8e0; }

.steve-popup {
  position: fixed;
  right: 28px;
  bottom: -330px;
  z-index: 1000;
  width: 190px;
  pointer-events: none;
  opacity: 0;
}
.steve-popup img { width: 100%; filter: drop-shadow(0 18px 18px rgba(0,0,0,.55)); }
.steve-popup.show { animation: steveRise 3.8s ease-in-out forwards; }
@keyframes steveRise {
  0% { bottom: -330px; opacity: 0; transform: rotate(-4deg); }
  20%, 76% { bottom: 13px; opacity: 1; transform: rotate(0); }
  35% { transform: rotate(-5deg); }
  47% { transform: rotate(4deg); }
  100% { bottom: -330px; opacity: 0; transform: rotate(3deg); }
}
.steve-speech {
  position: absolute;
  right: 150px;
  bottom: 180px;
  width: 270px;
  padding: 13px 15px;
  border: 3px solid #111;
  border-radius: 18px;
  background: white;
  color: #111;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 13px 28px rgba(0,0,0,.4);
}
.steve-speech::after {
  content: "";
  position: absolute;
  right: -13px;
  bottom: 23px;
  width: 22px;
  height: 22px;
  border-right: 3px solid #111;
  border-bottom: 3px solid #111;
  background: white;
  transform: rotate(-45deg);
}

.achievement {
  position: fixed;
  top: 22px;
  left: 50%;
  z-index: 1100;
  width: min(370px, calc(100vw - 30px));
  padding: 12px 15px;
  border: 2px solid #737373;
  border-radius: 8px;
  background: linear-gradient(#2c2c2c, #111);
  box-shadow: 0 15px 35px rgba(0,0,0,.5);
  opacity: 0;
  transform: translate(-50%, -40px);
  pointer-events: none;
}
.achievement.show { animation: achievement 3.4s ease forwards; }
.achievement strong, .achievement span { display: block; }
.achievement strong { color: #ffe266; font-size: .75rem; }
.achievement span { margin-top: 3px; font-size: .82rem; }
@keyframes achievement {
  0%,100% { opacity: 0; transform: translate(-50%, -40px); }
  13%,82% { opacity: 1; transform: translate(-50%, 0); }
}

.screen-flash { position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: 0; }
.screen-flash.herobrine { animation: flash .35s ease; background: rgba(255,255,255,.78); }
.screen-flash.creeper { animation: flash .65s ease; background: rgba(58,255,92,.38); }
@keyframes flash { 40% { opacity: 1; } }

.creeper-drop {
  position: fixed;
  top: -80px;
  z-index: 990;
  width: 46px;
  pointer-events: none;
  animation: creeperFall 3.2s linear forwards;
}
@keyframes creeperFall { to { transform: translateY(calc(100vh + 150px)) rotate(520deg); } }

body.herobrine-mode { filter: grayscale(.18) contrast(1.05); }
body.herobrine-mode::after {
  content: "HEROBRINE IS WATCHING";
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 1200;
  transform: translateX(-50%);
  color: rgba(255,255,255,.88);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .3em;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; padding-top: 55px; gap: 5px; }
  .hero-block { display: none; }
  .server-grid, .split-section { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-admin) { display: none; }
}

@media (max-width: 620px) {
  .hero { min-height: 580px; padding-inline: 12px; }
  .topbar { padding: 8px 10px; }
  .brand span { font-size: .9rem; }
  .nav-admin { font-size: .7rem !important; padding: 8px !important; }
  .hero-content { padding-inline: 12px; }
  h1 { font-size: 44px; }
  .page-shell { width: min(100% - 18px, 1220px); }
  .overview-bar, .admin-teaser, .section-heading { align-items: flex-start; flex-direction: column; }
  .overview-side { flex-wrap: wrap; }
  .server-card, .panel { padding: 16px; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric.wide { grid-column: auto; }
  .sleep-panel { align-items: flex-start; }
  .sleep-icon { width: 52px; height: 52px; flex-basis: 52px; }
  .section { padding-top: 58px; }
  .steve-speech { right: 115px; width: 210px; }
  .steve-popup { right: 8px; width: 150px; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* Verberg het ruststandpaneel wanneer JavaScript het hidden-attribuut gebruikt. */
.sleep-panel[hidden] {
  display: none !important;
}
