/* ============================================
   DE-GAMINGPLATFORM.COM - UNIQUE DESIGN
   ============================================ */

:root {
    --dg-primary: #6C5CE7;
    --dg-secondary: #A29BFE;
    --dg-accent: #FD79A8;
    --dg-dark: #2D3436;
    --dg-light: #DFE6E9;
    --dg-gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --dg-gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dg-gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dg-shadow: 0 10px 40px rgba(108, 92, 231, 0.3);
    --dg-shadow-hover: 0 15px 50px rgba(108, 92, 231, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dg-dark);
    background: #0a0a0a;
    overflow-x: hidden;
    position: relative;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */

.dg-animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 30%, #2d1b4e 60%, #1a1a2e 100%);
}

.dg-animated-bg::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(108, 92, 231, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(162, 155, 254, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(253, 121, 168, 0.15) 0%, transparent 50%);
    animation: dg-casino-glow 15s ease-in-out infinite;
}

.dg-animated-bg::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(108, 92, 231, 0.03) 2px,
            rgba(108, 92, 231, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(162, 155, 254, 0.02) 2px,
            rgba(162, 155, 254, 0.02) 4px
        );
    animation: dg-casino-pattern 20s linear infinite;
    opacity: 0.4;
}

@keyframes dg-casino-glow {
    0%, 100% { 
        opacity: 0.6;
        transform: scale(1);
    }
    25% { 
        opacity: 0.8;
        transform: scale(1.05);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.1);
    }
    75% { 
        opacity: 0.75;
        transform: scale(1.05);
    }
}

@keyframes dg-casino-pattern {
    0% { 
        transform: translate(0, 0);
    }
    50% { 
        transform: translate(30px, 30px);
    }
    100% { 
        transform: translate(0, 0);
    }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.dg-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(108, 92, 231, 0.2);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.dg-header.scrolled {
    box-shadow: 0 5px 20px rgba(108, 92, 231, 0.2);
}

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

.dg-logo {
    font-size: 1rem;
    font-weight: 700;
    background: var(--dg-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.dg-logo:hover {
    transform: scale(1.05);
}

.dg-nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.dg-nav-link {
    color: var(--dg-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.dg-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--dg-gradient-1);
    transition: width 0.3s ease;
}

.dg-nav-link:hover {
    color: var(--dg-secondary);
}

.dg-nav-link:hover::after {
    width: 100%;
}

.dg-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 0.5rem;
}

.dg-burger span {
    width: 30px;
    height: 3px;
    background: var(--dg-secondary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.dg-burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.dg-burger.active span:nth-child(2) {
    opacity: 0;
}

.dg-burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.dg-close-btn {
    display: none;
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1002;
    background: transparent;
    border: none;
}

.dg-close-btn::before,
.dg-close-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 3px;
    background: var(--dg-secondary);
    border-radius: 3px;
    transform: translate(-50%, -50%) rotate(45deg);
    transition: all 0.3s ease;
}

.dg-close-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.dg-close-btn:hover::before,
.dg-close-btn:hover::after {
    background: var(--dg-accent);
    transform: translate(-50%, -50%) rotate(135deg);
}

.dg-close-btn:hover::after {
    transform: translate(-50%, -50%) rotate(45deg);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.dg-main {
    margin-top: 60px;
    min-height: calc(100vh - 80px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.dg-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

.dg-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 0;
}

/* Усиленное затемнение для hero с фоновым изображением */
.dg-hero[style*="background-image"]::before {
    background: rgba(0, 0, 0, 0.7);
}

.dg-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    z-index: -1;
}

.dg-hero-content {
    max-width: 1100px;
    width: 100%;
    z-index: 1;
    animation: dg-fade-in-up 1s ease-out;
    position: relative;
}

.dg-hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.3rem;
    background: var(--dg-gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(108, 92, 231, 0.6);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.dg-hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: #ffffff;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

.dg-btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--dg-gradient-1);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--dg-shadow);
    position: relative;
    overflow: hidden;
}

.dg-btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.dg-btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.dg-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--dg-shadow-hover);
}

@keyframes dg-fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SECTIONS
   ============================================ */

.dg-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.dg-section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
    background: var(--dg-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.dg-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--dg-gradient-1);
    border-radius: 2px;
}

/* ============================================
   GAMES GRID
   ============================================ */

.dg-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.dg-game-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(108, 92, 231, 0.2);
    position: relative;
    cursor: pointer;
}

.dg-game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dg-gradient-1);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.dg-game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--dg-shadow-hover);
    border-color: var(--dg-secondary);
}

.dg-game-card:hover::before {
    opacity: 0.1;
}

.dg-game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.dg-game-card:hover .dg-game-image {
    transform: scale(1.1);
}

.dg-game-content {
    padding: 1.5rem;
}

.dg-game-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dg-light);
}

.dg-game-description {
    color: rgba(223, 230, 233, 0.8);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.dg-btn-play {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: var(--dg-gradient-2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.dg-btn-play:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(253, 121, 168, 0.4);
}

/* ============================================
   CHARACTERS SECTION
   ============================================ */

.dg-characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.dg-character-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(108, 92, 231, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.dg-character-card:hover {
    transform: translateY(-5px);
    border-color: var(--dg-accent);
    box-shadow: 0 10px 30px rgba(253, 121, 168, 0.3);
}

.dg-character-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dg-secondary);
    margin-bottom: 0.5rem;
}

.dg-character-game {
    font-size: 0.9rem;
    color: var(--dg-accent);
    margin-bottom: 1rem;
    font-style: italic;
}

.dg-character-description {
    color: rgba(223, 230, 233, 0.8);
    line-height: 1.6;
}

/* ============================================
   QUIZ SECTION
   ============================================ */

.dg-quiz-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(108, 92, 231, 0.2);
    margin-top: 3rem;
}

.dg-quiz-question {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dg-light);
    margin-bottom: 1.5rem;
}

.dg-quiz-options {
    list-style: none;
    margin-bottom: 2rem;
}

.dg-quiz-option {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(108, 92, 231, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--dg-light);
}

.dg-quiz-option:hover {
    background: rgba(108, 92, 231, 0.2);
    border-color: var(--dg-secondary);
    transform: translateX(10px);
}

.dg-quiz-answer {
    padding: 1rem;
    background: rgba(76, 175, 80, 0.2);
    border-left: 4px solid #4CAF50;
    border-radius: 5px;
    margin-top: 1rem;
    color: #81C784;
    display: none;
}

.dg-quiz-answer.show {
    display: block;
    animation: dg-fade-in 0.5s ease;
}

@keyframes dg-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   CONTACT FORM
   ============================================ */

.dg-contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.dg-form-group {
    margin-bottom: 1.5rem;
}

.dg-form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dg-light);
    font-weight: 500;
}

.dg-form-input,
.dg-form-textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 10px;
    color: var(--dg-light);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dg-form-input:focus,
.dg-form-textarea:focus {
    outline: none;
    border-color: var(--dg-secondary);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.dg-form-textarea {
    resize: vertical;
    min-height: 120px;
}

.dg-btn-submit {
    width: 100%;
    padding: 1rem;
    background: var(--dg-gradient-1);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--dg-shadow);
}

.dg-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--dg-shadow-hover);
}

/* ============================================
   SUCCESS MODAL
   ============================================ */

.dg-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: dg-fade-in 0.3s ease;
}

.dg-modal-overlay.show {
    display: flex;
}

.dg-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(108, 92, 231, 0.3);
    box-shadow: 0 20px 60px rgba(108, 92, 231, 0.4);
    animation: dg-scale-in 0.3s ease;
    position: relative;
}

@keyframes dg-scale-in {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.dg-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--dg-gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    animation: dg-bounce 0.6s ease;
}

@keyframes dg-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.dg-modal-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dg-light);
    margin-bottom: 1rem;
    background: var(--dg-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dg-modal-text {
    color: rgba(223, 230, 233, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.dg-modal-close {
    padding: 0.8rem 2rem;
    background: var(--dg-gradient-1);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dg-modal-close:hover {
    transform: scale(1.05);
    box-shadow: var(--dg-shadow);
}

/* ============================================
   FOOTER
   ============================================ */

.dg-footer {
background: rgb(72 72 89 / 95%);

    border-top: 1px solid rgba(108, 92, 231, 0.3);
    padding: 3rem 2rem 1.5rem;
    margin-top: 5rem;
}

.dg-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.dg-footer-section h3 {
    color: var(--dg-secondary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.dg-footer-section p,
.dg-footer-section a {
    color: rgba(223, 230, 233, 0.95);
    text-decoration: none;
    line-height: 1.8;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.dg-footer-section a:hover {
    color: var(--dg-secondary);
}

.dg-footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(108, 92, 231, 0.3);
    color: rgba(223, 230, 233, 0.85);
}

.dg-footer-logos {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.dg-footer-logo {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.dg-footer-logo:hover {
    opacity: 1;
}

.dg-footer-logo img {
    height: 40px;
    width: auto;
}

/* ============================================
   DISCLAIMER
   ============================================ */

.dg-disclaimer {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.dg-disclaimer-text {
    color: #FFC107;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .dg-nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(108, 92, 231, 0.2);
        z-index: 1000;
    }

    .dg-nav-menu.active {
        right: 0;
    }

    .dg-burger {
        display: flex;
    }

    .dg-close-btn {
        display: none !important;
        position: fixed !important;
        top: 1.5rem !important;
        right: 2rem !important;
        z-index: 1002 !important;
    }

    .dg-close-btn.active {
        display: block !important;
    }
    
    /* Скрываем бургер при открытом меню */
    .dg-burger.active {
        display: none !important;
    }

    .dg-hero {
        min-height: 70vh;
        padding: 2rem 1rem;
    }

    .dg-section {
        padding: 3rem 1rem;
    }

    .dg-games-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .dg-characters-grid {
        grid-template-columns: 1fr;
    }

    .dg-quiz-container {
        padding: 2rem 1.5rem;
    }

    .dg-contact-form {
        padding: 2rem 1.5rem;
    }

    .dg-footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .dg-hero-title {
        font-size: 1.5rem;
    }

    .dg-hero-subtitle {
        font-size: 1rem;
    }

    .dg-section-title {
        font-size: 1.3rem;
    }

    .dg-modal {
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.dg-text-center {
    text-align: center;
}

.dg-mt-1 { margin-top: 1rem; }
.dg-mt-2 { margin-top: 2rem; }
.dg-mt-3 { margin-top: 3rem; }
.dg-mb-1 { margin-bottom: 1rem; }
.dg-mb-2 { margin-bottom: 2rem; }
.dg-mb-3 { margin-bottom: 3rem; }

