/* Pagina's Saves en Ranglijst (bovenop style.css) */
html, body { overflow: auto; height: auto; }
.page { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.page .navbar .nav-actions { flex-wrap: wrap; }
.page-body { width: 100%; max-width: 1100px; margin: 0 auto; padding: 22px 16px 60px; display: flex; flex-direction: column; gap: 18px; }
.page-title { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.page-title h1 { margin: 0; font-family: var(--pixel); font-weight: normal; font-size: 18px; color: var(--yellow); text-shadow: 3px 3px 0 var(--blue); line-height: 1.5; }
.page-title .live { font-size: 12px; color: var(--muted); }
.page-title .live::before { content: "●"; color: var(--green); margin-right: 5px; animation: blink 1.6s steps(2, start) infinite; }
.lead { margin: 0; color: var(--muted); max-width: 760px; }
.notice { padding: 10px 14px; border-radius: 10px; background: #3a2a08; border: 1px solid var(--yellow-dark); color: #ffe9a6; font-size: 14px; }
.empty { color: var(--muted); padding: 30px; text-align: center; }

/* icoontjes en badges */
.team { display: flex; flex-wrap: wrap; gap: 2px; }
.mon { position: relative; width: 36px; height: 34px; display: inline-grid; place-items: center; }
.mon-icon { width: 32px; height: 32px; background: url("map/icons.png") 0 0 / 1024px auto no-repeat; image-rendering: pixelated; }
.mon-icon.egg { background: radial-gradient(ellipse 9px 11px at 50% 55%, #f3efe0 90%, transparent 100%); }
.mon .lv { position: absolute; right: 0; bottom: -2px; font: 700 9px system-ui, sans-serif; color: #fff; background: #0b1026cc; padding: 0 3px; border-radius: 4px; }
.badges { display: inline-flex; gap: 3px; vertical-align: middle; }
.badge-pip { width: 10px; height: 10px; border-radius: 3px; background: #26305e; border: 1px solid var(--line); transform: rotate(45deg); }
.badge-pip.on { border-color: #fff8; box-shadow: 0 0 6px currentColor; }
.badge-pip.on.b0 { background: #c9c0b0; color: #c9c0b0; }
.badge-pip.on.b1 { background: #e85d4a; color: #e85d4a; }
.badge-pip.on.b2 { background: #f7d046; color: #f7d046; }
.badge-pip.on.b3 { background: #ff8a3d; color: #ff8a3d; }
.badge-pip.on.b4 { background: #7f9cff; color: #7f9cff; }
.badge-pip.on.b5 { background: #8be07c; color: #8be07c; }
.badge-pip.on.b6 { background: #e58be0; color: #e58be0; }
.badge-pip.on.b7 { background: #5ed7e8; color: #5ed7e8; }
.tag-chip { display: inline-block; font-family: system-ui, sans-serif; letter-spacing: 0; font-size: 11px; padding: 2px 8px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); }
.tag-chip.now { background: #12391f; border-color: #2a7a45; color: #8ff0b2; }
.tag-chip.restored { background: #2b2050; border-color: #6150b8; color: #cbbfff; }
.tag-chip.import { background: #2a2a2a; }

/* saves: personages */
.chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.char { padding: 14px; }
.char h3 { margin: 0 0 8px; font-family: var(--pixel); font-weight: normal; font-size: 11px; color: var(--text); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.char p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

/* saves: versies */
.versions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.version {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 8px 16px; align-items: center;
  padding: 12px 14px; border-radius: 12px; background: linear-gradient(var(--panel), #121a3c); border: 2px solid var(--line);
}
.version.fresh { animation: fresh 2.5s ease-out; }
@keyframes fresh { 0% { border-color: var(--yellow); box-shadow: 0 0 22px #ffcb0577; } 100% { border-color: var(--line); box-shadow: none; } }
.v-when { display: flex; flex-direction: column; gap: 4px; }
.v-when b { font-size: 14px; }
.v-when small { color: var(--muted); font-size: 12px; }
.v-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.v-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); align-items: center; }
.v-stats b { color: var(--text); font-weight: 600; }
.v-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.v-actions .ghost, .v-actions .arcade { padding: 8px 12px; font-size: 12px; text-decoration: none; }
.v-actions .arcade { font-size: 10px; }
.v-actions a.ghost { display: inline-flex; align-items: center; }

/* ranglijst */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { padding: 8px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.tab:hover { border-color: var(--muted); color: var(--text); }
.tab.active { background: var(--yellow); color: var(--ink); border-color: var(--yellow); font-weight: 700; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: end; }
.step { text-align: center; padding: 14px 10px; border-radius: 14px 14px 6px 6px; border: 2px solid var(--line); background: linear-gradient(var(--panel2), var(--panel)); position: relative; }
.step.p1 { min-height: 190px; border-color: #e8c34a; box-shadow: 0 0 30px #ffcb0533; }
.step.p2 { min-height: 160px; border-color: #b8c0d8; }
.step.p3 { min-height: 140px; border-color: #c98a5a; }
.step .medal { font-size: 28px; line-height: 1; }
.step .pname { font-family: var(--pixel); font-size: 11px; margin: 10px 0 6px; overflow-wrap: anywhere; line-height: 1.5; }
.step .pval { font-size: 22px; font-weight: 800; color: var(--yellow); }
.step .plabel { font-size: 11px; color: var(--muted); }
.step .team { justify-content: center; margin-top: 8px; }
.board { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.board th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 600; padding: 0 10px; text-transform: uppercase; letter-spacing: .05em; }
.board td { background: var(--panel); padding: 8px 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14px; }
.board td:first-child { border-left: 1px solid var(--line); border-radius: 10px 0 0 10px; width: 46px; text-align: center; font-family: var(--pixel); font-size: 11px; color: var(--muted); }
.board td:last-child { border-right: 1px solid var(--line); border-radius: 0 10px 10px 0; }
.board tr.me td { background: #2a2350; border-color: #6150b8; }
.board .val { font-weight: 800; color: var(--yellow); font-size: 16px; white-space: nowrap; }
.board .sub { font-size: 12px; color: var(--muted); }
.pl-name { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); display: inline-block; }
.you { font-size: 10px; font-family: var(--pixel); color: var(--yellow); }

@media (max-width: 760px) {
  .version { grid-template-columns: 1fr; }
  .v-actions { justify-content: flex-start; }
  .podium { grid-template-columns: 1fr; }
  .step { min-height: 0 !important; }
  .step.p1 { order: -1; }
  .board .hide-sm { display: none; }
  .page-title h1 { font-size: 14px; }
}
