/* Minecraft Theme Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --mc-grass: #7cba3d;
    --mc-dirt: #8b6914;
    --mc-stone: #808080;
    --mc-wood: #8b4513;
    --mc-dark: #1a1a1a;
    --mc-light: #f5f5f5;
    --mc-gold: #ffd700;
    --mc-border: #4a4a4a;
    --mc-shadow: rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2d5016 0%, #1a1a1a 100%);
    color: var(--mc-light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.main-header {
    background: linear-gradient(180deg, var(--mc-dirt) 0%, var(--mc-dark) 100%);
    border-bottom: 4px solid var(--mc-border);
    box-shadow: 0 4px 8px var(--mc-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-logo {
    position: relative;
    z-index: 1001;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.header-logo img {
    height: 60px;
    width: auto;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    filter: drop-shadow(2px 2px 4px var(--mc-shadow));
}

.header-buttons {
    display: flex;
    gap: 1rem;
}

/* Hide mobile menu toggle on desktop */
.mobile-menu-toggle {
    display: none;
}

.btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    border: 3px solid var(--mc-border);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 0 var(--mc-shadow);
    image-rendering: pixelated;
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--mc-shadow);
}

.btn-play {
    background: linear-gradient(180deg, var(--mc-grass) 0%, #6ba030 100%);
    color: var(--mc-dark);
}

.btn-play:hover {
    background: linear-gradient(180deg, #8dd04f 0%, var(--mc-grass) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--mc-shadow);
}

.btn-download {
    background: linear-gradient(180deg, var(--mc-gold) 0%, #e6c200 100%);
    color: var(--mc-dark);
}

.btn-download:hover {
    background: linear-gradient(180deg, #ffed4e 0%, var(--mc-gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--mc-shadow);
}

/* Navigation Styles */
.main-nav {
    background: var(--mc-dark);
    border-top: 2px solid var(--mc-border);
    padding: 0;
    width: 100%;
    position: relative;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--mc-light);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s;
    border-right: 1px solid var(--mc-border);
    position: relative;
}

.nav-list li:last-child a {
    border-right: none;
}

.nav-list a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--mc-grass);
    transition: width 0.3s;
}

.nav-list a:hover::before,
.nav-list a.active::before {
    width: 100%;
}

.nav-list a:hover {
    background: rgba(124, 186, 61, 0.1);
    color: var(--mc-grass);
}

.nav-list a.active {
    color: var(--mc-grass);
    background: rgba(124, 186, 61, 0.15);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--mc-light);
    transition: all 0.3s;
}

/* Main Content */
main {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}


section {
    background: rgba(26, 26, 26, 0.8);
    border: 3px solid var(--mc-border);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 8px var(--mc-shadow);
}

section h1 {
    color: var(--mc-grass);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px var(--mc-shadow);
    border-bottom: 3px solid var(--mc-grass);
    padding-bottom: 0.5rem;
}

section h2 {
    color: var(--mc-gold);
    font-size: 2rem;
    margin: 1.5rem 0 1rem;
    text-shadow: 2px 2px 4px var(--mc-shadow);
}

section h3 {
    color: var(--mc-grass);
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem;
}

section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* FAQ Styles - применяется только к FAQ секциям */
/* Стилизуем h3, которые идут сразу после h2 (типичная структура FAQ) */
section h2 + h3,
section h2 ~ h3 {
    background: linear-gradient(135deg, rgba(124, 186, 61, 0.15) 0%, rgba(26, 26, 26, 0.3) 100%);
    border: 2px solid var(--mc-grass);
    border-left: 5px solid var(--mc-grass);
    padding: 1rem 1.5rem 1rem 3.5rem;
    margin: 1.5rem 0 0.5rem;
    border-radius: 6px;
    position: relative;
    cursor: default;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: var(--mc-light);
}

section h2 + h3:hover,
section h2 ~ h3:hover {
    background: linear-gradient(135deg, rgba(124, 186, 61, 0.25) 0%, rgba(26, 26, 26, 0.4) 100%);
    border-color: var(--mc-gold);
    border-left-color: var(--mc-gold);
    box-shadow: 0 4px 8px rgba(124, 186, 61, 0.3);
    transform: translateX(5px);
    color: var(--mc-gold);
}

section h2 + h3::before,
section h2 ~ h3::before {
    content: '?';
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--mc-grass);
    color: var(--mc-dark);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    border: 2px solid var(--mc-border);
    box-shadow: 0 2px 4px var(--mc-shadow);
    transition: all 0.3s ease;
}

section h2 + h3:hover::before,
section h2 ~ h3:hover::before {
    background: var(--mc-gold);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 3px 6px rgba(255, 215, 0, 0.4);
}

/* FAQ Answer Blocks - стилизуем параграфы, которые идут сразу после h3 в FAQ */
section h2 ~ h3 + p {
    background: rgba(26, 26, 26, 0.6);
    border-left: 4px solid var(--mc-gold);
    padding: 1.25rem 1.5rem 1.25rem 2.5rem;
    margin: 0 0 1.5rem 0;
    border-radius: 4px;
    position: relative;
    line-height: 1.8;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

section h2 ~ h3 + p:hover {
    background: rgba(26, 26, 26, 0.8);
    border-left-color: var(--mc-grass);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(255, 215, 0, 0.1);
}

section h2 ~ h3 + p::before {
    content: '→';
    position: absolute;
    left: 0.75rem;
    top: 1.25rem;
    color: var(--mc-gold);
    font-size: 1.3rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

section h2 ~ h3 + p:hover::before {
    color: var(--mc-grass);
    transform: translateX(3px);
}

/* Special styling for FAQ section - применяется когда h2 содержит "FAQ" */
section:has(h2:first-child) {
    position: relative;
}

/* Улучшенный стиль для h2 в FAQ */
section h2 {
    margin-bottom: 2rem;
}

/* Дополнительные стили для FAQ секций */
section:has(h3 + p) {
    position: relative;
}

section ul {
    margin: 1rem 0 1rem 2rem;
}

section li {
    margin-bottom: 0.5rem;
}

section strong {
    color: var(--mc-gold);
}

/* Internal Link Styles - только для перелинковки MineDrop */
section p a[title="MineDrop homepage"] {
    color: var(--mc-gold);
    text-decoration: underline;
    text-decoration-color: var(--mc-gold);
    text-underline-offset: 3px;
    transition: all 0.3s ease;
    font-weight: 600;
}

section p a[title="MineDrop homepage"]:hover {
    color: var(--mc-grass);
    text-decoration-color: var(--mc-grass);
    text-shadow: 0 0 5px rgba(124, 186, 61, 0.5);
}

/* Breadcrumbs Styles */
.breadcrumbs {
    margin: 1.5rem 0 2rem;
    padding: 0;
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.breadcrumbs-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumbs-item:not(:last-child)::after {
    content: '→';
    color: var(--mc-stone);
    font-size: 1rem;
    margin-left: 0.5rem;
    font-weight: bold;
}

.breadcrumbs-link {
    color: var(--mc-grass);
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 0.75rem;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: rgba(124, 186, 61, 0.1);
    display: inline-block;
}

.breadcrumbs-link:hover {
    color: var(--mc-gold);
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--mc-gold);
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.2);
}

.breadcrumbs-current {
    color: var(--mc-light);
    font-weight: bold;
    padding: 0.5rem 0.75rem;
    background: rgba(26, 26, 26, 0.6);
    border: 2px solid var(--mc-border);
    border-radius: 6px;
    display: inline-block;
}

/* Demo Game Container Styles */
.demo-game-container {
    margin: 2rem 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(139, 105, 20, 0.3) 100%);
    border: 4px solid var(--mc-border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 6px 16px var(--mc-shadow), inset 0 2px 4px rgba(124, 186, 61, 0.1);
    position: relative;
    overflow: hidden;
}

.demo-game-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--mc-grass) 0%, var(--mc-gold) 50%, var(--mc-grass) 100%);
    animation: shimmer 3s infinite;
}

.demo-game-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border: 3px solid var(--mc-border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.demo-game-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

@media (max-width: 768px) {
    .breadcrumbs {
        margin: 1rem 0 1.5rem;
    }

    .breadcrumbs-list {
        gap: 0.4rem;
    }

    .breadcrumbs-link,
    .breadcrumbs-current {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }

    .breadcrumbs-item:not(:last-child)::after {
        font-size: 0.9rem;
        margin-left: 0.4rem;
    }

    .demo-game-container {
        padding: 1rem;
        margin: 1.5rem 0;
    }

    .demo-game-wrapper {
        padding-bottom: 100%; /* Увеличена высота для мобильных */
        min-height: 500px;
    }
}

@media (max-width: 480px) {
    .breadcrumbs-link,
    .breadcrumbs-current {
        padding: 0.35rem 0.5rem;
        font-size: 0.85rem;
    }

    .demo-game-container {
        padding: 0.85rem;
    }

    .demo-game-wrapper {
        padding-bottom: 120%; /* Еще больше для маленьких экранов */
        min-height: 600px;
    }
}

@media (max-width: 360px) {
    .demo-game-wrapper {
        padding-bottom: 140%; /* Максимальная высота для очень маленьких экранов */
        min-height: 650px;
    }
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: rgba(26, 26, 26, 0.6);
}

table thead {
    background: var(--mc-dirt);
}

table th {
    padding: 1rem;
    text-align: left;
    color: var(--mc-light);
    border: 2px solid var(--mc-border);
    font-weight: bold;
}

table td {
    padding: 1rem;
    border: 2px solid var(--mc-border);
    color: var(--mc-light);
}

table tbody tr:nth-child(even) {
    background: rgba(124, 186, 61, 0.1);
}


/* Banner Styles */
.banner-container {
    margin: 2rem 0;
    text-align: center;
}

.banner-container a {
    display: block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.banner-container a:hover {
    opacity: 0.9;
}

.banner-container img {
    max-width: 100%;
    height: auto;
    border: 4px solid var(--mc-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--mc-shadow);
    display: block;
    margin: 0 auto;
}

/* Section with Side Banner */
section.with-side-banner {
    display: flex;
    flex-direction: column;
}

section.with-side-banner > h2 {
    width: 100%;
    margin-bottom: 1rem;
}

section.with-side-banner .section-wrapper {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

section.with-side-banner .section-content {
    flex: 1;
    min-width: 0;
}

section.with-side-banner .banner-side {
    flex-shrink: 0;
    width: 300px;
    max-width: 100%;
}

section.with-side-banner .banner-side a {
    display: block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

section.with-side-banner .banner-side a:hover {
    opacity: 0.9;
}

section.with-side-banner .banner-side img {
    width: 100%;
    height: auto;
    border: 4px solid var(--mc-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--mc-shadow);
    display: block;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

@media (max-width: 768px) {
    section.with-side-banner .section-wrapper {
        flex-direction: column;
        gap: 1.5rem;
    }

    section.with-side-banner .banner-side {
        width: 100%;
        max-width: 100%;
        order: -1;
    }
}

/* Footer Styles */
.main-footer {
    background: linear-gradient(180deg, var(--mc-dark) 0%, #0f0f0f 100%);
    border-top: 4px solid var(--mc-border);
    margin-top: 3rem;
    padding: 2.5rem 0 1.5rem;
    box-shadow: 0 -4px 12px var(--mc-shadow);
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--mc-grass) 0%, var(--mc-gold) 50%, var(--mc-grass) 100%);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 1.5rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-section-title {
    color: var(--mc-gold);
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-align: center;
    text-shadow: 1px 1px 2px var(--mc-shadow);
}

.footer-logos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.footer-logo-item {
    background: rgba(26, 26, 26, 0.6);
    border: 2px solid var(--mc-border);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    height: 60px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.footer-logo-item:hover {
    background: rgba(26, 26, 26, 0.9);
    border-color: var(--mc-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

.footer-logo-item img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    filter: drop-shadow(1px 1px 2px var(--mc-shadow));
}

.footer-nav {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--mc-border);
}

.footer-nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-nav-list a {
    color: var(--mc-light);
    text-decoration: none;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--mc-border);
    border-radius: 6px;
    transition: all 0.3s;
    text-transform: uppercase;
    background: rgba(26, 26, 26, 0.4);
    display: inline-block;
}

.footer-nav-list a:hover {
    color: var(--mc-gold);
    border-color: var(--mc-gold);
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.2);
}

.footer-copyright {
    text-align: center;
    color: var(--mc-stone);
    font-size: 0.9rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--mc-border);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-top {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 1rem;
        padding: 1rem;
        position: relative;
    }

    .header-logo {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        align-items: center;
    }

    .mobile-menu-toggle {
        display: flex;
        grid-column: 2;
        grid-row: 1;
        position: static;
        transform: none;
        align-self: center;
    }

    .header-buttons {
        display: flex;
        gap: 0.5rem;
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: center;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        flex: 1;
        max-width: 200px;
    }

    .main-nav {
        padding: 0;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--mc-dark);
        border-top: 2px solid var(--mc-border);
        box-shadow: 0 4px 8px var(--mc-shadow);
        padding: 0;
        max-width: 100%;
        z-index: 1000;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list a {
        border-right: none;
        border-bottom: 1px solid var(--mc-border);
        padding: 1rem;
    }

    .nav-list li:last-child a {
        border-bottom: none;
    }

    .main-nav {
        position: relative;
    }

    .main-header {
        position: relative;
    }

    main {
        padding: 1rem;
    }

    section {
        padding: 1.5rem;
    }

    section h1 {
        font-size: 2rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .footer-nav {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .footer-nav-list {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section-title {
        font-size: 1rem;
    }

    .footer-logo-item {
        min-width: 80px;
        height: 50px;
        padding: 0.5rem;
    }

    .banner-container {
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .header-logo img {
        height: 40px;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    section h1 {
        font-size: 1.5rem;
    }

    section h2 {
        font-size: 1.25rem;
    }

    main {
        padding: 0.5rem;
    }

    section {
        padding: 1rem;
    }
}

/* 404 Page - только для прямого дочернего div без классов */
main > div:not([class]) {
    text-align: center;
    padding: 3rem;
    font-size: 3rem;
    color: var(--mc-grass);
    font-weight: bold;
}

/* App Download Widget Styles */
.app-download-widget {
    margin: 2rem 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(139, 105, 20, 0.3) 100%);
    border: 4px solid var(--mc-border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 6px 16px var(--mc-shadow), inset 0 2px 4px rgba(124, 186, 61, 0.1);
    position: relative;
    overflow: hidden;
}

/* Сброс стилей для всех div внутри компонентов */
.app-download-widget div,
.casino-banner div {
    padding: 0;
    text-align: initial;
    font-size: initial;
    color: initial;
    font-weight: initial;
}

.app-download-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--mc-grass) 0%, var(--mc-gold) 50%, var(--mc-grass) 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.app-widget-content {
    position: relative;
    z-index: 1;
}

.app-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.app-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 250px;
}

.app-icon-wrapper {
    position: relative;
}

.app-icon-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--mc-dirt) 0%, var(--mc-wood) 100%);
    border: 3px solid var(--mc-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px var(--mc-shadow), inset 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.app-icon-placeholder::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.app-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    position: relative;
    z-index: 1;
    padding: 8px;
}

.app-widget-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.app-widget-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--mc-gold);
    text-shadow: 2px 2px 4px var(--mc-shadow), 0 0 8px rgba(255, 215, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.app-widget-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.app-rating-stars {
    color: var(--mc-gold);
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px var(--mc-shadow);
    letter-spacing: 2px;
}

.app-rating-text {
    color: var(--mc-light);
    font-size: 0.95rem;
    font-weight: bold;
}

.app-widget-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.app-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(124, 186, 61, 0.2) 0%, rgba(26, 26, 26, 0.4) 100%);
    border: 2px solid var(--mc-grass);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.app-badge:hover {
    background: linear-gradient(135deg, rgba(124, 186, 61, 0.4) 0%, rgba(26, 26, 26, 0.6) 100%);
    border-color: var(--mc-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(124, 186, 61, 0.4);
}

.badge-icon {
    font-size: 1.2rem;
    filter: drop-shadow(1px 1px 2px var(--mc-shadow));
}

.badge-text {
    color: var(--mc-light);
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-download-btn {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(180deg, var(--mc-grass) 0%, #6ba030 100%);
    border: 3px solid var(--mc-border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--mc-dark);
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.2s ease;
    box-shadow: 0 4px 0 var(--mc-shadow);
    position: relative;
    overflow: hidden;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.app-download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.app-download-btn:hover::before {
    left: 100%;
}

.app-download-btn:hover {
    background: linear-gradient(180deg, #8dd04f 0%, var(--mc-grass) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--mc-shadow);
}

.app-download-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--mc-shadow);
}

.app-download-ios {
    background: linear-gradient(180deg, var(--mc-gold) 0%, #e6c200 100%);
}

.app-download-ios:hover {
    background: linear-gradient(180deg, #ffed4e 0%, var(--mc-gold) 100%);
}

.app-store-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.app-btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.app-btn-store {
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 900;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

/* Casino Banner Styles */
.casino-banner {
    margin: 2rem 0;
    background: linear-gradient(135deg, rgba(139, 105, 20, 0.4) 0%, rgba(26, 26, 26, 0.95) 50%, rgba(124, 186, 61, 0.2) 100%);
    border: 4px solid var(--mc-border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 6px 16px var(--mc-shadow), inset 0 2px 4px rgba(255, 215, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.casino-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--mc-gold) 0%, var(--mc-grass) 50%, var(--mc-gold) 100%);
    animation: shimmer 3s infinite;
}

.casino-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.casino-banner-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
    min-width: 280px;
}

.casino-logo-wrapper {
    position: relative;
}

.casino-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    border: 3px solid var(--mc-border);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--mc-dirt) 0%, var(--mc-wood) 100%);
    padding: 8px;
    box-shadow: 0 4px 8px var(--mc-shadow), inset 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.casino-logo:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.4);
    border-color: var(--mc-gold);
}

.casino-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.casino-title-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.casino-name {
    font-size: 2rem;
    font-weight: bold;
    color: var(--mc-gold);
    text-shadow: 2px 2px 4px var(--mc-shadow), 0 0 10px rgba(255, 215, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.casino-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.rating-stars {
    color: var(--mc-gold);
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px var(--mc-shadow);
    letter-spacing: 2px;
}

.rating-value {
    color: var(--mc-grass);
    font-size: 1.1rem;
    font-weight: bold;
    background: rgba(124, 186, 61, 0.2);
    padding: 0.25rem 0.75rem;
    border: 2px solid var(--mc-grass);
    border-radius: 6px;
    text-shadow: 1px 1px 2px var(--mc-shadow);
}

.casino-banner-center {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.casino-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
}

.casino-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(26, 26, 26, 0.6);
    border: 2px solid var(--mc-border);
    border-left: 5px solid var(--mc-grass);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.casino-feature:hover {
    background: rgba(26, 26, 26, 0.8);
    border-left-color: var(--mc-gold);
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(124, 186, 61, 0.3);
}

.feature-icon {
    font-size: 1.5rem;
    filter: drop-shadow(1px 1px 2px var(--mc-shadow));
    flex-shrink: 0;
}

.feature-text {
    color: var(--mc-light);
    font-weight: bold;
    font-size: 1rem;
    text-shadow: 1px 1px 2px var(--mc-shadow);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    min-width: 0;
    flex: 1;
}

.casino-banner-right {
    display: flex;
    align-items: center;
}

.casino-play-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(180deg, var(--mc-gold) 0%, #e6c200 100%);
    border: 3px solid var(--mc-border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--mc-dark);
    font-weight: 900;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    box-shadow: 0 5px 0 var(--mc-shadow);
    position: relative;
    overflow: hidden;
    min-width: 180px;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.4);
}

.casino-play-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.casino-play-button:hover::before {
    left: 100%;
}

.casino-play-button:hover {
    background: linear-gradient(180deg, #ffed4e 0%, var(--mc-gold) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 0 var(--mc-shadow);
}

.casino-play-button:active {
    transform: translateY(2px);
    box-shadow: 0 3px 0 var(--mc-shadow);
}

.button-text {
    position: relative;
    z-index: 1;
    font-weight: 900;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.5);
}

.button-arrow {
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.casino-play-button:hover .button-arrow {
    transform: translateX(5px);
}

/* Responsive Design for Components */
@media (max-width: 768px) {
    .app-download-widget {
        padding: 1.25rem;
    }

    .app-widget-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.25rem;
    }

    .app-header-left {
        width: 100%;
    }

    .app-widget-badges {
        display: none;
    }

    .app-download-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .app-download-btn {
        width: 100%;
        min-width: unset;
        padding: 0.9rem 1.25rem;
    }

    .app-widget-title {
        font-size: 1.5rem;
    }

    .app-widget-rating {
        font-size: 0.9rem;
    }

    .casino-banner {
        padding: 1.25rem;
    }

    .casino-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }

    .casino-banner-left {
        width: 100%;
        justify-content: center;
        text-align: center;
        gap: 1rem;
    }

    .casino-logo {
        width: 90px;
        height: 90px;
    }

    .casino-name {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .casino-rating {
        font-size: 0.95rem;
    }

    .casino-banner-center {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .casino-features {
        gap: 0.6rem;
        width: 100%;
        max-width: 100%;
    }

    .casino-feature {
        padding: 0.6rem 0.85rem;
        gap: 0.6rem;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .feature-icon {
        font-size: 1.3rem;
        flex-shrink: 0;
    }

    .feature-text {
        font-size: 0.9rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        min-width: 0;
        flex: 1;
    }

    .casino-banner-right {
        width: 100%;
        justify-content: center;
    }

    .casino-play-button {
        width: 100%;
        min-width: unset;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .app-download-widget,
    .casino-banner {
        padding: 1rem;
        margin: 1.5rem 0;
    }

    .app-widget-header {
        margin-bottom: 1rem;
    }

    .app-header-left {
        gap: 0.75rem;
    }

    .app-icon-placeholder {
        width: 60px;
        height: 60px;
    }

    .app-widget-title {
        font-size: 1.3rem;
        letter-spacing: 0.5px;
    }

    .app-widget-rating {
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .app-rating-stars {
        font-size: 1rem;
    }

    .app-download-buttons {
        gap: 0.6rem;
    }

    .app-download-btn {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }

    .app-store-icon {
        width: 20px;
        height: 20px;
    }

    .app-btn-store {
        font-size: 0.9rem;
    }

    .casino-banner-content {
        gap: 1rem;
    }

    .casino-banner-left {
        gap: 0.75rem;
    }

    .casino-logo {
        width: 70px;
        height: 70px;
    }

    .casino-name {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    .casino-rating {
        font-size: 0.85rem;
        gap: 0.5rem;
    }

    .rating-stars {
        font-size: 1rem;
    }

    .rating-value {
        font-size: 0.95rem;
        padding: 0.2rem 0.6rem;
    }

    .casino-banner-center {
        max-width: 100%;
        min-width: 0;
    }

    .casino-features {
        gap: 0.5rem;
        width: 100%;
        max-width: 100%;
    }

    .casino-feature {
        padding: 0.5rem 0.7rem;
        gap: 0.5rem;
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .feature-icon {
        font-size: 1.2rem;
    }

    .feature-text {
        font-size: 0.8rem;
        line-height: 1.3;
        flex: 1;
        min-width: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    .casino-play-button {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
        letter-spacing: 0.5px;
    }

    .button-arrow {
        font-size: 1.3rem;
    }
}

@media (max-width: 360px) {
    .app-download-widget,
    .casino-banner {
        padding: 0.85rem;
    }

    .app-widget-title {
        font-size: 1.15rem;
    }

    .casino-name {
        font-size: 1.15rem;
    }

    .casino-banner-center {
        max-width: 100%;
        min-width: 0;
    }

    .casino-feature {
        padding: 0.45rem 0.6rem;
        gap: 0.4rem;
    }

    .feature-text {
        font-size: 0.75rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .casino-play-button {
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(180deg, var(--mc-gold) 0%, #e6c200 100%);
    border: 3px solid var(--mc-border);
    border-radius: 50%;
    color: var(--mc-dark);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--mc-shadow);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
}

.scroll-to-top.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(180deg, #ffed4e 0%, var(--mc-gold) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px var(--mc-shadow);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}

