/* =============================================
   PlayJoy - 森林自然风格 / Forest Nature Style
   颜色方案：
   - 背景：深绿渐变 #1A2F1A / #0D1A0D
   - 主色：森林绿 #2D5A27
   - 点缀：金色 #D4AF37 / 琥珀色 #CC8400
   - 文字：浅绿 #E8F5E9 / 白色 #FFFFFF
   - 辅助：苔藓绿 #4A7C59 / 棕色木纹 #5D4E37
   ============================================= */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    min-height: 100%;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(180deg, #1A2F1A 0%, #0D1A0D 100%);
    color: #E8F5E9;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ============= Page Wrapper ============= */
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.rg-page-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.rg-header-wrap {
    background: rgba(26, 47, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(74, 124, 89, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.rg-content-wrap {
    flex: 1;
    padding: 40px 0 80px;
}

.rg-section-decor {
    height: 4px;
    width: 48px;
    background: linear-gradient(90deg, #2D5A27, #D4AF37);
    border-radius: 2px;
    margin: 20px 0;
}

.rg-decor-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 124, 89, 0.5), transparent);
    margin: 32px 0;
}

/* ============= Header ============= */
.site-header {
    background: rgba(26, 47, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(74, 124, 89, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: #D4AF37;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.logo img {
    height: 34px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.1) drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
}

/* ============= Search - Forest style ============= */
.search-box {
    display: flex;
    align-items: center;
    background: rgba(45, 90, 39, 0.3);
    border: 2px solid transparent;
    border-radius: 14px;
    overflow: hidden;
    width: 100%;
    max-width: 520px;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
    background: rgba(45, 90, 39, 0.5);
    border-color: #D4AF37;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 20px;
    font-size: 15px;
    color: #E8F5E9;
    background: transparent;
    font-family: inherit;
}

.search-box input::placeholder {
    color: rgba(232, 245, 233, 0.5);
}

.search-box button {
    border: none;
    background: #D4AF37;
    color: #1A2F1A;
    width: 52px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    border-radius: 10px;
    margin: 4px;
    transition: background 0.2s, transform 0.1s;
}

.search-box button:hover {
    background: #CC8400;
}

.search-box button:active {
    transform: scale(0.95);
}

/* ============= Navigation - Pill buttons ============= */
.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 20px 18px;
    background: rgba(26, 47, 26, 0.95);
}

.main-nav a {
    display: inline-block;
    padding: 9px 20px;
    color: rgba(232, 245, 233, 0.7);
    font-weight: 600;
    font-size: 13px;
    border-radius: 100px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
    letter-spacing: -0.2px;
    border: none !important;
}

.main-nav a:hover {
    background: rgba(74, 124, 89, 0.3);
    color: #E8F5E9;
}

.main-nav a.active {
    background: #2D5A27;
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
}

.main-nav a::after {
    display: none !important;
}

/* ============= Main Content ============= */
.site-main {
    padding: 40px 0 80px;
}

/* ============= Section Header ============= */
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 28px;
    padding: 0 4px;
}

.section-title {
    font-size: 22px;
    font-weight: 800;
    color: #E8F5E9;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title .icon {
    font-size: 26px;
}

.view-all {
    color: #D4AF37;
    font-weight: 700;
    font-size: 14px;
    transition: color 0.2s;
}

.view-all:hover {
    color: #CC8400;
}

/* ============= Games Grid ============= */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ============= Game Card ============= */
.game-card {
    background: rgba(45, 90, 39, 0.2);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(74, 124, 89, 0.3);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(4px);
    box-shadow: 0 8px 30px rgba(45, 90, 39, 0.3);
    border-color: #D4AF37;
}

.game-card a {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.game-card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    background: rgba(45, 90, 39, 0.3);
    transition: transform 0.4s;
}

.game-card:hover img {
    transform: scale(1.04);
}

.game-card .game-title {
    position: static;
    padding: 14px 18px 18px;
    color: #E8F5E9;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
    background: rgba(45, 90, 39, 0.2);
    background-image: none;
    border-top: 1px solid rgba(74, 124, 89, 0.3);
}

/* ============= Load More Button ============= */
.load-more {
    text-align: center;
    margin-top: 48px;
}

.load-more button {
    background: transparent;
    color: #D4AF37;
    border: 2px solid #D4AF37;
    padding: 14px 56px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    letter-spacing: -0.2px;
}

.load-more button:hover {
    background: #D4AF37;
    color: #1A2F1A;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.load-more button:disabled {
    background: rgba(45, 90, 39, 0.3);
    color: rgba(232, 245, 233, 0.3);
    border-color: rgba(74, 124, 89, 0.3);
    cursor: not-allowed;
    box-shadow: none;
}

/* ============= Footer ============= */
.site-footer {
    background: rgba(13, 26, 13, 0.8);
    border-top: 1px solid rgba(74, 124, 89, 0.3);
    color: rgba(232, 245, 233, 0.7);
    padding: 48px 0;
}

.site-footer .page-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
}

.site-footer .footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}

.site-footer .footer-links a {
    font-weight: 600;
    font-size: 14px;
    color: rgba(232, 245, 233, 0.7);
    padding: 6px 0;
    border-radius: 0;
    transition: color 0.2s;
}

.site-footer .footer-links a:hover {
    color: #D4AF37;
    background: none;
}

.site-footer p {
    margin: 4px 0;
    font-size: 13px;
    color: rgba(232, 245, 233, 0.4);
}

/* ============= Back To Top ============= */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: rgba(45, 90, 39, 0.8);
    color: #D4AF37;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    z-index: 90;
    box-shadow: 0 2px 12px rgba(45, 90, 39, 0.3);
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: #D4AF37;
    color: #1A2F1A;
    border-color: #D4AF37;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

/* ============= Loading ============= */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 47, 26, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 100001;
    transition: opacity 0.3s;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #D4AF37;
    animation: bounce 0.6s infinite alternate;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.2s;
    background: #CC8400;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.4s;
    background: #D4AF37;
    opacity: 0.6;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-16px); }
}

/* ============= Category Title ============= */
.category-title {
    font-size: 36px;
    font-weight: 900;
    color: #E8F5E9;
    margin-bottom: 36px;
    text-align: left;
    letter-spacing: -1px;
    padding: 0 4px;
}

/* ============= No Results ============= */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: rgba(232, 245, 233, 0.4);
    font-size: 17px;
}

.no-results-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.4;
}

/* ============= About/Info Pages ============= */
.rg-info-wrapper {
    max-width: 860px;
    margin: 60px auto;
    padding: 0 20px;
}

.rg-info-box {
    background: rgba(45, 90, 39, 0.2);
    border: 1px solid rgba(74, 124, 89, 0.3);
    border-radius: 20px;
    padding: 52px 56px;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(232, 245, 233, 0.8);
    box-shadow: 0 4px 24px rgba(45, 90, 39, 0.2);
}

.rg-info-box h1 {
    font-size: 34px;
    font-weight: 900;
    color: #E8F5E9;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(74, 124, 89, 0.3);
    letter-spacing: -0.8px;
}

.rg-info-box h2 {
    font-size: 18px;
    font-weight: 800;
    color: #D4AF37;
    margin-top: 36px;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.rg-info-box p {
    margin-bottom: 16px;
}

.rg-info-box ul {
    margin: 0 0 16px 24px;
}

.rg-info-box ul li {
    margin-bottom: 10px;
    color: rgba(232, 245, 233, 0.9);
}

.rg-info-box a {
    color: #D4AF37;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    transition: color 0.2s, border-color 0.2s;
}

.rg-info-box a:hover {
    color: #CC8400;
    border-color: rgba(204, 132, 0, 0.4);
}

.rg-info-feature-list {
    list-style: none;
    padding: 0;
    margin: 28px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.rg-info-feature-list li {
    background: rgba(45, 90, 39, 0.3);
    border: 1px solid rgba(74, 124, 89, 0.3);
    border-radius: 14px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 600;
    color: #E8F5E9;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 0;
}

.rg-info-feature-list li:hover {
    border-color: #D4AF37;
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.15);
}

.rg-info-feature-list li .icon {
    font-size: 24px;
}

/* ============= Privacy/Legal Pages ============= */
.rg-legal-header {
    background: rgba(26, 47, 26, 0.95);
    border-bottom: 2px solid rgba(74, 124, 89, 0.3);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 6px rgba(45, 90, 39, 0.2);
}

.rg-legal-header-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.rg-legal-header a {
    color: rgba(232, 245, 233, 0.7);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color .2s;
}

.rg-legal-header a:hover { color: #D4AF37; }

.rg-legal-header .rg-tag {
    background: rgba(45, 90, 39, 0.5);
    color: #D4AF37;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
}

.rg-legal-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 52px 24px 80px;
}

.rg-legal-page-header {
    text-align: center;
    margin-bottom: 48px;
    padding-bottom: 36px;
    border-bottom: 2px dashed rgba(74, 124, 89, 0.3);
}

.rg-legal-page-header .rg-icon {
    font-size: 56px;
    display: block;
    margin-bottom: 12px;
}

.rg-legal-page-header h1 {
    font-size: 36px;
    font-weight: 400;
    color: #E8F5E9;
    letter-spacing: -.02em;
    margin-bottom: 8px;
}

.rg-legal-page-header .rg-date {
    font-size: 13px;
    color: rgba(232, 245, 233, 0.4);
}

.rg-legal-block {
    background: rgba(45, 90, 39, 0.2);
    border: 1px solid rgba(74, 124, 89, 0.3);
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 22px;
    box-shadow: 0 2px 10px rgba(45, 90, 39, 0.1);
    transition: box-shadow .2s;
}

.rg-legal-block:hover {
    box-shadow: 0 4px 18px rgba(45, 90, 39, 0.2);
}

.rg-legal-block h2 {
    font-size: 18px;
    font-weight: 600;
    color: #D4AF37;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(74, 124, 89, 0.3);
    letter-spacing: -.01em;
}

.rg-legal-block p {
    color: rgba(232, 245, 233, 0.8);
    margin-bottom: 12px;
}

.rg-legal-block ul {
    list-style: none;
    padding: 0;
}

.rg-legal-block ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: rgba(232, 245, 233, 0.8);
}

.rg-legal-block ul li::before {
    content: '❖';
    position: absolute;
    left: 0;
    top: 1px;
    color: #D4AF37;
    font-size: 12px;
}

.rg-legal-block a {
    color: #D4AF37;
    text-decoration: none;
    border-bottom: 1px dotted #D4AF37;
    transition: .2s;
}

.rg-legal-block a:hover {
    color: #CC8400;
    border-bottom-style: solid;
}

.rg-legal-notice {
    background: rgba(204, 132, 0, 0.1);
    border: 1px solid rgba(204, 132, 0, 0.3);
    border-radius: 10px;
    padding: 18px 24px;
    margin: 16px 0 30px;
    font-size: 14px;
    color: rgba(212, 175, 55, 0.9);
}

.rg-legal-notice strong { color: #D4AF37; }

.rg-legal-footer {
    text-align: center;
    padding: 32px 24px;
    background: rgba(13, 26, 13, 0.8);
    border-top: 2px solid rgba(74, 124, 89, 0.3);
    color: rgba(232, 245, 233, 0.4);
    font-size: 13px;
}

.rg-legal-footer a {
    color: rgba(232, 245, 233, 0.7);
    text-decoration: none;
    margin: 0 14px;
    transition: color .2s;
}

.rg-legal-footer a:hover { color: #D4AF37; }

/* =================================================================
   DETAIL PAGE
   ================================================================= */

.game {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 32px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.game-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: none;
    background: rgba(26, 47, 26, 0.6) !important;
    border: 1px solid rgba(74, 124, 89, 0.4) !important;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(45, 90, 39, 0.3);
}

.game-preview-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px;
    text-align: center;
    z-index: 2;
    background: rgba(13, 26, 13, 0.5);
}

.game-preview-icon {
    position: relative;
    display: inline-block;
}

.game-preview-icon img {
    width: 140px;
    height: 140px;
    border-radius: 24px;
    object-fit: cover;
    border: 3px solid rgba(212, 175, 55, 0.5) !important;
    box-shadow: 0 10px 40px rgba(45, 90, 39, 0.4);
}

.game-preview-title {
    color: #FFFFFF !important;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.5px;
    max-width: 90%;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(45, 90, 39, 0.5);
}

.play-game-btn {
    border: none;
    background: #D4AF37 !important;
    color: #1A2F1A !important;
    font-size: 16px;
    font-weight: 800;
    padding: 16px 60px;
    border-radius: 100px;
    cursor: pointer;
    letter-spacing: -0.2px;
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.4);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.play-game-btn:hover {
    background: #CC8400 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(204, 132, 0, 0.5);
}

.game-iframe-wrap {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
}

.game-iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.game-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(26, 47, 26, 0.95) !important;
    color: #D4AF37 !important;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    box-shadow: 0 2px 12px rgba(45, 90, 39, 0.4);
    transition: background 0.2s;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
}

.game-close-btn:hover {
    background: #D4AF37 !important;
    color: #1A2F1A !important;
}

.game-actions-bar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: none;
    margin: 0;
    padding: 0;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(45, 90, 39, 0.4) !important;
    border: 1px solid rgba(74, 124, 89, 0.5) !important;
    border-radius: 14px;
    padding: 18px 28px;
    font-size: 16px;
    font-weight: 700;
    color: #FFFFFF !important;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    letter-spacing: -0.2px;
}

.action-btn:hover {
    background: rgba(45, 90, 39, 0.6) !important;
    border-color: #D4AF37 !important;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.2);
}

.action-btn .icon {
    font-size: 20px;
}

.game-intro {
    background: rgba(26, 47, 26, 0.5) !important;
    border: 1px solid rgba(74, 124, 89, 0.4) !important;
    border-radius: 14px;
    padding: 28px 32px;
    max-width: none;
    margin: 0;
}

.game-intro h2 {
    font-size: 20px;
    font-weight: 800;
    color: #FFFFFF !important;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.game-intro p {
    font-size: 15px;
    color: rgba(232, 245, 233, 0.9) !important;
    line-height: 1.8;
}

.game-detail-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.install-btn {
    display: none;
}

.game .game-actions-bar + .game-intro {
    margin-top: 0;
}

.game > .similar-games-section {
    grid-column: 1 / -1;
    margin-top: 40px;
    max-width: none;
    padding: 0;
}

.similar-games-section {
    max-width: 1200px;
    margin: 56px auto 0;
    padding: 0 32px;
}

.similar-games-section .section-title {
    font-size: 22px;
    font-weight: 800;
    color: #E8F5E9;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.similar-games-section .section-title .icon {
    font-size: 26px;
}

.similar-games-scroll-wrap {
    position: relative;
}

.similar-games-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 4px 24px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #D4AF37 transparent;
}

.similar-games-scroll::-webkit-scrollbar {
    height: 6px;
}

.similar-games-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.similar-games-scroll::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 10px;
}

.similar-games-scroll::-webkit-scrollbar-thumb:hover {
    background: #CC8400;
}

.similar-game-card {
    flex: 0 0 auto;
    width: 170px;
    background: rgba(45, 90, 39, 0.2);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(74, 124, 89, 0.3);
    transition: transform 0.25s, box-shadow 0.25s;
}

.similar-game-card:hover {
    transform: translateY(4px);
    box-shadow: 0 8px 28px rgba(45, 90, 39, 0.3);
    border-color: #D4AF37;
}

.similar-game-card a {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.similar-game-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: rgba(45, 90, 39, 0.3);
    transition: transform 0.3s;
}

.similar-game-card:hover img {
    transform: scale(1.03);
}

.similar-game-card .game-title {
    position: static;
    padding: 10px 12px 14px;
    color: #E8F5E9;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(45, 90, 39, 0.2);
    background-image: none;
    border-top: 1px solid rgba(74, 124, 89, 0.3);
}

/* ============= Fullscreen Game ============= */
.app-module {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 99999;
}

.app-module iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

.app-module .game-close-btn {
    position: fixed;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(26, 47, 26, 0.9);
    color: #D4AF37;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1100px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .game {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

@media (max-width: 900px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .page-wrapper {
        padding: 0 20px;
    }

    .header-top {
        padding: 16px 20px;
    }

    .category-title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .game {
        padding: 28px 20px 60px;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-wrap: wrap;
        gap: 14px;
    }

    .search-box {
        order: 3;
        max-width: 100%;
        margin-top: 2px;
    }

    .main-nav {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 8px 12px 14px;
        gap: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .main-nav a {
        font-size: 12px;
        padding: 8px 14px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .game-card {
        border-radius: 12px;
    }

    .game-card .game-title {
        font-size: 13px;
        padding: 10px 12px 14px;
    }

    .section-title {
        font-size: 18px;
    }

    .game {
        grid-template-columns: 1fr;
        padding: 20px 16px 40px;
    }

    .game-preview {
        border-radius: 14px;
    }

    .game-preview-icon img {
        width: 100px;
        height: 100px;
    }

    .game-preview-title {
        font-size: 20px;
    }

    .play-game-btn {
        font-size: 14px;
        padding: 12px 40px;
    }

    .action-btn {
        font-size: 14px;
        padding: 14px 20px;
    }

    .game-intro {
        padding: 20px;
    }

    .similar-games-section {
        padding: 0 20px;
        margin-top: 40px;
    }

    .similar-game-card {
        width: 145px;
    }

    .site-footer .page-wrapper {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .site-footer .footer-links {
        align-items: center;
    }

    .rg-info-box {
        padding: 32px 24px;
        border-radius: 14px;
    }

    .rg-info-box h1 {
        font-size: 24px;
    }

    .rg-info-feature-list {
        grid-template-columns: 1fr;
    }

    .rg-legal-page-header h1 { font-size: 26px; }
    .rg-legal-block { padding: 20px 18px; }
    .rg-legal-wrap { padding: 32px 16px 60px; }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .logo {
        font-size: 18px;
    }

    .logo img {
        height: 28px;
    }

    .search-box input {
        padding: 12px 16px;
        font-size: 14px;
    }

    .search-box button {
        width: 42px;
        height: 38px;
    }

    .game-card {
        border-radius: 10px;
    }

    .game-card img {
        aspect-ratio: 4 / 3;
    }

    .game-card .game-title {
        font-size: 12px;
        padding: 8px 10px 12px;
    }

    .category-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .load-more button {
        padding: 12px 40px;
        font-size: 14px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .game {
        padding: 14px 12px 32px;
        gap: 20px;
    }

    .game-preview {
        border-radius: 12px;
        aspect-ratio: auto;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .game-preview-inner {
        position: static;
        gap: 8px;
        padding: 8px 0 0;
    }

    .game-preview-icon img {
        width: 150px;
        height: 150px;
        border-radius: 24px;
    }

    .play-game-btn {
        position: absolute;
        left: 50%;
        bottom: 8px;
        transform: translateX(-50%);
        font-size: 13px;
        padding: 8px 28px;
    }

    .install-btn {
        position: absolute;
        top: -6px;
        right: -6px;
        width: 38px;
        height: 38px;
        border: none;
        border-radius: 50%;
        background: #D4AF37;
        color: #1A2F1A;
        font-size: 24px;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
        box-shadow: 0 3px 12px rgba(212, 175, 55, 0.3);
        transition: transform 0.2s;
        z-index: 5;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .install-btn:hover {
        transform: scale(1.08);
    }

    .game-preview-title {
        font-size: 20px;
        margin-top: 4px;
        color: #E8F5E9;
    }

    .game-actions-bar {
        margin-top: 0;
    }

    .action-btn {
        font-size: 13px;
        padding: 12px 16px;
    }

    .game-intro {
        padding: 16px;
        border-radius: 12px;
    }

    .game-intro h2 {
        font-size: 16px;
        color: #E8F5E9;
    }

    .game-intro p {
        font-size: 13px;
        color: rgba(232, 245, 233, 0.8);
    }

    .similar-games-section {
        padding: 0 12px;
        margin-top: 32px;
    }

    .similar-games-section .section-title {
        font-size: 16px;
        color: #E8F5E9;
    }

    .similar-games-scroll {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        overflow-x: visible;
        padding: 0;
    }

    .similar-game-card {
        width: 100%;
    }

    .similar-game-card .game-title {
        font-size: 11px;
        padding: 6px 8px 10px;
    }
}