/* ==========================================================================
   Table theme — luxury edition
   Familiar server-list layout (rank / server / banner + IP / status),
   with a dark forest-green band, white cards and ingot rank badges.
   Base form/panel components come from the classic theme.
   ========================================================================== */
@import url("classic.css");

:root {
  --forest: #0e3b2c;
  --forest-2: #134a37;
  --forest-3: #1b5c45;
  --emerald: #1f9d55;
  --emerald-hi: #34c172;
  --mint: #e7f4ec;
  --gold: #c9a24a;
  --gold-soft: #f8f1df;
  --slate: #24323d;
  --slate-2: #33475a;

  --bg: #eef2ef;
  --surface: #ffffff;
  --surface-2: #f5f8f6;
  --ink: #1d2a25;
  --ink-2: #44524c;
  --muted: #74827b;
  --rule: #dbe3de;
  --rule-2: #e9eeeb;

  --accent: var(--emerald);
  --accent-dark: #17804a;
  --accent-soft: var(--mint);
  --blue: #1b6f8a;

  --font: "Red Hat Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-narrow: "Red Hat Display", sans-serif;
  --head: "Red Hat Display", "Red Hat Text", sans-serif;
  --r: 10px;
  --r-sm: 6px;
  --wrap: 1180px;
}

body { font-size: 15.5px; color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--head); letter-spacing: -.01em; }
a { color: var(--blue); }

/* --- Top bar --------------------------------------------------------------- */
.top { background: var(--forest); color: #fff; border-bottom: 1px solid rgba(255,255,255,.06); position: relative; z-index: 30; }
.top-in { min-height: 76px; gap: 22px; }
.brand { font: 800 23px var(--head); color: #fff; gap: 12px; letter-spacing: -.02em; }
.brand .logo { width: 36px; height: 36px; border-radius: 4px; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.nav { gap: 4px; }
.nav a, .linkbtn, .dd summary { color: #cfe3d8; font: 600 15px var(--head); padding: 9px 13px; border-radius: var(--r-sm); }
.nav a:hover, .linkbtn:hover, .dd summary:hover { color: #fff; background: rgba(255,255,255,.07); text-decoration: none; }
.nav a.on { color: #fff; box-shadow: none; background: rgba(255,255,255,.07); }
.nav .nav-cta { background: var(--gold); color: #2a1e05; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18); margin-left: 6px; }
.nav .nav-cta:hover { background: #d8b45f; color: #2a1e05; }
.nav-sep { background: rgba(255,255,255,.15); }

.dd { position: relative; }
.dd summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.dd summary::-webkit-details-marker { display: none; }
.dd summary::after { content: ""; border: 5px solid transparent; border-top-color: currentColor; border-bottom: 0; margin-top: 2px; opacity: .8; }
.dd[open] summary { background: rgba(255,255,255,.1); color: #fff; }
.dd-menu { position: absolute; top: calc(100% + 10px); left: 0; z-index: 40; min-width: 240px; background: #fff; border-radius: var(--r); box-shadow: 0 18px 40px rgba(8,30,22,.25); padding: 8px; }
.dd-menu a { display: block; font: 500 15px var(--font) !important; color: var(--ink) !important; padding: 8px 12px !important; border-radius: var(--r-sm) !important; }
.dd-menu a:hover { background: var(--mint) !important; color: var(--forest) !important; }

.topsearch { display: flex; height: 44px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 99px; overflow: hidden; flex: none; padding: 3px; }
.topsearch input { border: 0; border-radius: 99px; width: 190px; background: transparent; font: 15px var(--font); padding: 0 14px; color: #fff; }
.topsearch input::placeholder { color: #9fc0b0; }
.topsearch input:focus { outline: none; box-shadow: none; }
.topsearch:focus-within { border-color: var(--gold); background: rgba(255,255,255,.12); }
.topsearch button { width: 38px; border: 0; border-radius: 50%; background: var(--gold); color: #2a1e05; cursor: pointer; display: grid; place-items: center; }
.topsearch button:hover { background: #d8b45f; }
.topsearch svg { width: 16px; height: 16px; }

/* --- Header band ------------------------------------------------------------ */
.t-hero {
  background:
    radial-gradient(ellipse 60% 120% at 50% 0%, rgba(52,193,114,.16), transparent 70%),
    var(--forest);
  color: #fff; padding: 50px 0 104px; text-align: center; position: relative;
}
.t-hero::before {
  /* very subtle pixel texture */
  content: ""; position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%), linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.t-hero-in { position: relative; }
.t-title { font: 800 clamp(34px, 5vw, 56px)/1.05 var(--head); letter-spacing: -.03em; margin: 0 0 14px; color: #fff; }
.t-sub { color: #b9d6c7; margin: 0 auto 28px; max-width: 60ch; font-size: 16.5px; }
.t-sub b { color: #fff; font-weight: 600; }
.t-filters { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 6px; }
.t-filters select {
  width: auto; min-width: 160px; font: 500 14.5px var(--font); color: #fff; padding: 10px 34px 10px 14px; border: 0; border-radius: 9px; cursor: pointer;
  background: rgba(255,255,255,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23b9d6c7'/%3E%3C/svg%3E") no-repeat right 13px center;
  -webkit-appearance: none; appearance: none;
}
.t-filters select:hover { background-color: rgba(255,255,255,.14); }
.t-filters select:focus { outline: 2px solid var(--gold); box-shadow: none; }
.t-filters option { color: var(--ink); background: #fff; }
.t-clear { font-size: 14px; color: var(--gold); padding: 0 10px; }

/* --- List ------------------------------------------------------------------- */
.main { padding-top: 0; }
.tlist { max-width: 1120px; margin: -72px auto 0; position: relative; z-index: 2; }

.ttable { display: grid; gap: 12px; }
.thead {
  display: grid; grid-template-columns: 96px 270px minmax(0, 1fr) 200px;
  background: var(--slate); color: #c9d4dc; font: 600 13px var(--head); letter-spacing: .02em;
  border-radius: var(--r); margin-bottom: 2px; box-shadow: 0 10px 30px rgba(8,30,22,.18);
}
.thead span { padding: 16px 20px; }
.thead span:first-child { text-align: center; }

.trow {
  display: grid; grid-template-columns: 96px 270px minmax(0, 1fr) 200px; position: relative;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r);
  box-shadow: 0 1px 2px rgba(20,40,30,.05);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.trow:hover { border-color: #b8cdc1; box-shadow: 0 10px 28px rgba(20,60,40,.1); }
.trow::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--emerald); }
.trow-off::before { background: #c7cfcb; }
.trow-r1 { border-color: #e2cf9a; }
.trow-r1::before { background: linear-gradient(#f2d77a, #c9952a); }
.trow-r2::before { background: linear-gradient(#e8ecf0, #9aa4ae); }
.trow-r3::before { background: linear-gradient(#f0b088, #b4602f); }
.trow-sponsor { background: linear-gradient(100deg, var(--gold-soft), #fff 55%); border-color: #e5d3a3; }
.trow-sponsor::before { background: var(--gold); }

.trow > div { padding: 18px 20px; min-width: 0; }
.trow > div + div { border-left: 1px dashed var(--rule); }
.trow-sponsor > div + div { border-left-color: #eadcb6; }

.t-rank { display: flex; align-items: center; justify-content: center; }
.t-rank .n { font: 800 26px/1 var(--head); color: #b3beb8; }
.t-rank .medal { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.t-rank .medal .ingot { width: 38px; height: 25px; image-rendering: pixelated; filter: drop-shadow(0 3px 2px rgba(0,0,0,.18)); }
.t-rank .medal .n { font-size: 19px; }
.t-rank .medal-1 .n { color: #b08420; }
.t-rank .medal-2 .n { color: #7c8792; }
.t-rank .medal-3 .n { color: #a75a2c; }
.t-sp { font: 700 11px var(--head); letter-spacing: .06em; color: #8a6a1d; background: #fff; border: 1px solid #e5d3a3; border-radius: 99px; padding: 5px 9px; }

.t-name { display: flex; align-items: center; gap: 14px; }
.t-icon { flex: none; }
.t-icon img, .t-icon svg { display: block; width: 44px; height: 44px; image-rendering: pixelated; border-radius: 8px; box-shadow: 0 0 0 1px var(--rule), 0 2px 6px rgba(0,0,0,.08); }
.t-name-txt { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.t-title-link { font: 700 18px/1.2 var(--head); color: var(--ink); word-break: break-word; letter-spacing: -.01em; }
.t-title-link:hover { color: var(--forest-3); text-decoration: none; }
.t-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.t-tags a, .t-ed { font-size: 12px; line-height: 1; padding: 4px 8px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--rule-2); }
.t-tags a:hover { background: var(--mint); color: var(--forest); border-color: #c6e3d2; text-decoration: none; }
.t-ed { background: #e6f1f5; color: #1b6f8a; border-color: #cfe3ea; font-weight: 600; }

.t-server { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 26px !important; }
.t-server > * { width: 100%; max-width: 468px; }
.t-banner { display: block; border-radius: 8px 8px 0 0; overflow: hidden; }
.t-banner .banner { border-radius: 0; max-width: 468px; }
.t-ip { display: flex; align-items: stretch; background: var(--slate); color: #fff; height: 34px; border-radius: 0 0 8px 8px; overflow: hidden; }
.t-ip span { flex: 1; min-width: 0; padding: 0 12px; font: 500 14px/34px ui-monospace, "SFMono-Regular", Consolas, monospace; color: #e6edf2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .01em; }
.t-ip button { border: 0; background: var(--emerald); color: #fff; font: 700 13px var(--head); padding: 0 16px; cursor: pointer; letter-spacing: .02em; }
.t-ip button:hover { background: var(--emerald-hi); }
.t-ip button.done { background: var(--gold); color: #2a1e05; }

.t-info { padding: 0 !important; display: flex; flex-direction: column; }
.t-cell { flex: 1; padding: 14px 20px; display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.t-cell + .t-cell { border-top: 1px dashed var(--rule); }
.trow-sponsor .t-cell + .t-cell { border-top-color: #eadcb6; }
.t-cell small { font-size: 12.5px; color: var(--muted); }
.t-pl { font: 800 22px/1.1 var(--head); color: var(--ink); letter-spacing: -.02em; }
.t-pl span { font-weight: 500; font-size: 14px; color: var(--muted); letter-spacing: 0; }
.t-meter { display: block; height: 4px; background: var(--rule-2); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.t-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--emerald), var(--emerald-hi)); border-radius: 2px; min-width: 3px; }
.t-cell-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
.t-status { display: inline-flex; align-items: center; gap: 7px; font: 700 13px var(--head); padding: 5px 10px 5px 8px; border-radius: 99px; }
.t-status i { width: 8px; height: 8px; border-radius: 50%; }
.t-status.on { color: #137443; background: var(--mint); }
.t-status.on i { background: var(--emerald); animation: pulse 2.4s ease-out infinite; }
.t-status.off { color: #a3352b; background: #fbecea; }
.t-status.off i { background: #d0463b; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31,157,85,.45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(31,157,85,0); } }
.t-vote { font-size: 13px; color: var(--muted); white-space: nowrap; }
.t-vote b { font: 800 15px var(--head); color: #9a7420; }
.t-vote:hover { color: var(--ink); text-decoration: none; }

.t-empty { background: #fff; border: 1px dashed var(--rule); border-radius: var(--r); padding: 44px; text-align: center; color: var(--muted); }
.tlist .pager { justify-content: center; margin-top: 28px; }
.pager a, .pager span { border-radius: 8px; font-family: var(--head); }
.pager .cur { background: var(--forest); border-color: var(--forest); }

.t-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 44px 0 8px; padding: 28px 32px;
  background: radial-gradient(ellipse 50% 140% at 100% 50%, rgba(201,162,74,.22), transparent 70%), var(--forest);
  color: #fff; border-radius: 14px;
}
.t-cta h2 { font-size: 22px; margin-bottom: 6px; color: #fff; }
.t-cta p { margin: 0; color: #b9d6c7; max-width: 60ch; }
.t-cta .btn { background: var(--gold); border-color: #a9852f; color: #2a1e05; padding: 13px 20px; }
.t-cta .btn:hover { background: #d8b45f; }

/* --- Other pages: luxury take on classic components ------------------------ */
.main:not(:has(.tlist)) { padding-top: 30px; }
.box { border-radius: var(--r); border-color: var(--rule); box-shadow: 0 1px 2px rgba(20,40,30,.04); }
.box-head { font: 700 15px var(--head); text-transform: none; letter-spacing: 0; color: var(--ink); background: transparent; border-bottom-color: var(--rule-2); border-radius: var(--r) var(--r) 0 0; padding: 15px 18px; }
.box-body { padding: 18px; }
.box-foot { border-radius: 0 0 var(--r) var(--r); }
.srv-thead, .tbl th, .kpi span, .pnav h4, .ipbar-label, .tabs a, .rankpill, .ed, .badge, .foot h4 { text-transform: none; letter-spacing: 0; font-family: var(--head); }
.tbl th { font-size: 12.5px; }
.kpi { border-radius: var(--r); }
.kpi b { font-family: var(--head); font-weight: 800; }
.pnav { border-radius: var(--r); padding: 6px; }
.pnav a { border-radius: var(--r-sm); }
.pnav a.on { box-shadow: none; background: var(--mint); color: var(--forest); }
.btn { background: var(--emerald); border-color: #17804a; border-radius: var(--r-sm); font-family: var(--head); }
.btn:hover { background: #17894a; }
.btn-vote { background: var(--gold); border-color: #a9852f; color: #2a1e05; }
.btn-vote:hover { background: #d8b45f; color: #2a1e05; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: #fff; }
input[type=text], input[type=search], input[type=email], input[type=password], input[type=number], input[type=url], input:not([type]), select, textarea { border-radius: var(--r-sm); border-color: #cbd6d0; }
.tag { border-radius: 99px; }
.rankpill { background: var(--forest); border-radius: 99px; padding: 5px 10px; }
.dh-main h1 { font-family: var(--head); font-weight: 800; letter-spacing: -.02em; }
.dh-icon img, .dh-icon svg { border-radius: 10px; }
.detail-banner .banner { border-radius: 8px; }
.ipbar { background: var(--forest); border-radius: var(--r); padding: 16px 20px; }
.ipbar-label { color: #9fc0b0; font-size: 12px; }
.ipbar-status { color: #cfe3d8; }
.ipbar .btn { background: var(--gold); color: #2a1e05; border-color: #a9852f; }
.motd { border-radius: 0 0 var(--r) var(--r); background: #1b221f; }
.chart .line { stroke: var(--emerald); }
.chart .area { fill: var(--emerald); }
.note { border-radius: var(--r-sm); }

.foot { background: #0b2e22; color: #9fc0b0; }
.foot .brand { color: #fff; font-size: 20px; }
.foot .brand .logo { width: 26px; height: 26px; }
.foot-in a:not(.brand), .foot-in > div > span { color: #9fc0b0; }
.foot h4 { font: 700 14px var(--head); }
.foot-legal { border-top-color: rgba(255,255,255,.08); color: #6f9483; }

/* --- Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .thead, .trow { grid-template-columns: 80px 230px minmax(0, 1fr) 180px; }
  .topsearch input { width: 140px; }
}
@media (max-width: 960px) {
  .thead, .trow { grid-template-columns: 70px 200px minmax(0, 1fr) 160px; }
  .t-server { padding: 14px 14px !important; }
  .trow > div { padding: 14px; }
}
@media (max-width: 760px) {
  .top-in { min-height: 62px; padding-top: 10px; flex-wrap: wrap; row-gap: 10px; }
  .brand { font-size: 20px; }
  .brand .logo { width: 30px; height: 30px; }
  .nav-toggle { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-sm); }
  .nav { top: 62px !important; background: var(--forest); border-bottom: 1px solid rgba(255,255,255,.1); }
  .dd-menu { position: static; box-shadow: none; background: rgba(255,255,255,.05); margin-top: 4px; }
  .dd-menu a { color: #cfe3d8 !important; }
  .topsearch { order: 3; width: 100%; margin-bottom: 12px; }
  .topsearch input { flex: 1; width: auto; }

  .t-hero { padding: 34px 0 84px; }
  .t-filters { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .t-filters select { min-width: 0; }
  .tlist { margin-top: -60px; }
  .thead { display: none; }
  .trow { grid-template-columns: 58px minmax(0, 1fr); grid-template-areas: "rank name" "srv srv" "info info"; }
  .trow > div { padding: 12px; }
  .trow > div + div { border-left: 0; }
  .t-rank { grid-area: rank; }
  .t-name { grid-area: name; padding-left: 0 !important; }
  .t-icon img, .t-icon svg { width: 38px; height: 38px; }
  .t-rank .medal .ingot { width: 30px; height: 20px; }
  .t-server { grid-area: srv; padding: 0 12px 12px !important; }
  .t-info { grid-area: info; flex-direction: row !important; border-top: 1px dashed var(--rule); }
  .t-cell + .t-cell { border-top: 0; border-left: 1px dashed var(--rule); }
  .t-cta { flex-direction: column; align-items: flex-start; padding: 24px; }
  .trow-sponsor { grid-template-areas: "name name" "srv srv" "info info"; }
  .trow-sponsor .t-rank { position: absolute; top: 12px; right: 12px; padding: 0 !important; }
  .trow-sponsor .t-name { padding-left: 14px !important; padding-right: 90px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .t-status.on i { animation: none; }
  .trow { transition: none; }
}

.box-claim { border-color: #e5d3a3; background: linear-gradient(160deg, var(--gold-soft), #fff 70%); }
.claim-code code { color: var(--forest); background: var(--mint); }

/* --- Hero artwork (CraftRank background, see Figma "Hero background") ----- */
.t-hero {
  background:
    url(../img/hero/hero-left.svg) left bottom / auto 100% no-repeat,
    url(../img/hero/hero-right.svg) right bottom / auto 100% no-repeat,
    url(../img/hero/hero-center.svg) center bottom / cover no-repeat,
    var(--forest);
}
.t-hero::before { display: none; }
.t-title { text-shadow: 0 2px 18px rgba(4, 30, 20, .55); }
@media (max-width: 1560px) {
  .t-hero { background-size: auto 74%, auto 74%, cover, auto; }
}
@media (max-width: 1200px) {
  .t-hero { background-size: auto 60%, auto 60%, cover, auto; }
}
@media (max-width: 700px) {
  .t-hero { background: url(../img/hero/hero-center.svg) center bottom / cover no-repeat, var(--forest); }
}
