/* ============================================================
   Maxim88 Slot — Main Stylesheet
   ============================================================ */

/* --- Screen Reader Only --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- CSS Variables --- */
:root {
    --bg-primary: #0d0d1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #2a2a3e;
    --bg-card-hover: #33334d;
    --accent-green: #009344;
    --accent-green-hover: #00b354;
    --accent-gold: #ffd700;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --border-color: #3a3a4e;
    --border-radius: 8px;
    --max-width: 1280px;
    --header-height: 70px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Avenir Next LT Pro', 'Avenir Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-green-hover);
}

img {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

/* --- Container --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ============================================================
   Header
   ============================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
}

.header .container {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
}

/* Header Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo img {
    height: 40px;
    width: auto;
}

.header-logo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Header Nav */
.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.header-nav > a,
.header-nav > .nav-dropdown > a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.header-nav > a:hover,
.header-nav > .nav-dropdown > a:hover,
.header-nav > a.active,
.header-nav > .nav-dropdown > a.active {
    color: var(--accent-green);
    border-bottom-color: var(--accent-green);
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    min-width: 200px;
    padding: 8px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-dropdown-menu a:hover {
    background-color: var(--bg-card-hover);
    color: var(--accent-green);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    background-color: var(--bg-card);
    border-radius: 20px;
    padding: 2px;
    border: 1px solid var(--border-color);
    gap: 0;
    overflow: hidden;
}

.lang-toggle a {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-toggle a:hover {
    color: var(--text-primary);
}

.lang-toggle a.active {
    background-color: var(--accent-green);
    color: var(--text-primary);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.btn-login {
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
    background-color: transparent;
}

.btn-login:hover {
    background-color: var(--accent-green);
    color: var(--text-primary);
}

.btn-register {
    background-color: var(--accent-green);
    color: var(--text-primary);
    border: 2px solid var(--accent-green);
}

.btn-register:hover {
    background-color: var(--accent-green-hover);
    border-color: var(--accent-green-hover);
    color: var(--text-primary);
}

.btn-play {
    background-color: var(--accent-green);
    color: var(--text-primary);
    border: 2px solid var(--accent-green);
    padding: 10px 24px;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-play:hover {
    background-color: var(--accent-green-hover);
    border-color: var(--accent-green-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 147, 68, 0.4);
}

.btn-gold {
    background-color: var(--accent-gold);
    color: #1a1a2e;
    border: 2px solid var(--accent-gold);
    font-weight: 700;
}

.btn-gold:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    color: #1a1a2e;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #0f2027 100%);
    background-image:
        radial-gradient(ellipse at 50% 50%, rgba(0, 147, 68, 0.08) 0%, transparent 70%),
        linear-gradient(135deg, var(--bg-secondary) 0%, #0f2027 100%);
    padding: 60px 0;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero h1 .highlight {
    color: var(--accent-green);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 24px;
}

/* ============================================================
   Filter Bar
   ============================================================ */
.filter-bar {
    background-color: var(--bg-secondary);
    padding: 16px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--border-color);
}

.filter-bar .container {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    align-items: center;
}

.filter-btn {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background-color: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover {
    background-color: var(--bg-card-hover);
    color: var(--text-primary);
}

.filter-btn.active {
    background-color: var(--accent-green);
    color: var(--text-primary);
    border-color: var(--accent-green);
}

/* ============================================================
   Game Grid
   ============================================================ */
.game-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 32px 0;
}

/* Game Card */
.game-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-green);
    box-shadow: 0 8px 24px rgba(0, 147, 68, 0.2);
}

/* Game Card Image */
.game-card-img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.game-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-card-img img {
    transform: scale(1.05);
}

/* Game Card Overlay */
.game-card-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

/* Game Card Info */
.game-card-info {
    padding: 12px;
}

.game-card-info h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card-info .provider-tag {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--accent-green);
}

.breadcrumb .separator {
    margin: 0 8px;
}

.breadcrumb .current {
    color: var(--text-secondary);
}

/* ============================================================
   Provider Hero
   ============================================================ */
.provider-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px 0;
}

.provider-logo-wrap {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.provider-logo-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.provider-hero-text h1 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 8px;
}

.provider-hero-text p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ============================================================
   Stats Bar
   ============================================================ */
.stats-bar {
    display: flex;
    gap: 32px;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px 24px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    color: var(--accent-green);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================================
   Game Hero
   ============================================================ */
.game-hero {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 32px 0;
}

.game-hero-img {
    flex: 0 0 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.game-hero-img img {
    width: 100%;
    height: auto;
    display: block;
}

.game-hero-info {
    flex: 1;
    min-width: 0;
}

.game-hero-info h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 8px;
}

/* ============================================================
   Stats Table
   ============================================================ */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin: 16px 0;
}

.stats-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    vertical-align: middle;
}

.stats-table tr:last-child td {
    border-bottom: none;
}

.stats-table td:first-child {
    color: var(--text-muted);
    width: 40%;
    font-weight: 500;
}

.stats-table td:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================================
   Content Section
   ============================================================ */
.content-section {
    padding: 48px 0;
}

.content-section h2 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.content-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 24px 0 10px;
    color: var(--text-primary);
}

.content-section p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-section ul,
.content-section ol {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 16px;
    padding-left: 20px;
}

.content-section ul {
    list-style: disc;
}

.content-section ol {
    list-style: decimal;
}

.content-section img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 16px 0;
    border: 1px solid var(--border-color);
}

.content-section .guide-img-sm {
    max-width: 360px;
    display: block;
}

/* ============================================================
   FAQ Section
   ============================================================ */
.faq-section {
    padding: 48px 0;
}

.faq-section h2 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    background: none;
    border: none;
    text-align: left;
    transition: background-color 0.2s ease;
}

.faq-question:hover {
    background-color: var(--bg-card-hover);
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--accent-green);
    flex-shrink: 0;
    margin-left: 12px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 20px 16px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ============================================================
   Related Games
   ============================================================ */
.related-games {
    padding: 40px 0;
}

.related-games h2 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
    background-color: #1e1e2a;
    border-top: 1px solid var(--border-color);
    padding: 40px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr 280px;
    gap: 32px;
    padding-bottom: 32px;
}

.footer-section {
    margin-bottom: 24px;
}

.footer-section h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 14px;
    text-transform: capitalize;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.footer-badges img {
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.footer-badges img:hover {
    opacity: 1;
}

.cert-badges {
    gap: 20px;
}

.cert-badges img,
.footer-png {
    opacity: 0.85;
}

.payment-badges img {
    border-radius: 50%;
}

.security-badges {
    gap: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-icon {
    display: inline-flex;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.social-icon:hover {
    opacity: 1;
}

.footer-sponsor img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.footer-divider {
    border-top: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding-bottom: 16px;
}

.footer-nav a {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--accent-green);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 16px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #a4a5a5;
    color: #a4a5a5;
    font-size: 0.7rem;
    font-weight: 700;
}

/* ============================================================
   Back to Top
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--accent-green);
    color: var(--text-primary);
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, background-color 0.2s ease, transform 0.2s ease;
    z-index: 500;
    box-shadow: 0 4px 12px rgba(0, 147, 68, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background-color: var(--accent-green-hover);
    transform: translateY(-2px);
}

/* ============================================================
   Providers Grid
   ============================================================ */
.providers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 32px 0;
}

.provider-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.provider-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-green);
    box-shadow: 0 8px 24px rgba(0, 147, 68, 0.2);
    color: var(--text-primary);
}

.provider-card img {
    width: 80px;
    height: 50px;
    object-fit: contain;
}

.provider-card h3 {
    font-size: 1rem;
    font-weight: 600;
}

.provider-card .game-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================================
   Error Page
   ============================================================ */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height));
    text-align: center;
    padding: 40px 20px;
}

.error-page h1 {
    font-size: 6rem;
    font-weight: 700;
    color: var(--accent-green);
    line-height: 1;
    margin-bottom: 16px;
}

.error-page p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 480px;
}

/* ============================================================
   Responsive — 1024px
   ============================================================ */
@media (max-width: 1024px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .game-hero {
        flex-direction: column;
    }

    .game-hero-img {
        flex: none;
        width: 100%;
    }
}

/* ============================================================
   Responsive — 768px
   ============================================================ */
@media (max-width: 768px) {
    /* Mobile nav */
    .header-nav {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--bg-secondary);
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 20px;
        gap: 8px;
        overflow-y: auto;
        border-top: 1px solid var(--border-color);
        z-index: 999;
    }

    .header-nav.open {
        display: flex;
    }

    .header-nav > a,
    .header-nav > .nav-dropdown > a {
        font-size: 1.1rem;
        padding: 10px 0;
        border-bottom: none;
        width: 100%;
    }

    .hamburger {
        display: flex;
    }

    .header .container {
        gap: 8px;
        padding: 0 12px;
    }

    .header-actions {
        gap: 6px;
        flex-shrink: 1;
        min-width: 0;
    }

    .header-actions .btn-login,
    .header-actions .btn-register {
        padding: 6px 10px;
        font-size: 0.78rem;
    }

    .header-logo img {
        height: 34px;
    }

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

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

    .providers-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero {
        padding: 40px 0;
    }

    .provider-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-login,
    .btn-register,
    .btn-play {
        width: 100%;
        text-align: center;
    }

    .stats-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Mobile dropdown — static */
    .nav-dropdown-menu {
        display: block;
        position: static;
        background-color: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 0 16px;
    }

    .nav-dropdown-menu a {
        padding: 8px 0;
        font-size: 0.95rem;
    }

    .stats-bar {
        gap: 20px;
    }

    .header-actions .btn-login,
    .header-actions .btn-register {
        width: auto;
    }
}

/* ============================================================
   Responsive — 480px
   ============================================================ */
@media (max-width: 480px) {
    .header .container {
        gap: 6px;
    }

    .header-actions {
        gap: 6px;
    }

    .header-actions .btn-login,
    .header-actions .btn-register {
        padding: 5px 8px;
        font-size: 0.75rem;
    }

    .lang-toggle a {
        padding: 3px 8px;
        font-size: 0.75rem;
    }

    .header-logo img {
        height: 32px;
    }

    .game-grid {
        gap: 12px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.95rem;
    }
}

/* ============================================================
   Responsive — 390px (small phones)
   ============================================================ */
@media (max-width: 390px) {
    .header .container {
        gap: 6px;
        padding: 0 8px;
    }

    .header-actions .btn-login,
    .header-actions .btn-register {
        padding: 5px 6px;
        font-size: 0.7rem;
    }

    .lang-toggle a {
        padding: 3px 6px;
        font-size: 0.7rem;
    }

    .header-logo img {
        height: 28px;
    }
}
