body { margin: 0; background: #0C0C0E; color: #d8d8dc; font: 13px/1.5 Verdana, Tahoma, Geneva, sans-serif; }
a { color: #b77cff; text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 10px; box-sizing: border-box; }

#header { padding: 14px 0; border-bottom: 1px solid #1c1c22; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-size: 20px; letter-spacing: 4px; text-transform: uppercase; }
.brand:hover { text-decoration: none; }
.brand span { border-left: 1px solid #333; padding-left: 12px; font-weight: lighter; }

#nav { background: linear-gradient(#5E01AF, #2C0051); border-top: 1px solid #7a2ad0; border-bottom: 1px solid #1a0030; box-shadow: 0 2px 4px rgba(0,0,0,.6); }
#nav a { display: inline-block; padding: 9px 16px; color: #fff; font-weight: bold; text-shadow: 0 -1px 0 #1a0030; border-right: 1px solid rgba(0,0,0,.25); }
#nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; }

#nav .wrap { display: flex; align-items: center; }
.account { margin-left: auto; display: flex; align-items: center; gap: 6px; color: #fff; font-weight: bold; }
.account a { border-right: 0 !important; border-left: 1px solid rgba(0,0,0,.25); }
.account img { border-radius: 50%; }
.account .role { font-size: 10px; text-transform: uppercase; background: rgba(0,0,0,.35); padding: 1px 5px; border-radius: 2px; font-weight: normal; }
.account form { margin: 0; }
.account button { background: none; border: 0; color: #e6d0ff; cursor: pointer; padding: 9px 0 9px 10px; }
.account button:hover { color: #fff; text-decoration: underline; }
#main { padding-top: 16px; padding-bottom: 16px; }
#footer { color: #666; font-size: 11px; padding-top: 12px; padding-bottom: 24px; border-top: 1px solid #1c1c22; }

.filters { display: flex; flex-wrap: wrap; gap: 6px; background: #141418; border: 1px solid #24242c; padding: 8px; margin-bottom: 12px; }
select, button, input, textarea { font: inherit; background: #1b1b21; color: #ddd; border: 1px solid #34343e; border-radius: 3px; padding: 4px 6px; }
.filters button, .btn { background: linear-gradient(#5E01AF, #2C0051); color: #fff; border-color: #1a0030; cursor: pointer; }

table.list { width: 100%; border-collapse: collapse; background: #121216; border: 1px solid #24242c; }
.list th { background: linear-gradient(#5E01AF, #2C0051); color: #fff; text-align: left; padding: 6px 8px; font-size: 12px; text-shadow: 0 -1px 0 #1a0030; }
.list td { padding: 8px 6px; border-top: 1px solid #22222a; vertical-align: middle; }
.list tr:nth-child(even) td { background: #15151a; }
.list tr.sponsored td { background: #1d1029; }
.rank { width: 60px; text-align: center; font-weight: bold; font-size: 15px; }
.server .name { display: block; font-weight: bold; font-size: 14px; margin-bottom: 4px; }
.desc { color: #999; font-size: 12px; margin-top: 4px; }
.players { white-space: nowrap; font-weight: bold; }
.empty { text-align: center; color: #777; }

.banner { display: block; width: 468px; max-width: 100%; height: 60px; }
.banner img { display: block; max-width: 100%; height: 60px; }
.nobanner { display: flex; align-items: center; justify-content: center; height: 60px; background: linear-gradient(#2a0a4a, #120020); border: 1px solid #3a1a5a; color: #cfa8ff; font-weight: bold; letter-spacing: 2px; text-transform: uppercase; }

.copy { cursor: pointer; font-family: Consolas, monospace; font-size: 12px; }
.copy.copied { border-color: #4caf50; color: #8be28e; }

.tags { margin-top: 4px; }
.tag { display: inline-block; font-size: 10px; padding: 1px 6px; margin: 0 4px 2px 0; border-radius: 2px; background: #22222a; color: #aaa; border: 1px solid #30303a; }
.tag.product { background: #241433; color: #cfa8ff; border-color: #3d2357; }

.badge { display: inline-block; font-size: 10px; font-weight: bold; padding: 2px 6px; border-radius: 2px; text-transform: uppercase; color: #fff; margin-right: 4px; }
.list .badge { display: block; width: fit-content; margin: 2px 0; }
.badge.online { background: #2e7d32; }
.badge.offline { background: #8e2424; }
.badge.wl { background: #8a6d00; }
.badge.sponsor { background: linear-gradient(#e0a800, #a87a00); color: #1a1200; }

.box { background: #121216; border: 1px solid #24242c; padding: 12px 14px; margin-bottom: 12px; }
.pagehead { margin: 0 0 10px; font-size: 18px; color: #fff; }
.box h1 { margin: 0 0 10px; font-size: 20px; color: #fff; }
.box h2 { margin: 0 0 8px; font-size: 15px; color: #cfa8ff; border-bottom: 1px solid #24242c; padding-bottom: 4px; }
.section img { max-width: 100%; }
.text { white-space: pre-line; margin: 0; }
table.info { margin-top: 10px; border-collapse: collapse; }
.info th { text-align: left; color: #888; font-weight: normal; padding: 3px 16px 3px 0; }

@media (max-width: 640px) {
  .list th:nth-child(1), .list td:nth-child(1), .list th:nth-child(3), .list td:nth-child(3) { display: none; }
}

.errors { background: #2a1010; border: 1px solid #6b2020; color: #ffb4b4; padding: 8px 8px 8px 28px; margin: 0 0 12px; }
table.fields { border-collapse: collapse; width: 100%; }
.fields th { text-align: right; vertical-align: top; padding: 9px 12px 6px 0; width: 170px; font-weight: normal; color: #aaa; }
.fields td { padding: 5px 0; }
.fields td > input { width: 260px; max-width: 100%; box-sizing: border-box; }
.fields td > input.wide { width: 460px; }
.fields td > input.port { width: 80px; }
.fields tr.admin th { color: #e0a800; }
.checks label { display: inline-block; margin-right: 12px; }
.hint { color: #777; font-size: 11px; }
.preview { display: block; margin-bottom: 4px; border: 1px solid #333; max-width: 100%; height: auto; }
.sec { background: #17171c; border: 1px solid #2a2a32; padding: 8px; margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.sec input[name=secTitle] { flex: 1; }
.sec textarea, .sec input[name=secUrl] { flex-basis: 100%; box-sizing: border-box; }
.sec[data-type=text] input[name=secUrl], .sec:not([data-type=text]) textarea { display: none; }
form.delete { margin-top: 16px; border-top: 1px solid #24242c; padding-top: 12px; }
form.delete button { background: #3a1212; border-color: #6b2020; color: #ffb4b4; cursor: pointer; }
.icon { vertical-align: middle; margin-right: 6px; image-rendering: pixelated; }
.notice { background: #2a2210; border: 1px solid #6b5a20; color: #f0d890; padding: 6px 10px; margin-bottom: 10px; }
.box .actions { float: right; }
a.btn { display: inline-block; padding: 5px 12px; border: 1px solid #1a0030; border-radius: 3px; color: #fff; }
a.btn:hover { text-decoration: none; filter: brightness(1.2); }
.list.compact td { padding: 6px; }
.mono { font-family: Consolas, monospace; font-size: 11px; }
.nowrap { white-space: nowrap; }
form.inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; flex-wrap: wrap; }
form.search { margin-top: 10px; display: flex; }
form.search input[name=q] { width: 260px; }
input.num { width: 60px; }
pre.code { background: #0a0a0c; border: 1px solid #24242c; padding: 10px; overflow-x: auto; font-size: 12px; }
.copy.token { font-size: 13px; padding: 6px 10px; word-break: break-all; }
.video { position: relative; aspect-ratio: 16 / 9; max-width: 640px; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.list .banner { position: relative; }
.trailer { position: absolute; top: 0; left: 0; z-index: 5; width: 468px; max-width: 90vw; aspect-ratio: 16 / 9; background: #000; border: 1px solid #5E01AF; box-shadow: 0 6px 24px rgba(0,0,0,.8); }
.trailer iframe { width: 100%; height: 100%; border: 0; pointer-events: none; } /* clicks fall through to the listing link */
@media (hover: none) { .trailer { display: none; } }
.links { margin: 10px 0 0; }
.tag.map { background: #1a2230; color: #9cc4ff; border-color: #2c3a52; }
.badge.soon { background: #5E01AF; }
.list .tags .badge { display: inline-block; }
.upcoming .up { display: block; padding: 3px 0; color: #d8d8dc; }
.upcoming time { color: #888; font-size: 11px; }
.maphead { margin-top: 14px !important; }
.maprow label { display: inline-block; margin: 2px 12px 2px 0; }
.graph { display: block; width: 100%; height: 80px; background: #0e0e12; border: 1px solid #24242c; }
.graph polyline { fill: none; stroke: #b77cff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.vote .done { background: #10261a; border: 1px solid #2e7d32; color: #a8e6ac; padding: 8px 10px; margin-bottom: 10px; }
.cf-turnstile { margin: 8px 0; min-height: 65px; }
.fields td > textarea.wide { width: 460px; max-width: 100%; box-sizing: border-box; }
