/* oxfd.re/servers: what only these pages need. The header, footer, buttons
   and server cards come from the main site's /assets/site.css. */

/* ---------- the list ---------- */
.list-head{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;flex-wrap:wrap}
.list-head > div{max-width:640px}
.code-box{display:flex;flex-direction:column;gap:8px;padding:16px;border-radius:var(--radius-sm);background:var(--bg-2);min-width:min(100%,300px)}
.code-box label{font-size:13.5px;font-weight:600;color:var(--muted)}
.code-row{display:flex;gap:8px}
.code-row input{flex:1;min-width:0;height:38px;padding:0 14px;border-radius:999px;border:1px solid var(--line-2);background:#fff;outline:none;text-transform:uppercase;letter-spacing:.08em;font-weight:600}
.code-row input::placeholder{text-transform:none;letter-spacing:0;font-weight:400;color:var(--faint)}
.code-row input:focus{border-color:var(--ink)}
.list-body{padding-bottom:clamp(64px,9vw,112px)}
.toolbar{display:flex;justify-content:space-between;gap:16px;margin-bottom:20px}
.search{position:relative;flex:0 1 380px;min-width:0}
.search svg{position:absolute;left:14px;top:50%;width:18px;height:18px;transform:translateY(-50%);fill:none;stroke:var(--faint);stroke-width:2;stroke-linecap:round}
.search input{width:100%;height:46px;padding:0 16px 0 42px;border-radius:999px;border:1px solid var(--line-2);background:#fff;outline:none}
.search input:focus{border-color:var(--ink)}

/* ---------- one server ---------- */
.detail-wrap{padding-top:28px;padding-bottom:clamp(64px,9vw,112px)}
.back{display:inline-flex;align-items:center;gap:4px;margin-bottom:20px;padding:7px 14px 7px 8px;border-radius:999px;color:var(--muted);font-size:14.5px;font-weight:500;transition:background .2s,color .2s}
.back:hover{background:var(--bg-2);color:var(--ink)}
.back svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Two columns where there's room; on a phone one, with Connect above About
   (as the game's page). */
.detail{--theme:#808080;--accent-t:color-mix(in srgb,var(--theme) 80%,#000);display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:28px;align-items:start}
.detail-main{display:flex;flex-direction:column;gap:24px;min-width:0}
@media (max-width:920px){
  .detail{display:flex;flex-direction:column;gap:20px}
  .detail-main{display:contents}
  .detail .carousel{order:1}
  .detail .hero-row{order:2}
  .detail .side{order:3}
  .detail .about{order:4}
}

.carousel{position:relative;aspect-ratio:16/9;max-height:64vh;width:100%;border-radius:var(--radius);overflow:hidden;background:var(--bg-3);touch-action:pan-y;user-select:none}
.slides{display:flex;height:100%;transition:transform .6s var(--ease)}
.slide{flex:0 0 100%;height:100%}
.slide img{width:100%;height:100%;object-fit:cover;-webkit-user-drag:none}
.carousel.none{display:grid;place-items:center;background:linear-gradient(135deg,color-mix(in srgb,var(--theme) 30%,#fff),color-mix(in srgb,var(--theme) 8%,#fff))}
.carousel.none .srv-logo{width:104px;height:104px;border-radius:26px;font-size:34px;box-shadow:var(--shadow)}
.arrow{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border-radius:50%;display:grid;place-items:center;border:0;background:rgba(255,255,255,.9);box-shadow:var(--shadow-sm);cursor:pointer;opacity:0;transition:opacity .2s}
.arrow svg{width:20px;height:20px;fill:none;stroke:var(--ink);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.arrow.prev{left:14px}.arrow.next{right:14px}
.carousel:hover .arrow,.arrow:focus-visible{opacity:1}
@media (hover:none){.arrow{opacity:.9}}
.dots{position:absolute;left:0;right:0;bottom:14px;display:flex;justify-content:center;gap:6px}
.dot{position:relative;width:8px;height:8px;border-radius:999px;border:0;padding:0;background:rgba(255,255,255,.55);cursor:pointer;overflow:hidden;transition:width .3s;box-shadow:0 0 0 1px rgba(0,0,0,.08)}
.dot.on{width:30px;background:rgba(255,255,255,.4)}
.dot.on::after{content:"";position:absolute;inset:0;background:#fff;transform-origin:left;animation:fill var(--slide,5s) linear forwards}
.carousel.paused .dot.on::after{animation-play-state:paused}
@keyframes fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}

.hero-row{display:flex;align-items:center;gap:16px;min-width:0}
.hero-row .srv-logo{width:68px;height:68px;border-radius:18px;font-size:22px}
.hero-row h1{font-size:clamp(26px,3.4vw,36px);letter-spacing:-.03em;line-height:1.12;overflow-wrap:anywhere}
.meta{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:6px;color:var(--muted);font-size:14.5px}

.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:22px}
.panel h2,.panel h3{display:flex;align-items:center;gap:8px;margin:0 0 12px;font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--bg-2);color:var(--ink);font-size:11.5px;letter-spacing:0}
.about p{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink-2);line-height:1.7}
.about p.none{color:var(--faint);font-style:italic}

.side{display:flex;flex-direction:column;gap:14px}
.connect{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:54px;border-radius:999px;border:0;background:var(--theme);color:var(--on-theme,#fff);font-size:17px;font-weight:700;cursor:pointer;box-shadow:0 12px 28px -12px var(--theme);transition:filter .2s,transform .2s var(--ease)}
.connect:hover{filter:brightness(1.06);transform:translateY(-1px)}
.connect:active{transform:none}
.connect svg{width:18px;height:18px;fill:currentColor}
.connect[aria-disabled="true"]{background:var(--bg-2);color:var(--muted);box-shadow:none;cursor:not-allowed;pointer-events:none;font-size:15px;font-weight:600}
.code-line{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;font-size:14px;color:var(--muted)}
.code-line b{color:var(--ink);letter-spacing:.08em;font-weight:600}
.copy{height:30px;padding:0 12px;border-radius:999px;border:1px solid var(--line-2);background:#fff;font-size:13px;font-weight:500;color:var(--ink-2);cursor:pointer}
.copy:hover{border-color:var(--ink)}

.owner{display:flex;align-items:center;gap:12px}
.avatar{position:relative;flex:none;width:46px;height:46px;border-radius:50%;background:var(--bg-3);overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover}
.avatar.ring{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--accent-t)}
.owner-text{min-width:0}
.owner-text b{display:block;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.owner-text span{color:var(--muted);font-size:13.5px}
.online{color:var(--live)!important}

.stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px}
.stat{padding:12px 14px;border-radius:var(--radius-sm);background:var(--bg-2);min-width:0}
.stat.wide{grid-column:1/-1}
.stat .k{color:var(--muted);font-size:13px}
.stat .v{font-size:20px;font-weight:700;letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:nowrap}
.bar{height:6px;border-radius:999px;background:var(--bg-3);overflow:hidden;margin-top:8px}
.bar i{display:block;height:100%;width:0;border-radius:inherit;background:var(--theme);transition:width .8s var(--ease)}

.people{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px 6px}
.person{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;text-align:center}
.person .name{font-size:12px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink-2)}
.person .role{font-size:11px;font-weight:600;color:var(--accent-t);min-height:1.3em}
.person .more{display:grid;place-items:center;width:100%;height:100%;font-weight:700;font-size:14px;color:var(--ink-2)}
.nobody{color:var(--muted);font-size:14.5px}
.panel-stack{display:flex;flex-direction:column;gap:18px}
.panel-stack h3{margin-bottom:10px}

.gone{grid-column:1/-1}
@media (max-width:480px){.people{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (prefers-reduced-motion:reduce){
  .slides,.bar i{transition:none}
  .dot.on::after{animation:none;transform:none}
}
