
:root {
    --bg: #0b0915;
    --surface: #171326;
    --surface-light: #241d39;
    --purple: #b48aff;
    --gold: #eac477;
    --text: #f5f0ff;
    --muted: #aaa0bd;
    --border: rgba(180, 138, 255, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(
            ellipse at 50% -20%,
            #30204f 0%,
            transparent 55%
        ),
        var(--bg);
    color: var(--text);
    font-family: Arial, sans-serif;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 5%;
    border-bottom: 1px solid var(--border);
    background: rgba(16, 12, 29, 0.85);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--gold);
    text-decoration: none;
}

.navigation {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.navigation a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
}

.navigation a:hover {
    color: var(--gold);
}

.container {
    max-width: 1200px;
    margin: 55px auto;
    padding: 0 24px;
}

.hero {
    text-align: center;
    padding: 50px 20px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 54px);
    color: var(--gold);
    margin-bottom: 12px;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 35px;
}

.stat-card {
    padding: 28px 20px;
    background: linear-gradient(
        145deg,
        var(--surface-light),
        var(--surface)
    );
    border: 1px solid var(--border);
    border-radius: 16px;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
}

.stat-label {
    display: block;
    color: var(--muted);
    margin-bottom: 15px;
}

.stat-value {
    font-size: 27px;
    font-weight: bold;
    color: var(--gold);
}

.btn {
    display: inline-block;
    padding: 14px 25px;
    border-radius: 10px;
    background: linear-gradient(135deg, #8055d8, #b48aff);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.btn:hover {
    filter: brightness(1.15);
}

.actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    .site-header {
        flex-direction: column;
    }

    .navigation {
        justify-content: center;
        gap: 14px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.hero h2 {
    margin-top: 35px;
    color: var(--purple);
    font-size: 24px;
}

.game-sections {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 55px;
    margin-bottom: 60px;
}

.game-section {
    padding: 35px 25px;
    text-align: center;
    background: linear-gradient(
        160deg,
        rgba(49, 33, 76, 0.85),
        rgba(19, 15, 33, 0.95)
    );
    border: 1px solid var(--border);
    border-radius: 18px;
    transition: transform 0.25s, border-color 0.25s;
}

.game-section:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.section-icon {
    font-size: 42px;
}

.game-section h3 {
    color: var(--gold);
    font-size: 22px;
}

.game-section p {
    color: var(--muted);
    line-height: 1.6;
    min-height: 52px;
}

.section-status {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--purple);
    font-size: 13px;
}

@media (max-width: 800px) {
    .game-sections {
        grid-template-columns: 1fr;
    }
}


.admin-table-wrapper {
    margin-top: 30px;
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th,
.admin-table td {
    padding: 18px;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    color: var(--gold);
    background: var(--surface-light);
}

.admin-table td {
    color: var(--text);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.empty-table {
    text-align: center;
    color: var(--muted) !important;
    padding: 45px !important;
}


.card-form {
    max-width: 700px;
    margin-top: 30px;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card-form label {
    color: var(--gold);
    font-weight: bold;
}

.card-form input,
.card-form textarea,
.card-form select {
    width: 100%;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #100d1d;
    color: var(--text);
    font: inherit;
}

.card-form input:focus,
.card-form textarea:focus,
.card-form select:focus {
    outline: 1px solid var(--purple);
}

.form-hint {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.card-form .btn {
    align-self: flex-start;
    margin-top: 10px;
}


.card-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.card-thumbnail {
    width: 55px;
    height: 75px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #100d1d;
}
.card-name-link {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.card-name-link:hover {
    color: #f6c96d;
    text-decoration: underline;
}