html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Account for sticky header */
}

:root {
    --bg-dark: #110d31;
    /* Fundo Principal */
    --bg-panel: #1a163f;
    /* Fundo dos Cards/Seções */
    --bg-input: #0a081c;
    /* Fundo Search/Inputs */
    --accent-red: #ff3050;
    /* Cor de Ação */
    --text-white: #ffffff;
    --text-grey: #888899;

    --primary: #ff3050;
    /* Mapping primary to accent-red for compatibility */
    --primary-hover: #ff5070;

    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --radius-lg: 12px;
    --radius-md: 8px;
    --radius-sm: 4px;

    --bg-accent: #16123a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Top Header --- */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background-color: rgba(11, 11, 21, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 1px;
    color: var(--text-white);
}

.main-nav {
    display: flex;
    gap: 40px;
}

.main-nav a {
    color: var(--text-grey);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-dark);
    border: none;
    padding: 12px 30px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-family: var(--font-head);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-primary.btn-sm {
    padding: 8px 20px;
    font-size: 13px;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 30px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-family: var(--font-head);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.05);
}

/* --- Main Layout --- */
.main-container {
    padding: 40px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Hero Split Section --- */
.hero-split {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
    align-items: stretch;
}

/* Banner */
/* Banner Slider */
.hero-slider-container {
    position: relative;
    min-height: 450px;
    height: 100%;
    /* Ensure it fills grid cell */
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-banner {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 60px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-banner.active {
    opacity: 1;
    z-index: 2;
}

/* Hero Navigation */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 19px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.hero-arrow.prev {
    left: 20px;
}

.hero-arrow.next {
    right: 20px;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.dot .progress {
    width: 0%;
    height: 100%;
    background: var(--primary);
    position: absolute;
    top: 0;
    left: 0;
}

.dot.active .progress {
    width: 100%;
    transition: width 5s linear;
}

.hero-content {
    z-index: 2;
    max-width: 100%;
    /* Changed from 80% to allow full width usage if needed, though content usually stays contained */
    background: transparent;
    /* REMOVED inner box background */
    padding: 0;
    /* REMOVED padding since it's now just a layout container */
    border: none;
    /* REMOVED border */
    border-radius: 0;
    /* REMOVED radius */
}

.tag {
    background-color: rgba(212, 175, 55, 0.15);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-banner h1 {
    font-family: var(--font-head);
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-banner p {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 40px;
    max-width: 500px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-actions {
    display: flex;
    gap: 15px;
}

/* Stats Panel */
/* Stats Panel */
.stats-panel {
    background: linear-gradient(135deg, rgba(255, 48, 80, 0.1) 0%, rgba(19, 16, 43, 0.95) 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    max-width: 100%;
    /* Changed from 1000px to fill grid */
    height: 100%;
    /* Ensure full height */
    margin: 0;
    /* Removed auto margin */
    position: relative;
    z-index: 2;
    /* margin-top: -60px; REMOVED negative margin */
}

.stat-row {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex: 1;
    /* Distribute space if needed, though row direction is usually horizontal. */
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-icon {
    font-size: 24px;
    margin-right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-info strong {
    display: block;
    font-size: 19px;
    color: var(--text-white);
}

.stat-info span {
    font-size: 14px;
    color: var(--text-grey);
}

/* --- Game Carousels --- */
.game-category {
    margin-bottom: 80px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.category-title {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 700;
}

.nav-arrows {
    display: flex;
    gap: 10px;
}

.arrow-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 19px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-btn:hover {
    background-color: var(--primary);
    color: var(--text-dark);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--text-white);
    color: var(--bg-dark);
}

.btn-secondary.btn-sm {
    padding: 8px 20px;
    font-size: 13px;
}

.header-right .btn-sm {
    width: 180px;
    /* Fixed width for exact equality */
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    /* Ensure padding/border don't add to width */
}

/* Metrics Highlighting */
.metrics .m-row strong {
    color: var(--text-white);
    font-weight: 400;
    /* Default to normal weight for all values */
}

.metrics .m-row strong.highlight-rtp {
    color: var(--primary);
    font-size: 1.1em;
    font-weight: 700;
    /* Keep RTP bold */
}

.metrics .m-row strong.vol-normal {
    color: var(--text-white);
    font-weight: 400;
    /* Explicitly normal */
}

/* Release Date Tag */
.release-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    border: 1px solid var(--primary);
}

.carousel-container {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0 30px 0;
    scrollbar-width: none;
    /* Mask Image for Fade Effect */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 0%, black 100%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 0%, black 100%, transparent 100%);
    transition: -webkit-mask-image 0.3s, mask-image 0.3s;
    scroll-snap-type: x mandatory;
    /* Snap added */
}

/* Mask States */
.carousel-container.mask-left {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 100px, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 100px, black 100%);
}

.carousel-container.mask-right {
    -webkit-mask-image: linear-gradient(to right, black 0%, black calc(100% - 100px), transparent 100%);
    mask-image: linear-gradient(to right, black 0%, black calc(100% - 100px), transparent 100%);
}

.carousel-container.mask-both {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 100px, black calc(100% - 100px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 100px, black calc(100% - 100px), transparent 100%);
}

/* Mobile Mask Override */
@media (max-width: 768px) {
    .carousel-container.mask-left {
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30px, black 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 30px, black 100%);
    }

    .carousel-container.mask-right {
        -webkit-mask-image: linear-gradient(to right, black 0%, black calc(100% - 30px), transparent 100%);
        mask-image: linear-gradient(to right, black 0%, black calc(100% - 30px), transparent 100%);
    }

    .carousel-container.mask-both {
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30px, black calc(100% - 30px), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 30px, black calc(100% - 30px), transparent 100%);
    }
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.game-card {
    min-width: 280px;
    /* Desktop default */
    background-color: var(--bg-panel);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    scroll-snap-align: center;
    /* Snap added */
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.card-thumb {
    height: 160px;
    width: 100%;
    background-color: #333;
    cursor: pointer;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    font-family: var(--font-head);
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.metrics {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.m-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--text-grey);
}

.m-row strong {
    color: var(--text-white);
}

.m-row strong.high {
    color: #ff3050;
}

.m-row strong.extreme {
    color: #bf00ff;
}

.btn-play {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.game-card:hover .btn-play {
    background: var(--primary);
    color: var(--text-dark);
}

/* --- Tech Section --- */
.tech-section {
    background-color: var(--bg-panel);
    /* Match panel background */
    padding: 60px;
    margin-bottom: 60px;
    /* Reduced from 80px */
    border-radius: var(--radius-lg);
    /* Add rounded corners */
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Match border */
}

.tech-content {
    max-width: 1200px;
    margin: 0 auto;
}

.tech-content h2 {
    font-family: var(--font-head);
    font-size: 40px;
    margin-bottom: 20px;
}

.tech-content p {
    color: var(--text-grey);
    margin-bottom: 50px;
    font-size: 18px;
}

.tech-section h2 {
    font-family: var(--font-head);
    font-size: 32px;
    color: var(--text-white);
    margin-bottom: 20px;
}

.tech-section p {
    color: var(--text-grey);
    margin-bottom: 50px;
    font-size: 18px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.tech-item {
    background-color: var(--bg-panel);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.tech-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.tech-item:hover .tech-icon {
    transform: scale(1.2) rotate(5deg);
}

.tech-item h4 {
    color: var(--primary);
    font-size: 19px;
    margin-bottom: 10px;
    font-family: var(--font-head);
}

.highlight-metric {
    font-size: 24px;
    color: var(--accent-red) !important;
    /* Override default h4 color */
    margin-bottom: 5px;
    font-weight: 800;
}

/* --- Partners Section --- */
.partners-section {
    text-align: center;
    margin-bottom: 60px;
    /* Reduced from 80px */
    overflow: hidden;
}

.partners-section h2 {
    font-family: var(--font-head);
    font-size: 24px;
    color: var(--text-grey);
    margin-bottom: 30px;
    /* Reduced from 40px */
    text-transform: uppercase;
    letter-spacing: 2px;
}

.partners-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-track {
    display: flex;
    gap: 80px;
    width: max-content;
    animation: scrollPartners 40s linear infinite;
    opacity: 0.6;
}

.partners-track:hover {
    animation-play-state: paused;
    opacity: 1;
    transition: opacity 0.3s;
}

.partner-logo {
    font-size: 29px;
    font-weight: 800;
    color: var(--text-white);
    font-family: var(--font-head);
    white-space: nowrap;
}

@keyframes scrollPartners {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.partners-track.reverse {
    animation: scrollPartnersReverse 40s linear infinite;
}

@keyframes scrollPartnersReverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.partners-track.reverse:hover {
    animation-play-state: paused;
    opacity: 1;
    transition: opacity 0.3s;
}

/* --- Contact Section --- */
.contact-section {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.contact-box {
    background: linear-gradient(135deg, rgba(255, 48, 80, 0.1) 0%, rgba(19, 16, 43, 0.95) 100%);
    padding: 60px;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 800px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.contact-box h2 {
    font-family: var(--font-head);
    font-size: 40px;
    margin-bottom: 15px;
}

.contact-box p {
    color: var(--text-grey);
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.form-input {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.2);
    color: white;
    font-family: var(--font-body);
    width: 250px;
}

/* --- Dashboard Section (Partner Success) --- */
.dashboard-section {
    padding: 60px 20px;
    margin-bottom: 60px;
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.dashboard-header h2 {
    font-family: var(--font-head);
    font-size: 32px;
    color: var(--text-white);
    margin-bottom: 10px;
}

.dashboard-header p {
    color: var(--text-grey);
    font-size: 18px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    /* ~65% / 35% split */
    gap: 25px;
}

/* Success Carousel Card (Left) */
.success-carousel-card {
    background: linear-gradient(135deg, rgba(255, 48, 80, 0.1) 0%, rgba(19, 16, 43, 0.95) 100%);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
}

.success-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.success-slide.active {
    display: block;
}

.metric-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-white);
    margin-bottom: 20px;
}

.big-metric {
    font-size: 56px;
    font-family: var(--font-head);
    color: var(--accent-red);
    margin-bottom: 20px;
    line-height: 1;
}

.big-metric .unit {
    font-size: 24px;
    color: var(--text-white);
    font-weight: 400;
}

.progress-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 25px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent-red) 100%);
    border-radius: 4px;
}

.quote {
    font-size: 18px;
    font-style: italic;
    color: var(--text-grey);
    margin-bottom: 20px;
}

.partner-info {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: var(--text-white);
    font-weight: 700;
}

.partner-region {
    color: var(--text-grey);
    font-weight: 400;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
}

.carousel-indicators .dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-indicators .dot.active {
    background: var(--primary);
}

/* Tournament Card (Right) */
.tournament-card {
    background: linear-gradient(135deg, rgba(255, 48, 80, 0.1) 0%, rgba(19, 16, 43, 0.95) 100%);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.card-header-row h3 {
    font-size: 20px;
    color: var(--text-white);
}

.live-badge {
    background: rgba(255, 48, 80, 0.2);
    color: var(--accent-red);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    animation: pulse 2s infinite;
}

.prize-pool {
    margin-bottom: 25px;
}

.prize-pool .label {
    display: block;
    font-size: 14px;
    color: var(--text-grey);
    margin-bottom: 5px;
}

.prize-pool .amount {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-white);
    font-family: var(--font-head);
}

.participants-preview {
    margin-bottom: 30px;
}

.participants-preview .label {
    display: block;
    font-size: 14px;
    color: var(--text-grey);
    margin-bottom: 10px;
}

.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar {
    width: 36px;
    height: 36px;
    background: #333;
    border-radius: 50%;
    border: 2px solid var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-left: -10px;
}

.avatar:first-child {
    margin-left: 0;
    background: #4a4a4a;
}

.avatar:nth-child(2) {
    background: #5a5a5a;
}

.avatar:nth-child(3) {
    background: #6a6a6a;
}

.avatar-count {
    margin-left: 10px;
    font-size: 14px;
    color: var(--text-grey);
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Ronaldinho Section --- */
.ronaldinho-section {
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.r10-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.r10-content {
    z-index: 2;
}

.r10-content h2 {
    font-family: var(--font-head);
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.r10-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 18px;
}

.r10-image img {
    width: 70%;
    /* Reduced size */
    max-width: 450px;
    display: block;
    margin: 0 auto;
    /* Center it */
    border-radius: 20px;
    /* Clean look without shadow */
    box-shadow: none;
    transition: transform 0.3s ease;
}

.r10-image img:hover {
    transform: scale(1.02);
}

@media (max-width: 900px) {
    .r10-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .r10-content h2 {
        font-size: 40px;
    }
}

@media (max-width: 375px) {
    .r10-content h2 {
        font-size: 32px;
    }
}

/* --- Footer --- */
.main-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 60px 100px 60px;
    /* Increased bottom padding */
    text-align: center;
    color: var(--text-grey);
    font-size: 14px;
}

/* --- Game Modal --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-panel);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.4s ease;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-banner {
    background: black;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.modal-header {
    padding: 30px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-play-btn {
    padding: 12px 30px;
    font-size: 16px;
    box-shadow: 0 0 20px rgba(255, 48, 80, 0.4);
}

.modal-header h2 {
    font-family: var(--font-head);
    font-size: 32px;
    margin: 0;
    color: var(--text-white);
}

.modal-meta {
    display: flex;
    gap: 20px;
    color: var(--text-grey);
    font-size: 14px;
}

.modal-meta span {
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 12px;
    border-radius: 20px;
}

.modal-body {
    padding: 40px;
}

.details-section {
    margin-bottom: 40px;
}

.details-section h3 {
    font-family: var(--font-head);
    font-size: 19px;
    color: var(--primary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.d-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.d-item span {
    font-size: 13px;
    color: var(--text-grey);
}

.d-item strong {
    font-size: 16px;
    color: var(--text-white);
}

/* Regulatory Badges */
.regulatory-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.reg-badge {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reg-badge.ready {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.reg-badge.ready::after {
    content: '✓';
}

.reg-badge.wip {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.reg-badge.wip::after {
    content: '⏳';
}

.reg-badge.no {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
    opacity: 0.5;
}

.reg-badge.no::after {
    content: '✕';
}

@media (max-width: 768px) {
    .modal-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

.footer-logo {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 19px;
}

/* Responsivo */
/* Header Buttons Scroll Effect */
.header-right {
    transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease, margin 0.3s ease;
    max-height: 300px;
    /* Allow enough height for content */
    overflow: hidden;
}

.header-right.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    max-height: 0;
    margin-top: 0 !important;
    /* Override mobile margin */
}

.top-header {
    transition: padding 0.3s ease;
}

.top-header.compact {
    padding: 10px 20px;
}

/* Tablet & Mobile Adjustments moved to bottom */

/* Specific adjustments for 375px moved to bottom */

/* 900px adjustments moved to bottom */

/* --- Floating Nav (Mobile Ergonomic) --- */
.floating-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(26, 22, 63, 0.85);
    /* Translucent dark purple */
    backdrop-filter: blur(12px);
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    width: max-content;
    max-width: 90%;
    overflow-x: auto;
}

.nav-pill {
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-grey);
    font-weight: 700;
    border-radius: 30px;
    font-family: var(--font-head);
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-pill:hover,
.nav-pill.active {
    background-color: var(--accent-red);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 48, 80, 0.3);
}

/* 600px adjustments moved to bottom */

/* Items for Mobile */
/* -------------------------------------------------- */

/* Tablet & Mobile (1024px) */
@media (max-width: 1024px) {

    /* Convert Grids to Carousels on Tablet */
    .tech-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding-bottom: 20px;
        grid-template-columns: none;
        margin: 0 -20px;
        padding-left: 20px;
        padding-right: 20px;
        /* Hide scrollbar */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .tech-grid::-webkit-scrollbar {
        display: none;
    }

    .tech-item {
        min-width: 220px;
        min-height: 100px;
        scroll-snap-align: center;
        margin-bottom: 0;
    }
}

/* Tablet/Desktop Boundary (900px) */
@media (max-width: 900px) {
    .main-nav {
        display: none;
    }

    .hero-split {
        grid-template-columns: 1fr;
    }

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

    .contact-form {
        flex-direction: column;
        align-items: center;
    }

    .form-input {
        width: 100%;
    }

    .tech-section {
        margin: 0 0 60px 0;
        /* Remove negative margins */
        padding: 40px 20px;
        /* Adjust padding */
    }

    .main-container {
        padding: 20px;
    }

    /* Dashboard Mobile Stack */
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Floating Nav Mobile (600px) */
@media (max-width: 600px) {
    .floating-nav {
        bottom: 15px;
        padding: 10px 15px;
        gap: 5px;
    }

    .nav-pill {
        padding: 8px 15px;
        font-size: 13px;
    }
}

/* Specific adjustments for Mobile (Covering 375px - 1040px) - Aggressive emoji-only */
@media (max-width: 1040px) {
    main {
        padding-bottom: 100px;
        /* Ensure content clears floating nav */
    }

    /* Header & Hero */
    .header-right {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        margin-top: 10px;
    }

    .header-right .btn-sm {
        min-width: unset;
        width: 100%;
        padding: 8px;
        font-size: 11px;
    }

    .top-header {
        padding: 10px;
        flex-direction: column;
        align-items: center;
    }

    .top-header.compact {
        padding: 5px;
        /* Even smaller when compact */
    }

    .logo img {
        height: 25px;
        transition: height 0.3s ease;
    }

    .top-header.compact .logo img {
        height: 20px;
        /* Shrink logo */
    }

    .tag {
        font-size: 10px;
    }

    .hero-banner h1 {
        font-size: 24px;
        /* User requested 20px for mobile */
        line-height: 1.1;
        margin-bottom: 10px;
    }

    .hero-banner {
        padding: 0;
        /* Remove large padding */
    }

    .hero-content {
        max-width: 100%;
        /* Allow full width */
        padding: 60px 20px;
        /* Add internal padding */
        width: 100%;
        text-align: center;
        position: relative;
        z-index: 2;
        background: none;
        /* Remove desktop background */
        border: none;
        /* Remove desktop border */
    }

    .hero-banner::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.1));
        z-index: 1;
        pointer-events: none;
    }

    .hero-content p {
        font-size: 14px;
        margin-bottom: 15px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        /* Limit text lines */
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-actions {
        flex-direction: column;
        gap: 8px;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 8px 16px;
        /* Reduced padding */
        font-size: 13px;
    }

    /* Game Cards */
    .game-grid {
        grid-template-columns: 1fr;
    }

    .game-card {
        min-width: 200px;
        /* Mobile override */
    }

    .card-thumb {
        height: 130px;
        /* Further reduced */
    }

    .card-body {
        padding: 12px;
    }

    .card-body h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .metrics .m-row {
        font-size: 12px;
    }

    /* Floating Nav Dynamic */
    .floating-nav {
        width: auto;
        /* Auto width to fit content */
        max-width: 95%;
        bottom: 15px;
        padding: 8px 12px;
        gap: 8px;
        overflow-x: auto;
        justify-content: center;
        /* Center items */
        border-radius: 50px;
        /* Pill shape */
        /* Original properties to remove/override:
        width: 95%;
        bottom: 10px;
        padding: 8px;
        gap: 5px;
        overflow-x: auto;
        justify-content: flex-start;
        mask-image: linear-gradient(to right, black 85%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
        */
        mask-image: none;
        /* Remove mask */
        -webkit-mask-image: none;
        /* Remove mask */
    }

    .nav-pill {
        padding: 8px;
        border-radius: 50%;
        /* Circle by default */
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        /* Original properties to remove/override:
        white-space: nowrap;
        font-size: 11px;
        padding: 6px 10px;
        */
        white-space: nowrap;
        /* Keep this for text */
        font-size: 11px;
        /* Keep this for text */
    }

    .nav-pill .nav-text {
        display: none !important;
        /* Force hide text on mobile */
    }

    /* Active state - kept icon only */
    .nav-pill.active .nav-text {
        display: none !important;
    }

    .nav-pill .nav-icon {
        font-size: 18px;
        flex-shrink: 0;
        /* Prevent icon shrinking */
    }

    /* Ronaldinho Section */
    .r10-content h2 {
        font-size: 22px;
    }

    .r10-content p {
        font-size: 14px;
    }

    .ronaldinho-section {
        padding: 30px 15px;
    }

    .category-title,
    .section-title,
    .contact-box h2,
    .tech-section h2 {
        font-size: 22px !important;
        /* Standardize all titles to pixels */
    }

    /* Compact Tech Items for Mobile */
    .tech-item {
        padding: 15px;
        min-height: auto;
    }

    .tech-icon {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .tech-item h4 {
        font-size: 16px;
        margin-bottom: 5px;
    }

    /* Dashboard Mobile 375px */
    .dashboard-section {
        padding: 40px 15px;
    }

    .success-carousel-card {
        padding: 25px;
        min-height: auto;
    }

    .game-banner-card {
        padding: 30px 20px !important;
        min-height: 550px !important;
        /* Increased height for mobile to prevent button overlap */
        justify-content: flex-start !important;
        gap: 20px;
        margin-bottom: 30px !important;
        /* Extra space below card */
    }

    .game-card-content {
        max-width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .game-actions-row {
        margin-top: 40px;
        /* Force spacing from carousel */
        padding-bottom: 20px;
    }

    .big-metric {
        font-size: 42px;
    }

    .big-metric .unit {
        font-size: 18px;
        display: block;
        /* Stack unit on mobile */
        margin-top: 5px;
    }
}

/* --- Login Modal --- */
.login-content {
    max-width: 400px;
    padding: 40px;
    text-align: center;
}

.login-header h2 {
    color: var(--text-white);
    margin-bottom: 10px;
}

.login-header p {
    color: var(--text-grey);
    margin-bottom: 30px;
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-white);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    font-family: var(--font-body);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.full-width {
    width: 100%;
    margin-top: 10px;
}

.login-footer {
    margin-top: 20px;
    text-align: center;
}

.login-footer a {
    color: var(--text-grey);
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s;
}

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

/* --- Password Toggle --- */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input {
    padding-right: 40px !important;
}

.password-toggle-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-grey);
    font-size: 18px;
    user-select: none;
    transition: color 0.3s;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.password-toggle-icon:hover {
    color: var(--primary);
}