/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
    --bg-nav: #272729;
    --border-color: #2f3034;
    --bg-primary: #0a0e1a;
    --accent-blue: #0075ff;
    --text-muted: #838486;
    --accent-cyan: #00cc88;
    --bg-card: #1a1f2f;
    --accent-gradient: linear-gradient(135deg, #0075ff, #00cc88);
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    --text-secondary: #9aa1b1;
    --radius-lg: 20px;
    --bg-secondary: #0f1422;
    --text-primary: #f0f2f5;
    --radius: 12px;
    --font: 'Roboto', system-ui, -apple-system, sans-serif;
    --bg-input: #272729;
    --transition: 0.3s ease;
    --max-width: 1096px;
    --accent-orange: #ff9500;
    --accent-green: #00b24b;
}

/* ============================================================
   BASE & RESET
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg-primary);
    min-width: 360px;
}

body {
    font: 400 16px/1.5 var(--font);
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    min-height: 100vh;
    padding-bottom: 70px;
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
    display: none;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    gap: 8px;
}

.btn-primary {
    color: #fff;
    background: var(--accent-gradient);
    box-shadow: 0 4px 15px rgba(0, 117, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 117, 255, 0.4);
}

.btn-success {
    background: var(--accent-green);
    color: #fff;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 178, 75, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-white {
    background: #fff;
    color: #000;
}

.btn-white:hover {
    background: #e0e0e0;
}

.btn-big {
    padding: 16px 32px;
    font-size: 18px;
    border-radius: 50px;
    width: 100%;
    max-width: 400px;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
}

.header__logo span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header__nav {
    display: none;
    align-items: center;
    gap: 4px;
    background: var(--bg-nav);
    padding: 4px;
    border-radius: var(--radius);
}

.header__nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.header__nav a.active {
    background: var(--accent-blue);
    color: #fff;
}

.header__nav a:hover:not(.active) {
    color: #fff;
}

.header__nav .icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    background: currentColor;
    -webkit-mask: no-repeat center/contain;
    mask: no-repeat center/contain;
    flex-shrink: 0;
}

/* ============================================================
   SVG ИКОНКИ
   ============================================================ */
.icon-home {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6'/%3E%3C/svg%3E");
}

.icon-casino {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'/%3E%3Cpath d='M16 21V5a2 2 0 00-2-2h-4a2 2 0 00-2 2v16'/%3E%3C/svg%3E");
}

.icon-money {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 12h8'/%3E%3C/svg%3E");
}

.icon-sport {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4L4 6l4 4 2-2 4 4 2-2 4 4 2-2'/%3E%3C/svg%3E");
}

.header__btns {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header__btns .btn {
    padding: 8px 16px;
    font-size: 12px;
}

/* ============================================================
   MAIN
   ============================================================ */
main {
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title .icon {
    width: 28px;
    height: 28px;
    background: var(--accent-gradient);
    border-radius: 8px;
    flex-shrink: 0;
}

/* ============================================================
   WINS MARQUEE
   ============================================================ */
.wins-marquee {
    overflow: hidden;
    position: relative;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 12px 0;
}

.wins-marquee__track {
    display: flex;
    gap: 16px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.wins-marquee__track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.win-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    padding: 8px 16px;
    border-radius: 8px;
    flex-shrink: 0;
    border-left: 3px solid var(--accent-cyan);
    min-width: 200px;
}

.win-card__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
}

.win-card__info {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    line-height: 1.3;
}

.win-card__info .amount {
    font-weight: 700;
    color: var(--accent-cyan);
    font-size: 16px;
}

.win-card__info .email {
    color: var(--text-secondary);
    font-size: 11px;
}

.win-card__info .game {
    color: var(--text-muted);
    font-size: 11px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero h1 {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.2;
}

.hero__meta {
    font-size: 13px;
    color: var(--text-muted);
}

.hero__meta span {
    text-decoration: underline;
}

.hero__banner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    aspect-ratio: 16/6;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #002244, #004488);
    position: relative;
}

.hero__banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__banner .overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
}

.hero__banner .overlay h2 {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero__banner .overlay p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
}

.hero__btn {
    display: flex;
    justify-content: center;
}

/* ============================================================
   TOC
   ============================================================ */
.toc {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 20px 24px;
    border: 1px solid var(--border-color);
}

.toc h2 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #fff;
}

.toc ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.toc ul li {
    font-size: 14px;
    color: var(--text-secondary);
}

.toc ul li a {
    color: var(--accent-cyan);
    transition: var(--transition);
}

.toc ul li a:hover {
    color: var(--accent-blue);
}

/* ============================================================
   GAME CATEGORIES
   ============================================================ */
.game-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.game-categories a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--bg-card);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    border: 1px solid transparent;
}

.game-categories a:hover,
.game-categories a.active {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
}

.game-categories .icon {
    width: 18px;
    height: 18px;
    display: inline-block;
    background: currentColor;
    -webkit-mask: no-repeat center/contain;
    mask: no-repeat center/contain;
    flex-shrink: 0;
}

/* ============================================================
   GAME SLIDER
   ============================================================ */
.game-slider {
    overflow: hidden;
    position: relative;
}

.game-slider__track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.game-slider__track::-webkit-scrollbar {
    height: 4px;
}

.game-slider__track::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 4px;
}

.game-card {
    flex-shrink: 0;
    width: 140px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    transition: var(--transition);
    scroll-snap-align: start;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.game-card img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.game-card .name {
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================
   BONUS BLOCK
   ============================================================ */
.bonus-block {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.bonus-block::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 117, 255, 0.1), transparent 70%);
    pointer-events: none;
}

.bonus-block__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-orange);
    position: relative;
    z-index: 1;
}

.bonus-block__steps {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.bonus-step {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-primary);
    padding: 10px 16px;
    border-radius: 8px;
}

.bonus-step .num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.bonus-step .text {
    font-size: 14px;
    font-weight: 500;
}

.bonus-block__arrow {
    color: var(--text-secondary);
    font-size: 20px;
}

.bonus-block .btn {
    align-self: flex-start;
}

/* ============================================================
   INFO TEXT
   ============================================================ */
.info-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-text p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.info-text h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}

.info-text h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-cyan);
    margin-top: 8px;
}

.info-text ul,
.info-text ol {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-text ul li {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
}

.info-text ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-cyan);
}

.info-text ol li {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    padding-left: 8px;
}

/* ============================================================
   INFO TABLE
   ============================================================ */
.info-table-wrap {
    overflow-x: auto;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    min-width: 400px;
}

.info-table tr {
    border-bottom: 1px solid var(--border-color);
}

.info-table tr:last-child {
    border-bottom: none;
}

.info-table td {
    padding: 12px 16px;
    font-size: 14px;
}

.info-table td:first-child {
    font-weight: 600;
    color: var(--accent-cyan);
    width: 35%;
}

.info-table td:last-child {
    color: var(--text-secondary);
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment {
    display: flex;
    gap: 14px;
    background: var(--bg-card);
    padding: 16px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.comment:hover {
    border-color: var(--accent-cyan);
}

.comment__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
}

.comment__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comment__header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.comment__name {
    font-weight: 700;
    font-size: 15px;
}

.comment__date {
    font-size: 12px;
    color: var(--text-muted);
}

.comment__text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.comment__rating {
    display: flex;
    gap: 2px;
    color: #ffc107;
    font-size: 14px;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    padding: 16px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.rating-summary .score {
    font-size: 32px;
    font-weight: 900;
    color: var(--accent-cyan);
}

.rating-summary .stars {
    font-size: 20px;
    color: #ffc107;
}

.rating-summary .count {
    font-size: 14px;
    color: var(--text-muted);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--accent-cyan);
}

.faq-item__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
    gap: 16px;
}

.faq-item__question:hover {
    background: rgba(255, 255, 255, 0.03);
}

.faq-item__toggle {
    font-size: 22px;
    color: var(--accent-cyan);
    transition: var(--transition);
    flex-shrink: 0;
    font-weight: 300;
}

.faq-item.open .faq-item__toggle {
    transform: rotate(45deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 20px;
}

.faq-item.open .faq-item__answer {
    max-height: 500px;
    padding: 0 20px 16px;
}

.faq-item__answer p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 32px 0 16px;
    margin-top: 20px;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.footer__col h3 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.footer__col a {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 0;
    transition: var(--transition);
}

.footer__col a:hover {
    color: var(--accent-cyan);
}

.footer__bottom {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.8;
}

/* ============================================================
   MOBILE NAV
   ============================================================ */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 12px;
    z-index: 999;
}

.mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.mobile-nav a.active {
    color: var(--accent-blue);
}

.mobile-nav a .icon {
    width: 22px;
    height: 22px;
    display: inline-block;
    background: currentColor;
    -webkit-mask: no-repeat center/contain;
    mask: no-repeat center/contain;
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 100;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 25px rgba(0, 117, 255, 0.4);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 769px) {
    body {
        padding-bottom: 0;
    }
    .mobile-nav {
        display: none;
    }
    .scroll-top {
        bottom: 30px;
    }
}

@media (min-width: 992px) {
    .header__nav {
        display: flex;
    }
}

@media (min-width: 768px) {
    main {
        padding-top: 30px;
        gap: 50px;
    }
    .hero h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .bonus-block__steps {
        flex-direction: column;
        align-items: stretch;
    }
    .bonus-block__arrow {
        transform: rotate(90deg);
        align-self: center;
    }
    .bonus-block .btn {
        align-self: stretch;
    }
}

@media (max-width: 600px) {
    .bonus-block__title {
        font-size: 18px;
    }
    .hero h1 {
        font-size: 20px;
    }
    .game-card {
        width: 110px;
    }
    .comment {
        padding: 12px 14px;
        flex-direction: column;
        gap: 8px;
    }
    .comment__avatar {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    .rating-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .info-table td {
        padding: 8px 12px;
        font-size: 12px;
    }
    .info-table td:first-child {
        width: 40%;
    }
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .header__btns .btn {
        padding: 6px 12px;
        font-size: 11px;
    }
    .header__logo {
        font-size: 18px;
    }
}

@media (max-width: 400px) {
    .header__logo {
        font-size: 15px;
    }
    .header__btns .btn {
        padding: 4px 10px;
        font-size: 10px;
    }
    .hero h1 {
        font-size: 17px;
    }
    .game-card {
        width: 90px;
    }
}

@media (max-width: 390px) {
    .signUpBox {
        gap: 8px;
    }
    .signUp {
        padding: 8px 12px;
    }
    .registration {
        padding: 8px 12px;
    }
}