/* ========================================
   Google Fonts - Noto Sans
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Sans+KR:wght@300;400;500;700&family=Noto+Sans+SC:wght@300;400;500;700&family=Noto+Sans:wght@300;400;500;700&display=swap');

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --primary-bg: #15191F;
    --secondary-bg: #1a1f27;
    --card-bg: #1e2530;
    --accent-gold: #d4a641;
    --accent-gold-light: #f5d78e;
    --text-primary: #ffffff;
    --text-secondary: #8a9bb4;
    --text-muted: #5a6b7f;
    --border-color: #2a3444;
    --gradient-blue: linear-gradient(180deg, #1a3f6f 0%, #15191F 100%);
    --gradient-gold: linear-gradient(90deg, #d4a641 0%, #f5d78e 50%, #d4a641 100%);
    --shadow-glow: 0 0 30px rgba(212, 166, 65, 0.3);
    
    /* Feature card colors */
    --secure-gradient: linear-gradient(135deg, #1a4a4a 0%, #0a2a2a 100%);
    --variety-gradient: linear-gradient(135deg, #2a3a5a 0%, #1a2a4a 100%);
    --winning-gradient: linear-gradient(135deg, #3a3a5a 0%, #2a2a4a 100%);
    --responsible-gradient: linear-gradient(135deg, #5a4a2a 0%, #3a3a1a 100%);
}

/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans", "Noto Sans KR", "Noto Sans JP", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    background: #15191F;
    color: #ffffff;
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(21, 25, 31, 0.98) 0%, rgba(21, 25, 31, 0.95) 100%);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-content {
    display: flex;
    flex-direction: column;
}

.nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    display: none;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.logo-img {
    display: block;
    height: 36px;
    width: auto;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-login {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: var(--accent-gold);
    color: var(--primary-bg);
}

.btn-signup {
    padding: 8px 20px;
    background: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    color: var(--primary-bg);
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-signup:hover {
    background: var(--accent-gold-light);
    border-color: var(--accent-gold-light);
}

/* User Info Bar (Logged In State) */
.user-info-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    flex-shrink: 0;
    white-space: nowrap;
}

.user-account {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-id {
    color: #fff;
    font-weight: 500;
}

.user-level {
    color: #d4a641;
    font-size: 13px;
}

.user-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #888;
}

.user-stats strong {
    color: #fff;
}

.user-stats .points {
    color: #e74c3c;
}

.user-actions {
    display: flex;
    gap: 8px;
}

.btn-myinfo {
    padding: 6px 15px;
    background: #3a7bd5;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-myinfo:hover {
    background: #2a6bc5;
}

.btn-logout {
    padding: 6px 15px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: #c0392b;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.lang-btn .flag {
    font-size: 16px;
}

.lang-btn i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.language-selector:hover .lang-btn i {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.language-selector:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.lang-dropdown a:hover {
    background: rgba(212, 166, 65, 0.1);
    color: var(--accent-gold);
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    padding: 0;
    background: none;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Desktop Navigation Menu */
.desktop-menu {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    padding: 10px 0 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.desktop-menu li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.desktop-menu li a img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.desktop-menu li a:hover,
.desktop-menu li a.active {
    color: var(--accent-gold);
    background: rgba(212, 166, 65, 0.1);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: #1a1f27;
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-header h5 {
    font-size: 18px;
    font-weight: 700;
}

.close-menu {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 16px;
}

.mobile-menu-content {
    padding: 20px;
}

.mobile-auth-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.mobile-auth-buttons .btn-login,
.mobile-auth-buttons .btn-signup {
    flex: 1;
    padding: 12px;
    text-align: center;
}

/* Mobile User Info (Logged In State) */
.mobile-user-info {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.mobile-user-info .user-account {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
}

.mobile-user-info .user-id {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.mobile-user-info .user-level {
    color: var(--accent-gold);
    font-size: 12px;
}

.mobile-user-info .user-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 12px;
    font-size: 13px;
    color: #aaa;
}

.mobile-user-info .user-stats strong {
    color: #fff;
}

.mobile-user-info .user-stats .points {
    color: #e74c3c;
}

.mobile-user-info .user-actions {
    display: flex;
    gap: 10px;
}

.mobile-user-info .btn-myinfo,
.mobile-user-info .btn-logout {
    flex: 1;
    padding: 10px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-user-info .btn-myinfo {
    background: #3a7bd5;
    color: #fff;
    border: none;
}

.mobile-user-info .btn-logout {
    background: #e74c3c;
    color: #fff;
    border: none;
}

.mobile-nav-menu li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    font-size: 15px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.mobile-nav-menu li a img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.mobile-nav-menu li a:hover {
    color: var(--accent-gold);
}

/* ========================================
   Main Banner
   ======================================== */
.main-banner {
    margin-top: 120px;
    width: 100%;
    height: 400px;
    background-image: url('1 Homepage/Homepage_Img/Main_Bingo25_Banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ========================================
   Popular Games Section
   ======================================== */
.popular-games {
    padding: 50px 0;
    background: #15191F;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.title-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 25px;
    background: linear-gradient(90deg, rgba(212, 166, 65, 0.2) 0%, transparent 100%);
    border-radius: 0 25px 25px 0;
    border-left: 3px solid var(--accent-gold);
}

.title-badge img {
    width: 24px;
    height: 24px;
}

.title-badge span {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.view-more {
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.view-more:hover {
    background: rgba(212, 166, 65, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.game-card {
    background: #1e2530;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.game-image {
    position: relative;
    width: 100%;
    aspect-ratio: 277 / 180;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.05);
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon-overlay span {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}

.game-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
}

.game-title {
    font-size: 16px;
    font-weight: 500;
}

.btn-play {
    padding: 8px 18px;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 5px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-play:hover:not(.disabled) {
    background: var(--accent-gold);
    color: var(--primary-bg);
}

.btn-play.disabled {
    border-color: var(--text-muted);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* ========================================
   Why Play Section
   ======================================== */
.why-play {
    position: relative;
    padding: 80px 0 60px;
    background: linear-gradient(180deg, #15191F 0%, #1a3050 50%, #15191F 100%);
    overflow: hidden;
}

.benefits-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
    z-index: 1;
}

.why-play .container {
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 50px;
    line-height: 1.8;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}


.feature-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-card.secure {
    background: var(--secure-gradient);
}

.feature-card.variety {
    background: var(--variety-gradient);
}

.feature-card.winning {
    background: var(--winning-gradient);
}

.feature-card.responsible {
    background: var(--responsible-gradient);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text span {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

/* CTA Section */
.cta-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 40px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    gap: 30px;
}

.cta-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.cta-text .highlight {
    color: var(--accent-gold);
    font-weight: 700;
}

.btn-join {
    flex-shrink: 0;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-join:hover {
    background: var(--accent-gold);
    color: var(--primary-bg);
}

/* ========================================
   How to Play Section
   ======================================== */
.how-to-play {
    padding: 80px 0;
    background: #15191F;
}

.section-title.gold {
    color: var(--accent-gold);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.step-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px 25px;
    background: linear-gradient(135deg, #1a3a5a 0%, #15191F 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.step-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-gold);
}

.step-text {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-section {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, #15191F 0%, #1a1f27 100%);
}

.faq-header {
    margin-bottom: 40px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.faq-item {
    padding: 25px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.faq-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: #1a1f27;
    padding-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.footer-left {
    flex: 1;
    max-width: 550px;
}

.footer-right {
    display: flex;
    gap: 40px;
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-title .highlight {
    color: var(--accent-gold);
}

.footer-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-desc-small {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

.payment-section,
.contact-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-badge {
    position: relative;
    display: inline-block;
    padding: 12px 30px 12px 20px;
    background: linear-gradient(90deg, #1e5a9a 0%, #2a7bc8 100%);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
}

.payment-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.payment-icons img {
    height: 28px;
    width: auto;
}

.contact-info {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--accent-gold);
    transition: color 0.3s ease;
    text-decoration: underline;
}

.footer-bottom a:hover {
    color: var(--accent-gold-light);
}

/* Footer Responsive */
@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-right {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-right {
        gap: 25px;
    }
    
    .footer-badge {
        padding: 10px 25px 10px 15px;
        font-size: 13px;
    }
}

/* ========================================
   Modals
   ======================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: #1a1f27;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
}

.signup-modal {
    max-width: 500px;
}

.modal-logo {
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.modal-subtitle {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

.modal-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(212, 166, 65, 0.05);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-submit {
    flex: 1;
    padding: 14px;
    background: var(--accent-gold);
    border: none;
    border-radius: 8px;
    color: var(--primary-bg);
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--accent-gold-light);
}

.btn-cancel {
    flex: 1;
    padding: 14px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    border-color: var(--text-secondary);
}

.form-link {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-link a {
    color: var(--accent-gold);
    font-weight: 700;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Desktop */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet */
@media (max-width: 992px) {
    .desktop-only {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .desktop-menu {
        display: none !important;
    }
    
    .main-banner {
        margin-top: 60px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .step-card {
        width: 100%;
        max-width: none;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section {
        flex-direction: column;
        text-align: center;
    }
    
    /* Show text logo, hide image logo on tablet/mobile */
    .logo-text {
        display: block !important;
    }
    
    .logo-img {
        display: none !important;
    }
    
    /* Games grid - 1 column on tablet/mobile */
    .games-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px;
    }
    
    .games-grid .game-card {
        width: 100%;
        max-width: none;
    }
    
    /* Section header - keep inline layout */
    .section-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    /* Hide login/signup buttons in nav-right on tablet */
    .nav-right .auth-buttons {
        display: none;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-top {
        padding: 12px 0;
    }
    
    .user-info-bar {
        display: none;
    }
    
    .main-banner {
        margin-top: 60px;
        height: 250px;
        background-position: center;
    }
    
    /* Game cards - single column, full width */
    .games-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .games-grid .game-card {
        width: 100%;
    }
    
    /* Features - vertical stack on mobile like original */
    .features-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 40px;
    }
    
    .features-grid .feature-card {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 25px 20px;
        gap: 20px;
        width: 100%;
        border-radius: 12px;
    }
    
    .features-grid .feature-card:nth-child(1) {
        background: linear-gradient(135deg, #1a3a2a 0%, #0d1f17 100%);
        border: 1px solid rgba(76, 175, 80, 0.3);
    }
    
    .features-grid .feature-card:nth-child(2) {
        background: linear-gradient(135deg, #1e2530 0%, #151a22 100%);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .features-grid .feature-card:nth-child(3) {
        background: linear-gradient(135deg, #3a3520 0%, #252010 100%);
        border: 1px solid rgba(212, 166, 65, 0.3);
    }
    
    .features-grid .feature-card:nth-child(4) {
        background: linear-gradient(135deg, #1e2530 0%, #151a22 100%);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .features-grid .feature-icon {
        width: 60px;
        height: 60px;
        min-width: 60px;
        margin-bottom: 0;
    }
    
    .features-grid .feature-title {
        font-size: 18px;
    }
    
    .why-play {
        padding: 50px 0 40px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    .section-subtitle br {
        display: none;
    }
    
    .popular-games {
        padding: 30px 0;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .main-banner {
        margin-top: 70px;
    }
    
    .popular-games {
        padding: 30px 0;
    }
    
    /* CTA section - centered layout on mobile */
    .cta-section {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        background: linear-gradient(180deg, rgba(30, 37, 48, 0.8) 0%, rgba(21, 25, 31, 0.9) 100%);
        border-radius: 0;
        margin: 0 -15px;
        gap: 20px;
    }
    
    .cta-text {
        font-size: 14px;
        line-height: 1.8;
    }
    
    .cta-text .highlight {
        color: var(--accent-gold);
        font-weight: 700;
    }
    
    .btn-join {
        padding: 14px 40px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .title-badge span {
        font-size: 16px;
    }
    
    .view-more {
        padding: 8px 18px;
        font-size: 13px;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
    
    .cta-section {
        padding: 25px 20px;
    }
    
    .cta-text {
        font-size: 14px;
    }
    
    .btn-join {
        padding: 12px 30px;
        font-size: 14px;
    }
    
    .how-to-play {
        padding: 50px 0;
    }
    
    .step-card {
        width: 100%;
        padding: 25px 20px;
        margin: 0;
    }
    
    .step-number {
        font-size: 28px;
        min-width: 50px;
    }
    
    .step-text {
        font-size: 16px;
        flex: 1;
    }
    
    .steps-grid {
        gap: 15px;
    }
    
    .faq-item {
        padding: 20px;
    }
    
    .faq-item h4 {
        font-size: 16px;
    }
    
    .faq-item p {
        font-size: 13px;
    }
    
    .footer {
        padding-top: 40px;
    }
    
    .footer-title {
        font-size: 20px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .lang-btn span:not(.flag) {
        display: none;
    }
}

/* Extra Small Mobile */
@media (max-width: 400px) {
    .nav-actions {
        gap: 10px;
    }
    
    .mobile-menu {
        width: 90%;
    }
    
    /* Keep game-info in row layout on mobile like original */
    .game-info {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
