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

body,
html {
    height: 100%;
    font-family: 'Rajdhani', sans-serif;
    color: #fff;
    background: #000;
    overflow: hidden; /* Prevent scrolling */
}

/* Animated background particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #2BCC0B;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

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

.hero {
    background: url('battle.jpg') no-repeat center right/cover;
    background-position: 65% center;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    position: relative;
    overflow: hidden; /* Prevent scrolling inside hero */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.8) 25%, rgba(0, 0, 0, 0.4) 45%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0.1) 80%, rgba(0, 0, 0, 0.05) 100%);
    z-index: 1;
}

/* Animated border effect */
.overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #2BCC0B, #000, #2BCC0B, #000);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    opacity: 0.1;
    z-index: -1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 15px; /* Further reduced gap */
    max-width: 1300px; /* Further reduced max-width */
    padding: 12px; /* Further reduced padding */
    margin-top: 40px; /* Increased margin to push content down */
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Further reduced spacing between elements */
    max-width: 650px; /* Further reduced width */
    margin-top: 80px; /* Increased space at the top for player avatars */
    padding-top: 20px; /* Additional padding since logo is moved */
}    .sidebar-content {
        flex: 0 0 380px; /* Further reduced width */
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* Changed from center to start at the top */
        height: 100%;
        max-height: 65vh; /* Further reduced max height */
        overflow-y: auto;
        margin-top: 196px; /* Adjusted to align with Live Stream Battle text */
        padding-top: 15px; /* Added padding to create more space */
    }
    
    /* Added for better coefficients visibility */
    .accordion-content.active {
        max-height: 250px; /* Adjusted for normal desktop view */
    }
    
    .coefficients-content.active {
        max-height: 200px; /* Adjusted for normal desktop view */
    }

.logo-section {
    position: absolute;
    top: 40px;
    left: 40px;
    text-align: left;
    padding: 0.5rem;
    margin: 0;
    width: 100%; /* Changed from auto to 100% */
    max-width: 180px; /* Reduced max width */
    z-index: 10; /* Increased to ensure it appears above all content */
    display: block !important; /* Ensure it's displayed */
    border-radius: 8px;
}

.battle-icon {
    font-size: 2.5rem;
    color: #2BCC0B;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(43, 204, 11, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1 !important; /* Ensure opacity is 100% */
    width: 100%; /* Added to ensure proper width */
}

.logo-image {
    max-width: 78px; /* Further reduced for top left position */
    width: 100%; /* Added to ensure the image takes full width */
    height: auto;
    filter: drop-shadow(0 0 20px rgba(43, 204, 11, 0.8)) drop-shadow(0 0 40px rgba(0, 0, 0, 0.8));
    opacity: 1 !important; /* Ensure opacity is 100% */
    visibility: visible !important; /* Ensure visibility */
    display: block; /* Ensure it's displayed as block */
}



.title-section {
    text-align: center;
    padding: 0.5rem;
    margin-bottom: 10px;
    width: 100%;
    position: relative; /* Added to position the logo relative to this container */
}

.title-logo {
    display: block;
    width: 56%;
    height: auto;
    margin: 0 auto 15px;
    filter: drop-shadow(0 0 15px rgba(43, 204, 11, 0.6));
}

.main-title {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.2rem;
    background: linear-gradient(45deg, #2BCC0B, #ffff00, #2BCC0B);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(43, 204, 11, 0.5), 0 0 60px rgba(0, 0, 0, 0.8);
    line-height: 1.05;
    text-align: center;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
}

h1 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem; /* Further reduced for better fit */
    font-weight: 900;
    margin-bottom: 0.2rem;
    background: linear-gradient(45deg, #2BCC0B, #ffff00, #2BCC0B);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGlow 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(43, 204, 11, 0.5), 0 0 60px rgba(0, 0, 0, 0.8);
    line-height: 1.05; /* Further reduced line height */
    text-align: center;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
}

@keyframes textGlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

h1 .vs-text {
    color: #ff0000 !important;
    font-size: 1.2em;
    margin: 0 10px;
    -webkit-text-fill-color: #ff0000;
    animation: vsPulse 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes vsPulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 20px rgba(255, 0, 0, 0.7);
    }
    50% {
        transform: scale(1.2);
        text-shadow: 0 0 30px rgba(255, 0, 0, 1);
    }
}

.subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    color: #ccc;
    letter-spacing: 2px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.btn-group {
    display: flex;
    gap: 12px; /* Further reduced gap */
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 650px; /* Further reduced width */
}

.btn {
    background: rgba(43, 204, 11, 0.15);
    border: 2px solid #2BCC0B;
    color: #fff;
    padding: 14px 25px; /* Further reduced padding */
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem; /* Further reduced font size */
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(43, 204, 11, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    background-clip: padding-box;
    flex: 1;
    min-width: 230px; /* Further reduced min-width */
    text-align: center;
}

.btn.main-btn {
    background: rgba(255, 204, 0, 0.15);
    border: 2px solid #ffcc00;
    box-shadow: 0 8px 25px rgba(255, 204, 0, 0.2);
    min-width: 270px; /* Further reduced min-width */
    font-size: 1.2rem; /* Further reduced font size */
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: rgba(43, 204, 11, 0.3);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(43, 204, 11, 0.4);
    border-color: #ffff00;
}

.btn.main-btn:hover {
    background: rgba(255, 204, 0, 0.3);
    box-shadow: 0 12px 35px rgba(255, 204, 0, 0.4);
    border-color: #ffffff;
}

.btn i {
    margin-right: 10px;
}

/* Rules Accordion */
.rules-container {
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 2px solid rgba(43, 204, 11, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 5; /* Ensure it's above the overlay */
}

.rules-accordion {
    width: 100%;
}

.accordion-item {
    margin-bottom: 5px;
}

.accordion-header {
    background: rgba(43, 204, 11, 0.1);
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(43, 204, 11, 0.2);
}

.accordion-header:hover {
    background: rgba(43, 204, 11, 0.2);
}

.accordion-header.active {
    background: rgba(43, 204, 11, 0.3);
    border-bottom: 1px solid rgba(43, 204, 11, 0.4);
}

.accordion-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    color: #2BCC0B;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 5;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease-out;
}

.accordion-content.active {
    max-height: 250px;
    overflow-y: auto;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0);
    transition: all 0.3s ease-out;
}

/* Ensure proper accordion state management */
.accordion-content:not(.active) {
    max-height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    overflow: hidden !important;
}

.accordion-content.active {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Force accordion headers to be clickable */
.accordion-header {
    cursor: pointer !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: auto !important;
}

/* Ensure accordion content doesn't interfere with other elements */
.rules-container {
    isolation: isolate;
}

/* Ensure the rules list is visible with proper spacing */
.rules-list li {
    padding: 10px 0;
    padding-left: 25px;
}

.rules-language {
    display: none;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.rules-language.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure rules language content is properly shown in accordion */
.accordion-content.active .rules-language.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Accordion content wrapper styling */
.accordion-content-inner {
    padding: 15px 20px;
}

/* Ensure proper visibility chain for nested content */
.accordion-content.active .accordion-content-inner {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force accordion content to show when active regardless of screen size */
.accordion-content.active .rules-language.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.rules-list {
    list-style: none;
    padding: 0;
}

.rules-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(43, 204, 11, 0.1);
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative;
    padding-left: 25px;
}

.rules-list li:last-child {
    border-bottom: none;
}

.rules-list li::before {
    content: '⚡';
    position: absolute;
    left: 0;
    top: 10px;
    font-size: 0.9rem;
    color: #2BCC0B;
}

.lang-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

select {
    padding: 10px 15px;
    border-radius: 25px;
    border: 2px solid #2BCC0B;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

select:hover {
    background: rgba(43, 204, 11, 0.2);
    transform: scale(1.05);
}

/* Visual accents */
.visual-accent {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(43, 204, 11, 0.1) 0%, rgba(43, 204, 11, 0) 70%);
    filter: blur(20px);
    z-index: 0;
    animation: pulse 4s ease-in-out infinite;
}

.accent-1 {
    top: 10%;
    left: 10%;
}

.accent-2 {
    bottom: 10%;
    right: 10%;
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Player avatars */
.player-avatars {
    position: absolute;
    top: 0;
    left: 0;
    width: 92%;
    height: auto;
    display: flex;
    justify-content: end; /* Changed from space-between to center */
    align-items: flex-start;
    z-index: 3; /* Higher than overlay */
    padding: 35px 0 30px; /* Added bottom padding for more space */
    pointer-events: none;
    max-height: 28vh; /* Increased height to allow for more space */
    gap: 2vw; /* Add specific gap between avatars - 20% of viewport width */
    margin-bottom: 20px; /* Additional margin at bottom */
}

.player {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.4); /* Add background for better visibility */
    border-radius: 10px;
    padding: 8px;
    pointer-events: auto; /* Enable pointer events for player elements */
}

.player-left {
    position: relative;
    transform: translateX(-30px); /* Move left */
}

.player-right {
    position: relative;
    transform: translateX(30px); /* Move right */
}

.player-avatar {
    width: 110px; /* Reduced further for better fit */
    height: 110px;
    border-radius: 50%;
    border: 3px solid #2BCC0B;
    box-shadow: 0 0 20px rgba(43, 204, 11, 0.8);
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 4px;
}

.player-avatar:hover {
    transform: scale(1.05);
    border-color: #ffff00;
    box-shadow: 0 0 30px rgba(255, 204, 11, 0.8);
}

.player-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.player-name {
    font-family: 'Orbitron', monospace;
    font-size: 1rem; /* Further reduced for better fit */
    color: #2BCC0B;
    text-shadow: 0 0 10px rgba(43, 204, 11, 0.8), 0 0 15px rgba(0, 0, 0, 0.9);
    margin-top: 8px; /* Reduced from 10px */
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    line-height: 1.1;
    background: rgba(0, 0, 0, 0.7); /* Darker background for better visibility */
    padding: 3px 8px;
    border-radius: 5px;
    max-width: 110px; /* Match width of avatar */
}

/* Steps section */
.steps-section {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 15px; /* Further reduced margin */
    gap: 12px; /* Further reduced gap */
}

.step-box {
    flex: 1;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(43, 204, 11, 0.3);
    border-radius: 10px;
    padding: 12px 8px; /* Further reduced padding */
    text-align: center;
    transition: all 0.3s ease;
}

.step-box:hover {
    transform: translateY(-5px);
    border-color: #2BCC0B;
    box-shadow: 0 10px 20px rgba(43, 204, 11, 0.2);
}

.step-number {
    font-size: 1.8rem; /* Reduced from 2rem */
    color: #2BCC0B;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    margin-bottom: 5px; /* Reduced from 10px */
}

.step-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem; /* Reduced from 1.2rem */
    color: #fff;
    margin-bottom: 5px; /* Reduced from 10px */
    text-transform: uppercase;
    font-weight: bold;
    line-height: 1.2; /* Reduced from 1.3 */
}

.promo-codes {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.promo-code {
    background: rgba(43, 204, 11, 0.15);
    color: #2BCC0B;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    border: 1px solid rgba(43, 204, 11, 0.3);
}

/* Specific styling for coefficients section */
.coefficients-content.active {
    max-height: 200px; /* Even shorter for coefficient section */
    overflow-y: auto;
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: #2BCC0B rgba(43, 204, 11, 0.1); /* For Firefox */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, visibility 0s;
}

/* More specific styling for coefficients section to ensure scrolling works in laptop view */
.coefficients-content {
    overflow-y: auto;
    scrollbar-width: thin;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.coefficients-content.active {
    max-height: 180px !important; /* Force the height limitation */
    overflow-y: auto !important; /* Force scrolling */
    opacity: 1 !important;
    visibility: visible !important;
}

/* Enhance scrollbar styling for better visibility */
.coefficients-content::-webkit-scrollbar {
    width: 6px;
}

.coefficients-content::-webkit-scrollbar-track {
    background: rgba(43, 204, 11, 0.1);
    border-radius: 10px;
}

.coefficients-content::-webkit-scrollbar-thumb {
    background-color: #2BCC0B;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

@media (max-width: 1366px) {
    /* Laptop view */
    .coefficients-content.active {
        max-height: 180px;
        overflow-y: auto;
        scrollbar-width: thin;
    }
    
    /* Add more specific styling for laptop view accordions */
    .accordion-content.active {
        max-height: 250px;
        overflow-y: auto;
    }
    
    /* Ensure the rules list is visible with proper spacing */
    .rules-list li {
        padding: 10px 0;
        padding-left: 25px;
    }
}

@media (max-width: 1024px) {
    .title-logo {
        width: 100px;
        margin-bottom: 10px;
    }
}

/* Large screen optimizations - exact same as laptop/desktop */
@media (min-width: 1920px) {
    .content {
        max-width: 1300px;
        gap: 15px;
        padding: 12px;
        margin-top: 40px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .main-content {
        gap: 20px;
        max-width: 650px;
        margin-top: 80px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 20px;
    }
    .sidebar-content {
        flex: 0 0 380px;
        margin-top: 196px;
        max-height: 65vh;
        padding-top: 15px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        height: 100%;
        overflow-y: auto;
    }
    .logo-section {
        position: absolute;
        top: 40px;
        left: 40px;
        text-align: left;
        padding: 0.5rem;
        margin: 0;
        width: 100%;
        max-width: 180px;
        z-index: 10;
        display: block !important;
        border-radius: 8px;
    }
    .logo-image {
        max-width: 78px;
    }
    h1 {
        font-size: 1.8rem;
        line-height: 1.05;
        margin-bottom: 0.2rem;
    }
    .subtitle {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }
    .btn {
        padding: 14px 25px;
        font-size: 1.1rem;
        min-width: 230px;
    }
    .btn.main-btn {
        min-width: 270px;
        font-size: 1.2rem;
    }
    .btn-group {
        gap: 12px;
        max-width: 650px;
    }
    .accordion-header {
        padding: 15px 20px;
    }
    .accordion-header h2 {
        font-size: 1.4rem;
    }
    .rules-list li {
        font-size: 1.1rem;
        padding: 12px 0;
        padding-left: 25px;
    }
    .player-avatar {
        width: 110px;
        height: 110px;
    }
    .player-name {
        font-size: 1rem;
        max-width: 110px;
    }
    .player-avatars {
        padding: 35px 0 30px;
        gap: 2vw;
        max-height: 28vh;
        justify-content: end;
        width: 92%;
        margin-bottom: 20px;
    }
    .steps-section {
        margin-top: 15px;
        gap: 12px;
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
    .step-box {
        padding: 12px 8px;
        flex: 1;
    }
    .step-number {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }
    .step-title {
        font-size: 1.1rem;
        margin-bottom: 5px;
        line-height: 1.2;
    }
    .accordion-content.active {
        max-height: 250px;
    }
    .coefficients-content.active {
        max-height: 200px;
    }
    .title-section {
        text-align: center;
        padding: 0.5rem;
        margin-bottom: 10px;
        width: 100%;
        position: relative;
    }
    .title-logo {
        display: block;
        width: 56%;
        height: auto;
        margin: 0 auto 15px;
    }
}

@media (min-width: 2560px) {
    .content {
        max-width: 2000px; /* Increased for 4K */
        gap: 30px; /* Increased gap */
        padding: 20px; /* Increased padding */
        margin-top: 60px; /* Increased margin */
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .main-content {
        gap: 40px; /* Doubled gap */
        max-width: 1000px; /* Increased width */
        margin-top: 120px; /* Increased margin */
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 30px; /* Increased padding */
    }
    .sidebar-content {
        flex: 0 0 580px; /* Increased width */
        margin-top: 300px; /* Increased margin to align properly */
        max-height: 65vh;
        padding-top: 25px; /* Increased padding */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        height: 100%;
        overflow-y: auto;
    }
    .logo-section {
        position: absolute;
        top: 60px; /* Increased top position */
        left: 60px; /* Increased left position */
        text-align: left;
        padding: 1rem; /* Increased padding */
        margin: 0;
        width: 100%;
        max-width: 280px; /* Increased max width */
        z-index: 10;
        display: block !important;
        border-radius: 12px; /* Increased border radius */
    }
    .logo-image {
        max-width: 120px; /* Significantly increased logo size */
    }
    h1 {
        font-size: 3.5rem; /* Significantly increased font size */
        line-height: 1.05;
        margin-bottom: 0.4rem; /* Increased margin */
    }
    .main-title {
        font-size: 3.5rem; /* Significantly increased font size */
        margin-bottom: 0.4rem; /* Increased margin */
    }
    .subtitle {
        font-size: 2.8rem; /* Increased font size */
        margin-bottom: 4rem; /* Increased margin */
    }
    .btn {
        padding: 20px 40px; /* Increased padding */
        font-size: 1.6rem; /* Increased font size */
        min-width: 350px; /* Increased min width */
    }
    .btn.main-btn {
        min-width: 400px; /* Increased min width */
        font-size: 1.8rem; /* Increased font size */
    }
    .btn-group {
        gap: 20px; /* Increased gap */
        max-width: 1000px; /* Increased max width */
    }
    .accordion-header {
        padding: 25px 30px; /* Increased padding */
    }
    .accordion-header h2 {
        font-size: 2rem; /* Increased font size */
    }
    .rules-list li {
        font-size: 1.6rem; /* Increased font size */
        padding: 18px 0; /* Increased padding */
        padding-left: 35px; /* Increased left padding */
    }
    .visual-accent {
        width: 450px; /* Increased size */
        height: 450px; /* Increased size */
    }
    .player-avatar {
        width: 160px; /* Significantly increased avatar size */
        height: 160px; /* Significantly increased avatar size */
    }
    .player-name {
        font-size: 1.5rem; /* Increased font size */
        max-width: 160px; /* Increased max width to match avatar */
        padding: 5px 12px; /* Increased padding */
    }
    .player-avatars {
        padding: 50px 0 45px; /* Increased padding */
        gap: 4vw; /* Increased gap */
        max-height: 30vh; /* Slightly increased height */
        justify-content: end; /* Changed from 'end' to 'space-between' for better alignment */
        width: 87%; /* Increased width */
        margin-bottom: 30px; /* Increased margin */
        margin-right: 0;
    }
    .steps-section {
        margin-top: 25px; /* Increased margin */
        gap: 20px; /* Increased gap */
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
    .step-box {
        padding: 20px 15px; /* Increased padding */
        flex: 1;
    }
    .step-number {
        font-size: 2.8rem; /* Increased font size */
        margin-bottom: 10px; /* Increased margin */
    }
    .step-title {
        font-size: 1.6rem; /* Increased font size */
        margin-bottom: 10px; /* Increased margin */
        line-height: 1.3; /* Slightly increased line height */
    }
    .promo-code {
        font-size: 1.3rem; /* Increased font size */
        padding: 8px 15px; /* Increased padding */
    }
    .accordion-content.active {
        max-height: 400px; /* Increased max height */
    }
    .coefficients-content.active {
        max-height: 350px; /* Increased max height */
    }
    .title-section {
        text-align: center;
        padding: 1rem; /* Increased padding */
        margin-bottom: 20px; /* Increased margin */
        width: 100%;
        position: relative;
    }
    .title-logo {
        display: block;
        width: 70%; /* Increased width */
        height: auto;
        margin: 0 auto 25px; /* Increased margin */
    }
}

/* Responsive design */
@media (max-width: 1024px) {
    .content {
        flex-direction: column;
        gap: 20px;
        padding: 15px 10px;
    }
    .main-content {
        max-width: 100%;
        order: 1;
        margin-top: 146px; /* Increased margin for more space between avatars and content */
        gap: 15px; /* Reduce gap between elements */
    }
    .sidebar-content {
        flex: none;
        width: 100%;
        max-width: 100%;
        max-height: none;
        order: 2;
        margin-top: 0; /* Adjusted for mobile - removes top margin since it's now below main content */
        position: relative;
        z-index: 5; /* Increased z-index to ensure visibility */
    }
    .hero {
        background: url('battle.jpg') no-repeat center right;
        background-position: 55% center;
        min-height: 100vh;
        height: 100vh; /* Keep it 100vh */
        max-height: 100vh;
        overflow: auto; /* Allow scrolling if needed */
    }
    .overlay {
        background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 25%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.15) 75%, rgba(0, 0, 0, 0.05) 100%);
        position: fixed; /* Make overlay fixed to ensure it covers the entire viewport */
        height: 100%; /* Ensure full height */
        width: 100%; /* Ensure full width */
        top: 0;
        left: 0;
        z-index: 1; /* Keep the same z-index */
    }
    .player-avatars {
        padding: 20px 20px 0;
    }
    
    .player-avatar {
        width: 100px; /* Smaller on tablets */
        height: 100px;
    }
    
    .player-name {
        font-size: 1rem; /* Smaller on tablets */
    }
    .steps-section {
        flex-direction: column;
        gap: 10px;
    }
    .step-box {
        padding: 10px;
    }
    
    h1 {
        font-size: 2rem; /* Smaller on tablets */
    }
    
    .logo-image {
        max-width: 100px; /* Smaller on tablets */
    }
}

@media (max-width: 768px) {
    body, html {
        overflow-y: auto;
        overflow-x: hidden;
    }

    .hero {
        background: url('battle.jpg') no-repeat center right;
        background-position: 50% center;
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        padding: 10px;
        overflow: auto;
    }
    
    .overlay {
        background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 30%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 70%, rgba(0, 0, 0, 0.05) 100%);
        position: fixed;
        height: 100%;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 1;
    }
    .content {
        padding: 15px 10px;
        gap: 15px;
        max-width: 100%;
        position: relative;
        z-index: 2; /* Ensure content is above overlay */
    }
    /* Reposition logo section to be more visible and centered in mobile view */
    .logo-section {
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        max-width: 180px;
        padding: 0.4rem;
        z-index: 10;
        display: block !important;
        width: 100%; /* Ensure width is 100% */
        text-align: center;
    }
    .logo-image {
        max-width: 100px;
        margin: 0 auto;
    }
    h1 {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    .main-title {
        font-size: 2.2rem;
        margin-top: 15px; /* Add spacing below logo */
    }
    .btn {
        padding: 14px 18px;
        font-size: 0.95rem;
        min-width: 180px;
    }
    .btn.main-btn {
        min-width: 200px;
        font-size: 1rem;
    }
    .btn-group {
        gap: 12px;
        flex-direction: column;
        align-items: center;
    }
    .rules-container {
        margin-top: 15px;
        position: relative;
        z-index: 5; /* Increased z-index to make sure it appears above the overlay */
    }
    .accordion-header {
        padding: 12px;
        position: relative;
        z-index: 6; /* Ensure accordion headers are clickable */
    }
    .accordion-header h2 {
        font-size: 1rem;
    }
    .accordion-content-inner {
        padding: 0 12px;
    }
    .rules-list li {
        font-size: 0.9rem;
        padding: 10px 0;
        padding-left: 22px;
    }
    .visual-accent {
        width: 150px;
        height: 150px;
    }
    .lang-toggle {
        top: 10px;
        right: 10px;
    }
    select {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    .player-avatar {
        width: 90px;
        height: 90px;
        border-width: 2px;
    }
    .player-name {
        font-size: 0.9rem;
        margin-top: 8px;
    }
    .player-avatars {
        padding: 60px 0 25px; /* Increased top padding to make room for centered logo */
        gap: 20vw; /* Increased gap between avatars */
        margin-bottom: 15px; /* Added margin at the bottom */
        max-height: 26vh; /* Increased max height */
        justify-content: center; /* Center avatars horizontally */
    }
    .steps-section {
        margin-top: 15px;
    }
    .step-number {
        font-size: 1.4rem;
    }
    .step-title {
        font-size: 0.9rem;
    }
    .title-logo {
        width: 90px;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .hero {
        background: url('battle.jpg') no-repeat center right;
        background-position: center;
        padding: 5px;
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        overflow: auto;
    }
    
    /* Mobile scrollbar improvements */
    .accordion-content::-webkit-scrollbar {
        width: 4px;
    }
    
    .accordion-content::-webkit-scrollbar-track {
        background: rgba(43, 204, 11, 0.1);
        border-radius: 5px;
    }
    
    .accordion-content::-webkit-scrollbar-thumb {
        background-color: #2BCC0B;
        border-radius: 5px;
    }
    
    .coefficients-content::-webkit-scrollbar {
        width: 4px;
    }
    
    .coefficients-content::-webkit-scrollbar-track {
        background: rgba(43, 204, 11, 0.1);
        border-radius: 5px;
    }
    
    .coefficients-content::-webkit-scrollbar-thumb {
        background-color: #2BCC0B;
        border-radius: 5px;
    }
    
    .overlay {
        background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 25%, rgba(0, 0, 0, 0.4) 45%, rgba(0, 0, 0, 0.2) 65%, rgba(0, 0, 0, 0.1) 85%, rgba(0, 0, 0, 0.05) 100%);
        position: fixed;
        height: 100%;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 1;
    }
    .content {
        padding: 10px 5px;
        gap: 10px;
        margin-top: 30px;
        position: relative; /* Ensure content is positioned above the overlay */
        z-index: 2; /* Higher than the overlay */
    }
    
    /* Main content margin adjustment for mobile */
    .main-content {
        margin-top: 134px; /* Space between avatars and content */
    }
    
    /* Fix for battle rules in mobile view */
    .accordion-content.active {
        max-height: 300px !important; /* Increased height for mobile */
        overflow-y: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
    
    /* Ensure accordion content is properly hidden when not active */
    .accordion-content:not(.active) {
        opacity: 0 !important;
        visibility: hidden !important;
        max-height: 0 !important;
        overflow: hidden !important;
    }
    
    /* Logo centered at top */
    .logo-section {
        top: 5px;
        left: 50%;
        transform: translateX(-50%);
        max-width: 180px;
        padding: 0.4rem;
        z-index: 10;
        display: block !important;
        width: 100%; /* Ensure width is 100% */
        text-align: center;
    }
    .logo-image {
        max-width: 45%;
        margin: 0 auto;
    }
    h1 {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    .main-title {
        font-size: 2.2rem;
        margin-top: 15px; /* Add spacing below logo */
    }
    .btn {
        padding: 14px 18px;
        font-size: 0.95rem;
        min-width: 180px;
    }
    .btn.main-btn {
        min-width: 200px;
        font-size: 1rem;
    }
    .btn-group {
        gap: 12px;
        flex-direction: column;
        align-items: center;
    }
    .rules-container {
        margin-top: 15px;
        position: relative;
        z-index: 5; /* Increased z-index to make sure it appears above the overlay */
    }
    .accordion-header {
        padding: 12px;
        position: relative;
        z-index: 6; /* Ensure accordion headers are clickable */
    }
    .accordion-header h2 {
        font-size: 1rem;
    }
    .accordion-content-inner {
        padding: 0 12px;
    }
    .rules-list li {
        font-size: 0.9rem;
        padding: 10px 0;
        padding-left: 22px;
    }
    .visual-accent {
        width: 150px;
        height: 150px;
    }
    .lang-toggle {
        top: 10px;
        right: 10px;
    }
    select {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    .player-avatar {
        width: 90px;
        height: 90px;
        border-width: 2px;
    }
    .player-name {
        font-size: 0.9rem;
        margin-top: 8px;
    }
    .player-avatars {
        padding: 60px 0 25px; /* Increased top padding to make room for centered logo */
        gap: 20vw; /* Increased gap between avatars */
        margin-bottom: 15px; /* Added margin at the bottom */
        max-height: 26vh; /* Increased max height */
        justify-content: center; /* Center avatars horizontally */
        width: 100%; /* Ensure full width */
    }
    .steps-section {
        margin-top: 15px;
    }
    .step-number {
        font-size: 1.4rem;
    }
    .step-title {
        font-size: 0.9rem;
    }
    .title-logo {
        width: 90px;
        margin-bottom: 8px;
    }
}

@media (max-width: 360px) {
    /* Logo centered at top */
    .logo-section {
        top: 5px;
        left: 50%;
        transform: translateX(-50%);
        max-width: 120px;
        padding: 0.2rem;
        z-index: 10;
        display: block !important;
        width: 100%; /* Ensure width is 100% */
        text-align: center;
    }
    
    /* Ensure battle rules visibility on smallest screens */
    .accordion-content.active {
        max-height: 280px !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        overflow-y: auto !important;
    }
    
    .coefficients-content.active {
        max-height: 280px !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        overflow-y: auto !important;
    }
    
    /* Ensure accordion content is hidden when not active */
    .accordion-content:not(.active) {
        opacity: 0 !important;
        visibility: hidden !important;
        max-height: 0 !important;
        overflow: hidden !important;
    }
    
    .coefficients-content:not(.active) {
        opacity: 0 !important;
        visibility: hidden !important;
        max-height: 0 !important;
        overflow: hidden !important;
    }
    .logo-image {
        max-width: 100px;
        width: 100%; /* Ensure width is 100% */
        opacity: 1 !important;
        visibility: visible !important;
        display: block; /* Ensure it's displayed as block */
        margin: 0 auto;
    }
    h1 {
        font-size: 1.1rem;
    }
    .main-title {
        font-size: 1.5rem;
        margin-top: 5px; /* Add spacing below logo */
    }
    .subtitle {
        font-size: 1.1rem;
    }
    .btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    .accordion-header {
        padding: 10px;
    }
    .accordion-header h2 {
        font-size: 0.95rem;
    }
    .rules-list li {
        font-size: 0.85rem;
    }
    .player-avatar {
        width: 60px; /* Even smaller for better fit */
        height: 60px;
        border-width: 1px;
    }
    .player-name {
        font-size: 0.75rem; /* Smaller font */
        margin-top: 5px;
    }
    .player-avatars {
        padding: 50px 0 15px; /* Increased top padding for logo */
        gap: 30vw; /* Increased gap between avatars for tiny phones */
        margin-bottom: 10px;
        justify-content: center; /* Center avatars horizontally */
    }
    
    /* Main content adjustment for very small screens */
    .main-content {
        margin-top: 80px; /* Reduced space due to smaller avatars */
    }
    .step-box {
        padding: 10px;
    }
    .step-number {
        margin-bottom: 5px;
    }
    .step-title {
        font-size: 0.8rem;
    }
    .title-logo {
        width: 70px;
        margin-bottom: 5px;
    }
}
