/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    --bg: #faf6f0;
    --bg-2: #f5ede5;
    --card: #ffffff;
    --card-2: #fdf5f0;
    --text: #3a3535;
    --text-dim: #8a8080;
    --accent: #e8a5b8;
    --accent-2: #d48a9f;
    --gold: #c9a96a;
    --epic: #b8d4b0;
    --legend: #e8a5b8;
    --common: #b0a8a0;
    --border: rgba(160, 120, 140, 0.35);
}
/* ===== ВЕРХНЯЯ ПАНЕЛЬ ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 200;
    width: 100%;
    background: rgba(38, 28, 48, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
}

.topbar-logo {
    font-size: 18px;
    font-weight: 700;
    color: #f0e6d8;
    letter-spacing: 1px;
    white-space: nowrap;
}

.topbar-tg {
    padding: 9px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.35);
}

.topbar-tg:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.5);
}

/* Навигация — СКРЫТА по умолчанию */
.topbar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
}

/* Когда появляется — раскрывается */
.topbar-nav.visible {
    max-height: 60px;
    opacity: 1;
    padding: 0 20px 12px;
}

.topbar-link {
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: rgba(240, 230, 216, 0.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.topbar-link:hover {
    background: rgba(232, 165, 184, 0.15);
    color: #e8a5b8;
    border-color: rgba(232, 165, 184, 0.4);
}

/* Мобильная версия */
@media (max-width: 900px) {
    .topbar-inner {
        padding: 10px 14px;
    }

    .topbar-nav.visible {
        max-height: 120px;
        padding: 0 14px 10px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .topbar-nav.visible::-webkit-scrollbar {
        display: none;
    }

    .topbar-link {
        padding: 6px 12px;
        font-size: 13px;
    }

    .topbar-tg {
        padding: 8px 16px;
        font-size: 13px;
    }
}


/* ===== ПЛАВНАЯ ПРОКРУТКА ===== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

/* ===== СБРОС ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f5eaf5 url('images/background.png') center / cover fixed no-repeat;
    color: var(--text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.55);
    z-index: -1;
    pointer-events: none;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 100px 20px 60px;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.hero-glow {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #b8508a;
    margin-bottom: 20px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.hero-title {
    font-size: clamp(56px, 12vw, 120px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 24px;
    color: #2a2020;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.hero-subtitle {
    font-size: 18px;
    color: #5a5050;
    max-width: 560px;
    margin-bottom: 32px;
    line-height: 1.7;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.hero-badge {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(160, 120, 140, 0.4);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    backdrop-filter: blur(10px);
    max-width: 100%;
    text-align: center;
    box-shadow: 0 4px 16px rgba(120, 80, 100, 0.12);
}

.hero-badge b {
    color: #b8508a;
    font-weight: 700;
}

.hero-participants {
    font-size: 14px;
    color: #5a5050;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}


/* ===== НАВИГАЦИЯ ===== */
.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto 30px;
    padding: 0 20px;
    background: transparent;
    border: none;
    position: sticky;
    top: 8px;
    z-index: 100;
}

.nav-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(160, 120, 140, 0.35);
    color: #5a5050;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(120, 80, 100, 0.1);
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(232, 165, 184, 0.25);
    color: #b8508a;
    border-color: rgba(232, 165, 184, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(120, 80, 100, 0.15);
}

.nav-btn:active {
    transform: scale(0.96);
}

/* Мобильная адаптация */
@media (max-width: 640px) {
    .nav {
        gap: 6px;
        padding: 0 12px;
        margin-bottom: 20px;
    }

    .nav-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}
/* ===== СЕКЦИИ ===== */
.section {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2a2020;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.section-sub {
    color: #5a5050;
    margin-bottom: 32px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
}

/* ===== ЖИВОЙ ПОИСК РОЛЕЙ ===== */
.role-search {
    position: relative;
    max-width: 640px;
}

#roleInput {
    width: 100%;
    padding: 18px 28px;
    border-radius: 999px;
    border: 2px solid var(--accent);
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    font-size: 17px;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(120, 80, 100, 0.1);
}

#roleInput:focus {
    border-color: var(--accent-2);
    box-shadow: 0 0 0 4px rgba(232, 165, 184, 0.25);
}

.role-dropdown {
    margin-top: 16px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.role-dropdown-label {
    color: #b8508a;
    font-size: 15px;
    margin-bottom: 12px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.role-dropdown-label.free-label {
    color: #4a8a5a;
}

.role-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(160, 120, 140, 0.3);
    border-radius: 999px;
    margin-bottom: 10px;
    width: fit-content;
    min-width: 280px;
    transition: transform 0.15s, border-color 0.15s;
    box-shadow: 0 4px 12px rgba(120, 80, 100, 0.08);
}

.role-item:hover {
    transform: translateX(4px);
    border-color: var(--accent);
}

.role-item.taken {
    border-color: rgba(224, 138, 138, 0.5);
}

.role-item.free {
    border-color: rgba(143, 206, 154, 0.5);
}

.role-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8a5b8, #b8d4b0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.role-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.role-info {
    display: flex;
    flex-direction: column;
}

.role-name {
    font-weight: 600;
    font-size: 15px;
    color: #2a2020;
}

.role-game {
    font-size: 13px;
    color: #5a5050;
}

.role-empty {
    color: #5a5050;
    font-size: 15px;
    padding: 8px 0;
}

/* ===== КАРТОЧКА ИГРЫ ===== */
.game-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(160, 120, 140, 0.4);
    border-radius: 16px;
    overflow: hidden;
    max-width: 720px;
    margin: 0 0 24px;
    box-shadow: 0 8px 30px rgba(120, 80, 100, 0.15);
    backdrop-filter: blur(10px);
}

.game-cover {
    height: 270px;
    background: linear-gradient(135deg, #e8a5b8, #b8d4b0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    overflow: hidden;
}

.game-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    cursor: pointer;
    transition: background 0.2s;
}

.game-header:hover {
    background: rgba(232, 165, 184, 0.08);
}

.game-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: #2a2020;
    margin-bottom: 2px;
}

.game-sub {
    font-size: 13px;
    color: #5a5050;
}

.game-sub b {
    color: #b8508a;
}

.game-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font-size: 18px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    flex-shrink: 0;
}

.game-toggle:hover {
    background: rgba(232, 165, 184, 0.15);
}

.game-card.collapsed .game-toggle {
    transform: rotate(45deg);
}

.game-body {
    max-height: 3000px;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 18px 18px;
}

.game-card.collapsed .game-body {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* ===== СЕТКА ЗАНЯТЫХ РОЛЕЙ ===== */
.taken-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.taken-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s;
}

.taken-card:hover {
    transform: translateY(-3px);
}

.taken-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8a5b8, #b8d4b0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    overflow: hidden;
    border: 2px solid rgba(160, 120, 140, 0.3);
    transition: border-color 0.2s;
    box-shadow: 0 4px 12px rgba(120, 80, 100, 0.12);
}

.taken-card:hover .taken-avatar {
    border-color: var(--accent);
}

.taken-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.taken-name {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #2a2020;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.taken-role {
    font-size: 11px;
    color: #5a5050;
    line-height: 1.2;
    margin-top: 2px;
}


/* ===== КНОПКИ ===== */
.quiz-btn {
    padding: 14px 24px;
    border-radius: 12px;
    border: 2px solid var(--accent);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    width: 100%;
}

.quiz-btn:hover {
    background: rgba(232, 165, 184, 0.15);
    transform: translateY(-2px);
}



.hidden { display: none; }

/* ===== ПРАВИЛА И FAQ ===== */
.rules {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(160, 120, 140, 0.3);
    border-radius: 14px;
    padding: 18px 24px;
    margin-bottom: 12px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(120, 80, 100, 0.08);
    backdrop-filter: blur(10px);
}

.rules summary {
    font-weight: 600;
    font-size: 16px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2a2020;
}

.rules summary::after {
    content: '+';
    color: #b8508a;
    font-size: 22px;
    transition: transform 0.2s;
}

.rules[open] summary::after {
    transform: rotate(45deg);
}

.rules ul {
    margin-top: 16px;
    padding-left: 20px;
    color: #5a5050;
}

.rules ul li {
    margin-bottom: 10px;
}

.rules p {
    margin-top: 16px;
    color: #5a5050;
}

/* ===== АДМИНЫ ===== */
.admins {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.admin-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(160, 120, 140, 0.35);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 6px 24px rgba(120, 80, 100, 0.12);
    backdrop-filter: blur(10px);
}

.admin-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8a5b8, #b8d4b0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    margin: 0 auto 16px;
    overflow: hidden;
    border: 2px solid rgba(160, 120, 140, 0.3);
    box-shadow: 0 4px 12px rgba(120, 80, 100, 0.12);
}

.admin-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-card h3 {
    font-size: 20px;
    margin-bottom: 4px;
    color: #2a2020;
}

.admin-role {
    color: #b8508a;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 600;
}

.admin-card p:last-child {
    color: #5a5050;
    font-size: 15px;
}

/* ===== ДНИ РОЖДЕНИЯ ===== */
.bdays {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .bdays { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .bdays { grid-template-columns: 1fr; }
}

.bday {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(140, 100, 120, 0.45);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 6px 20px rgba(100, 60, 80, 0.18);
    backdrop-filter: blur(10px);
    transition: transform 0.2s, box-shadow 0.2s;
}

.bday:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(100, 60, 80, 0.25);
}

.bday-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8a5b8, #b8d4b0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid rgba(140, 100, 120, 0.35);
}

.bday-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bday-info {
    flex: 1;
    min-width: 0;
}

.bday-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #2a2020;
    margin-bottom: 2px;
}

.bday-info p {
    font-size: 13px;
    color: #5a5050;
}

.bday-days {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(232, 165, 184, 0.35);
    color: #b8508a;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
/* ===== ФУТЕР ===== */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: #5a5050;
    font-size: 14px;
    border-top: 1px solid rgba(160, 120, 140, 0.25);
    margin-top: 60px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 900px) {
    .admins { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    body { font-size: 15px; }

    .hero {
        padding: 60px 16px 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 44px;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .hero-tag {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .hero-participants {
        font-size: 13px;
    }

    .hero-badge {
        font-size: 13px;
        padding: 8px 14px;
        border-radius: 16px;
    }

    .nav {
        border-radius: 16px;
        padding: 10px 12px;
        gap: 6px;
        margin-bottom: 20px;
    }

    .nav-btn {
        padding: 6px 10px;
        font-size: 13px;
    }

    .section {
        padding: 40px 16px;
    }

    .section h2 {
        font-size: 24px;
    }

    .section-sub {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .role-search {
        max-width: 100%;
    }

    #roleInput {
        padding: 14px 20px;
        font-size: 15px;
    }

    .role-item {
        min-width: auto;
        width: 100%;
        padding: 8px 12px;
    }

    .role-avatar {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .taken-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .taken-avatar {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .taken-name {
        font-size: 11x;
    }

    .taken-role {
        font-size: 10px;
    }

    .game-cover {
        height: 150px;
        font-size: 18px;
    }

    .admin-avatar {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }

    .admin-card {
        padding: 20px 16px;
    }

    .admins {
        grid-template-columns: 1fr !important;
    }

    .footer {
        padding: 24px 16px;
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .taken-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* ===== ЗАТЕМНЕНИЕ ВСЕХ ПЛАШЕК ===== */
.game-card,
.admin-card,
.rules,
.quiz,
.role-item,
.bday,
.bday-days,
.hero-badge,
.nav-btn,
#roleInput {
    background: rgba(245, 235, 240, 0.92) !important;
    border-color: rgba(140, 100, 120, 0.5) !important;
}



/* ===== СКРЫТЫЕ ДНИ РОЖДЕНИЯ ===== */
.bday-hidden {
    display: none;
}

.bday-hidden.bday-visible {
    display: flex;
    animation: fadeInBday 0.3s ease;
}

@keyframes fadeInBday {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== КНОПКА ПОКАЗАТЬ ВСЕ ===== */
.bdays-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 10px 22px;
    border-radius: 999px;
    background: rgba(245, 235, 240, 0.92);
    border: 2px solid rgba(140, 100, 120, 0.5);
    color: #5a5050;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(120, 80, 100, 0.12);
}

.bdays-toggle:hover {
    background: rgba(232, 165, 184, 0.25);
    color: #b8508a;
    border-color: rgba(232, 165, 184, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(120, 80, 100, 0.18);
}

.bdays-toggle:active {
    transform: scale(0.97);
}

.bdays-toggle-arrow {
    display: inline-block;
    transition: transform 0.25s;
    font-size: 12px;
}

.bdays-toggle.expanded .bdays-toggle-arrow {
    transform: rotate(180deg);
}
/* ===== ПЛАШКА СТАТУСА ===== */
.status-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 520px;
    padding: 22px 26px;
    border-radius: 18px;
    background: rgba(245, 235, 240, 0.92);
    border: 2px solid rgba(140, 100, 120, 0.5);
    box-shadow: 0 6px 24px rgba(100, 60, 80, 0.18);
    backdrop-filter: blur(10px);
    margin-top: 24px;
}

.status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6bbf7a;
    box-shadow: 0 0 8px rgba(107, 191, 122, 0.8);
    animation: statusPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes statusPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.status-label {
    font-size: 15px;
    font-weight: 700;
    color: #2a2020;
}

.status-members {
    margin-left: auto;
    font-size: 14px;
    color: #5a5050;
}

.status-members b {
    color: #2a2020;
    font-weight: 700;
}

.status-info {
    font-size: 13px;
    color: #5a5050;
    padding: 10px 0 0;
    border-top: 1px solid rgba(140, 100, 120, 0.2);
}

.status-cleanup {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #5a5050;
    padding-top: 12px;
    border-top: 1px solid rgba(140, 100, 120, 0.2);
}

.status-cleanup b {
    color: #b8508a;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .status-card {
        max-width: 100%;
        padding: 18px 20px;
    }

    .status-row {
        gap: 8px;
    }

    .status-members {
        margin-left: 0;
        width: 100%;
        margin-top: 4px;
    }

    .status-cleanup {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}
/* ===== ПРАВИЛА (карточки) ===== */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

@media (max-width: 640px) {
    .rules-grid {
        grid-template-columns: 1fr;
    }
}

.rule-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(245, 235, 240, 0.92);
    border: 2px solid rgba(140, 100, 120, 0.45);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(100, 60, 80, 0.15);
    backdrop-filter: blur(10px);
    transition: transform 0.2s, box-shadow 0.2s;
}

.rule-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(100, 60, 80, 0.22);
}

.rule-icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e8a5b8, #b8d4b0);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(120, 80, 100, 0.15);
}

.rule-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: #2a2020;
    margin-bottom: 4px;
}

.rule-info p {
    font-size: 13px;
    color: #5a5050;
    line-height: 1.5;
}

/* ===== КНОПКА-ССЫЛКА «ЧИТАТЬ ВСЕ ПРАВИЛА» ===== */
.rules-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    background: rgba(245, 235, 240, 0.92);
    border: 2px solid rgba(140, 100, 120, 0.5);
    color: #5a5050;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(120, 80, 100, 0.12);
    backdrop-filter: blur(10px);
}

.rules-link:hover {
    background: rgba(232, 165, 184, 0.25);
    color: #b8508a;
    border-color: rgba(232, 165, 184, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(120, 80, 100, 0.18);
}

.rules-link:active {
    transform: scale(0.97);
}

.rules-link-arrow {
    transition: transform 0.2s;
    font-size: 16px;
}

.rules-link:hover .rules-link-arrow {
    transform: translateX(4px);
}
/* ===== ОБЛОЖКА НА ТЕЛЕФОНЕ ===== */
@media (max-width: 640px) {
    .game-cover {
        height: auto;
        aspect-ratio: 16 / 7;
        font-size: 18px;
    }
}/* ===== ЗАНЯТЫЕ РОЛИ НА ТЕЛЕФОНЕ ===== */
@media (max-width: 640px) {
    .game-body {
        padding: 0 10px 12px;
    }

    .taken-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .taken-avatar {
        width: 100%;
        max-width: 56px;
        height: auto;
        aspect-ratio: 1 / 1;
        font-size: 20px;
    }

    .taken-name {
        font-size: 10px;
        line-height: 1.1;
        margin-top: 4px;
    }

    .taken-role {
        font-size: 9px;
        line-height: 1.1;
    }
}