:root {
    --bg-deep: #120805;
    --bg-main: #1c0c05;
    --bg-elevated: rgba(39, 20, 10, 0.92);
    --bg-panel: #271108;
    --bg-highlight: #34180b;
    --text-primary: #fef5e5;
    --text-secondary: #e4c7a2;
    --accent: #f18f25;
    --accent-strong: #f7641b;
    --accent-light: #ffb64c;
    --accent-dark: #2c1208;
    --border-soft: rgba(255, 188, 94, 0.38);
    --border-strong: rgba(255, 188, 94, 0.6);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.55);
    --shadow-glow: 0 0 28px rgba(241, 143, 37, 0.35);
    color-scheme: dark;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.55;
    background: radial-gradient(circle at top, #2b130a 0%, var(--bg-deep) 38%, #0b0401 100%);
    color: var(--text-primary);
    min-height: 100vh;
}

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

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

.page-shell {
    overflow: hidden;
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.site-header {
    background: rgba(18, 8, 5, 0.94);
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 18px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand-mark {
    height: 48px;
    filter: drop-shadow(0 0 12px rgba(241, 143, 37, 0.4));
}

.main-nav {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 36px);
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.main-nav a {
    position: relative;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 0;
    left: 50%;
    bottom: -10px;
    background: linear-gradient(90deg, var(--accent-strong), var(--accent-light));
    border-radius: 999px;
    transition: width 0.3s ease, left 0.3s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: #fff;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    width: 100%;
    left: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    padding: 12px 26px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
    cursor: pointer;
    border: 1px solid transparent;
    min-width: 128px;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.12);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.26);
}

.btn-outline.light {
    background: transparent;
    border-color: rgba(255, 215, 160, 0.35);
    color: var(--text-secondary);
}

.btn-outline.light:hover,
.btn-outline.light:focus-visible {
    background: rgba(255, 215, 160, 0.12);
    color: #fff;
}

.btn-accent {
    background: linear-gradient(120deg, var(--accent-strong), var(--accent-light));
    box-shadow: var(--shadow-glow);
    color: var(--accent-dark);
}

.btn-accent:hover,
.btn-accent:focus-visible {
    box-shadow: 0 10px 30px rgba(241, 143, 37, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.14);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-dark {
    background: var(--accent-dark);
    color: var(--accent-light);
    border-color: rgba(0, 0, 0, 0.4);
}

.btn-dark:hover,
.btn-dark:focus-visible {
    background: #3a170b;
}

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: clamp(100px, 18vw, 180px) 0 clamp(48px, 8vw, 90px);
    min-height: clamp(460px, 62vh, 680px);
}

.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    pointer-events: none;
}

.hero-media img {
    width: min(1200px, 92vw);
    height: auto;
    object-fit: contain;
    transform: translateY(-6%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 6, 2, 0.2) 0%, rgba(13, 6, 2, 0.9) 100%), radial-gradient(circle at 20% 20%, rgba(245, 153, 44, 0.25), transparent 55%);
    mix-blend-mode: multiply;
}

.hero-content {
    position: relative;
    display: grid;
    gap: clamp(32px, 6vw, 64px);
}

.hero-intro {
    max-width: 520px;
    backdrop-filter: blur(2px);
}

.hero-tag {
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 18px;
    color: var(--accent-light);
}

.hero h1,
#hero-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    line-height: 1.05;
    margin: 0 0 16px;
    text-transform: uppercase;
}

.hero-subtitle {
    margin: 0;
    color: rgba(255, 234, 212, 0.8);
    font-size: 1rem;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px; /* Fallback for older browsers */
    gap: clamp(16px, 4vw, 32px);
    /* Additional mobile fixes */
    width: 100%;
    box-sizing: border-box;
}

.promo-tile {
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 26px;
    min-height: 210px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
}

.promo-visual {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--radius-md) - 6px);
    aspect-ratio: 16 / 11;
    background: rgba(0, 0, 0, 0.25);
    box-shadow: inset 0 0 0 1px rgba(255, 188, 120, 0.15);
}

.promo-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 20%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

.promo-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.35s ease;
}

.promo-card:hover .promo-visual img {
    transform: scale(1.08);
}

.promo-label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 225, 190, 0.72);
}

.promo-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.3;
}

.promo-copy {
    margin: 0 0 8px;
    color: rgba(255, 230, 210, 0.7);
    font-size: 0.9rem;
}

.jackpot-banner {
    position: relative;
    margin-top: -64px;
    padding: 0 0 72px;
}

.jackpot-banner::before,
.jackpot-banner::after {
    content: '';
    position: absolute;
    inset: auto;
    width: 220px;
    height: 120px;
    top: -40px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.25) 0%, transparent 70%);
    z-index: 0;
}

.jackpot-banner::before {
    left: 50px;
}

.jackpot-banner::after {
    right: 50px;
}

.banner-wrap {
    position: relative;
    background: linear-gradient(90deg, var(--accent-strong) 0%, var(--accent) 55%, #ffb347 100%);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 4vw, 42px) clamp(32px, 6vw, 64px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(16px, 4vw, 32px);
    box-shadow: 0 18px 40px rgba(241, 143, 37, 0.35);
    overflow: hidden;
}

.banner-wrap::before,
.banner-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='180' height='90' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 90 L45 45 L90 90 L135 45 L180 90' fill='none' stroke='rgba(0,0,0,0.18)' stroke-width='4'/%3E%3C/svg%3E");
    opacity: 0.12;
    pointer-events: none;
}

.banner-wrap::after {
    background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 0 L90 30 L120 60 L90 90 L60 120 L30 90 L0 60 L30 30 Z' fill='none' stroke='rgba(0,0,0,0.18)' stroke-width='6'/%3E%3C/svg%3E");
    mix-blend-mode: screen;
    opacity: 0.2;
}

.banner-info {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.banner-label {
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: rgba(0, 0, 0, 0.55);
}

.banner-amount {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    color: #1f0c05;
    text-shadow: 0 12px 35px rgba(255, 255, 255, 0.25);
}

.banner-extra {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 700;
    color: #2b0f05;
}

.banner-wrap .btn {
    position: relative;
    z-index: 1;
}

.games-section {
    padding: clamp(72px, 12vw, 110px) 0;
}

.games-section.highlight {
    background: rgba(26, 10, 5, 0.78);
    border-block: 1px solid rgba(255, 210, 160, 0.1);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

.section-header h2 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    font-size: clamp(1.6rem, 4vw, 2.1rem);
    letter-spacing: 0.12em;
}

.section-dots {
    display: inline-flex;
    gap: 10px;
}

.section-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 200, 150, 0.35);
}

.game-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 22px;
}

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

.game-card {
    background: var(--bg-panel);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 200, 150, 0.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
    min-height: 200px;
}

.game-card img {
    width: 118px;
    height: 118px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

.game-card h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 200, 150, 0.28);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
}

.tribe-cta {
    padding: clamp(70px, 12vw, 110px) 0;
    background: radial-gradient(circle at 30% 0%, rgba(255, 142, 58, 0.2), transparent 55%), var(--bg-main);
}

.tribe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(20px, 5vw, 32px);
}

.tribe-card {
    position: relative;
    padding: 32px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(62, 30, 13, 0.88), rgba(28, 12, 6, 0.92));
    border: 1px solid rgba(255, 205, 140, 0.18);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.tribe-card.telegram {
    background: linear-gradient(135deg, rgba(92, 44, 25, 0.92), rgba(40, 18, 7, 0.9));
}

.tribe-card.instagram {
    background: linear-gradient(135deg, rgba(110, 47, 35, 0.92), rgba(52, 21, 9, 0.92));
}

.tribe-card.mystery {
    background: linear-gradient(135deg, rgba(45, 23, 10, 0.92), rgba(18, 7, 2, 0.92));
}

.card-icon {
    font-size: 2rem;
}

.tribe-card h3 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 1rem;
}

.tribe-card p {
    margin: 0 0 8px;
    color: rgba(255, 230, 200, 0.7);
}

.crypto-row {
    padding: clamp(48px, 8vw, 72px) 0;
    background: var(--bg-highlight);
    border-block: 1px solid rgba(255, 210, 160, 0.08);
}

.coin-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 4vw, 32px);
    flex-wrap: wrap;
}

.coin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(255, 199, 133, 0.28), rgba(95, 45, 20, 0.36));
    border: 1px solid rgba(255, 188, 120, 0.25);
    font-size: 1.4rem;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.45);
}

.site-footer {
    background: rgba(14, 5, 2, 0.95);
    padding: clamp(60px, 10vw, 90px) 0 clamp(28px, 6vw, 48px);
    color: rgba(255, 235, 210, 0.75);
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(32px, 6vw, 64px);
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 190, 130, 0.12);
    padding-bottom: clamp(36px, 6vw, 52px);
}

.footer-brand {
    max-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    width: 140px;
    filter: drop-shadow(0 0 12px rgba(241, 143, 37, 0.4));
}

.footer-copy {
    margin: 0;
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    flex: 1 1 0;
    gap: clamp(18px, 4vw, 40px);
    justify-content: space-between;
    flex-wrap: nowrap;
}

.footer-links > div {
    flex: 1 1 0;
    min-width: 180px;
}

.footer-links h4 {
    margin: 0 0 12px;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: var(--text-primary);
}

.footer-links a {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: rgba(255, 230, 200, 0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #fff;
}

.footer-bottom {
    padding-top: clamp(24px, 4vw, 36px);
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 215, 180, 0.4);
}

/* Rich content (markdown) area */
.rich-content {
    padding: clamp(72px, 12vw, 110px) 0;
}

.rich-content .content {
    max-width: 840px;
    margin: 0 auto;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
    font-family: 'Poppins', sans-serif;
    margin: 0 0 14px;
    color: var(--text-primary);
}

.rich-content h1 { font-size: clamp(2rem, 5vw, 2.6rem); font-weight: 800; text-transform: uppercase; }
.rich-content h2 { font-size: clamp(1.5rem, 3.6vw, 2rem); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.rich-content h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 700; }
.rich-content h4 { font-size: 1.1rem; font-weight: 600; }
.rich-content h5 { font-size: 1rem; font-weight: 600; }
.rich-content h6 { font-size: 0.95rem; font-weight: 600; }

.rich-content p { margin: 0 0 14px; color: rgba(255, 234, 212, 0.86); }
.rich-content ul, .rich-content ol { margin: 0 0 18px 22px; }
.rich-content li { margin: 6px 0; }
.rich-content hr { border: none; height: 1px; background: rgba(255, 210, 160, 0.18); margin: 24px 0; }

.rich-content .table-wrapper { overflow-x: auto; margin: 16px 0 24px; }
.rich-content table { width: 100%; border-collapse: collapse; background: rgba(39, 20, 10, 0.6); }
.rich-content thead th { background: rgba(255, 215, 160, 0.12); color: var(--text-primary); text-align: left; }
.rich-content th, .rich-content td { padding: 12px 14px; border: 1px solid rgba(255, 215, 160, 0.18); }
.rich-content tbody tr:nth-child(even) { background: rgba(255, 210, 160, 0.06); }

@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }

    .header-actions {
        margin-left: auto;
    }

    .hero {
        padding-top: 180px;
    }

    .banner-wrap {
        flex-direction: column;
        text-align: center;
    }

    .banner-wrap .btn {
        width: 100%;
        max-width: 280px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 28px;
    }

    .footer-links > div {
        flex: 1 1 220px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header .btn {
        align-self: flex-start;
    }

    .tribe-card {
        align-items: center;
        text-align: center;
    }

    .tribe-card h3 {
        letter-spacing: 0.24em;
    }

    .tribe-card .btn {
        align-self: center;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(94%, 520px);
    }

    .header-row {
        padding: 14px 0;
    }

    .brand-mark {
        height: 42px;
    }

    .hero {
        padding-top: 160px;
    }

    .promo-grid {
        grid-template-columns: 1fr;
        gap: 20px; /* Ensure consistent spacing on mobile */
    }

    .jackpot-banner {
        margin-top: -32px;
    }

    .game-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .game-card {
        min-height: 180px;
    }

    .crypto-row {
        padding-inline: 0;
    }

.footer-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        width: 100%;
        flex-direction: column;
        gap: 24px;
    }

    .footer-links > div {
        min-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .game-strip,
    .game-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .coin {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
}
