*, *::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, #F0F9F4 0%, #FAFCF9 30%, #F6FBF8 100%);
    color: #2d3b34;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.rg-page-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.rg-header-wrap {
    background: linear-gradient(180deg, #ffffff 0%, #F6FBF8 100%);
    position: relative;
}

.rg-content-wrap {
    flex: 1;
    padding-bottom: 40px;
}

.rg-footer-wrap {
    background: linear-gradient(180deg, #F6FBF8 0%, #ffffff 100%);
}

.rg-decor-line {
    height: 3px;
    background: linear-gradient(90deg, transparent, #B8E8D0 20%, #E8B4A8 50%, #B8E8D0 80%, transparent);
}

.rg-section-wrap {
    margin-bottom: 56px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(184, 232, 208, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(184, 232, 208, 0.08);
}

.rg-section-decor {
    height: 4px;
    background: linear-gradient(90deg, #E8F5EE 0%, #B8E8D0 30%, #E8B4A8 50%, #B8E8D0 70%, #E8F5EE 100%);
    margin-bottom: 24px;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(184, 232, 208, 0.2);
}

.rg-category-title-wrap {
    margin-bottom: 40px;
}

.rg-category-title-wrap .rg-section-decor {
    margin-bottom: 20px;
}

.rg-load-more-wrap {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.rg-footer-text {
    text-align: right;
}

.rg-hero-banner {
    background: linear-gradient(135deg, #F0F9F4 0%, #FAFCF9 50%, #F6FBF8 100%);
    padding: 56px 0 48px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.rg-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #E8B4A8, #B8E8D0, #E8B4A8);
}

.rg-hero-inner {
    text-align: center;
    position: relative;
}

.rg-hero-decoration {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.rg-hero-decoration-bottom {
    margin-top: 20px;
    margin-bottom: 0;
}

.rg-dot {
    width: 16px;
    height: 16px;
    background: #B8E8D0;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 12px rgba(184, 232, 208, 0.5);
}

.rg-dot:nth-child(2) {
    background: #E8B4A8;
    animation-delay: 0.3s;
    box-shadow: 0 0 12px rgba(232, 180, 168, 0.5);
}

.rg-dot:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

.rg-hero-title {
    font-size: 48px;
    font-weight: 900;
    color: #2d3b34;
    margin-bottom: 12px;
    letter-spacing: -2px;
    text-shadow: 0 2px 12px rgba(184, 232, 208, 0.3);
}

.rg-hero-subtitle {
    font-size: 18px;
    color: #6B8A7A;
    font-weight: 500;
    letter-spacing: -0.3px;
}

.rg-section-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.rg-section-icon-wrap {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #B8E8D0 0%, #E8B4A8 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(184, 232, 208, 0.3);
    flex-shrink: 0;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.rg-section-emoji {
    font-size: 28px;
}

.rg-footer-decoration {
    text-align: center;
    margin-bottom: 24px;
    font-size: 28px;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.rg-footer-flower {
    animation: sway 3s ease-in-out infinite;
}

.rg-footer-flower:nth-child(2) {
    animation-delay: 0.5s;
}

.rg-footer-flower:nth-child(3) {
    animation-delay: 1s;
}

@keyframes sway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

@media (max-width: 768px) {
    .rg-footer-text {
        text-align: center;
        margin-top: 12px;
    }

    .rg-hero-title {
        font-size: 32px;
    }

    .rg-hero-subtitle {
        font-size: 15px;
    }

    .rg-hero-banner {
        padding: 36px 0 32px;
    }

    .rg-section-icon-wrap {
        width: 44px;
        height: 44px;
    }

    .rg-section-emoji {
        font-size: 24px;
    }
}

.site-header {
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 16px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 900;
    color: #3A6B5A;
    letter-spacing: -1px;
    flex-shrink: 0;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #B8E8D0, #E8B4A8);
    border-radius: 2px;
}

.logo img {
    height: 42px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(184, 232, 208, 0.3));
}

.search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 3px solid #B8E8D0;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    max-width: 560px;
    transition: border-color 0.25s, box-shadow 0.25s;
    box-shadow: 0 4px 16px rgba(184, 232, 208, 0.2);
}

.search-box:focus-within {
    border-color: #E8B4A8;
    box-shadow: 0 0 0 6px rgba(232, 180, 168, 0.15), 0 4px 20px rgba(232, 180, 168, 0.2);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px 24px;
    font-size: 16px;
    color: #2d3b34;
    background: transparent;
    font-family: inherit;
}

.search-box input::placeholder {
    color: #9AB8AA;
}

.search-box button {
    border: none;
    background: linear-gradient(135deg, #B8E8D0 0%, #9AD8BE 100%);
    color: #2d3b34;
    width: 60px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    border-radius: 14px;
    margin: 4px;
    transition: all 0.25s;
    box-shadow: 0 2px 8px rgba(184, 232, 208, 0.3);
}

.search-box button:hover {
    background: linear-gradient(135deg, #E8B4A8 0%, #D49A8C 100%);
    transform: scale(1.05);
}

.search-box button:active {
    transform: scale(0.95);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 24px 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.main-nav a {
    display: inline-block;
    padding: 12px 26px;
    color: #4A7C6A;
    font-weight: 700;
    font-size: 14px;
    border-radius: 100px;
    transition: all 0.3s;
    white-space: nowrap;
    letter-spacing: -0.2px;
    border: 2px solid transparent;
    background: #F0F9F4;
    position: relative;
    overflow: hidden;
}

.main-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(184, 232, 208, 0.3), transparent);
    transition: left 0.5s;
}

.main-nav a:hover::before {
    left: 100%;
}

.main-nav a:hover {
    background: #E8F5EE;
    color: #3A6B5A;
    border-color: #B8E8D0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(184, 232, 208, 0.2);
}

.main-nav a.active {
    background: linear-gradient(135deg, #B8E8D0 0%, #9AD8BE 100%);
    color: #2d3b34;
    border-color: #B8E8D0;
    box-shadow: 0 4px 16px rgba(184, 232, 208, 0.3);
}

.main-nav a::after {
    display: none !important;
}

.site-main {
    padding: 56px 0 80px;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 32px;
    padding: 0 4px;
}

.section-title {
    font-size: 28px;
    font-weight: 900;
    color: #2d3b34;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #E8B4A8, #B8E8D0);
    border-radius: 2px;
}

.section-title .icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(184, 232, 208, 0.3));
}

.view-all {
    color: #E8B4A8;
    font-weight: 800;
    font-size: 15px;
    transition: all 0.25s;
    position: relative;
    padding: 8px 16px;
    border-radius: 100px;
}

.view-all:hover {
    color: #D49A8C;
    background: #FFF0EC;
    transform: translateY(-2px);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.game-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid #E8F5EE;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    box-shadow: 0 8px 32px rgba(184, 232, 208, 0.12);
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #E8B4A8, #B8E8D0, #E8B4A8);
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(184, 232, 208, 0.25);
    border-color: #B8E8D0;
}

.game-card:hover::before {
    opacity: 1;
}

.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: linear-gradient(135deg, #F6FBF8 0%, #F0F9F4 100%);
    transition: transform 0.5s;
}

.game-card:hover img {
    transform: scale(1.08);
}

.game-card .game-title {
    position: static;
    padding: 18px 20px 22px;
    color: #2d3b34;
    font-size: 16px;
    font-weight: 800;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.3px;
    background: #ffffff;
    background-image: none;
    border-top: 2px solid #F0F9F4;
    position: relative;
}

.game-card .game-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #B8E8D0, #E8B4A8);
    border-radius: 0 2px 2px 0;
}

.load-more {
    text-align: center;
    margin-top: 48px;
}

.load-more button {
    background: linear-gradient(135deg, #ffffff 0%, #F6FBF8 100%);
    color: #4A7C6A;
    border: 3px solid #B8E8D0;
    padding: 18px 72px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    letter-spacing: -0.2px;
    box-shadow: 0 4px 16px rgba(184, 232, 208, 0.15);
}

.load-more button:hover {
    background: linear-gradient(135deg, #B8E8D0 0%, #9AD8BE 100%);
    color: #2d3b34;
    box-shadow: 0 8px 24px rgba(184, 232, 208, 0.35);
    transform: translateY(-3px);
}

.load-more button:disabled {
    background: #F6FBF8;
    color: #9AB8AA;
    border-color: #E8F5EE;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.site-footer {
    background: transparent;
    color: #6B8A7A;
    padding: 56px 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: 12px;
    margin-bottom: 0;
}

.site-footer .footer-links a {
    font-weight: 700;
    font-size: 15px;
    color: #4A7C6A;
    padding: 10px 16px;
    border-radius: 10px;
    transition: all 0.25s;
    display: inline-block;
}

.site-footer .footer-links a:hover {
    color: #E8B4A8;
    background: #F0F9F4;
    transform: translateX(4px);
}

.site-footer p {
    margin: 6px 0;
    font-size: 14px;
    color: #9AB8AA;
}

.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ffffff 0%, #F6FBF8 100%);
    color: #B8E8D0;
    border: 3px solid #B8E8D0;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 800;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 90;
    box-shadow: 0 8px 24px rgba(184, 232, 208, 0.25);
}

.back-to-top.show {
    display: flex;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.back-to-top:hover {
    background: linear-gradient(135deg, #B8E8D0 0%, #9AD8BE 100%);
    color: #2d3b34;
    border-color: #B8E8D0;
    box-shadow: 0 12px 32px rgba(184, 232, 208, 0.4);
    transform: translateY(-4px);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #F0F9F4 0%, #FAFCF9 50%, #F6FBF8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 100001;
    transition: opacity 0.3s;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #B8E8D0;
    animation: bounce 0.6s infinite alternate;
    box-shadow: 0 4px 12px rgba(184, 232, 208, 0.4);
}

.loading-dot:nth-child(2) {
    animation-delay: 0.2s;
    background: #E8B4A8;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.4s;
    background: #9AD8BE;
}

@keyframes bounce {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(-24px) scale(1.1); }
}

.category-title {
    font-size: 44px;
    font-weight: 900;
    color: #2d3b34;
    margin-bottom: 40px;
    text-align: left;
    letter-spacing: -2px;
    padding: 0 4px;
    position: relative;
    line-height: 1.1;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100px;
    height: 6px;
    background: linear-gradient(90deg, #E8B4A8, #B8E8D0);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(184, 232, 208, 0.3);
}

.rg-category-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.rg-category-emoji {
    font-size: 48px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.no-results {
    text-align: center;
    padding: 100px 20px;
    color: #9AB8AA;
    font-size: 18px;
}

.no-results-icon {
    font-size: 80px;
    margin-bottom: 24px;
    opacity: 0.5;
}

.game {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.game-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: none;
    background: linear-gradient(135deg, #F6FBF8 0%, #F0F9F4 100%);
    border: 3px solid #B8E8D0;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(184, 232, 208, 0.2);
}

.game-preview-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 32px;
    text-align: center;
    z-index: 2;
}

.game-preview-icon {
    position: relative;
    display: inline-block;
}

.game-preview-icon img {
    width: 140px;
    height: 140px;
    border-radius: 28px;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 12px 40px rgba(184, 232, 208, 0.25);
    transition: transform 0.3s;
}

.game-preview-icon:hover img {
    transform: scale(1.05);
}

.game-preview-title {
    color: #2d3b34;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -1px;
    max-width: 90%;
    line-height: 1.2;
}

.play-game-btn {
    border: none;
    background: linear-gradient(135deg, #B8E8D0 0%, #9AD8BE 100%);
    color: #2d3b34;
    font-size: 18px;
    font-weight: 800;
    padding: 18px 64px;
    border-radius: 100px;
    cursor: pointer;
    letter-spacing: -0.3px;
    box-shadow: 0 8px 28px rgba(184, 232, 208, 0.4);
    transition: all 0.3s;
}

.play-game-btn:hover {
    background: linear-gradient(135deg, #E8B4A8 0%, #D49A8C 100%);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(232, 180, 168, 0.4);
}

.game-iframe-wrap {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: #000;
    border-radius: 25px;
    overflow: hidden;
}

.game-iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.game-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    color: #2d3b34;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.25s;
    border: 2px solid #E8F5EE;
}

.game-close-btn:hover {
    background: #E8B4A8;
    color: #ffffff;
    border-color: #E8B4A8;
    transform: scale(1.1);
}

.game-actions-bar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: none;
    margin: 0;
    padding: 0;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #ffffff;
    border: 2px solid #E8F5EE;
    border-radius: 18px;
    padding: 20px 28px;
    font-size: 16px;
    font-weight: 700;
    color: #4A7C6A;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    letter-spacing: -0.2px;
    box-shadow: 0 4px 16px rgba(184, 232, 208, 0.1);
}

.action-btn:hover {
    background: #F0F9F4;
    border-color: #B8E8D0;
    box-shadow: 0 8px 24px rgba(184, 232, 208, 0.2);
    transform: translateY(-2px);
    color: #3A6B5A;
}

.action-btn .icon {
    font-size: 22px;
}

.game-intro {
    background: #ffffff;
    border: 2px solid #E8F5EE;
    border-radius: 20px;
    padding: 32px;
    max-width: none;
    margin: 0;
    box-shadow: 0 4px 16px rgba(184, 232, 208, 0.08);
}

.game-intro h2 {
    font-size: 20px;
    font-weight: 900;
    color: #2d3b34;
    margin-bottom: 16px;
    letter-spacing: -0.4px;
    position: relative;
    padding-left: 16px;
}

.game-intro h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #E8B4A8, #B8E8D0);
    border-radius: 2px;
}

.game-intro p {
    font-size: 15px;
    color: #6B8A7A;
    line-height: 1.8;
}

.game-detail-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.install-btn {
    display: none;
}

.game .game-actions-bar + .game-intro {
    margin-top: 0;
}

.game > .similar-games-section {
    grid-column: 1 / -1;
    margin-top: 56px;
    max-width: none;
    padding: 0;
}

.similar-games-section {
    max-width: 1200px;
    margin: 64px auto 0;
    padding: 0 24px;
}

.similar-games-section .section-title {
    font-size: 26px;
    font-weight: 900;
    color: #2d3b34;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.similar-games-section .section-title .icon {
    font-size: 30px;
}

.similar-games-scroll-wrap {
    position: relative;
}

.similar-games-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 12px 4px 28px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #B8E8D0 transparent;
}

.similar-games-scroll::-webkit-scrollbar {
    height: 8px;
}

.similar-games-scroll::-webkit-scrollbar-track {
    background: #F0F9F4;
    border-radius: 10px;
}

.similar-games-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #B8E8D0, #E8B4A8);
    border-radius: 10px;
}

.similar-games-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #9AD8BE, #D49A8C);
}

.similar-game-card {
    flex: 0 0 auto;
    width: 180px;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid #E8F5EE;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(184, 232, 208, 0.08);
}

.similar-game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(184, 232, 208, 0.2);
    border-color: #B8E8D0;
}

.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: linear-gradient(135deg, #F6FBF8 0%, #F0F9F4 100%);
    transition: transform 0.4s;
}

.similar-game-card:hover img {
    transform: scale(1.05);
}

.similar-game-card .game-title {
    position: static;
    padding: 14px 16px 18px;
    color: #2d3b34;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #ffffff;
    background-image: none;
    border-top: 2px solid #F0F9F4;
}

.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: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    color: #2d3b34;
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #E8F5EE;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.app-module .game-close-btn:hover {
    background: #E8B4A8;
    color: #ffffff;
    border-color: #E8B4A8;
}

@media (max-width: 1100px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .game {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 900px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .page-wrapper {
        padding: 0 20px;
    }

    .header-top {
        padding: 20px 20px 12px;
    }

    .category-title {
        font-size: 36px;
        margin-bottom: 32px;
    }

    .game {
        padding: 40px 20px 60px;
    }

    .rg-section-wrap {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-wrap: wrap;
        gap: 16px;
    }

    .search-box {
        order: 3;
        max-width: 100%;
        margin-top: 4px;
    }

    .main-nav {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 12px 16px 16px;
        gap: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .main-nav a {
        font-size: 13px;
        padding: 10px 20px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .game-card {
        border-radius: 16px;
    }

    .game-card .game-title {
        font-size: 14px;
        padding: 14px 16px 18px;
    }

    .section-title {
        font-size: 22px;
    }

    .game {
        grid-template-columns: 1fr;
        padding: 28px 16px 48px;
    }

    .game-preview {
        border-radius: 20px;
    }

    .game-preview-icon img {
        width: 120px;
        height: 120px;
    }

    .game-preview-title {
        font-size: 24px;
    }

    .play-game-btn {
        font-size: 16px;
        padding: 14px 48px;
    }

    .action-btn {
        font-size: 14px;
        padding: 16px 24px;
    }

    .game-intro {
        padding: 24px;
    }

    .similar-games-section {
        padding: 0 20px;
        margin-top: 48px;
    }

    .similar-game-card {
        width: 150px;
    }

    .site-footer .page-wrapper {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .site-footer .footer-links {
        align-items: center;
    }

    .back-to-top {
        width: 48px;
        height: 48px;
        bottom: 32px;
        right: 32px;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .logo {
        font-size: 22px;
    }

    .logo img {
        height: 32px;
    }

    .search-box input {
        padding: 14px 18px;
        font-size: 14px;
    }

    .search-box button {
        width: 50px;
        height: 44px;
    }

    .game-card {
        border-radius: 14px;
    }

    .game-card img {
        aspect-ratio: 4 / 3;
    }

    .game-card .game-title {
        font-size: 13px;
        padding: 10px 12px 14px;
    }

    .category-title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .load-more button {
        padding: 14px 48px;
        font-size: 14px;
    }

    .back-to-top {
        bottom: 24px;
        right: 24px;
        width: 44px;
        height: 44px;
    }

    .game {
        padding: 20px 12px 40px;
        gap: 24px;
    }

    .game-preview {
        border-radius: 16px;
        aspect-ratio: auto;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .game-preview-inner {
        position: static;
        gap: 12px;
        padding: 12px 0 0;
    }

    .game-preview-icon img {
        width: 160px;
        height: 160px;
        border-radius: 28px;
    }

    .play-game-btn {
        position: absolute;
        left: 50%;
        bottom: 8px;
        transform: translateX(-50%);
        font-size: 14px;
        padding: 10px 32px;
    }

    .install-btn {
        position: absolute;
        top: -8px;
        right: -8px;
        width: 44px;
        height: 44px;
        border: none;
        border-radius: 50%;
        background: linear-gradient(135deg, #B8E8D0 0%, #9AD8BE 100%);
        color: #2d3b34;
        font-size: 28px;
        font-weight: 800;
        line-height: 1;
        cursor: pointer;
        box-shadow: 0 4px 16px rgba(184, 232, 208, 0.4);
        transition: transform 0.25s;
        z-index: 5;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .install-btn:hover {
        transform: scale(1.1);
    }

    .game-preview-title {
        font-size: 22px;
        margin-top: 4px;
        color: #2d3b34;
    }

    .game-actions-bar {
        margin-top: 0;
    }

    .action-btn {
        font-size: 13px;
        padding: 14px 20px;
    }

    .game-intro {
        padding: 20px;
        border-radius: 16px;
    }

    .game-intro h2 {
        font-size: 16px;
        color: #2d3b34;
    }

    .game-intro p {
        font-size: 14px;
        color: #6B8A7A;
    }

    .similar-games-section {
        padding: 0 12px;
        margin-top: 40px;
    }

    .similar-games-section .section-title {
        font-size: 18px;
        color: #2d3b34;
    }

    .similar-games-scroll {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        overflow-x: visible;
        padding: 0;
    }

    .similar-game-card {
        width: 100%;
    }

    .similar-game-card .game-title {
        font-size: 12px;
        padding: 8px 10px 12px;
    }
}