/* ========== AMERICAN PIE / PARTY ROCK STYLE ========== */
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Rock+Salt&family=Rubik+Glitch&family=Inter:opsz,wght@14..32,300;14..32,400;14..32,600;14..32,700;14..32,800&display=swap');

:root {
    --red: #c1121f;
    --dark-red: #780000;
    --crimson: #ba1826;
    --black: #1a1a1a;
    --charcoal: #2b2b2b;
    --off-white: #fdf0d5;
    --beige: #eaddcf;
    --yellow: #fdf0d5;
    --brick-pattern: repeating-linear-gradient(
        45deg,
        rgba(193, 18, 31, 0.05) 0px,
        rgba(193, 18, 31, 0.05) 2px,
        transparent 2px,
        transparent 8px
    );
}

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

body {
    background: #0d0d0d url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><rect width="100" height="100" fill="none"/><path d="M10,10 L90,10 M10,20 L90,20 M10,30 L90,30 M10,40 L90,40 M10,50 L90,50 M10,60 L90,60 M10,70 L90,70 M10,80 L90,80 M10,90 L90,90" stroke="%23c1121f" stroke-width="0.5"/><path d="M10,10 L10,90 M20,10 L20,90 M30,10 L30,90 M40,10 L40,90 M50,10 L50,90 M60,10 L60,90 M70,10 L70,90 M80,10 L80,90 M90,10 L90,90" stroke="%23c1121f" stroke-width="0.5"/></svg>');
    background-size: 40px 40px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #1e1e1e;
    min-height: 100vh;
}

/* ========== ХЕДЕР – В стиле рок-бара ========== */
.party-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0a0a 100%);
    border-bottom: 3px solid var(--red);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    letter-spacing: 2px;
    text-shadow: 3px 3px 0 var(--red);
    color: var(--off-white);
    background: linear-gradient(135deg, #fff, var(--red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}

.logo span {
    background: linear-gradient(135deg, #fff, var(--red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo i {
    color: var(--red);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    margin-right: 8px;
}

.party-nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--off-white);
    text-decoration: none;
    font-family: 'Bangers', cursive;
    font-size: 1.2rem;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    background: rgba(193, 18, 31, 0.2);
    border: 1px solid rgba(193, 18, 31, 0.5);
}

.nav-link i {
    margin-right: 6px;
}

.nav-link:hover {
    background: var(--red);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--red);
}

.mobile-menu-btn {
    display: none;
    background: var(--red);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.3rem;
    font-family: 'Bangers', cursive;
}

/* ========== ФУТЕР ========== */
.party-footer {
    background: #0a0505;
    border-top: 2px solid var(--red);
    padding: 2rem 0 1rem;
    margin-top: 4rem;
    color: #888;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-family: 'Bangers', cursive;
    font-size: 1.3rem;
    color: var(--off-white);
}

.footer-logo i {
    color: var(--red);
    margin-right: 5px;
}

.footer-tagline {
    font-size: 0.7rem;
    color: #666;
    margin-top: 5px;
}

.footer-links a {
    color: #666;
    font-size: 1.3rem;
    margin: 0 0.5rem;
    transition: all 0.2s;
}

.footer-links a:hover {
    color: var(--red);
    transform: scale(1.1);
}

.footer-copy {
    font-size: 0.7rem;
    color: #555;
    font-family: monospace;
}

/* ========== ОСНОВНОЙ КОНТЕНТ ========== */
main {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 70vh;
}

/* Карточки – в стиле грифельной доски или крафтовой бумаги */
.game-container, .choose-mode-container, .team-container, 
.gameover-container, .form-container {
    background: var(--off-white);
    background-image: radial-gradient(circle at 10% 20%, rgba(193,18,31,0.03) 2px, transparent 2px);
    background-size: 20px 20px;
    border: 1px solid var(--red);
    border-radius: 16px;
    padding: 2rem;
    margin: 1rem auto;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.8);
    transition: transform 0.2s;
}

.game-container:hover {
    transform: translateY(-3px);
    box-shadow: 12px 12px 0 rgba(0,0,0,0.1);
}

h1 {
    font-family: 'Bangers', cursive;
    font-size: 3rem;
    text-align: center;
    color: var(--dark-red);
    text-shadow: 3px 3px 0 var(--yellow);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

h1 i {
    color: var(--red);
    margin-right: 10px;
}

h2 {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    color: var(--dark-red);
    border-left: 5px solid var(--red);
    padding-left: 15px;
    margin-bottom: 1rem;
}

h3 {
    font-family: 'Rock Salt', cursive;
    font-size: 1.1rem;
    color: var(--red);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

/* Инфо-панель – стиль пиццерии */
.team-info {
    background: #fff5e6;
    border: 1px solid #f0c0a0;
    border-radius: 60px;
    padding: 0.8rem 1.5rem;
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-family: 'Inter', monospace;
    font-weight: 600;
    font-size: 0.9rem;
    color: #4a2a1a;
}

.team-info p {
    margin: 0;
    background: #fff;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05), 0 1px 0 rgba(255,255,255,0.8);
}

.team-info strong {
    color: var(--red);
}

/* Карточка задания – стиль школьной доски */
.task-card {
    background: #2c2c2c;
    background-image: repeating-linear-gradient(90deg, #3a3a3a 0px, #3a3a3a 2px, transparent 2px, transparent 8px);
    border-radius: 24px;
    padding: 2rem;
    margin: 1.5rem 0;
    text-align: center;
    border: 2px solid #ffcc88;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.5), 0 10px 20px rgba(0,0,0,0.2);
    min-height: 250px;
    height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    position: relative;
}

#taskDisplay {
    font-family: 'Rock Salt', cursive;
    font-size: 1.4rem;
    color: #ffebc2;
    text-shadow: 2px 2px 0 #4a2a1a;
    line-height: 1.4;
    min-height: 120px;
}

#categoryDisplay {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #ffaa66;
    font-family: monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(0,0,0,0.5);
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 30px;
}

/* Кибер-пирог кнопки */
.btn {
    background: linear-gradient(180deg, #fff5e6 0%, #ffe0c0 100%);
    border: 2px solid #c1121f;
    color: #780000;
    padding: 12px 28px;
    font-size: 1rem;
    font-family: 'Bangers', cursive;
    letter-spacing: 1px;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.15s linear;
    margin: 0 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 0 #8a3a2a;
}

.btn i {
    font-size: 1.1rem;
}

.btn:hover {
    background: linear-gradient(180deg, #ffe0c0 0%, #ffc8a0 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 0 #8a3a2a;
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #8a3a2a;
}

.truth-btn {
    background: #2d6a4f;
    border-color: #1b4332;
    color: #fff;
    box-shadow: 0 3px 0 #1b4332;
}
.truth-btn:hover { background: #40916c; }

.dare-btn {
    background: #c1121f;
    border-color: #780000;
    color: #fff;
    box-shadow: 0 3px 0 #780000;
}
.dare-btn:hover { background: #e3342f; }

.random-btn {
    background: #f4a261;
    border-color: #e76f51;
    color: #2c2c2c;
    box-shadow: 0 3px 0 #e76f51;
}
.random-btn:hover { background: #f4c45c; }

.next-btn {
    background: #e9c46a;
    border-color: #c49a2a;
    color: #4a2a1a;
    box-shadow: 0 3px 0 #c49a2a;
}
.next-btn:hover { background: #f4d47a; }

.skip-btn {
    background: #f4a261;
    border-color: #e76f51;
    color: #2c2c2c;
    box-shadow: 0 3px 0 #e76f51;
}
.skip-btn:hover { background: #f4c45c; }

.confirm-btn {
    background: #2d6a4f;
    border-color: #1b4332;
    color: #fff;
    padding: 12px 40px;
    font-size: 1.2rem;
    box-shadow: 0 3px 0 #1b4332;
}

.small {
    padding: 6px 20px;
    font-size: 0.85rem;
}

#end-game-btn {
    background: #5c0000;
    border-color: #3a0000;
    color: #ffaa99;
}
#end-game-btn:hover { background: #7a0000; }

.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 1.5rem 0;
}

/* Формы */
.form-container input, .choose-mode-container input[type="text"],
.choose-mode-container input[type="password"], .choose-mode-container input[type="email"],
.form-container input, .form-container select {
    background: #fffdf8;
    border: 2px solid #e0b090;
    border-radius: 40px;
    padding: 12px 18px;
    font-size: 1rem;
    width: 100%;
    font-family: 'Inter', sans-serif;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.form-container input:focus, .choose-mode-container input:focus {
    border-color: var(--red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(193,18,31,0.2);
}

.form-container label, .choose-mode-container label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #5a2a1a;
    font-family: 'Bangers', cursive;
    letter-spacing: 1px;
}

/* Чекбоксы и радио в стиле закусочной */
input[type="checkbox"], input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--red);
    border-radius: 6px;
    margin-right: 8px;
    vertical-align: middle;
    cursor: pointer;
    background: white;
}
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:checked, input[type="radio"]:checked {
    background: var(--red);
    box-shadow: inset 0 0 0 3px white;
}

/* Список игроков */
#players-ul {
    list-style: none;
    padding: 0;
}
#players-ul li {
    background: #fffae8;
    margin: 8px 0;
    padding: 10px 15px;
    border-radius: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 8px solid var(--red);
}

.player-actions button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 10px;
    transition: transform 0.1s;
}
.player-actions button:hover { transform: scale(1.1); }
.edit-btn { color: #e67e22; }
.remove-btn { color: var(--red); }

.add-player-form {
    background: #fff5e6;
    border-radius: 80px;
    padding: 1rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-name {
    flex: 1;
    min-width: 150px;
    background: white;
    border: 2px solid #e0b090;
    border-radius: 40px;
    padding: 10px 18px;
    font-size: 1rem;
}

.gender-selector, .preference-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.gender-selector span, .preference-selector span {
    font-weight: bold;
    color: #5a2a1a;
}

/* Адаптив */
@media (max-width: 800px) {
    .party-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #0a0a0a;
        padding: 1rem;
        border-top: 2px solid var(--red);
        margin-top: 0.5rem;
    }
    .party-nav.active {
        display: flex;
    }
    .mobile-menu-btn {
        display: block;
    }
    .header-container {
        flex-wrap: wrap;
    }
    h1 {
        font-size: 2rem;
    }
    .team-info {
        flex-direction: column;
        text-align: center;
        border-radius: 30px;
    }
    .add-player-form {
        flex-direction: column;
        align-items: stretch;
        border-radius: 30px;
    }
    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    #taskDisplay {
        font-size: 1rem;
    }
}

/* ========== ГЛАВНАЯ СТРАНИЦА ========== */

/* Hero-секция */
.hero {
    background: linear-gradient(135deg, #2c0a0a 0%, #4a1a1a 50%, #2c0a0a 100%);
    border-radius: 40px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    text-align: center;
    border: 2px solid var(--red);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,100,50,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-badge {
    display: inline-block;
    background: var(--red);
    padding: 0.3rem 1rem;
    border-radius: 60px;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-family: 'Bangers', cursive;
}

.hero-title {
    font-family: 'Bangers', cursive;
    font-size: 4rem;
    text-shadow: 4px 4px 0 var(--dark-red);
    margin-bottom: 0.5rem;
}

.glitch-text {
    background: linear-gradient(135deg, #fff, #ffcc00, #ff6666);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 100% { text-shadow: 2px 0 red, -2px 0 blue; }
    33% { text-shadow: 3px 0 magenta, -3px 0 cyan; }
    66% { text-shadow: -2px 0 green, 2px 0 orange; }
}

.hero-sub {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    color: var(--off-white);
    text-shadow: none;
    margin-top: 0.5rem;
}

.hero-desc {
    max-width: 600px;
    margin: 1rem auto;
    font-size: 1.1rem;
    color: #ffddcc;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.hero-btn-primary {
    background: var(--red);
    border-color: #ffcc00;
    color: white;
    font-size: 1.2rem;
    padding: 12px 32px;
}
.hero-btn-primary:hover {
    background: #e3342f;
    transform: scale(1.05);
}

.hero-btn-secondary {
    background: transparent;
    border-color: var(--red);
    color: var(--off-white);
}
.hero-btn-secondary:hover {
    background: var(--red);
    color: white;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.stat {
    text-align: center;
}
.stat-number {
    display: block;
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    color: #ffcc00;
}
.stat-label {
    font-size: 0.8rem;
    color: #ffddcc;
}

/* Секция фич */
.features, .categories-section, .how-it-works, .quote-section, .cta-section {
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}
.section-header h2 {
    font-size: 2.2rem;
    border-left: none;
    text-align: center;
}
.section-header p {
    color: #5a3a2a;
    font-size: 1rem;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.feature-card {
    background: #fffaf2;
    border-radius: 24px;
    padding: 1.5rem;
    flex: 1;
    min-width: 220px;
    text-align: center;
    border: 2px solid #ffccaa;
    transition: transform 0.2s;
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--red);
}
.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.feature-card h3 {
    font-family: 'Bangers', cursive;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.feature-tag {
    display: inline-block;
    margin-top: 1rem;
    background: #ffe0c0;
    padding: 0.2rem 0.8rem;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: bold;
    color: #a0522d;
}

/* Категории */
.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.category-chip {
    background: #fff5e6;
    border: 2px solid #e0b090;
    border-radius: 60px;
    padding: 0.6rem 1.2rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    transition: all 0.2s;
    cursor: pointer;
}
.category-chip:hover {
    border-color: var(--red);
    background: #ffe0c0;
    transform: scale(1.02);
}
.category-chip.adult {
    background: #2c0a0a;
    color: #ffaa99;
    border-color: #ff4444;
}
.chip-badge {
    background: #ddd0c0;
    border-radius: 40px;
    padding: 0.2rem 0.6rem;
    font-size: 0.6rem;
    font-weight: normal;
}
.category-note {
    text-align: center;
    font-size: 0.8rem;
    color: #886a4a;
    margin-top: 1rem;
}

/* Шаги */
.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.step {
    background: #fffaf2;
    border-radius: 30px;
    padding: 1.5rem;
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
    border: 1px solid #ffccaa;
}
.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    background: var(--red);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    font-family: 'Bangers', cursive;
    box-shadow: 0 3px 0 #5a0000;
}
.step-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}
.step h4 {
    font-family: 'Bangers', cursive;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Цитата */
.quote-card {
    background: #2c0a0a;
    border-radius: 40px;
    padding: 2rem;
    text-align: center;
    color: #ffddcc;
    position: relative;
    border: 1px solid #ffaa77;
}
.quote-mark {
    font-size: 4rem;
    font-family: serif;
    color: var(--red);
    opacity: 0.5;
    position: absolute;
    top: 10px;
    left: 20px;
}
.quote-text {
    font-size: 1.3rem;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}
.quote-author {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #ccaa88;
}

/* CTA */
.cta-card {
    background: linear-gradient(135deg, #ffddbb, #ffcc99);
    border-radius: 40px;
    padding: 2rem;
    text-align: center;
    border: 2px solid var(--red);
}
.cta-card h3 {
    font-family: 'Bangers', cursive;
    font-size: 2rem;
    color: var(--dark-red);
    margin-bottom: 0.5rem;
}
.cta-btn {
    margin-top: 1rem;
    background: var(--red);
    border-color: #ffcc00;
    color: white;
    font-size: 1.2rem;
    padding: 12px 32px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-stats {
        gap: 1rem;
    }
    .stat-number {
        font-size: 1.2rem;
    }
    .quote-text {
        font-size: 1rem;
    }
}

