:root {
  --bg: #0a0e1a;
  --bg-card: #131829;
  --accent: #00e5ff;
  --accent-2: #ff2e88;
  --text: #e8ecf7;
  --text-dim: #8b93ab;
  --online: #2ee6a6;
  --offline: #ff4d6d;
  --unknown: #f5c542;
  --dev: #b98bff;
  --content-max: 72rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background:
    radial-gradient(ellipse at top, #131829 0%, var(--bg) 60%),
    radial-gradient(circle at 15% 20%, rgba(0, 229, 255, 0.12), transparent 42%),
    radial-gradient(circle at 85% 75%, rgba(255, 46, 136, 0.10), transparent 42%);
  background-repeat: no-repeat;
  background-size: 100% 100%, 200% 200%, 200% 200%;
  background-position: center top, 0% 0%, 100% 100%;
  color: var(--text);
  min-height: 100vh;
  /* Safety net: nothing should legitimately cause horizontal scroll, but the
     panning background + flexible card grid make it cheap insurance. */
  overflow-x: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  body {
    animation: bg-pan 26s ease-in-out infinite alternate;
  }
}

@keyframes bg-pan {
  0% {
    background-position: center top, 0% 0%, 100% 100%;
  }
  100% {
    background-position: center top, 30% 40%, 65% 60%;
  }
}

.hero {
  text-align: center;
  padding: 4rem 1.5rem 2.5rem;
}

.hero__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin: 0;
  letter-spacing: 0.05em;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

.hero__accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 220% auto;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__accent {
    animation: hero-gradient-shift 6s ease-in-out infinite;
  }
}

@keyframes hero-gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero__studio {
  margin: 0.75rem 0 0;
  font-family: 'Consolas', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

.hero__subtitle {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 40rem;
  margin: 1rem auto 0;
}

/* Flexbox + wrap instead of CSS Grid: with `grid-template-columns: repeat(auto-fit, minmax(...))`,
   an incomplete final row gets its lone/leftover card(s) STRETCHED to fill the row (the classic
   auto-fit + 1fr gotcha). Flexbox lets every card keep a consistent width and centers the group
   via `justify-content: center`, so a last row of 1, 2, or 3 cards always looks intentional. */
.server-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.server-card {
  flex: 1 1 300px;
  max-width: 340px;
}

/* Liquid glass panel — shared by the 4 live server cards and the "in development" card */
.glass-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

/* Soft inner highlight near the top edge — sells the "glass catching light" look */
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 45%;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 100%);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.glass-card:hover {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 36px rgba(0, 229, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
}

@media (prefers-reduced-motion: no-preference) {
  .glass-card {
    opacity: 0;
    animation: card-fade-in-up 0.6s ease-out forwards;
  }

  .glass-card:nth-child(1) {
    animation-delay: 0.1s;
  }

  .glass-card:nth-child(2) {
    animation-delay: 0.25s;
  }

  .glass-card:nth-child(3) {
    animation-delay: 0.4s;
  }

  .glass-card:nth-child(4) {
    animation-delay: 0.55s;
  }

  .glass-card:nth-child(5) {
    animation-delay: 0.7s;
  }

  .glass-card:nth-child(6) {
    animation-delay: 0.85s;
  }
}

@keyframes card-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card media — cover image/icon at the top of the glass panel, fading into the body below */
.server-card__media {
  position: relative;
  z-index: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(255, 46, 136, 0.12));
}

.server-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-card__media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(to bottom, rgba(10, 14, 26, 0) 0%, rgba(15, 19, 33, 0.92) 100%);
  pointer-events: none;
}

/* Logo media (e.g. TeamSpeak) — contained rather than cropped, on a solid dark backdrop */
.server-card__media--logo {
  background: #12141f;
}

.server-card__media--logo img {
  object-fit: contain;
  padding: 2.5rem;
}

/* Small unobtrusive attribution for CC-licensed photos/logos, bottom-right of the media area */
.server-card__photo-credit {
  position: absolute;
  z-index: 2;
  right: 0.5rem;
  bottom: 0.4rem;
  font-size: 0.65rem;
  opacity: 0.6;
  color: var(--text);
  background: rgba(0, 0, 0, 0.45);
  padding: 0.1rem 0.4rem;
  border-radius: 0.3rem;
  line-height: 1.4;
  pointer-events: none;
}

.server-card__body {
  position: relative;
  z-index: 0;
  padding: 1.5rem;
}

.server-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.server-card__name {
  margin: 0;
  font-size: 1.4rem;
}

.server-card__badge {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(245, 197, 66, 0.15);
  color: var(--unknown);
  white-space: nowrap;
}

.server-card__badge[data-status="online"] {
  background: rgba(46, 230, 166, 0.15);
  color: var(--online);
}

@media (prefers-reduced-motion: no-preference) {
  .server-card__badge[data-status="online"] {
    animation: badge-pulse 2.2s ease-in-out infinite;
  }
}

@keyframes badge-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(46, 230, 166, 0.45);
  }

  50% {
    box-shadow: 0 0 12px 4px rgba(46, 230, 166, 0.55);
  }
}

.server-card__badge[data-status="offline"] {
  background: rgba(255, 77, 109, 0.15);
  color: var(--offline);
}

/* Static "in development" badge — deliberately not pulsing, this isn't a live status */
.server-card__badge--dev {
  background: rgba(185, 139, 255, 0.18);
  color: var(--dev);
}

.server-card__description {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.server-card__players {
  font-weight: 600;
  color: var(--accent);
}

.server-card__meta {
  margin: 0.35rem 0 0;
  color: var(--text-dim);
  font-size: 0.8rem;
}

.server-card__meta:empty {
  display: none;
}

/* Player-count history sparkline -- shows a "collecting data" placeholder
   until localStorage has at least two recorded samples for this card, then
   swaps in the actual chart (see app.js renderSparkline()). Kept at a fixed
   height in both states so the card doesn't jump around as it fills in. */
.server-card__sparkline {
  height: 32px;
  margin: 0.6rem 0 0;
  display: flex;
  align-items: center;
}

.server-card__sparkline-placeholder {
  margin: 0;
  font-size: 0.75rem;
  font-style: italic;
  color: var(--text-dim);
}

.server-card__sparkline svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sparkline-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.sparkline-area {
  fill: var(--accent);
  opacity: 0.15;
  stroke: none;
}

.server-card__address {
  font-family: 'Consolas', monospace;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.4rem 0.6rem;
  border-radius: 0.5rem;
  display: inline-block;
  font-size: 0.85rem;
  cursor: help;
}

.server-card__address:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Hover/focus/tap popover showing live player/client detail for this
   server's address (see app.js renderAddressTooltip()/setupAddressTooltips()).
   Sits in normal document flow right after the address (not absolutely
   positioned) so it can't get clipped by the card's `overflow: hidden`. */
.server-card__tooltip {
  display: none;
  margin: 0.5rem 0 0;
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  max-height: 10rem;
  overflow-y: auto;
}

.server-card__address:hover + .server-card__tooltip,
.server-card__tooltip.is-visible {
  display: block;
}

.server-card__tooltip-title {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.server-card__tooltip-line {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.server-card__tooltip-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.8rem;
  color: var(--text);
  line-height: 1.5;
}

.server-card__tooltip-list li {
  overflow-wrap: anywhere;
}

.server-card__steps {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Quick-connect button — steam:// / ts3server:// deep links, styled as a prominent pill button */
.server-card__steam-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  background-size: 220% auto;
  background-position: 0% 50%;
  color: #06111a;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 18px rgba(0, 229, 255, 0.25);
  transition: background-position 0.4s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.server-card__steam-btn:hover {
  background-position: 100% 50%;
  box-shadow: 0 6px 24px rgba(0, 229, 255, 0.4);
  transform: translateY(-2px);
}

.server-card__steam-btn:active {
  transform: translateY(0);
}

.dev-section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.dev-section__heading {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin: 0 0 1.5rem;
}

.dev-grid {
  display: flex;
  justify-content: center;
}

.dev-card {
  width: 100%;
  max-width: 26rem;
}

.vps-status-section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.vps-status-section__heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin: 0 0 0.6rem;
}

.vps-status-section__icon {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
}

.vps-status-section__subtitle {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 34rem;
  margin: 0 auto 1.5rem;
}

/* Main VPS panel -- wider than a single server card since it holds two
   columns (services + resources) side by side on desktop. */
.vps-panel {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.75rem;
  text-align: left;
}

.vps-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.vps-panel__identity {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

/* Overall VPS reachability dot -- same online/offline color language and
   pulse animation as the server-card status badges, just a plain dot
   instead of a pill (this identity row already has a text label). */
.vps-panel__dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  flex: none;
  background: var(--unknown);
}

.vps-panel__dot[data-status="online"] {
  background: var(--online);
}

@media (prefers-reduced-motion: no-preference) {
  .vps-panel__dot[data-status="online"] {
    animation: badge-pulse 2.2s ease-in-out infinite;
  }
}

.vps-panel__dot[data-status="offline"] {
  background: var(--offline);
}

.vps-panel__title {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.vps-panel__ip {
  margin-left: 0.4rem;
  font-family: 'Consolas', monospace;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.vps-panel__uptime {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.vps-panel__count {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.vps-panel__count-total {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-dim);
}

.vps-panel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.vps-panel__subheading {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

.vps-services__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Compact per-service chip -- deliberately dense (dot + name + count) so
   this reads as a "server room" dashboard, distinct from the big media-led
   cards above rather than a smaller duplicate of them. */
.vps-service {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.6rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  min-width: 0;
}

.vps-service__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  flex: none;
  background: var(--unknown);
}

.vps-service[data-status="online"] .vps-service__dot {
  background: var(--online);
  box-shadow: 0 0 6px 1px rgba(46, 230, 166, 0.6);
}

.vps-service[data-status="offline"] .vps-service__dot {
  background: var(--offline);
}

.vps-service__name {
  flex: 1;
  min-width: 0;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vps-service__detail {
  flex: none;
  color: var(--text-dim);
  font-family: 'Consolas', monospace;
  font-size: 0.7rem;
}

.vps-resources {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.vps-resource__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.vps-resource__icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
}

.vps-resource__label {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.vps-bar {
  width: 100%;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.vps-bar__fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.4s ease, background 0.3s ease;
}

/* Severity color-coding -- load-vs-cores and mem/disk-percent-used cross
   into "keep an eye on this" (amber) or "act now" (red) territory using the
   same color tokens as the online/offline status language elsewhere. */
.vps-resource[data-severity="warn"] .vps-bar__fill {
  background: linear-gradient(90deg, var(--unknown), #ffe19a);
}

.vps-resource[data-severity="crit"] .vps-bar__fill {
  background: linear-gradient(90deg, var(--offline), #ff8fa8);
}

.vps-resource[data-severity="warn"] .vps-resource__label {
  color: var(--unknown);
}

.vps-resource[data-severity="crit"] .vps-resource__label {
  color: var(--offline);
}

/* Mini load/RAM history sparklines -- same client-side localStorage
   mechanism as the player-count sparklines on the cards above (see
   app.js), reused here for VPS metrics instead of player counts. Fixed
   height and quietly empty (no placeholder copy) until there's enough
   history: this is a secondary flourish under an already-live numeric
   reading, not the primary source of truth like the card sparklines are. */
.vps-mini-spark {
  height: 16px;
  margin-top: 0.35rem;
}

.vps-mini-spark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.vps-resource__subtext {
  margin: 0.3rem 0 0;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.site-footer {
  text-align: center;
  color: var(--text-dim);
  padding: 2rem 0;
  font-size: 0.85rem;
}

.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------------------------------------------------------------------- */
/* Mobile responsiveness                                                   */
/* ---------------------------------------------------------------------- */

@media (max-width: 640px) {
  .hero {
    padding: 2.75rem 1rem 2rem;
  }

  .hero__subtitle {
    font-size: 1rem;
    padding: 0 0.25rem;
  }

  .server-grid {
    gap: 1.25rem;
    padding: 0 1rem 3rem;
  }

  /* Below this width a "card" would otherwise land at an awkward in-between
     size (neither one comfortable column nor a real second column) — force
     full-width single-column cards instead. */
  .server-card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .dev-section {
    padding: 0 1rem 3rem;
  }

  .dev-card {
    max-width: 100%;
  }

  .vps-status-section {
    padding: 0 1rem 3rem;
  }

  .vps-panel {
    padding: 1.25rem;
  }

  /* Two side-by-side columns (services / resources) don't have room to
     breathe under ~640px -- stack them instead. */
  .vps-panel__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .server-card__body {
    padding: 1.25rem;
  }

  .server-card__header {
    flex-wrap: wrap;
    row-gap: 0.4rem;
  }

  /* Guarantee a comfortable ~44px touch target on the connect buttons. */
  .server-card__steam-btn {
    min-height: 44px;
    padding: 0.75rem 1.2rem;
  }

  /* The photo-credit caption is intentionally small/unobtrusive on desktop;
     bump it slightly on small screens so it stays legible rather than
     becoming a near-invisible speck. */
  .server-card__photo-credit {
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
  }
}

@media (max-width: 400px) {
  .hero {
    padding: 2rem 0.75rem 1.5rem;
  }

  .hero__title {
    font-size: clamp(2rem, 10vw, 2.5rem);
    letter-spacing: 0.03em;
  }

  .hero__subtitle {
    font-size: 0.95rem;
  }

  .server-card__name {
    font-size: 1.2rem;
  }

  .server-card__body {
    padding: 1rem;
  }

  /* Narrowest breakpoint: even the stacked single-column panel is tight for
     two service chips per row (long names like "TeamSpeak 3" start
     truncating) -- drop to one chip per row here. */
  .vps-services__list {
    grid-template-columns: 1fr;
  }

  .vps-panel__top {
    align-items: flex-start;
  }
}

/* Info note inside the second game-host panel ("O stroji" column). */
.vps-panel__note {
  margin: 0 0 12px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.62);
}
.vps-panel__note strong { color: rgba(226, 232, 240, 0.9); font-weight: 600; }

/* Per-server labels above the CPU/RAM bars in the second game-host panel. */
.games-usage__name {
  margin: 12px 0 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.85);
}
.games-usage__name:first-of-type { margin-top: 0; }

/* "Celkovo (stroj)" aggregate label — sits above the per-server usage. */
.games-usage__name--total {
  margin-top: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  color: rgba(226, 232, 240, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}

/* ===================================================================
   2026-09-25 — visual polish: liquid glass, aligned connect buttons,
   balanced games-node monitor (Celkovo strip + server tiles)
   =================================================================== */

/* Richer "liquid glass" */
.glass-card {
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  background:
    linear-gradient(160deg, rgba(255,255,255,0.065), rgba(255,255,255,0.015) 45%, rgba(9,17,28,0.10)),
    rgba(13,22,37,0.55);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 18px 46px rgba(0,0,0,0.42),
    inset 0 1px 0 rgba(255,255,255,0.14);
}
.glass-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(130% 70% at 12% -15%, rgba(0,229,255,0.10), transparent 55%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-card { background: rgba(15,24,40,0.94); }
}

/* Server cards: equal-height columns, connect buttons pinned to bottom (aligned per row) */
.server-card { display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.server-card:hover { transform: translateY(-4px); border-color: rgba(0,229,255,0.34);
  box-shadow: 0 28px 62px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,229,255,0.16), inset 0 1px 0 rgba(255,255,255,0.16); }
.server-card__body { display: flex; flex-direction: column; flex: 1 1 auto; }
.server-card__steam-btn { margin-top: auto; transition: transform .18s ease, box-shadow .25s ease, filter .2s ease;
  box-shadow: 0 8px 22px rgba(0,229,255,0.18), 0 4px 14px rgba(255,46,136,0.14); }
.server-card__steam-btn:hover { transform: translateY(-2px); filter: brightness(1.07);
  box-shadow: 0 12px 30px rgba(0,229,255,0.30), 0 6px 20px rgba(255,46,136,0.22); }
.server-card__steam-btn + .server-card__link { margin-top: 10px; margin-bottom: 0; }

/* Project links inside cards (cszm2.sevex.pro, ems.sevex.pro) -- unstyled they fell back
   to the browser default blue, barely readable on the dark glass (1.9:1 contrast). */
.server-card__link { margin: 0.9rem 0 0; font-size: 0.9rem; }
.server-card__link a { color: var(--accent); font-weight: 600; text-decoration: none; }
.server-card__link a:hover,
.server-card__link a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
