:root {
    color-scheme: dark;
    --bg: #050607;
    --panel: #0b0d0f;
    --panel-2: #101316;
    --line: #1f2528;
    --text: #f5f7f8;
    --muted: #a7b0ad;
    --green: #00d15e;
    --green-hot: #00ff66;
    --green-soft: rgba(0, 209, 94, .18);
    --shadow: 0 24px 80px rgba(0, 0, 0, .45);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    background:
        linear-gradient(180deg, rgba(0, 209, 94, .07), transparent 360px),
        linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,.022) 1px, transparent 1px),
        var(--bg);
    background-size: auto, 84px 84px, 84px 84px, auto;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
}

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

button,
a {
    font: inherit;
}

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

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

.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    padding: 14px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(5, 6, 7, .86);
    backdrop-filter: blur(18px);
}

.logo img {
    width: 182px;
    min-width: 150px;
}

.nav-buttons,
.hero-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-login,
.btn-primary,
.btn-outline-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: var(--radius);
    padding: 0 20px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
    white-space: nowrap;
}

.btn-login {
    color: var(--text);
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .12);
}

.btn-login:hover,
.btn-login:focus-visible {
    border-color: rgba(0, 255, 102, .6);
    background: rgba(0, 209, 94, .10);
    outline: none;
}

.btn-primary {
    color: #031006;
    background: linear-gradient(135deg, var(--green-hot), var(--green));
    font-weight: 800;
    box-shadow: 0 0 0 1px rgba(0, 255, 102, .22), 0 14px 34px rgba(0, 209, 94, .22);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-outline-green:hover,
.btn-outline-green:focus-visible {
    transform: translateY(-2px);
    outline: none;
    box-shadow: 0 0 0 1px rgba(0, 255, 102, .28), 0 20px 44px rgba(0, 209, 94, .28);
}

.btn-outline-green {
    color: var(--green-hot);
    background: transparent;
    border-color: rgba(0, 255, 102, .58);
    font-weight: 750;
}

.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 710px;
    display: grid;
    align-items: center;
    padding: 92px 40px 110px;
    isolation: isolate;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(5,6,7,.98) 0%, rgba(5,6,7,.92) 40%, rgba(5,6,7,.55) 70%, rgba(5,6,7,.92) 100%),
        url("./images/twindor-casino-banner.webp") center / cover no-repeat;
    filter: saturate(1.08);
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 102, .45), transparent);
}

.hero-content {
    width: min(720px, 100%);
    position: relative;
    z-index: 2;
}

.hero-content::before {
    content: "Twindor / Casino / Polska";
    display: inline-flex;
    margin-bottom: 22px;
    padding: 8px 12px;
    border: 1px solid rgba(0, 255, 102, .30);
    border-radius: var(--radius);
    color: var(--green-hot);
    background: rgba(0, 209, 94, .08);
    font-size: 13px;
    font-weight: 800;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 780px;
    margin-bottom: 24px;
    font-size: 60px;
    line-height: 1.02;
    font-weight: 900;
}

h2 {
    margin-bottom: 14px;
    font-size: 40px;
    line-height: 1.14;
    font-weight: 880;
}

h3 {
    font-size: 19px;
    line-height: 1.25;
    margin-bottom: 0;
}

.hero-content p,
.section-subtitle {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.hero-content p {
    max-width: 690px;
    margin-bottom: 30px;
}

.hero-image-overlay {
    position: absolute;
    right: max(24px, 5vw);
    bottom: 38px;
    width: min(46vw, 650px);
    z-index: 1;
    pointer-events: none;
    animation: floatChips 7s ease-in-out infinite;
}

.hero-image-overlay img {
    filter: drop-shadow(0 30px 55px rgba(0, 0, 0, .55)) drop-shadow(0 0 26px rgba(0, 209, 94, .16));
}

@keyframes floatChips {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -16px, 0); }
}

.top-games-section,
.stats-section,
.payments-section,
.simple-footer {
    padding: 92px 0;
}

.top-games-section,
.payments-section {
    background: rgba(255, 255, 255, .015);
}

.section-subtitle {
    max-width: 820px;
    margin-bottom: 34px;
}

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

.game-card,
.stat-item {
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    box-shadow: var(--shadow);
}

.game-card {
    overflow: hidden;
    min-height: 0;
    position: relative;
    display: grid;
    grid-template-rows: auto auto;
    transition: transform .22s ease, border-color .22s ease;
    isolation: isolate;
}

.game-card::after {
    content: none;
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 255, 102, .42);
}

.game-card img {
    position: static;
    width: 100%;
    height: clamp(320px, 24vw, 390px);
    object-fit: contain;
    object-position: center;
    transform: none;
    background:
        radial-gradient(circle at 50% 35%, rgba(0, 209, 94, .12), transparent 45%),
        #050607;
}

.game-info {
    position: static;
    z-index: 2;
    min-height: 98px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px;
    background: #080a0b;
    border-top: 1px solid rgba(0, 255, 102, .18);
}

.game-info h3 {
    max-width: 68%;
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .8);
}

.badge-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: var(--radius);
    color: #021207;
    background: var(--green-hot);
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.center-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 36px;
}

.stat-item {
    min-height: 230px;
    padding: 28px 22px;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 255, 102, .10), transparent 46%);
    pointer-events: none;
}

.stat-item img {
    width: 54px;
    height: 54px;
    position: relative;
    z-index: 1;
}

.stat-number {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 42px;
    line-height: 1;
    font-weight: 920;
    color: var(--text);
}

.stat-label {
    position: relative;
    z-index: 1;
    color: var(--muted);
    line-height: 1.45;
}

.live-pulse {
    color: var(--green-hot);
    text-shadow: 0 0 20px rgba(0, 255, 102, .34);
    animation: pulseText 1.6s ease-in-out infinite;
}

@keyframes pulseText {
    0%, 100% { opacity: 1; }
    50% { opacity: .62; }
}

.payment-logos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 36px;
}

.payment-logos img {
    width: 100%;
    height: 112px;
    object-fit: contain;
    padding: 16px;
    border-radius: var(--radius);
    background: #090b0d;
    border: 1px solid rgba(255, 255, 255, .08);
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.payment-logos img:hover {
    border-color: rgba(0, 255, 102, .42);
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 209, 94, .14);
}

.simple-footer {
    border-top: 1px solid rgba(255, 255, 255, .08);
    background:
        linear-gradient(180deg, rgba(0, 209, 94, .09), transparent),
        #050607;
}

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

.text-center h2 {
    max-width: 920px;
    margin: 0 auto 28px;
}

.large-btn {
    min-height: 56px;
    padding: 0 30px;
    font-size: 18px;
}

@media (max-width: 1060px) {
    .hero-section {
        min-height: 680px;
    }

    .hero-image-overlay {
        opacity: .55;
        width: 54vw;
    }

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

@media (max-width: 820px) {
    .navbar {
        padding: 12px 20px;
        align-items: flex-start;
        gap: 12px;
        flex-direction: column;
    }

    .nav-buttons {
        width: 100%;
    }

    .nav-buttons .btn-login,
    .nav-buttons .btn-primary {
        flex: 1;
    }

    .hero-section {
        min-height: auto;
        padding: 64px 20px 56px;
        align-items: start;
    }

    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 31px;
    }

    .hero-content p,
    .section-subtitle {
        font-size: 16px;
    }

    .hero-image-overlay {
        position: relative;
        right: auto;
        bottom: auto;
        width: min(100%, 440px);
        margin: 28px auto -8px;
        opacity: .86;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .game-card {
        max-width: 680px;
        margin: 0 auto;
        width: 100%;
    }

    .game-card img {
        height: clamp(320px, 72vw, 430px);
    }

    .top-games-section,
    .stats-section,
    .payments-section,
    .simple-footer {
        padding: 68px 0;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 28px, 1160px);
    }

    .nav-buttons,
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-login,
    .btn-primary,
    .btn-outline-green {
        width: 100%;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 27px;
    }

    .game-card img {
        height: clamp(285px, 78vw, 360px);
    }

    .game-info {
        min-height: 88px;
        padding: 18px;
    }

    .hero-section {
        padding-top: 48px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .payment-logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .payment-logos img {
        height: 86px;
        padding: 10px;
    }

    .stat-number {
        font-size: 36px;
    }
}

@media (max-width: 390px) {
    .payment-logos {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
