/**
 * Status page — same visual language as homepage
 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --accent: #ec4899;
    --success: #10b981;
    --warn: #f59e0b;
    --danger: #38bdf8;
    --text: #ffffff;
    --muted: #94a3b8;
    --text-secondary: #cbd5e1;
    --bg: #020617;
    --bg-elevated: #0f172a;
    --border: rgba(255, 255, 255, 0.1);
    --radius: 22px;
    --radius-sm: 14px;
    --font: 'Plus Jakarta Sans', system-ui, sans-serif;
    --display: 'Space Grotesk', system-ui, sans-serif;
    --header-h: 68px;
    --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }

.st-ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: var(--bg);
}
.st-ambient::before,
.st-ambient::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
}
.st-ambient::before {
    width: min(70vw, 720px);
    height: min(70vw, 720px);
    left: -12%;
    top: -18%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.75), transparent 68%);
    animation: blobA 18s ease-in-out infinite;
}
.st-ambient::after {
    width: min(60vw, 620px);
    height: min(60vw, 620px);
    right: -10%;
    top: 10%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.55), transparent 68%);
    animation: blobB 22s ease-in-out infinite;
}
.st-ambient .blob-3 {
    position: absolute;
    width: min(50vw, 480px);
    height: min(50vw, 480px);
    left: 35%;
    bottom: -15%;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.45), transparent 70%);
    animation: blobC 26s ease-in-out infinite;
}
.st-noise {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes blobA {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(8%, 12%) scale(1.08); }
}
@keyframes blobB {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10%, 8%) scale(1.12); }
}
@keyframes blobC {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(6%, -10%) scale(1.1); }
}

.st-wrap { position: relative; z-index: 2; }

.st-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1rem, 3.5vw, 2rem);
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
    border-bottom: 1px solid var(--border);
}
.st-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}
.st-brand img {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}
.st-brand span {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.03em;
}
.st-header-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.st-nav-link {
    color: var(--muted);
    font-weight: 650;
    font-size: 0.88rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    transition: 0.18s ease;
}
.st-nav-link:hover,
.st-nav-link.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}
.st-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: 0.35rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.22), rgba(236, 72, 153, 0.16));
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #e0e7ff;
    font-weight: 650;
    font-size: 0.84rem;
    transition: 0.2s ease;
}
.st-header-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.25);
}

.st-main {
    width: min(100%, var(--max));
    margin: 0 auto;
    padding: calc(var(--header-h) + 2rem) clamp(1rem, 3.5vw, 2rem) 3rem;
}

.st-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(18px);
    animation: riseIn 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}
@keyframes riseIn {
    to { opacity: 1; transform: none; }
}
.st-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-light);
    margin-bottom: 0.85rem;
}
.st-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(2.4rem, 7vw, 4.2rem);
    letter-spacing: -0.05em;
    line-height: 0.95;
    margin-bottom: 0.9rem;
}
.st-title span {
    background: linear-gradient(115deg, #fff 10%, var(--primary-light) 48%, var(--accent) 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.st-lead {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 38ch;
    margin-bottom: 1.1rem;
    font-weight: 500;
}
.st-hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}
.st-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
    animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.85); opacity: 0.7; }
}
.st-refresh {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: 0.18s ease;
}
.st-refresh:hover { border-color: rgba(129, 140, 248, 0.45); color: #fff; }
.st-refresh.is-spinning i { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.st-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
}
.st-sum-card {
    padding: 1.1rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(160deg, rgba(99, 102, 241, 0.12), rgba(15, 23, 42, 0.65));
    backdrop-filter: blur(12px);
}
.st-sum-card strong {
    display: block;
    font-family: var(--display);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.4rem;
}
.st-sum-card span {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 650;
}
.st-sum-card.updated strong { color: #6ee7b7; }
.st-sum-card.maintenance strong { color: #fcd34d; }
.st-sum-card.frozen strong { color: #7dd3fc; }

.st-section {
    opacity: 0;
    transform: translateY(14px);
    animation: riseIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}
.st-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 1rem;
}
.st-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.st-filter {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.75);
    color: #cbd5e1;
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    font-weight: 700;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: 0.18s ease;
}
.st-filter:hover { color: #fff; border-color: rgba(129, 140, 248, 0.4); }
.st-filter.is-active {
    color: #fff;
    border-color: transparent;
    background: #4f6bff;
    box-shadow: 0 8px 22px rgba(79, 107, 255, 0.28);
}
.st-search {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-width: min(100%, 240px);
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--muted);
}
.st-search input {
    flex: 1;
    border: none;
    background: transparent;
    color: #fff;
    outline: none;
    font-size: 0.9rem;
    font-weight: 550;
}
.st-search input::placeholder { color: #64748b; }

.st-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1.15rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}
.st-legend i { margin-right: 0.35rem; }
.st-legend .fa-circle-check { color: #6ee7b7; }
.st-legend .fa-rotate { color: #fcd34d; }
.st-legend .fa-snowflake { color: #7dd3fc; }

.st-games {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}
.st-loading,
.st-empty {
    grid-column: 1 / -1;
    padding: 2.5rem 1rem;
    text-align: center;
    color: var(--muted);
    border-radius: var(--radius);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: rgba(15, 23, 42, 0.4);
}

.st-game {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(165deg, rgba(99, 102, 241, 0.12), rgba(15, 23, 42, 0.78));
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(12px);
    animation: riseIn 0.5s ease forwards;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.st-game:hover {
    border-color: rgba(129, 140, 248, 0.35);
    box-shadow: 0 18px 44px rgba(99, 102, 241, 0.16);
}
.st-game.tone-maintenance {
    background: linear-gradient(165deg, rgba(245, 158, 11, 0.1), rgba(15, 23, 42, 0.78));
}
.st-game.tone-frozen {
    background: linear-gradient(165deg, rgba(56, 189, 248, 0.1), rgba(15, 23, 42, 0.78));
}

.st-game-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.st-game-media {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0b1220;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.st-game-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.st-game-meta { min-width: 0; }
.st-game-name {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}
.st-game-count {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.st-products {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.st-product {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.st-product-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}
.st-product.updated .st-product-dot {
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}
.st-product.maintenance .st-product-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}
.st-product.frozen .st-product-dot {
    background: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16);
}
.st-product-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.st-product-body strong {
    font-size: 0.95rem;
    font-weight: 750;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.st-product-body span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
}
.st-product.updated .st-product-body span,
.st-product.updated > i { color: #6ee7b7; }
.st-product.maintenance .st-product-body span,
.st-product.maintenance > i { color: #fcd34d; }
.st-product.frozen .st-product-body span,
.st-product.frozen > i { color: #7dd3fc; }
.st-product > i {
    font-size: 0.95rem;
    opacity: 0.9;
}

.st-footer {
    width: min(100%, var(--max));
    margin: 0 auto;
    padding: 1.5rem clamp(1rem, 3.5vw, 2rem) 2.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    color: var(--muted);
    font-size: 0.88rem;
}
.st-footer-links {
    display: flex;
    gap: 0.95rem;
}
.st-footer a:hover { color: #fff; }

@media (max-width: 900px) {
    .st-hero { grid-template-columns: 1fr; }
    .st-games { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .st-brand span,
    .st-header-cta span { display: none; }
    .st-summary { grid-template-columns: 1fr; }
    .st-game-media { width: 56px; height: 56px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .st-ambient::before,
    .st-ambient::after,
    .st-ambient .blob-3,
    .st-live-dot,
    .st-hero,
    .st-section,
    .st-game { animation: none; opacity: 1; transform: none; }
}
