:root{
  --bg0:#07120c;
  --bg1:#0b1c14;
  --card:  #0d261a;
  --card2: #113122;
  --text:#e8f5ee;
  --muted:#9fbfb0;
  --border:rgba(255,255,255,.08);
  --accent:#6ef2a2;
  --accent2:#4ade80;
  --gold:#f5c85b;
  --good:#34d399;
  --bad:#fb7185;
  --wrap:1140px;
  --radius:16px;
  --shadow: 0 18px 55px rgba(0,0,0,.35);
  --shadow2: 0 10px 28px rgba(0,0,0,.28);
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs: 16.5px;
  --lh: 1.55;
}

*{ box-sizing:border-box; }

html, body { height: 100%; }

html{
  font-size: var(--fs);
  background-color: var(--bg0);
  background:
    radial-gradient(1200px 700px at 25% -10%, rgba(110,242,162,.18), transparent 55%),
    radial-gradient(1000px 650px at 85% 0%, rgba(74,222,128,.16), transparent 55%),
    radial-gradient(900px 700px at 50% 120%, rgba(245,200,91,.08), transparent 60%),
    linear-gradient(180deg, rgba(11,28,20,.68), rgba(7,18,12,.76)),
    url("/assets/img/forest-light.webp");

  background-size:
    auto,
    auto,
    auto,
    auto,
    cover;

  background-position:
    center,
    center,
    center,
    center,
    center;

  background-repeat: no-repeat;
  background-attachment: fixed;
}

body{
  min-height: 100vh;
  margin: 0;
  background: transparent;
  color: var(--text);

  font-family: var(--font);
  line-height: var(--lh);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*::-webkit-scrollbar{ width: 12px; }
*::-webkit-scrollbar-track{ background: rgba(0,0,0,.25); }
*::-webkit-scrollbar-thumb{
  background: rgba(110,242,162,.18);
  border: 3px solid rgba(0,0,0,.25);
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover{
  background: rgba(110,242,162,.28);
}


a{ color:var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }

.wrap{
  max-width:var(--wrap);
  margin:0 auto;
  padding:15px 18px 60px;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
  padding:14px 0 18px;
  border-bottom:1px solid var(--border);
}

.brand{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.brand .logo{
  font-weight:900;
  letter-spacing:.2px;
  font-size:24px;
  line-height:1.1;
}
.brand .tagline{
  color: rgba(231,238,248,.65);
  font-size:13px;
  max-width:720px;
}
.logo a{
  position: relative;
  display: inline-block;
  font-weight: 900;
  letter-spacing: .6px;
  color: var(--text);
  text-shadow:
    0 2px 10px rgba(0,0,0,.6),
    0 0 18px color-mix(in srgb, var(--accent) 35%, transparent);
}

.logo a::after{
  content:"";
  position:absolute;
  left: 8%;
  right: 8%;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      transparent,
      color-mix(in srgb, var(--accent) 40%, transparent),
      transparent
    );
  opacity:.75;
}
.brand .tagline{
  color: rgba(232,245,238,.65);
  font-size:13px;
  letter-spacing:.2px;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  color:var(--text);
  text-decoration:none;
  box-shadow: var(--shadow2);
  font-weight: 500;
  letter-spacing: .1px;
  font-size:14px;
}
.btn:hover{
  background:rgba(255,255,255,.06);
  text-decoration:none;
}
.btn.primary{
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 22%, transparent),
    color-mix(in srgb, var(--accent) 8%, transparent)
  );
  cursor: pointer;
}

.hero{
  margin-top:18px;
  padding:18px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--shadow2);
}
.hero h1 {
  margin: 0 0 12px 0;
  font-size: 2.2rem;  
}

.hero.hero--image{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(4,18,10,.35) 0%, rgba(4,18,10,.78) 65%, rgba(4,18,10,.92) 100%),
    radial-gradient(1200px 420px at 20% 0%, rgba(110,242,162,.10), rgba(0,0,0,0)),
    url("/assets/img/hero-hytale.webp");
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  border: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero.hero--image::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(900px 260px at 20% 20%, rgba(0,0,0,.18), transparent 60%);
  pointer-events:none;
}

.hero.hero--image h1{
  margin: 0 0 10px 0;
  line-height: 1.12;
  letter-spacing: .2px;
  text-shadow: 0 2px 18px rgba(0,0,0,.55);
}

.hero.hero--image .hero-sub{
  max-width: 70ch;
  color: rgba(255,255,255,.86);
  text-shadow: 0 2px 16px rgba(0,0,0,.55);
}

@media (max-width: 860px){
  .hero.hero--image{
    padding: 18px;
  }
}

.h2{
  margin:18px 0 8px;
  font-size:20px;
  font-weight: 800;
  letter-spacing:.2px;
}
.small-muted{ color: rgba(231,238,248,.68); font-size:14px; }

.grid{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap:14px;
}

.server-listing.view-cards .grid{
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.server-listing.view-small .grid{
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap:10px;
}

.server-listing.view-small .card{
  border-radius:12px;
}

.server-listing.view-small .card-inner{
  padding:10px;
}

.server-listing.view-small .server-card .thumb-wrap{
  margin-bottom:6px;
}

.server-listing.view-small .title{
  font-size:14px;
}
.server-listing.view-small .pill-version {
  display: none;
}

.server-listing.view-small .pill,
.server-listing.view-small .chip{
  font-size:11px;
  padding:2px 8px;
}

.server-listing.view-list .grid{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.server-listing.view-list .card{
  display:grid;
  grid-template-columns: 170px minmax(420px, 1fr) 180px 140px 260px;
  align-items:center;
  padding:0;
  overflow:hidden;
}

.server-listing.view-list .card-inner{
  display:contents;
}

.server-listing.view-list .thumb-wrap{
  grid-column: 1;
  margin:0;
  height:110px;
  border-radius:0;
  border:0;
  overflow:hidden;
  background: rgba(255,255,255,.06);
}
.server-listing.view-list .thumb-wrap:after{ display:none; }

.server-listing.view-list .thumb-wrap img,
.server-listing.view-list .thumb-wrap video,
.server-listing.view-list .card-media{
  width:100% !important;
  height:110px !important;
  object-fit:cover;
  display:block;
}

.server-listing.view-list .row{
  grid-column: 2;
  padding:14px;
  display:grid;
  gap:6px;
  align-content:center;
}

.server-listing.view-list .title{ margin:0; font-size:18px; line-height:1.1; }
.server-listing.view-list .host{ margin:0; }

.server-listing.view-list .copy-row{
  margin:0;
  display:grid;
  grid-template-columns: minmax(0, 260px) auto;
  gap:10px;
  align-items:center;
}

.server-listing.view-list .copy-value{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.server-listing.view-list .pill-players{
  grid-column: 3;
  justify-self:start;
  width: 170px;
}
.server-listing.view-list .pill-votes{
  grid-column: 4;
  justify-self:start;
  width: 120px;
}

.server-listing.view-list .pill-status{ display:none; }

.server-listing.view-list .chips{
  grid-column: 5;
  justify-self:start;
  padding-right:14px;
  display:flex;
  gap:8px;
  flex-wrap:nowrap;
  overflow:hidden;
}

.server-listing.view-list .chips .chip:nth-child(n+3){
  display:none;
}

.server-listing.view-list .chips .chip{
  max-width:120px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.server-listing.view-list .card{
  border-radius: 14px;
}

.server-listing.view-list .pill-version, .server-listing.view-list .copy-value{
  display: none;
}

.card{
  border:1px solid var(--border);
  border-radius:var(--radius);
  background: linear-gradient(180deg, var(--card2), var(--card));
  box-shadow: var(--shadow2);
  overflow:hidden;
  position:relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover{
  
  border-color: color-mix(in srgb, var(--accent) 22%, var(--border));
  box-shadow: 0 18px 55px rgba(0,0,0,.45), 0 0 0 1px rgba(110,242,162,.10) inset;
}
.card-inner{
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:0;
}

.server-card .card-inner { min-height: 140px; }

.card .title{
  font-weight:900;
  font-size:17px;
  font-weight: 900;
  margin:0;
  line-height:1.2;
}
.card .host{
  color:var(--muted);
  font-size:12px;
  font-family:var(--mono);
}
.cat-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,.78);
}
.row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
}

.meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  padding:4px 10px;
  border-radius:999px;
  font-size:13px;
  color:var(--text);
}
.pill.ok{ border-color: rgba(110,242,162,.40); background: rgba(110,242,162,.12); box-shadow: 0 0 0 1px rgba(110,242,162,.10) inset; }
.pill.no{ border-color: rgba(251,113,133,.35); background: rgba(251,113,133,.10); }

.chips, .chips1{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:2px;
}
.chip, .chip1{
  font-size:13px;
 background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.09);
  color: rgba(232,245,238,.92);
  border-radius:999px;
  padding:4px 10px;
}
.chip:hover, .chip1:hover{
  border-color: rgba(110,242,162,.25);
}
.section{
  margin-top:18px;
}

.footer{
  margin-top:26px;
  padding-top:16px;
  border-top:1px solid var(--border);
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  color:var(--muted);
  font-size:12px;
}

.page-back{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:8px;
}

.kv{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

.top-search { display:flex; gap:8px; align-items:center; margin: 0 12px; }
.top-search input[type="search"]{
  width: 260px;
  max-width: 40vw;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
}
.top-search input::placeholder{ color: rgba(255,255,255,.55); }

@media (max-width: 900px){
  .top-search{ order: 3; width: 100%; margin: 10px 0 0; }
  .top-search input[type="search"]{ width: 100%; max-width: 100%; }
}

@media (max-width: 720px){
  .kv{ grid-template-columns: 1fr; }
}
.kv .box{
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:14px;
  background: rgba(255,255,255,.03);
}

hr.sep{
  border:none;
  border-top:1px solid var(--border);
  margin:0;
}
.copy-row{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:10px;
}
.copy-value{
  font-family: var(--mono);
  font-size: 14px;
}
.btn.small{
  padding:10px 12px;
  font-size:14px;
  cursor:pointer;
}

.server-card .thumb-wrap {
  display: block;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

.server-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.thumb-wrap {
  position: relative;
}

.thumb-wrap img.server-card-thumb {
  background: rgba(255,255,255,.06);
}
.server-card .thumb-wrap::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.12);
  pointer-events:none;
}

.thumb-wrap:after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  pointer-events: none;
}
.hero-cta{
  width: calc(100% + 28px);
  margin: 0 -14px 0 -14px;
  border: 0;
  cursor: pointer;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;

  padding: 18px 14px;

  background:
    radial-gradient(120% 160% at 50% -60%,
      rgba(245,200,91,.95),
      rgba(245,200,91,.35) 45%,
      rgba(0,0,0,0) 75%
    ),
    linear-gradient(180deg,
      rgba(40,28,8,.98),
      rgba(18,12,4,.98)
    );

  color: #fffaf0;
  border-top: 1px solid rgba(245,200,91,.65);

  font-weight: 900;
  letter-spacing: .9px;
  text-transform: uppercase;

  box-shadow:
    0 -1px 0 rgba(245,200,91,.6) inset,
    0 0 80px rgba(245,200,91,.55),
    0 10px 40px rgba(0,0,0,.6);
}

.hero-cta:hover{
  filter: brightness(1.08);
  box-shadow:
    0 -1px 0 rgba(255,220,120,.9) inset,
    0 0 140px rgba(245,200,91,.85),
    0 14px 60px rgba(0,0,0,.7);
}



.hero-cta:active{
  transform: translateY(1px);
}

.hero-cta__title{
  font-size: 16px;
  line-height: 1.1;
}

.hero-cta__sub{
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2px;
  text-transform:none;
  opacity:.8;
  font-family: var(--mono);
}

  .site-footer{
    margin-top:28px;
    border-top:1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.02);
  }
  .site-footer__inner{
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 14px;
  }
  .site-footer__top{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    flex-wrap:wrap;
  }
  .site-footer__name{
    font-weight: 900;
    letter-spacing: .2px;
  }
  .site-footer__copy{
    margin-top:6px;
    font-size: 13px;
    opacity:.72;
  }
  .site-footer__nav{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    justify-content:flex-end;
  }
  .site-footer__nav a{
    text-decoration:none;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    color: rgba(255,255,255,.92);
  }
  .site-footer__nav a:hover{
    background: rgba(255,255,255,.06);
  }
  .site-footer__legal{
    margin-top:10px;
    font-size: 11.5px;
    line-height: 1.35;
    opacity: .72;
    display:grid;
    gap:4px;
  }

  .site-footer__nav{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:flex-start;
}

.site-footer__nav-group{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width: 160px;
}

.site-footer__nav-title{
  font-size: 11px;
  letter-spacing: .35px;
  text-transform: uppercase;
  font-weight: 800;
  opacity: .7;
  margin-bottom: 2px;
}

.site-footer__nav a{
  text-decoration:none;
  font-size: 12.5px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.site-footer__nav a:hover{
  background: rgba(255,255,255,.06);
}

@media (max-width: 860px){
  .site-footer__nav{
    width:100%;
    justify-content:flex-start;
  }
  .site-footer__nav-group{
    min-width: 0;
  }
}
  @media (max-width: 860px) {
    .kv[style*="420px"] { grid-template-columns: 1fr !important; }
  }
  .section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin: 18px 0 8px;
}
.section-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.sortbox select{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.92);
  font-weight:700;
  box-shadow: var(--shadow2);
}

.view-switch{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  box-shadow: var(--shadow2);
}

.view-btn{
  width:38px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  border:1px solid transparent;
  background: transparent;
  color: rgba(231,238,248,.85);
  cursor:pointer;
}

.view-btn svg{
  width:18px;
  height:18px;
  fill: currentColor;
  opacity:.9;
}

.view-btn:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.10);
}

.view-btn.is-active{
  background: linear-gradient(180deg, rgba(110,231,255,.18), rgba(110,231,255,.06));
  border-color: rgba(110,231,255,.28);
  color: rgba(231,238,248,.98);
}

.sortbox select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)),
    var(--card2);

  border: 1px solid rgba(255,255,255,.15);
  color: var(--text);
  padding: 10px 38px 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow2);
}

.sortbox{
  position: relative;
}
.sortbox::after{
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: rgba(255,255,255,.7);
  font-size: 12px;
}


.sortbox select:hover{
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05)),
    var(--card2);
}
.sortbox select:focus{
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent);
}


.sortbox select option{
  background: var(--bg1);
  color: var(--text);
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
select,
textarea{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(232,245,238,.95);
  border-radius: 14px;
  padding: 10px 12px;
  outline: none;
}

input::placeholder, textarea::placeholder{
  color: rgba(232,245,238,.55);
}

input:focus, select:focus, textarea:focus{
  border-color: rgba(110,242,162,.45);
  box-shadow: 0 0 0 2px rgba(110,242,162,.16);
}

@media (max-width: 640px){


  .section-head{
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
  }
  .section-head > .h2{
    flex: 1 1 100%;
    margin: 0;              
    line-height: 1.15;
  }
  .section-actions{
    flex: 1 1 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
  }


  .sortbox select{
    padding: 9px 34px 9px 12px;
    font-size: 13px;
  }


  .view-switch{
    padding: 5px;
    border-radius: 12px;
  }
  .view-btn{
    width: 34px;
    height: 32px;
    border-radius: 10px;
  }
  .view-btn svg{
    width: 17px;
    height: 17px;
  }


  .server-listing.view-list .card{
    grid-template-columns: 120px 1fr;  
    align-items: stretch;
  }

  .server-listing.view-list .thumb-wrap{
    grid-column: 1;
    height: 100%;
    min-height: 92px;
  }

  .server-listing.view-list .thumb-wrap img,
  .server-listing.view-list .thumb-wrap video,
  .server-listing.view-list .card-media{
    height: 100% !important;
    min-height: 92px;
  }

 
  .server-listing.view-list .row{
    grid-column: 2;
    padding: 10px 12px;
    gap: 6px;
  }

  
  .server-listing.view-list .pill-players,
  .server-listing.view-list .pill-votes,
  .server-listing.view-list .chips{
    display: none;
  }

  
  .server-listing.view-list .copy-row{
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
  }

  
  .server-listing.view-list .copy-value{
    display: block;
    font-size: 12px;
    opacity: .9;
  }

 
  .server-listing.view-list .copy-row .btn.small{
    padding: 7px 10px;
    font-size: 12px;
    border-radius: 999px;
    box-shadow: none;
  }

  .server-listing.view-list .title{
    font-size: 15px;
    line-height: 1.15;
    margin: 0;
  }

  .server-listing.view-list .host{
    display: none; 
  }
}

@media (max-width: 420px){
  .sortbox select{ max-width: 100%; }
}