:root {
    color-scheme: dark;
    --bg: #05070d;
    --panel: rgba(12, 18, 32, .88);
    --panel-2: rgba(16, 27, 49, .76);
    --line: rgba(78, 179, 255, .22);
    --text: #f3f8ff;
    --muted: #9fb4cc;
    --blue: #12a8ff;
    --blue-2: #4dd8ff;
    --danger: #ff5470;
    --ok: #54f0aa;
    --warning: #ffd166;
    font-family: Inter, Segoe UI, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 8%, rgba(18, 168, 255, .28), transparent 28rem),
        radial-gradient(circle at 88% 18%, rgba(77, 216, 255, .18), transparent 24rem),
        linear-gradient(145deg, #03050a, #07111f 55%, #03060d);
    color: var(--text);
}

a {
    color: var(--blue-2);
    text-decoration: none;
}

.shell {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(22px);
    background: rgba(5, 7, 13, .72);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--blue), var(--blue-2));
    box-shadow: 0 0 32px rgba(18, 168, 255, .55);
}

.nav a {
    color: var(--muted);
    font-weight: 700;
}

.nav a:hover,
.nav a.active {
    color: var(--text);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    gap: 28px;
    padding: 58px 0 34px;
    align-items: stretch;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1;
    margin: 0 0 18px;
    letter-spacing: 0;
}

.hero p {
    max-width: 680px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.panel {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255,255,255,.05);
}

.panel-inner {
    padding: 24px;
}

.glass-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 28px;
}

.metric {
    border: 1px solid var(--line);
    background: rgba(11, 22, 40, .65);
    border-radius: 18px;
    padding: 16px;
}

.metric b {
    display: block;
    font-size: 24px;
}

.muted {
    color: var(--muted);
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
}

.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.section {
    padding: 24px 0 60px;
}

.section h2,
.panel h2,
.panel h3 {
    margin: 0 0 14px;
    letter-spacing: 0;
}

.btn,
button,
input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 0;
    border-radius: 14px;
    padding: 0 18px;
    background: linear-gradient(145deg, var(--blue), #006fff);
    color: white;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(18, 168, 255, .26);
}

.btn.secondary {
    background: rgba(255, 255, 255, .08);
    color: var(--text);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, .1);
}

.btn.danger {
    background: rgba(255, 84, 112, .18);
    color: #ffd4dc;
    box-shadow: none;
    border: 1px solid rgba(255, 84, 112, .35);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

label {
    display: block;
    margin: 12px 0 7px;
    color: #d8eaff;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(78, 179, 255, .22);
    border-radius: 14px;
    background: rgba(2, 8, 17, .76);
    color: var(--text);
    padding: 12px 14px;
    outline: none;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(77, 216, 255, .78);
    box-shadow: 0 0 0 4px rgba(18, 168, 255, .12);
}

.checkline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    color: var(--muted);
}

.checkline input {
    width: auto;
}

.alert {
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(77, 216, 255, .22);
    background: rgba(18, 168, 255, .1);
}

.alert.error {
    border-color: rgba(255, 84, 112, .35);
    background: rgba(255, 84, 112, .12);
}

.game-card {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(8, 15, 28, .88);
}

.game-card img.cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #07111f;
}

.game-body {
    padding: 16px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 0 10px;
    color: #dbf5ff;
    border: 1px solid rgba(77, 216, 255, .28);
    background: rgba(18, 168, 255, .12);
    font-size: 12px;
    font-weight: 800;
}

.badge.ok {
    color: #d9ffee;
    border-color: rgba(84, 240, 170, .3);
    background: rgba(84, 240, 170, .12);
}

.badge.warn {
    color: #fff2c7;
    border-color: rgba(255, 209, 102, .35);
    background: rgba(255, 209, 102, .12);
}

.badge.bad {
    color: #ffd6dd;
    border-color: rgba(255, 84, 112, .35);
    background: rgba(255, 84, 112, .12);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    text-align: left;
    padding: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    vertical-align: top;
}

.table th {
    color: var(--muted);
    font-size: 13px;
}

.split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.footer {
    color: var(--muted);
    border-top: 1px solid rgba(78, 179, 255, .18);
    padding: 28px 0 48px;
}

@media (max-width: 860px) {
    .hero,
    .grid,
    .glass-strip {
        grid-template-columns: 1fr;
    }

    .span-4,
    .span-5,
    .span-6,
    .span-7,
    .span-8,
    .span-12 {
        grid-column: span 1;
    }

    .nav {
        flex-wrap: wrap;
        padding: 12px 0;
    }
}
