/* Stage 2 / task 13: live details from the existing GameCMS server response. */
.fox-server-strip {
    grid-template-columns: 54px minmax(0, 1.4fr) 132px minmax(150px, 1fr);
}

.fox-server-name {
    gap: 6px;
}

.fox-server-plaque {
    border: 1px solid rgba(var(--fox-rgb-as4l15, 193, 122, 255), .45);
    border-radius: 9px;
    background: linear-gradient(105deg, rgba(var(--fox-rgb-ts2l8, 102, 40, 161), .31), rgba(var(--fox-rgb-ts2l2, 22, 14, 42), .76));
    box-shadow: inset 0 1px rgba(var(--fox-rgb-gs4l19, 247, 222, 255), clamp(0, calc(.07 * var(--fox-glow-strength, 1)), 1)), 0 0 13px rgba(var(--fox-rgb-gs3l11, 148, 64, 227), clamp(0, calc(.11 * var(--fox-glow-strength, 1)), 1));
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.fox-server-plaque[hidden] {
    display: none !important;
}

.fox-server-name .fox-server-title-plaque {
    display: block;
    width: fit-content;
    max-width: 100%;
    min-height: 30px;
    padding: 5px 10px;
    font-size: 15px;
    line-height: 18px;
}

.fox-server-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.fox-server-map-plaque,
.fox-server-ip-plaque {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    min-height: 31px;
    padding: 5px 9px;
}

.fox-server-map-plaque {
    min-width: 0;
}

.fox-server-map-plaque svg,
.fox-server-ip-plaque svg {
    display: block;
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    color: var(--fox-tone-as4l16, #c892fa);
}

.fox-server-name .fox-server-map-plaque [data-fox-server-map] {
    display: block;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--fox-tone-as3l17, #e1c6f6);
    font-size: 12px;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fox-server-name [data-fox-server-map]::before {
    content: none !important;
}

.fox-server-ip-plaque {
    position: relative;
    flex: 0 1 auto;
    min-width: 0;
    cursor: pointer;
    appearance: none;
    color: var(--fox-tone-as4l17, #d7a8ff);
    text-align: left;
}

.fox-server-ip-plaque:focus-visible {
    outline: 2px solid var(--fox-tone-as4l17, #e4b4ff);
    outline-offset: 2px;
}

.fox-server-name .fox-server-ip-ink,
.fox-server-name [data-fox-server-address] {
    display: inline;
    margin: 0;
    color: var(--fox-tone-as4l17, #d7a8ff);
    font-size: 13px;
    font-weight: 800;
    line-height: 18px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.fox-server-name .fox-server-ip-ink {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 8px rgba(var(--fox-rgb-gs4l12, 193, 61, 255), clamp(0, calc(.2 * var(--fox-glow-strength, 1)), 1));
}

.fox-server-strip.is-server-offline .fox-server-name .fox-server-ip-ink {
    background: none;
    color: var(--fox-muted);
    -webkit-text-fill-color: currentColor;
    animation: none;
    text-shadow: none;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .fox-server-name .fox-server-ip-ink {
        background-image: linear-gradient(90deg, var(--fox-tone-ts3l14, #af79f6), var(--fox-tone-ts4l17, #e4b4ff) 25%, var(--fox-tone-ts3l14, #a86ff1) 50%, var(--fox-tone-ts4l16, #d69aff) 75%, var(--fox-tone-ts3l14, #af79f6));
        background-size: 50% 100%;
        background-repeat: repeat-x;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: fox-online-text-flow 8s linear infinite;
    }
}

.fox-server-name .fox-server-copy-tooltip {
    position: absolute;
    right: 50%;
    bottom: calc(100% + 7px);
    display: block;
    width: max-content;
    max-width: 190px;
    margin: 0;
    padding: 6px 9px;
    border: 1px solid rgba(var(--fox-rgb-as4l16, 213, 158, 255), .55);
    border-radius: 7px;
    background: var(--fox-tone-as2l3, #251537);
    box-shadow: 0 6px 18px rgba(var(--fox-rgb-gs3l0, 4, 2, 10), clamp(0, calc(.5 * var(--fox-glow-strength, 1)), 1));
    color: var(--fox-tone-as4l19, #f9edff);
    font-size: 11px;
    line-height: 1.25;
    opacity: 0;
    pointer-events: none;
    transform: translate(50%, 4px);
    transition: opacity .18s ease, transform .18s ease;
    white-space: nowrap;
    z-index: 4;
}

.fox-server-ip-plaque:hover .fox-server-copy-tooltip,
.fox-server-ip-plaque:focus-visible .fox-server-copy-tooltip,
.fox-server-ip-plaque[data-fox-copy-state] .fox-server-copy-tooltip {
    opacity: 1;
    transform: translate(50%, 0);
}

.fox-server-name .fox-server-copy-feedback,
.fox-server-online .fox-server-status-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.fox-server-image,
.fox-server-progress,
.fox-server-online i,
.fox-server-online strong {
    transition: transform .25s ease, box-shadow .25s ease;
}

.fox-server-online.is-unavailable i {
    background: #ff5b83;
    box-shadow: 0 0 0 4px rgba(255, 71, 117, .13), 0 0 17px rgba(255, 71, 117, .5);
    opacity: 1;
}

.fox-server-online.is-loading i {
    background: #8b7b9d;
    box-shadow: 0 0 0 4px rgba(161, 139, 182, .1);
}

.fox-server-online.is-loading strong {
    background: none;
    color: var(--fox-muted);
    -webkit-text-fill-color: currentColor;
    animation: none;
    text-shadow: none;
}

.fox-server-online:not(.is-loading) i {
    animation: fox-server-online-pulse 3.2s ease-in-out infinite;
}

@keyframes fox-server-online-pulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.25); }
}

@media (hover: hover) and (pointer: fine) {
    .fox-server-plaque:hover,
    .fox-server-image:hover,
    .fox-server-progress:hover {
        transform: scale(1.025);
    }

    .fox-server-online i:hover {
        transform: scale(1.1);
    }

    .fox-server-online strong:hover {
        transform: scale(1.035);
    }

    .fox-server-plaque:hover {
        border-color: rgba(var(--fox-rgb-as4l17, 225, 173, 255), .74);
        box-shadow: inset 0 1px rgba(var(--fox-rgb-gs4l19, 247, 222, 255), clamp(0, calc(.1 * var(--fox-glow-strength, 1)), 1)), 0 0 17px rgba(var(--fox-rgb-gs3l13, 173, 77, 243), clamp(0, calc(.24 * var(--fox-glow-strength, 1)), 1));
    }
}

@media (max-width: 1199px) {
    .fox-server-strip {
        grid-template-columns: 54px minmax(0, 1fr) 112px;
    }
}

@media (max-width: 768px) {
    .fox-server-strip {
        grid-template-columns: 48px minmax(0, 1fr);
    }
}

@media (max-width: 420px) {
    .fox-server-name .fox-server-title-plaque { font-size: 13px; }
    .fox-server-name .fox-server-ip-ink,
    .fox-server-name [data-fox-server-address] { font-size: 12px; }
    .fox-server-map-plaque,
    .fox-server-ip-plaque { padding: 5px 7px; }
}

@media (prefers-reduced-motion: reduce) {
    .fox-server-plaque,
    .fox-server-image,
    .fox-server-progress,
    .fox-server-online i,
    .fox-server-online strong,
    .fox-server-name .fox-server-ip-ink,
    .fox-server-name .fox-server-copy-tooltip {
        animation: none;
        transition: none;
    }
}
