/* =========================================
   PAGE
========================================= */

body {
    background: #0b0b0d;
    color: #f5f5f5;
    overflow-x: hidden;
}

.page-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.025;
    z-index: 10;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}


/* =========================================
   INTRO
========================================= */

.intro {
    width: min(1120px, 92%);
    margin: 80px auto 55px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.intro-left {
    max-width: 650px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #a5a5aa;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4da3ff;
    box-shadow: 0 0 9px rgba(77, 163, 255, 0.7);
}

.intro h1 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(4rem, 9vw, 7.5rem);
    line-height: 0.82;
    letter-spacing: -6px;
}

.intro h1 span {
    color: #4da3ff;
}

.intro p {
    max-width: 500px;
    margin: 28px 0 0;
    color: #85858b;
    font-size: 0.95rem;
    line-height: 1.7;
}

.intro-side {
    width: 230px;
    flex-shrink: 0;
}

.live-box {
    padding: 16px;
    border: 1px solid #27272b;
    border-radius: 10px;
    background: #111114;
}

.live-label {
    display: block;
    margin-bottom: 8px;
    color: #66666c;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.live-box strong {
    display: block;
    color: #e9e8e3;
    font-size: 0.85rem;
}

.live-box small {
    display: block;
    margin-top: 7px;
    color: #6f6f75;
    font-size: 0.68rem;
    line-height: 1.4;
}


/* =========================================
   DIVIDER
========================================= */

.arcade-divider {
    width: min(1120px, 92%);
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.arcade-divider span {
    flex-shrink: 0;
    color: #55555a;
    font-family: monospace;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.arcade-divider div {
    height: 1px;
    flex: 1;
    background: #242428;
}


/* =========================================
   GAMES
========================================= */

.games-section {
    width: min(1120px, 92%);
    margin: 0 auto 70px;
}

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


/* =========================================
   CARD
========================================= */

.game-card {
    position: relative;
    min-width: 0;
    min-height: 355px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid #27272b;
    border-radius: 12px;
    background: #111114;
    color: #fff;
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: #45454b;
    background: #151518;
}

.game-slot:hover {
    border-color: rgba(255, 212, 59, 0.45);
}

.game-dna:hover {
    border-color: rgba(93, 185, 255, 0.4);
}

.game-keno:hover {
    border-color: rgba(93, 225, 155, 0.4);
}


/* =========================================
   CARD HEADER
========================================= */

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.machine-number {
    color: #4e4e54;
    font-family: monospace;
    font-size: 0.68rem;
    font-weight: 700;
}

.machine-state {
    padding: 4px 7px;
    border-radius: 5px;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.machine-state.ready {
    background: rgba(255, 212, 59, 0.08);
    color: #ffd43b;
}

.machine-state.soon {
    background: #1b1b1f;
    color: #66666c;
}


/* =========================================
   SLOT VISUAL
========================================= */

.machine-icon {
    width: 100%;
    height: 105px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.machine-icon span {
    width: 58px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #37373b;
    border-radius: 7px;
    background: #0a0a0c;
    color: #ffd43b;
    font-family: "Space Grotesk", sans-serif;
    font-size: 2rem;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
}


/* =========================================
   DNA VISUAL
========================================= */

.dna-visual {
    position: relative;
    width: 130px;
    height: 105px;
    margin: 20px auto;
}

.dna-visual::before,
.dna-visual::after {
    content: "";
    position: absolute;
    top: 0;
    width: 5px;
    height: 105px;
    border-radius: 20px;
    background: #5db9ff;
}

.dna-visual::before {
    left: 32px;
    transform: rotate(25deg);
}

.dna-visual::after {
    right: 32px;
    transform: rotate(-25deg);
}

.dna-visual span {
    position: absolute;
    left: 28px;
    width: 75px;
    height: 2px;
    background: rgba(93, 185, 255, 0.55);
}

.dna-visual span:nth-child(1) {
    top: 12px;
}

.dna-visual span:nth-child(2) {
    top: 30px;
}

.dna-visual span:nth-child(3) {
    top: 48px;
}

.dna-visual span:nth-child(4) {
    top: 66px;
}

.dna-visual span:nth-child(5) {
    top: 84px;
}

.dna-visual span:nth-child(6) {
    top: 102px;
}


/* =========================================
   KENO VISUAL
========================================= */

.keno-grid {
    width: 120px;
    height: 105px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.keno-grid i {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #303a35;
    border-radius: 5px;
    background: #0c100e;
    color: #73dfa4;
    font-family: monospace;
    font-size: 0.7rem;
    font-style: normal;
}


/* =========================================
   CARD BODY
========================================= */

.card-body {
    margin-top: auto;
}

.game-type {
    margin-bottom: 7px;
    color: #5c5c62;
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.card-body h2 {
    margin: 0 0 7px;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.card-body p {
    margin: 0;
    color: #77777d;
    font-size: 0.77rem;
    line-height: 1.55;
}
/* =========================================================
   BYTEDUCK GRID
========================================================= */

.duck-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    padding: 20px;
    min-height: 150px;
    align-items: center;
    justify-items: center;
    background:
        radial-gradient(
            circle at center,
            rgba(20, 157, 221, 0.12),
            transparent 70%
        );
}

.duck-grid i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;

    border-radius: 10px;

    background: rgba(20, 157, 221, 0.08);

    border: 1px solid rgba(20, 157, 221, 0.16);

    font-style: normal;
    font-size: 22px;

    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.game-duck:hover .duck-grid i {
    transform: translateY(-3px);
    border-color: rgba(72, 199, 255, 0.35);
    background: rgba(20, 157, 221, 0.14);
}

.game-duck:hover .duck-grid i:nth-child(2),
.game-duck:hover .duck-grid i:nth-child(5),
.game-duck:hover .duck-grid i:nth-child(8) {
    transform: translateY(3px);
}

/* =========================================
   CARD ACTION
========================================= */

.card-action {
    margin-top: 18px;
    padding-top: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #242428;
    color: #ffd43b;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.card-action strong {
    font-size: 1rem;
    font-weight: 400;
}

.disabled-action {
    color: #48484e;
}


/* =========================================
   COMING SOON VISUALS
========================================= */

.game-disabled {
    opacity: 0.58;
}

.game-disabled:hover {
    transform: none;
    border-color: #27272b;
    background: #111114;
}

.placeholder-visual {
    height: 105px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cards-visual {
    gap: 5px;
}

.cards-visual span {
    width: 48px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #35353a;
    border-radius: 6px;
    background: #17171b;
    color: #77777d;
    font-family: Georgia, serif;
    font-size: 1.4rem;
}

.cards-visual span:nth-child(2) {
    transform: translateY(-8px);
    color: #99999f;
}

.vault-visual {
    width: 105px;
    height: 105px;
    margin: 20px auto;
    border: 5px solid #35353a;
    border-radius: 50%;
    box-sizing: border-box;
}

.vault-visual span {
    color: #55555b;
    font-family: monospace;
    font-size: 0.52rem;
    letter-spacing: 1px;
}

.tornado-visual {
    position: relative;
    width: 130px;
    height: 105px;
    margin: 20px auto;
}

.tornado-visual span {
    position: absolute;
    left: 50%;
    height: 2px;
    border-radius: 10px;
    background: #424247;
    transform: translateX(-50%);
}

.tornado-visual span:nth-child(1) {
    top: 15px;
    width: 110px;
}

.tornado-visual span:nth-child(2) {
    top: 38px;
    width: 85px;
}

.tornado-visual span:nth-child(3) {
    top: 61px;
    width: 55px;
}

.tornado-visual span:nth-child(4) {
    top: 84px;
    width: 25px;
}
/* =========================================
   SIMPLE GIVEAWAY
========================================= */

.simple-giveaway {
    width: min(1180px, 92%);
    margin: 80px auto 0;
}

.simple-giveaway-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 60px;

    padding: 50px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.025);
}

.simple-giveaway-content {
    max-width: 600px;
}

.simple-giveaway-content .eyebrow {
    margin-bottom: 18px;
}

.simple-giveaway-content h2 {
    margin: 0 0 18px;

    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.simple-giveaway-content h2 span {
    opacity: 0.45;
}

.simple-giveaway-content p {
    max-width: 500px;
    margin: 0 0 28px;

    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.65;
}

.giveaway-button {
    display: inline-flex;
    align-items: center;
    gap: 24px;

    padding: 15px 20px;

    color: inherit;
    text-decoration: none;

    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);

    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.giveaway-button strong {
    font-size: 1.2rem;
}

.giveaway-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateX(4px);
}


/* VISUAL */

.simple-giveaway-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.draw-box {
    width: 230px;
    min-height: 230px;

    padding: 22px;

    border: 1px solid rgba(255, 255, 255, 0.15);

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    transform: rotate(2deg);
}

.draw-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    opacity: 0.45;
}

.draw-lines {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.draw-lines i {
    display: block;
    width: 100%;
    height: 5px;

    background: rgba(255, 255, 255, 0.1);
}

.draw-lines i:nth-child(2) {
    width: 75%;
}

.draw-lines i:nth-child(3) {
    width: 88%;
}

.draw-result {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 15px;
}

.draw-result small {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    opacity: 0.45;
}

.draw-result strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 3rem;
    line-height: 0.8;
}

/* =========================================
   BOTTOM PANEL
========================================= */

.bottom-panel {
    width: min(500px, 92%);
    margin: 0 auto 70px;
    padding: 15px 17px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #27272b;
    border-radius: 10px;
    background: #111114;
}

.bottom-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: rgba(255, 212, 59, 0.08);
    color: #ffd43b;
    font-size: 1rem;
}

.bottom-panel strong {
    display: block;
    margin-bottom: 3px;
    font-size: 0.78rem;
}

.bottom-panel p {
    margin: 0;
    color: #6f6f75;
    font-size: 0.7rem;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 900px) {
    .intro {
        margin-top: 65px;
    }

    .intro h1 {
        font-size: clamp(3.8rem, 10vw, 6rem);
    }

    .intro-side {
        width: 200px;
    }

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


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {
    .intro {
        width: 90%;
        margin-top: 50px;
        display: block;
    }

    .intro h1 {
        font-size: clamp(3.5rem, 17vw, 5rem);
        letter-spacing: -4px;
    }

    .intro p {
        margin-top: 22px;
    }

    .intro-side {
        width: 100%;
        margin-top: 28px;
    }

    .live-box {
        width: 100%;
        box-sizing: border-box;
    }

    .arcade-divider {
        width: 90%;
    }

    .games-section {
        width: 90%;
    }

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

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

    .bottom-panel {
        width: 90%;
        box-sizing: border-box;
    }
}


/* =========================================
   SMALL PHONES
========================================= */

@media (max-width: 380px) {
    .intro h1 {
        font-size: 3.2rem;
        letter-spacing: -3px;
    }

    .intro p {
        font-size: 0.85rem;
    }

    .game-card {
        min-height: 315px;
        padding: 16px;
    }

    .machine-icon span {
        width: 50px;
        height: 65px;
        font-size: 1.7rem;
    }
}
/* =========================================
   ARCADE ANIMATIONS
========================================= */

@keyframes pageFade {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes badgePulse {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 212, 59, 0.35);
    }

    50% {
        opacity: 0.65;
        box-shadow: 0 0 0 6px rgba(255, 212, 59, 0);
    }
}

@keyframes iconFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-5px) rotate(-2deg);
    }
}
@media (max-width: 700px) {

    .simple-giveaway {
        margin-top: 55px;
    }

    .simple-giveaway-inner {
        grid-template-columns: 1fr;
        gap: 40px;

        padding: 30px 24px;
    }

    .simple-giveaway-content h2 {
        font-size: 2.7rem;
    }

    .simple-giveaway-visual {
        justify-content: flex-start;
    }

    .draw-box {
        width: 190px;
        min-height: 190px;
    }

}
@keyframes glowMove {
    0% {
        transform: translate(-50%, -10px);
    }

    50% {
        transform: translate(-50%, 10px);
    }

    100% {
        transform: translate(-50%, -10px);
    }
}

/* Page entrance */

.hero {
    animation: pageFade 0.7s ease both;
}

.games-section {
    animation: pageFade 0.7s ease 0.12s both;
}

footer {
    animation: pageFade 0.7s ease 0.2s both;
}

/* Badge light */

.badge-dot {
    animation: badgePulse 2s ease-in-out infinite;
}

/* Game cards */

.game-card {
    opacity: 0;
    animation: pageFade 0.6s ease forwards;
}

.game-card:nth-child(1) {
    animation-delay: 0.15s;
}

.game-card:nth-child(2) {
    animation-delay: 0.22s;
}

.game-card:nth-child(3) {
    animation-delay: 0.29s;
}

.game-card:nth-child(4) {
    animation-delay: 0.36s;
}

.game-card:nth-child(5) {
    animation-delay: 0.43s;
}

.game-card:nth-child(6) {
    animation-delay: 0.5s;
}

/* Card hover */

.game-card.active-card {
    overflow: hidden;
}

.game-card.active-card::after {
    content: "";
    position: absolute;
    top: -120%;
    left: -80%;
    width: 50%;
    height: 300%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.07),
        transparent
    );
    transform: rotate(20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.game-card.active-card:hover::after {
    left: 130%;
}

/* Icon animation */

.active-card:hover .game-icon {
    animation: iconFloat 1.4s ease-in-out infinite;
}

/* Play arrow */

.play span {
    display: inline-block;
    transition: transform 0.2s ease;
}

.game-card:hover .play span {
    transform: translateX(5px);
}

/* PLAY badge */

.active-card .coming {
    color: var(--yellow);
    border: 1px solid rgba(255, 212, 59, 0.18);
    background: rgba(255, 212, 59, 0.08);
}

/* Background movement */

.hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    left: 50%;
    top: 80px;
    transform: translateX(-50%);
    background: radial-gradient(
        circle,
        rgba(255, 212, 59, 0.09),
        transparent 68%
    );
    filter: blur(20px);
    pointer-events: none;
    z-index: -1;
    animation: glowMove 5s ease-in-out infinite;
}

/* Make the hero sit above the glow */

.hero {
    position: relative;
}

/* Disabled games stay still */

.game-card.disabled:hover {
    transform: none;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 750px) {
    .game-card:hover {
        transform: translateY(-3px);
    }

    .active-card:hover .game-icon {
        animation: none;
    }
}

/* =========================================
   REDUCED MOTION
========================================= */

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

/* =========================================
   REDUCE MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
    .game-card,
    .hero-button {
        transition: none;
    }

    .game-card:hover,
    .hero-button:hover {
        transform: none;
    }
}

/* =========================================
   WHEEL HOVER & VISUAL
========================================= */

.game-wheel:hover {
    border-color: rgba(255, 111, 174, 0.4);
}

.wheel-visual {
    position: relative;
    width: 110px;
    height: 105px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-wheel {
    position: relative;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    border: 2px solid #37373b;
    background: #0a0a0c;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.8);
    transition: transform 0.4s ease;
}

.mini-wheel i {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 20px;
    margin-top: -10px;
    margin-left: -50%;
    display: flex;
    justify-content: flex-end;
    padding-right: 6px;
    box-sizing: border-box;
    font-size: 0.6rem;
    font-family: monospace;
    font-style: normal;
    color: #ff6fae;
    pointer-events: none;
}

/* Position numbers around the mini wheel */
.mini-wheel i:nth-child(1) { transform: rotate(0deg); }
.mini-wheel i:nth-child(2) { transform: rotate(45deg); }
.mini-wheel i:nth-child(3) { transform: rotate(90deg); }
.mini-wheel i:nth-child(4) { transform: rotate(135deg); }
.mini-wheel i:nth-child(5) { transform: rotate(180deg); }
.mini-wheel i:nth-child(6) { transform: rotate(225deg); }
.mini-wheel i:nth-child(7) { transform: rotate(270deg); }
.mini-wheel i:nth-child(8) { transform: rotate(315deg); }

.wheel-pointer {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #ff6fae;
    font-size: 0.75rem;
    line-height: 1;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

.game-wheel:hover .mini-wheel {
    transform: rotate(180deg);
}