/* ============================================
   Hegep Game Portal - Core Styles
   Colorful Vibrant Theme: Cream + Coral + Multi-color
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --hgp-primary: #FF6B35;
    --hgp-primary-dark: #E55A2B;
    --hgp-primary-light: #FF8F65;
    --hgp-primary-bg: rgba(255, 107, 53, 0.08);
    --hgp-gradient: linear-gradient(135deg, #FF6B35, #E91E8C);
    --hgp-gradient-r: linear-gradient(135deg, #E91E8C, #FF6B35);
    --hgp-accent: #E91E8C;
    --hgp-accent-light: #FF5CAD;
    --hgp-accent-gradient: linear-gradient(135deg, #E91E8C, #7B2FF7);
    --hgp-teal: #00C9A7;
    --hgp-teal-light: #3DDBC4;
    --hgp-yellow: #FFD23F;
    --hgp-yellow-light: #FFE066;
    --hgp-sky: #4CC9F0;
    --hgp-sky-light: #7DD8F4;
    --hgp-purple: #7B2FF7;
    --hgp-purple-light: #9D5CFA;
    --hgp-bg: #FFFBF0;
    --hgp-bg-white: #ffffff;
    --hgp-bg-section: #FFF5E6;
    --hgp-bg-hover: #FFF0DB;
    --hgp-text: #2D3436;
    --hgp-text-secondary: #636E72;
    --hgp-text-muted: #B2BEC3;
    --hgp-border: #F0E6D3;
    --hgp-border-light: #F8F0E3;
    --hgp-card: #ffffff;
    --hgp-shadow-sm: 0 1px 3px rgba(45,52,54,0.06);
    --hgp-shadow: 0 2px 8px rgba(255,107,53,0.08), 0 4px 16px rgba(45,52,54,0.06);
    --hgp-shadow-md: 0 4px 12px rgba(255,107,53,0.1), 0 8px 28px rgba(45,52,54,0.08);
    --hgp-shadow-hover: 0 8px 24px rgba(255,107,53,0.18), 0 16px 48px rgba(45,52,54,0.1);
    --hgp-radius: 16px;
    --hgp-radius-sm: 12px;
    --hgp-radius-lg: 20px;
    --hgp-radius-xl: 28px;
    --hgp-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --hgp-max-width: 1320px;
    --hgp-header-height: 66px;
    --hgp-rainbow: linear-gradient(90deg, #FF6B35, #FFD23F, #00C9A7, #4CC9F0, #7B2FF7, #E91E8C);
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: "Nunito", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--hgp-text);
    background: var(--hgp-bg);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: var(--hgp-transition); }
img { max-width: 100%; height: auto; display: block; border: 0; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* === Container === */
.hgp-container { width: 100%; max-width: var(--hgp-max-width); margin: 0 auto; padding: 0 28px; }

/* === Header - White + Rainbow Bottom Bar === */
.hgp-header {
    width: 100%;
    background: #fff;
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 12px rgba(45,52,54,0.06);
}
.hgp-header::after {
    content: ""; position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px; background: var(--hgp-rainbow);
}

.hgp-navbar {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--hgp-header-height);
    max-width: var(--hgp-max-width); margin: 0 auto; padding: 0 28px;
}

.hgp-nav-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.hgp-nav-logo {
    width: 42px; height: 42px; border-radius: 50%;
    object-fit: cover; border: 2.5px solid var(--hgp-primary);
    box-shadow: 0 2px 8px rgba(255,107,53,0.2);
}
.hgp-nav-title {
    color: var(--hgp-primary); font-size: 1.6rem; font-weight: 900;
    letter-spacing: -0.5px;
}
.hgp-nav-title-accent { background: var(--hgp-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.hgp-nav-toggle {
    display: none; width: 42px; height: 42px;
    align-items: center; justify-content: center;
    background: var(--hgp-bg-section); border-radius: 12px;
    transition: var(--hgp-transition);
}
.hgp-nav-toggle:hover { background: var(--hgp-bg-hover); }
.hgp-nav-toggle-icon { width: 20px; height: 2.5px; background: var(--hgp-text); position: relative; transition: var(--hgp-transition); border-radius: 2px; }
.hgp-nav-toggle-icon::before, .hgp-nav-toggle-icon::after { content: ""; position: absolute; width: 20px; height: 2.5px; background: var(--hgp-text); left: 0; transition: var(--hgp-transition); border-radius: 2px; }
.hgp-nav-toggle-icon::before { top: -6px; }
.hgp-nav-toggle-icon::after { top: 6px; }

.hgp-nav-menu { display: flex; align-items: center; gap: 4px; }
.hgp-nav-link {
    display: block; padding: 8px 14px; color: var(--hgp-text-secondary);
    font-size: 0.87rem; font-weight: 700; border-radius: 10px;
    transition: var(--hgp-transition); white-space: nowrap; position: relative;
}
.hgp-nav-link::after {
    content: ""; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--hgp-primary); opacity: 0; transition: opacity 0.25s ease;
}
.hgp-nav-link:hover { color: var(--hgp-primary); background: var(--hgp-bg-hover); }
.hgp-nav-link:hover::after { opacity: 1; }
.hgp-nav-link.is-active { color: var(--hgp-primary); }
.hgp-nav-link.is-active::after { opacity: 1; }

/* === Main === */
.hgp-main { padding: 28px 0 64px; min-height: calc(100vh - var(--hgp-header-height) - 200px); }
.hgp-section { margin-bottom: 44px; }

.hgp-section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 22px;
}
.hgp-section-title {
    color: var(--hgp-text); font-size: 1.35rem; font-weight: 900;
    position: relative; padding-left: 22px; letter-spacing: -0.01em;
}
.hgp-section-title::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--hgp-gradient);
}
.hgp-section-more {
    display: inline-flex; align-items: center; gap: 6px;
    color: #fff; font-size: 0.82rem; font-weight: 700;
    padding: 8px 20px; border-radius: 24px;
    background: var(--hgp-gradient); transition: var(--hgp-transition);
    box-shadow: 0 2px 8px rgba(255,107,53,0.2);
}
.hgp-section-more:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(255,107,53,0.35); }

/* === Game Grid === */
.hgp-game-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.hgp-game-grid--compact { grid-template-columns: repeat(5, 1fr); gap: 16px; }

/* Game Card - White + Colorful Top Border + Fun Shadow */
.hgp-game-card {
    background: var(--hgp-card); border-radius: var(--hgp-radius);
    overflow: hidden; box-shadow: var(--hgp-shadow);
    transition: var(--hgp-transition); display: flex; flex-direction: column;
    border-top: 3px solid var(--hgp-primary);
}
.hgp-game-card:hover { transform: translateY(-8px); box-shadow: var(--hgp-shadow-hover); }

.hgp-game-thumb {
    position: relative; width: 100%; aspect-ratio: 3/4; overflow: hidden;
    background: linear-gradient(135deg, #FFF0DB, #FFE8F5);
}
.hgp-game-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.hgp-game-card:hover .hgp-game-thumb img { transform: scale(1.08); }
.hgp-game-thumb-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 50%);
    pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
}
.hgp-game-card:hover .hgp-game-thumb-overlay { opacity: 1; }

.hgp-game-meta {
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 6px;
}
.hgp-game-tag {
    color: #fff; font-size: 0.68rem; font-weight: 800;
    padding: 4px 12px; border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    text-transform: uppercase; letter-spacing: 0.4px;
}
.hgp-tag-boys { background: linear-gradient(135deg, #4CC9F0, #3AA8D8); }
.hgp-tag-girls { background: linear-gradient(135deg, #E91E8C, #C4176F); }
.hgp-tag-puzzle { background: linear-gradient(135deg, #00C9A7, #00A88A); }
.hgp-tag-sports { background: linear-gradient(135deg, #FFD23F, #F0B830); color: #2D3436; }
.hgp-tag-strategy { background: linear-gradient(135deg, #7B2FF7, #6320D8); }
.hgp-tag-casual { background: linear-gradient(135deg, #FF6B35, #E55A2B); }
.hgp-tag-best { background: linear-gradient(135deg, #FFD23F, #FF6B35); color: #2D3436; }
.hgp-tag-beauty { background: linear-gradient(135deg, #E91E8C, #7B2FF7); }
.hgp-tag-popular { background: linear-gradient(135deg, #FF6B35, #E91E8C); }

.hgp-game-mark {
    background: rgba(0,0,0,0.06); color: var(--hgp-primary);
    font-size: 0.72rem; font-weight: 800; padding: 4px 10px;
    border-radius: 12px;
}

.hgp-game-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.hgp-game-name {
    color: var(--hgp-text); font-size: 0.88rem; font-weight: 800;
    line-height: 1.35; margin-bottom: 4px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    text-overflow: ellipsis; min-height: 2.4em;
}
.hgp-game-desc {
    color: var(--hgp-text-muted); font-size: 0.74rem; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.hgp-game-card--cover .hgp-game-body { display: none; }
.hgp-game-card--cover .hgp-game-thumb { aspect-ratio: 3/4; }
.hgp-game-card--compact { border-radius: var(--hgp-radius-sm); }
.hgp-game-card--compact .hgp-game-thumb { aspect-ratio: 3/4; }
.hgp-game-card--compact .hgp-game-name { font-size: 0.8rem; min-height: auto; -webkit-line-clamp: 1; }

/* === Channel Page === */
.hgp-channel-header {
    display: flex; align-items: center; gap: 18px;
    padding: 24px 28px; background: var(--hgp-gradient);
    border-radius: var(--hgp-radius-lg); margin-bottom: 28px;
    color: #fff; box-shadow: var(--hgp-shadow-md);
}
.hgp-channel-icon { width: 48px; height: 48px; object-fit: contain; filter: brightness(0) invert(1); }
.hgp-channel-title { color: #fff; font-size: 1.4rem; font-weight: 900; }

/* === Game Detail === */
.hgp-game-detail { padding: 24px 0; margin-bottom: 28px; }
.hgp-game-detail-main {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
    background: var(--hgp-card); border-radius: var(--hgp-radius-lg);
    padding: 28px; box-shadow: var(--hgp-shadow-md); margin-bottom: 28px;
    border-top: 4px solid var(--hgp-primary);
}
.hgp-game-detail-cover { width: 100%; max-width: 440px; aspect-ratio: 3/4; border-radius: var(--hgp-radius); overflow: hidden; box-shadow: var(--hgp-shadow-md); }
.hgp-game-detail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hgp-game-detail-meta { display: flex; flex-direction: column; justify-content: center; }
.hgp-game-detail-title { font-size: 1.7rem; font-weight: 900; color: var(--hgp-text); margin-bottom: 14px; line-height: 1.25; }
.hgp-game-detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.hgp-tag {
    display: inline-block; background: var(--hgp-primary-bg); color: var(--hgp-primary);
    padding: 6px 16px; border-radius: 20px; font-size: 0.78rem; font-weight: 700;
    border: 1.5px solid rgba(255,107,53,0.2);
}
.hgp-tag--date { background: rgba(0,201,167,0.08); color: var(--hgp-teal); border-color: rgba(0,201,167,0.2); }
.hgp-game-detail-desc { color: var(--hgp-text-secondary); font-size: 0.94rem; line-height: 1.8; margin-bottom: 22px; }

.hgp-play-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 40px; background: var(--hgp-primary); color: #fff;
    font-size: 1rem; font-weight: 800; border-radius: 32px;
    box-shadow: 0 4px 16px rgba(255,107,53,0.35); transition: var(--hgp-transition);
    width: fit-content; text-transform: uppercase; letter-spacing: 0.5px;
}
.hgp-play-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(255,107,53,0.45); background: var(--hgp-primary-dark); }

/* Game Section Content */
.hgp-game-section {
    background: var(--hgp-card); border-radius: var(--hgp-radius);
    padding: 28px; margin-bottom: 22px; box-shadow: var(--hgp-shadow);
}
.hgp-game-section-title {
    font-size: 1.15rem; font-weight: 800; color: var(--hgp-text);
    margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--hgp-border);
    position: relative;
}
.hgp-game-section-title::after {
    content: ""; position: absolute; bottom: -2px; left: 0;
    width: 60px; height: 3px; background: var(--hgp-gradient); border-radius: 2px;
}
.hgp-game-section-content { color: var(--hgp-text-secondary); font-size: 0.94rem; line-height: 1.8; }
.hgp-game-section-content p { margin-bottom: 12px; }
.hgp-game-section-content ul, .hgp-game-section-content ol { padding-left: 22px; margin-bottom: 12px; }
.hgp-game-section-content li { margin-bottom: 6px; list-style: disc; }
.hgp-game-section-content ol li { list-style: decimal; }
.hgp-game-section-content strong { color: var(--hgp-primary); }

.hgp-section { background: transparent; }
.hgp-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; padding-bottom: 0; border-bottom: none; }

/* === Footer - Dark Charcoal === */
.hgp-footer { background: #2D3436; color: rgba(255,255,255,0.7); padding: 52px 0 28px; margin-top: 64px; }
.hgp-footer-inner { max-width: var(--hgp-max-width); margin: 0 auto; padding: 0 28px; }
.hgp-footer-grid { display: grid; grid-template-columns: 2.5fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 36px; }
.hgp-footer-brand { display: flex; flex-direction: column; gap: 14px; }
.hgp-footer-brand-name { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 1.3rem; font-weight: 900; }
.hgp-footer-brand-name img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--hgp-primary); }
.hgp-footer-brand-desc { color: rgba(255,255,255,0.5); font-size: 0.85rem; line-height: 1.65; }
.hgp-footer-col-title { color: var(--hgp-primary); font-size: 0.85rem; font-weight: 800; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1.2px; }
.hgp-footer-links { display: flex; flex-direction: column; gap: 10px; }
.hgp-footer-links a { color: rgba(255,255,255,0.55); font-size: 0.84rem; transition: var(--hgp-transition); }
.hgp-footer-links a:hover { color: var(--hgp-yellow); padding-left: 4px; }
.hgp-footer-bottom { text-align: center; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.4); font-size: 0.8rem; line-height: 1.6; }
.hgp-footer-bottom a { color: var(--hgp-primary-light); }
.hgp-footer-bottom a:hover { color: var(--hgp-yellow); }

/* === Article (Legal, FAQ) === */
.hgp-article {
    max-width: 840px; margin: 0 auto; background: var(--hgp-card);
    border-radius: var(--hgp-radius-lg); padding: 40px;
    box-shadow: var(--hgp-shadow-md); border-top: 4px solid var(--hgp-primary);
}
.hgp-article h1 { font-size: 1.75rem; color: var(--hgp-text); margin-bottom: 18px; padding-bottom: 16px; border-bottom: 3px solid transparent; border-image: var(--hgp-gradient); border-image-slice: 1; font-weight: 900; }
.hgp-article h2 { font-size: 1.2rem; color: var(--hgp-text); margin: 28px 0 12px; padding-left: 16px; border-left: 4px solid var(--hgp-primary); font-weight: 800; }
.hgp-article h3 { font-size: 1.04rem; color: var(--hgp-text); margin: 20px 0 8px; font-weight: 700; }
.hgp-article p { color: var(--hgp-text-secondary); font-size: 0.94rem; line-height: 1.85; margin-bottom: 14px; }
.hgp-article ul, .hgp-article ol { padding-left: 24px; margin-bottom: 14px; }
.hgp-article li { font-size: 0.94rem; line-height: 1.7; margin-bottom: 6px; list-style: disc; color: var(--hgp-text-secondary); }
.hgp-article ol li { list-style: decimal; }
.hgp-article a { color: var(--hgp-primary); text-decoration: underline; }
.hgp-article a:hover { color: var(--hgp-primary-dark); }
.hgp-article strong { color: var(--hgp-text); }
.hgp-article .hgp-article-date { color: var(--hgp-text-muted); font-size: 0.82rem; margin-bottom: 20px; }
.hgp-article .hgp-contact-email {
    display: inline-block; background: var(--hgp-primary-bg); color: var(--hgp-primary);
    padding: 10px 20px; border-radius: 12px; font-weight: 700; margin: 8px 0 14px;
    border: 1.5px dashed rgba(255,107,53,0.3); font-size: 0.9rem;
}

/* FAQ */
.hgp-faq-item { border: 1.5px solid var(--hgp-border); border-radius: var(--hgp-radius-sm); margin-bottom: 10px; overflow: hidden; transition: var(--hgp-transition); }
.hgp-faq-item:hover { border-color: var(--hgp-primary-light); }
.hgp-faq-question {
    width: 100%; padding: 16px 20px; background: var(--hgp-bg-section);
    color: var(--hgp-text); font-size: 0.94rem; font-weight: 700; text-align: left;
    display: flex; align-items: center; justify-content: space-between; transition: var(--hgp-transition);
}
.hgp-faq-question:hover { background: var(--hgp-bg-hover); }
.hgp-faq-question::after { content: "+"; font-size: 1.4rem; color: var(--hgp-primary); transition: transform 0.3s; font-weight: 400; }
.hgp-faq-item.is-open .hgp-faq-question::after { transform: rotate(45deg); }
.hgp-faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.hgp-faq-item.is-open .hgp-faq-answer { max-height: 600px; }
.hgp-faq-answer-inner { padding: 18px 20px; color: var(--hgp-text-secondary); font-size: 0.9rem; line-height: 1.8; background: var(--hgp-card); }

/* === Back to Top === */
.hgp-back-top { position: fixed; right: 24px; bottom: 76px; display: none; flex-direction: column; gap: 10px; z-index: 50; }
.hgp-back-top.is-visible { display: flex; }
.hgp-back-btn {
    width: 44px; height: 44px; background: var(--hgp-primary);
    border: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(255,107,53,0.3); transition: var(--hgp-transition);
}
.hgp-back-btn:hover { background: var(--hgp-primary-dark); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(255,107,53,0.4); }
.hgp-back-btn img { width: 18px; height: 18px; filter: brightness(0) invert(1); }

/* === Iframe (play page) === */
.hgp-iframe-wrap { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #000; z-index: 9999; }
.hgp-iframe-wrap iframe, .hgp-iframe-wrap .game { display: block; width: 100%; height: 100%; border: 0; overflow: hidden; }
.hgp-iframe-back {
    position: fixed; top: 14px; left: 14px; width: 46px; height: 46px;
    background: var(--hgp-primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10000; transition: var(--hgp-transition);
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}
.hgp-iframe-back:hover { background: var(--hgp-primary-dark); transform: scale(1.1); }
.hgp-iframe-back img { width: 20px; height: 20px; }

/* === Responsive - Tablet === */
@media (max-width: 1024px) {
    .hgp-game-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
    .hgp-game-detail-main { grid-template-columns: 1fr; }
    .hgp-game-detail-cover { max-width: 100%; margin: 0 auto; }
    .hgp-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* === Responsive - Mobile === */
@media (max-width: 640px) {
    :root { --hgp-header-height: 58px; }
    .hgp-container { padding: 0 16px; }
    .hgp-navbar { padding: 0 16px; }
    .hgp-nav-title { font-size: 1.25rem; }
    .hgp-nav-logo { width: 36px; height: 36px; }
    .hgp-nav-toggle { display: flex; }
    .hgp-nav-menu {
        display: none; position: absolute; top: var(--hgp-header-height);
        right: 0; left: 0;
        flex-direction: row; flex-wrap: wrap;
        background: #fff; box-shadow: 0 8px 24px rgba(45,52,54,0.1);
        padding: 12px; border-bottom: 3px solid transparent;
        border-image: var(--hgp-rainbow); border-image-slice: 1;
        gap: 8px;
    }
    .hgp-nav-menu.is-open { display: flex; }
    .hgp-nav-link {
        color: var(--hgp-text-secondary); padding: 12px 0; border-radius: 12px;
        font-size: 0.85rem; text-align: center;
        width: calc(33.333% - 6px); background: var(--hgp-bg-section);
        font-weight: 700;
    }
    .hgp-nav-link:hover, .hgp-nav-link.is-active { background: var(--hgp-bg-hover); color: var(--hgp-primary); }
    .hgp-nav-link::after { display: none; }
    .hgp-game-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hgp-game-grid--compact { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .hgp-game-body { padding: 10px 12px 12px; }
    .hgp-game-name { font-size: 0.78rem; min-height: 2em; }
    .hgp-game-desc { display: none; }
    .hgp-game-tag { font-size: 0.6rem; padding: 3px 8px; }
    .hgp-section-title { font-size: 1.05rem; }
    .hgp-section-more { font-size: 0.75rem; padding: 6px 14px; }
    .hgp-game-detail-main { grid-template-columns: 1fr; padding: 0; gap: 0; }
    .hgp-game-detail-cover { max-width: 100%; border-radius: var(--hgp-radius-lg) var(--hgp-radius-lg) 0 0; aspect-ratio: 3/4; }
    .hgp-game-detail-meta { padding: 16px 18px 20px; }
    .hgp-game-detail-title { font-size: 1.2rem; }
    .hgp-play-btn { width: 100%; max-width: none; padding: 14px 28px; font-size: 0.94rem; }
    .hgp-article { padding: 22px; }
    .hgp-article h1 { font-size: 1.3rem; }
    .hgp-article h2 { font-size: 1.05rem; }
    .hgp-article p, .hgp-article li { font-size: 0.86rem; }
    .hgp-section { margin-bottom: 28px; }
    .hgp-footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .hgp-back-top { right: 14px; bottom: 66px; }
    .hgp-back-btn { width: 40px; height: 40px; }
}

/* === Game Rating === */
.hgp-rating { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.hgp-rating-label { font-size: 0.85rem; font-weight: 700; color: var(--hgp-text-secondary); }
.hgp-rating-stars { display: flex; gap: 3px; }
.hgp-rating-star {
    width: 28px; height: 28px; cursor: pointer;
    background: none; border: none; padding: 0;
    font-size: 1.5rem; line-height: 1; color: var(--hgp-border);
    transition: color 0.2s, transform 0.2s;
}
.hgp-rating-star:hover, .hgp-rating-star.is-active { color: var(--hgp-yellow); transform: scale(1.15); }
.hgp-rating-star.is-active { color: var(--hgp-yellow); }
.hgp-rating-avg { font-size: 0.82rem; color: var(--hgp-text-muted); }
.hgp-rating-thanks { font-size: 0.82rem; color: var(--hgp-teal); font-weight: 700; display: none; }
.hgp-rating-thanks.is-visible { display: inline; }

/* === Ad Placeholder === */
.hgp-ad-slot {
    background: var(--hgp-bg-section); border: 1.5px dashed var(--hgp-border);
    border-radius: var(--hgp-radius-sm); padding: 20px;
    text-align: center; color: var(--hgp-text-muted);
    font-size: 0.78rem; font-weight: 600;
    margin: 24px 0; min-height: 90px;
    display: flex; align-items: center; justify-content: center;
}
.hgp-ad-slot--banner { min-height: 250px; max-width: 728px; margin: 24px auto; }
.hgp-ad-slot--sidebar { min-height: 600px; max-width: 300px; }

/* === Animations === */
@keyframes hgp-fade-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.hgp-fade-in { animation: hgp-fade-in 0.5s ease-out; }
