/* Mobile-First Design - Royal SKM Gaming Platform */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans Myanmar', sans-serif;
    line-height: 1.6;
    color: #FFFFFF;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 68, 68, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 200, 81, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Mobile-First Color Palette */
:root {
    --primary-gold: #FFD700;
    --primary-red: #FF4444;
    --primary-green: #00C851;
    --dark-red: #CC0000;
    --text-dark: #FFFFFF;
    --text-light: #CCCCCC;
    --text-muted: #888888;
    --white: #FFFFFF;
    --black: #000000;
    --dark-bg: #0a0a0a;
    --card-bg: rgba(26, 26, 26, 0.9);
    --card-bg-hover: rgba(40, 40, 40, 0.95);
    --gradient-primary: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    --gradient-secondary: linear-gradient(135deg, #FF4444 0%, #CC0000 100%);
    --gradient-success: linear-gradient(135deg, #00C851 0%, #007E33 100%);
    --gradient-card: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(42, 42, 42, 0.9) 100%);
    --gradient-card-hover: linear-gradient(135deg, rgba(40, 40, 40, 0.95) 0%, rgba(60, 60, 60, 0.95) 100%);
    --shadow: rgba(0, 0, 0, 0.3);
    --glow: rgba(255, 215, 0, 0.3);
    --glow-red: rgba(255, 68, 68, 0.3);
    --glow-green: rgba(0, 200, 81, 0.3);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 70px;

}

/* Mobile Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* Lighter and more transparent at top so banner content can show through */
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
/* When on top (not scrolled), give a gradient overlay to help white text over banners */
.header:not(.scrolled) {
    background: linear-gradient(180deg, rgba(10,10,10,0.6) 0%, rgba(10,10,10,0.35) 40%, rgba(10,10,10,0.1) 100%);
}

/* Carousel */
.carousel { padding-top: calc(var(--header-height) + env(safe-area-inset-top)); }
.carousel-track {
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 16px;
}
.carousel-slide { min-height: 180px; }
.carousel-slide img {
    width: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
    height: 48vh;
}
/* Adjust carousel height on larger screens */
@media (min-width: 768px) {
    .carousel-slide img { height: 42vh; }
}
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

/* CTA Under Carousel */
.cta-under-carousel {
    max-width: 1200px; margin: 0.75rem auto 0.5rem; padding: 0 1rem;
}
.cta-content {
    background: var(--card-bg); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px; padding: 0.85rem; display: flex; flex-direction: column; gap: 0.75rem;
}
.cta-brand { display: flex; align-items: center; gap: 0.6rem; }
.cta-logo { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 4px 12px var(--glow); object-fit: cover; }
.cta-title { font-weight: 800; }
.cta-subtitle { font-size: 0.85rem; color: var(--text-muted); }
.cta-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cta-group { display: flex; gap: 0.5rem; }
.cta-btn {
    padding: 0.65rem 1rem; border: none; border-radius: 10px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700;
}
.cta-apk { background: var(--gradient-success); color: #fff; box-shadow: 0 6px 18px var(--glow-green); }
.cta-web { background: transparent; color: #fff; border: 2px solid var(--primary-gold); }
.cta-btn:hover { transform: translateY(-2px); }
@media (min-width: 768px) { .cta-content { flex-direction: row; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; } }
.carousel-dots .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: none; cursor: pointer;
}
.carousel-dots .dot.active { background: var(--primary-gold); }

.navbar {
    padding: 0.75rem 1rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--black);
    box-shadow: 0 4px 15px var(--glow);
    transition: var(--transition);
    animation: pulse 2s infinite;
}

/* Brand image inside logo container */
.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.logo-icon:hover {
    transform: rotate(5deg);
    box-shadow: 0 6px 20px var(--glow);
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Article Sections - mobile first */
.article-section { padding: 1rem; }
.article-container {
  max-width: 1000px; margin: 0 auto;
  background: var(--card-bg); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px; padding: 1rem;
}
.article-section .section-title { text-align:center; margin-bottom: .6rem; }
.article-section p { color: var(--text-light); line-height: 1.85; font-size: .98rem; }
.article-section ul, .article-section ol { padding-left: 1.1rem; margin: .4rem 0 .8rem; }
.article-section li { margin: .25rem 0; line-height: 1.85; color: var(--text-light); }
/* Better wrapping for Burmese/Myanmar long strings */
.article-section, .article-section * { word-break: break-word; overflow-wrap: anywhere; }
@media (min-width: 768px){
  .article-container { padding: 1.25rem 1.5rem; }
  .article-section p { font-size: 1rem; }
}

/* Burmese (my) specific readability tweaks */
html[lang="my"] .section-title { font-size: 1.5rem; line-height: 1.35; }
html[lang="my"] .rule-card h4 { font-size: 1.1rem; }
html[lang="my"] .article-section p,
html[lang="my"] .article-section li { font-size: 1rem; line-height: 2.05; }
.article-container { overflow: visible; }
@media (max-width: 480px){
  html[lang="my"] .rules-grid { grid-template-columns: 1fr !important; }
  html[lang="my"] .article-container { padding: 0.85rem; }
}


/* Register Button */
.btn-register {
    background: var(--gradient-primary);
    color: var(--black);
    border: none;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 18px var(--glow);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px var(--glow);
}

.btn-register:active {
    transform: translateY(0);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 2000;
}

.modal.active { display: block; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.modal-dialog {
    position: relative;
    width: 90%;
    max-width: 420px;
    margin: 12vh auto;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem 1.25rem 1.25rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: fadeInUp 0.25s ease-out;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
}

.modal h3 {
    color: var(--white);
    margin-bottom: 1.1rem;
    text-align: center;
    font-weight: 800;
}

#register-form .form-group { margin-bottom: 0.85rem; }

#register-form .btn-submit {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    background: var(--gradient-success);
    border: none;
}

.btn-play {
    background: var(--gradient-primary);
    color: var(--black);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--glow);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow);
}

.btn-play:active {
    transform: translateY(0);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-gold);
    margin: 3px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.nav-menu .nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.nav-menu .nav-link:last-child {
    border-bottom: none;
}

.nav-menu .nav-link:hover {
    color: var(--primary-gold);
    background: rgba(255, 215, 0, 0.1);
    padding-left: 2rem;
}

.nav-menu .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-menu .nav-link:hover::before {
    width: 4px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 1rem 2rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 68, 68, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 10%, rgba(0, 200, 81, 0.05) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(10, 10, 10, 0.8) 0%,
        rgba(26, 26, 26, 0.6) 50%,
        rgba(10, 10, 10, 0.8) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: pulse 2s infinite;
}

.hero-badge i {
    color: var(--primary-gold);
    animation: pulse 2s infinite;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.title-main {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.title-sub {
    display: block;
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 400;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.feature-item i {
    color: var(--primary-gold);
    font-size: 1.2rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.8s both;
}
/* Hide hero buttons on very small screens to avoid crowding when CTA exists */
@media (max-width: 480px) {
  .hero .hero-buttons { display: none; }
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--black);
    box-shadow: 0 6px 20px var(--glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--glow);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary-gold);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.btn-secondary:hover {
    background: var(--primary-gold);
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--glow);
}

.btn-secondary:active {
    transform: translateY(-1px);
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 400px;
    animation: fadeInUp 1s ease-out 1s both;
}

.phone-mockup {
    position: relative;
    width: 280px;
    height: 500px;
    margin: 0 auto;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 30px;
    padding: 8px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.game-preview {
    text-align: center;
    padding: 2rem;
}

.game-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 25px var(--glow);
    animation: pulse 2s infinite;
}

.game-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.game-status {
    font-size: 0.9rem;
    color: var(--primary-green);
    animation: blink 1.5s infinite;
}

.floating-cards {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.card {
    position: absolute;
    font-size: 2rem;
    opacity: 0.7;
    animation: float 4s ease-in-out infinite;
}

.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.card-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 2s;
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Promotion Banner */
.promotion-banner {
    background: var(--gradient-secondary);
    padding: 1.5rem 1rem;
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
}

.promotion-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s infinite;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.banner-icon {
    font-size: 2rem;
    color: var(--white);
    animation: pulse 2s infinite;
}

.banner-text {
    flex: 1;
}

.banner-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-text p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.banner-btn {
    background: var(--white);
    color: var(--dark-red);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Stats Section */
.stats-section {
    padding: 3rem 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.stat-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: var(--card-bg-hover);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 0.75rem;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Games Section */
.games {
    padding: 3rem 1rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about {
    padding: 3rem 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.about-text {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 1.25rem;
    backdrop-filter: blur(10px);
}

.about-paragraph {
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 1rem;
}

.welcome-banner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 12px;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.6rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.about-stats .stat-item {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.about-stats .stat-icon { color: var(--primary-gold); font-size: 1.4rem; margin-bottom: 0.35rem; }
.about-stats .stat-number { color: var(--white); font-weight: 800; font-size: 1.6rem; }
.about-stats .stat-label { color: var(--text-light); font-size: 0.85rem; margin-top: 0.25rem; }

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1.3fr 1fr;
        align-items: start;
    }
    .about-features { grid-template-columns: repeat(3, 1fr); }
    .about-stats { grid-template-columns: repeat(4, 1fr); }
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

.games-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Realtime Feed */
.realtime { padding: 1rem; }
.realtime-card {
    max-width: 1000px;
    margin: 0.5rem auto 1rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    height: 280px; /* fixed container height */
    display: flex;
    flex-direction: column;
}
.realtime-header {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.9rem 1rem;
    color: var(--primary-gold);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.feed-list { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.feed-list li {
    display: grid; grid-template-columns: 80px 1fr 130px; align-items: center; column-gap: 0.6rem;
    padding: 0.7rem 1rem; color: var(--text-light);
    border-bottom: 1px dashed rgba(255,255,255,0.08);
    min-height: 40px; /* stable row height */
}
.feed-list li:last-child { border-bottom: none; }
.feed-list .feed-time { color: var(--text-muted); font-size: 0.9rem; }
.feed-list .feed-amount { color: var(--primary-gold); font-weight: 800; margin-left: 0.5rem; text-align: right; font-variant-numeric: tabular-nums; -webkit-font-feature-settings: "tnum" 1; font-feature-settings: "tnum" 1; }
.feed-list .feed-amount.withdraw { color: var(--primary-gold); }
.feed-list .feed-amount.deposit { color: var(--primary-green); }
.feed-list .feed-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 480px) {
  .realtime-card { height: 240px; }
  .feed-list li { grid-template-columns: 72px 1fr 120px; }
}

.game-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
    background: var(--card-bg-hover);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.game-card.featured {
    border-color: var(--primary-gold);
    box-shadow: 0 10px 30px var(--glow);
}

.game-card.featured::before {
    content: '🔥 HOT';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-secondary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    animation: pulse 2s infinite;
}

.game-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-primary);
    color: var(--black);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.game-icon-large {
    font-size: 4rem;
    opacity: 0.8;
    transition: var(--transition);
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.game-card:hover .game-icon-large {
    transform: scale(1.1);
}

.play-btn {
    background: var(--gradient-primary);
    color: var(--black);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px var(--glow);
}

.game-info {
    padding: 1.5rem;
}

.game-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.game-description {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.game-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.players {
    color: var(--primary-green);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rating {
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Download Section */
.download {
    padding: 3rem 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.download-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.download-text h2 {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-align: center;
}

.download-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.download-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.feature:hover {
    background: var(--card-bg-hover);
    transform: translateY(-2px);
}

.feature i {
    font-size: 1.5rem;
    color: var(--primary-gold);
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.btn-download, .btn-play-web {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    min-width: 200px;
    justify-content: center;
}

.btn-download {
    background: var(--gradient-success);
    color: var(--white);
    box-shadow: 0 6px 20px var(--glow-green);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--glow-green);
}

.btn-play-web {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary-gold);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.btn-play-web:hover {
    background: var(--primary-gold);
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--glow);
}

.download-visual {
    display: flex;
    justify-content: center;
}

.phone-demo {
    position: relative;
}

.phone-frame {
    width: 250px;
    height: 450px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 25px;
    padding: 6px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    animation: float 6s ease-in-out infinite;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border-radius: 19px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.app-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px var(--glow);
    animation: pulse 2s infinite;
}

/* App icon image when using <img> */
.app-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.app-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.app-status {
    font-size: 0.9rem;
    color: var(--primary-green);
    animation: blink 1.5s infinite;
}

/* Contact Section */
.contact {
    padding: 3rem 1rem;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info h2 {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-item:hover {
    background: var(--card-bg-hover);
    transform: translateX(5px);
    border-color: rgba(255, 215, 0, 0.3);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-gold);
}

.contact-details {
    flex: 1;
}

.contact-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contact-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-form-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.btn-submit {
    background: var(--gradient-primary);
    color: var(--black);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--glow);
}

/* Footer */
.footer {
    background: var(--dark-bg);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    padding: 2rem 1rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-gold);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 1.5rem;
    color: var(--primary-gold);
}

.footer-logo span {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
}

/* Footer brand image */
.footer-logo-img {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px var(--glow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
        text-align: left;
        gap: 3rem;
    }

    .hero-text {
        flex: 1;
    }

    .hero-features {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: flex-start;
    }

    .btn-primary, .btn-secondary {
        min-width: 180px;
    }


/* I18N switch */
.i18n-switch { display:flex; align-items:center; gap: .4rem; margin-right: auto; }
.i18n-link { color: var(--text-light); text-decoration:none; font-weight:700; opacity:.85; }
.i18n-link:hover { opacity:1; text-decoration: underline; }
.i18n-link.active { color: var(--primary-gold); opacity:1; }
.i18n-divider { color: var(--text-muted); }
@media (max-width: 480px){ .i18n-switch{ display:none; } }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .download-content {
        flex-direction: row;
        align-items: center;
    }

    .download-text {
        flex: 1;
    }

    .download-visual {
        flex: 1;
    }

    .contact-content {
        flex-direction: row;
        align-items: flex-start;
    }

    .contact-info {
        flex: 1;
    }

    .contact-form {
        flex: 1;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-section {
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .nav-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
    }

    .hero {
        padding: 8rem 2rem 4rem;
    }

    .hero-content {
        gap: 4rem;
    }

    .title-main {
        font-size: 3.5rem;
    }

    .title-sub {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1.2rem;
    }

    .phone-mockup {
        width: 320px;
        height: 580px;
    }

    .stats-section {
        padding: 4rem 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1000px;
    }

    .games {
        padding: 4rem 2rem;
    }

    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1000px;
    }

    .download {
        padding: 4rem 2rem;
    }

    .download-content {
        gap: 3rem;
    }

    .contact {
        padding: 4rem 2rem;
    }

    .contact-content {
        gap: 3rem;
    }

    .footer {
        padding: 3rem 2rem 1rem;
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Utility Classes */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.hidden { display: none; }
.visible { display: block; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-gold);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Game Features Tags */
.game-features {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.feature-tag {
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary-gold);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: progressFill 2s ease-out;
}

@keyframes progressFill {
    from { width: 0%; }
    to { width: 75%; }
}

.game-progress {
    margin-top: 1rem;
}

.download-progress {
    margin-top: 1rem;
    text-align: center;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--primary-gold);
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Download Info */
.download-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.download-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-info p:last-child {
    margin-bottom: 0;
}

.download-info i {
    color: var(--primary-gold);
    width: 16px;
}

/* Contact Form Improvements */
.form-group select {
    width: 100%;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-group select option {
    background: var(--card-bg);
    color: var(--white);
}

/* Copy Icon */
.copy-icon {
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.contact-item:hover .copy-icon {
    color: var(--primary-gold);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-gold);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--glow);
}

/* Payment Methods */
.payment-methods {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.payment-method {
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary-gold);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Back to Top Button */

/* Floating PlayGame Button */
.floating-play-game {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    padding: 0.85rem 1.1rem;
    border: none;
    border-radius: 999px;
    background: var(--gradient-primary);
    color: var(--black);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 28px var(--glow);
    cursor: pointer;
    z-index: 1600;
    transition: var(--transition);
}
.floating-play-game i { font-size: 1rem; }
.floating-play-game:hover { transform: translateY(-3px); box-shadow: 0 14px 34px var(--glow); }
.floating-play-game:active { transform: translateY(-1px); }
@media (max-width: 480px) {
  .floating-play-game { left: 1rem; bottom: 1rem; padding: 0.7rem 0.9rem; }
  .floating-play-game span { display: none; }
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--black);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--glow);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--glow);
}

/* Floating Cards Animation Improvements */
.card-4 {
    bottom: 30%;
    right: 25%;
    animation-delay: 3s;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .games-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .download-features {
        grid-template-columns: 1fr;
    }

    .contact-methods {
        gap: 0.75rem;
    }

    .contact-item {
        padding: 1rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .title-main {
        font-size: 2rem;
    }

    .title-sub {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .game-features {
        gap: 0.25rem;
    }

    .feature-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --card-bg: rgba(20, 20, 20, 0.9);
        --card-bg-hover: rgba(30, 30, 30, 0.95);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-gold: #FFFF00;
        --primary-red: #FF0000;
        --primary-green: #00FF00;
        --text-light: #FFFFFF;
        --text-muted: #CCCCCC;
    }

    .game-card, .stat-item, .contact-item {
        border: 2px solid var(--primary-gold);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .floating-cards {
        display: none;
    }

    .hero-particles {
        display: none;
    }
}

/* Print Styles */
@media print {
    .header, .nav-menu, .back-to-top, .promotion-banner {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .hero, .games, .download, .contact {
        page-break-inside: avoid;
    }
}

/* Focus Styles for Accessibility */
.btn-primary:focus,
.btn-secondary:focus,
.btn-play:focus,
.play-btn:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* Loading States */
.btn-primary.loading,
.btn-secondary.loading,
.btn-play.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after,
.btn-secondary.loading::after,
.btn-play.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced Hover Effects */
.game-card:hover .game-icon-large {
    transform: scale(1.1) rotate(5deg);
}

.stat-item:hover .stat-icon {
    transform: scale(1.1);
}

.contact-item:hover i {
    transform: scale(1.1);
}

/* Smooth Scrolling Enhancement */
html {
    scroll-padding-top: 80px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FFA500;
}

/* Selection Styles */
::selection {
    background: var(--primary-gold);
    color: var(--black);
}

::-moz-selection {
    background: var(--primary-gold);
    color: var(--black);
}


/* --- Rules Section (Card Grid) --- */
.rules-section .section-title { text-align:center; margin-bottom: 1rem; }
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}
.rule-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.rule-card:hover {
  background: var(--card-bg-hover);
  border-color: rgba(255, 215, 0, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.rule-card h4 { margin: 0 0 0.5rem; color: var(--primary-gold); }
.rule-card ul, .rule-card ol { margin: 0; padding-left: 1.1rem; color: var(--text-light); }
.rule-card li { margin: 0.25rem 0; }
.rule-card.highlight { border-color: var(--primary-gold); }
@media (min-width: 768px) { .rules-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .rules-grid { grid-template-columns: repeat(3, 1fr); } }
