/* =========================================================
   Cat Casino — Landing styles
   ========================================================= */

:root {
    --bg: #0f1424;
    --bg-2: #161c30;
    --bg-3: #1e2540;
    --text: #ffffff;
    --muted: #9aa3c0;
    --accent: #ff36c4;
    --accent-2: #ffb800;
    --primary: #ffb800;
    --primary-hover: #ffc733;
    --border: rgba(255, 255, 255, 0.06);
    --radius: 10px;
    --container: 1180px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* =================== Buttons =================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    border: 2px solid transparent;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform .15s ease, background .15s ease, box-shadow .2s ease;
    white-space: nowrap;
}

.btn--primary {
    background: var(--primary);
    color: #1a1a1a;
    box-shadow: 0 6px 24px -8px rgba(255, 184, 0, 0.55);
}

.btn--primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--primary);
}

.btn--ghost:hover {
    background: rgba(255, 184, 0, 0.1);
}

.btn--lg {
    padding: 14px 32px;
    font-size: 16px;
}

/* =================== Header =================== */
.header {
    background: rgba(15, 20, 36, 0.92);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
}

.header__inner {
    display: flex;
    align-items: center;
    height: 64px;
    gap: 32px;
}

.logo img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 28px;
    flex: 1;
}

.nav__link {
    color: #cdd3e8;
    font-size: 13px;
    font-weight: 500;
    transition: color .15s ease;
}

.nav__link:hover {
    color: var(--accent);
}

.header__actions {
    display: flex;
    gap: 10px;
}

/* =================== Hero =================== */
.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(15, 20, 36, 0.85) 0%, rgba(15, 20, 36, 0.2) 30%, rgba(15, 20, 36, 0.2) 70%, rgba(15, 20, 36, 0.85) 100%),
        url('../images/hero-bg.png') center center / cover no-repeat;
    min-height: 320px;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background-color: #3b29ff;
    background-repeat: no-repeat;
    background-position: center 30%;
    background-size: 78% auto;
    z-index: 1;
}

.hero::before {
    left: -150px;
    background-image: url('../images/hero-cat-left.png');
}

.hero::after {
    right: -150px;
    background-image: url('../images/hero-cat-right.png');
}

.hero__inner {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    min-height: 320px;
    padding: 40px 20px;
}

.hero__content {
    max-width: 520px;
    position: relative;
    z-index: 2;
}

.hero__title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 14px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero__title span {
    color: #fff;
    font-size: 34px;
    font-weight: 700;
}

.hero__subtitle {
    color: #d6dcf0;
    font-size: 15px;
    margin: 0 0 22px;
}


/* =================== Categories =================== */
.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 24px;
    padding-bottom: 24px;
}

.categories__item {
    padding: 8px 18px;
    border-radius: 8px;
    background: var(--bg-2);
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    transition: all .2s ease;
}

.categories__item:hover,
.categories__item.is-active {
    color: #fff;
    background: var(--bg-3);
}

/* =================== Games grid =================== */
.games {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    padding-bottom: 60px;
}

.games__cat {
    background: var(--bg-2);
    border-radius: var(--radius);
    aspect-ratio: 314 / 220;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px 12px;
    gap: 10px;
}

.games__cat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.games__cat h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
}

.games__more {
    color: var(--accent);
    font-size: 13px;
    font-weight: 500;
    border-bottom: 1px dashed rgba(255, 54, 196, 0.3);
}

.games__more:hover {
    color: #fff;
}

.game-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-2);
    aspect-ratio: 314 / 220;
    transition: transform .2s ease, box-shadow .2s ease;
    cursor: pointer;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px -10px rgba(255, 54, 196, 0.4);
}

.game-card::after {
    content: 'Играть';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 20, 36, 0.8);
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity .2s ease;
}

.game-card:hover::after {
    opacity: 1;
}

/* =================== SEO text =================== */
.seo {
    padding: 40px 20px 60px;
    color: #cdd3e8;
    font-size: 14px;
    line-height: 1.7;
    max-width: 980px;
}

.seo h2 {
    font-size: 24px;
    color: #fff;
    margin: 0 0 14px;
}

.seo h3 {
    font-size: 18px;
    color: var(--accent);
    margin: 26px 0 10px;
}

.seo p {
    margin: 0 0 12px;
}

.seo strong {
    color: #fff;
}

.seo__note {
    margin-top: 22px;
    padding: 12px 16px;
    border-left: 3px solid var(--primary);
    background: rgba(255, 184, 0, 0.05);
    font-size: 13px;
    color: var(--muted);
}

/* =================== Payments =================== */
.payments {
    padding-bottom: 60px;
}

.payments__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    align-items: center;
}

.payments__item {
    background: var(--bg-2);
    border-radius: 8px;
    padding: 16px 24px;
    min-width: 110px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(0.3);
    transition: filter .2s ease;
}

.payments__item img {
    max-height: 28px;
    width: auto;
}

.payments__item--text {
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 1px;
    font-size: 13px;
}

.payments__item:hover {
    filter: grayscale(0);
}

/* =================== Footer =================== */
.footer {
    background: #0a0e1c;
    color: var(--muted);
    font-size: 13px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
}

.footer__logo {
    height: 36px;
    width: auto;
    margin-bottom: 12px;
}

.footer__col h4 {
    color: #fff;
    margin: 0 0 14px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer__col a {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    transition: color .15s ease;
}

.footer__col a:hover {
    color: var(--accent);
}

.footer__bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    background: #06091a;
}

.footer__bottom .container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer__bottom p {
    margin: 0;
    font-size: 12px;
    color: #6b748f;
    line-height: 1.6;
}

.footer__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid #ff3b3b;
    color: #ff3b3b;
    border-radius: 50%;
    font-weight: 800;
    flex-shrink: 0;
}

/* =================== Wheel Modal =================== */
.wheel-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wheel-modal.is-open {
    display: flex;
}

.wheel-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 20, 0.85);
    backdrop-filter: blur(6px);
}

.wheel-modal__inner {
    position: relative;
    width: 100%;
    max-width: 1020px;
    background:
        linear-gradient(180deg, rgba(15, 20, 36, 0.5) 0%, rgba(15, 20, 36, 0.85) 100%),
        url('../images/wheel-bg.png') center / cover no-repeat;
    background-color: #0a1d4d;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 60px -20px rgba(255, 54, 196, 0.3);
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 24px;
    padding: 36px 32px;
    overflow: hidden;
}

.wheel-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    transition: background .15s ease, transform .15s ease;
}

.wheel-modal__close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

/* === Левая колонка === */
.wheel-modal__side {
    color: #fff;
    position: relative;
    z-index: 2;
}

.wheel-modal__attempts {
    color: #fff;
    font-size: 14px;
    margin-bottom: 6px;
    opacity: 0.85;
}

.wheel-modal__title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 22px;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.prizes {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.prize {
    background: rgba(20, 35, 80, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all .2s ease;
    opacity: 0.6;
}

.prize.is-active {
    opacity: 1;
    border-color: rgba(255, 184, 0, 0.5);
    box-shadow: 0 0 0 1px rgba(255, 184, 0, 0.25) inset, 0 6px 24px -8px rgba(255, 184, 0, 0.3);
}

.prize.is-won {
    opacity: 1;
    background: linear-gradient(135deg, rgba(255, 184, 0, 0.18), rgba(255, 54, 196, 0.15));
    border-color: rgba(255, 184, 0, 0.7);
}

.prize__num {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.prize.is-active .prize__num,
.prize.is-won .prize__num {
    color: var(--primary);
}

.prize__val {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-align: right;
    letter-spacing: 0.5px;
}

.wheel-modal__rules {
    font-size: 12px;
    color: #b3bcdb;
    line-height: 1.7;
    margin: 0;
}

.wheel-modal__rules strong {
    color: #fff;
}

/* === Колесо === */
.wheel-modal__wheel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 460px;
    z-index: 2;
}

.wheel-pointer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 50px;
    background: linear-gradient(180deg, #ff3b3b 0%, #c81818 100%);
    clip-path: polygon(50% 100%, 0 30%, 0 0, 100% 0, 100% 30%);
    z-index: 4;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.wheel-pointer::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

.wheel {
    position: relative;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: #b1180e;
    padding: 18px;
    box-shadow:
        0 0 0 6px #ffd400,
        0 0 0 10px #b1180e,
        0 20px 60px -10px rgba(0, 0, 0, 0.6);
}

/* Dots around wheel */
.wheel::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 8%, #fff 0 4px, transparent 5px),
        radial-gradient(circle at 91% 16%, #fff 0 4px, transparent 5px),
        radial-gradient(circle at 99% 50%, #fff 0 4px, transparent 5px),
        radial-gradient(circle at 91% 84%, #fff 0 4px, transparent 5px),
        radial-gradient(circle at 50% 92%, #fff 0 4px, transparent 5px),
        radial-gradient(circle at 9% 84%, #fff 0 4px, transparent 5px),
        radial-gradient(circle at 1% 50%, #fff 0 4px, transparent 5px),
        radial-gradient(circle at 9% 16%, #fff 0 4px, transparent 5px),
        radial-gradient(circle at 30% 4%, #fff 0 3px, transparent 4px),
        radial-gradient(circle at 70% 4%, #fff 0 3px, transparent 4px),
        radial-gradient(circle at 96% 30%, #fff 0 3px, transparent 4px),
        radial-gradient(circle at 96% 70%, #fff 0 3px, transparent 4px),
        radial-gradient(circle at 70% 96%, #fff 0 3px, transparent 4px),
        radial-gradient(circle at 30% 96%, #fff 0 3px, transparent 4px),
        radial-gradient(circle at 4% 70%, #fff 0 3px, transparent 4px),
        radial-gradient(circle at 4% 30%, #fff 0 3px, transparent 4px);
    pointer-events: none;
    z-index: 3;
}

.wheel__sectors {
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: rotate(0deg);
    z-index: 1;
}

.wheel__labels {
    position: absolute;
    inset: 18px;
    pointer-events: none;
    transition: transform 6s cubic-bezier(0.16, 1, 0.3, 1);
    transform: rotate(0deg);
    z-index: 2;
}

.wheel__label {
    position: absolute;
    transform-origin: 50% 50%;
    color: #fff;
    font-weight: 900;
    font-size: 14px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    letter-spacing: 0.3px;
    pointer-events: none;
}

.wheel__center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #2e7eff 0%, #1059d4 60%, #062e7a 100%);
    color: #fff;
    border: 6px solid #fff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    z-index: 4;
    box-shadow:
        0 0 0 3px #b1180e,
        0 10px 30px -5px rgba(0, 0, 0, 0.6),
        inset 0 -8px 16px rgba(0, 0, 0, 0.3);
    transition: transform .15s ease, box-shadow .15s ease;
}

.wheel__center:hover:not(:disabled) {
    transform: translate(-50%, -50%) scale(1.05);
}

.wheel__center:active:not(:disabled) {
    transform: translate(-50%, -50%) scale(0.98);
}

.wheel__center:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.wheel__hint {
    position: absolute;
    top: 10px;
    right: -10px;
    background: linear-gradient(135deg, #ff36c4, #b1180e);
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    padding: 8px 14px;
    border-radius: 20px;
    transform: rotate(8deg);
    box-shadow: 0 4px 14px -2px rgba(255, 54, 196, 0.5);
    animation: pulse 1.4s ease-in-out infinite;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wheel__hint::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    border: 6px solid transparent;
    border-top-color: #b1180e;
}

@keyframes pulse {
    0%, 100% { transform: rotate(8deg) scale(1); }
    50% { transform: rotate(8deg) scale(1.08); }
}

/* === Win screen === */
.wheel-modal__win {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(5, 8, 20, 0.92);
    backdrop-filter: blur(12px);
    z-index: 10;
    border-radius: 16px;
}

.wheel-modal__win.is-shown {
    display: flex;
    animation: winFade .4s ease;
}

@keyframes winFade {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.win {
    text-align: center;
    max-width: 480px;
    padding: 40px 30px;
    color: #fff;
}

.win__badge {
    display: inline-block;
    padding: 6px 18px;
    background: linear-gradient(90deg, #ff36c4, #ffb800);
    color: #1a1a1a;
    font-weight: 900;
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.win__title {
    font-size: 36px;
    margin: 0 0 12px;
    font-weight: 800;
}

.win__text {
    color: #cdd3e8;
    margin: 0 0 22px;
    font-size: 15px;
}

.win__prize {
    background: linear-gradient(135deg, #ff36c4 0%, #ffb800 100%);
    color: #1a1a1a;
    padding: 26px 20px;
    border-radius: 14px;
    font-size: 36px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 22px;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px -10px rgba(255, 184, 0, 0.5);
}

.win__prize span {
    font-size: 22px;
    display: block;
    margin-top: 4px;
}

.win__note {
    color: #b3bcdb;
    font-size: 13px;
    margin: 0 0 22px;
    line-height: 1.6;
}

.win__age {
    color: #6b748f;
    font-size: 12px;
    margin: 16px 0 0;
}

/* =================== Responsive =================== */
@media (max-width: 1024px) {
    .games {
        grid-template-columns: repeat(4, 1fr);
    }

    .nav {
        gap: 18px;
    }

    .wheel-modal__inner {
        grid-template-columns: 280px 1fr;
        padding: 28px 22px;
    }

    .wheel {
        width: 380px;
        height: 380px;
    }
}

@media (max-width: 820px) {
    .nav {
        display: none;
    }

    .header__inner {
        gap: 12px;
        justify-content: space-between;
    }

    .hero__title {
        font-size: 26px;
    }

    .games {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer__inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .wheel-modal__inner {
        grid-template-columns: 1fr;
        max-width: 520px;
        max-height: 92vh;
        overflow-y: auto;
    }

    .wheel-modal__side {
        text-align: center;
    }
}

@media (max-width: 560px) {
    .header__actions .btn {
        padding: 8px 14px;
        font-size: 12px;
    }

    .hero {
        min-height: 240px;
    }

    .hero__title {
        font-size: 22px;
    }

    .games {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .categories {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .categories__item {
        flex-shrink: 0;
    }

    .footer__inner {
        grid-template-columns: 1fr;
    }

    .wheel {
        width: 300px;
        height: 300px;
        padding: 12px;
    }

    .wheel__center {
        width: 100px;
        height: 100px;
        font-size: 18px;
        border-width: 4px;
    }

    .wheel__label {
        font-size: 12px;
    }

    .win__title {
        font-size: 26px;
    }

    .win__prize {
        font-size: 26px;
    }

    .win__prize span {
        font-size: 18px;
    }
}
