/* Public server info: the page grows with the actual description and details. */
.server-page {
  --server-border: #2b404c;
  --server-muted: #a9bfce;
  padding-top: 28px;
  min-height: calc(100vh - 260px);
  font: 16px/1.65 Arial, Helvetica, sans-serif;
}
.server-page [hidden] { display: none !important; }
.server-page h1, .server-page h2 { font-family: Arial, Helvetica, sans-serif; letter-spacing: -.025em; }
.server-page h2 { margin: 0; font-size: clamp(21px, 1.65vw, 28px); line-height: 1.3; font-weight: 700; }
.server-page p { margin: 0; }
.server-muted { color: var(--server-muted); }
.server-breadcrumb { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: var(--server-muted); font-size: 13px; }
.server-breadcrumb a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.server-breadcrumb > span:last-child { color: #e1ecf3; }
.server-page .server-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 11px 20px; flex-shrink: 0;
  border: 1px solid #405a6a; border-radius: 4px;
  background: linear-gradient(170deg, #1a2b36, #111c25);
  box-shadow: inset 0 1px 0 #ffffff08;
  color: #f1f6fa; font: 700 14px/1.4 Arial, Helvetica, sans-serif;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: transform .16s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.server-page .server-button:focus-visible { outline: 2px solid #ff9a75; outline-offset: 4px; }
.server-page .server-button:active:not(:disabled) { transform: translateY(1px) scale(.98); box-shadow: inset 0 2px 5px #0004; }
.server-page .server-button:disabled { opacity: .4; cursor: default; filter: none; }
.server-page .server-button img { width: 22px; height: 22px; flex-shrink: 0; object-fit: contain; }
.server-page .server-button-primary { background: linear-gradient(130deg, #ff5529, #ed451f); border-color: #ff7045; color: #fff; box-shadow: 0 4px 18px #ef4e281a, inset 0 1px 0 #ffffff20; }
.server-page .server-join { min-width: 175px; }
.server-page .spin-link { border-color: #7c633b; color: #f6d58b; }
.server-section-icon { display: block; width: 28px; height: 28px; flex: 0 0 28px; object-fit: contain; }
.server-hero { overflow: hidden; border: 1px solid var(--server-border); border-radius: 8px; background: #101920; margin-bottom: 22px; }
.server-hero-art { position: relative; min-height: clamp(300px, 26vw, 420px); display: flex; align-items: center; overflow: hidden; background: #18232b; isolation: isolate; }
.server-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; z-index: -2; }
.server-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #060d13e8 0%, #060d13b0 38%, #060d1330 75%, #060d1310), linear-gradient(0deg, #080f16a1, transparent 60%); }
.server-hero-no-image { background: radial-gradient(ellipse at 85% 30%, #334852, #0c151d 75%); }
.server-hero-copy { width: 100%; min-width: 0; padding: clamp(28px, 4vw, 62px); }
.server-title-scroll { width: 100%; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: #5e7789 transparent; overscroll-behavior-x: contain; }
.server-title-scroll:focus-visible { outline: 2px solid #ef9b7f; outline-offset: 5px; }
.server-hero h1 { width: max-content; max-width: none; margin: 16px 0 0; padding-bottom: 6px; white-space: nowrap; color: #fff; font-size: clamp(34px, 4.8vw, 74px); line-height: 1.08; font-weight: 800; text-shadow: 0 3px 28px #000a; }
.server-page .server-hero-subtitle { max-width: 100%; margin-top: 8px; font-size: clamp(16px, 1.55vw, 23px); font-weight: 600; line-height: 1.5; color: #dce6ee; overflow-wrap: anywhere; text-shadow: 0 2px 15px #000; }
.server-status-line { display: flex; align-items: center; flex-wrap: wrap; gap: 17px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.server-status { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; }
.server-status i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 16px currentColor; }
.server-status.is-online { color: #69e8b2; }
.server-status.is-delayed { color: #f1cb85; }
.server-region { padding-left: 17px; border-left: 1px solid #8395a077; color: #edf4f9; }
.server-labels { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0 0; padding: 0; list-style: none; }
.server-labels li { padding: 4px 14px; border: 1px solid #6a879c8c; border-radius: 3px; background: #10202de0; color: #d5e7f4; font-size: 12px; font-weight: 600; }
.server-page .server-banner-note { margin-top: 18px; font-size: 13px; }
.server-action-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; padding: 20px 28px; border-top: 1px solid var(--server-border); background: linear-gradient(110deg, #14232d, #0d1820); }
.server-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.server-address { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-left: auto; min-width: 0; color: #d6e3ed; font-size: 14px; }
.server-address > span { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.server-page .server-copy-button { min-width: 82px; min-height: 44px; padding: 9px 12px; background: #10202a; font-size: 12px; }
.server-page .server-copy-button img { width: 18px; height: 18px; }
.server-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(170px, .9fr); margin-bottom: 22px; padding: 24px 8px; border: 1px solid var(--server-border); border-radius: 7px; background: linear-gradient(100deg, #111f29, #0d181f); }
.server-overview-stat, .server-overview-update { display: flex; align-items: center; gap: 18px; min-width: 0; padding: 2px 24px; border-left: 1px solid #2c414f; }
.server-overview-stat:first-child { border: 0; }
.server-overview-stat > div { display: flex; flex-direction: column; min-width: 0; }
.server-overview-stat strong { font-size: clamp(24px, 2vw, 32px); font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.server-overview-stat strong small { font-size: .7em; color: #bdceda; font-weight: 500; }
.server-overview-stat span, .server-overview-update { color: var(--server-muted); font-size: 13px; }
.server-overview-update { justify-content: center; gap: 12px; }
.server-overview-update img { width: 20px; height: 20px; flex-basis: 20px; }
.server-overview-update strong { color: #dce7ef; font-weight: 500; }
.server-content-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; gap: 22px; margin-bottom: 22px; }
.server-content-primary, .server-content-secondary { display: grid; gap: 22px; min-width: 0; }
.server-panel { display: flex; flex-direction: column; gap: 20px; min-width: 0; padding: clamp(22px, 2.3vw, 34px); border: 1px solid var(--server-border); border-radius: 7px; background: linear-gradient(135deg, #12212b, #0e181f 80%); }
.server-panel-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; flex: 0 0 auto; gap: 12px; }
.server-panel-heading h2 { display: flex; align-items: center; gap: 13px; min-width: 0; }
.server-panel-heading > span { font-size: 12px; color: var(--server-muted); white-space: nowrap; }
.server-about { border-top: 2px solid #b65539; background: linear-gradient(145deg, #15252e, #101a22 75%); }
/* No height limit, scrolling box, gradient mask, line clamp or read-more gate. */
.server-description { color: #d5e2ec; font-size: 17px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 4; }
.server-empty-description { padding-bottom: 10px; }
.server-statistics { min-height: 360px; }
.player-chart { display: flex; flex-direction: column; min-height: 0; }
.player-chart-plot { position: relative; height: clamp(210px, 20vw, 310px); }
.server-page .player-chart svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; fill: none; stroke: none; stroke-width: 0; }
.player-chart svg:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.player-chart-empty { position: absolute; inset: 0; display: grid; place-content: center; padding: 12px 35px; text-align: center; color: #c0d1df; font-size: 14px; }
.player-chart-times { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; padding-left: 32px; color: #b1c6d7; font-size: 12px; }
.player-chart-reading { min-height: 22px; margin-top: 4px !important; color: #b8cbda; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.player-chart-note { color: #a6bdce; font-size: 12px; }
.server-map { gap: 16px; }
.server-map-empty { display: grid; place-items: center; align-content: center; gap: 14px; min-height: 240px; padding: 24px; background: #0a161e; border: 1px dashed #2a4351; color: var(--server-muted); text-align: center; font-size: 14px; }
.server-map-empty > img { width: 42px; height: 42px; opacity: .5; }
.server-map-caption { font-size: 13px; color: #a9bdcd; }
.server-details-list { margin: 0; font-size: 14px; }
.server-details-list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; padding: 10px 0; border-bottom: 1px solid #2a3e4b; }
.server-details-list > div:first-child { padding-top: 0; }
.server-details-list > div:last-child { border: 0; padding-bottom: 0; }
.server-details-list dt { color: var(--server-muted); overflow-wrap: anywhere; }
.server-details-list dd { margin: 0; text-align: right; color: #edf4f9; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.server-freshness { color: #91a9ba; font-size: 12px; }
.server-delayed-note { margin: 0 0 22px !important; border-left: 3px solid #cca05c; border-radius: 4px; padding: 15px 20px; color: #f1cb85; background: #2c2418; font-size: 14px; }
.server-copy-feedback { position: fixed; z-index: 20; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 14px 24px; border: 1px solid #526b7d; border-radius: 6px; background: #1b303e; color: #edf4f8; box-shadow: 0 5px 30px #0009; font-size: 14px; }
/* Retain an accessible manual copy fallback if clipboard permission is denied. */
.server-dialog { box-sizing: border-box; width: min(820px, calc(100vw - 32px)); max-height: 88vh; max-height: 88dvh; padding: 0; border: 1px solid #4d6677; border-radius: 8px; background: #111e27; color: #edf4f9; }
.server-dialog[open] { display: flex; flex-direction: column; }
.server-dialog::backdrop { background: #02070de8; backdrop-filter: blur(4px); }
.server-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex: 0 0 auto; padding: 20px 26px; border-bottom: 1px solid #334954; }
.server-dialog h2 { margin: 0; font: 700 24px/1.3 Arial, Helvetica, sans-serif; }
.server-dialog-body { min-height: 0; overflow: auto; padding: 26px; font-size: 16px; line-height: 1.7; }
.server-dialog input { width: 100%; min-width: 0; margin: 10px 0 22px; padding: 12px; border: 1px solid #587286; border-radius: 4px; background: #0a141c; color: #f3f7fb; font-size: 18px; }
.server-console-command { display: block; margin-top: 12px; padding: 14px; overflow-wrap: anywhere; border: 1px solid #344d5d; background: #0b151d; }
.server-missing { padding: 50px 0 90px; }.server-missing h1 { font-size: 36px; }.server-missing p { margin-bottom: 28px; color: var(--server-muted); }
.server-panel, .server-hero { position: relative; isolation: isolate; }
.server-panel > * { position: relative; z-index: 1; }
@media (hover: hover) and (pointer: fine) {
  .server-page .server-button:hover:not(:disabled) { border-color: #91afc2; transform: translateY(-2px); box-shadow: 0 6px 16px #0003; }
  .server-page .server-button-primary:hover { border-color: #ffb399; box-shadow: 0 6px 24px #ef4e2840; }
  .server-panel, .server-hero { transition: border-color .22s ease, box-shadow .22s ease; }
  .server-panel:hover, .server-panel:focus-within, .server-hero:hover, .server-hero:focus-within { border-color: #4e7084; box-shadow: 0 10px 30px #0002, inset 0 1px 0 #ffffff0b; }
  .server-page .server-button:active:not(:disabled) { transform: translateY(1px) scale(.98); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .server-panel::before, .server-hero::before { content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s ease; background: radial-gradient(460px circle at var(--hover-x, 50%) var(--hover-y, 50%), #9bc5df13, transparent 72%); }
  .server-hero::before { z-index: 2; }
  .server-panel.is-pointer-over::before, .server-hero.is-pointer-over::before { opacity: 1; }
  .server-hero-image { transition: transform .6s cubic-bezier(.22,.61,.36,1); }
  .server-hero-art:hover .server-hero-image { transform: scale(1.025); }
}
@media (max-width: 1100px) {
  .server-overview-stat { gap: 12px; padding-inline: 18px; }
  .server-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .server-overview-update { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #2c414f; padding-top: 14px; margin: 18px 18px -10px; }
  .server-overview-update br { display: none; }
  .server-content-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; }
  .server-content-primary, .server-content-secondary { gap: 18px; }
  .server-description { font-size: 16px; }
  .server-action-bar { padding: 20px; }
}
@media (max-width: 800px) {
  .server-content-grid { grid-template-columns: minmax(0, 1fr); }
  .server-content-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .server-address { margin-left: 0; width: 100%; justify-content: space-between; border-top: 1px solid #2c414f; padding-top: 14px; }
  .server-hero-copy { padding: 32px 26px; }
  .server-hero-art { min-height: 320px; }
  .player-chart-plot { height: 250px; }
}
@media (max-width: 600px) {
  .server-page { padding-top: 18px; font-size: 15px; }
  .server-breadcrumb { margin-bottom: 12px; }
  .server-content-secondary { grid-template-columns: minmax(0, 1fr); }
  .server-hero-art { min-height: 300px; }
  .server-hero-copy { padding: 32px 20px; }
  .server-hero-subtitle { font-size: 16px; }
  .server-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 10px; }
  .server-page .server-join { min-width: 0; grid-column: 1/-1; }
  .server-actions .server-button { min-width: 0; padding: 12px 8px; }
  .server-overview { padding: 18px 3px; }
  .server-overview-stat { padding-inline: 10px; align-items: flex-start; flex-direction: column; gap: 9px; }
  .server-overview-stat strong { font-size: 23px; }
  .server-overview-stat span { font-size: 11px; }
  .server-overview-stat img { width: 21px; height: 21px; flex-basis: 21px; }
  .server-panel { padding: 22px 18px; gap: 17px; }
  .server-panel-heading h2 { gap: 10px; }
  .server-description { font-size: 16px; line-height: 1.8; }
  .server-section-icon { width: 22px; height: 22px; flex-basis: 22px; }
  .player-chart-times { font-size: 10px; padding-left: 22px; gap: 4px; }
  .server-details-list { font-size: 13px; }
  .server-dialog > header { padding: 16px; }.server-dialog h2 { font-size: 22px; }
  .server-dialog-body { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .server-panel, .server-hero, .server-hero-image, .server-page .server-button { transition: none; transform: none !important; }
}
