* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Palette ZYRANEX -- inspirée du logo doré */
    --bg: #1a0f08;
    --bg-alt: #261a10;
    --bg-deep: #120a05;
    --line: #3a2818;
    --line-strong: #5a3a22;
    --text: #fff5dc;
    --text-dim: #c9a878;
    --gold: #ffcc33;
    --gold-light: #ffe082;
    --gold-deep: #f5a623;
    --orange: #e87f1a;
    --brown: #4a1f0a;
    --brown-deep: #2b1003;
    --accent: #ffcc33;
    --accent-2: #ff8a1f;
    --ok: #8bc34a;
    --warn: #ffaa00;
    --err: #ff5555;
    --pix: "Press Start 2P", monospace;
    --mono: "VT323", "IBM Plex Mono", Consolas, monospace;

    /* Arrondis modernes */
    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 24px;
    --r-pill: 999px;
}

html,
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--mono);
    font-size: 20px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    background:
        radial-gradient(
            ellipse 80% 60% at 50% -10%,
            rgba(255, 204, 51, 0.18) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse 60% 50% at 90% 100%,
            rgba(232, 127, 26, 0.12) 0%,
            transparent 60%
        ),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
    min-height: 100vh;
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 204, 51, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 204, 51, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: -1px -1px;
    pointer-events: none;
    z-index: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ----- PAGE TRANSITIONS ----- */
main {
    animation: pageEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
    will-change: opacity, transform;
}

@keyframes pageEnter {
    0% {
        opacity: 0;
        transform: translateY(14px);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

body.is-leaving main {
    animation: pageExit 0.32s cubic-bezier(0.55, 0, 0.65, 0.2) both;
}

@keyframes pageExit {
    0% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
        filter: blur(3px);
    }
}

body.is-leaving header,
body.is-leaving footer {
    animation: headFootFade 0.32s cubic-bezier(0.55, 0, 0.65, 0.2) both;
}

@keyframes headFootFade {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

@media (prefers-reduced-motion: reduce) {
    main,
    body.is-leaving main,
    body.is-leaving header,
    body.is-leaving footer {
        animation: none !important;
    }
}

/* ----- HEADER ----- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(18, 10, 5, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--line);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

header.is-hidden {
    transform: translateY(-100%);
}

body {
    padding-top: 78px;
}

@media (max-width: 760px) {
    body {
        padding-top: 86px;
    }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s ease;
}

.brand:hover {
    transform: translateY(1px);
}

.brand-logo {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(255, 204, 51, 0.35));
}

.brand-text {
    font-family: var(--pix);
    font-size: 12px;
    color: var(--gold);
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 var(--brown-deep);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--line-strong);
    border-radius: var(--r-md);
    padding: 0;
    cursor: pointer;
    width: 42px;
    height: 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.15s ease;
}

.menu-toggle:hover {
    border-color: var(--gold);
    background: rgba(255, 204, 51, 0.08);
}

.menu-toggle:active {
    transform: translateY(1px);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 3px;
    background: var(--gold);
    border-radius: 1px;
    transition:
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

nav {
    display: flex;
    gap: 4px;
}

nav a {
    font-family: var(--pix);
    font-size: 10px;
    color: var(--text-dim);
    padding: 10px 14px;
    border: 2px solid transparent;
    border-radius: var(--r-md);
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
    letter-spacing: 1.5px;
}

nav a:hover {
    color: var(--gold-light);
    border-color: rgba(255, 204, 51, 0.5);
    background: rgba(255, 204, 51, 0.08);
    transform: translateY(2px);
}

nav a:active {
    transform: translateY(3px);
    transition-duration: 0.05s;
}

nav a.active {
    color: var(--brown-deep);
    background: var(--gold);
    border-color: var(--gold-deep);
    box-shadow: 0 3px 0 var(--brown);
}

nav a.active:hover {
    color: var(--brown-deep);
    background: var(--gold-light);
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--brown);
}

nav a.active:active {
    transform: translateY(3px);
    box-shadow: 0 0 0 var(--brown);
}

/* ----- HERO ----- */
.hero {
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 36px;
    animation: heroLogoIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-logo {
    width: 100%;
    max-width: 720px;
    height: auto;
    filter: drop-shadow(0 8px 0 rgba(74, 31, 10, 0.6))
        drop-shadow(0 14px 40px rgba(255, 204, 51, 0.35));
    animation: heroLogoFloat 4s ease-in-out infinite;
}

@keyframes heroLogoIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.92);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroLogoFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.kicker {
    font-family: var(--pix);
    font-size: 10px;
    color: var(--gold);
    margin-bottom: 22px;
    letter-spacing: 2.5px;
    min-height: 14px;
    text-align: center;
}

.kicker .caret {
    display: inline-block;
    margin-left: 2px;
    animation: caretBlink 0.9s steps(2) infinite;
}

@keyframes caretBlink {
    0%,
    50% {
        opacity: 1;
    }
    51%,
    100% {
        opacity: 0;
    }
}

.hero-tagline {
    font-family: var(--pix);
    font-size: 16px;
    color: var(--gold-light);
    text-align: center;
    letter-spacing: 2px;
    line-height: 1.6;
    margin-bottom: 24px;
    text-shadow: 3px 3px 0 var(--brown-deep);
}

.hero-text {
    max-width: 620px;
    margin: 0 auto 36px;
    color: var(--text-dim);
    font-size: 22px;
    text-align: center;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* ----- BUTTONS ----- */
.pix-btn {
    font-family: var(--pix);
    font-size: 11px;
    letter-spacing: 1.5px;
    padding: 16px 24px;
    color: var(--text);
    background: var(--bg-alt);
    border: 2px solid var(--line-strong);
    border-radius: var(--r-md);
    cursor: pointer;
    position: relative;
    display: inline-block;
    overflow: hidden;
    transition:
        transform 0.15s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
    box-shadow: 0 4px 0 var(--brown-deep);
    text-transform: uppercase;
}

.pix-btn:hover {
    transform: translateY(2px);
    border-color: var(--gold);
    color: var(--gold-light);
    box-shadow: 0 2px 0 var(--brown-deep);
}

.pix-btn:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 var(--brown-deep);
}

.pix-btn-primary {
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
    color: var(--brown-deep);
    border-color: var(--brown);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        0 4px 0 var(--brown);
}

.pix-btn-primary:hover {
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
    color: var(--brown-deep);
    border-color: var(--brown);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        0 2px 0 var(--brown);
}

.pix-btn-primary:active {
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        0 0 0 var(--brown);
}

/* ----- IP / DISCORD BAR ----- */
.ip-wrap {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.info-bar {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border: 2px solid var(--line-strong);
    background: rgba(38, 26, 16, 0.6);
    border-radius: var(--r-md);
    backdrop-filter: blur(8px);
    flex-wrap: wrap;
    margin: 0 auto;
}

.info-label {
    font-family: var(--pix);
    font-size: 10px;
    color: var(--gold);
    letter-spacing: 1.5px;
}

.info-value {
    font-family: var(--mono);
    font-size: 22px;
    color: var(--text);
}

.copy-btn {
    font-family: var(--pix);
    font-size: 9px;
    padding: 8px 12px;
    background: transparent;
    color: var(--text-dim);
    border: 2px solid var(--line-strong);
    border-radius: var(--r-sm);
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(255, 204, 51, 0.05);
}

.copy-btn.copied {
    border-color: var(--ok);
    color: var(--ok);
    background: rgba(139, 195, 74, 0.08);
}

/* ----- SECTIONS ----- */
.section {
    padding: 80px 0;
    position: relative;
}

.section + .section {
    border-top: 2px solid var(--line);
}

.section-alt {
    background: rgba(38, 26, 16, 0.4);
}

.section-title {
    font-family: var(--pix);
    font-size: 18px;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 40px;
    padding-bottom: 16px;
    border-bottom: 2px dashed var(--line-strong);
    text-shadow: 2px 2px 0 var(--brown-deep);
}

/* ----- FEATURE GRID ----- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.feature-card {
    padding: 28px 24px;
    background: linear-gradient(
        180deg,
        rgba(38, 26, 16, 0.9) 0%,
        rgba(26, 15, 8, 0.9) 100%
    );
    border: 2px solid var(--line-strong);
    border-radius: var(--r-lg);
    position: relative;
    overflow: hidden;
    transition:
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--gold) 0%,
        var(--orange) 50%,
        var(--gold) 100%
    );
    opacity: 0;
    transition: opacity 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 204, 51, 0.2);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-num {
    font-family: var(--pix);
    font-size: 10px;
    color: var(--gold-deep);
    margin-bottom: 16px;
    letter-spacing: 1.5px;
}

.feature-card h3 {
    font-family: var(--pix);
    font-size: 14px;
    color: var(--gold-light);
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    line-height: 1.4;
}

.feature-card p {
    color: var(--text-dim);
    font-size: 19px;
    line-height: 1.6;
}

/* ----- STATUS PANEL ----- */
.status-panel {
    border: 2px solid var(--line-strong);
    background: linear-gradient(
        180deg,
        rgba(38, 26, 16, 0.9) 0%,
        rgba(26, 15, 8, 0.9) 100%
    );
    border-radius: var(--r-lg);
    padding: 28px;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.status-label {
    font-family: var(--pix);
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.status-value {
    font-family: var(--pix);
    font-size: 14px;
    color: var(--gold-light);
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: var(--ok);
    border-radius: 2px;
    box-shadow:
        0 0 0 2px var(--bg-alt),
        0 0 0 4px var(--ok),
        0 0 10px var(--ok);
    animation: blink 1.6s ease-in-out infinite;
}

.dot-warn {
    background: var(--warn);
    box-shadow:
        0 0 0 2px var(--bg-alt),
        0 0 0 4px var(--warn),
        0 0 10px var(--warn);
}

.dot-err {
    background: var(--err);
    box-shadow:
        0 0 0 2px var(--bg-alt),
        0 0 0 4px var(--err),
        0 0 10px var(--err);
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

/* ----- DISCORD SECTION ----- */
.discord-section {
    text-align: center;
}

.discord-text {
    max-width: 580px;
    margin: 0 auto 32px;
    color: var(--text-dim);
    font-size: 22px;
}

/* ----- FOOTER ----- */
footer {
    border-top: 2px solid var(--line);
    padding: 26px 0;
    background: var(--bg-deep);
    position: relative;
    z-index: 1;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--pix);
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-meta {
    color: var(--gold);
}

/* ----- CREDITS ----- */
.hero-sm {
    padding: 80px 0 50px;
}

.hero-title {
    font-family: var(--pix);
    font-size: 48px;
    line-height: 1.1;
    color: var(--gold);
    letter-spacing: 3px;
    margin-bottom: 24px;
    text-align: center;
    text-shadow:
        4px 4px 0 var(--brown),
        8px 8px 0 var(--brown-deep);
    animation: titleIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes titleIn {
    0% {
        opacity: 0;
        transform: translateY(-12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.credit-card {
    background: linear-gradient(
        180deg,
        rgba(38, 26, 16, 0.9) 0%,
        rgba(26, 15, 8, 0.9) 100%
    );
    border: 2px solid var(--line-strong);
    border-radius: var(--r-lg);
    padding: 24px 22px;
    position: relative;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    overflow: hidden;
}

.credit-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--line-strong);
    transition:
        background 0.25s ease,
        width 0.25s ease;
}

.credit-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 204, 51, 0.2);
}

.credit-card:hover::before {
    background: var(--gold);
    width: 10px;
}

.credit-role {
    font-family: var(--pix);
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    margin-left: 8px;
}

.credit-name {
    font-family: var(--mono);
    font-size: 26px;
    color: var(--gold-light);
    margin-bottom: 6px;
    margin-left: 8px;
    word-break: break-word;
}

.credit-tag {
    font-family: var(--mono);
    font-size: 18px;
    color: var(--gold);
    margin-left: 8px;
}

.credit-link {
    margin-top: 14px;
    margin-left: 8px;
    padding-top: 14px;
    border-top: 1px dashed var(--line-strong);
    color: var(--text-dim);
    transition:
        color 0.25s ease,
        transform 0.25s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.credit-link-label {
    font-family: var(--pix);
    font-size: 9px;
    letter-spacing: 1.5px;
}

a.credit-card:hover .credit-link {
    color: var(--gold);
    transform: translateX(4px);
}

.credit-owner {
    border-color: var(--gold);
}

.credit-owner::before {
    background: var(--gold);
}

.credit-owner .credit-role {
    color: var(--gold);
}

.credit-dev::before {
    background: var(--orange);
}

.credit-dev .credit-role {
    color: var(--orange);
}

.credit-dev:hover {
    border-color: var(--orange);
}

.credit-dev:hover::before {
    background: var(--orange);
}

.credits-thanks {
    margin-top: 56px;
    padding: 32px;
    border: 2px dashed var(--line-strong);
    border-radius: var(--r-lg);
    text-align: center;
    background: rgba(38, 26, 16, 0.4);
}

.credits-thanks p {
    color: var(--text-dim);
    font-size: 22px;
    margin-bottom: 20px;
}

.credits-thanks strong {
    color: var(--gold-light);
    font-weight: normal;
    background: rgba(255, 204, 51, 0.15);
    padding: 3px 10px;
    border-radius: var(--r-sm);
}

/* ----- REVEAL ANIMATIONS ----- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.feature-card.reveal:nth-child(1) {
    transition-delay: 0s;
}
.feature-card.reveal:nth-child(2) {
    transition-delay: 0.08s;
}
.feature-card.reveal:nth-child(3) {
    transition-delay: 0.16s;
}
.feature-card.reveal:nth-child(4) {
    transition-delay: 0.24s;
}

.hero-text,
.hero-actions,
.info-bar {
    opacity: 0;
    animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-text {
    animation-delay: 0.3s;
}
.hero-actions {
    animation-delay: 0.45s;
}
.info-bar {
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----- MAINTENANCE PAGE ----- */
.maintenance-body {
    overflow-x: hidden;
}

.maintenance-body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 204, 51, 0.02) 0px,
        rgba(255, 204, 51, 0.02) 1px,
        transparent 1px,
        transparent 3px
    );
    z-index: 2;
}

.maintenance-hero {
    padding: 80px 0 90px;
}

.maintenance-title {
    font-size: 56px;
    color: var(--gold);
}

.maintenance-title-alt {
    display: block;
    color: var(--orange);
    text-shadow:
        4px 4px 0 var(--brown),
        8px 8px 0 var(--brown-deep);
}

.maintenance-panel {
    margin: 12px auto 36px;
    border: 2px solid var(--line-strong);
    background: linear-gradient(
        180deg,
        rgba(38, 26, 16, 0.9) 0%,
        rgba(26, 15, 8, 0.9) 100%
    );
    border-radius: var(--r-lg);
    padding: 28px;
    max-width: 720px;
}

.maintenance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 2px dashed var(--line-strong);
}

.maintenance-value {
    color: var(--warn);
}

.loading-dots {
    font-family: var(--pix);
    font-size: 14px;
    color: var(--gold);
    letter-spacing: 1.5px;
}

.dot-anim {
    display: inline-block;
    animation: dotPulse 1.2s steps(2) infinite;
}

.dot-anim:nth-child(1) {
    animation-delay: 0s;
}
.dot-anim:nth-child(2) {
    animation-delay: 0.3s;
}
.dot-anim:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes dotPulse {
    0%,
    50% {
        opacity: 1;
    }
    51%,
    100% {
        opacity: 0.15;
    }
}

.maintenance-log {
    font-family: var(--mono);
    font-size: 18px;
    color: var(--text-dim);
    background: var(--bg-deep);
    border: 2px solid var(--line-strong);
    border-radius: var(--r-md);
    padding: 18px 20px;
    line-height: 1.7;
}

.maintenance-log p {
    opacity: 0;
    animation: logIn 0.3s ease forwards;
}

.maintenance-log p:nth-child(1) {
    animation-delay: 0.2s;
}
.maintenance-log p:nth-child(2) {
    animation-delay: 0.7s;
}
.maintenance-log p:nth-child(3) {
    animation-delay: 1.2s;
}
.maintenance-log p:nth-child(4) {
    animation-delay: 1.7s;
}
.maintenance-log p:nth-child(5) {
    animation-delay: 2.2s;
}

.log-err {
    color: var(--err);
}

.log-ok {
    color: var(--ok);
}

@keyframes logIn {
    from {
        opacity: 0;
        transform: translateX(-6px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ----- BADGES / CHIPS ----- */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--pix);
    font-size: 10px;
    color: var(--gold);
    padding: 8px 14px;
    background: rgba(255, 204, 51, 0.08);
    border: 1px solid rgba(255, 204, 51, 0.3);
    border-radius: var(--r-pill);
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.chip-dot {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--gold);
    animation: blink 1.6s ease-in-out infinite;
}

.chip-wrap {
    display: flex;
    justify-content: center;
}

/* ----- STATUS PAGE ----- */
.status-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 28px 0 14px;
}

.status-updated {
    text-align: center;
    font-family: var(--pix);
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    margin-top: 6px;
}

.status-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.stat-card {
    padding: 24px 22px;
    background: linear-gradient(
        180deg,
        rgba(38, 26, 16, 0.9) 0%,
        rgba(26, 15, 8, 0.9) 100%
    );
    border: 2px solid var(--line-strong);
    border-radius: var(--r-lg);
    position: relative;
    overflow: hidden;
    transition:
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 204, 51, 0.18);
}

.stat-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(
        circle at top right,
        rgba(255, 204, 51, 0.12),
        transparent 60%
    );
    pointer-events: none;
}

.stat-label {
    font-family: var(--pix);
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.stat-value {
    font-family: var(--pix);
    font-size: 16px;
    color: var(--gold-light);
    letter-spacing: 1.2px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    word-break: break-word;
}

.stat-big {
    font-size: 22px;
    color: var(--gold);
    text-shadow: 2px 2px 0 var(--brown-deep);
}

.stat-sep {
    color: var(--text-dim);
    margin: 0 2px;
}

.stat-unit {
    font-size: 12px;
    color: var(--text-dim);
}

.stat-foot {
    font-family: var(--mono);
    font-size: 17px;
    color: var(--text-dim);
    margin-top: 12px;
    line-height: 1.4;
}

.stat-bar {
    margin-top: 14px;
    height: 10px;
    background: var(--bg-deep);
    border: 2px solid var(--line-strong);
    border-radius: var(--r-pill);
    overflow: hidden;
    position: relative;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, var(--orange) 100%);
    box-shadow: 0 0 8px rgba(255, 204, 51, 0.4);
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.stat-card-state .stat-value {
    font-size: 18px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.stat-card-state .stat-foot {
    min-height: 1.4em;
}

/* Info grid (network info) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 4px 28px;
}

.info-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px dashed var(--line-strong);
    gap: 16px;
    flex-wrap: wrap;
}

.info-line:last-child {
    border-bottom: none;
}

.info-line-label {
    font-family: var(--pix);
    font-size: 10px;
    color: var(--gold);
    letter-spacing: 1.5px;
}

.info-line-value {
    font-family: var(--mono);
    font-size: 20px;
    color: var(--text);
    word-break: break-all;
    text-align: right;
}

/* MOTD panel */
.motd-panel {
    border: 2px solid var(--line-strong);
    background: linear-gradient(
        180deg,
        rgba(38, 26, 16, 0.9) 0%,
        rgba(26, 15, 8, 0.9) 100%
    );
    border-radius: var(--r-lg);
    padding: 4px;
}

.motd-screen {
    font-family: var(--mono);
    font-size: 20px;
    color: var(--gold-light);
    background: var(--bg-deep);
    border: 2px solid var(--line);
    border-radius: var(--r-md);
    padding: 22px 24px;
    line-height: 1.6;
    min-height: 80px;
    position: relative;
    overflow: hidden;
}

.motd-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 204, 51, 0.03) 0px,
        rgba(255, 204, 51, 0.03) 1px,
        transparent 1px,
        transparent 3px
    );
}

.motd-line {
    opacity: 0;
    animation: logIn 0.35s ease forwards;
    word-break: break-word;
}

/* Players panel */
.players-panel {
    border: 2px solid var(--line-strong);
    background: linear-gradient(
        180deg,
        rgba(38, 26, 16, 0.9) 0%,
        rgba(26, 15, 8, 0.9) 100%
    );
    border-radius: var(--r-lg);
    padding: 24px;
    min-height: 100px;
}

.players-empty {
    text-align: center;
    font-family: var(--mono);
    font-size: 20px;
    color: var(--text-dim);
    padding: 20px 0;
}

.players-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.player-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(18, 10, 5, 0.6);
    border: 2px solid var(--line-strong);
    border-radius: var(--r-md);
    transition:
        border-color 0.2s ease,
        transform 0.2s ease;
}

.player-chip:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.player-avatar {
    width: 36px;
    height: 36px;
    image-rendering: pixelated;
    border: 2px solid var(--line-strong);
    border-radius: var(--r-sm);
    background: var(--bg-deep);
    flex-shrink: 0;
}

.player-name {
    font-family: var(--mono);
    font-size: 19px;
    color: var(--text);
    word-break: break-word;
}

#refresh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Uptime history */
.uptime-panel {
    border: 2px solid var(--line-strong);
    background: linear-gradient(
        180deg,
        rgba(38, 26, 16, 0.9) 0%,
        rgba(26, 15, 8, 0.9) 100%
    );
    border-radius: var(--r-lg);
    padding: 28px;
}

.uptime-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.uptime-label {
    font-family: var(--pix);
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.uptime-value {
    font-family: var(--pix);
    font-size: 24px;
    color: var(--ok);
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 0 var(--brown-deep);
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.uptime-pct {
    font-size: 14px;
    color: var(--text-dim);
}

.uptime-legend {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    font-family: var(--pix);
    font-size: 8px;
    color: var(--text-dim);
    letter-spacing: 1.2px;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.legend-swatch {
    width: 14px;
    height: 14px;
    border-radius: 5px;
    border: 2px solid rgba(0, 0, 0, 0.35);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.25),
        inset 0 -2px 0 rgba(0, 0, 0, 0.3);
}

.legend-ok {
    background: var(--ok);
}
.legend-warn {
    background: var(--warn);
}
.legend-err {
    background: var(--err);
}
.legend-unknown {
    background: var(--line-strong);
    opacity: 0.7;
}

.uptime-bars {
    display: flex;
    gap: 4px;
    align-items: stretch;
    padding: 6px 0 10px;
    width: 100%;
}

.uptime-bar {
    flex: 1 1 0;
    min-width: 4px;
    height: 44px;
    border-radius: 8px;
    background: var(--line-strong);
    position: relative;
    cursor: pointer;
    border: 2px solid rgba(0, 0, 0, 0.4);
    box-shadow:
        inset 0 4px 0 rgba(255, 255, 255, 0.18),
        inset 0 -4px 0 rgba(0, 0, 0, 0.3);
    transition:
        transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.2s ease,
        filter 0.2s ease;
    transform-origin: center;
    animation: uptimeBarIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes uptimeBarIn {
    0% {
        opacity: 0;
        transform: translateY(8px) scaleY(0.2);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

.uptime-bar-ok {
    background: var(--ok);
}

.uptime-bar-warn {
    background: var(--warn);
}

.uptime-bar-err {
    background: var(--err);
}

.uptime-bar-unknown {
    background: var(--line-strong);
    opacity: 0.45;
    box-shadow:
        inset 0 4px 0 rgba(255, 255, 255, 0.06),
        inset 0 -4px 0 rgba(0, 0, 0, 0.15);
}

.uptime-bar-today {
    border-color: var(--gold);
    box-shadow:
        inset 0 4px 0 rgba(255, 255, 255, 0.25),
        inset 0 -4px 0 rgba(0, 0, 0, 0.3),
        0 0 0 1px var(--gold),
        0 0 12px rgba(255, 204, 51, 0.5);
}

.uptime-bar:hover {
    transform: translateY(-3px) scaleY(1.08);
    filter: brightness(1.1);
    z-index: 2;
}

.uptime-bar-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-deep);
    border: 2px solid var(--gold);
    border-radius: var(--r-sm);
    padding: 8px 12px;
    font-family: var(--pix);
    font-size: 9px;
    letter-spacing: 1.2px;
    color: var(--gold-light);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.uptime-bar-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--gold);
}

.uptime-bar:hover .uptime-bar-tooltip {
    opacity: 1;
}

.uptime-foot {
    display: flex;
    justify-content: space-between;
    font-family: var(--pix);
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    margin-top: 10px;
    gap: 12px;
    flex-wrap: wrap;
}

#uptime-summary {
    color: var(--gold);
}

/* Player chart */
.chart-panel {
    border: 2px solid var(--line-strong);
    background: linear-gradient(
        180deg,
        rgba(38, 26, 16, 0.9) 0%,
        rgba(26, 15, 8, 0.9) 100%
    );
    border-radius: var(--r-lg);
    padding: 28px;
}

.chart-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px dashed var(--line-strong);
}

.chart-stat {
    text-align: center;
}

.chart-stat-label {
    font-family: var(--pix);
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.chart-stat-value {
    font-family: var(--pix);
    font-size: 22px;
    color: var(--gold-light);
    text-shadow: 2px 2px 0 var(--brown-deep);
    letter-spacing: 1.2px;
}

.chart-wrap {
    position: relative;
    width: 100%;
    background: var(--bg-deep);
    border: 2px solid var(--line);
    border-radius: var(--r-md);
    padding: 12px;
    overflow: visible;
    min-height: 200px;
}

.chart-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 204, 51, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 204, 51, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: 0;
    border-radius: var(--r-md);
}

.chart-scroller {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    z-index: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-deep) rgba(255, 204, 51, 0.08);
}

.chart-scroller::-webkit-scrollbar {
    height: 10px;
}

.chart-scroller::-webkit-scrollbar-track {
    background: rgba(255, 204, 51, 0.06);
    border-radius: var(--r-sm);
    margin: 0 4px;
}

.chart-scroller::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-deep) 100%);
    border-radius: var(--r-sm);
    border: 2px solid var(--bg-deep);
}

.chart-scroller::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
}

.chart-svg {
    display: block;
    height: 180px;
    min-width: 100%;
    overflow: visible;
}

.chart-grid line {
    stroke: rgba(255, 204, 51, 0.1);
    stroke-width: 1;
    stroke-dasharray: 4 4;
    vector-effect: non-scaling-stroke;
}

.chart-area {
    fill: url(#chart-gradient);
}

.chart-line {
    fill: none;
    stroke: var(--gold);
    stroke-width: 3;
    stroke-linejoin: miter;
    stroke-linecap: square;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 0 6px rgba(255, 204, 51, 0.45));
}

.chart-point {
    fill: var(--gold-light);
    stroke: var(--brown-deep);
    stroke-width: 1.5;
    cursor: pointer;
    vector-effect: non-scaling-stroke;
    transition:
        fill 0.15s ease,
        transform 0.15s ease;
    transform-box: fill-box;
    transform-origin: center;
}

.chart-point:hover {
    fill: #fff;
}

.chart-empty {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--mono);
    font-size: 18px;
    color: var(--text-dim);
    text-align: center;
    padding: 0 20px;
    z-index: 1;
}

.chart-foot {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
    font-family: var(--pix);
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    gap: 12px;
    flex-wrap: wrap;
}

.chart-history-list {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

.chart-history-item,
.chart-history-empty {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px dashed var(--line-strong);
    gap: 12px;
}

.chart-history-item:last-child {
    border-bottom: none;
}

.chart-history-time {
    font-family: var(--pix);
    font-size: 10px;
    color: var(--gold);
    letter-spacing: 1.3px;
}

.chart-history-count {
    font-family: var(--mono);
    font-size: 18px;
    color: var(--gold-light);
}

.chart-history-empty {
    justify-content: center;
    font-family: var(--mono);
    font-size: 18px;
    color: var(--text-dim);
    padding: 20px;
}

.chart-point {
    pointer-events: all;
}

.chart-tooltip {
    position: absolute;
    left: 0;
    top: 0;
    background: var(--bg-deep);
    border: 2px solid var(--gold);
    border-radius: var(--r-sm);
    padding: 9px 12px;
    font-family: var(--pix);
    font-size: 9px;
    letter-spacing: 1.3px;
    color: var(--gold-light);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, calc(-100% - 12px));
    transition:
        opacity 0.15s ease,
        transform 0.15s ease;
    z-index: 20;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.6),
        0 0 12px rgba(255, 204, 51, 0.15);
    text-shadow: 1px 1px 0 var(--brown-deep);
}

.chart-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-top-color: var(--gold);
}

.chart-tooltip.visible {
    opacity: 1;
    transform: translate(-50%, calc(-100% - 16px));
}

.chart-tooltip-time {
    color: var(--gold);
    margin-right: 8px;
}

.chart-tooltip-sep {
    color: var(--text-dim);
    margin: 0 6px;
}

/* Player modal */
.player-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: playerModalIn 0.22s ease both;
}

.player-modal[hidden] {
    display: none;
}

.player-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 10, 5, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.player-modal-card {
    position: relative;
    z-index: 1;
    max-width: 380px;
    width: 100%;
    background: linear-gradient(
        180deg,
        rgba(38, 26, 16, 0.98) 0%,
        rgba(26, 15, 8, 0.98) 100%
    );
    border: 3px solid var(--gold);
    border-radius: var(--r-lg);
    padding: 30px 28px 26px;
    text-align: center;
    box-shadow:
        0 24px 50px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 204, 51, 0.15),
        0 0 40px rgba(255, 204, 51, 0.1);
    animation: playerModalCardIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.player-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: 2px solid transparent;
    color: var(--text-dim);
    font-family: var(--pix);
    font-size: 14px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: var(--r-sm);
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.player-modal-close:hover {
    color: var(--gold);
    background: rgba(255, 204, 51, 0.08);
    border-color: rgba(255, 204, 51, 0.4);
    transform: translateY(1px);
}

.player-modal-avatar {
    width: 88px;
    height: 88px;
    image-rendering: pixelated;
    border: 3px solid var(--line-strong);
    border-radius: var(--r-sm);
    background: var(--bg-deep);
    margin: 4px auto 14px;
    display: block;
    box-shadow:
        0 0 0 2px var(--bg-deep),
        0 0 0 4px var(--gold-deep);
}

.player-modal-tag {
    font-family: var(--pix);
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.player-modal-name {
    font-family: var(--pix);
    font-size: 16px;
    color: var(--gold);
    letter-spacing: 1.5px;
    margin-bottom: 22px;
    text-shadow: 2px 2px 0 var(--brown-deep);
    word-break: break-word;
    line-height: 1.3;
}

.player-modal-sub {
    font-family: var(--pix);
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--line-strong);
}

.player-modal-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@keyframes playerModalIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes playerModalCardIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.player-chip {
    cursor: pointer;
}

.player-chip:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 760px) {
    header .header-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 20px 24px;
    }

    .brand-logo {
        height: 32px;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 4px;
        background: rgba(18, 10, 5, 0.97);
        border-top: 2px solid var(--line);
        border-bottom: 2px solid var(--line);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 12px 16px 16px;
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition:
            opacity 0.2s ease,
            transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
        z-index: 49;
    }

    header.menu-open nav {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    nav a {
        width: 100%;
        text-align: center;
        padding: 14px 18px;
        font-size: 11px;
    }

    nav a:hover {
        transform: translateY(1px);
    }

    .hero {
        padding: 60px 0 50px;
    }

    .hero-logo {
        max-width: 92%;
    }

    .hero-tagline {
        font-size: 12px;
    }

    .hero-text {
        font-size: 19px;
    }

    .hero-title {
        font-size: 32px;
        letter-spacing: 2px;
        text-shadow:
            3px 3px 0 var(--brown),
            6px 6px 0 var(--brown-deep);
    }

    .maintenance-title {
        font-size: 36px;
    }

    .maintenance-title-alt {
        text-shadow:
            3px 3px 0 var(--brown),
            6px 6px 0 var(--brown-deep);
    }

    .section {
        padding: 56px 0;
    }

    .section-title {
        font-size: 14px;
    }

    .info-value {
        font-size: 18px;
    }

    .maintenance-hero {
        padding: 50px 0 60px;
    }

    .maintenance-panel {
        padding: 20px;
    }

    .maintenance-log {
        font-size: 16px;
        padding: 14px 16px;
    }

    .stat-value {
        font-size: 14px;
    }

    .stat-big {
        font-size: 18px;
    }

    .motd-screen {
        font-size: 17px;
        padding: 16px 18px;
    }

    .info-line-value {
        font-size: 17px;
        text-align: left;
    }

    .container {
        padding: 0 16px;
    }

    .uptime-panel,
    .chart-panel,
    .players-panel {
        padding: 18px 14px;
    }

    .uptime-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        margin-bottom: 16px;
    }

    .uptime-bars {
        gap: 1px;
        padding: 4px 0 8px;
    }

    .uptime-bar {
        height: 32px;
        border-radius: 4px;
        border-width: 1px;
        min-width: 3px;
    }

    .uptime-bar:hover {
        transform: none;
    }

    .uptime-bar-tooltip {
        font-size: 8px;
        padding: 6px 9px;
    }

    .uptime-value {
        font-size: 20px;
    }

    .uptime-legend {
        font-size: 7px;
        gap: 10px 14px;
    }

    .legend-swatch {
        width: 12px;
        height: 12px;
    }

    .uptime-foot {
        font-size: 8px;
        gap: 8px;
    }

    /* Mobile: hide chart, show text list of history */
    .chart-wrap,
    .chart-foot {
        display: none;
    }

    .chart-header {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        border-bottom: 1px dashed var(--line-strong);
        padding-bottom: 18px;
        margin-bottom: 18px;
    }

    .chart-history-list {
        display: block;
        max-height: 280px;
        overflow-y: auto;
        border: 2px solid var(--line);
        border-radius: var(--r-md);
        background: var(--bg-deep);
        padding: 0;
    }

    .chart-history-list::-webkit-scrollbar {
        width: 8px;
    }

    .chart-history-list::-webkit-scrollbar-track {
        background: rgba(255, 204, 51, 0.05);
    }

    .chart-history-list::-webkit-scrollbar-thumb {
        background: var(--gold-deep);
        border-radius: 4px;
    }

    .chart-stat-label {
        font-size: 8px;
        margin-bottom: 6px;
    }

    .chart-stat-value {
        font-size: 18px;
    }

    .player-chip {
        padding: 8px 10px;
        gap: 10px;
    }

    .player-avatar {
        width: 30px;
        height: 30px;
    }

    .player-name {
        font-size: 16px;
    }

    .players-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 8px;
    }

    .player-modal-card {
        padding: 24px 20px 22px;
    }

    .player-modal-avatar {
        width: 72px;
        height: 72px;
    }

    .player-modal-name {
        font-size: 14px;
    }

    .status-actions {
        gap: 10px;
    }

    .pix-btn {
        font-size: 10px;
        padding: 14px 18px;
    }

    .stat-card {
        padding: 20px 18px;
    }

    .stat-label {
        font-size: 8px;
        margin-bottom: 10px;
    }
}
