/* ============================
   RETRO CASINO — FULL STYLES
   Rubber Hose Retro 1930s Style
=============================== */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f5ecd8;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #2b1a12;
}

/* --- Paper texture background --- */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 0 0, rgba(0,0,0,0.12), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(0,0,0,0.08), transparent 55%);
    mix-blend-mode: multiply;
    opacity: 0.35;
    z-index: -1;
}

/* ============================
   HEADER
=============================== */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 32px;
    background: #341d15;
    border-bottom: 4px solid #f6c55a;
    box-shadow: 0 6px 0 #1c0f0a;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffe27a, #f6a11f);
    border: 3px solid #1c0f0a;
    box-shadow: 0 3px 0 #1c0f0a;
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffe9b5;
    text-shadow: 0 3px 0 #1c0f0a;
}

/* NAVIGATION */
.nav {
    display: flex;
    gap: 18px;
}

.nav a {
    position: relative;
    color: #ffe9b5;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    padding-bottom: 3px;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #f6c55a;
    transition: width 0.2s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

/* PLAY BUTTON */
.btn-play {
    background: #f6c55a;
    border: 3px solid #1c0f0a;
    border-radius: 999px;
    padding: 8px 22px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 0 #1c0f0a;
    text-transform: uppercase;
}

.btn-play:active {
    box-shadow: 0 1px 0 #1c0f0a;
    transform: translateY(3px);
}

/* ============================
   SLIDER
=============================== */

.banner-slider {
    max-width: 1180px;
    margin: 24px auto 8px;
    padding: 0 16px;
}

.swiper {
    border-radius: 20px;
    border: 4px solid #1c0f0a;
    box-shadow: 0 8px 0 #1c0f0a;
    overflow: hidden;
    background: #f9e3b0;
    position: relative;
}

.slide-img {
    width: 100%;
    display: block;
}

.swiper-slide {
    position: relative;
}

/* SLIDE TEXT BLOCK */
.slide-overlay {
    position: absolute;
    left: 40px;
    bottom: 40px;
    max-width: 50%;
    background: rgba(255, 242, 211, 0.9);
    border: 3px solid #1c0f0a;
    border-radius: 16px;
    padding: 12px 18px;
    box-shadow: 0 5px 0 #1c0f0a;
}

.slide-overlay h2 {
    margin: 0 0 4px;
    font-size: 24px;
    text-transform: uppercase;
}

.slide-overlay p {
    margin: 0 0 10px;
    font-size: 15px;
}

.btn-primary {
    background: #ec5347;
    color: #fff;
    border: 3px solid #1c0f0a;
    border-radius: 999px;
    padding: 6px 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 0 #1c0f0a;
    text-transform: uppercase;
    font-size: 14px;
}

.btn-primary:active {
    box-shadow: 0 1px 0 #1c0f0a;
    transform: translateY(3px);
}

/* ============================
   SWIPER CONTROLS
=============================== */

.swiper-button-prev,
.swiper-button-next {
    color: #1c0f0a;
    text-shadow: 0 2px 0 #f5ecd8;
}

.swiper-pagination-bullet {
    background: #1c0f0a;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: #ec5347;
    opacity: 1;
}

/* ============================
   POPULAR GAMES
=============================== */

.games-section {
    max-width: 1180px;
    margin: 32px auto 40px;
    padding: 0 16px;
}

.section-title {
    text-align: center;
    font-size: 28px;
    text-transform: uppercase;
    margin-bottom: 18px;
    text-shadow: 0 3px 0 #f5c76b;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.game-card {
    background: #f9e3b0;
    border-radius: 16px;
    border: 3px solid #1c0f0a;
    box-shadow: 0 5px 0 #1c0f0a;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.game-card:hover {
    transform: translateY(-4px) rotate(-0.5deg);
    box-shadow: 0 8px 0 #1c0f0a;
}

.game-inner {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

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

.footer {
    background: #341d15;
    color: #f5ecd8;
    text-align: center;
    padding: 16px;
    border-top: 4px solid #f6c55a;
}

/* ============================
   WOLF ASSISTANT
=============================== */

.wolf-assistant {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.wolf-assistant img {
    width: 120px;
    height: auto;
    display: block;
}

.wolf-bubble {
    max-width: 210px;
    background: #fff7d6;
    border-radius: 14px;
    border: 3px solid #1c0f0a;
    padding: 8px 12px;
    font-size: 13px;
    box-shadow: 0 4px 0 #1c0f0a;
    position: relative;
}

.wolf-bubble::after {
    content: "";
    position: absolute;
    right: 16px;
    bottom: -10px;
    width: 18px;
    height: 18px;
    background: #fff7d6;
    border-left: 3px solid #1c0f0a;
    border-bottom: 3px solid #1c0f0a;
    transform: rotate(45deg);
}

.wolf-bubble.hidden {
    display: none;
}

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

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

    .slide-overlay {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
}

@media (max-width: 600px) {
    .header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wolf-assistant img {
        width: 90px;
    }
}
