/* Server List is now a real page of 413374.xyz. The main theme owns the
   document, fonts, cursors, header and footer; this stylesheet is deliberately
   scoped to directory content so it cannot bleed back into the shared shell. */
.server-list-scope {
  --panel: var(--surface);
  --line: var(--border-hi);
  --accent: var(--gold-lt);
  --danger: #e07373;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.45;
}
.server-list-scope * { box-sizing: border-box; }
.server-list-scope a { color: inherit; text-decoration: none; }
.server-list-scope button,
.server-list-scope input,
.server-list-scope select,
.server-list-scope textarea { font: inherit; }
.server-list-scope button:focus-visible,
.server-list-scope a:focus-visible,
.server-list-scope input:focus-visible,
.server-list-scope select:focus-visible,
.server-list-scope textarea:focus-visible {
  outline: 2px solid var(--gold-lt);
  outline-offset: 2px;
}
.server-list-scope .muted { color: var(--muted-hi); }
.server-list-scope .error { color: var(--danger); }
.server-list-scope .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.server-list-scope .stack { display: grid; gap: 14px; }
.server-list-scope .hidden { display: none !important; }
.server-list-scope .full { grid-column: 1 / -1; }
.server-list-scope pre { white-space: pre-wrap; overflow-wrap: anywhere; }

.server-list-shell {
  width: min(1480px, calc(100% - 32px));
  margin: 28px auto 24px;
  min-height: 535px;
}
.server-list-scope .toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(5, minmax(120px, auto));
  gap: 10px;
  margin: 22px 0;
}
.server-list-scope input,
.server-list-scope select,
.server-list-scope textarea,
.server-list-scope button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #11111c;
  color: var(--text);
  padding: 10px 12px;
}
.server-list-scope .primary {
  background: var(--gold);
  color: #09090d;
  border-color: var(--gold-lt);
  font-weight: 700;
}
.server-list-scope .card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.server-list-scope .server-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.server-list-scope .server-card h2 { margin: 0 0 8px; font-size: 1.1rem; }
.server-list-scope .server-card h2 a { text-decoration: none; }
.server-list-scope .chips { display: flex; gap: 7px; flex-wrap: wrap; }
.server-list-scope .chip {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted-hi);
  font-size: .82rem;
}
.server-list-scope .vote { display: grid; grid-template-columns: 38px 54px 38px; align-items: center; text-align: center; }
.server-list-scope .vote button { padding: 7px; }
.server-list-scope .score { font-weight: 800; }
.server-list-scope .detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.server-list-scope .kv { padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.server-list-scope .kv strong { display: block; color: var(--muted-hi); font-size: .8rem; margin-bottom: 4px; }
.server-list-scope .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.server-list-scope .form-grid label { display: grid; gap: 6px; color: var(--muted-hi); }
.server-list-scope .ad-slot[hidden] { display: none !important; }
@media (max-width: 760px) {
  .server-list-scope .toolbar { grid-template-columns: 1fr 1fr; }
  .server-list-scope .toolbar input:first-child { grid-column: 1 / -1; }
  .server-list-scope .server-card { grid-template-columns: 1fr; }
  .server-list-scope .detail-grid,
  .server-list-scope .form-grid { grid-template-columns: 1fr; }
}

/* Directory-specific presentation layered on top of the shared site theme. */

.server-list-shell {
  width: min(1510px, 85vw);
  margin: 0 auto 24px;
  min-height: 535px;
}
.directory-frame {
  position: relative;
  min-height: 510px;
  border: 1px solid #8e8978;
  border-radius: 9px 9px 2px 2px;
  background: #171716;
  box-shadow:
    inset 0 0 0 2px #080807,
    inset 0 0 0 4px #454438,
    0 0 0 2px #111210,
    0 10px 22px #0009;
}
.directory-frame::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 5px;
  border: 1px solid #77726388;
  border-radius: 3px;
}
.frame-heading {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: bold 12px var(--font);
  color: #fff;
  text-shadow: 1px 1px #000;
  border: 1px solid #272720;
  border-bottom: 2px ridge #777364;
  border-radius: 7px 7px 0 0;
  background:
    linear-gradient(180deg, #44433e 0%, #24241f 13%, #090a09 60%, #292823 100%);
  margin: 4px 4px 0;
}
.frame-content {
  margin: 0 6px 6px;
  padding: 18px 18px 20px;
  min-height: 467px;
  background:
    radial-gradient(circle at 15% 15%, #292827 0, transparent 44%),
    repeating-linear-gradient(25deg, #ffffff02 0px, #ffffff02 1px, transparent 1px, transparent 5px),
    #1b1b1b;
  border: 1px solid #35342e;
  box-shadow: inset 0 1px #080807, inset 0 0 0 2px #1c1c1a;
}
.tabs-and-tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.tool-toggle {
  border-radius: 3px;
  padding: 3px 10px;
  min-height: 24px;
  border: 1px solid #6a6555;
  background: linear-gradient(#444236, #22211d);
  font-weight: bold;
  color: #e7dbc1;
}
.tool-toggle[aria-expanded="true"] { color: #fff; background: #4c4737; }
.filters-panel {
  display: grid;
  grid-template-columns: 2fr repeat(5, minmax(100px, 1fr));
  align-items: end;
  gap: 9px;
  margin: 8px 0 0;
  padding: 10px;
  border: 1px solid #555245;
  background: #11110f;
}
.filters-panel[hidden] { display: none; }
.filters-panel label { display: grid; gap: 4px; font-weight: 700; font-size: 11px; color: #b6b2a8; }
.filters-panel input, .filters-panel select {
  width: 100%;
  padding: 6px;
  border-radius: 2px;
  min-width: 0;
  border: 1px solid #6b665b;
  background: #232321;
  color: #f5f5f5;
}
.table-surround {
  margin-top: 0;
  padding: 33px 18px 13px;
  min-height: 395px;
  border: 1px solid #686761;
  background:
    repeating-linear-gradient(130deg, #eeeeee05 0px, #eeeeee05 1px, transparent 1px, transparent 4px),
    #272727;
  box-shadow: inset 0 0 0 2px #0d0d0c, inset 0 0 0 3px #494844;
}
.table-scroll { width: 100%; overflow-x: auto; scrollbar-color: #5e5a4e #111; }
.server-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  min-width: 750px;
  background: #030303;
  font-family: var(--font);
  font-size: 12px;
}
.server-table th {
  padding: 0;
  height: 21px;
  font-size: 11px;
  text-align: left;
  color: white;
  font-weight: bold;
  border: 1px solid #545869;
  border-left: 0;
  border-right: 0;
  text-shadow: 1px 1px #171d29;
  background: linear-gradient(#45536f, #303e55);
}
.server-table th:first-child { padding-left: 0; }
.sort-header {
  appearance: none;
  width: 100%;
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 3px 7px;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: inherit;
  line-height: 1;
  text-align: left;
  text-shadow: inherit;
  cursor: url(../cursors/Cursor_4.cur), pointer !important;
}
.server-table th:first-child .sort-header { padding-left: 21px; }
.sort-header:hover,
.sort-header:focus-visible {
  color: #fff6cf;
  background: #ffffff12;
  outline: none;
}
.sort-header.active { color: #fff5d2; }
.sort-indicator {
  flex: 0 0 auto;
  min-width: 10px;
  color: #d8c89a;
  font-size: 8px;
  text-align: center;
  opacity: .75;
}
.sort-header.active .sort-indicator {
  color: #fff2b7;
  opacity: 1;
}
.server-table td {
  height: 31px;
  padding: 3px 8px;
  border-bottom: 1px solid #303030;
  vertical-align: middle;
  color: #efefef;
  background: #030303;
}
.server-table tbody tr:hover td { background: #1b1c1a; }
.server-table th:first-child,.server-table td:first-child { padding-left: 21px; }
.server-table .name-cell { font-weight: 600; }
.server-table .name-cell a { color: #f4f4f4; }
.server-table .name-cell a:hover { color: #e1c68b; }
.server-table .notice-row td {
  color: #fff6e1;
  font-weight: 700;
  background: linear-gradient(#624019, #51310e);
  border-top: 1px solid #956a37;
  border-bottom: 1px solid #38280e;
}
.notice-symbol { margin-right: 14px; color: #ffda51; text-shadow: 0 0 7px #d09c20; }
.race-icons { display: inline-flex; align-items: center; gap: 4px; }
.race-icon {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  font-weight: bold;
  font-size: 8px;
  border: 1px solid #b38d4f;
  color: #ffdf93;
  background: radial-gradient(circle at 30% 25%, #9f3928, #501a18 60%, #220c0c);
  text-shadow: 0 1px #000;
}
.race-icon.eu {
  border-radius: 2px 2px 6px 6px;
  border-color: #8e9aaf;
  background: linear-gradient(125deg, #6a88bd, #20365b 55%, #1a2242);
  color: #f4f4d6;
}
.feature-icon {
  display: inline-grid;
  place-items: center;
  margin-right: 4px;
  width: 16px;
  height: 16px;
  border: 1px solid #ae996a;
  background: linear-gradient(130deg, #644f30, #231910);
  color: #ead3a2;
  font-size: 11px;
  text-shadow: 0 1px #000;
}
.listed-date { white-space: nowrap; }
.discord-cell { white-space: nowrap; }
.discord-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
}
.discord-link {
  color: #b8c6e3;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 1px 1px #111722;
}
.discord-link:hover { color: #eef3ff; }
.discord-members {
  color: #e2d2a9;
  cursor: help;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  border-bottom: 1px dotted #706a58;
}
.website-button {
  width: 100px;
  max-width: 100%;
  display: inline-block;
  text-align: center;
  padding: 2px 8px;
  font: 11px var(--font);
  color: #fae3b0;
  text-shadow: 1px 1px #211a11;
  border: 1px solid #aaa18a;
  outline: 1px solid #292314;
  box-shadow: inset 0 0 0 1px #544832, inset 0 1px #d3bd8c;
  background: linear-gradient(#84775b, #63543b);
}
.website-button:hover { background: linear-gradient(#a18b61, #7e6541); color: #fff; }
.website-button.disabled { opacity: .5; cursor: default; }
.cell-label, .portrait-status { display: none; }
.vote-mini { display: inline-flex; gap: 2px; align-items: center; margin-left: 12px; font-weight: normal; color: #afab9e; }
.vote-mini button { font-size: 10px; width: 17px; min-height: 17px; padding: 0; border-radius: 2px; color: #baac80; border: 1px solid #4a493e; background: #1c1d1d; }
.vote-mini button:hover { color: #fff; background: #485136; }
.vote-mini .score { min-width: 17px; text-align: center; font-weight: 600; font-size: 10px; }
.list-state {
  padding: 65px 20px;
  text-align: center;
  color: #c1bdaf;
  background: #080808 !important;
  line-height: 1.8;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.list-state strong { display: block; font-size: 14px; color: #e9dfc4; }
.list-status { color: #b5b09f; font-size: 11px; margin: 10px 0 0; display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: #78ad70; }
.status-dot.offline { background: #b69761; }
.pager button { padding: 4px 10px; border: 1px solid #8d8169; color: #ede1bf; border-radius: 2px; background: #3f3b30; }
.pager { justify-content: flex-end; margin-top: 9px; font-size: 11px; }
.directory-footer {
  width: min(1510px, 85vw);
  margin: 0 auto 32px;
  padding: 9px 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  color: #d3cfb9;
  font-size: 11px;
  background: #121511b8;
  border: 1px solid #6a6658a0;
}
.directory-footer nav { display: flex; gap: 22px; }
.directory-footer a { color: #f0d79c; }
.directory-footer a:hover { text-decoration: underline; }

/* Supporting pages share the framed game panel without changing their forms. */
.subpage { padding: 24px; }
.subpage h1 { margin: 0 0 19px; font-size: 22px; color: #e8d6b3; }
.subpage h2 { font-size: 16px; margin: 0; color: #e8d6b3; }
.subpage .card {
  border: 1px solid #676151;
  border-radius: 2px;
  background: #0e0e0d;
}
.subpage .card a { color: #f1d7a0; }
.subpage .primary {
  color: #231d13;
  border: 1px solid #d0b275;
  background: linear-gradient(#f1d69d, #b39558);
}
.subpage input, .subpage select, .subpage textarea, .subpage button {
  border-radius: 2px;
}
.subpage .vote { display: inline-flex; gap: 5px; }
.subpage .vote button { padding: 5px 8px; }
.subpage .detail-grid { margin: 14px 0; }
.subpage .kv { border-radius: 2px; background: #10100f; border-color: #5a5445; }
.offline-note { padding: 12px 15px; border: 1px solid #7f6f45; background: #352b1a; color: #f2dfb3; }

@media (max-width: 1100px) {
  .server-list-shell, .directory-footer { width: 94vw; }
  .filters-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .server-list-shell, .directory-footer { width: 97vw; }
  .frame-content { padding: 10px 7px; }
  .table-surround { padding: 15px 5px; min-height: 280px; }
  .tool-toggle { font-size: 11px; }
  .filters-panel { grid-template-columns: 1fr 1fr; }
  .filters-panel label:first-child { grid-column: 1 / -1; }
  .subpage { padding: 15px 10px; }
  .directory-footer nav { gap: 12px; flex-wrap: wrap; }
}

/* Portrait is its own layout, rather than a horizontally clipped desktop table.
   Narrow landscape phones use the same compact rows so that all actions fit. */
@media (orientation: portrait), (max-width: 820px) {
  html, body { min-width: 0; max-width: 100%; }
  .server-list-shell, .directory-footer {
    width: min(1100px, calc(100% - 16px));
    min-width: 0;
  }
  .server-list-shell { min-height: 0; }
  .directory-frame { min-height: 0; }
  .frame-content {
    min-height: 0;
    padding: clamp(8px, 2vw, 18px);
  }
  .tabs-and-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .tool-toggle {
    min-height: 40px;
    width: 100%;
    text-align: center;
  }
  .filters-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 7px 0;
    gap: 9px;
    padding: 9px;
  }
  .filters-panel label:first-child { grid-column: 1 / -1; }
  .filters-panel input, .filters-panel select { min-height: 39px; }
  .table-surround {
    min-height: 0;
    margin-top: 8px;
    padding: clamp(5px, 1.6vw, 14px);
  }
  .table-scroll { overflow: visible; }
  .server-table, .server-table tbody {
    display: block;
    min-width: 0;
    width: 100%;
    background: transparent;
  }
  .server-table colgroup { display: none; }
  .server-table thead {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    overflow: visible;
  }
  .server-table thead tr {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    gap: 3px;
  }
  .server-table thead th {
    display: block;
    flex: 1 1 95px;
    min-width: 0;
    width: auto;
    height: auto;
    border: 1px solid #545869;
    background: linear-gradient(180deg, #46536b 0%, #39465d 100%);
  }
  .server-table thead .sort-header {
    width: 100%;
    min-height: 34px;
    padding: 6px 10px;
    white-space: nowrap;
  }
  .server-table thead th:first-child .sort-header { padding-left: 10px; }
  .server-table tbody {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 315px), 1fr));
    align-items: stretch;
    gap: 10px;
  }
  .server-table tbody tr:not(.notice-row):not(.empty-row) {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "name name"
      "races cap"
      "date features"
      "discord discord"
      "website website";
    align-content: start;
    gap: 0 10px;
    padding: 10px 11px 11px;
    border: 1px solid #6a6252;
    border-radius: 3px;
    background: linear-gradient(140deg, #1e1e1b, #070707 60%);
    box-shadow: inset 0 1px 0 #a18b5836, 0 2px 5px #0009;
  }
  .server-table tbody tr:not(.notice-row):not(.empty-row):hover {
    border-color: #b1a078;
    background: linear-gradient(140deg, #333027, #10100f 60%);
  }
  .server-table tbody tr:not(.notice-row):not(.empty-row) > td {
    display: flex;
    min-width: 0;
    width: 100%;
    height: auto;
    padding: 6px 1px;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    border: 0;
    border-bottom: 1px solid #3b3933;
    background: transparent;
    font-size: 12px;
  }
  .server-table tbody tr:not(.notice-row):not(.empty-row):hover > td {
    background: transparent;
  }
  .server-table tbody tr > .name-cell {
    grid-area: name;
    gap: 9px;
    flex-wrap: wrap;
    align-content: center;
    padding: 3px 0 9px !important;
    font-size: 14px !important;
    font-weight: bold;
    border-bottom-color: #877451 !important;
  }
  .server-table .name-cell > a {
    min-width: 0;
    overflow-wrap: anywhere;
    flex: 1 1 100px;
  }
  .portrait-status {
    display: inline-flex;
    border: 1px solid #595341;
    background: #393526;
    color: #d8c9a3;
    font-size: 10px;
    font-weight: normal;
    padding: 3px 6px;
    border-radius: 2px;
    text-transform: capitalize;
  }
  .server-table .vote-mini {
    flex: 0 0 auto;
    margin: 0;
    gap: 4px;
  }
  .server-table .vote-mini button {
    min-width: 30px;
    min-height: 30px;
    font-size: 12px;
  }
  .server-table .vote-mini .score { min-width: 23px; font-size: 12px; }
  .server-table tbody tr > td:nth-child(2) { grid-area: races; }
  .server-table tbody tr > td:nth-child(3) { grid-area: cap; }
  .server-table tbody tr > td:nth-child(4) { grid-area: date; }
  .server-table tbody tr > td:nth-child(5) { grid-area: features; }
  .server-table tbody tr > td:nth-child(6) {
    grid-area: discord;
    padding: 8px 1px !important;
  }
  .server-table tbody tr > td:nth-child(7) {
    grid-area: website;
    border-bottom: 0 !important;
    padding: 11px 0 0 !important;
  }
  .cell-label {
    display: inline-block;
    min-width: 0;
    color: #a9a398;
    font-size: 10px;
    line-height: 1.2;
  }
  .race-icons { gap: 5px; }
  .race-icon { width: 17px; height: 17px; }
  .discord-info {
    justify-content: flex-end;
    gap: 10px;
  }
  .website-button {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 36px;
    padding: 9px 8px;
    font-size: 12px;
  }
  .notice-row, .empty-row { display: block; grid-column: 1 / -1; }
  .notice-row td, .empty-row td {
    display: block;
    width: 100%;
    height: auto;
    min-width: 0;
    white-space: normal;
    padding: 12px !important;
  }
  .list-state { padding: 35px 15px !important; }
  .list-status { align-items: flex-start; }
  .pager { flex-wrap: wrap; }
  .subpage { min-width: 0; padding: clamp(12px, 2vw, 24px); }
  .subpage .detail-grid, .subpage .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  }
  .subpage .row { min-width: 0; }
  .subpage input, .subpage textarea, .subpage select { min-width: 0; max-width: 100%; }
  .subpage pre, .subpage code { overflow-wrap: anywhere; word-break: break-word; }
  .directory-footer { align-items: center; }
  .directory-footer nav { justify-content: space-around; flex: 1 1 100%; gap: 10px; }
}

@media (max-width: 410px) {
  .server-list-shell, .directory-footer { width: calc(100% - 8px); }
  .directory-frame { border-radius: 4px; }
  .frame-heading { font-size: 11px; }
  .frame-content { margin: 0 4px 5px; padding: 7px 5px; }
  .table-surround { padding: 4px; }
  .server-table tbody { gap: 7px; }
  .filters-panel { grid-template-columns: minmax(0, 1fr); }
  .filters-panel label:first-child { grid-column: auto; }
  .server-table tbody tr:not(.notice-row):not(.empty-row) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 8px 8px 10px;
    gap: 0 7px;
  }
}

/* Final closed-bezel system. Each visible border is its own clipped layer,
   so the chamfers stay closed instead of leaving open border ends. */
.directory-frame {
  --outer-cut: 8px;
  min-height: 510px;
  padding: 3px;
  overflow: hidden;
  clip-path: polygon(
    var(--outer-cut) 0,
    calc(100% - var(--outer-cut)) 0,
    100% var(--outer-cut),
    100% calc(100% - var(--outer-cut)),
    calc(100% - var(--outer-cut)) 100%,
    var(--outer-cut) 100%,
    0 calc(100% - var(--outer-cut)),
    0 var(--outer-cut)
  );
  background:
    linear-gradient(180deg, #8f8c80 0 1px, #4c4a42 1px 2px, #171815 2px 3px),
    radial-gradient(ellipse at 16% 8%, #49483f 0%, transparent 30%),
    radial-gradient(ellipse at 82% 70%, #2b2c29 0%, transparent 42%),
    linear-gradient(180deg, #242521 0%, #11120f 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: 0 8px 18px #0009;
}

.directory-frame::before,
.directory-frame::after {
  display: none;
}

.frame-bezel {
  --bezel-cut: 6px;
  min-height: inherit;
  padding: 3px;
  clip-path: polygon(
    var(--bezel-cut) 0,
    calc(100% - var(--bezel-cut)) 0,
    100% var(--bezel-cut),
    100% calc(100% - var(--bezel-cut)),
    calc(100% - var(--bezel-cut)) 100%,
    var(--bezel-cut) 100%,
    0 calc(100% - var(--bezel-cut)),
    0 var(--bezel-cut)
  );
  background:
    linear-gradient(180deg, #0b0c0a 0 1px, #56544b 1px 2px, #141512 2px 100%),
    radial-gradient(ellipse at 24% 20%, #33332e 0%, transparent 36%),
    radial-gradient(ellipse at 72% 82%, #242521 0%, transparent 48%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.frame-heading {
  height: 26px;
  clip-path: polygon(
    5px 0,
    calc(100% - 5px) 0,
    100% 5px,
    100% 100%,
    0 100%,
    0 5px
  );
  background-image:
    linear-gradient(180deg, #3e3d37 0 1px, #171815 1px 4px, #090a08 4px 22px, #35352f 22px 24px, #777469 24px 25px, #11120f 25px 26px);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.frame-content {
  min-height: 467px;
  background:
    radial-gradient(ellipse at 15% 24%, #242522 0%, transparent 28%),
    radial-gradient(ellipse at 78% 18%, #1d1e1b 0%, transparent 34%),
    radial-gradient(ellipse at 62% 78%, #20211e 0%, transparent 42%),
    linear-gradient(180deg, #1d1e1b 0%, #121311 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow:
    inset 0 1px 0 #050605,
    inset 0 2px 0 #393933;
}

.table-surround {
  --panel-cut: 4px;
  padding: 3px;
  min-height: 395px;
  clip-path: polygon(
    var(--panel-cut) 0,
    calc(100% - var(--panel-cut)) 0,
    100% var(--panel-cut),
    100% calc(100% - var(--panel-cut)),
    calc(100% - var(--panel-cut)) 100%,
    var(--panel-cut) 100%,
    0 calc(100% - var(--panel-cut)),
    0 var(--panel-cut)
  );
  background:
    linear-gradient(180deg, #67675f 0 1px, #363730 1px 2px, #090a08 2px 3px),
    radial-gradient(ellipse at 18% 28%, #282925 0%, transparent 36%),
    radial-gradient(ellipse at 83% 67%, #20211e 0%, transparent 48%),
    linear-gradient(180deg, #20211e 0%, #141513 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: none;
}

.table-bezel {
  --panel-inner-cut: 2px;
  min-height: inherit;
  padding: 33px 17px 10px;
  clip-path: polygon(
    var(--panel-inner-cut) 0,
    calc(100% - var(--panel-inner-cut)) 0,
    100% var(--panel-inner-cut),
    100% calc(100% - var(--panel-inner-cut)),
    calc(100% - var(--panel-inner-cut)) 100%,
    var(--panel-inner-cut) 100%,
    0 calc(100% - var(--panel-inner-cut)),
    0 var(--panel-inner-cut)
  );
  background:
    radial-gradient(ellipse at 12% 10%, #20211e 0%, transparent 30%),
    radial-gradient(ellipse at 76% 72%, #1a1b18 0%, transparent 46%),
    linear-gradient(180deg, #1b1c19 0%, #111210 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow:
    inset 0 0 0 1px #0b0c0a,
    inset 0 0 0 2px #41423c;
}

.tool-toggle {
  clip-path: polygon(
    4px 0,
    calc(100% - 4px) 0,
    100% 4px,
    100% calc(100% - 3px),
    calc(100% - 3px) 100%,
    3px 100%,
    0 calc(100% - 3px),
    0 4px
  );
  border: 0;
  outline: 0;
  box-shadow:
    inset 0 0 0 1px #66655d,
    inset 0 0 0 2px #141511;
}

.server-table th {
  background:
    linear-gradient(180deg, #46536b 0%, #39465d 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

@media (orientation: portrait), (max-width: 820px) {
  .frame-bezel { --bezel-cut: 6px; }

  .table-bezel {
    padding: 9px 4px 8px;
  }
}

.filters-panel {
  background:
    radial-gradient(ellipse at 16% 18%, #22231f 0%, transparent 34%),
    radial-gradient(ellipse at 78% 70%, #191a17 0%, transparent 48%),
    linear-gradient(180deg, #181916 0%, #10110f 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

@media (orientation: landscape) and (max-height: 510px) {
  .server-list-shell, .directory-footer { width: min(1100px, calc(100% - 12px)); }
}

@media (min-width: 1101px) and (min-height: 550px) {
  .server-list-shell, .directory-footer { width: min(1482px, 84.5vw); transform: translateX(7px); }
  .directory-frame { min-height: max(550px, calc(100vh - 200px)); }
  .frame-content { min-height: max(510px, calc(100vh - 240px)); }
}
@media (orientation: portrait), (max-width: 820px) {
  .server-list-shell, .directory-footer { transform: none; }
}
.server-table tbody .placeholder-row td {
  height: 31px;
  background: #030303;
  border-bottom: 1px solid #292929;
}
@media (orientation: portrait), (max-width: 820px) {
  .server-table tbody tr.placeholder-row:not(.notice-row):not(.empty-row) { display: none !important; }
}

/* Fine reference details */
.frame-bezel {
  position: relative;
}

.frame-bezel::before,
.frame-bezel::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: 20px;
  width: 7px;
  height: 11px;
  pointer-events: none;
  clip-path: polygon(50% 0, 100% 28%, 100% 72%, 50% 100%, 0 72%, 0 28%);
  background:
    linear-gradient(90deg, #181915 0 1px, #7d796b 1px 2px, #3b3a34 2px 5px, #0b0c0a 5px 7px);
  box-shadow: inset 0 0 0 1px #0a0b09;
}

.frame-bezel::before { left: -1px; }
.frame-bezel::after { right: -1px; transform: scaleX(-1); }

.tabs-and-tools {
  min-height: 24px;
  padding: 0 2px;
  align-items: end;
}

.tool-toggle {
  width: 24px;
  min-width: 24px;
  min-height: 22px;
  padding: 2px;
  border-radius: 0;
  color: #c7bb96;
  font: 700 11px var(--font);
  background: linear-gradient(180deg, #2e2e28 0%, #1a1b18 100%);
}

.tool-toggle:hover,
.tool-toggle[aria-expanded="true"] {
  color: #f1dfaa;
  background: linear-gradient(180deg, #38372f 0%, #22211d 100%);
}

.website-button {
  width: 101px;
  padding: 2px 7px;
  border: 0;
  border-radius: 0;
  clip-path: polygon(2px 0, calc(100% - 2px) 0, 100% 2px, 100% calc(100% - 2px), calc(100% - 2px) 100%, 2px 100%, 0 calc(100% - 2px), 0 2px);
  box-shadow:
    inset 0 0 0 1px #c0b28d,
    inset 0 0 0 2px #4b402d,
    inset 0 1px 0 #8c7c5c;
  color: #f6e1aa;
  text-shadow: 1px 1px 0 #1b160e;
  background: linear-gradient(180deg, #756446 0%, #5e5037 100%);
}

.website-button:hover {
  color: #fff0c8;
  background: linear-gradient(180deg, #837150 0%, #69583d 100%);
}

@media (orientation: portrait), (max-width: 820px) {
  .tool-toggle {
    width: 100%;
    min-height: 40px;
  }

  .tool-toggle::after {
    content: attr(data-label);
  }

  .server-table {
    margin-bottom: 14px;
  }

  .list-status {
    margin-top: 0;
    position: relative;
    clear: both;
  }

  .server-table tbody tr:not(.notice-row):not(.empty-row):not(.placeholder-row) {
    border-radius: 0;
    background:
      radial-gradient(ellipse at 18% 15%, #171815 0%, transparent 42%),
      linear-gradient(180deg, #111210 0%, #080908 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
  }
}

html[dir="rtl"] .directory-footer,
html[dir="rtl"] .tabs-and-tools,
html[dir="rtl"] .filters-panel,
html[dir="rtl"] .list-status,
html[dir="rtl"] .subpage {
  direction: rtl;
}
html[dir="rtl"] .server-table { direction: rtl; }
html[dir="rtl"] .sort-header { text-align: right; }
html[dir="rtl"] input[name="discord"],
html[dir="rtl"] #owner-secret,
html[dir="rtl"] code,
html[dir="rtl"] pre,
html[dir="rtl"] .discord-link,
html[dir="rtl"] .discord-members {
  direction: ltr;
  text-align: left;
}
/* Final integration layer: the shared 413374 theme owns the document shell.
   These overrides intentionally come last so the former standalone artwork
   cannot replace the main site's background, typography or shell spacing. */
body.server-list-page,
body.server-list-page #page-wrapper {
  background: var(--bg) !important;
  font-family: var(--font) !important;
  color: var(--text) !important;
}
body.server-list-page #page-wrapper {
  padding-bottom: 4px !important;
}
body.server-list-page #footer-wrapper {
  position: static !important;
  margin-top: 0 !important;
}
body.server-list-page { direction: ltr; }
.server-list-page .server-list-scope { direction: ltr; }
html[dir="rtl"] .server-list-page .server-list-scope { direction: rtl; }

.server-list-page .server-list-shell {
  transform: none !important;
  width: min(1480px, calc(100% - 32px));
}
.server-list-page .server-list-shell {
  margin: 28px auto 24px;
}
.server-list-page .directory-frame {
  border-color: rgba(var(--gold-rgb), .42);
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px rgba(var(--gold-rgb), .12),
    0 12px 34px rgba(0, 0, 0, .48),
    0 0 28px rgba(var(--gold-rgb), .08);
}
.server-list-page .frame-heading {
  font-family: var(--mono);
  color: var(--gold-lt);
  border-color: rgba(var(--gold-rgb), .34);
  background: linear-gradient(180deg, rgba(35, 30, 14, .98), rgba(11, 11, 20, .98));
  letter-spacing: .08em;
}
.server-list-page .frame-content {
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(var(--gold-rgb), .05), transparent 38%),
    var(--surface);
  border-color: var(--border-hi);
}
@media (max-width: 820px) {
  .server-list-page .server-list-shell {
    width: calc(100% - 12px);
  }
}

/* -------------------------------------------------------------------------
   Public Server List — Silkroad-inspired server window.
   The chrome is the cropped server-list-window.jpg artwork supplied by the site owner; HTML covers
   the live value/table regions so real directory data can remain interactive.
   Supporting owner/admin/detail pages continue to use .directory-frame above.
   ------------------------------------------------------------------------- */
.server-list-page .server-list-shell:has(.party-window-shell) {
  width: min(1120px, calc(100% - 32px));
  min-height: 0;
  margin: 14px auto 4px;
}

.server-list-page-launch {
  position: relative;
  z-index: 20;
  max-width: 800px;
  min-height: 40px;
  padding: 5px 18px;
  margin: 28px auto 0;
}

.server-list-page-launch[hidden] {
  display: none !important;
}

.server-list-page-launch .server-list-launch-features {
  white-space: nowrap;
}

.server-list-page-launch.is-current-home,
.server-list-page-launch.is-current-home * {
  cursor: url(../cursors/cursor-default.cur), auto !important;
  pointer-events: none;
}

.server-list-page .server-list-scope {
  overflow: visible;
}

.server-list-page .server-list-shell:has(.party-window-shell) {
  position: relative;
  z-index: 1;
  overflow: visible;
}

.party-window-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 1499 / 923;
  margin: 0 auto;
  container-type: inline-size;
  min-width: 0;
  overflow: hidden;
  direction: ltr;
  color: #f0f0f0;
  font-family: Tahoma, Arial, sans-serif;
  user-select: none;
  isolation: isolate;
}

.party-window-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.party-window-title {
  position: absolute;
  z-index: 3;
  left: 3.15%;
  top: 2.6%;
  width: 93.7%;
  height: 5.35%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font: 400 1.38cqw/1 Tahoma, Arial, sans-serif;
  letter-spacing: .055em;
  text-align: center;
  text-shadow: 1px 1px 0 #000, 0 0 .22cqw rgba(219, 190, 119, .28);
  pointer-events: none;
}

.party-filter-controls {
  position: absolute;
  z-index: 4;
  left: 7.5%;
  top: 15.5%;
  width: 85%;
  height: 5.3%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55cqw;
}
.party-name-label {
  flex: 0 0 auto;
  color: #bda978;
  font: 400 1.12cqw/1 Tahoma, Arial, sans-serif;
  text-shadow: 1px 1px #000;
  white-space: nowrap;
}
.server-list-scope .party-name-input {
  width: 13.5cqw;
  height: 72%;
  transform: translateX(.8929cqw);
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
  padding: 0 .7cqw;
  border: 1px solid #6d6248;
  border-radius: 0;
  outline: 0;
  background: #080909;
  color: #ece7d7;
  box-shadow: inset 0 0 0 1px #171611;
  font: 1.22cqw/1 Tahoma, Arial, sans-serif;
}
.server-list-scope .party-name-input:focus {
  outline: 0;
  border-color: #6d6248;
  box-shadow: inset 0 0 0 1px #171611;
}
.party-filter-select-wrap {
  height: 72%;
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 0 0 auto;
}
.party-filter-select-wrap-type {
  width: 13.8cqw;
  margin-left: 3.9143cqw;
}
.party-filter-select-wrap-value {
  width: 16.5cqw;
}
.server-list-scope .party-filter-select {
  width: auto;
  height: 100%;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  padding: 0 .7cqw;
  border: 1px solid #6d6248;
  border-radius: 0;
  outline: 0;
  background: #080909;
  background-image: none !important;
  color: #ece7d7;
  box-shadow: inset 0 0 0 1px #171611;
  font: 1.22cqw/1 Tahoma, Arial, sans-serif;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  pointer-events: none;
  cursor: url(../cursors/cursor-default.cur), default !important;
}
.server-list-scope .party-filter-select::-ms-expand {
  display: none;
}
.server-list-scope .party-filter-select:hover {
  border-color: #bda978;
  color: #fff;
}
.server-list-scope .party-filter-select:focus,
.server-list-scope .party-filter-select:focus-visible {
  outline: 0;
  border-color: #6d6248;
  box-shadow: inset 0 0 0 1px #171611;
}
.server-list-scope .party-filter-select:disabled {
  color: #777369;
  border-color: #3c392f;
  cursor: url(../cursors/cursor-default.cur), auto !important;
}
.server-list-scope .party-filter-menu-button {
  width: auto;
  height: 100%;
  aspect-ratio: 161 / 155;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent url(../images/dropdown.png) center / 100% 100% no-repeat;
  box-shadow: none;
  cursor: url(../cursors/Cursor_4.cur), pointer !important;
  transition: filter .12s ease, box-shadow .12s ease;
}
.server-list-scope .party-filter-menu-button:hover:not(:disabled) {
  filter: brightness(1.28) contrast(1.08) drop-shadow(0 0 2px rgba(231, 198, 105, .9));
}
.server-list-scope .party-filter-menu-button:active:not(:disabled) {
  filter: brightness(.72) contrast(1.12);
  box-shadow: inset 0 0 .28cqw rgba(0, 0, 0, .85);
}
.server-list-scope .party-filter-menu-button:disabled {
  opacity: .45;
  cursor: url(../cursors/cursor-default.cur), auto !important;
}
.server-list-scope .party-filter-apply,
.server-list-scope .party-filter-reset,
.server-list-scope .party-filter-refresh {
  width: auto;
  height: calc(72% + .1786cqw);
  aspect-ratio: 2345 / 670;
  flex: 0 0 auto;
  min-height: 0;
  padding: 0 .45cqw;
  border: 0;
  border-radius: 0;
  outline: 0;
  background-color: transparent;
  background-image: url(../images/unpressedbutton.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: #ece7d7;
  box-shadow: none;
  font: 400 1.12cqw/1 Tahoma, Arial, sans-serif;
  text-shadow: 1px 1px #000;
  cursor: url(../cursors/Cursor_4.cur), pointer !important;
}
.server-list-scope .party-filter-refresh {
  margin-left: 3.9143cqw;
  transform: translateX(-.8929cqw);
}
.server-list-scope .party-filter-apply:hover,
.server-list-scope .party-filter-apply:focus-visible,
.server-list-scope .party-filter-reset:hover,
.server-list-scope .party-filter-reset:focus-visible,
.server-list-scope .party-filter-refresh:hover,
.server-list-scope .party-filter-refresh:focus-visible {
  color: #fff;
}
.server-list-scope .party-filter-apply:active:not(:disabled),
.server-list-scope .party-filter-reset:active:not(:disabled),
.server-list-scope .party-filter-refresh:active:not(:disabled) {
  background-image: url(../images/pressedbutton.jpg);
}
.server-list-scope .party-filter-apply:disabled,
.server-list-scope .party-filter-reset:disabled,
.server-list-scope .party-filter-refresh:disabled {
  color: #777369;
  background-image: url(../images/unactivebutton.jpg);
  cursor: url(../cursors/cursor-default.cur), auto !important;
}

.party-window-shell.party-art-missing {
  border: 1px solid #787468;
  background: #141414;
  box-shadow: 0 12px 32px #000a;
}

.party-table-body-mask,
.party-table-header,
.party-pinned-region,
.party-table-region {
  position: absolute;
  z-index: 2;
}

.party-table-body-mask {
  z-index: 1;
  left: 1.4767%;
  top: 28.2183%;
  width: 95.5078%;
  height: 63.7952%;
  background: transparent;
  border: 0;
}

.party-table-header {
  z-index: 4;
  left: 4.5367%;
  top: 25.7858%;
  width: 91.0611%;
  height: 5.1999%;
  box-sizing: border-box;
  padding-right: 1.8786cqw;
  display: grid;
  grid-template-columns: 4.5% 4.5% minmax(0, 1fr) 4.5% 5.5% 6% 5.5% 5% 8.5% 9% 5% 6.5% 6.5% 4% 5%;
  align-items: stretch;
  color: #fff;
  font: 600 1.0595cqw/1.05 Tahoma, Arial, sans-serif;
  text-align: center;
  text-shadow:
    1px 1px 0 #0a0d12,
    0 0 1px #000;
  pointer-events: auto;
}
.party-header-cell {
  position: relative;
  box-sizing: border-box;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border-top: 2px solid #000;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  border-left: 0;
  box-shadow:
    inset 0 1px 0 rgba(204, 218, 241, .18),
    inset 0 -1px 0 rgba(1, 3, 7, .90),
    inset 2px 0 2px rgba(183, 201, 229, .07),
    inset -3px 0 4px rgba(0, 0, 0, .20);
}
.party-header-cell:first-child { border-left: 2px solid #000; }
.party-header-cell:not(:last-child) {
  padding: 0;
}
.party-header-cell:not(:last-child)::after {
  content: none;
}
.party-table-header::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1.8786cqw;
  height: 100%;
  box-sizing: border-box;
  background: #282828;
  border-top: 2px solid #000;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  border-left: 0;
  box-shadow:
    inset 0 1px 0 rgba(204, 218, 241, .18),
    inset 0 -1px 0 rgba(1, 3, 7, .90),
    inset 2px 0 2px rgba(183, 201, 229, .07),
    inset -3px 0 4px rgba(0, 0, 0, .20);
  pointer-events: none;
}
.party-header-cell.active { background: rgba(255, 255, 255, .045); }

.party-table-region {
  left: 4.5367%;
  top: 30.9857%;
  width: 91.0611%;
  height: calc(61.2139% - 1.9643cqw);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: transparent transparent;
}
.party-pinned-region {
  position: sticky;
  z-index: 6;
  left: auto;
  top: 0;
  width: 100%;
  height: 0;
  box-sizing: border-box;
  padding-right: 0;
  overflow: hidden;
  background: #07090a;
  pointer-events: auto;
}
.party-pinned-region[hidden] { display: none; }
.party-window-shell.party-pinned-count-1 .party-pinned-region { height: 3.033cqw; }
.party-window-shell.party-pinned-count-2 .party-pinned-region { height: 6.066cqw; }
.party-window-shell.party-pinned-count-3 .party-pinned-region { height: 9.099cqw; }
.party-table-region::-webkit-scrollbar { width: 1.7cqw; }
.party-table-region::-webkit-scrollbar-track { background: transparent; }
.party-table-region::-webkit-scrollbar-thumb { background: transparent; border: 0; }
.party-scrollbar-track {
  position: absolute;
  z-index: 8;
  top: 30.9857%;
  right: 4.4022%;
  width: 1.7cqw;
  height: calc(61.2139% - 1.9643cqw);
  overflow: visible;
  background: #17170f;
  box-shadow: -.1786cqw 0 0 #17170f;
  cursor: url(../cursors/Cursor_4.cur), pointer !important;
  touch-action: none;
}
.party-scrollbar-track::before,
.party-scrollbar-track::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: .4911cqw;
  bottom: .4911cqw;
  width: max(1px, .0893cqw);
  background: #bda978;
  pointer-events: none;
}
.party-scrollbar-track::before { left: -.1339cqw; }
.party-scrollbar-track::after { right: .1339cqw; }
.party-scrollbar-arrow {
  position: absolute;
  z-index: 4;
  left: -.1786cqw;
  width: calc(100% + .3571cqw);
  aspect-ratio: 1 / 1;
  overflow: visible;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
  cursor: url(../cursors/Cursor_4.cur), pointer !important;
}
.party-scrollbar-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: translate(-50%, -50%) rotate(90deg);
  pointer-events: none;
}
.party-scrollbar-arrow-up {
  top: -.0893cqw;
  left: -.3571cqw;
}
.party-scrollbar-arrow-up::before { background-image: url(../images/pageprev.jpg); }
.party-scrollbar-arrow-down {
  bottom: 0;
  left: -.3571cqw;
}
.party-scrollbar-arrow-down::before { background-image: url(../images/pagenext.jpg); }
.party-scrollbar-arrow:hover {
  filter: brightness(1.28) contrast(1.08) drop-shadow(0 0 2px rgba(231, 198, 105, .9));
}
.party-scrollbar-arrow:active {
  filter: brightness(.72);
}
.party-scrollbar-rail {
  position: absolute;
  z-index: 3;
  top: 2.0571cqw;
  bottom: 2.0571cqw;
  left: 0;
  width: 100%;
  overflow: visible;
  cursor: url(../cursors/Cursor_4.cur), pointer !important;
  touch-action: none;
}
.party-scrollbar-thumb {
  display: block;
  box-sizing: border-box;
  width: calc(100% + .0893cqw);
  max-width: none;
  height: auto;
  margin: 0 0 0 -.1339cqw;
  border: 0;
  box-shadow: 0 0 2px rgba(170, 170, 170, .72);
  object-fit: contain;
  object-position: top center;
  user-select: none;
  -webkit-user-drag: none;
  cursor: url(../cursors/Cursor_4.cur), pointer !important;
  touch-action: none;
  will-change: transform;
}

.party-server-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
  color: #ececec;
  font: 1.0906cqw/1 Tahoma, Arial, sans-serif;
  background: transparent;
}
.party-col-no { width: 4.5%; }
.party-col-race { width: 4.5%; }
.party-col-name { width: 20%; }
.party-col-cap { width: 4.5%; }
.party-col-degree { width: 5.5%; }
.party-col-limits { width: 6%; }
.party-col-exp { width: 5.5%; }
.party-col-type { width: 5%; }
.party-col-beta { width: 8.5%; }
.party-col-opening { width: 9%; }
.party-col-topic { width: 5%; }
.party-col-website { width: 6.5%; }
.party-col-discord-count { width: 6.5%; }
.party-col-vote { width: 4%; }
.party-col-votes { width: 5%; }

.party-sort-hit {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 .2077cqw !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font: inherit !important;
  text-shadow: inherit;
  cursor: url(../cursors/Cursor_4.cur), pointer !important;
  transition: background .08s ease, box-shadow .08s ease, transform .06s ease, color .08s ease;
}
.party-sort-hit:hover,
.party-sort-hit:focus-visible {
  cursor: url(../cursors/Cursor_4.cur), pointer !important;
  background: linear-gradient(180deg, rgba(189, 211, 241, .13), rgba(20, 31, 47, .16)) !important;
  color: #fff9df !important;
  box-shadow:
    inset 0 1px 0 rgba(221, 232, 248, .34),
    inset 0 -2px 0 rgba(0, 0, 0, .72),
    inset 1px 0 0 rgba(198, 216, 241, .12),
    inset -1px 0 0 rgba(0, 0, 0, .40);
}
.party-sort-hit:active {
  background: linear-gradient(180deg, rgba(2, 5, 9, .34), rgba(121, 143, 178, .10)) !important;
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, .88),
    inset 0 -1px 0 rgba(205, 219, 240, .18),
    inset 1px 0 1px rgba(0, 0, 0, .46),
    inset -1px 0 1px rgba(195, 211, 235, .08);
  transform: translateY(.0831cqw);
  color: #f1e8c8 !important;
}
.party-header-label {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.party-server-table tbody td {
  height: 3.033cqw;
  padding: 0 .3635cqw;
  overflow: hidden;
  border-bottom: 1px solid #303030;
  background: transparent;
  color: #ececec;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}
.party-server-table tbody tr { cursor: default; }
.party-server-table tbody tr.party-data-row:hover td { background: #101315; }
.party-rank-icon {
  display: block;
  width: 2.129cqw;
  height: 2.129cqw;
  max-width: 90%;
  margin: 0 auto;
  object-fit: contain;
}
.party-pinned-row td {
  z-index: 7;
  background: rgba(7, 9, 10, .97);
}
.party-pinned-3 td { box-shadow: inset 0 -1px 0 #bda978; }
.party-pinned-row:hover td { background: rgba(9, 11, 12, .99) !important; }
.party-pinned-gold td {
  animation: party-top-rainbow-text .7s linear infinite;
}
.party-pinned-gold td * { animation: party-top-rainbow-text .7s linear infinite; }
.party-pinned-gold .party-row-icon,
.party-pinned-gold .party-vote-button { color: inherit !important; }
@keyframes party-top-rainbow-text {
  0%, 100% { color: #ff3b3b; text-shadow: 0 0 5px rgba(255,59,59,.7), 1px 1px #000; }
  17% { color: #ffb52e; text-shadow: 0 0 5px rgba(255,181,46,.72), 1px 1px #000; }
  34% { color: #69ff5a; text-shadow: 0 0 5px rgba(105,255,90,.7), 1px 1px #000; }
  51% { color: #43eaff; text-shadow: 0 0 6px rgba(67,234,255,.75), 1px 1px #000; }
  68% { color: #6578ff; text-shadow: 0 0 5px rgba(101,120,255,.72), 1px 1px #000; }
  85% { color: #ef5cff; text-shadow: 0 0 6px rgba(239,92,255,.75), 1px 1px #000; }
}
@media (prefers-reduced-motion: reduce) {
  .party-pinned-gold td * { animation: none; }
}
.party-center-cell { text-align: center; }
.party-server-table tbody td:nth-child(2) { text-align: center; }
.party-name-cell {
  text-align: center;
  font-weight: 600;
}
.party-header-label,
.party-sort-hit,
.party-server-table tbody td {
  text-align: center;
}
.party-row-icon,
.party-vote-button {
  display: inline-grid;
  width: 1.8177cqw;
  height: 1.8177cqw;
  margin: 0 auto;
  padding: 0 !important;
  place-items: center;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #efe5bf !important;
  font: 700 1.2257cqw/1 Tahoma, Arial, sans-serif !important;
  text-decoration: none;
  text-shadow: 1px 1px #000;
  transition: filter .12s ease, transform .12s ease, text-shadow .12s ease;
}
.party-count-link {
  color: #ececec;
  text-decoration: none;
  cursor: url(../cursors/Cursor_4.cur), pointer !important;
}
.party-count-link:hover {
  color: #fff7c7;
  text-decoration: underline;
}
.party-topic-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3116cqw;
  max-width: 100%;
}
.party-topic-link {
  color: #ececec;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.party-topic-link:not(.disabled) {
  cursor: url(../cursors/Cursor_4.cur), pointer !important;
}
.party-topic-link:hover {
  color: #fff7c7;
  text-decoration: underline;
}
.party-topic-link.disabled {
  color: #6f6c62;
  cursor: url(../cursors/Cursor_4.cur), pointer !important;
}
.party-row-icon:hover { color: #fff7c7 !important; }
.party-vote-button:not(:disabled):hover {
  color: #fff7c7 !important;
  filter: brightness(1.55) saturate(1.25) drop-shadow(0 0 .2908cqw rgba(255, 232, 128, .95));
  transform: scale(1.18);
  text-shadow: 0 0 .3324cqw rgba(255, 242, 166, .95), 1px 1px #000;
}
.party-row-icon.disabled,
.party-vote-button:disabled {
  color: #6f6c62 !important;
  cursor: default;
  opacity: .72;
}
.party-vote-button:not(:disabled) { cursor: pointer; }

.party-type-icon {
  display: inline-grid;
  width: 1.5061cqw;
  height: 1.5061cqw;
  place-items: center;
  border: 1px solid #3f3b10;
  background: #d3bd16;
  color: #141000;
  font: 700 1.0906cqw/1 Arial, sans-serif;
  box-shadow: inset 0 0 0 1px #f3e047;
}
.party-type-icon.status-online { background: #cbbd12; }
.party-type-icon.status-upcoming { background: #d7a91d; }
.party-type-icon.status-maintenance { background: #768ca0; box-shadow: inset 0 0 0 1px #a9bcc7; }
.party-type-icon.status-possibly_offline,
.party-type-icon.status-closed { background: #8c5b42; box-shadow: inset 0 0 0 1px #b97b59; color: #f3e4d6; }

.party-list-state {
  height: 15.061cqw !important;
  padding: 2.0774cqw !important;
  background: transparent !important;
  color: #c6c3ba !important;
  text-align: center;
  white-space: normal !important;
}
.party-list-state strong,
.party-list-state span { display: block; margin: .5193cqw 0; }
.party-placeholder-row td { color: transparent; }


.party-pager {
  position: absolute;
  z-index: 7;
  direction: ltr;
  left: 50%;
  bottom: 8.05%;
  width: 6.4286cqw;
  height: 1.9643cqw;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 2.1429cqw);
  align-items: center;
  justify-items: center;
  transform: translateX(-50%);
  color: #e8dcae;
  font: 1.0714cqw/1 Tahoma, Arial, sans-serif;
}
.party-pager::before {
  content: "";
  position: absolute;
  left: 50%;
  top: .1786cqw;
  width: 91.0611cqw;
  height: 1px;
  transform: translateX(-50%);
  background: #bda978;
  pointer-events: none;
}
.party-page-nav {
  position: relative;
  top: .6696cqw;
  width: 2.1429cqw;
  height: auto;
  aspect-ratio: 218 / 186;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 100% 100% !important;
  box-shadow: none !important;
  cursor: url(../cursors/Cursor_4.cur), pointer !important;
  transition: filter .12s ease, transform .06s ease;
}
.party-page-prev { background-image: url(../images/pageprev.jpg) !important; }
.party-page-next { background-image: url(../images/pagenext.jpg) !important; }
.party-page-nav:hover {
  filter: brightness(1.28) contrast(1.08) drop-shadow(0 0 2px rgba(231, 198, 105, .9));
}
.party-page-nav:active {
  filter: brightness(.72);
  transform: translateY(.0893cqw);
}
.party-page-nav[aria-disabled="true"] {
  cursor: url(../cursors/Cursor_4.cur), pointer !important;
}
.party-page-number {
  position: relative;
  top: .5804cqw;
  min-width: 2.1429cqw;
  text-align: center;
  text-shadow: 1px 1px #000;
}
.party-owner-nav-link {
  position: absolute;
  z-index: 7;
  right: calc(4.5367% + .2679cqw);
  bottom: 8.05%;
  height: 1.9643cqw;
  display: flex;
  align-items: center;
  transform: translateY(.5804cqw);
  color: #d8c89b !important;
  font: 600 .9821cqw/1 Tahoma, Arial, sans-serif;
  letter-spacing: .02em;
  text-decoration: none !important;
  text-shadow: 1px 1px #000;
  white-space: nowrap;
  cursor: url(../cursors/Cursor_4.cur), pointer !important;
  transition: color .12s ease, filter .12s ease;
}
.party-owner-nav-link:hover {
  color: #fff4c4 !important;
  filter: brightness(1.2) drop-shadow(0 0 2px rgba(231, 198, 105, .75));
}



