:root {
    --primary: #ff1f1f;
    --primary-dark: #de1515;
    --orange-dark: #e64a12;
    --ink: #071223;
    --text: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --surface: #ffffff;
    --page: #f4f6f8;
    --shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--page);
    color: var(--ink);
}

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

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

.site-header {
    background: transparent;
    box-shadow: none;
}

.site-topbar {
    min-height: 86px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--primary);
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff !important;
    font-size: clamp(1.12rem, 2vw, 1.7rem);
    font-weight: 900;
    line-height: 1.15;
}

.brand-mark,
.site-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 50px;
    background: #064e23;
    border: 3px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 8px;
    font-weight: 900;
    line-height: 1.05;
    text-align: center;
    box-shadow: inset 0 -8px 0 rgba(0, 0, 0, 0.18);
}

.site-logo-img {
    object-fit: cover;
}

.header-menu-btn,con-nav a.active
.header-back-btn {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-weight: 900;
    min-width: 38px;
    min-height: 38px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.header-menu-btn {
    width: 40px;
    height: 44px;
    font-size: 1.2rem;
}

.icon-nav {
    min-height: 82px;
    padding: 10px 24px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.icon-nav.is-hidden {
    display: none;
}

.icon-nav a {
    min-height: 56px;
    border-radius: 8px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 7px;
    color: #53627a;
    font-size: 0.9rem;
    font-weight: 500;
}

.icon-nav i {
    color: #64748b;
    font-size: 1.1rem;
}

.icon-nav a.active {
    width:100%;
    justify-self:stretch;
    background: #f1f4fa;
    color: var(--primary);
    font-weight: 600;
}

.icon-nav a.active i {
    color: var(--primary);
}

.home-compact-hero {
    padding: 18px 0 8px;
    text-align: center;
    background: var(--page);
}

.home-compact-hero h1 {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: clamp(1.35rem, 2.5vw, 1.9rem);
    font-weight: 900;
}

.seo-mini-copy {
    margin: 0 auto 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(90deg, #030303, #12d9df);
    color: #fff;
    text-align: left;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 700;
}

.home-compact-hero h2 {
    margin: 8px 0 10px;
    color: var(--ink);
    font-size: clamp(1.2rem, 2.1vw, 1.6rem);
    font-weight: 900;
}

.game-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
}

.game-tab {
    min-height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 900;
}

.game-tab.active {
    background: var(--primary);
    color: #fff;
}

.app-list-section {
    padding: 16px 0 4px;
}

.yono-list {
    display: grid;
    gap: 12px;
}

.yono-row {
    position: relative;
    min-height: 104px;
    padding: 16px 18px 16px 24px;
    border: 1px solid #dfe6ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
}

.rank-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ff3b3b;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.yono-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.yono-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 14px;
    object-fit: cover;
    background: #0f172a;
}

.yono-info {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.yono-info strong {
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1.1;
}

.bonus-line,
.withdraw-line {
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.25;
}

.bonus-line {
    color: #ff0000;
}

.withdraw-line {
    color: #020617;
}

.download-pill {
    min-height: 46px;
    min-width: 130px;
    padding: 0 18px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #050505;
    color: #fff !important;
    font-size: 0.92rem;
    font-weight: 900;
}

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

.section-head h2 {
    margin: 0;
    font-weight: 900;
}

.category-card,
.form-card,
.blog-card,
.detail-card,
.app-card,
.list-card {
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
}

.category-card {
    min-height: 92px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-card i {
    color: var(--primary);
    font-size: 1.6rem;
}

.form-card {
    padding: 24px;
}

.form-control {
    min-height: 46px;
    border-radius: 10px;
    border: 1px solid #dfe3ea;
}

.blog-card {
    overflow: hidden;
}

.blog-card img,
.app-card .app-logo {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #0f172a;
}

.blog-card-body,
.app-card-body,
.list-card-body {
    padding: 18px;
}

.blog-card h3,
.app-card h5 {
    font-size: 1.1rem;
    font-weight: 900;
}

.suggestion-game-card {
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
}

.suggestion-game-card img {
    width: 100%;
    height: 138px;
    object-fit: cover;
    background: #0f172a;
}

.suggestion-game-card div {
    padding: 12px 14px 6px;
}

.suggestion-game-card h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 900;
}

.suggestion-game-card p {
    margin: 0 0 6px;
    color: #00865a;
    font-size: 0.92rem;
    font-weight: 800;
}

.suggestion-game-card span {
    color: var(--muted);
    font-size: 0.9rem;
}

.suggestion-game-card .fa-star {
    color: #f4b83f;
}

.suggestion-download {
    min-height: 42px;
    margin: 8px 14px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff !important;
    font-weight: 900;
}

.app-detail-page main {
    background: #fff;
}

.app-detail-shell {
    max-width: 570px;
    margin: 0 auto;
    padding: 22px 16px 40px;
}

.detail-hero-mobile {
    text-align: center;
}

.detail-banner-wrap {
    position: relative;
    min-height: 150px;
    margin-bottom: 16px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #ef4444);
    background-position: center;
    background-size: cover;
}

.detail-banner-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.32));
}

.detail-app-icon {
    position: relative;
    z-index: 1;
    width: 96px;
    height: 96px;
    margin: 0 auto;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.detail-hero-mobile h1 {
    margin: 0 0 28px;
    color: var(--ink);
    font-size: 1.5rem;
    font-weight: 900;
}

.detail-stat-grid {
    margin-bottom: 22px;
    padding: 15px 8px;
    border-radius: 10px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: #f6f8fb;
}

.detail-stat-grid div {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.detail-stat-grid strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 1.05rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-stat-grid span {
    color: #526071;
    font-size: 0.86rem;
}

.big-download-btn,
.telegram-btn,
.how-download-btn {
    min-height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    font-size: 0.98rem;
    font-weight: 900;
}

.big-download-btn {
    margin-bottom: 12px;
    background: linear-gradient(90deg, #e91e63, #ad1457);
    color: #fff !important;
}

.download-source-official {
    background: linear-gradient(90deg, #2563eb, #0f766e);
}

.download-source-apk {
    background: linear-gradient(90deg, #16a34a, #15803d);
}

.telegram-btn {
    margin-bottom: 28px;
    border: 2px solid var(--primary);
    background: #fff;
    color: var(--primary) !important;
}

.reference-intro {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.55;
}

.how-download-btn {
    min-height: 58px;
    margin-top: 18px;
    border: 2px solid #2563eb;
    background: #fff;
    color: #2563eb !important;
}

.detail-copy {
    padding: 20px 2px;
}

.detail-copy h2,
.detail-card h2,
.other-games h2 {
    margin: 0 0 18px;
    color: var(--ink);
    font-size: 1.18rem;
    line-height: 1.35;
    font-weight: 900;
}

.detail-card h3 {
    font-size: 1rem;
    font-weight: 900;
}

.detail-copy p,
.detail-card p,
.detail-card li,
.other-games p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.58;
}

.app-detail-shell .detail-card {
    margin-bottom: 22px;
    padding: 18px;
    border-radius: 10px;
}

.detail-list {
    display: grid;
    gap: 12px;
    padding-left: 24px;
}

.app-screenshots {
    overflow: hidden;
}

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

.screenshot-grid figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fafc;
}

.screenshot-grid img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.screenshot-grid figcaption {
    padding: 8px 10px;
    color: var(--muted);
    font-size: 0.82rem;
}

.other-games {
    padding-top: 8px;
}

.other-game-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.site-footer {
    margin-top: 50px;
    padding: 50px 0 22px;
    background: #0f1115;
    color: rgba(255, 255, 255, 0.8);
}

.site-footer ul {
    display: grid;
    gap: 8px;
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.footer-bottom {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.admin-body {
    background: #eff2f7;
}

.admin-shell {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: calc(100vh - 70px);
}

.admin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 14px;
    background: #111827;
}

.admin-sidebar .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 700;
}

.admin-sidebar .nav-link.active {
    background: linear-gradient(90deg, var(--orange-dark), var(--primary));
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(255, 31, 31, 0.22);
}

.admin-content {
    min-width: 0;
    padding: 30px;
}

.card-stat {
    height: 100%;
    padding: 20px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}

.stat-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #edf0f5;
}

.share-row {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.share-row a,
.copy-link {
    width: 42px;
    height: 42px;
    border: 1px solid #dfe3ea;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--ink);
}

.copy-link.copied {
    background: var(--primary);
    color: #fff;
}

@media (max-width: 991.98px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .site-topbar {
        min-height: 64px;
        padding: 7px 12px;
    }

    .site-brand {
        gap: 8px;
        font-size: 0.95rem;
    }

    .site-brand span:last-child {
        max-width: calc(100vw - 112px);
        line-height: 1.18;
    }

    .brand-mark,
    .site-logo-img {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-width: 2px;
        font-size: 7px;
    }

    .header-menu-btn {
        width: 36px;
        height: 38px;
        min-width: 36px;
        min-height: 38px;
        font-size: 1.05rem;
        padding: 7px;
    }

    .header-back-btn {
        min-height: 38px;
        padding: 7px 10px;
        font-size: 0.88rem;
    }

    .icon-nav {
        min-height: 76px;
        padding: 8px 10px;
        gap: 4px;
    }

    .icon-nav a {
        min-height: 54px;
        gap: 5px;
        font-size: 0.76rem;
    }

    .icon-nav i {
        font-size: 1rem;
    }

    .icon-nav a.active {
        width: 56px;
    }

    .home-compact-hero {
        padding-top: 14px;
    }

    .home-compact-hero h1 {
        margin-bottom: 10px;
        font-size: 1.35rem;
    }

    .seo-mini-copy {
        padding: 9px 10px;
        font-size: 9.5px;
        border-radius: 11px;
    }

    .home-compact-hero h2 {
        font-size: 1.25rem;
    }

    .game-tab {
        min-height: 42px;
        gap: 7px;
        font-size: 0.84rem;
    }

    .yono-info strong {
        font-size: 0.98rem;
    }

    .yono-row {
        min-height: 88px;
        padding: 13px 12px 13px 18px;
        gap: 10px;
        border-radius: 11px;
    }

    .yono-main {
        gap: 11px;
    }

    .yono-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 12px;
    }

    .bonus-line,
    .withdraw-line {
        font-size: 0.75rem;
    }

    .download-pill {
        min-width: 104px;
        min-height: 39px;
        padding: 0 12px;
        border-radius: 8px;
        font-size: 0.8rem;
        gap: 6px;
    }

    .rank-badge {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .app-detail-shell {
        padding: 18px 14px 34px;
    }

    .detail-app-icon {
        width: 86px;
        height: 86px;
        border-radius: 20px;
    }

    .detail-banner-wrap {
        min-height: 128px;
        margin-bottom: 14px;
        border-radius: 15px;
    }

    .detail-hero-mobile h1 {
        margin-bottom: 22px;
        font-size: 1.32rem;
    }

    .detail-stat-grid {
        margin-bottom: 18px;
        padding: 13px 6px;
    }

    .detail-stat-grid strong {
        font-size: 0.88rem;
    }

    .detail-stat-grid span {
        font-size: 0.72rem;
    }

    .big-download-btn,
    .telegram-btn,
    .how-download-btn {
        min-height: 50px;
        font-size: 0.86rem;
        border-radius: 10px;
    }

    .telegram-btn {
        margin-bottom: 22px;
    }

    .reference-intro {
        font-size: 0.94rem;
    }

    .detail-copy {
        padding: 16px 2px;
    }

    .detail-copy h2,
    .detail-card h2,
    .other-games h2 {
        font-size: 1.08rem;
        margin-bottom: 12px;
    }

    .detail-copy p,
    .detail-card p,
    .detail-card li,
    .other-games p {
        font-size: 0.91rem;
        line-height: 1.52;
    }

    .app-detail-shell .detail-card {
        margin-bottom: 18px;
        padding: 16px;
    }

    .detail-list {
        gap: 8px;
        padding-left: 20px;
    }

    .screenshot-grid {
        gap: 10px;
    }

    .screenshot-grid img {
        height: 148px;
    }

    .other-game-grid {
        gap: 12px;
    }

    .suggestion-game-card {
        border-radius: 11px;
    }

    .suggestion-game-card img {
        height: 112px;
    }

    .suggestion-game-card div {
        padding: 10px 12px 4px;
    }

    .suggestion-game-card h3 {
        font-size: 0.92rem;
    }

    .suggestion-game-card p,
    .suggestion-game-card span {
        font-size: 0.78rem;
    }

    .suggestion-download {
        min-height: 36px;
        margin: 7px 12px 12px;
        font-size: 0.82rem;
    }

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

@media (max-width: 420px) {
    .site-brand {
        font-size: 0.9rem;
    }

    .brand-mark,
    .site-logo-img {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 6px;
    }

    .icon-nav a {
        font-size: 0.7rem;
    }

    .yono-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .yono-row {
        gap: 8px;
        padding: 12px 10px 12px 16px;
    }

    .yono-main {
        gap: 10px;
    }

    .download-pill {
        min-width: 96px;
        min-height: 36px;
        padding: 0 10px;
        font-size: 0.74rem;
    }

    .detail-stat-grid strong {
        font-size: 0.82rem;
    }

    .big-download-btn,
    .telegram-btn,
    .how-download-btn {
        font-size: 0.8rem;
    }
}

@media (max-width: 359px) {
    .yono-row {
        grid-template-columns: 1fr;
    }

    .download-pill {
        justify-self: end;
    }
}
