:root {
    --bg-base: #120805;
    --bg-elevated: rgba(39, 20, 10, 0.92);
    --bg-panel: #2b130a;
    --bg-highlight: rgba(26, 10, 5, 0.78);
    --bg-footer: rgba(14, 5, 2, 0.95);
    --text-main: #fef5e5;
    --text-soft: rgba(255, 234, 212, 0.82);
    --accent-main: #f18f25;
    --accent-strong: #f7641b;
    --accent-light: #ffb64c;
    --accent-dark: #2c1208;
    --border-soft: rgba(255, 188, 120, 0.32);
    --border-strong: rgba(255, 188, 120, 0.6);
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
}

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

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

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

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

.view-frame {
    overflow: hidden;
}

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

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

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

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

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

.menu a {
    position: relative;
    color: rgba(255, 234, 212, 0.75);
    transition: color 0.3s ease;
}

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

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

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

.cta-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

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

.action.primary {
    background: linear-gradient(120deg, var(--accent-strong), var(--accent-light));
    color: var(--accent-dark);
    box-shadow: 0 10px 30px rgba(241, 143, 37, 0.45);
}

.action.primary:hover,
.action.primary:focus-visible {
    box-shadow: 0 12px 36px rgba(241, 143, 37, 0.6);
}

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

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

.action.ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.12);
}

.action.ghost:hover,
.action.ghost:focus-visible {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.26);
}

.action.ghost.light {
    background: transparent;
    color: rgba(255, 234, 212, 0.8);
    border-color: rgba(255, 215, 160, 0.35);
}

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

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

.action.dark:hover,
.action.dark:focus-visible {
    background: #381609;
}

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

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

.showcase__background img {
    width: min(1200px, 92vw);
    transform: translateY(-6%);
}

.showcase__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;
}

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

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

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

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

.intro-subtext {
    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: 20px;
    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-tile:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
}

.tile-visual {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    background: rgba(0, 0, 0, 0.25);
    box-shadow: inset 0 0 0 1px rgba(255, 188, 120, 0.15);
}

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

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

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

.tile-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
}

.tile-text {
    margin: 0;
    color: rgba(255, 230, 210, 0.7);
    font-size: 0.9rem;
}

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

.jackpot-strip__inner {
    position: relative;
    background: linear-gradient(90deg, var(--accent-strong) 0%, var(--accent-main) 55%, #ffb347 100%);
    border-radius: 28px;
    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;
}

.jackpot-strip__inner::before,
.jackpot-strip__inner::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.12;
    pointer-events: none;
}

.jackpot-strip__inner::before {
    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");
}

.jackpot-strip__inner::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;
}

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

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

.jackpot-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);
}

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

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

.game-gallery.highlight {
    background: var(--bg-highlight);
    border-block: 1px solid rgba(255, 210, 160, 0.1);
}

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

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

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

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

.game-scroll {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 22px;
}

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

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

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

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

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

.grid-card img {
    width: 140px;
    height: 140px;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: 0 14px 26px rgba(0, 0, 0, 0.45);
}

.grid-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 200, 150, 0.28);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.6);
}

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

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

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

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

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

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

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

.panel-title {
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 1rem;
}

.panel-text {
    margin: 0;
    color: rgba(255, 230, 200, 0.7);
}

.currency-bar {
    padding: clamp(48px, 8vw, 72px) 0;
    background: #34180b;
    border-block: 1px solid rgba(255, 210, 160, 0.08);
}

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

.currency-symbol {
    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-foot {
    background: var(--bg-footer);
    padding: clamp(60px, 10vw, 90px) 0 clamp(28px, 6vw, 48px);
    color: rgba(255, 235, 210, 0.75);
}

.foot-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);
}

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

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

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

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

.foot-column {
    flex: 1 1 0;
    min-width: 180px;
}

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

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

.foot-column a:hover,
.foot-column a:focus-visible {
    color: #fff;
}

.foot-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) */
.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-main);
}

.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: var(--text-soft); }
.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-main); 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) {
    .nav-bar {
        display: none;
    }

    .cta-group {
        margin-left: auto;
    }

    .showcase {
        padding-top: 180px;
    }

    .jackpot-strip__inner {
        flex-direction: column;
        text-align: center;
    }

    .jackpot-strip__inner .action {
        width: 100%;
        max-width: 280px;
    }

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

    .foot-column {
        flex: 1 1 220px;
    }

    .gallery-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-heading .action {
        align-self: flex-start;
    }

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

    .panel-title {
        letter-spacing: 0.24em;
    }

    .panel-card .action {
        align-self: center;
    }
}

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

    .masthead__inner {
        padding: 14px 0;
    }

    .logo-image {
        height: 42px;
    }

    .showcase {
        padding-top: 160px;
    }

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

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

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

    .panel-card {
        text-align: center;
    }

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

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

    .foot-column {
        min-width: 100%;
    }

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

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

    .cta-group {
        width: 100%;
        justify-content: flex-end;
    }

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

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