:root {
  --page: #e9ead2;
  --blue: #54764a;
  --blue-dark: #2f4e35;
  --blue-light: #dfe8c7;
  --line: #adb98a;
  --orange: #b85114;
  --yellow: #fff1a8;
  --text: #243b27;
  --muted: #607057;
  --green: #2f7d35;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.32), transparent 300px),
    linear-gradient(90deg, #263d2c 0, #e9ead2 14%, #e9ead2 86%, #263d2c 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
}

a {
  color: #2f7d35;
  font-weight: bold;
  text-decoration: none;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: min(920px, calc(100% - 18px));
  margin: 0 auto 24px;
  background: #fff;
  box-shadow: 0 0 18px rgba(0, 40, 58, 0.4);
}

.flag {
  display: inline-block;
  width: 12px;
  height: 8px;
  margin-right: 3px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  vertical-align: -1px;
}

.gb { background: linear-gradient(90deg, #163a7b 0 33%, #fff 33% 66%, #c51020 66%); }
.pl { background: linear-gradient(#fff 0 50%, #dc143c 50%); }
.br { background: linear-gradient(135deg, #009b3a 0 35%, #ffdf00 35% 65%, #002776 65%); }
.es { background: linear-gradient(#c60b1e 0 25%, #ffc400 25% 75%, #c60b1e 75%); }
.se { background: linear-gradient(90deg, #006aa7 0 38%, #fecc00 38% 50%, #006aa7 50%); }
.de { background: linear-gradient(#000 0 33%, #dd0000 33% 66%, #ffce00 66%); }

.site-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
  grid-template-areas:
    "brand member"
    "brand search";
  align-items: center;
  gap: 12px 24px;
  min-height: 130px;
  padding: 14px 14px 12px 24px;
  background:
    radial-gradient(circle at 86% 10%, rgba(201, 150, 70, 0.12), transparent 30%),
    linear-gradient(180deg, #fff 0%, #fbfdf6 58%, #f1f6e6 100%);
}

.brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  width: min(100%, 560px);
  color: #294e2b;
  text-decoration: none;
}

.brand-mark {
  flex: 0 0 auto;
  display: block;
  width: clamp(76px, 10vw, 102px);
  height: clamp(76px, 10vw, 102px);
  object-fit: contain;
  filter: drop-shadow(0 5px 8px rgba(43, 34, 18, 0.24));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
}

.brand-name {
  display: flex;
  align-items: baseline;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4.8vw, 54px);
  font-weight: 700;
  line-height: 0.9;
  color: #315c31;
  text-shadow: 0 1px 0 #fff, 0 2px 0 rgba(57, 75, 37, 0.16);
}

.brand-name strong {
  margin-left: 2px;
  color: #a54f34;
  font-weight: 700;
}

.brand-tagline {
  margin-top: 7px;
  padding-top: 6px;
  border-top: 2px solid rgba(143, 100, 43, 0.42);
  color: #5d3f2c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(11px, 1.25vw, 15px);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: anywhere;
}

.member-box {
  grid-area: member;
  justify-self: end;
  padding: 5px 6px 0 0;
  color: #243b27;
  line-height: 1.25;
  text-align: right;
}

.member-box p {
  margin: 0;
}

.top-search {
  grid-area: search;
  justify-self: end;
  align-self: end;
  display: grid;
  grid-template-columns: 28px auto minmax(150px, 1fr) 76px auto;
  align-items: center;
  gap: 7px;
  width: min(100%, 455px);
  min-height: 36px;
  padding: 5px 8px;
  border: 1px solid rgba(69, 102, 55, 0.62);
  border-radius: 6px;
  background: linear-gradient(180deg, #82a16e 0%, #3e6b38 100%);
  color: #fff;
  font-weight: bold;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  box-shadow: 0 5px 12px rgba(39, 67, 35, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.search-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff5ba 0 22%, #5e9c46 23% 54%, transparent 55%);
  box-shadow: 13px 13px 0 -9px #ef7c25;
}

.top-search input {
  min-width: 0;
  height: 24px;
  padding: 0 8px;
  border: 1px solid #2d5630;
  border-radius: 5px;
  background: linear-gradient(180deg, #244b30 0%, #1c3d28 100%);
  color: #fff;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.28);
}

.top-search button {
  height: 24px;
  border: 1px solid #c85429;
  border-radius: 5px;
  background: linear-gradient(#ffbd84, #e65722);
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.top-search a {
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
}

.menu-button {
  display: none;
  width: calc(100% - 20px);
  margin: 0 10px 8px;
  padding: 8px;
  border: 1px solid #42693d;
  background: linear-gradient(#5d834f, #2f4e35);
  color: #fff;
}

.menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.main-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 31px;
  background: linear-gradient(#638b54, #2f4e35);
}

.main-nav a {
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.17);
  color: #fff;
  font-size: 12px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.main-nav a.active,
.main-nav a:hover {
  background: linear-gradient(#7da668, #42693d);
  color: #fff;
  text-decoration: none;
}

main {
  padding: 16px 8px 20px;
  background: #fff;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  border: 1px solid var(--line);
  background: #f7f9eb;
}

.panel {
  min-height: 137px;
  border-right: 1px solid #c7d5a9;
  background: linear-gradient(90deg, #f7f9eb, #fff);
}

.panel:last-child {
  border-right: 0;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 27px;
  padding: 0 8px;
  border-bottom: 1px solid #6f8c5d;
  background: linear-gradient(#dce9bd, #9fb77b 45%, #6f8c5d 100%);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 0 1px 0 rgba(47, 78, 53, 0.72);
  text-transform: uppercase;
}

.panel-title .star {
  color: #ffc800;
  font-size: 21px;
  -webkit-text-stroke: 1px #c79b00;
}

.panel-body {
  padding: 10px 14px;
  line-height: 1.55;
}

.featured {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 7px;
}

.country-flag {
  display: inline-grid;
  width: 22px;
  min-width: 22px;
  height: 16px;
  margin-top: 0;
  place-items: center;
  border: 0;
  background: transparent;
  font-size: 15px;
  line-height: 1;
}

.flag-icon {
  position: relative;
  display: inline-block;
  width: 22px;
  min-width: 22px;
  height: 15px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.28);
  background: #eee;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45) inset;
  vertical-align: -2px;
}

.flag-xx { background: linear-gradient(#f7f7f7 0 50%, #d7d7d7 50%); }
.flag-af { background: linear-gradient(90deg, #111 0 33%, #d32011 33% 66%, #007a36 66%); }
.flag-ar { background: linear-gradient(#74acdf 0 33%, #fff 33% 66%, #74acdf 66%); }
.flag-au { background: #012169; }
.flag-br { background: #009b3a; }
.flag-icon.flag-br {
  object-fit: cover;
  background: #009b3a;
}
.flag-ca { background: linear-gradient(90deg, #d52b1e 0 25%, #fff 25% 75%, #d52b1e 75%); }
.flag-cl { background: linear-gradient(#fff 0 50%, #d52b1e 50%); }
.flag-de { background: linear-gradient(#000 0 33%, #dd0000 33% 66%, #ffce00 66%); }
.flag-es { background: linear-gradient(#c60b1e 0 25%, #ffc400 25% 75%, #c60b1e 75%); }
.flag-fr { background: linear-gradient(90deg, #0055a4 0 33%, #fff 33% 66%, #ef4135 66%); }
.flag-gb { background: linear-gradient(90deg, #012169 0 32%, #fff 32% 40%, #c8102e 40% 60%, #fff 60% 68%, #012169 68%); }
.flag-mx { background: linear-gradient(90deg, #006847 0 33%, #fff 33% 66%, #ce1126 66%); }
.flag-nl { background: linear-gradient(#ae1c28 0 33%, #fff 33% 66%, #21468b 66%); }
.flag-pl { background: linear-gradient(#fff 0 50%, #dc143c 50%); }
.flag-pt { background: linear-gradient(90deg, #006600 0 40%, #ff0000 40%); }
.flag-se { background: linear-gradient(90deg, #006aa7 0 32%, #fecc00 32% 44%, #006aa7 44%); }
.flag-tr { background: #e30a17; }
.flag-us { background: repeating-linear-gradient(#b22234 0 2px, #fff 2px 4px); }
.flag-ve { background: linear-gradient(#ffcc00 0 33%, #00247d 33% 66%, #cf142b 66%); }

.flag-br:not(img)::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 10px;
  height: 10px;
  background: #ffdf00;
  transform: rotate(45deg);
}

.flag-br:not(img)::after,
.flag-ar::after,
.flag-tr::after,
.flag-ve::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.flag-br:not(img)::after {
  left: 8px;
  top: 5px;
  width: 6px;
  height: 6px;
  background: #002776;
}

.flag-ar::after {
  left: 9px;
  top: 6px;
  width: 4px;
  height: 4px;
  background: #f6b40e;
}

.flag-au::before,
.flag-us::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 8px;
  background: #012169;
}

.flag-cl::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 7px;
  background: #0039a6;
}

.flag-se::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 100%;
  height: 3px;
  background: #fecc00;
}

.flag-tr::after {
  left: 7px;
  top: 4px;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-right-color: transparent;
}

.flag-ve::after {
  left: 9px;
  top: 6px;
  width: 3px;
  height: 3px;
  background: #fff;
}

.launch-row {
  margin-top: 8px;
}

.login-link {
  color: #e64f0b;
  font-weight: bold;
}

.tiny-button {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: linear-gradient(#ffb17f, #d94b08);
  color: #fff;
  font-weight: bold;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.tiny-button.blue {
  background: linear-gradient(#a8c287, #42693d);
}

.tiny-button.green {
  background: linear-gradient(#a8c287, #42693d);
}

.stats-bars {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: end;
  gap: 2px;
  width: 20px;
  height: 19px;
}

.stats-bars i {
  width: 4px;
}

.stats-bars i:nth-child(1) { height: 8px; background: #32b34a; }
.stats-bars i:nth-child(2) { height: 13px; background: #f5b900; }
.stats-bars i:nth-child(3) { height: 18px; background: #2f7d35; }

.ad-thumb {
  display: grid;
  place-items: center;
  width: 100px;
  height: 99px;
  margin: 2px auto;
  border: 1px solid #333;
  background:
    linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
    url("assets/hero-serverlist.png") center / cover;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  text-shadow: 0 2px 3px #000;
}

.ad-thumb-live {
  overflow: hidden;
  background: #111;
}

.ad-thumb-live img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ad-thumb:hover,
.wide-ad:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.08);
}

.ad-note {
  margin: 6px 0 0;
  text-align: center;
}

.wide-ad {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 468px;
  max-width: 100%;
  height: 60px;
  margin: 16px auto;
  border: 2px solid #6f3600;
  background:
    linear-gradient(90deg, rgba(252, 206, 42, 0.85), rgba(83, 11, 8, 0.25), rgba(255, 214, 65, 0.85)),
    url("assets/hero-serverlist.png") center / cover;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px #000;
}

.wide-ad-live {
  background: #111;
}

.wide-ad-live img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wide-ad-live span {
  position: absolute;
  right: 8px;
  bottom: 4px;
  max-width: calc(100% - 16px);
  padding: 1px 5px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: bold;
  line-height: 1.2;
}

.promoted-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  margin: 7px 0;
  padding: 5px 8px;
  border: 1px solid #d7b232;
  background: linear-gradient(#fff7bd, #ffe56f);
  color: #5d3a00;
  font-size: 11px;
}

.promoted-strip strong {
  color: var(--orange);
}

.separator {
  height: 1px;
  margin: 14px 0 17px;
  background: #adb98a;
}

.soon-box {
  margin: 0 auto 17px;
  border: 1px solid var(--line);
  background: #fff;
}

.soon-title {
  height: 23px;
  padding: 6px 8px 0;
  border-radius: 4px 4px 0 0;
  border-bottom: 1px solid #6f8c5d;
  background: linear-gradient(#dce9bd, #9fb77b 45%, #6f8c5d 100%);
  color: #fff;
  font-weight: bold;
  text-shadow: 0 1px 0 rgba(47, 78, 53, 0.72);
}

.soon-row {
  display: grid;
  grid-template-columns: minmax(165px, 0.8fr) minmax(260px, 2.2fr) 132px;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 6px 8px;
  background: var(--yellow);
  color: #ff4c00;
  font-size: 11px;
  font-weight: bold;
  line-height: 1.25;
}

a.soon-row {
  text-decoration: none;
}

a.soon-row:hover {
  filter: brightness(1.03);
}

.security-row {
  min-height: 47px;
  padding: 9px 10px;
  background: var(--yellow);
  color: #243b27;
  font-size: 11px;
  line-height: 1.45;
}

.soon-server {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-width: 0;
  color: #d74300;
}

.soon-server span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.soon-copy {
  display: block;
  min-width: 0;
  color: #ff4c00;
  overflow-wrap: anywhere;
}

.soon-starts {
  align-self: center;
  color: #000;
  text-align: right;
}

.soon-starts b {
  display: inline-block;
  margin-top: 2px;
  color: #2f7d35;
  font-size: 12px;
}

.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  min-width: 0;
}

.list-title {
  color: var(--orange);
  font-size: 13px;
  font-weight: bold;
  min-width: 0;
}

.list-title::before,
.list-title::after {
  color: #e6bf18;
  content: "★";
  margin: 0 4px;
}

.promoted-title {
  margin: 0 0 8px;
  color: #ff4c00;
}

.pager {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  min-width: 0;
  max-width: 100%;
}

.pager button,
.pager span {
  min-width: 19px;
  height: 17px;
  padding: 2px 5px;
  border: 1px solid #2f6f86;
  background: #fff;
  color: #2f7d35;
  font-size: 11px;
  line-height: 12px;
  text-align: center;
  cursor: pointer;
}

.pager button.active {
  background: linear-gradient(#7da668, #42693d);
  color: #fff;
}

.pager .prev,
.pager .next {
  min-width: 66px;
  border-radius: 4px;
  background: linear-gradient(#7da668, #42693d);
  color: #fff;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 110px 110px 90px 120px;
  gap: 4px;
  margin: 7px 0;
}

.filters input,
.filters select {
  height: 22px;
  border: 1px solid #9eb184;
  background: #f5fbfd;
  color: #243b27;
  font-size: 11px;
}

.server-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.server-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  color: #243b27;
  font-size: 10px;
}

.server-flag-col { width: 34px; }
.server-ip-col { width: 170px; }
.server-name-col { width: auto; }
.server-players-col { width: 92px; }
.server-uptime-col { width: 66px; }
.server-points-col { width: 44px; }
.server-exp-col { width: 52px; }
.server-type-col { width: 54px; }
.server-version-col { width: 54px; }

.server-table th {
  height: 21px;
  border-right: 1px solid #9eb184;
  background: linear-gradient(#eef4d9, #a8c287);
  color: #000;
  text-align: left;
}

.server-table th,
.server-table td {
  padding: 3px 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-table tbody tr {
  background: var(--yellow);
}

.server-table tbody tr:nth-child(even) {
  background: #f3ff37;
}

.server-table tbody tr.promoted-row,
.server-table tbody tr.promoted-row:nth-child(even) {
  background: linear-gradient(#fff78a, #ffe100);
  box-shadow: inset 0 0 0 1px #d6a900;
}

.server-table tbody tr.promoted-row td {
  border-top: 1px solid #d6a900;
  border-bottom-color: #c59b00;
}

.server-table td {
  border-bottom: 1px solid #c3d900;
}

.server-table .ip {
  color: #ff4c00;
  font-weight: bold;
}

.server-table .ip a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ff4c00;
}

.server-table .country-cell {
  text-align: left;
}

.country-filter-button {
  display: inline-grid;
  grid-template-columns: 22px;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  border: 0;
  background: transparent;
  color: #243b27;
  cursor: pointer;
  font-size: 10px;
  font-weight: bold;
  padding: 0;
}

.country-filter-button:hover {
  color: var(--orange);
  text-decoration: underline;
}

.server-table .name {
  color: #2f7d35;
  font-weight: bold;
}

.points-vote {
  border: 0;
  background: transparent;
  color: #243b27;
  cursor: pointer;
  font-size: 10px;
  font-weight: bold;
  padding: 0;
}

.points-vote:hover {
  color: var(--orange);
  text-decoration: underline;
}

.promoted-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  border: 1px solid #c98b00;
  border-radius: 3px;
  background: #fff0a6;
  color: #9b4300;
  font-size: 9px;
  text-transform: uppercase;
}

.launch-icon {
  display: inline-grid;
  width: 13px;
  height: 13px;
  margin-right: 4px;
  place-items: center;
  border-radius: 2px;
  background: #5e9c46;
  color: #fff;
  font-size: 10px;
}

.vote-button,
.submit-button {
  height: 22px;
  border: 1px solid #d75a19;
  border-radius: 3px;
  background: linear-gradient(#ffc49a, #e64f0b);
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}

.server-name-link {
  color: #2f7d35;
  font-weight: bold;
}

.server-profile {
  display: grid;
  gap: 10px;
}

.server-profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(#fbfcf3, #eef4d9);
}

.server-profile-head h1 {
  margin: 0 0 4px;
  color: var(--orange);
  font-size: 18px;
}

.server-profile-head p {
  margin: 0;
  color: var(--muted);
}

.server-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.server-info-card,
.server-description {
  border: 1px solid var(--line);
  background: linear-gradient(#fbfcf3, #eef4d9);
}

.server-info-card {
  padding: 9px;
}

.server-info-card h2,
.server-description h2 {
  margin: 0 0 7px;
  color: var(--orange);
  font-size: 14px;
}

.server-info-card dl {
  display: grid;
  gap: 5px;
  margin: 0;
}

.server-info-card div {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 8px;
}

.server-info-card dt {
  color: #4f6e72;
  font-weight: bold;
}

.server-info-card dd {
  margin: 0;
}

.server-profile-banner {
  display: grid;
  place-items: center;
  width: 468px;
  max-width: 100%;
  height: 60px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #6f3600;
  background: #111;
}

.server-profile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-description {
  padding: 10px;
}

.server-description p {
  margin: 0;
  line-height: 1.6;
  white-space: pre-wrap;
}

.server-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.server-detail-page {
  display: grid;
  gap: 8px;
  border: 1px solid #adb98a;
  background: #f7f9eb;
  padding: 8px;
}

.server-detail-status {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto 54px 32px;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 6px;
  border: 1px solid #c5d3a5;
  background: linear-gradient(#fbfcf3, #e8efcf);
}

.online-pill {
  display: grid;
  place-items: center;
  height: 24px;
  border-radius: 3px;
  background: linear-gradient(#94c76f, #3f8139);
  color: #fff;
  font-weight: bold;
}

.online-pill.offline {
  background: linear-gradient(#d8917a, #9b3018);
}

.server-detail-title {
  min-width: 0;
}

.server-detail-title strong {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #ff4c00;
  font-size: 14px;
}

.server-detail-title small {
  display: block;
  margin-top: 2px;
  color: #607057;
}

.server-detail-players {
  padding: 5px 8px;
  border-radius: 3px;
  background: #fff8cf;
  color: #2f7d35;
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
}

.world-button,
.star-vote {
  height: 24px;
  border: 1px solid #6e9f62;
  border-radius: 12px;
  background: linear-gradient(#c7dea8, #4f8d43);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: bold;
  text-align: center;
}

.world-button {
  display: grid;
  place-items: center;
  text-decoration: none;
}

.star-vote {
  color: #ffe14a;
}

.server-tabs {
  display: flex;
  align-items: end;
  gap: 2px;
  border-bottom: 1px solid #9eb184;
}

.server-tabs button {
  min-width: 84px;
  padding: 6px 10px 5px;
  border: 0;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(#7da668, #42693d);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: bold;
  text-align: center;
}

.server-tabs button.active {
  background: #fff;
  color: #243b27;
}

.server-tab-panel {
  display: none;
}

.server-tab-panel.active {
  display: grid;
  gap: 8px;
}

.server-live-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.server-live-cards article {
  min-height: 62px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: linear-gradient(#fffdf0, #eef4d9);
}

.server-live-cards span,
.server-live-cards strong,
.server-live-cards small {
  display: block;
}

.server-live-cards span {
  color: #607057;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
}

.server-live-cards strong {
  margin: 3px 0;
  color: #2f7d35;
  font-size: 20px;
}

.server-live-cards small {
  color: #607057;
}

.server-summary-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  padding: 10px;
  border: 1px solid #adb98a;
  background: #fff;
}

.server-chart-grid,
.signature-grid,
.server-motd-box {
  border: 1px solid var(--line);
  background: #fff;
}

.server-chart-grid {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.server-chart-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border: 1px solid #d8dfbd;
  background: #fbfcf3;
}

.server-chart-row strong,
.server-chart-row span {
  display: block;
}

.server-chart-row span {
  color: #607057;
}

.server-chart-track {
  height: 14px;
  overflow: hidden;
  border: 1px solid #9eb184;
  background: #eef4d9;
}

.server-chart-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ffc94a, #2f7d35);
}

.server-motd-box {
  padding: 14px;
  line-height: 1.55;
}

.server-motd-box h2,
.signature-grid h2 {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 14px;
}

.signature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 12px;
}

.signature-grid article {
  min-width: 0;
}

.signature-grid textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
}

.signature-preview {
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 10px;
  border: 1px solid #c5d3a5;
  background: linear-gradient(#111, #2f2f2f);
  color: #fff;
}

.signature-preview strong {
  color: #ffc94a;
}

.server-summary-left {
  min-width: 0;
}

.server-detail-banner {
  display: grid;
  place-items: center;
  width: 468px;
  max-width: 100%;
  height: 60px;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid #6f3600;
  background: #111;
}

.server-detail-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-banner {
  background:
    linear-gradient(90deg, rgba(252, 206, 42, 0.85), rgba(83, 11, 8, 0.25), rgba(255, 214, 65, 0.85)),
    url("assets/hero-serverlist.png") center / cover;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-shadow: 0 2px 4px #000;
}

.server-stats-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 18px;
  margin: 0;
}

.server-stats-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 7px;
  align-items: baseline;
}

.server-stats-list dt {
  color: #243b27;
  font-weight: bold;
}

.server-stats-list dd {
  min-width: 0;
  margin: 0;
  color: #243b27;
  overflow-wrap: anywhere;
}

.server-stats-list dd span {
  display: inline-block;
  margin-left: 5px;
  padding: 0 4px;
  border: 1px solid #c5d3a5;
  border-radius: 2px;
  background: #f8ffe7;
  color: #607057;
  font-size: 9px;
  font-weight: normal;
}

.server-summary-art {
  display: grid;
  min-height: 220px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #c5d3a5;
  background: #f8ffe7;
}

.server-summary-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.summary-art-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 18px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 225, 74, 0.65), transparent 80px),
    linear-gradient(135deg, #fff7bd, #dfe8c7);
  color: #b85114;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}

.classic-description h2 {
  padding-bottom: 6px;
  border-bottom: 1px solid #adb98a;
  text-align: center;
}

.page-title,
.form-panel,
.notice,
.pricing-card {
  border: 1px solid var(--line);
  background: linear-gradient(#fbfcf3, #eef4d9);
}

.page-title {
  padding: 10px;
  margin-bottom: 10px;
}

.page-title h1,
.form-panel h2,
.pricing-card h3,
.notice h2 {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 16px;
}

.page-title p,
.notice p {
  margin: 0;
  line-height: 1.55;
}

.content-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
}

.form-panel,
.notice,
.pricing-card {
  padding: 12px;
}

.legal-page {
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  background: linear-gradient(#fffef8, #eef4d9);
  color: #12301a;
  line-height: 1.6;
}

.legal-page p {
  margin: 0 0 12px;
}

.legal-page h2 {
  margin: 18px 0 7px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(139, 166, 96, 0.72);
  color: var(--orange);
  font-size: 15px;
}

.legal-page ul {
  margin: 0 0 12px 18px;
  padding: 0;
}

.legal-page li {
  margin: 4px 0;
}

.register-shell {
  display: grid;
  justify-content: center;
  padding: 12px 0 18px;
}

.register-panel {
  width: min(520px, 100%);
  padding: 18px 22px 20px;
  border-color: #8ca86c;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(238, 244, 217, 0.94)),
    radial-gradient(circle at top left, rgba(117, 161, 82, 0.22), transparent 38%);
  box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgba(47, 78, 53, 0.12);
}

.register-panel h2 {
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #b9c99b;
  color: var(--orange);
  font-size: 19px;
  text-align: center;
}

.register-grid {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
}

.register-grid .field {
  display: contents;
}

.register-grid .field span {
  color: #113c24;
  font-size: 12px;
  text-align: right;
}

.register-grid .field input,
.register-grid .field select {
  min-height: 28px;
  border: 1px solid #b6c4a1;
  border-radius: 4px;
  background: #fff;
  box-shadow: inset 0 1px 3px rgba(34, 61, 38, 0.12);
  color: #1f321f;
  font-size: 13px;
}

.register-grid .field input:focus,
.register-grid .field select:focus {
  outline: 2px solid rgba(91, 137, 63, 0.22);
  border-color: #5f8a43;
}

.terms-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  margin: 14px 0 12px 138px;
  color: #24412a;
  font-size: 12px;
  line-height: 1.45;
}

.terms-check input {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  accent-color: #4f7f39;
}

.terms-check a {
  color: #00682f;
  font-weight: bold;
}

.register-submit {
  display: block;
  width: 185px;
  height: 32px;
  margin: 0 auto;
  border-color: #3f6a32;
  border-radius: 5px;
  background: linear-gradient(#86b46c, #416f35);
  font-size: 14px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.add-server-panel {
  padding: 0 0 14px;
  overflow: hidden;
  background: #fff;
}

.add-server-panel h2 {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  margin: 0 0 8px;
  padding: 0 8px;
  background: linear-gradient(#eef4d9, #bccb9a 46%, #fbfcf3 47%, #fff);
  color: var(--orange);
  font-size: 11px;
}

.add-icon {
  display: inline-grid;
  width: 13px;
  height: 13px;
  place-items: center;
  border-radius: 50%;
  background: #20bd28;
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.classic-form {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: start;
  gap: 5px 0;
  padding: 0 22px 0 24px;
}

.classic-field {
  display: contents;
  font-weight: bold;
}

.classic-field span {
  grid-column: 1;
  align-self: center;
  padding-top: 2px;
  color: #243b27;
  font-size: 10px;
}

.classic-field input,
.classic-field select {
  grid-column: 2;
  width: 108px;
  height: 19px;
  border: 1px solid #b9b9b9;
  border-radius: 3px;
  background: #fff;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
  color: #000;
  font-size: 11px;
}

.classic-autofill {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 2px 0 3px;
}

.classic-autofill span {
  max-width: 330px;
  color: #607057;
  font-size: 10px;
  line-height: 1.25;
}

.classic-field select {
  width: 188px;
  border-radius: 0;
  box-shadow: none;
}

.classic-field select.small-select {
  width: 78px;
}

.description-field span {
  align-self: center;
}

.description-field textarea {
  grid-column: 2;
  width: min(407px, 100%);
  min-height: 326px;
  border: 1px solid #aaa;
  resize: vertical;
}

.classic-submit {
  grid-column: 2;
  width: min(407px, 100%);
  padding-top: 5px;
  text-align: center;
}

.classic-submit .submit-button {
  height: 27px;
  padding: 0 18px;
  border-color: #42693d;
  border-radius: 4px;
  background: linear-gradient(#7da668, #42693d);
  font-size: 12px;
}

.field-grid,
.field-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.field-group {
  grid-template-columns: 1fr;
}

.field {
  display: grid;
  gap: 3px;
  font-weight: bold;
}

.field.full {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 23px;
  border: 1px solid #9eb184;
  background: #fff;
}

.field input:invalid,
.field select:invalid,
.field textarea:invalid {
  border-color: #d75a19;
}

.dashboard-layout {
  grid-template-columns: 1.2fr 0.8fr;
}

.revenue-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.revenue-overview article {
  min-height: 54px;
  padding: 9px;
  border: 1px solid var(--line);
  background: linear-gradient(#fffdf0, #eef4d9);
  text-align: center;
}

.revenue-overview strong,
.revenue-overview span {
  display: block;
}

.revenue-overview strong {
  color: var(--orange);
  font-size: 20px;
}

.advertise-copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.advertise-copy article {
  padding: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(#fbfff4, #edf6dc);
}

.advertise-copy h2 {
  margin: 0 0 7px;
  color: var(--orange);
  font-size: 15px;
}

.advertise-copy p {
  margin: 0 0 8px;
  line-height: 1.45;
}

.advertise-copy.compact article {
  background: linear-gradient(#ffffff, #eef8df);
}

.pricing-card {
  position: relative;
  min-height: 240px;
}

.pricing-card p {
  min-height: 42px;
}

.duration-prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 8px 0;
}

.price-option {
  min-height: 58px;
  padding: 5px;
  border: 1px solid #9eb184;
  border-radius: 3px;
  background: linear-gradient(#fffdf0, #eef4d9);
  color: #2f4e35;
  cursor: pointer;
  text-align: center;
}

.price-option.best {
  border-color: #c98b00;
  background: linear-gradient(#fff0a6, #f3d96b);
}

.price-option strong,
.price-option span,
.price-option small {
  display: block;
}

.price-option strong {
  color: var(--orange);
  font-size: 16px;
}

.price-option span {
  font-weight: bold;
}

.pricing-card small {
  color: var(--muted);
  font-size: 11px;
}

.plan-badge {
  display: inline-block;
  margin-bottom: 7px;
  padding: 2px 7px;
  border-radius: 3px;
  background: #fff1a8;
  color: #7c3a00;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
}

.recommended-plan {
  border-color: #d7b232;
  box-shadow: inset 0 0 0 2px rgba(215, 178, 50, 0.28);
}

.acquire-button {
  width: 100%;
  height: 28px;
  margin-top: 10px;
  background: linear-gradient(#7da668, #42693d);
  border-color: #42693d;
}

.ad-sales-grid {
  margin-top: 10px;
}

.ad-sales-grid-single {
  grid-template-columns: 1fr;
}

.ad-request-panel h2 {
  color: var(--orange);
}

.automatic-payment-panel,
.automatic-flow-card {
  min-height: 100%;
}

.payment-intro {
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid #c7d8a2;
  background: linear-gradient(#ffffff, #eef8df);
  color: #24442b;
}

.login-required-card,
.ad-next-step {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #b8cd91;
  background: linear-gradient(#ffffff, #eef6dc);
}

.login-required-card strong,
.ad-next-step strong {
  color: var(--green-dark);
  font-size: 15px;
}

.login-required-card span,
.ad-next-step span {
  color: #29472f;
  line-height: 1.45;
}

.advertise-payment-form {
  padding: 10px;
  border: 1px solid #b8cd91;
  background: linear-gradient(#fbfff5, #edf7dc);
}

.payment-pack-grid article {
  display: grid;
  gap: 4px;
  align-content: start;
}

.payment-pack-grid small {
  min-height: 30px;
}

.automatic-flow-card .check-list {
  margin-top: 10px;
}

.payment-success-message {
  display: grid;
  gap: 5px;
  padding: 9px 10px;
  border: 1px solid #7dae52;
  background: linear-gradient(#f8fff0, #dff0c8);
  color: #24442b;
  font-size: 12px;
}

.payment-success-message strong {
  color: var(--green-dark);
  font-size: 13px;
}

.payment-success-message a {
  color: var(--orange);
  font-weight: bold;
}

.verification-help .account-inline-form {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 8px;
}

.verification-created {
  display: grid;
  gap: 9px;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.verification-created strong {
  color: var(--orange);
  font-size: 16px;
}

.add-rules-panel {
  display: grid;
  gap: 12px;
}

.add-rules-panel > p {
  margin: 0;
  line-height: 1.45;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.rules-grid article {
  padding: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(#fbfff4, #edf6dc);
}

.rules-grid h3 {
  margin: 0 0 6px;
  color: var(--orange);
  font-size: 14px;
}

.rules-grid p {
  margin: 0 0 7px;
  line-height: 1.4;
}

.rules-confirm {
  padding: 10px;
  border: 1px solid #d7b232;
  background: #fff8cf;
  text-align: center;
}

.dev-verification-link {
  left: 18px;
  right: auto;
}

.dev-verification-link a {
  color: #fff;
  font-weight: bold;
}

.account-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.account-menu,
.account-content .notice,
.account-hero {
  border: 1px solid var(--line);
  background: linear-gradient(#fbfcf3, #eef4d9);
}

.account-menu h2,
.account-section h2 {
  height: 28px;
  margin: 0 0 8px;
  padding: 7px 9px 0;
  border-bottom: 1px solid #c3d8e0;
  background: linear-gradient(#eef4d9, #bccb9a 46%, #fbfcf3 47%, #fff);
  color: var(--orange);
  font-size: 13px;
  text-transform: uppercase;
}

.account-menu h2::before {
  content: "▤";
  margin-right: 7px;
  color: #8a9a9f;
}

.account-menu a {
  display: block;
  padding: 5px 9px;
  border-bottom: 1px solid rgba(173, 185, 138, 0.65);
  color: #243b27;
  font-size: 12px;
  font-weight: normal;
}

.account-menu a::before {
  content: "›";
  margin-right: 7px;
  color: #ff4c00;
  font-weight: bold;
}

.account-menu a.active,
.account-menu a:hover {
  background: #fff8cf;
  color: var(--orange);
  text-decoration: none;
}

.account-content {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.account-hero {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 12px 14px;
  align-items: center;
  min-height: 122px;
  padding: 12px;
}

.coin-stack {
  position: relative;
  width: 70px;
  height: 64px;
}

.coin-stack i {
  position: absolute;
  width: 54px;
  height: 54px;
  border: 2px solid #b67b00;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #fff7b8 0 16%, transparent 17%),
    radial-gradient(circle at 50% 50%, #f7cf45 0 45%, #d59b0d 46% 70%, #8c5e00 71%);
  box-shadow: inset -7px -8px 0 rgba(123, 80, 0, 0.16), 0 2px 3px rgba(0, 0, 0, 0.18);
}

.coin-stack i:nth-child(1) {
  left: 0;
  top: 10px;
}

.coin-stack i:nth-child(2) {
  left: 9px;
  top: 3px;
}

.coin-stack i:nth-child(3) {
  left: 18px;
  top: 13px;
}

.payment-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.payment-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.payment-fields input,
.payment-result textarea {
  min-height: 28px;
  border: 1px solid #9eb184;
  background: #fff;
  padding: 5px 7px;
}

.payment-result {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #d7b232;
  background: #fff8cf;
}

.payment-result[hidden] {
  display: none;
}

.payment-qr {
  width: 180px;
  max-width: 100%;
  border: 1px solid #c5d3a5;
  background: #fff;
  padding: 6px;
}

.payment-result textarea {
  width: 100%;
  min-height: 80px;
  resize: vertical;
  font-size: 11px;
}

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

.wallet-copy {
  min-width: 0;
}

.wallet-copy span {
  display: block;
  color: var(--orange);
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
}

.wallet-copy strong {
  display: block;
  color: #2f4e35;
  font-size: 28px;
  line-height: 1.05;
}

.wallet-copy p {
  margin: 4px 0 0;
  line-height: 1.35;
}

.wallet-actions {
  display: grid;
  gap: 5px;
  justify-items: stretch;
}

.wallet-actions .tiny-button {
  text-align: center;
}

.wallet-shortcuts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.wallet-shortcuts a {
  display: grid;
  gap: 2px;
  min-height: 44px;
  padding: 7px 8px;
  border: 1px solid #b5c293;
  background: #fff8cf;
  color: #2f4e35;
}

.wallet-shortcuts a:hover {
  border-color: #d7b232;
  background: #fff1a8;
  text-decoration: none;
}

.wallet-shortcuts strong {
  color: var(--orange);
}

.wallet-shortcuts span {
  color: #607057;
  font-size: 10px;
}

.account-section {
  padding: 0 10px 10px;
}

.account-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.account-plan-grid article {
  display: grid;
  gap: 4px;
  min-height: 95px;
  padding: 8px;
  border: 1px solid #b5c293;
  background: #fff8cf;
}

.account-plan-grid strong {
  color: var(--orange);
}

.account-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.8fr) auto auto;
  gap: 7px;
  align-items: center;
  min-height: 30px;
  padding: 5px 6px;
  border-bottom: 1px solid #c5d3a5;
}

.account-row strong,
.account-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.account-inline-form input {
  min-height: 24px;
  border: 1px solid #9eb184;
  padding: 3px 6px;
}

.inline-danger {
  grid-column: auto;
  grid-row: auto;
  min-width: 70px;
}

.dashboard-list {
  display: grid;
  gap: 7px;
}

.dashboard-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  align-items: center;
  padding: 7px;
  border: 1px solid #b5c293;
  background: #fff8cf;
}

.dashboard-item strong,
.dashboard-item span {
  grid-column: 1;
}

.dashboard-error {
  color: #a83822;
}

.dashboard-promo {
  color: #9b4300;
  font-weight: bold;
}

.banner-config,
.launch-config {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  align-items: end;
  margin-top: 5px;
  padding: 7px;
  border: 1px solid #c5d3a5;
  background: #f8ffe7;
}

.banner-config {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 8px;
}

.banner-config strong,
.banner-config > span,
.launch-config strong,
.launch-config > span {
  grid-column: 1 / -1;
}

.banner-config label,
.launch-config label {
  display: grid;
  gap: 2px;
  font-size: 10px;
  font-weight: bold;
}

.banner-config input,
.launch-config input {
  width: 100%;
  min-width: 0;
  height: 24px;
  border: 1px solid #9aa9ad;
  padding: 3px 6px;
  font-size: 11px;
  box-sizing: border-box;
}

.banner-config-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.banner-config fieldset {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 8px;
  border: 1px solid #d7deb8;
  background: rgba(255, 255, 255, 0.58);
}

.banner-config legend {
  padding: 0 4px;
  color: #9b4300;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
}

.banner-config > button {
  justify-self: end;
  min-width: 112px;
}

.launch-config {
  grid-template-columns: minmax(160px, 0.65fr) minmax(170px, 0.7fr) minmax(220px, 1fr) auto;
  border-color: #d7b232;
  background: #fff8cf;
}

.launch-config.locked-config {
  border-color: #c5d3a5;
  background: #f3f7e7;
}

.locked-config input,
.locked-config button {
  cursor: not-allowed;
  opacity: 0.68;
}

.launch-toggle {
  grid-template-columns: 16px 1fr;
  align-items: center;
}

.launch-toggle input {
  width: 14px;
  height: 14px;
}

.promote-actions {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin-top: 7px;
  padding: 9px;
  border: 1px solid #b5c293;
  background: linear-gradient(#fbfff4, #edf6dc);
}

.promotion-shop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.promotion-shop-head strong,
.promotion-shop-head span {
  display: block;
}

.promotion-shop-head strong {
  color: var(--orange);
  font-size: 13px;
}

.promotion-shop-head span {
  color: #506044;
  font-size: 11px;
}

.promotion-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.promotion-plan-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #b5c293;
  background: #fffdf0;
}

.promotion-plan-card.best {
  border-color: #d7b232;
  background: linear-gradient(#fff8cf, #fffdf0);
}

.promotion-plan-title {
  display: grid;
  gap: 2px;
}

.promotion-plan-title span {
  width: fit-content;
  padding: 2px 6px;
  border-radius: 3px;
  background: #fff1a8;
  color: #7c3a00;
  font-size: 9px;
  font-weight: bold;
  text-transform: uppercase;
}

.promotion-plan-title strong {
  color: var(--orange);
  font-size: 13px;
}

.promotion-plan-card p {
  min-height: 38px;
  margin: 0;
  color: #31452d;
  font-size: 10px;
  line-height: 1.35;
}

.promotion-option-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.promotion-buy {
  display: grid;
  gap: 1px;
  min-height: 54px;
  padding: 5px;
  border: 1px solid #42693d;
  border-radius: 4px;
  background: linear-gradient(#84ad6d, #42693d);
  color: #fff;
  cursor: pointer;
  text-align: center;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.promotion-buy strong,
.promotion-buy span,
.promotion-buy small {
  display: block;
}

.promotion-buy span {
  font-weight: bold;
}

.promotion-buy small {
  font-size: 9px;
}

.promotion-buy:hover:not(:disabled) {
  filter: brightness(1.06);
}

.promotion-buy.locked,
.promotion-buy:disabled {
  border-color: #b6bfa4;
  background: linear-gradient(#f1f5e7, #d8dfc7);
  color: #6d765f;
  cursor: not-allowed;
  text-shadow: none;
}

.promotion-buy.is-loading {
  opacity: 0.78;
}

.dashboard-check {
  grid-column: 2;
  grid-row: 1;
  min-width: 76px;
  text-align: center;
}

.dashboard-edit {
  grid-column: 2;
  grid-row: 2;
  min-width: 76px;
  background: linear-gradient(#ffe6a3, #c98b00);
}

.tiny-danger {
  grid-column: 2;
  grid-row: 3;
  height: 22px;
  border: 1px solid #9f3120;
  border-radius: 3px;
  background: linear-gradient(#e98b74, #a83822);
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}

.admin-users {
  display: grid;
  gap: 7px;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.admin-summary article {
  min-height: 54px;
  padding: 9px;
  border: 1px solid var(--line);
  background: linear-gradient(#fffdf0, #eef4d9);
  text-align: center;
}

.admin-summary strong,
.admin-summary span {
  display: block;
}

.admin-summary strong {
  color: var(--orange);
  font-size: 20px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-card {
  min-width: 0;
}

.admin-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.admin-card-title h2 {
  margin: 0;
}

.admin-card-title span {
  color: #61724f;
  font-size: 11px;
  white-space: nowrap;
}

.admin-toolbar {
  margin-bottom: 8px;
}

.admin-toolbar input {
  width: 100%;
  min-height: 25px;
  border: 1px solid #9eb184;
  background: #fff;
  padding: 4px 7px;
}

.admin-scroll-list {
  max-height: 270px;
  overflow: auto;
  padding-right: 4px;
}

.admin-user-row {
  display: grid;
  grid-template-columns: 1fr 90px 130px auto;
  gap: 6px;
  align-items: center;
  padding: 7px;
  border: 1px solid #b5c293;
  background: #fff8cf;
}

.admin-user-row strong,
.admin-user-row span {
  display: block;
}

.admin-user-row input {
  min-height: 24px;
  border: 1px solid #9eb184;
}

.admin-server-list {
  display: grid;
  gap: 7px;
}

.admin-server-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
  align-items: center;
  padding: 7px;
  border: 1px solid #b5c293;
  background: #fff8cf;
}

.admin-server-row strong,
.admin-server-row span {
  display: block;
}

.full-admin {
  grid-column: 1 / -1;
}

.admin-payment-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 8px;
}

.admin-payment-chip {
  display: grid;
  gap: 2px;
  min-height: 58px;
  padding: 7px;
  border: 1px solid #b5c293;
  background: linear-gradient(#ffffff, #eef8df);
}

.admin-payment-chip.pending {
  border-color: #d7b232;
  background: linear-gradient(#fff8cf, #fff0a6);
}

.admin-payment-chip strong,
.admin-payment-chip span,
.admin-payment-chip small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-payment-chip strong {
  color: var(--orange);
}

.admin-table-wrap {
  max-height: 260px;
  overflow: auto;
  border: 1px solid #b5c293;
}

.admin-table-wrap.compact {
  max-height: 210px;
}

.admin-history {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}

.admin-history th,
.admin-history td {
  padding: 5px;
  border: 1px solid #b5c293;
  text-align: left;
}

.admin-history th {
  background: linear-gradient(#eef4d9, #bccb9a);
  position: sticky;
  top: 0;
  z-index: 1;
}

.admin-status {
  display: inline-block;
  min-width: 58px;
  padding: 2px 6px;
  border-radius: 3px;
  text-align: center;
  font-weight: bold;
}

.admin-status.paid {
  background: #dff0c8;
  color: #27582f;
}

.admin-status.pending {
  background: #fff0a6;
  color: #7c3a00;
}

.admin-status.error {
  background: #ffd7cf;
  color: #9f3120;
}

.admin-status.neutral {
  background: #edf6dc;
  color: #42533a;
}

.ghost-submit {
  height: 27px;
  margin-left: 6px;
  padding: 0 13px;
  border: 1px solid #9eb184;
  border-radius: 4px;
  background: #fff8cf;
  color: #2f4e35;
  cursor: pointer;
  font-weight: bold;
}

.field textarea {
  min-height: 80px;
}

.check-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.check-list li {
  margin-bottom: 5px;
}

.empty-state {
  padding: 18px;
  border: 1px dashed #9cb9c3;
  background: #f6fbfd;
  text-align: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border-top: 1px solid var(--line);
  background: #eef8fb;
  color: var(--muted);
  font-size: 11px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(360px, calc(100vw - 36px));
  padding: 10px 12px;
  border: 1px solid #8ab372;
  border-radius: 4px;
  background: #f1ffe8;
  color: #1d5b00;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

@media (max-width: 720px) {
  .page-shell {
    width: calc(100% - 10px);
  }

  .site-header {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "member"
      "search";
    padding: 12px 10px;
    min-height: 0;
  }

  .brand {
    justify-self: center;
    justify-content: center;
    width: 100%;
  }

  .brand-mark {
    width: clamp(62px, 18vw, 82px);
    height: clamp(62px, 18vw, 82px);
  }

  .brand-name {
    font-size: clamp(32px, 12vw, 45px);
  }

  .brand-tagline {
    white-space: normal;
    font-size: 11px;
  }

  .member-box {
    justify-self: center;
    text-align: center;
  }

  .top-search {
    width: 100%;
    grid-template-columns: 24px auto 1fr;
  }

  .top-search button,
  .top-search a {
    grid-column: auto;
  }

  .menu-button {
    display: block;
  }

  .main-nav {
    display: none;
    grid-template-columns: 1fr;
  }

  .main-nav.open {
    display: grid;
  }

  .dashboard-grid,
  .content-grid,
  .account-layout,
  .account-hero,
  .account-plan-grid,
  .account-row,
  .account-inline-form,
  .wallet-shortcuts,
  .server-live-cards,
  .server-detail-grid,
  .server-detail-status,
  .server-summary-box,
  .server-chart-row,
  .signature-grid,
  .server-stats-list,
  .dashboard-layout,
  .admin-summary,
  .admin-grid,
  .admin-payment-strip,
  .promotion-plan-grid,
  .rules-grid,
  .revenue-overview,
  .advertise-copy,
  .pricing-grid,
  .field-grid,
  .banner-config-grid,
  .banner-config fieldset,
  .filters {
    grid-template-columns: 1fr;
  }

  .panel {
    border-right: 0;
    border-bottom: 1px solid #d7e6ec;
  }

  .soon-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .soon-starts {
    text-align: left;
  }

  .list-header,
  .site-footer {
    display: grid;
  }

  .list-title {
    width: 100%;
  }

  .pager {
    width: 100%;
  }

  .admin-user-row {
    grid-template-columns: 1fr;
  }

  .admin-server-row {
    grid-template-columns: 1fr;
  }

  .banner-config,
  .launch-config {
    grid-template-columns: 1fr;
  }

  .server-detail-players,
  .world-button,
  .star-vote {
    justify-self: start;
  }

  .server-tabs {
    overflow-x: auto;
  }

  .server-stats-list div {
    grid-template-columns: 110px minmax(0, 1fr);
  }
}
