:root {
    --bg:#070716;
    --panel:#111128;
    --panel2:#171737;
    --line:rgba(255,255,255,.11);
    --text:#f8f7ff;
    --muted:#aaa8c4;
    --cyan:#27e7ff;
    --pink:#ff43b5;
    --yellow:#ffe34c;
    --violet:#8b58ff;
    --green:#62f7a2
}

* {
    box-sizing:border-box
}

html {
    scroll-behavior:smooth
}

body {
    margin:0;
    background:radial-gradient(circle at 45% -10%,#211455 0,#09081a 35%,#060613 70%);
    color:var(--text);
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial,sans-serif;
    min-height:100vh
}

.locked {
    overflow:hidden
}

.grid-bg {
    position:fixed;
    inset:0;
    pointer-events:none;
    opacity:.12;
    background-image:linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px);
    background-size:42px 42px;
    mask-image:linear-gradient(to bottom,#000,transparent 75%)
}

.glow {
    position:fixed;
    border-radius:50%;
    filter:blur(100px);
    opacity:.15;
    pointer-events:none
}

.glow-a {
    width:400px;
    height:400px;
    background:var(--pink);
    right:-120px;
    top:120px
}

.glow-b {
    width:350px;
    height:350px;
    background:var(--cyan);
    left:-160px;
    top:600px
}

.topbar {
    height:86px;
    position:sticky;
    top:0;
    z-index:20;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:8px max(3vw,22px);
    background:rgba(6,6,19,.82);
    backdrop-filter:blur(18px);
    border-bottom:1px solid var(--line)
}

.brand {
    height:100px;
    display:flex;
    align-items:center
}

.brand img {
    height:100px;
    width:auto;
    display:block
}

.topbar nav {
    display:flex;
    gap:27px
}

.topbar nav a,footer a {
    font-weight:750;
    font-size:13px;
    color:#d1cde6;
    text-decoration:none
}

.top-actions {
    display:flex;
    align-items:center;
    gap:9px
}

.search {
    height:43px;
    display:flex;
    align-items:center;
    gap:7px;
    padding:0 12px;
    border:1px solid var(--line);
    background:#101023;
    border-radius:12px
}

.search input {
    width:180px;
    background:transparent;
    border:0;
    outline:0;
    color:white
}

.btn,.icon-btn,.cat {
    font:inherit;
    cursor:pointer;
    border:0
}

.btn {
    border-radius:12px;
    padding:12px 16px;
    font-weight:850;
    color:#fff
}

.btn.primary {
    background:linear-gradient(135deg,var(--pink),#ff6a6a);
    box-shadow:0 10px 30px rgba(255,67,181,.22)
}

.btn.secondary {
    background:linear-gradient(135deg,#6040d8,#4c83ff)
}

.btn.ghost,.btn.tiny {
    background:rgba(255,255,255,.055);
    border:1px solid var(--line)
}

.btn.tiny {
    padding:9px 12px
}

.btn.full {
    width:100%
}

.icon-btn {
    width:42px;
    height:42px;
    border-radius:50%;
    color:#fff;
    background:rgba(255,255,255,.07);
    border:1px solid var(--line)
}

main {
    width:min(1380px,94vw);
    margin:auto
}

.hero {
    min-height:560px;
    display:grid;
    grid-template-columns:1.15fr .85fr;
    gap:55px;
    align-items:center;
    padding:55px 0 35px
}

.eyebrow {
    color:var(--yellow);
    font-weight:900;
    font-size:11px;
    letter-spacing:2px
}

.hero h1,.section-head h2,.about h2,.modal-head h2 {
    margin:0;
    font-weight:950;
    letter-spacing:-2px
}

.hero h1 {
    font-size:clamp(52px,7vw,91px);
    line-height:.94;
    margin-top:13px
}

.hero h1 em {
    font-style:normal;
    background:linear-gradient(90deg,var(--cyan),var(--pink),var(--yellow));
    -webkit-background-clip:text;
    color:transparent
}

.hero-copy>p {
    font-size:18px;
    color:var(--muted);
    line-height:1.65;
    max-width:720px
}

.hero-actions {
    display:flex;
    gap:10px;
    margin-top:24px
}

.hero-stats {
    display:flex;
    gap:42px;
    margin-top:35px
}

.hero-stats div {
    display:flex;
    flex-direction:column
}

.hero-stats strong {
    font-size:24px
}

.hero-stats span {
    font-size:11px;
    color:var(--muted)
}

.featured-tile {
    height:420px;
    border:1px solid rgba(39,231,255,.33);
    border-radius:30px;
    position:relative;
    overflow:hidden;
    color:#fff;
    background:radial-gradient(circle at 70% 30%,#3b1366,#0d1235 48%,#070716 80%);
    cursor:pointer;
    box-shadow:0 30px 90px rgba(0,0,0,.38);
    text-align:left;
    padding:42px
}

.featured-tile:before {
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(120deg,transparent 25%,rgba(255,255,255,.08) 25% 27%,transparent 27% 60%,rgba(255,255,255,.05) 60% 63%,transparent 63%)
}

.featured-label {
    position:absolute;
    left:24px;
    top:23px;
    background:var(--pink);
    padding:7px 12px;
    border-radius:999px;
    font-size:10px;
    font-weight:900;
    letter-spacing:1px;
    transform:rotate(-3deg)
}

.featured-tile strong {
    position:absolute;
    left:34px;
    bottom:94px;
    font-size:57px;
    line-height:.78;
    letter-spacing:-4px;
    text-shadow:5px 5px 0 #321779
}

.featured-tile small {
    position:absolute;
    left:38px;
    bottom:64px;
    font-size:13px;
    color:#c8c3de
}

.featured-tile b {
    position:absolute;
    right:28px;
    bottom:28px;
    color:var(--yellow);
    font-size:12px
}

.block-art {
    position:absolute;
    right:22px;
    top:68px;
    width:250px;
    height:245px;
    transform:rotate(8deg)
}

.block-art i {
    position:absolute;
    width:48px;
    height:48px;
    border-radius:10px;
    background:linear-gradient(135deg,#ffea4c,#ff8d3b);
    box-shadow:inset 0 0 0 4px rgba(255,255,255,.18),0 8px 18px rgba(0,0,0,.25)
}

.block-art i:nth-child(2n) {
    background:linear-gradient(135deg,#2bf1ff,#287cff)
}

.block-art i:nth-child(3n) {
    background:linear-gradient(135deg,#ff49bb,#9f43ff)
}

.block-art i:nth-child(1) {
    left:0;
    top:0
}

.block-art i:nth-child(2) {
    left:52px;
    top:0
}

.block-art i:nth-child(3) {
    left:104px;
    top:0
}

.block-art i:nth-child(4) {
    left:104px;
    top:52px
}

.block-art i:nth-child(5) {
    left:156px;
    top:52px
}

.block-art i:nth-child(6) {
    left:52px;
    top:104px
}

.block-art i:nth-child(7) {
    left:104px;
    top:104px
}

.block-art i:nth-child(8) {
    left:156px;
    top:104px
}

.block-art i:nth-child(9) {
    left:208px;
    top:104px
}

.block-art i:nth-child(10) {
    left:0;
    top:156px
}

.block-art i:nth-child(11) {
    left:52px;
    top:156px
}

.block-art i:nth-child(12) {
    left:156px;
    top:208px
}

.ad-zone {
    margin:12px 0
}

.ad-zone>span {
    display:block;
    text-align:center;
    color:#6e6a84;
    font-size:8px;
    letter-spacing:1.5px;
    margin-bottom:5px
}

.ad-slot {
    min-height:72px;
    border-radius:13px;
    border:1px dashed rgba(255,255,255,.16);
    display:grid;
    place-items:center;
    color:#69657c;
    background:rgba(255,255,255,.018);
    font-size:11px
}

.ad-slot.rect {
    height:250px
}

.category-bar {
    position:sticky;
    top:86px;
    z-index:10;
    display:flex;
    gap:8px;
    overflow:auto;
    padding:14px 0;
    background:linear-gradient(180deg,rgba(7,7,22,.96),rgba(7,7,22,.8),transparent)
}

.cat {
    white-space:nowrap;
    color:#ddd9ef;
    border:1px solid var(--line);
    background:#111128;
    padding:10px 14px;
    border-radius:999px;
    font-weight:800;
    font-size:12px
}

.cat.active {
    color:#10101b;
    background:var(--yellow);
    border-color:transparent
}

.content-layout {
    display:grid;
    grid-template-columns:minmax(0,1fr) 310px;
    gap:22px;
    padding:30px 0 55px
}

.section-head {
    display:flex;
    justify-content:space-between;
    align-items:end;
    margin:10px 0 22px
}

.section-head h2 {
    font-size:38px;
    margin-top:5px
}

.game-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px
}

.game-card {
    min-width:0;
    border-radius:19px;
    background:linear-gradient(180deg,#15152e,#101024);
    border:1px solid var(--line);
    overflow:hidden;
    cursor:pointer;
    transition:.2s;
    position:relative
}

.game-card:hover {
    transform:translateY(-5px);
    border-color:rgba(39,231,255,.35)
}

.card-art {
    height:158px;
    display:grid;
    place-items:center;
    position:relative;
    overflow:hidden;
    background:radial-gradient(circle at 65% 25%,var(--c1),var(--c2) 70%)
}

.card-art:after {
    content:"";
    position:absolute;
    inset:-60px;
    background:repeating-linear-gradient(45deg,transparent 0 30px,rgba(255,255,255,.055) 30px 33px);
    transform:rotate(7deg)
}

.card-art .emoji {
    font-size:67px;
    filter:drop-shadow(0 12px 15px rgba(0,0,0,.28));
    z-index:1
}

.card-badge {
    position:absolute;
    top:11px;
    left:11px;
    z-index:2;
    background:rgba(5,5,16,.72);
    border:1px solid rgba(255,255,255,.12);
    padding:6px 8px;
    border-radius:999px;
    font-size:8px;
    font-weight:950;
    letter-spacing:1px
}

.heart {
    position:absolute;
    right:10px;
    top:10px;
    z-index:3;
    width:35px;
    height:35px;
    border:0;
    border-radius:50%;
    background:rgba(5,5,16,.66);
    color:#fff;
    cursor:pointer
}

.heart.on {
    color:var(--pink)
}

.card-body {
    padding:15px 16px 16px;
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:12px
}

.card-body small {
    color:var(--cyan);
    font-size:9px;
    font-weight:900;
    letter-spacing:1px
}

.card-body h3 {
    margin:5px 0 4px;
    font-size:18px
}

.card-body p {
    margin:0;
    font-size:11px;
    color:var(--muted);
    line-height:1.45;
    min-height:31px
}

.play-dot {
    flex:0 0 auto;
    width:42px;
    height:42px;
    border:0;
    border-radius:50%;
    background:#fff;
    color:#10101b;
    font-weight:950
}

.side-card {
    border:1px solid var(--line);
    background:linear-gradient(160deg,#15152e,#0e0e21);
    border-radius:20px;
    padding:20px;
    margin-bottom:16px
}

.day-card {
    text-align:center
}

.day-icon {
    font-size:68px;
    margin:12px
}

.side-card h3 {
    margin:5px 0 8px
}

.side-card p {
    color:var(--muted);
    font-size:12px;
    line-height:1.5
}

.side-title {
    display:flex;
    align-items:center;
    justify-content:space-between
}

.leader-row {
    display:grid;
    grid-template-columns:28px 1fr auto;
    gap:8px;
    align-items:center;
    padding:9px 0;
    border-bottom:1px solid rgba(255,255,255,.07);
    font-size:11px
}

.leader-row strong:last-child {
    color:var(--yellow)
}

.muted {
    color:var(--muted)
}

.feature-strip {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    border:1px solid var(--line);
    background:#0d0d20;
    border-radius:20px;
    overflow:hidden;
    margin:10px 0 65px
}

.feature-strip div {
    padding:22px;
    border-right:1px solid var(--line);
    display:grid;
    grid-template-columns:38px 1fr;
    column-gap:8px
}

.feature-strip div:last-child {
    border-right:0
}

.feature-strip b {
    font-size:27px;
    grid-row:1/3
}

.feature-strip strong {
    font-size:13px
}

.feature-strip span {
    font-size:10px;
    color:var(--muted)
}

.about {
    max-width:850px;
    padding:65px 0 85px;
    border-top:1px solid var(--line)
}

.about h2 {
    font-size:40px;
    margin:8px 0 10px
}

.about p {
    color:var(--muted);
    line-height:1.7
}

footer {
    min-height:120px;
    padding:20px max(3vw,22px);
    border-top:1px solid var(--line);
    display:flex;
    align-items:center;
    justify-content:space-between;
    color:#77748c;
    font-size:11px
}

footer img {
    height:64px;
    width:auto
}

footer div {
    display:flex;
    gap:18px
}

.modal {
    display:none;
    position:fixed;
    inset:0;
    z-index:50
}

.modal.show {
    display:block
}

.modal-shade {
    position:absolute;
    inset:0;
    background:rgba(2,2,10,.9);
    backdrop-filter:blur(14px)
}

.modal-panel {
    position:relative;
    width:min(1120px,95vw);
    height:min(900px,96vh);
    margin:2vh auto;
    background:#0a0a19;
    border:1px solid rgba(255,255,255,.14);
    border-radius:22px;
    padding:18px;
    display:flex;
    flex-direction:column;
    box-shadow:0 40px 120px #000
}

.modal-head,.modal-foot {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px
}

.modal-head h2 {
    font-size:28px;
    margin-top:4px
}

.modal-actions {
    display:flex;
    gap:7px
}

.modal-ad {
    margin:10px 0
}

.modal-ad .ad-slot {
    min-height:46px
}

.game-frame {
    flex:1;
    min-height:0;
    border:1px solid rgba(255,255,255,.1);
    border-radius:15px;
    overflow:hidden;
    background:#05050c
}

.game-frame iframe {
    width:100%;
    height:100%;
    border:0
}

.modal-foot {
    padding-top:10px
}

.modal-foot p {
    margin:0;
    color:var(--muted);
    font-size:11px
}

@media(max-width:1050px) {
    .topbar nav {
        display:none
    }
    .hero {
        grid-template-columns:1fr .7fr
    }
    .game-grid {
        grid-template-columns:repeat(2,1fr)
    }
    .content-layout {
        grid-template-columns:1fr 280px
    }
}

@media(max-width:780px) {
    .search {
        display:none
    }
    .hero {
        grid-template-columns:1fr;
        min-height:auto
    }
    .featured-tile {
        height:350px
    }
    .content-layout {
        grid-template-columns:1fr
    }
    .content-layout aside {
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:12px
    }
    .content-layout aside .ad-zone {
        display:none
    }
    .feature-strip {
        grid-template-columns:1fr 1fr
    }
    .game-grid {
        grid-template-columns:repeat(2,1fr)
    }
}

@media(max-width:520px) {
    .brand img {
        height:58px
    }
    .topbar {
        height:72px
    }
    .category-bar {
        top:72px
    }
    .hero {
        padding-top:34px
    }
    .hero h1 {
        font-size:48px;
        letter-spacing:-2px
    }
    .hero-actions,.hero-stats {
        flex-wrap:wrap
    }
    .featured-tile {
        height:310px;
        padding:22px
    }
    .block-art {
        transform:scale(.68) rotate(8deg);
        transform-origin:top right
    }
    .featured-tile strong {
        font-size:44px
    }
    .game-grid {
        grid-template-columns:1fr
    }
    .content-layout aside {
        display:block
    }
    .feature-strip {
        grid-template-columns:1fr
    }
    .feature-strip div {
        border-right:0;
        border-bottom:1px solid var(--line)
    }
    footer {
        flex-direction:column;
        gap:12px
    }
    .modal-panel {
        width:100vw;
        height:100vh;
        margin:0;
        border-radius:0;
        padding:10px
    }
    .modal-foot p {
        display:none
    }
}