/* /server.html only: the battlefield hero, the server cards with drawn map art and faction
   activity charts (servers.js), the rotation playlist, and the page's grids and reveals. */

/* ---------- the hero, with the battlefield ---------- */
.hero-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.hero-copy { min-width: 0; }
.hero-theatre .lede { font-size: clamp(1.05rem, .95rem + .45vw, 1.3rem); }
.theatre {
  position: relative; aspect-ratio: 1 / .86; min-height: 300px; border-radius: 10px; overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, #7dff5214 0%, transparent 55%),
    radial-gradient(circle at 27% 30%, #4cb1ef14 0%, transparent 40%),
    radial-gradient(circle at 75% 32%, #fa503e14 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, #1dd65c14 0%, transparent 40%),
    #070a08;
  border: 1px solid #1d2a21; box-shadow: inset 0 0 80px #000, 0 30px 80px -40px #000;
}
.theatre::after {
  /* scanlines and a soft vignette: the HUD-glass look */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px),
              radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0,0,0,.55) 100%);
}
.theatre canvas { position: absolute; inset: 0; display: block; }
.theatre-hud { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .6s; }
.theatre.is-ready .theatre-hud { opacity: 1; }
.hud-core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 132px; height: 132px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  border: 1px solid #7dff5255; background: radial-gradient(circle, #0b120dee 60%, #0b120d99 100%);
  box-shadow: 0 0 0 6px #7dff5210, 0 0 40px #7dff5222;
}
.hud-core b { font-family: var(--display); font-size: 44px; line-height: 1; color: var(--volt); text-shadow: 0 0 18px #7dff5266; }
.hud-core span { font-family: var(--meta); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--paper); margin-top: 4px; }
.hud-core em { font-style: normal; font-family: var(--meta); font-size: 9.5px; letter-spacing: .08em; color: var(--muted); margin-top: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .hud-core::before {
    content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px dashed #7dff5244;
    animation: hud-spin 40s linear infinite;
  }
  @keyframes hud-spin { to { transform: rotate(360deg); } }
}
.hud-side {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px;
  background: #0b100dcc; border: 1px solid color-mix(in srgb, var(--fc) 45%, transparent); border-radius: 999px;
  font-family: var(--meta); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper);
  backdrop-filter: blur(4px);
}
.hud-side img { width: 26px; height: 26px; object-fit: contain; }
.hud-side b { font-family: var(--display); font-size: 20px; letter-spacing: .02em; color: var(--fc); font-weight: 400; }
.hud-lonestar { left: 6%; top: 7%; }
.hud-valkyra { right: 6%; top: 7%; }
.hud-manticore { left: 50%; bottom: 5%; transform: translateX(-50%); }
.hud-quiet {
  /* bottom left, clear of the three side badges and the dots round the middle */
  position: absolute; left: 4%; bottom: 5%; max-width: 30%; padding: 4px 10px; border-radius: 999px; background: #0b100dcc; border: 1px solid #ffffff1c;
  font-family: var(--meta); font-size: 9.5px; letter-spacing: .1em; line-height: 1.35; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 960px) {
  .hero-split { grid-template-columns: minmax(0, 1fr); }
  .theatre { aspect-ratio: 1 / .8; min-height: 280px; }
}
@media (max-width: 480px) {
  .hud-side span { display: none; }
  .hud-core { width: 112px; height: 112px; }
  .hud-core b { font-size: 36px; }
  .hud-quiet { bottom: 3%; max-width: 27%; border-radius: 6px; font-size: 8.5px; padding: 3px 7px; }
}

/* ---------- lines above the cards ---------- */
.srv-lines {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  margin: 14px 0 0; font-family: var(--meta); font-size: 12px; letter-spacing: .08em; color: var(--muted);
}
.srv-line b { color: var(--paper); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; margin-right: 6px; }
.srv-line.is-room b { color: var(--gold); }
.srv-range { margin-left: auto; display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.srv-range button {
  font: inherit; font-size: 13px; letter-spacing: .06em; color: var(--muted); background: var(--surface);
  border: 0; border-left: 1px solid var(--line); padding: 8px 14px; cursor: pointer; min-height: 36px;
}
.srv-range button:first-child { border-left: 0; }
.srv-range button[aria-pressed="true"] { background: var(--volt); color: var(--ink); font-weight: 700; }
.srv-range button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }

/* ---------- the cards ---------- */
.srv-cards { display: grid; gap: 14px; margin: 14px 0 0; }
.srv-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 0;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden; transition: border-color .3s, box-shadow .3s, transform .3s;
}
.srv-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--volt); box-shadow: 0 0 18px var(--volt); z-index: 1; }
.srv-card.is-eu::before { background: #5865f2; box-shadow: 0 0 18px #5865f2; }
.srv-card.is-full::before { background: var(--gold); box-shadow: 0 0 18px var(--gold); }
.srv-card.is-off::before { background: var(--line); box-shadow: none; }
.srv-card:hover { border-color: #3c5040; box-shadow: 0 24px 60px -30px #000, 0 0 0 1px #7dff5214; }
.srv-card.no-chart { grid-template-columns: minmax(0, 1fr); }
.srv-info { min-width: 0; border-right: 1px solid var(--line); }
.srv-card.no-chart .srv-info { border-right: 0; }

.srv-banner { position: relative; height: 128px; overflow: hidden; background: #0b100d; }
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-art-off { background: repeating-linear-gradient(135deg, #111713 0 10px, #0d120f 10px 20px); }
/* the map photos (official Steam screenshots), graded for the time of day the server is lit for */
.map-photo { overflow: hidden; background: #0b100d; }
.map-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.map-photo .map-grade, .map-photo .map-fog, .map-photo .map-weather { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map-photo.is-dawn .map-grade { background: linear-gradient(180deg, #5a3a6a66, #f0a37244); mix-blend-mode: soft-light; }
.map-photo.is-morning .map-grade { background: linear-gradient(180deg, #2a4a6a33, #e7cf9833); mix-blend-mode: soft-light; }
.map-photo.is-afternoon .map-grade { background: linear-gradient(180deg, #00000000, #efbd7355); mix-blend-mode: soft-light; }
.map-photo.is-dusk .map-grade { background: linear-gradient(180deg, #2a1440aa, #e2703e66); mix-blend-mode: multiply; }
.map-photo.is-overcast img, .map-photo.is-rain img { filter: saturate(.55) brightness(.8) contrast(1.05); }
.map-photo.is-rain .map-grade { background: linear-gradient(180deg, #1c2a3855, #0b100d33); }
.map-photo.is-fog img { filter: saturate(.6) brightness(.95); }
.map-photo .map-weather { top: -16px; height: calc(100% + 16px); }
.map-photo .map-fog { background: linear-gradient(180deg, #dfe6e322 0%, #dfe6e366 55%, #dfe6e333 100%); }
@media (prefers-reduced-motion: no-preference) {
  .map-photo .map-weather { animation: rain-fall .5s linear infinite; }
  @keyframes rain-fall { from { transform: translateY(0); } to { transform: translateY(16px); } }
}
.srv-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,13,11,.35) 0%, transparent 35%, rgba(9,13,11,.85) 100%); }
@media (prefers-reduced-motion: no-preference) {
  .srv-card .map-art { transition: transform 6s ease-out; }
  .srv-card:hover .map-art { transform: scale(1.06); }
}
.srv-banner .srv-state, .srv-banner .srv-tag, .srv-banner-text { position: absolute; z-index: 1; }
.srv-state {
  left: 14px; top: 12px; display: inline-flex; align-items: center; padding: 4px 10px 4px 8px; border-radius: 999px;
  background: #090d0bcc; backdrop-filter: blur(4px);
  font-family: var(--meta); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--live);
}
.srv-card.is-full .srv-state { color: var(--gold); }
.srv-card.is-full .srv-state .live-dot { background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.srv-card.is-off .srv-state { color: var(--muted); }
.srv-tag {
  right: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: #090d0bcc; backdrop-filter: blur(4px);
  font-family: var(--meta); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--paper);
  border: 1px solid #ffffff1f;
}
.srv-card.is-eu .srv-tag { border-color: #5865f2aa; }
.srv-banner-text { left: 16px; right: 16px; bottom: 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.srv-map { font-family: var(--display); font-size: 30px; line-height: 1; text-transform: uppercase; color: var(--paper); text-shadow: 0 2px 12px #000; }
.srv-tod { display: inline-flex; align-items: center; gap: 6px; font-family: var(--meta); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #dfe9e1; }
.srv-tod .ico { width: 15px; height: 15px; }
/* The round's mode: a badge on the banner, coloured when it changes how the round plays */
.srv-mode {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-family: var(--meta); font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; color: var(--paper); background: #090d0bcc;
  border: 1px solid #ffffff38; backdrop-filter: blur(4px);
}
.srv-mode.is-infantry { color: #ffe27a; border-color: #ffd43b99; background: #2a230acc; }
.srv-mode.is-hardcore { color: #ff9c90; border-color: #fa503e99; background: #2c0f0bcc; }
.srv-next-mode { font-weight: 600; color: var(--paper); }
.srv-next-mode.is-infantry { color: var(--gold); }
.srv-next-mode.is-hardcore { color: #fa6f5f; }

.srv-body { padding: 16px 20px 18px; }
.srv-card h3 { font-family: var(--display); font-size: 26px; line-height: 1; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .01em; }
.srv-next { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.srv-next b { color: var(--paper); font-weight: 600; }
.srv-sides { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 9px; }
.srv-sides li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; column-gap: 9px; row-gap: 5px; font-size: 13px; }
.srv-sides img { width: 22px; height: 22px; object-fit: contain; }
.srv-side-name { color: var(--paper); font-weight: 600; letter-spacing: .02em; }
.srv-side-n { font-family: var(--display); font-size: 17px; color: var(--fc); letter-spacing: .02em; }
.srv-side-n small { font-family: var(--meta); font-size: 11px; color: var(--muted); }
.srv-side-bar { grid-column: 1 / -1; height: 4px; border-radius: 3px; background: #1f2922; overflow: hidden; }
.srv-side-bar span { display: block; height: 100%; background: var(--fc); border-radius: 3px; box-shadow: 0 0 10px var(--fc); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.srv-idle { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.srv-capacity { display: grid; gap: 7px; margin-bottom: 14px; }
.srv-count { margin: 0; color: var(--muted); font-size: 14px; }
.srv-count b { font-family: var(--display); font-size: 32px; color: var(--paper); letter-spacing: .01em; margin-right: 2px; }
/* Members talking in the server's side rooms in the Discord: a crew you can hear is a reason to join. */
.srv-voice { display: inline-flex; align-items: center; gap: 4px; color: var(--volt); white-space: nowrap; }
.srv-voice .ico { width: 14px; height: 14px; }
.srv-card.is-full .srv-count b { color: var(--gold); }
.srv-meter { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; }
.srv-meter i { height: 7px; border-radius: 1px; background: #1c2620; }
.srv-meter i.is-on { background: var(--volt); box-shadow: 0 0 8px #7dff5288; }
.srv-meter i.is-full { background: var(--gold); box-shadow: 0 0 8px #ffd43b88; }
.srv-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.srv-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 4px;
  font-family: var(--meta); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--paper); background: #ffffff08; border: 1px solid var(--line); text-decoration: none;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.srv-btn .ico { width: 15px; height: 15px; }
.srv-btn:hover { border-color: #5865f2; color: #fff; background: #5865f222; }
.srv-btn-primary { background: var(--volt); color: var(--ink); border-color: var(--volt); }
.srv-btn-primary:hover { background: #a2ff82; color: var(--ink); border-color: #a2ff82; transform: translateY(-1px); }
.srv-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.srv-blurb { margin: 14px 0 0; color: #a9b5ac; font-size: 13px; line-height: 1.5; }

/* ---------- the chart ---------- */
.srv-chart { min-width: 0; padding: 16px 18px 14px; display: flex; flex-direction: column; }
.srv-chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.srv-chart-label { font-family: var(--meta); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.srv-peak { font-family: var(--meta); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.srv-peak b { font-family: var(--display); font-size: 16px; color: var(--gold); letter-spacing: .02em; font-weight: 400; }
.srv-chart-box { position: relative; width: 100%; min-height: 176px; flex: 1 1 auto; }
.srv-chart-box svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: pan-y; }
.srv-chart-box svg .g { stroke: #223026; stroke-width: 1; }
.srv-chart-box svg .g0 { stroke: #34453a; }
.srv-chart-box svg .gv { stroke-dasharray: 2 3; }
.srv-chart-box svg .peak-band { fill: #ffd43b; fill-opacity: .045; }
.srv-chart-box svg text { font-family: var(--meta); font-size: 10px; fill: var(--muted); }
.srv-chart-box svg text.none { font-size: 12px; letter-spacing: .06em; }
.srv-chart-box svg .total { fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linejoin: round; filter: drop-shadow(0 0 4px #ffd43b66); }
.srv-chart-box svg .cursor { stroke: var(--paper); stroke-width: 1; stroke-opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  .srv-chart-box svg .plot.is-drawing { animation: plot-in 1.4s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes plot-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
}
.srv-chart-empty { margin: 60px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.srv-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; font-family: var(--meta); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.srv-legend span { display: inline-flex; align-items: center; gap: 6px; }
.srv-legend i { width: 9px; height: 9px; border-radius: 2px; background: var(--fc); opacity: .8; }
.srv-legend .is-total i { width: 14px; height: 2px; border-radius: 1px; background: var(--gold); opacity: 1; }
.srv-tip {
  position: absolute; top: 6px; width: 150px; pointer-events: none; z-index: 2;
  background: #0b100df2; border: 1px solid #3c5040; border-radius: 6px; padding: 9px 11px;
  font-size: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); backdrop-filter: blur(6px);
}
.srv-tip span { display: flex; align-items: center; gap: 7px; }
.srv-tip .tip-time { color: var(--muted); font-family: var(--meta); font-size: 11px; margin-bottom: 6px; }
.srv-tip .tip-row { color: var(--paper); line-height: 1.6; }
.srv-tip .tip-row i { width: 9px; height: 9px; border-radius: 2px; background: var(--fc); }
.srv-tip .tip-row b { margin-left: auto; font-weight: 700; }
.srv-tip .tip-total { color: var(--gold); border-top: 1px solid var(--line); margin-top: 5px; padding-top: 5px; }
.srv-tip .tip-none { color: var(--muted); }

/* ---------- the Frankfurt overflow, folded ---------- */
.srv-overflow { border: 1px dashed #2f3a6e; border-radius: 8px; background: #0d1017; }
.srv-overflow > summary {
  list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 14px 18px;
}
.srv-overflow > summary::-webkit-details-marker { display: none; }
.srv-overflow > summary::after { content: "+"; margin-left: auto; font-family: var(--display); font-size: 22px; color: #8e97f5; line-height: 1; }
.srv-overflow[open] > summary::after { content: "\2212"; }
.srv-overflow > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.srv-overflow-title { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 20px; text-transform: uppercase; color: var(--paper); }
.srv-overflow-title .ico { width: 18px; height: 18px; color: #8e97f5; }
.srv-overflow-meta { font-family: var(--meta); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.srv-overflow-body { display: grid; gap: 14px; padding: 0 12px 12px; }

/* ---------- rotation: tabs and the playlist ---------- */
.rotation-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.rotation-tabs button {
  font-family: var(--meta); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; cursor: pointer; min-height: 36px;
}
.rotation-tabs button[aria-pressed="true"] { color: var(--ink); background: var(--volt); border-color: var(--volt); font-weight: 700; }
.rotation-tabs button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.rotation.playlist {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin; scrollbar-color: #2b382e transparent;
}
.rotation.playlist li {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-height: 168px;
  padding: 14px; border-radius: 8px; overflow: hidden; scroll-snap-align: start; border: 1px solid var(--line); background: #0b100d;
}
.rotation.playlist li::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(9,13,11,.92) 100%); z-index: 0; }
.rotation.playlist li > *:not(.tile-art) { position: relative; z-index: 1; }
.rotation.playlist .tile-art { position: absolute; inset: 0; }
.rotation.playlist li b { font-family: var(--display); font-size: 26px; line-height: 1; text-transform: uppercase; color: var(--paper); }
.rotation.playlist li .rotation-n { position: absolute; top: 12px; left: 14px; font-family: var(--display); font-size: 18px; color: #ffffffb0; }
.rotation.playlist li .rotation-mode { font-family: var(--meta); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rotation.playlist li .rotation-mode.is-infantry { color: var(--gold); }
.rotation.playlist li .rotation-mode.is-hardcore { color: #fa6f5f; }
.tile-tod { display: inline-flex; align-items: center; gap: 6px; font-family: var(--meta); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #dfe9e1; }
.tile-tod .ico { width: 14px; height: 14px; }
.tile-badge {
  position: absolute !important; top: 10px; right: 10px; padding: 4px 10px; border-radius: 999px;
  font-family: var(--meta); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.tile-badge.is-now { background: var(--live); color: var(--ink); box-shadow: 0 0 18px #4ffb9a88; }
.tile-badge.is-next { background: #090d0bcc; color: var(--gold); border: 1px solid var(--gold); }
.rotation.playlist li.is-now { border-color: var(--live); box-shadow: 0 0 0 1px var(--live), 0 0 30px -6px #4ffb9a66; }
.rotation.playlist li.is-next { border-color: #ffd43b88; }
.rotation.playlist .rotation-empty { min-height: 0; grid-column: 1 / -1; }
@media (prefers-reduced-motion: no-preference) {
  .rotation.playlist li .tile-art { transition: transform 5s ease-out; }
  .rotation.playlist li:hover .tile-art { transform: scale(1.08); }
}

/* ---------- how to join: four across ---------- */
.steps.steps-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; position: relative; max-width: none; }
.steps.steps-row .step { grid-template-columns: 1fr; align-content: start; gap: 12px; padding: 22px 20px 20px; border-radius: 8px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.steps.steps-row .step::before {
  font-size: 54px; line-height: .9; color: transparent; -webkit-text-stroke: 1.5px var(--volt); padding: 0;
  text-shadow: 0 0 24px #7dff5233;
}
.steps.steps-row .step h3 { font-size: 18px; }
@media (max-width: 1023px) { .steps.steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .steps.steps-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- house rules: cards ---------- */
.rules.rules-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; counter-reset: rule; }
.rules.rules-grid li { grid-column: span 2; }
.rules.rules-grid li:nth-child(4), .rules.rules-grid li:nth-child(5) { grid-column: span 3; }
@media (max-width: 899px) {
  .rules.rules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules.rules-grid li, .rules.rules-grid li:nth-child(4) { grid-column: span 1; }
  .rules.rules-grid li:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .rules.rules-grid { grid-template-columns: minmax(0, 1fr); }
  .rules.rules-grid li, .rules.rules-grid li:nth-child(n) { grid-column: auto; }
}
.rules.rules-grid li {
  counter-increment: rule; border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; background: var(--surface);
  grid-template-columns: auto 1fr; align-items: start;
}
.rules.rules-grid li::before { content: counter(rule, decimal-leading-zero); font-family: var(--display); font-size: 26px; line-height: 1; color: var(--volt); }
.rules.rules-grid li:first-child { border-color: #fa503e66; background: linear-gradient(180deg, #1a1212, var(--surface)); }
.rules.rules-grid li:first-child::before { color: #fa503e; }

/* ---------- the facts: balanced on every width ---------- */
.cards.cards-facts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cards.cards-facts .card { grid-column: span 2; }
.cards.cards-facts .card:nth-child(4), .cards.cards-facts .card:nth-child(5) { grid-column: span 3; }
@media (max-width: 899px) {
  .cards.cards-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards.cards-facts .card, .cards.cards-facts .card:nth-child(4) { grid-column: span 1; }
  .cards.cards-facts .card:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .cards.cards-facts { grid-template-columns: minmax(0, 1fr); }
  .cards.cards-facts .card, .cards.cards-facts .card:nth-child(n) { grid-column: auto; }
}

/* ---------- reveals ----------
   Where the browser has scroll-driven animations, the scroll position itself plays each reveal as the block enters
   the viewport: no script, nothing on the main thread, and a block already on screen (or scrolled past) simply sits
   at the end of its animation, so nothing can be left invisible. Elsewhere servers.js watches with an observer and
   adds .is-in, as before. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html:not(.js-reveal) :is(.band .section-head, .steps-row .step, .rules-grid li, .cards-facts .card, [data-server-cards], .event-strip, .squadup) {
      animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 35%;
    }
    html:not(.js-reveal) :is(.steps-row .step, .rules-grid li, .cards-facts .card):nth-child(4n+2) { animation-range: entry 8% entry 43%; }
    html:not(.js-reveal) :is(.steps-row .step, .rules-grid li, .cards-facts .card):nth-child(4n+3) { animation-range: entry 16% entry 51%; }
    html:not(.js-reveal) :is(.steps-row .step, .rules-grid li, .cards-facts .card):nth-child(4n) { animation-range: entry 24% entry 59%; }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js-reveal [data-reveal] { transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--reveal-delay, 0ms); }
.js-reveal [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(18px); }
@media print { .js-reveal [data-reveal], .band .section-head, .steps-row .step, .rules-grid li, .cards-facts .card, .event-strip, .squadup { opacity: 1 !important; transform: none !important; animation: none !important; } }

@media (max-width: 860px) {
  .srv-card { grid-template-columns: minmax(0, 1fr); }
  .srv-info { border-right: 0; border-bottom: 1px solid var(--line); }
  .srv-range { margin-left: 0; }
}

/* ---------- squad up: the routine, as a card ---------- */
.squadup {
  margin-top: 26px; border: 1px solid #2f4a33; border-radius: 10px; padding: clamp(20px, 3vw, 30px);
  background: radial-gradient(80% 120% at 0% 0%, #7dff5212 0%, transparent 60%), linear-gradient(180deg, var(--surface-2), var(--surface));
}
.squadup-head h3 { font-family: var(--display); font-size: clamp(26px, 1.4rem + 1.2vw, 34px); text-transform: uppercase; line-height: 1; margin: 10px 0 8px; }
.squadup-head p { color: var(--muted); margin: 0; max-width: 64ch; }
.squadup-steps { list-style: none; counter-reset: sq; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.squadup-steps li {
  counter-increment: sq; position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 18px 16px 16px; border: 1px solid var(--line); border-radius: 8px; background: #0b100d;
}
.squadup-steps li::before { content: counter(sq, decimal-leading-zero); font-family: var(--display); font-size: 30px; line-height: 1; color: var(--volt); }
.squadup-steps li:not(:last-child):not(:nth-child(3n))::after {
  /* the arrow on to the next step */
  content: ""; position: absolute; top: 28px; right: -9px; width: 6px; height: 6px; z-index: 1;
  border-top: 2px solid #4b6150; border-right: 2px solid #4b6150; transform: rotate(45deg);
}
.squadup-steps b { font-family: var(--display); font-weight: 400; font-size: 19px; text-transform: uppercase; color: var(--paper); line-height: 1.05; }
.squadup-steps span { color: #a9b5ac; font-size: 13.5px; line-height: 1.5; }
.squadup-steps em { font-style: normal; color: var(--paper); font-weight: 600; }
.squadup kbd {
  display: inline-block; min-width: 1.6em; padding: 1px 7px; margin: 0 1px; text-align: center;
  font: 700 12px var(--meta); color: var(--ink); background: linear-gradient(180deg, #f4f8f2, #c9d4cc);
  border-radius: 4px; box-shadow: 0 2px 0 #7f8b83, 0 3px 6px #0006; vertical-align: 1px;
}
.squadup-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 20px; }
.squadup-foot span { color: var(--muted); font-size: 13px; }
@media (max-width: 1023px) {
  .squadup-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .squadup-steps li:not(:last-child)::after { display: none; }
}
@media (max-width: 599px) {
  .squadup-steps { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- the connect ID: readable in full, one press to copy ---------- */
.srv-connect { display: grid; gap: 7px; margin-bottom: 12px; }
.srv-connect-k { display: inline-flex; align-items: center; gap: 7px; font-family: var(--meta); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.srv-connect-k .ico { width: 14px; height: 14px; color: var(--volt); }
.srv-copy {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 7px 7px 7px 12px; cursor: pointer; text-align: left;
  border: 1px dashed #3c5040; border-radius: 6px; background: #0b100d; color: var(--paper);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.srv-copy code { flex: 1 1 auto; min-width: 0; font: 600 12px/1.35 var(--meta); color: var(--volt); letter-spacing: .02em; overflow-wrap: anywhere; }
.srv-copy-do {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 4px;
  background: var(--volt); color: var(--ink); font: 700 11px var(--meta); letter-spacing: .12em; text-transform: uppercase;
}
.srv-copy-do .ico { width: 14px; height: 14px; }
.srv-copy:hover { border-color: var(--volt); background: #101a12; box-shadow: 0 0 0 1px #7dff5222; }
.srv-copy:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.srv-copy.is-copied { border-style: solid; border-color: var(--live); }
.srv-copy.is-copied .srv-copy-do { background: var(--live); }
.srv-connect-how { font-size: 12px; color: var(--muted); }
.srv-connect-how b { color: var(--paper); font-weight: 600; }
.srv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }


/* ---------- placeholders while the first reading is on its way ---------- */
.srv-skel {
  min-height: 360px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface);
  display: grid; grid-template-rows: 150px 1fr;
}
.srv-skel-art, .srv-skel-body i {
  background: linear-gradient(100deg, #ffffff06 20%, #ffffff12 45%, #ffffff06 70%); background-size: 240% 100%;
}
.srv-skel-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.srv-skel-body i { display: block; height: 14px; border-radius: 7px; }
.srv-skel-body i:first-child { height: 28px; width: 55%; }
.srv-skel-body i:nth-child(2) { width: 80%; }
.srv-skel-body i:nth-child(3) { width: 65%; }
.srv-skel-body i:last-child { height: 44px; width: 100%; margin-top: auto; border-radius: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .srv-skel-art, .srv-skel-body i { animation: srvShimmer 1.6s linear infinite; }
}
@keyframes srvShimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* ---------- 12 November 2026: Season 3, tighter cards ---------- */
/* What every card used to end with, said once above them. */
.srv-common {
  display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; padding: 11px 14px; border: 1px solid var(--line); border-left: 3px solid var(--volt);
  border-radius: 6px; background: linear-gradient(90deg, #7dff520f, transparent 60%), var(--surface); color: #c3cec6; font-size: 13.5px; line-height: 1.5;
}
.srv-common .ico { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--volt); }
.srv-common b { color: var(--paper); font-weight: 600; }
.srv-common a { color: var(--volt); font-weight: 600; white-space: nowrap; }
.srv-common.is-full { border-left-color: var(--gold); background: linear-gradient(90deg, #ffd43b12, transparent 60%), var(--surface); }
.srv-common.is-full .ico { color: var(--gold); }
.srv-common + .srv-card { margin-top: 0; }
/* The match on now: each side's score beside its headcount, the leader's lit. */
.srv-sides li { grid-template-columns: 22px 1fr auto auto; }
.srv-side-pts { font-family: var(--meta); font-size: 12px; font-weight: 700; color: #b9c5bc; letter-spacing: .02em; min-width: 52px; text-align: right; }
.srv-side-pts small { font-size: 9.5px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.srv-side-pts.is-lead { color: var(--fc); text-shadow: 0 0 10px color-mix(in srgb, var(--fc) 55%, transparent); }
.srv-side-n { min-width: 58px; text-align: right; }
.srv-clock { color: var(--paper); font-weight: 600; }
/* Squad up beside the connect ID's label, so the card loses a row. */
.srv-connect { margin-bottom: 0; }
.srv-connect-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.srv-squad {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--meta); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--paper); text-decoration: none;
  background: #ffffff08; transition: background .2s, border-color .2s, color .2s;
}
.srv-squad .ico { width: 13px; height: 13px; }
.srv-squad:hover { border-color: #5865f2; color: #fff; background: #5865f222; }
.srv-squad:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.srv-blurb { margin-top: 12px; }
.srv-capacity { margin-bottom: 12px; }
@media (pointer: coarse) { .srv-squad { min-height: 40px; padding: 0 14px; } }
/* Limited (Season 3): its own colour, like Infantry Only and Hardcore. */
.srv-mode.is-limited { color: #a9d6ff; border-color: #4cb1ef99; background: #0b1c2acc; }
.srv-next-mode.is-limited { color: #7cc4f5; }
.rotation.playlist li .rotation-mode.is-limited { color: #7cc4f5; }
.hud-quiet.is-wide { left: 50%; bottom: auto; top: calc(50% + 86px); transform: translateX(-50%); max-width: 80%; white-space: nowrap; }
/* Season 3's strip, under the servers: news, not a section of its own. */
.srv-season { margin-top: 18px; margin-bottom: 38px; }
