/* Number Games — frontend (soft UI) */
:root {
    --primary: #9381ff;
    --primary-dark: #6f5ce8;
    --lavender: #b8b8ff;
    --ghost: #f8f7ff;
    --cream: #ffeedd;
    --peach: #ffd8be;
    --ink: #2b2748;
    --muted: #6c678c;
    --line: #e8e5fb;
    --white: #fff;
    --star: #ffb347;
    --radius: 20px;
    --radius-sm: 14px;
    --shadow: 8px 8px 24px rgba(147, 129, 255, .15), -6px -6px 18px rgba(255, 255, 255, .9);
    --shadow-sm: 4px 4px 12px rgba(147, 129, 255, .14), -3px -3px 10px rgba(255, 255, 255, .9);
    --shadow-in: inset 3px 3px 8px rgba(147, 129, 255, .15), inset -3px -3px 8px rgba(255, 255, 255, .9);
    --font-head: 'Average Sans', system-ui, -apple-system, sans-serif;
    --font-body: 'Source Serif 4', Georgia, serif;
    --container: 1320px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
body {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column;
    background: var(--ghost); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.65;
    background-image: radial-gradient(1200px 500px at 110% -10%, rgba(255, 216, 190, .45), transparent 60%), radial-gradient(900px 500px at -10% 10%, rgba(184, 184, 255, .35), transparent 60%);
    background-attachment: fixed;
}
h1, h2, h3, h4, .btn, .brand, .main-nav, .sort-tabs, .chip, .pagination, label, .game-title, .widget-title { font-family: var(--font-head); }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.2; margin: 0 0 .4rem; }
h2 { font-size: 1.45rem; line-height: 1.25; }
a { color: var(--primary-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 900px; }
.site-main { flex: 1; padding: 22px 0 40px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip-link:focus { left: 8px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
:focus-visible { outline: 3px solid rgba(147, 129, 255, .55); outline-offset: 2px; border-radius: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; padding: 12px 22px; border-radius: 99px; font-size: 1rem; font-weight: 700; line-height: 1.2; transition: transform .15s, box-shadow .15s, background .15s; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 8px 20px rgba(147, 129, 255, .38); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(147, 129, 255, .45); }
.btn-soft { background: #fff; color: var(--primary-dark); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn-sm { padding: 8px 15px; font-size: .9rem; }

/* App prompt */
.app-prompt { background: linear-gradient(90deg, var(--cream), var(--peach)); }
.app-prompt-inner { display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.app-prompt img { border-radius: 10px; }
.app-prompt-text { display: flex; flex-direction: column; line-height: 1.25; font-family: var(--font-head); flex: 1; }
.app-prompt-text span { font-size: .85rem; color: #8a4b12; }
.app-prompt-close { background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: #8a4b12; padding: 0 6px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 247, 255, .88); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(147, 129, 255, .12); }
.header-inner { display: flex; align-items: center; gap: 22px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { border-radius: 12px; box-shadow: var(--shadow-sm); }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.55rem; letter-spacing: .01em; background: linear-gradient(135deg, var(--ink), var(--primary-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.main-nav { display: flex; align-items: center; gap: 16px; flex: 1; justify-content: flex-end; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list a { display: block; padding: 10px 15px; border-radius: 99px; text-decoration: none; color: var(--ink); font-size: 1.05rem; transition: background .15s, color .15s; }
.nav-list > li > a:hover, .nav-list > li > a.active { background: #fff; color: var(--primary-dark); box-shadow: var(--shadow-sm); }
.nav-list .caret { font-size: .75em; opacity: .7; }
.sub-toggle { display: none; }
.sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: #fff; border-radius: var(--radius-sm); box-shadow: 0 18px 40px rgba(60, 40, 160, .16); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; max-height: 70vh; overflow-y: auto; }
.sub-menu a { padding: 8px 12px; border-radius: 10px; font-size: .98rem; }
.sub-menu a:hover { background: var(--ghost); color: var(--primary-dark); }
.sub-menu li { position: relative; }
.sub-menu li.has-sub > a::after { content: '›'; float: right; opacity: .5; margin-left: 10px; }
.sub-menu-2 { top: -8px; left: calc(100% + 4px); max-height: none; overflow: visible; }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav-list > .has-sub > .sub-menu { overflow: visible; max-height: none; }
.header-search { display: flex; align-items: center; background: #fff; border-radius: 99px; box-shadow: var(--shadow-in); padding: 3px 3px 3px 14px; min-width: 220px; }
.header-search input { border: 0; background: transparent; font: inherit; font-size: .95rem; width: 100%; outline: none; color: var(--ink); padding: 7px 0; }
.header-search button { border: 0; background: var(--primary); color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; flex: none; }
.hamburger { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.hamburger span { display: block; width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .2s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Ads */
.ad-slot { display: flex; justify-content: center; align-items: center; margin: 18px auto; max-width: 100%; overflow: hidden; }
.ad-slot.ad-728x90 { width: var(--ad-w); min-height: var(--ad-h); }
.ad-slot.ad-300x250 { width: var(--ad-w); min-height: var(--ad-h); margin: 0 auto 20px; }
.ad-slot.ad-test { background: repeating-linear-gradient(45deg, #ffeb3b, #ffeb3b 14px, #ffe100 14px, #ffe100 28px); border: 2px dashed #c9a800; border-radius: 10px; height: var(--ad-h); color: #5c4b00; font: 700 .85rem/1.3 var(--font-head); text-align: center; padding: 6px; }
.ad-header { margin-top: 14px; }
@media (max-width: 760px) {
    .ad-slot.ad-728x90 { width: 100%; }
    .ad-slot.ad-test.ad-728x90 { height: 60px; }
}

/* Hero + headings */
.hero { text-align: center; max-width: 900px; margin: 18px auto 28px; }
.hero h1 { background: linear-gradient(135deg, var(--ink) 30%, var(--primary-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-intro { color: var(--muted); font-size: 1.1rem; margin: 10px auto 22px; max-width: 760px; }
.hero-search { display: flex; gap: 8px; max-width: 620px; margin: 0 auto; background: #fff; padding: 6px; border-radius: 99px; box-shadow: var(--shadow); }
.hero-search-left { margin: 0 0 22px; }
.hero-search input { flex: 1; border: 0; background: transparent; font: inherit; padding: 10px 16px; outline: none; min-width: 0; color: var(--ink); }
.page-title-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 16px; }
.page-title-row h1 { margin: 0; }
.h-small { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.count-pill { background: #fff; box-shadow: var(--shadow-sm); padding: 4px 14px; border-radius: 99px; font-family: var(--font-head); color: var(--muted); font-size: .92rem; }
.lead-text { color: var(--muted); max-width: 760px; margin-top: -4px; }
.section-title { margin: 36px 0 16px; }
.breadcrumb { font-family: var(--font-head); font-size: .92rem; color: var(--muted); margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb .sep { opacity: .5; }
.notice { background: var(--cream); color: #8a4b12; padding: 12px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; font-family: var(--font-head); }

/* Sort tabs & chips */
.sort-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; background: #fff; padding: 5px; border-radius: 99px; box-shadow: var(--shadow-in); margin-bottom: 22px; }
.sort-tabs a { text-decoration: none; color: var(--muted); padding: 8px 18px; border-radius: 99px; font-size: .98rem; transition: .15s; }
.sort-tabs a:hover { color: var(--primary-dark); }
.sort-tabs a.active { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 6px 14px rgba(147, 129, 255, .35); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { display: inline-block; text-decoration: none; background: #fff; color: var(--primary-dark); padding: 7px 15px; border-radius: 99px; box-shadow: var(--shadow-sm); font-size: .95rem; transition: .15s; }
.chip:hover { background: var(--primary); color: #fff; }
.chip-sm { padding: 3px 11px; font-size: .85rem; }

/* Game grid — 6 columns desktop, 1 column mobile */
.game-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.game-card { position: relative; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.game-card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(147, 129, 255, .25); }
.game-link { display: block; text-decoration: none; color: var(--ink); border-radius: inherit; }
.thumb-wrap { display: block; aspect-ratio: 1 / 1; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: linear-gradient(135deg, var(--lavender), var(--peach)); }
.thumb-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.game-card:hover .thumb-wrap img { transform: scale(1.06); }
.game-meta { display: block; padding: 10px 12px 12px; }
.game-title { display: block; font-weight: 700; font-size: 1.02rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-sub { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 4px; }
.plays { font-family: var(--font-head); font-size: .8rem; color: var(--muted); white-space: nowrap; }

/* Featured: animated rotating gradient border + glow + ribbon */
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.game-card.is-featured { background: #fff; }
.game-card.is-featured::before {
    content: ''; position: absolute; inset: -3px; border-radius: calc(var(--radius) + 3px); z-index: -1;
    background: conic-gradient(from var(--angle), #9381ff, #ffd8be, #b8b8ff, #ffb347, #9381ff);
    animation: ng-spin 3.5s linear infinite;
}
.game-card.is-featured::after {
    content: ''; position: absolute; inset: -3px; border-radius: calc(var(--radius) + 3px); z-index: -2;
    filter: blur(14px); opacity: .55;
    background: conic-gradient(from var(--angle), #9381ff, #ffd8be, #b8b8ff, #ffb347, #9381ff);
    animation: ng-spin 3.5s linear infinite;
}
.game-grid, .mini-grid { position: relative; z-index: 0; isolation: isolate; }
.feat-badge { position: absolute; top: 10px; left: 10px; background: linear-gradient(135deg, #ffb347, #ff8a65); color: #fff; font: 700 .75rem/1 var(--font-head); padding: 6px 10px; border-radius: 99px; box-shadow: 0 4px 12px rgba(255, 138, 101, .45); animation: ng-pulse 2s ease-in-out infinite; }
@keyframes ng-spin { to { --angle: 360deg; } }
@keyframes ng-pulse { 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
    .game-card.is-featured::before, .game-card.is-featured::after, .feat-badge { animation: none; }
}

/* Stars */
.stars { position: relative; display: inline-block; font-size: .85rem; line-height: 1; letter-spacing: 1px; }
.stars::before { content: '★★★★★'; color: #e0dcf7; }
.stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; }
.stars-fill::before { content: '★★★★★'; color: var(--star); }

/* Pagination */
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 34px 0 10px; }
.pagination a, .pagination span { display: block; min-width: 44px; text-align: center; padding: 10px 14px; border-radius: 14px; text-decoration: none; background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.pagination a:hover { color: var(--primary-dark); }
.pagination .current { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; }
.pagination .gap { background: none; box-shadow: none; padding: 10px 2px; }

/* Content cards / rich text */
.content-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin-bottom: 22px; }
.seo-text { max-width: 980px; margin: 40px auto 0; background: rgba(255, 255, 255, .7); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.text-center { text-align: center; }
.rich-text h2 { margin-top: 0; }
.rich-text h3 { margin-bottom: .4rem; }
.rich-text ul, .rich-text ol { padding-left: 1.3rem; }
.rich-text.text-center ul, .rich-text.text-center ol { display: inline-block; text-align: left; }
.rich-text blockquote { margin: 1rem 0; padding: .6rem 1rem; border-left: 4px solid var(--lavender); background: var(--ghost); border-radius: 0 12px 12px 0; }
.rich-text .ql-align-center { text-align: center; }
.rich-text .ql-align-right { text-align: right; }
.rich-text .ql-align-justify { text-align: justify; }
.rich-text .ql-indent-1 { padding-left: 2em; }
.rich-text .ql-indent-2 { padding-left: 4em; }
.legal h2 { font-size: 1.3rem; margin-top: 1.8rem; }
.empty-state { text-align: center; padding: 50px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* Single game */
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; }
.game-frame-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; }
.game-box { position: relative; width: 100%; margin: 0 auto; height: clamp(420px, 72vh, 1000px); max-height: 1000px; border-radius: var(--radius-sm); overflow: hidden; background: #1d1a33; }
.game-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.game-box:fullscreen, .game-box:-webkit-full-screen { max-width: none !important; max-height: none; width: 100vw; height: 100vh !important; aspect-ratio: auto !important; border-radius: 0; }
.game-layout.theater { grid-template-columns: minmax(0, 1fr); }
.game-layout.theater .game-box { height: min(88vh, 1000px); }
.game-layout.theater .game-sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.game-layout.theater .mini-grid { grid-template-columns: repeat(3, 1fr); }
.game-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 14px 18px; margin: 16px 0; }
.game-h1 { font-size: clamp(1.35rem, 2.3vw, 1.8rem); margin: 0; }
.gt-meta { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.gt-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.gt-buttons { display: flex; gap: 8px; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; background: var(--ghost); color: var(--ink); padding: 9px 13px; border-radius: 12px; box-shadow: var(--shadow-sm); font: 700 .88rem var(--font-head); transition: .15s; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover, .icon-btn[aria-pressed="true"] { background: var(--primary); color: #fff; }
.rating-box { display: flex; flex-direction: column; align-items: flex-start; }
.rate-stars { display: inline-flex; gap: 2px; }
.rstar { --fill: 0%; border: 0; background: none; padding: 1px; cursor: pointer; line-height: 0; }
.rstar { background: linear-gradient(90deg, var(--star) var(--fill), #e3dff8 var(--fill)); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") center / 26px 26px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") center / 26px 26px no-repeat; width: 28px; height: 28px; transition: transform .12s; }
.rstar svg { width: 26px; height: 26px; opacity: 0; }
.rstar:hover { transform: scale(1.15); }
.rate-stars.hovering .rstar { background: #e3dff8; }
.rate-stars.hovering .rstar.lit { background: var(--star); }
.rating-text { font-family: var(--font-head); font-size: .85rem; color: var(--muted); }
.rating-msg { font-family: var(--font-head); font-size: .8rem; color: var(--primary-dark); min-height: 1em; }

/* Sidebar */
.game-sidebar .widget { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px; margin-bottom: 22px; }
.widget-title { font-size: 1.15rem; margin: 0 0 14px; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-card { position: relative; display: block; text-decoration: none; color: var(--ink); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s; }
.mini-card:hover { transform: translateY(-3px); }
.mini-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: linear-gradient(135deg, var(--lavender), var(--peach)); }
.mini-card span { display: block; font: 700 .85rem/1.25 var(--font-head); padding: 7px 8px 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-card.is-featured { box-shadow: 0 0 0 2px var(--primary), var(--shadow-sm); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { text-decoration: none; background: var(--ghost); color: var(--primary-dark); padding: 5px 11px; border-radius: 99px; font: .88rem var(--font-head); box-shadow: var(--shadow-in); transition: .15s; }
.tag:hover { background: var(--primary); color: #fff; box-shadow: none; }

/* Modal */
.modal { border: 0; padding: 0; background: transparent; max-width: 480px; width: calc(100% - 32px); }
.modal::backdrop { background: rgba(43, 39, 72, .45); backdrop-filter: blur(3px); }
.modal-card { position: relative; background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: 0 30px 60px rgba(43, 39, 72, .3); }
.modal-card h2 { margin: 0 0 4px; }
.modal-close { position: absolute; right: 14px; top: 10px; border: 0; background: none; font-size: 1.8rem; cursor: pointer; color: var(--muted); }
.radio-list { display: grid; gap: 8px; margin: 16px 0; }
.radio-list label { display: flex; gap: 10px; align-items: center; background: var(--ghost); padding: 10px 14px; border-radius: 12px; cursor: pointer; }
.radio-list label:has(input:checked) { background: #eeeaff; box-shadow: inset 0 0 0 2px var(--lavender); }
.report-details label, .field label { display: block; font-weight: 700; margin-bottom: 6px; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.form-msg { font-family: var(--font-head); margin: 12px 0 0; min-height: 1.2em; }
.form-msg.ok { color: #1e7d5c; }
.form-msg.err { color: #b3263f; }

/* Forms */
input[type=text], input[type=email], input[type=search], input[type=number], textarea {
    width: 100%; font: inherit; color: var(--ink); background: var(--ghost); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 14px; box-shadow: var(--shadow-in);
}
.hero-search input, .header-search input { box-shadow: none; border: 0; background: transparent; padding: 10px 16px; }
.header-search input { padding: 7px 0; }
input:focus, textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.field { margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.alert { padding: 13px 18px; border-radius: var(--radius-sm); margin: 16px 0; font-family: var(--font-head); }
.alert ul { margin: 0; padding-left: 1.1rem; }
.alert-success { background: #e3f8ef; color: #1e7d5c; }
.alert-error { background: #ffe6ea; color: #b3263f; }

/* Mobile game */
.mobile-hero { padding: 0; overflow: hidden; }
.mobile-banner { display: block; width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; }
.mobile-head { display: flex; gap: 22px; align-items: center; padding: 24px 28px 28px; flex-wrap: wrap; }
.mobile-icon { width: 120px; height: 120px; border-radius: 26px; box-shadow: var(--shadow); margin-top: -70px; background: #fff; border: 4px solid #fff; }
.mobile-hero .mobile-head:first-child .mobile-icon { margin-top: 0; }
.mobile-head h1 { margin: 0; }
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.store-badges img { display: block; height: 48px; width: auto; }
.store-badges-lg img { height: 60px; }
.availability { text-align: center; }
.availability .store-badges { justify-content: center; }

/* Blog list */
.post-list { display: grid; gap: 22px; }
.post-card { display: grid; grid-template-columns: 380px 1fr; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.post-img img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1024/500; }
.post-body { padding: 22px 26px; }
.post-body h2 { margin: 4px 0 8px; }
.post-body h2 a { text-decoration: none; color: var(--ink); }

/* 404 */
.nf-hero { text-align: center; max-width: 760px; margin: 10px auto 30px; }
.nf-code { font: 700 clamp(5rem, 16vw, 9rem)/1 var(--font-head); color: var(--primary); text-shadow: 6px 6px 0 var(--peach); letter-spacing: .05em; }
.nf-code span { display: inline-block; color: var(--primary-dark); animation: ng-bob 2.4s ease-in-out infinite; }
@keyframes ng-bob { 50% { transform: translateY(-12px) rotate(8deg); } }
.nf-actions { margin: 18px 0 22px; }
.nf-game { max-width: 620px; margin: 0 auto 30px; text-align: center; background: linear-gradient(160deg, #fff, var(--cream)); }
.sprint-stats { display: flex; justify-content: center; gap: 22px; font-family: var(--font-head); color: var(--muted); }
.sprint-stats strong { color: var(--ink); }
.sprint-q { font: 700 2.6rem/1.2 var(--font-head); margin: 18px 0; color: var(--primary-dark); }
.sprint-q.pop { animation: ng-pop .25s; }
@keyframes ng-pop { 50% { transform: scale(1.12); color: #2fb384; } }
.sprint-row { display: flex; gap: 10px; max-width: 340px; margin: 0 auto; }
.sprint-row input { text-align: center; font: 700 1.4rem var(--font-head); }

/* Maintenance */
.maintenance-body { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.maintenance-card { background: #fff; border-radius: 28px; box-shadow: var(--shadow); padding: 40px 34px; text-align: center; max-width: 520px; }
.maintenance-card img { border-radius: 20px; }

/* Footer */
.site-footer { background: linear-gradient(160deg, #fff, #f1efff 70%, var(--cream)); border-top: 1px solid var(--line); margin-top: 20px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding-top: 40px; padding-bottom: 26px; }
.footer-brand p { color: var(--muted); max-width: 420px; }
.footer-links h2 { font-size: 1.05rem; margin: 6px 0 12px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; font-family: var(--font-head); }
.footer-links a:hover { color: var(--primary-dark); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; padding-bottom: 22px; color: var(--muted); font-size: .88rem; font-family: var(--font-head); }

/* Responsive */
@media (max-width: 1280px) { .game-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1100px) {
    .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .game-layout { grid-template-columns: minmax(0, 1fr) 300px; }
    .header-search { min-width: 170px; }
}
@media (max-width: 980px) {
    .hamburger { display: flex; }
    .main-nav { position: fixed; inset: 72px 0 0 0; background: var(--ghost); flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 16px 20px 40px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s; gap: 14px; }
    .main-nav.open { transform: none; visibility: visible; }
    body.nav-open { overflow: hidden; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav-list > li { display: flex; flex-wrap: wrap; align-items: center; }
    .nav-list > li > a { flex: 1; font-size: 1.15rem; padding: 12px 16px; }
    .nav-list .caret { display: none; }
    .sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); cursor: pointer; font-size: 1rem; color: var(--ink); transition: transform .2s; }
    .sub-toggle[aria-expanded="true"] { transform: rotate(180deg); }
    .sub-menu, .sub-menu-2 { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; min-width: 0; width: 100%; padding: 0 0 0 16px; display: none; max-height: none; overflow: visible; }
    .sub-menu.open { display: block; }
    .sub-menu li { display: flex; flex-wrap: wrap; align-items: center; }
    .sub-menu li > a { flex: 1; }
    .sub-menu li.has-sub > a::after { content: none; }
    .sub-menu .sub-toggle { width: 38px; height: 38px; }
    .header-search { min-width: 0; width: 100%; }
    .game-layout { grid-template-columns: minmax(0, 1fr); }
    .game-sidebar { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
    .game-sidebar .widget { margin-bottom: 0; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .post-card { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 600px) {
    body { font-size: 16px; }
    .container { padding: 0 16px; }
    .header-inner { min-height: 64px; }
    .main-nav { inset: 64px 0 0 0; }
    .brand-name { font-size: 1.3rem; }
    .brand img { width: 38px; height: 38px; }
    .game-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .game-title { font-size: 1.1rem; }
    .sort-tabs { display: flex; width: 100%; }
    .sort-tabs a { flex: 1; text-align: center; padding: 8px 6px; font-size: .9rem; }
    .game-box { height: 70vh; }
    .game-toolbar { padding: 12px; }
    .gt-right { width: 100%; justify-content: space-between; }
    .icon-btn span { display: none; }
    .content-card, .seo-text { padding: 20px; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .mobile-icon { width: 90px; height: 90px; margin-top: -50px; }
    .hero-search .btn { padding: 10px 16px; }
}
