/* ==========================================================
   HOMEPAGE
========================================================== */

.ons-container{
    width:100%;
    max-width:1400px;
    margin:0 auto;
    padding:0 20px;
}

.ons777-home h1,
.ons777-home h2,
.ons777-home h3,
.ons777-home h4{
    color:var(--ons-text);
    margin:0;
}

.ons777-home p{
    color:var(--ons-text-muted);
}

.ons-accent{
    color:var(--ons-red);
}

.ons-eyebrow{
    display:block;
    position:relative;
    color:var(--ons-red);
    font-size:13px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:.05em;
    margin-bottom:8px;
    margin-inline: auto;
    padding-bottom:10px;
}

.ons-eyebrow::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:60px;
    height:2px;
    background:linear-gradient(90deg,var(--ons-red),transparent);
}

.ons-section-head-center .ons-eyebrow::after{
    left:50%;
    transform:translateX(-50%);
}

.ons-btn{
    display:inline-flex;
    align-items:center;
    gap: 10px;
    justify-content:center;
    padding:12px 26px;
    border-radius:6px;
    font-size:14px;
    font-weight:700;
    text-decoration:none;
    border:1px solid transparent;
    transition:.2s ease;
    white-space:nowrap;
}

.ons-btn-primary{
    background:var(--ons-red);
    color:#fff;
    box-shadow:0 8px 20px var(--ons-red-glow);
}

.ons-btn-primary:hover{
    background:var(--ons-red-dark);
    color:#fff;
}

.ons-btn-outline{
    background:transparent;
    color:var(--ons-text);
    border-color:rgba(255,255,255,.25);
}

.ons-btn-outline:hover{
    border-color:var(--ons-red);
    color:var(--ons-red);
}

.ons-btn-sm{
    padding:9px 20px;
    font-size:13px;
}

.ons-section{
    padding:70px 0;
    border-top:1px solid var(--ons-border);
}

.ons-section-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:36px;
}

.ons-section-head-center{
    flex-direction:column;
    align-items:center;
    text-align:center;
}
.ons-section-head.ons-section-head-center.new p {
    margin: 14px 0px 0px;
    max-width: 100%;
}
.ons-section-head.ons-section-head-center.new {
    flex-wrap: wrap;
    text-align: left;
    align-items: flex-start;
}
/* ---------- Hero ---------- */

.ons-hero{
    position:relative;
    background:
        radial-gradient(circle at 85% 20%, var(--ons-red-glow), transparent 45%),
        var(--ons-bg-alt);
    padding:70px 0 0;
    overflow:hidden;
}

.ons-hero-inner{
    position:relative;
    z-index:1;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:40px;
    padding-bottom:60px;
}

.ons-hero-text{
    max-width:700px;
}

.ons-hero-text h1{
    font-size:50px;
    font-weight:800;
    line-height:1.15;
    letter-spacing:-.01em;
}

.ons-hero-text p{
    margin:22px 0 32px;
    font-size:16px;
    line-height:1.7;
    max-width:520px;
}

.ons-hero-actions{
    display:flex;
    gap:16px;
}

.ons-hero-actions .ons-btn-primary{
    padding:14px 32px;
    font-size:15px;
}
.ons-game-card .ons-game-media a.box-hover-cta {
    position: absolute;
    z-index: -1;
    transition: all 0.5s ease-in-out;
}
.ons-game-card .ons-game-media {
    position: relative;
}
.ons-game-card .ons-game-media a.box-hover-cta {
    position: absolute;
    z-index: -4;
    transition: all 0.5s ease-in-out;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
}
.ons-game-card:hover .ons-game-media a.box-hover-cta {
    z-index: 2;
}
.ons-hero-visual{
    position:relative;
    width:620px;
    max-width:100%;
    flex-shrink:0;
    display:flex;
    align-items:center;
    justify-content:center;
}

.ons-hero-glow{
    position:absolute;
    inset:-10%;
    background:radial-gradient(circle,var(--ons-red-glow),transparent 65%);
    filter:blur(30px);
    z-index:0;
}

.ons-hero-visual-frame{
    position:relative;
    z-index:1;
    width:100%;
    height:100%;
    border-radius:20px;
    overflow:hidden;
}

.ons-hero-visual-frame img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.ons-features-bar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:16px;
    padding:24px 0;
    border-top:1px solid var(--ons-border);
}

.ons-feature{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 18px;
    border-radius:999px;
    background:var(--ons-surface);
    border:1px solid var(--ons-border);
    color:var(--ons-text);
    font-size:14px;
    font-weight:600;
    transition:.2s ease;
}

.ons-feature:hover{
    border-color:var(--ons-red);
}

.ons-feature i {
    color: var(--ons-red);
    font-size: 26px;
}

/* ---------- Games carousel ---------- */

.ons-games-carousel{
    position:relative;
}

.ons-games-swiper{
    width:100%;
    overflow:hidden;
    padding:4px 2px 10px;
}

.ons-games-swiper.swiper .swiper-slide.ons-game-card{
    width:260px !important;
    max-width:260px !important;
    flex-shrink:0 !important;
}

.ons-game-card{
    background:var(--ons-surface);
    border:1px solid var(--ons-border);
    border-radius:14px;
    overflow:hidden;
    transition:.2s ease;
}

.ons-game-card:hover{
    border-color:var(--ons-red);
    transform:translateY(-4px);
}

.ons-game-media{
    position:relative;
    height:180px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:56px;
    color:var(--ons-red);
    background:linear-gradient(160deg,var(--ons-surface-alt),var(--ons-bg));
}

.ons-game-media img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.ons-game-info{
    padding:16px 18px 20px;
}

.ons-game-info h3{
    font-size:16px;
    margin-bottom:6px;
}

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

.ons-carousel-arrow{
    position:absolute;
    top:90px;
    transform:translateY(-50%);
    z-index:5;
    width:44px;
    height:44px;
    padding:0;
    margin:0;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    border:1px solid var(--ons-border);
    background:var(--ons-surface);
    color:var(--ons-text);
    font-size:15px;
    line-height:1;
    cursor:pointer;
    box-shadow:none;
    -webkit-appearance:none;
    appearance:none;
    outline:0;
    transition:.2s ease;
}

.ons-carousel-prev{
    left:-8px;
}

.ons-carousel-next{
    right:-8px;
}

.ons-carousel-arrow:hover{
    background:var(--ons-red);
    border-color:var(--ons-red);
    color:#fff;
}

.ons-carousel-arrow.swiper-button-disabled{
    opacity:.35;
    cursor:default;
    pointer-events:none;
}
table.ons-crash-table.table td {
    background: #ffffff00 !important;
    color: #a8adb3;
    border-color: #ffffff14;
    text-align: center;
    padding: 16px 10px;
}
table.ons-crash-table.table th {
    background: #18151a !important;
    color: #ffffff;
    border-color: #ffffff14;
    text-align: center;
    padding: 16px 10px;
}

@media (max-width:768px){
    .ons-carousel-arrow{
        display:none;
    }
}

/* ---------- Why choose us ---------- */

.ons-why-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}
.ons-why-grid.new{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
} 
.ons-why-card{
    background:var(--ons-surface);
    border:1px solid var(--ons-border);
    border-radius:12px;
    padding:26px;
    transition:.2s ease;
}

.ons-why-card:hover{
    border-color:var(--ons-red);
}

.ons-why-icon{
    width:52px;
    height:52px;
    border-radius:10px;
    background:var(--ons-surface-alt);
    border:1px solid var(--ons-red);
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--ons-red);
    font-size:20px;
    margin-bottom:16px;
}

.ons-why-card h3{
    font-size:16px;
    margin-bottom:8px;
}

.ons-why-card p{
    font-size:14px;
    line-height:1.6;
    margin:0;
}

/* ---------- Live now / stats ---------- */

.ons-live-section{
    background:var(--ons-bg-alt);
}

.ons-live-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:50px;
}

.ons-live-text{
    max-width:460px;
}

.ons-live-text h2{
    font-size:32px;
    margin:6px 0 16px;
    line-height:1.25;
}

.ons-live-text p{
    font-size:15px;
    line-height:1.7;
    margin-bottom:26px;
}

.ons-stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:16px;
    flex:1;
}

.ons-stat-card{
    background:var(--ons-surface);
    border:1px solid var(--ons-border);
    border-radius:12px;
    padding:22px 16px;
    text-align:center;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:8px;
}

.ons-stat-card i{
    color:var(--ons-red);
    font-size:22px;
    margin-bottom:4px;
}

.ons-stat-card strong{
    color:var(--ons-text);
    font-size:20px;
}

.ons-stat-card span{
    color:var(--ons-text-muted);
    font-size:13px;
}

/* ---------- Responsive ---------- */

@media (max-width:900px){
    .ons-hero-inner{
        flex-direction:column;
        text-align:center;
    }

    .ons-hero-text p{
        margin-left:auto;
        margin-right:auto;
    }

    .ons-hero-actions{
        justify-content:center;
    }
.ons-hero-actions.left {
    justify-content: left;
}
    .ons-why-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .ons-live-inner{
        flex-direction:column;
        text-align:center;
    }

    .ons-live-text{
        max-width:100%;
    }

    .ons-stats-grid{
        width:100%;
        grid-template-columns:repeat(2,1fr);
    }
}
@media (max-width:767px){
.ons-why-grid.new {
    display: grid;
    grid-template-columns: repeat(1,1fr);
    gap: 20px;
}
}

@media (max-width:600px){
    .ons-hero-text h1{
        font-size:34px;
    }

    .ons-features-bar{
        justify-content:center;
        text-align:center;
    }

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

    .ons-why-grid{
        grid-template-columns:1fr;
    }
}

/* ---------- Get the app ---------- */

.ons-section-head-center p{
    /* max-width:640px; */
      max-width:100%;
    margin:14px auto 0;
    font-size:15px;
    line-height:1.7;
}

.ons-app-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    align-items:center;
    margin-top:46px;
}

.ons-app-steps h3{
    font-size:17px;
    line-height:1.5;
    margin-bottom:22px;
}

.ons-step-list{
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    flex-direction:column;
    gap:18px;
}

.ons-step-list li {
    display:flex;
    align-items:flex-start;
    gap:14px;
    font-size:15px;
    line-height:1.6;
    color:var(--ons-text-muted);
}

.ons-step-list i{
    flex-shrink:0;
    width:26px;
    height:26px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:var(--ons-surface);
    border:1px solid var(--ons-red);
    color:var(--ons-red);
    font-size:11px;
    margin-top:2px;
}

.ons-app-visual{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:420px;
}

.ons-app-phone{
    position:relative;
    width:220px;
    background:var(--ons-surface);
    border:2px solid var(--ons-border);
    border-radius:28px;
    padding:14px 12px;
    box-shadow:0 20px 50px rgba(0,0,0,.5);
}

.ons-app-phone-notch{
    width:60px;
    height:6px;
    border-radius:6px;
    background:var(--ons-border);
    margin:0 auto 12px;
}

.ons-app-phone-screen{
    background:var(--ons-bg);
    border-radius:16px;
    padding:16px 12px;
    border:1px solid var(--ons-border);
}

.ons-app-phone-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    color:var(--ons-text);
    font-weight:700;
    font-size:14px;
    margin-bottom:14px;
}

.ons-app-phone-header i{
    color:var(--ons-text-muted);
    font-size:14px;
}

.ons-app-phone-banner{
    background:linear-gradient(135deg,var(--ons-red),var(--ons-red-dark));
    color:#fff;
    font-size:12px;
    font-weight:700;
    text-align:center;
    padding:12px 10px;
    border-radius:10px;
    margin-bottom:14px;
}

.ons-app-phone-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:8px;
    margin-bottom:16px;
}

.ons-app-phone-grid div{
    aspect-ratio:1;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--ons-surface-alt);
    border-radius:8px;
    color:var(--ons-red);
    font-size:13px;
}

.ons-app-phone-btn{
    background:var(--ons-red);
    color:#fff;
    text-align:center;
    font-size:13px;
    font-weight:700;
    padding:10px;
    border-radius:8px;
}

.ons-app-coin{
    position:absolute;
    width:44px;
    height:44px;
    border-radius:50%;
    background:linear-gradient(145deg,var(--ons-red),var(--ons-red-dark));
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
    box-shadow:0 10px 24px var(--ons-red-glow);
}

.ons-app-coin-1{
    top:10px;
    left:0;
}

.ons-app-coin-2{
    bottom:30px;
    right:6px;
}

/* ---------- Highlights slider ---------- */

.ons-highlights-section{
    overflow:hidden;
}

.ons-highlight-swiper{
    width:100%;
    padding:4px 20px 10px;
    overflow:hidden;
}

.ons-highlight-swiper .swiper-wrapper{
    transition-timing-function:linear !important;
}

.ons-highlight-swiper.swiper .swiper-slide.ons-highlight-slide{
    border-radius:12px;
    overflow:hidden;
    border:1px solid var(--ons-border);
    transition:.2s ease;
}

.ons-highlight-slide:hover{
    border-color:var(--ons-red);
}

.ons-highlight-slide img{
    width:100%;
    object-fit:cover;
    display:block;
}

@media (max-width:600px){
    .ons-highlight-slide img{
        height:150px;
    }
}

/* ---------- WHY ---------- */
.ons-why-section::before {
    z-index: 1;
    content: '';
    height: 100%;
    width: 100%;
    background-image: url('https://play.ons777.com/wp-content/themes/twentytwentyone-child/assets/images/crash-game-two.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    /* opacity: 15%; */
}

.ons-why-section.image::before {
    z-index: 1;
    content: '';
    height: 100%;
    width: 100%;
    background-image: url('https://play.ons777.com/wp-content/themes/twentytwentyone-child/assets/images/crash-game-three.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    /* opacity: 15%; */
}

.ons-why-section {
    position: relative;
}
/* ---------- FAQ ---------- */

.ons-faq-list{
    max-width:820px;
    display:flex;
    flex-direction:column;
    gap:16px;
}

.ons-faq-item{
    position:relative;
    background:var(--ons-surface) !important;
    border:1px solid var(--ons-border) !important;
    border-left:3px solid transparent !important;
    border-radius:10px;
    overflow:hidden;
    transition:.2s ease;
}

.ons-faq-item:hover{
    border-color:var(--ons-red);
    border-left-color:var(--ons-red);
}

.ons-faq-item.is-open{
    border-color:var(--ons-red);
    border-left-color:var(--ons-red);
    background:var(--ons-surface-alt);
}

.ons-faq-question{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    background:none;
    border:0;
    color:var(--ons-text);
    font-size:15px;
    font-weight:700;
    background: transparent !important;
    text-align:left;
    padding:22px 24px;
    cursor:pointer;
}

.ons-faq-question i{
    flex-shrink:0;
    width:30px;
    height:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:var(--ons-bg);
    border:1px solid var(--ons-border);
    color:var(--ons-text-muted);
    font-size:12px;
    transition:.2s ease;
}

.ons-faq-item.is-open .ons-faq-question i{
    transform:rotate(180deg);
    background:var(--ons-red);
    border-color:var(--ons-red);
    color:#fff;
}

.ons-faq-answer{
    max-height:0;
    overflow:hidden;
    transition:max-height .25s ease;
}

.ons-faq-answer p{
    margin:0;
    padding:0 24px 22px;
    font-size:14px;
    line-height:1.7;
}

.ons-games-swiper .swiper-wrapper {
    display: flex;
}
.ons-games-swiper .swiper-wrapper .swiper-slide {
    height: auto;
}

@media (max-width:900px){
    .ons-app-grid{
        grid-template-columns:1fr;
        text-align:center;
    }

    .ons-step-list li{
        text-align:left;
    }

    .ons-app-visual{
        min-height:340px;
    }
}

/* ---------- Crash games content sections ---------- */

.ons-app-steps p{
    margin:0 0 14px;
    font-size:15px;
    line-height:1.7;
}

.ons-app-steps .ons-eyebrow{
    text-align:left;
}

.ons-media-placeholder{
    width:100%;
    min-height:360px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px dashed var(--ons-border);
    border-radius:20px;
    background:linear-gradient(160deg,var(--ons-surface-alt),var(--ons-bg));
    color:var(--ons-text-muted);
    font-size:13px;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.ons-inline-link{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-top:6px;
    color:var(--ons-red);
    font-weight:700;
    font-size:14px;
    text-decoration:none;
    transition:.2s ease;
}

.ons-inline-link:hover{
    color:var(--ons-red-dark);
    gap:12px;
}

.ons-app-grid.media-left .ons-app-visual{
    order:-1;
}

@media (max-width:900px){
    .ons-app-grid.media-left .ons-app-visual{
        order:0;
    }

    .ons-media-placeholder{
        min-height:260px;
    }
}
