/* AppMoneyOnline game page styles. Palette: navy #0F1B3D, green #6DBE45, gray #F3F5F9, orange #FF8A3D, slate #1B2438. */

.amo-game-page { max-width: 1100px; margin: 0 auto; padding: 0 16px 48px; }
.amo-breadcrumbs { font-size: 14px; color: #6b7280; margin: 16px 0 8px; }
.amo-breadcrumbs a { color: #6DBE45; text-decoration: none; }
.amo-breadcrumbs a:hover { text-decoration: underline; }

.amo-game-title { font-family: 'Poppins', 'Nunito', sans-serif; font-size: 30px; line-height: 1.2; color: #1B2438; margin: 0 0 6px; }
.amo-game-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: #6b7280; margin-bottom: 16px; }
.amo-game-meta a { color: #6DBE45; text-decoration: none; }
.amo-game-meta a:hover { text-decoration: underline; }

/* Player stage: thumbnail + Play button, iframe only after click. */
.amo-game-stage { position: relative; background: #0F1B3D; border-radius: 16px; overflow: hidden; }
.amo-game-stage.landscape { aspect-ratio: 16 / 9; }
.amo-game-stage.portrait { aspect-ratio: 9 / 16; max-width: 480px; margin: 0 auto; }
.amo-game-thumb { position: absolute; inset: 0; }
.amo-game-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.amo-game-thumb::after { content: ''; position: absolute; inset: 0; background: rgba(15, 27, 61, .45); }
.amo-play-button { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; display: flex; align-items: center; gap: 10px; background: #6DBE45; color: #fff; border: 0; border-radius: 999px; padding: 14px 28px; font-size: 18px; font-weight: 600; font-family: 'Poppins', 'Nunito', sans-serif; cursor: pointer; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); }
.amo-play-button:hover { background: #5cab3a; }
.amo-play-button .amo-play-icon { font-size: 20px; line-height: 1; }
.amo-game-frame { display: none; position: absolute; inset: 0; }
.amo-game-frame iframe { width: 100%; height: 100%; border: 0; display: block; background: #0F1B3D; }

/* Toolbar under the player. */
.amo-game-toolbar { display: none; gap: 10px; margin: 12px 0 20px; }
.amo-game-toolbar button, .amo-game-toolbar a { display: inline-flex; align-items: center; gap: 6px; background: #F3F5F9; color: #1B2438; border: 1px solid #e2e8f0; border-radius: 999px; padding: 8px 16px; font-size: 14px; cursor: pointer; text-decoration: none; }
.amo-game-toolbar button:hover, .amo-game-toolbar a:hover { background: #e8edf3; }

/* Ad slots: fixed size, labelled, outside the game frame. */
.amo-ad-slot { background: #F3F5F9; border: 1px dashed #cbd5e1; border-radius: 12px; text-align: center; padding: 18px 12px; margin: 24px 0; color: #94a3b8; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.amo-ad-slot.leaderboard { min-height: 90px; }

/* Detail grid (About / listing facts). */
.amo-game-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 20px 0; }
.amo-detail { background: #F3F5F9; border-radius: 12px; padding: 12px 14px; }
.amo-detail dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; margin-bottom: 2px; }
.amo-detail dd { margin: 0; font-size: 15px; color: #1B2438; }
.amo-detail dd a { color: #6DBE45; text-decoration: none; }
.amo-detail dd a:hover { text-decoration: underline; }

.amo-game-body h2 { font-family: 'Poppins', 'Nunito', sans-serif; color: #1B2438; font-size: 22px; margin: 28px 0 10px; }
.amo-game-body p, .amo-game-body li { color: #1B2438; line-height: 1.65; }
.amo-game-body ul { padding-left: 20px; }

/* Related grids. */
.amo-related { margin-top: 36px; }
.amo-related h2 { font-family: 'Poppins', 'Nunito', sans-serif; color: #1B2438; font-size: 22px; margin-bottom: 14px; }
.amo-game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.amo-game-card { background: #fff; border: 1px solid #e8edf3; border-radius: 14px; overflow: hidden; text-decoration: none; display: block; }
.amo-game-card:hover { border-color: #6DBE45; }
.amo-game-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.amo-game-card .amo-card-title { padding: 10px 12px; font-size: 14px; font-weight: 600; color: #1B2438; }
.amo-game-card .amo-card-cat { padding: 0 12px 10px; font-size: 12px; color: #6b7280; }
.amo-badge-new { display: inline-block; background: #FF8A3D; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }

/* Archive / category pages. */
.amo-archive-head { max-width: 1100px; margin: 0 auto; padding: 8px 16px 0; }
.amo-archive-head h1 { font-family: 'Poppins', 'Nunito', sans-serif; color: #1B2438; font-size: 30px; margin: 12px 0 6px; }
.amo-archive-head .amo-archive-intro { color: #1B2438; line-height: 1.65; max-width: 760px; }
.amo-archive-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 20px; }
.amo-archive-filters select, .amo-archive-filters input[type="search"] { border: 1px solid #cbd5e1; border-radius: 999px; padding: 9px 14px; font-size: 14px; background: #fff; color: #1B2438; }
.amo-archive-filters button { background: #6DBE45; color: #fff; border: 0; border-radius: 999px; padding: 9px 20px; font-size: 14px; cursor: pointer; }
.amo-archive-grid { max-width: 1100px; margin: 0 auto; padding: 0 16px 48px; }
.amo-cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; max-width: 1100px; margin: 0 auto 32px; padding: 0 16px; }
.amo-cat-tile { background: #0F1B3D; color: #fff; border-radius: 14px; padding: 18px 14px; text-decoration: none; }
.amo-cat-tile:hover { background: #16264f; }
.amo-cat-tile .amo-cat-name { font-family: 'Poppins', 'Nunito', sans-serif; font-weight: 600; font-size: 16px; }
.amo-cat-tile .amo-cat-count { font-size: 13px; color: #9fb3d9; margin-top: 4px; }
.amo-pagination { margin: 24px 0 8px; text-align: center; }
.amo-pagination a, .amo-pagination span { display: inline-block; padding: 8px 13px; margin: 0 3px; border: 1px solid #e2e8f0; border-radius: 8px; color: #1B2438; text-decoration: none; font-size: 14px; }
.amo-pagination .current { background: #6DBE45; border-color: #6DBE45; color: #fff; }

@media (max-width: 600px) {
    .amo-game-title { font-size: 24px; }
    .amo-play-button { padding: 12px 22px; font-size: 16px; }
    .amo-game-stage.portrait { max-width: 100%; }
}

/* Home page (shortcode [amo_home]). */
.amo-home { max-width: 1100px; margin: 0 auto; padding: 0 16px 48px; }
.amo-hero { background: #0F1B3D; border-radius: 20px; padding: 44px 28px 32px; text-align: center; margin: 20px 0 28px; }
.amo-hero h1 { font-family: 'Poppins', 'Nunito', sans-serif; color: #fff; font-size: 34px; line-height: 1.2; margin: 0 0 10px; }
.amo-hero-tag { color: #c7d2e8; font-size: 17px; margin: 0 0 22px; }
.amo-hero-search { display: flex; max-width: 560px; margin: 0 auto 20px; }
.amo-hero-search input[type="search"] { flex: 1; border: 0; border-radius: 999px 0 0 999px; padding: 13px 20px; font-size: 16px; color: #1B2438; }
.amo-hero-search button { background: #6DBE45; color: #fff; border: 0; border-radius: 0 999px 999px 0; padding: 13px 26px; font-size: 16px; font-weight: 600; cursor: pointer; }
.amo-hero-search button:hover { background: #5cab3a; }
.amo-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.amo-hero-chips a { background: rgba(255, 255, 255, .12); color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 13px; text-decoration: none; }
.amo-hero-chips a:hover { background: #6DBE45; }
.amo-home-section { margin-bottom: 32px; }
.amo-home-section h2 { font-family: 'Poppins', 'Nunito', sans-serif; color: #1B2438; font-size: 22px; margin: 0 0 14px; }

@media (max-width: 600px) {
    .amo-hero { padding: 32px 18px 24px; }
    .amo-hero h1 { font-size: 26px; }
}
