:root{
    --primary:#0b63ff;
    --primary-dark:#003b95;
    --secondary:#12b76a;
    --bg:#f6f9ff;
    --card:#ffffff;
    --text:#071b3a;
    --muted:#667085;
    --border:#d8e3f5;
    --soft:#eef5ff;
    --success:#027a48;
    --success-bg:#ecfdf3;
    --warning:#b54708;
    --warning-bg:#fff8eb;
    --danger:#b42318;
    --danger-bg:#fff1f1;
    --radius:20px;
    --shadow:0 14px 36px rgba(11,99,255,.07);
    --shadow-strong:0 22px 55px rgba(11,99,255,.16);
}

*,
*::before,
*::after{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
    width:100%;
    max-width:100%;
    overflow-x:hidden;
}

body{
    margin:0;
    width:100%;
    max-width:100%;
    overflow-x:hidden;
    background:var(--bg);
    color:var(--text);
    font-family:Inter,Arial,sans-serif;
    font-size:15px;
    line-height:1.6;
    text-rendering:optimizeLegibility;
    -webkit-font-smoothing:antialiased;
}

body::selection{
    background:rgba(11,99,255,.18);
}

img,
svg,
video,
canvas{
    max-width:100%;
    height:auto;
}

img{
    display:inline-block;
}

a{
    color:var(--primary);
}

button,
input,
select,
textarea{
    font:inherit;
}

button{
    cursor:pointer;
}

.container{
    width:100%;
    max-width:1180px;
    margin:0 auto;
    padding:0 16px;
}

h1,
h2,
h3,
h4,
h5,
h6{
    color:var(--text);
    line-height:1.22;
    letter-spacing:-.035em;
}

p{
    color:var(--muted);
    line-height:1.75;
}

.section{
    margin:26px 0;
}

.section-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:16px;
    margin-bottom:18px;
}

.section-head h2{
    margin:0;
    font-size:28px;
}

.section-head p{
    margin:6px 0 0;
    font-size:14px;
}

.card,
.front-card,
.app-section,
.content-card{
    background:var(--card);
    border:1px solid var(--border);
    border-radius:24px;
    box-shadow:var(--shadow);
}

.card-pad,
.front-card-pad{
    padding:22px;
}

.btn,
.button,
.site-btn,
.download-btn,
.primary-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:44px;
    padding:12px 17px;
    border-radius:15px;
    border:1px solid transparent;
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    color:#fff;
    text-decoration:none;
    font-weight:900;
    line-height:1;
    box-shadow:0 14px 30px rgba(11,99,255,.18);
    transition:.18s ease;
}

.btn:hover,
.button:hover,
.site-btn:hover,
.download-btn:hover,
.primary-btn:hover{
    transform:translateY(-2px);
    filter:brightness(1.03);
}

.btn.secondary,
.button.secondary,
.site-btn.secondary,
.secondary-btn{
    background:var(--soft);
    color:var(--primary-dark);
    border-color:var(--border);
    box-shadow:none;
}

.btn.success,
.button.success,
.success-btn{
    background:var(--success-bg);
    color:var(--success);
    border-color:#abefc6;
    box-shadow:none;
}

.btn.warning,
.button.warning,
.warning-btn{
    background:var(--warning-bg);
    color:var(--warning);
    border-color:#fedf89;
    box-shadow:none;
}

.btn.danger,
.button.danger,
.danger-btn{
    background:var(--danger-bg);
    color:var(--danger);
    border-color:#fecdca;
    box-shadow:none;
}

.badge,
.pill,
.chip{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    border-radius:999px;
    padding:8px 12px;
    background:var(--soft);
    color:var(--primary-dark);
    border:1px solid var(--border);
    font-size:12px;
    font-weight:900;
    line-height:1;
    white-space:nowrap;
}

.badge.success,
.pill.success,
.chip.success{
    background:var(--success-bg);
    color:var(--success);
    border-color:#abefc6;
}

.badge.warning,
.pill.warning,
.chip.warning{
    background:var(--warning-bg);
    color:var(--warning);
    border-color:#fedf89;
}

.badge.danger,
.pill.danger,
.chip.danger{
    background:var(--danger-bg);
    color:var(--danger);
    border-color:#fecdca;
}

.page-hero,
.site-hero{
    background:
        radial-gradient(circle at top right, rgba(255,255,255,.24), transparent 34%),
        linear-gradient(135deg,var(--primary),var(--primary-dark));
    color:#fff;
    border-radius:30px;
    padding:34px;
    box-shadow:var(--shadow-strong);
    margin:22px 0;
    position:relative;
    overflow:hidden;
}

.page-hero::after,
.site-hero::after{
    content:"";
    position:absolute;
    width:260px;
    height:260px;
    border-radius:999px;
    background:rgba(255,255,255,.10);
    right:-90px;
    bottom:-115px;
}

.page-hero > *,
.site-hero > *{
    position:relative;
    z-index:2;
}

.page-hero h1,
.site-hero h1{
    margin:0;
    color:#fff;
    font-size:42px;
    line-height:1.12;
    letter-spacing:-.055em;
}

.page-hero p,
.site-hero p{
    color:rgba(255,255,255,.90);
    font-size:16px;
    max-width:820px;
}

.hero-actions,
.cta-row{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:12px;
    margin-top:18px;
}

.grid,
.cards-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:18px;
}

.app-card,
.list-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:22px;
    padding:16px;
    box-shadow:var(--shadow);
    text-decoration:none;
    color:var(--text);
    transition:.18s ease;
    position:relative;
    overflow:hidden;
}

.app-card:hover,
.list-card:hover{
    transform:translateY(-4px);
    box-shadow:0 18px 44px rgba(11,99,255,.13);
}

.app-card-title{
    color:var(--text);
    font-weight:900;
    font-size:16px;
    line-height:1.35;
    margin:10px 0 4px;
}

.app-card-meta{
    color:var(--muted);
    font-size:13px;
    line-height:1.5;
}

.app-logo,
.card-logo{
    width:70px;
    height:70px;
    border-radius:18px;
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
    overflow:hidden;
    box-shadow:0 14px 30px rgba(11,99,255,.16);
}

.app-logo img,
.card-logo img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.app-detail-hero,
.game-detail-hero{
    background:#fff;
    border:1px solid var(--border);
    border-radius:28px;
    box-shadow:var(--shadow);
    padding:24px;
    margin:22px 0;
    display:grid;
    grid-template-columns:auto 1fr auto;
    gap:18px;
    align-items:center;
}

.app-detail-logo,
.game-detail-logo{
    width:94px;
    height:94px;
    border-radius:24px;
    background:linear-gradient(135deg,var(--primary),var(--primary-dark));
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    box-shadow:0 16px 34px rgba(11,99,255,.18);
    font-weight:900;
    font-size:28px;
}

.app-detail-logo img,
.game-detail-logo img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.app-detail-title,
.game-detail-title{
    margin:0;
    font-size:34px;
    color:var(--text);
}

.app-detail-subtitle,
.game-detail-subtitle{
    margin:8px 0 0;
    color:var(--muted);
}

.info-table{
    width:100%;
    border-collapse:collapse;
    overflow:hidden;
    border-radius:18px;
    border:1px solid var(--border);
    background:#fff;
}

.info-table th,
.info-table td{
    padding:13px 14px;
    border-bottom:1px solid #e8eef8;
    text-align:left;
    vertical-align:top;
}

.info-table th{
    width:210px;
    background:#f6f9ff;
    color:var(--text);
    font-weight:900;
}

.info-table td{
    color:#344054;
}

.info-table tr:last-child th,
.info-table tr:last-child td{
    border-bottom:0;
}

.prose,
.content,
.article-content{
    background:#fff;
    border:1px solid var(--border);
    border-radius:24px;
    box-shadow:var(--shadow);
    padding:24px;
    color:#344054;
    line-height:1.85;
}

.prose h2,
.content h2,
.article-content h2{
    font-size:28px;
    margin:30px 0 12px;
}

.prose h3,
.content h3,
.article-content h3{
    font-size:22px;
    margin:26px 0 10px;
}

.prose p,
.content p,
.article-content p{
    margin:0 0 16px;
    color:#344054;
}

.prose ul,
.prose ol,
.content ul,
.content ol,
.article-content ul,
.article-content ol{
    margin:0 0 18px;
    padding-left:24px;
}

.prose li,
.content li,
.article-content li{
    margin:7px 0;
}

.prose a,
.content a,
.article-content a{
    color:var(--primary);
    font-weight:900;
    text-decoration:none;
}

.prose a:hover,
.content a:hover,
.article-content a:hover{
    text-decoration:underline;
}

.notice,
.warning-box,
.disclaimer-box{
    border-radius:20px;
    padding:16px;
    line-height:1.7;
    margin:18px 0;
    font-weight:700;
}

.notice{
    background:var(--soft);
    color:var(--primary-dark);
    border:1px solid var(--border);
}

.warning-box{
    background:var(--warning-bg);
    color:var(--warning);
    border:1px solid #fedf89;
}

.disclaimer-box{
    background:var(--danger-bg);
    color:var(--danger);
    border:1px solid #fecdca;
}

.faq-list{
    display:grid;
    gap:12px;
}

.faq-item{
    background:#fff;
    border:1px solid var(--border);
    border-radius:20px;
    padding:16px;
    box-shadow:0 10px 24px rgba(11,99,255,.05);
}

.faq-item h3{
    margin:0 0 8px;
    font-size:18px;
}

.faq-item p{
    margin:0;
}

.search-box,
.filter-box{
    background:#fff;
    border:1px solid var(--border);
    border-radius:22px;
    padding:16px;
    box-shadow:var(--shadow);
}

.search-form{
    display:grid;
    grid-template-columns:1fr auto;
    gap:10px;
}

.search-form input,
.form-control,
.input,
select,
textarea{
    width:100%;
    min-height:46px;
    border:1px solid var(--border);
    border-radius:15px;
    background:#fff;
    color:var(--text);
    padding:12px 14px;
    outline:none;
}

textarea{
    min-height:140px;
    resize:vertical;
    line-height:1.7;
}

.search-form input:focus,
.form-control:focus,
.input:focus,
select:focus,
textarea:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 4px rgba(11,99,255,.12);
}

.pagination{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin:22px 0;
    flex-wrap:wrap;
}

.pagination-links{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.page-link{
    min-width:38px;
    height:38px;
    border-radius:13px;
    border:1px solid var(--border);
    display:flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
    color:#344054;
    font-weight:900;
    background:#fff;
    padding:0 10px;
}

.page-link.active,
.page-link:hover{
    background:var(--primary);
    color:#fff;
    border-color:var(--primary);
}

.empty-box{
    background:#fff;
    border:1px dashed #b8c7dd;
    border-radius:20px;
    padding:28px;
    text-align:center;
    color:var(--muted);
    line-height:1.7;
}

.breadcrumb{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
    color:var(--muted);
    font-size:13px;
    font-weight:800;
    margin:18px 0;
}

.breadcrumb a{
    text-decoration:none;
    color:var(--primary);
}

.two-col{
    display:grid;
    grid-template-columns:minmax(0,1fr) 330px;
    gap:22px;
    align-items:start;
}

.sidebar-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:22px;
    padding:18px;
    box-shadow:var(--shadow);
    margin-bottom:18px;
}

.sidebar-card h2,
.sidebar-card h3{
    margin:0 0 10px;
}

.sidebar-list{
    display:grid;
    gap:10px;
}

.sidebar-list a{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    background:#f6f9ff;
    border:1px solid #e8eef8;
    border-radius:16px;
    padding:12px;
    color:var(--text);
    text-decoration:none;
    font-weight:900;
}

.sidebar-list a:hover{
    background:var(--soft);
}

.download-safe-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:26px;
    box-shadow:var(--shadow);
    padding:24px;
    text-align:center;
    margin:24px auto;
    max-width:760px;
}

.download-timer{
    width:78px;
    height:78px;
    border-radius:999px;
    background:var(--soft);
    color:var(--primary-dark);
    border:1px solid var(--border);
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 auto 16px;
    font-size:28px;
    font-weight:900;
}

.promo-code{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 14px;
    border-radius:14px;
    background:#071b3a;
    color:#fff;
    font-weight:900;
    letter-spacing:.06em;
}

.copy-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:38px;
    padding:9px 12px;
    border-radius:13px;
    border:1px solid var(--border);
    background:#fff;
    color:var(--primary-dark);
    font-weight:900;
}

.alert{
    border-radius:16px;
    padding:14px 16px;
    margin:0 0 16px;
    font-weight:800;
    line-height:1.6;
    border:1px solid transparent;
}

.alert.success{
    background:var(--success-bg);
    color:var(--success);
    border-color:#abefc6;
}

.alert.error,
.alert.danger{
    background:var(--danger-bg);
    color:var(--danger);
    border-color:#fecdca;
}

.alert.warning{
    background:var(--warning-bg);
    color:var(--warning);
    border-color:#fedf89;
}

.alert.info{
    background:var(--soft);
    color:var(--primary-dark);
    border-color:var(--border);
}

.site-footer{
    margin-top:34px;
}

@media(max-width:1000px){
    .two-col{
        grid-template-columns:1fr;
    }

    .app-detail-hero,
    .game-detail-hero{
        grid-template-columns:auto 1fr;
    }

    .app-detail-hero .hero-actions,
    .game-detail-hero .hero-actions{
        grid-column:1 / -1;
    }
}

@media(max-width:760px){
    body{
        font-size:14px;
    }

    .container{
        padding:0 10px;
    }

    .page-hero,
    .site-hero{
        border-radius:24px;
        padding:24px 18px;
        margin:16px 0;
    }

    .page-hero h1,
    .site-hero h1{
        font-size:30px;
    }

    .section-head{
        display:block;
    }

    .grid,
    .cards-grid{
        grid-template-columns:1fr;
    }

    .app-detail-hero,
    .game-detail-hero{
        grid-template-columns:1fr;
        text-align:center;
    }

    .app-detail-logo,
    .game-detail-logo{
        margin:0 auto;
    }

    .app-detail-title,
    .game-detail-title{
        font-size:28px;
    }

    .hero-actions,
    .cta-row{
        align-items:stretch;
    }

    .hero-actions .btn,
    .hero-actions .button,
    .hero-actions .site-btn,
    .hero-actions .download-btn,
    .cta-row .btn,
    .cta-row .button,
    .cta-row .site-btn,
    .cta-row .download-btn{
        width:100%;
    }

    .search-form{
        grid-template-columns:1fr;
    }

    .prose,
    .content,
    .article-content{
        border-radius:20px;
        padding:18px;
    }

    .prose h2,
    .content h2,
    .article-content h2{
        font-size:24px;
    }

    .info-table th,
    .info-table td{
        display:block;
        width:100%;
    }

    .info-table th{
        border-bottom:0;
    }

    .pagination{
        display:grid;
        grid-template-columns:1fr;
    }
}