/* YGORDONA: mobile server cards — layout + matching desktop visual style. */
@media screen and (max-width: 767.98px) {
  html body .wapper .monitoring {
    display:block !important; width:100% !important; max-width:100% !important;
    height:auto !important; min-height:0 !important; max-height:none !important;
    overflow:visible !important; overflow-x:visible !important;
    margin:0 0 22px !important; padding:0 !important; text-align:left !important;
  }
  html body .wapper .monitoring > #servers {
    display:grid !important; grid-template-columns:minmax(0,1fr) !important;
    grid-auto-flow:row !important; align-items:stretch !important; gap:14px !important;
    width:100% !important; max-width:100% !important; height:auto !important;
    min-height:0 !important; max-height:none !important; margin:0 !important;
    padding:0 14px !important; overflow:visible !important; white-space:normal !important;
    box-sizing:border-box !important;
  }
  html body .wapper .monitoring > #servers > .server {
    display:grid !important; grid-template-columns:104px minmax(0,1fr) !important;
    grid-template-rows:auto auto auto auto !important; column-gap:14px !important;
    width:100% !important; min-width:0 !important; max-width:100% !important;
    height:auto !important; min-height:156px !important; max-height:none !important;
    margin:0 !important; padding:15px !important; float:none !important;
    position:relative !important; box-sizing:border-box !important;
    white-space:normal !important; overflow:hidden !important;
    border:1px solid rgba(174,91,255,.78) !important;
    border-bottom:2px solid rgba(174,91,255,.95) !important;
    border-radius:17px !important;
    background:linear-gradient(135deg,rgba(31,31,55,.96),rgba(24,27,48,.94)) !important;
    box-shadow:0 7px 22px rgba(0,0,0,.30),0 0 13px rgba(139,55,255,.17) !important;
  }
  html body .wapper .monitoring > #servers > .server:nth-child(odd),
  html body .wapper .monitoring > #servers > .server:nth-child(3n) {
    background:linear-gradient(135deg,rgba(31,31,55,.96),rgba(24,27,48,.94)) !important;
    border:1px solid rgba(174,91,255,.78) !important;
    border-bottom:2px solid rgba(174,91,255,.95) !important;
  }
  /* Override legacy tablet/mobile carousel offsets from primary.css. */
  html body .wapper .monitoring > #servers > .server:first-child,
  html body .wapper .monitoring #servers > .server:first-child {
    margin-left:0 !important; left:auto !important; transform:none !important;
    justify-self:stretch !important; width:100% !important; max-width:100% !important;
  }
  html body .wapper .monitoring > #servers > .server {
    margin-right:0 !important; left:auto !important; transform:none !important;
    justify-self:stretch !important;
  }
  html body .wapper .monitoring > #servers > .server > p:nth-of-type(2) {
    cursor:pointer !important; pointer-events:auto !important;
    touch-action:manipulation !important; position:relative !important; z-index:3 !important;
  }
  html body .wapper .monitoring > #servers > .server h3 {
    grid-column:1 / -1 !important; grid-row:1 !important;
    min-width:0 !important; margin:0 0 12px !important; padding:0 !important;
    color:#eee9ff !important; font-size:17px !important; line-height:1.25 !important;
    font-weight:800 !important; letter-spacing:.1px !important;
    white-space:normal !important; overflow:hidden !important; text-overflow:ellipsis !important;
    text-shadow:0 1px 5px rgba(0,0,0,.45) !important;
  }
  html body .wapper .monitoring > #servers > .server .map-image {
    position:static !important; grid-column:1 !important; grid-row:2 / 5 !important;
    width:104px !important; height:104px !important; min-width:104px !important;
    min-height:104px !important; max-width:104px !important; max-height:104px !important;
    margin:0 !important; border-radius:12px !important;
    background-size:cover !important; background-position:center !important;
    box-shadow:0 3px 10px rgba(0,0,0,.30) !important;
  }
  html body .wapper .monitoring > #servers > .server > p {
    position:static !important; grid-column:2 !important; width:auto !important;
    min-width:0 !important; max-width:100% !important; height:auto !important;
    margin:0 0 9px !important; padding:0 !important;
    color:#d4c9ed !important; font-size:15px !important; line-height:1.35 !important;
    font-weight:600 !important; white-space:normal !important; overflow-wrap:anywhere !important;
    text-overflow:clip !important;
  }
  html body .wapper .monitoring > #servers > .server > p:nth-of-type(1) { grid-row:2 !important; }
  html body .wapper .monitoring > #servers > .server > p:nth-of-type(2) { grid-row:3 !important; color:#f0d28a !important; }
  html body .wapper .monitoring > #servers > .server > p:nth-of-type(3) { grid-row:4 !important; margin-bottom:0 !important; }
  html body .wapper .monitoring > #servers > .server > p a {
    color:#70dcff !important; font-weight:800 !important; text-decoration:none !important;
  }
  html body .wapper .monitoring > #servers > .server:nth-child(2) > p a { color:#ffd078 !important; }
  html body .wapper .monitoring > #servers > .server:nth-child(3) > p a { color:#66e5c0 !important; }
}
@media screen and (min-width:768px) {
  /* This stylesheet intentionally does not alter desktop monitoring. */
}

/* v5: deterministic mobile card fields by explicit template classes */
@media screen and (max-width: 767.98px) {
  html body .wapper .monitoring > #servers > .server > p.server-map-name {
    grid-column:2 !important; grid-row:2 !important;
    margin:0 0 9px !important; color:#d4c9ed !important;
  }
  html body .wapper .monitoring > #servers > .server > p.server-player-count {
    grid-column:2 !important; grid-row:3 !important;
    margin:0 0 9px !important; color:#f0d28a !important;
    cursor:pointer !important; pointer-events:auto !important;
    touch-action:manipulation !important; position:relative !important; z-index:3 !important;
  }
  html body .wapper .monitoring > #servers > .server > p.server-address {
    grid-column:2 !important; grid-row:4 !important;
    margin:0 !important; color:#70dcff !important;
  }
}
