/* ============================================
   apus.pub - Free Online H5 Games
   Responsive (PC + Mobile) — CrazyGames inspired dark theme
   ============================================ */

:root {
    --bg: #171d2e;
    --bg-deep: #10141f;
    --surface: #1f2739;
    --surface-2: #273148;
    --surface-3: #2f3a52;
    --border: #2e3a52;
    --text: #eef1f8;
    --text-2: #cdd4e4;
    --muted: #94a0b8;
    --accent: #9b5cff;
    --accent-2: #7c3aed;
    --accent-hover: #b07bff;
    --green: #2dd4a7;
    --pink: #ff5c8a;
    --yellow: #ffc74d;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    width: 100%;
}

.app-shell {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

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

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

/* ============================================
   Header
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(23, 29, 46, 0.92);
    border-bottom: 1px solid var(--border);
    width: 100%;
    overflow: hidden;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 64px;
    min-width: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #4f46e5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 4px 14px rgba(155, 92, 255, 0.4);
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.logo-text span { color: var(--accent); }

/* Search */
.search-box {
    flex: 1;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
}

.search-box form {
    display: flex;
    align-items: center;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(155, 92, 255, 0.18);
}

.search-box input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 14px;
    padding: 11px 18px;
}

.search-box input::placeholder { color: var(--muted); }

.search-box button {
    border: none;
    background: var(--accent);
    color: #fff;
    width: 42px;
    height: 42px;
    margin: 2px;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.search-box button:hover { background: var(--accent-2); }

.search-box button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-2);
    flex-shrink: 0;
    transition: all 0.2s;
    text-decoration: none;
}

.icon-btn:hover {
    background: var(--surface-2);
    color: #fff;
}

/* ============================================
   Category Navigation (pills, horizontal scroll)
   ============================================ */
.cat-nav {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 64px;
    z-index: 150;
    overflow: hidden;
    width: 100%;
}

.cat-nav-inner {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
}

.cat-nav-inner::-webkit-scrollbar { display: none; }

.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--border);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
}

.cat-chip:hover {
    color: #fff;
    border-color: var(--accent);
    background: var(--surface-2);
}

.cat-chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.cat-chip .count {
    font-size: 11px;
    opacity: 0.75;
    font-weight: 500;
}

/* ============================================
   Hero
   ============================================ */
.hero {
    padding: 22px 0 4px;
}

.hero h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.hero .sub {
    color: var(--muted);
    font-size: 14px;
    margin-top: 4px;
}

/* ============================================
   Section headings
   ============================================ */
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 22px 0 14px;
}

.section-head h2 {
    font-size: 19px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-head h2::before {
    content: "";
    width: 5px;
    height: 20px;
    border-radius: 3px;
    background: var(--accent);
}

.section-head .view-all {
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.section-head .view-all:hover { text-decoration: underline; }

/* ============================================
   Game Grid (responsive)
   ============================================ */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 16px;
    min-width: 0;
}

.game-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.game-card-thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--surface-3);
    overflow: hidden;
}

.game-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s;
}

.game-card:hover .game-card-thumb { transform: scale(1.06); }

.game-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 20, 31, 0.55);
    opacity: 0;
    transition: opacity 0.2s;
}

.game-card:hover .game-card-play { opacity: 1; }

.game-card-play .play-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(155, 92, 255, 0.5);
    transform: scale(0.8);
    transition: transform 0.2s;
}

.game-card:hover .game-card-play .play-badge { transform: scale(1); }

.game-card-play .play-badge svg {
    width: 22px;
    height: 22px;
    fill: #fff;
    margin-left: 3px;
}

.game-card-info {
    padding: 10px 12px 12px;
}

.game-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

.game-card-company {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 7px;
}

.game-card-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(155, 92, 255, 0.12);
    color: var(--accent);
    font-weight: 500;
}

/* ============================================
   Load More / Pagination
   ============================================ */
.load-more-wrap {
    text-align: center;
    padding: 26px 0 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 34px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
    background: var(--surface-2);
    color: #fff;
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--surface-3); }

.btn-lg { padding: 14px 40px; font-size: 17px; }

/* ============================================
   Loading / Empty states
   ============================================ */
.loading,
.empty-state {
    text-align: center;
    padding: 70px 20px;
    color: var(--muted);
    grid-column: 1 / -1;
}

.loading-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 14px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.empty-state .icon { font-size: 44px; opacity: 0.4; margin-bottom: 10px; }
.empty-state p { font-size: 14px; }

/* ============================================
   Ad Placements (Google AdSense)
   ============================================ */
.ad-slot {
    position: relative;
    overflow: visible;
    text-align: center;
    background: rgba(31, 39, 57, 0.6);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    display: block;
    min-height: 120px;
    max-width: 100%;
    width: 100%;
    padding: 0;
}

.ad-slot ins.adsbygoogle {
    display: block;
    margin: 0 auto;
    width: 100%;
    min-height: inherit;
}

.ad-slot-placeholder {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 12px;
    line-height: 1.6;
    min-height: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.ad-slot-placeholder b { color: var(--accent); }

/* In-feed ad inside game grids */
.ad-infeed {
    grid-column: 1 / -1;
    min-height: 180px;
    margin: 4px 0;
}

/* Header leaderboard ad */
.ad-leaderboard {
    margin: 16px auto 0;
    max-width: 970px;
    min-height: 90px;
}

.ad-rect {
    margin: 0 auto 20px;
    max-width: 336px;
    min-height: 250px;
}

.ad-detail { min-height: 120px; margin: 20px 0; }
.ad-detail-top { margin-top: 0; }

/* ============================================
   Detail Page
   ============================================ */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px 0 40px;
}

.detail-main { min-width: 0; }

.detail-hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.detail-thumb {
    width: 128px;
    height: 128px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--surface-3);
    flex-shrink: 0;
}

.detail-hero-info {
    flex: 1;
    min-width: 0;
}

.detail-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.25;
}

.detail-company {
    color: var(--muted);
    font-size: 14px;
    margin-top: 4px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.detail-meta-item {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text-2);
    border: 1px solid var(--border);
}

.detail-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.detail-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 20px;
}

.detail-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section h3::before {
    content: "";
    width: 4px;
    height: 16px;
    border-radius: 3px;
    background: var(--accent);
}

.detail-section p {
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.75;
    white-space: pre-line;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

/* ============================================
   Detail Sidebar (PC only)
   ============================================ */
.detail-sidebar {
    display: none;
    flex-direction: column;
    gap: 20px;
    min-width: 300px;
}

.sidebar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.sidebar-card h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.sidebar-game-list { display: flex; flex-direction: column; gap: 10px; }

.sidebar-game {
    display: flex;
    gap: 10px;
    text-decoration: none;
    align-items: center;
    transition: opacity 0.15s;
}

.sidebar-game:hover { opacity: 0.85; }

.sidebar-game img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--surface-3);
    flex-shrink: 0;
}

.sidebar-game .name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================
   Play Page
   ============================================ */
.play-page {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 50;
}

.play-page #gameFrame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #000;
}

.fullscreen-ad {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: #10141f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ad-inner {
    width: min(100%, 720px);
    min-height: 500px;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 20px;
}

.ad-label {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.preroll-slot {
    width: 100%;
    max-width: 620px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown { font-size: 58px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.skip-hint { color: var(--muted); font-size: 14px; }

.skip-btn {
    margin-top: 4px;
    padding: 10px 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.skip-btn:hover { background: rgba(255, 255, 255, 0.08); }

.play-back {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 2000;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.play-back:hover { background: rgba(0, 0, 0, 0.85); }

.play-back svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.play-toolbar {
    position: fixed;
    bottom: 14px;
    right: 14px;
    z-index: 2000;
    display: flex;
    gap: 8px;
}

.play-toolbar .tool-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.play-toolbar .tool-btn:hover { background: rgba(0, 0, 0, 0.85); }

.play-toolbar .tool-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================================
   Search page
   ============================================ */
.search-head h1 { font-size: 22px; font-weight: 800; }
.search-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
    margin-top: auto;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 34px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    margin-bottom: 22px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    margin-bottom: 12px;
}

.footer-col a {
    display: block;
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.15s;
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
}

.footer-bottom .logo-text { font-size: 16px; }

/* ============================================
   Policy Page
   ============================================ */
.policy-page {
    padding-top: 34px;
    padding-bottom: 56px;
}

.policy-hero {
    max-width: 820px;
    margin: 0 auto 22px;
}

.policy-hero h1 {
    color: #fff;
    font-size: 34px;
    line-height: 1.15;
    margin-bottom: 8px;
}

.policy-hero p {
    color: var(--muted);
    font-size: 14px;
}

.policy-content {
    max-width: 820px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}

.policy-content section + section {
    margin-top: 24px;
}

.policy-content h2 {
    color: #fff;
    font-size: 19px;
    margin-bottom: 10px;
}

.policy-content p {
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.75;
}

.policy-content p + p {
    margin-top: 10px;
}

.policy-content a {
    color: var(--accent-hover);
    text-decoration: none;
}

.policy-content a:hover {
    text-decoration: underline;
}

/* ============================================
   Responsive
   ============================================ */

/* Tablet & Desktop: show sidebar, bigger grid */
@media (min-width: 900px) {
    .detail-layout {
        grid-template-columns: 1fr 320px;
    }

    .detail-sidebar { display: flex; }

    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 18px;
    }
}

/* Large desktop: wider grid */
@media (min-width: 1200px) {
    .game-grid { grid-template-columns: repeat(6, 1fr); }
}

/* Mobile: tighten paddings, prevent overflow */
@media (max-width: 767px) {
    .header-inner { gap: 8px; }

    .search-box {
        max-width: none;
        min-width: 0;
    }

    .search-box form { border-radius: 999px; }

    .hero h1 { font-size: 21px; }

    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .game-card-title { min-height: 34px; font-size: 13px; }

    .detail-hero { flex-direction: column; }
    .detail-thumb { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); }
    .detail-title { font-size: 20px; }

    .ad-leaderboard { min-height: 50px; }
    .ad-slot { min-height: 100px; }
    .ad-slot-placeholder { font-size: 11px; }
    .ad-infeed { min-height: 100px; }

    .policy-page { padding-top: 24px; }
    .policy-hero h1 { font-size: 27px; }
    .policy-content { padding: 20px; }

    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

    .play-toolbar { bottom: 10px; right: 10px; }
}

/* Small phones */
@media (max-width: 380px) {
    .game-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .game-card-info { padding: 8px 8px 10px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

/* ============================================
   PLAY theme
   ============================================ */
:root {
    --bg: #202421;
    --bg-deep: #121513;
    --surface: #282d2a;
    --surface-2: #343b36;
    --surface-3: #414a43;
    --border: #3a443c;
    --text: #f3f4ed;
    --text-2: #d2d7cc;
    --muted: #9ba69b;
    --accent: #c5f34a;
    --accent-2: #a8d631;
    --accent-hover: #dbff70;
    --green: #79e1b2;
    --pink: #ff7868;
    --yellow: #f5c85b;
    --radius: 6px;
    --radius-sm: 4px;
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

body { background: var(--bg-deep); }
.site-header { background: rgba(18, 21, 19, 0.96); border-bottom-color: #303831; }
.header-inner { height: 72px; }
.brand-mark {
    color: var(--text);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.5px;
    line-height: 1;
}
.brand-mark span { color: var(--accent); font-weight: 700; }
.search-box form { border-radius: 6px; background: var(--surface); border-color: var(--border); }
.search-box button { border-radius: 4px; background: var(--accent); color: #172014; }
.search-box button:hover { background: var(--accent-hover); }
.cat-nav { top: 72px; background: #191d1a; border-bottom-color: #303831; }
.cat-nav-inner { padding-top: 12px; padding-bottom: 12px; }
.cat-chip { border-radius: 4px; background: transparent; border-color: transparent; color: #aab4a8; padding: 8px 13px; }
.cat-chip:hover { color: var(--accent); background: var(--surface); border-color: var(--border); }
.cat-chip.active { color: #172014; background: var(--accent); border-color: var(--accent); }
.hero { padding-top: 34px; padding-bottom: 12px; }
.hero h1 { font-size: 52px; line-height: 1.03; letter-spacing: -1px; }
.hero h1 span { color: var(--accent); }
.hero .sub { max-width: 520px; font-size: 15px; }
.eyebrow { color: var(--pink); font-size: 11px; font-weight: 800; letter-spacing: 2px; margin-bottom: 10px; }
.section-head { margin-top: 28px; }
.section-head h2::before { border-radius: 0; background: var(--pink); }
.game-grid { gap: 12px; }
.game-card { border-radius: 6px; background: #262b28; border-color: #354037; }
.game-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.game-card-play { background: rgba(16, 20, 17, 0.65); }
.game-card-play .play-badge { width: 46px; height: 46px; background: var(--accent); box-shadow: 0 8px 18px rgba(197, 243, 74, 0.25); }
.game-card-play .play-badge svg { fill: #172014; }
.game-card-tag { border-radius: 3px; background: rgba(197, 243, 74, 0.12); color: var(--accent); }
.btn { border-radius: 4px; }
.btn-primary { background: var(--accent); color: #172014; }
.btn-primary:hover { background: var(--accent-hover); }
.ad-page-placement {
    min-height: 250px;
    max-width: 970px;
    margin: 16px auto 0;
    border: 1px solid #354037;
    border-radius: 4px;
    background: #1b201d;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.ad-kicker { color: #6f7a70; font-size: 9px; letter-spacing: 1.8px; margin-bottom: 5px; }
.gpt-slot-frame { width: 100%; min-height: 250px; display: flex; justify-content: center; align-items: center; }
.detail-layout { padding-top: 22px; }
.detail-hero, .detail-section, .sidebar-card { border-radius: 6px; background: #262b28; border-color: #354037; }
.detail-hero { padding: 22px; }
.detail-title { letter-spacing: -0.5px; }
.detail-section h3::before { border-radius: 0; background: var(--pink); }
.ad-detail-top { margin-top: 16px; }
.ad-detail-bottom { min-height: 250px; }
.site-footer { background: #191d1a; border-top-color: #303831; }
.footer-col h4 { color: var(--accent); }
.logo-text span { color: var(--accent); }

@media (max-width: 767px) {
    .header-inner { height: 60px; }
    .brand-mark { font-size: 16px; }
    .cat-nav { top: 60px; }
    .hero { padding-top: 28px; }
    .hero h1 { font-size: 34px; }
    .ad-page-placement { min-height: 250px; margin-top: 12px; }
    .gpt-slot-frame { min-height: 250px; }
    .detail-hero { padding: 16px; }
}

/* able.apus.pub: bright editorial palette */
:root {
    --bg: #f3efe8;
    --bg-deep: #fbfaf6;
    --surface: #ffffff;
    --surface-2: #e8f0ff;
    --surface-3: #dbe6f5;
    --border: #d9d6cd;
    --text: #1e2a3b;
    --text-2: #526176;
    --muted: #7b8594;
    --accent: #2d63d8;
    --accent-2: #1d4db7;
    --accent-hover: #4d7ee8;
    --pink: #ee8a4b;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 12px 28px rgba(30, 42, 59, .12);
}
body { background: var(--bg-deep); color: var(--text); }
.site-header { background: rgba(251, 250, 246, .96); border-bottom-color: var(--border); }
.brand-mark span, .logo-text span, .eyebrow { color: var(--pink); }
.search-box form, .game-card, .detail-hero, .detail-section, .sidebar-card { background: var(--surface); border-color: var(--border); }
.search-box form { border-radius: 10px; }
.search-box button, .btn-primary { background: var(--accent); color: #fff; }
.cat-nav { background: #fff; border-bottom-color: var(--border); }
.cat-chip { background: var(--surface-2); border-color: #c8d7ef; border-radius: 7px; color: var(--text-2); }
.cat-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.hero h1 span { color: var(--accent); }
.game-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.game-card-play .play-badge { background: var(--pink); color: #fff; }
.game-card-tag { background: #fff0e8; color: #c7642b; }
.ad-page-placement { background: #f6f4ef; border-color: var(--border); }
.site-footer { background: #eee9df; border-top-color: var(--border); }

@media (max-width: 767px) {
    .site-header { height: 58px; }
    .cat-nav { top: 58px; }
    .hero h1 { font-size: 34px; }
}
