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

        body {
            background-color: #231e3f;
            background-image: radial-gradient(
                ellipse at 50% 40%, 
                rgba(115, 99, 218, 0.25) 0%, 
                #231e3f 60%
            );

            font-family: 'Lilita One', cursive;
            min-height: 100vh;
            color: #fff;
            display: flex;
            flex-direction: column;
        }

        .container {
            max-width: 900px;
            margin: 0 auto;
            padding: 10px;
            flex-grow: 1;
            transition: max-width 0.5s ease-in-out;
        }

        .container.draft-started {
            max-width: 98%;
        }

        .header {
            margin-bottom: 30px;
            position: relative;
        }

        .top-nav-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 25px;
            background: rgba(0,0,0,0.25);
            border-radius: 20px;
            margin-bottom: 30px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            width: 98vw;
            position: relative;
            left: 50%;
            transform: translateX(-50%);
            height: 5vw;
            min-height: 50px;
            z-index: 1001;
        }

        .nav-center-title {
            text-align: center;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
        }

        .nav-links-right {
             position: relative;
        }

        #languageSelector {
            cursor: pointer;
        }
        .language-option {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 15px;
            transition: background-color 0.2s ease;
            color: #fff;
        }
        .language-option:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }
        .lang-flag {
            width: 24px;
            height: auto;
            border-radius: 4px;
            vertical-align: middle;
        }
        #selectedLanguage {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            background-color: rgba(0,0,0,0.3);
            border-radius: 15px;
            border: 1px solid rgba(255,255,255,0.1);
        }
        #languageDropdown {
            display: none;
            position: absolute;
            top: 110%;
            right: 0;
            background: #2c2c2c;
            border-radius: 10px;
            overflow: hidden;
            z-index: 1001;
            border: 1px solid rgba(255,255,255,0.2);
        }
        #languageSelector.open #languageDropdown {
            display: block;
        }

        .header h1 {
            font-size: 2.2rem;
            margin-bottom: 0;
            color: #fff;
            position: relative;
            text-align: center;
        }

        .author-credit {
            font-size: 1rem;
            color: rgba(255, 255, 255, 0.9);
            font-weight: normal;
            display: block;
            text-align: center;
            margin: -2px auto 0;
            width: fit-content;
        }
        
        .setup-panel, .draft-team-panel, .recommendations, .current-pick, .phase-indicator {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 30px;
            margin-bottom: 0;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        .setup-panel {
            margin-bottom: 30px;
            position: relative;
        }
        #setup { z-index: 2; }
        #global-stats-panel { z-index: 1; }

        .setup-grid {
            display: grid;
            gap: 20px;
            grid-template-columns: 1fr;
        }

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

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            font-size: 1.1rem;
        }
        
        .form-group label.centered-label {
            text-align: center;
        }

        .form-group select, .form-group input {
            width: 100%;
            padding: 12px 16px;
            border: none;
            border-radius: 25px;
            background: rgba(255, 255, 255, 0.9);
            color: #333;
            font-size: 1rem;
            transition: all 0.3s ease;
            font-family: 'Lilita One', cursive;
        }

        .form-group select:focus, .form-group input:focus, .current-pick input:focus {
            outline: none;
            transform: scale(1.02);
            box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
        }
        
        .custom-select-container {
            position: relative;
            width: 100%;
            font-family: 'Lilita One', cursive;
        }

        .custom-select-trigger {
            width: 100%;
            padding: 12px 16px;
            border: none;
            border-radius: 25px;
            background: rgba(255, 255, 255, 0.9);
            color: #333;
            font-size: 1rem;
            transition: all 0.3s ease;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .custom-select-trigger:hover {
            transform: scale(1.02);
            box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
        }
        
        .custom-select-trigger .trigger-content {
            display: flex;
            align-items: center;
            gap: 10px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .custom-select-trigger img {
            width: 24px;
            height: 24px;
        }

        .custom-options-wrapper {
            display: none;
            position: absolute;
            top: 105%;
            left: 0;
            right: 0;
            z-index: 10;
            background: #2c2c2c;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 15px;
            max-height: 300px;
            overflow-y: auto;
            backdrop-filter: blur(5px);
        }

        .custom-select-container.open .custom-options-wrapper {
            display: block;
        }

        .custom-optgroup-label {
            padding: 10px 15px;
            font-size: 0.9rem;
            text-transform: uppercase;
            color: #f1c40f;
            font-weight: bold;
        }
        
        .custom-option {
            padding: 10px 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 12px;
            transition: background-color 0.2s ease;
        }

        .custom-option:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        .custom-option.selected {
            background-color: rgba(241, 196, 15, 0.2);
        }

        .custom-option img {
            width: 28px;
            height: 28px;
            flex-shrink: 0;
        }
        
        .custom-option .map-name {
            color: #fff;
            font-size: 1rem;
        }

        .side-selection {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin-top: 10px;
        }

        .side-image {
            width: 100%;
            max-width: 140px;
            cursor: pointer;
            border-radius: 15px;
            border: 4px solid transparent;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }

        .side-image:hover:not(.disabled) {
            transform: translateY(-3px) scale(1.05);
            border-color: #f1c40f;
            box-shadow: 0 8px 25px rgba(241, 196, 25, 0.4);
        }

        .side-image.disabled {
            cursor: not-allowed;
            opacity: 0.4;
            filter: grayscale(100%);
        }

        .btn {
            background: linear-gradient(45deg, #ff6b6b, #ee5a24);
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 25px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            font-family: 'Lilita One', cursive;
        }

        .btn:disabled {
            background: linear-gradient(45deg, #555, #333);
            cursor: not-allowed;
            opacity: 0.6;
        }

        .btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.3);
        }

        .btn.btn-undo {
            background: linear-gradient(45deg, #007bff, #0056b3);
        }
        
        .btn.btn-success {
             background: linear-gradient(45deg, #28a745, #218838);
        }

        .btn.btn-icon {
            width: 48px;
            height: 48px;
            padding: 0;
            border-radius: 50%;
            font-size: 1.2rem;
            line-height: 1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .main-content {
            display: grid;
            grid-template-columns: 1fr;
            gap: 30px;
            margin-bottom: 30px;
        }

        .main-content.draft-active {
            grid-template-columns: 1fr 1fr;
        }
        
        .draft-column, .suggestions-column {
            display: flex;
            flex-direction: column;
            gap: 30px;
            min-width: 0;
        }

        .draft-interface-grid {
            display: grid;
            grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
            align-items: start;
            gap: 20px;
        }

        .draft-team-panel {
            padding: 20px;
        }
        
        .draft-map-panel {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }

        .draft-section-title {
            margin: 10px 0;
            color: #fff;
            text-align: center;
            text-transform: uppercase;
            font-size: 1rem;
            letter-spacing: 1px;
        }

        .team-header {
            text-align: center;
            margin-bottom: 15px;
            font-size: 1.5rem;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: #fff;
        }

        .team-header.blue { color: #3498db; }
        .team-header.red { color: #e74c3c; }

        .brawler-grid {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            align-items: center;
            min-height: 80px;
        }

        #blueBans .brawler-grid, #redBans .brawler-grid {
            min-height: 50px;
        }

        .brawler-slot {
            background: transparent;
            border: 2px dashed rgba(255, 255, 255, 0.15);
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        #blueBans .brawler-slot, #redBans .brawler-slot {
            width: 50px;
            height: 50px;
        }
        #bluePicks .brawler-slot, #redPicks .brawler-slot {
            width: 80px;
            height: 80px;
        }
        
        .brawler-slot.filled {
            background: transparent;
            border: none;
            transform: scale(1.05);
            box-shadow: none;
        }
        
        .brawler-slot img {
            height: 100%;
            width: 100%;
            max-width: 100%;
            object-fit: contain;
            border-radius: 12px;
        }

        .brawler-slot.next-action-slot {
            border: 4px solid #fff;
            box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
            animation: pulse-highlight 1.5s infinite alternate;
        }

        .recommendations {
            padding: 25px;
        }

        .recommendations h3 {
            margin-bottom: 20px;
            font-size: 1.5rem;
            text-align: center;
            color: #fff;
        }

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

        .rec-card {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            padding: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .rec-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.2);
            background: rgba(255, 255, 255, 0.1);
        }
        
        .rec-card.banned-rec {
            cursor: not-allowed;
            opacity: 0.5;
        }

        .rec-card.banned-rec:hover {
            transform: none;
            box-shadow: none;
            background: rgba(255, 255, 255, 0.05);
        }
        
        .brawler-icon {
            width: 64px;
            height: 64px;
            border-radius: 12px;
            background-color: rgba(0,0,0,0.2);
            margin-left: 6px;
            flex-shrink: 0;
        }

        .rec-text-content {
            flex-grow: 1;
        }

        .rec-card h4 {
            font-size: 1.2rem;
            margin-bottom: 10px; 
            color: #fff;
        }

        .rec-stats {
            font-size: 0.9rem;
            opacity: 0.8;
            line-height: 1.4;
        }

        .current-pick {
            padding: 25px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
            animation: pulse 2s infinite;
            position: relative;
            z-index: 2;
        }
        
        .prompt-input-line {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: wrap;
            gap: 15px;
            position: relative;
        }

        .current-pick h3 {
            font-size: 1.8rem;
            color: #fff;
            margin: 0;
        }

        .current-pick input {
            max-width: 300px;
            min-width: 200px;
            padding: 12px 16px;
            border: none;
            border-radius: 25px;
            background: rgba(255, 255, 255, 0.9);
            color: #333;
            font-size: 1rem;
            transition: all 0.3s ease;
            font-family: 'Lilita One', cursive;
            margin-bottom: 0;
        }

        .current-pick .btn-group {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .hidden { display: none !important; }

        .phase-indicator {
            padding: 15px;
            width: 100%;
            text-align: center;
        }

        .phase-indicator h2 {
            font-size: 1.5rem;
            color: #fff;
            margin-bottom: 5px;
            line-height: 1.4;
        }

        #mapImageContainer {
            text-align: center;
            width: 100%;
        }

        #mapImage {
            width: 100%;
            max-height: 430px; 
            height: auto;
            object-fit: contain; 
            border-radius: 15px;
            border: 2px solid rgba(255, 255, 255, 0.2);
            background-color: rgba(0,0,0,0.2); 
            display: none; 
        }

        footer {
            text-align: center;
            padding: 20px;
            margin-top: 40px;
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.9rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .top-brawler-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            background: rgba(0, 0, 0, 0.2);
            padding: 15px;
            border-radius: 15px;
            width: 130px; 
            text-align: center;
        }

        .top-brawler-card img {
            width: 80px;
            height: 80px;
            border-radius: 12px;
        }

        .top-brawler-card .brawler-name {
            font-size: 1.1rem;
            color: #fff;
            text-align: center;
        }

        .top-brawler-card .brawler-count {
            font-size: 1rem;
            color: #f1c40f;
            font-weight: bold;
        }
        
        .suggestions-list {
            display: none;
            position: absolute;
            top: 100%;
            background: #2c2c2c;
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 15px;
            max-height: 250px;
            overflow-y: auto;
            z-index: 9999;
            box-sizing: border-box;
        }

        .suggestion-item {
            display: flex;
            align-items: center;
            padding: 8px 12px;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }
        
        .suggestion-item.selected {
            background-color: rgba(255, 255, 255, 0.15);
        }

        .suggestion-item:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }

        .suggestion-item img {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            margin-right: 15px;
        }

        .suggestion-item span {
            font-size: 1rem;
            color: #fff;
        }

        .loading-indicator {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            margin: 20px 0;
        }
        .loading-indicator span {
            font-size: 1rem;
            color: rgba(255, 255, 255, 0.8);
        }
        .progress-container {
            width: 80%;
            max-width: 400px;
            height: 8px;
            background: rgba(0,0,0,0.25);
            border-radius: 4px;
            overflow: hidden;
            position: relative;
        }
        .progress-bar {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 40%;
            background: #f1c40f;
            border-radius: 4px;
            animation: indeterminate-progress 1.5s infinite ease-in-out;
        }
        
        /* --- Burger Menu & Overlay --- */
        .burger-menu {
            display: flex;
            flex-direction: column;
            justify-content: space-around;
            width: 2.2rem;
            height: 2.2rem;
            background: transparent;
            border: none;
            cursor: pointer;
            padding: 0;
            z-index: 2010;
            position: relative;
        }
        .burger-menu span {
            width: 2.2rem;
            height: 0.25rem;
            background: #fff;
            border-radius: 10px;
            transition: all 0.3s linear;
            position: relative;
            transform-origin: 1px;
        }
        .burger-menu.active span:nth-child(1) { transform: rotate(45deg); }
        .burger-menu.active span:nth-child(2) { opacity: 0; transform: translateX(20px); }
        .burger-menu.active span:nth-child(3) { transform: rotate(-45deg); }

        .menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(10, 10, 10, 0.95);
            backdrop-filter: blur(8px);
            z-index: 2000;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.4s ease-in-out;
        }
        .menu-overlay.open { opacity: 1; pointer-events: auto; }
        .menu-overlay a {
            color: #fff;
            text-decoration: none;
            font-size: 2.5rem;
            margin: 15px 0;
            transition: color 0.3s ease, transform 0.3s ease;
        }

        .menu-overlay a:hover, .menu-overlay a.active { color: #f1c40f; transform: scale(1.05); }
        
        .menu-close {
            position: absolute;
            top: 30px;
            right: 50px;
            font-size: 3rem;
            color: #fff;
            cursor: pointer;
            transition: color 0.3s ease, transform 0.3s ease;
            z-index: 2010;
        }

        .menu-close:hover {
            color: #f1c40f;
            transform: scale(1.1);
        }

        @keyframes indeterminate-progress {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(250%); }
        }

        @keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }
        @keyframes pulse-highlight { 0%, 100% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.8); } 50% { box-shadow: 0 0 30px rgba(255, 255, 255, 1); } }

        @media (min-width: 768px) {
            .setup-grid {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width: 1024px) {
             .main-content.draft-active {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 900px) {
            .draft-interface-grid {
                grid-template-columns: 1fr;
            }
            .draft-map-panel { order: 1; }
            .draft-team-panel.blue { order: 2; }
            .draft-team-panel.red { order: 3; }
        }

        @media (max-width: 768px) {
            .top-nav-bar {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
                gap: 15px;
                height: auto;
                padding: 15px;
            }
            .nav-center-title {
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
            }
            .nav-links-right { order: 3; }
            .burger-menu { order: 1; }
            .nav-center-title { order: 2; }
            .rec-grid {
                grid-template-columns: 1fr;
            }
        }
         @media (max-width: 480px) {
             .nav-center-title h1 { font-size: 1.5rem; }
             .author-credit { font-size: 0.8rem; }
        }