:root {
    --bg-color: #0d1117;
    --panel-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-color: #e6edf3;
    --accent-blue: #2f81f7;
    --accent-red: #da3633;
    --glass-bg: rgba(13, 17, 23, 0.7);
    --glass-border: rgba(255, 255, 255, 0.15);

    /* Bot Colors */
    --plp-color: #FFC107;
    --dd-color: #00BCD4;
    --b360-color: #E91E63;
    --meta-color: #8BC34A;

    /* Fluid typography */
    --min-font-size: 13px;
    --max-font-size: 16px;
    --responsive-font-size: clamp(var(--min-font-size), 1.3vw, var(--max-font-size));
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at top right, rgba(47, 129, 247, 0.15), transparent 40%),
        radial-gradient(circle at bottom left, rgba(218, 54, 51, 0.15), transparent 40%);
    color: var(--text-color);
    min-height: 100vh;
    font-size: var(--responsive-font-size);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

.app-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 20px;
    margin: 0 auto;
}

/* Configuration Panel */
.config-panel {
    flex: 0 0 auto;
    min-width: 300px;
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: calc(100vh - 40px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.config-panel::-webkit-scrollbar {
    display: none;
}

.config-panel h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.config-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.config-section h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
    color: #8b949e;
}

.config-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.config-section .section-header h3 {
    margin-bottom: 0;
}

.collapse-toggle {
    background: transparent;
    border: none;
    color: #8b949e;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 6px;
    transition: background 0.15s ease, color 0.15s ease, transform 0.2s ease;
}

.collapse-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #e6edf3;
}

.config-section.collapsed .collapse-toggle svg {
    transform: rotate(-180deg);
}

.config-section .section-body {
    max-height: 9999px;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease;
}

.config-section.collapsed .section-body {
    max-height: 0px !important;
    opacity: 0;
}

.input-group {
    margin-bottom: 16px;
}

.match-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.match-row .input-group {
    flex: 1 1 auto;
}

.team-names-row {
    display: flex;
    gap: 8px;
}
.team-names-row .input-group {
    flex: 1 1 0;
}

.team-icons-row {
    display: flex;
    gap: 8px;
}

.team-icons-row .input-group {
    flex: 1 1 0;
}

.custom-icon-input {
    position: absolute;
    inset: 0;
    width: 100% !important;
    max-width: none !important;
    opacity: 0;
    cursor: pointer;
    padding: 0;
    font-size: 0;
    color: transparent;
}

.custom-icon-input::file-selector-button {
    display: none;
}

.icon-upload-wrapper {
    position: relative;
    display: inline-block;
}

.icon-upload-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--accent-blue), #1f6feb);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    white-space: nowrap;
    transition: filter 0.15s ease;
}

.icon-upload-label:hover {
    filter: brightness(1.1);
}

.icon-preview-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
}

.icon-remove-btn {
    cursor: pointer;
    font-size: 1.4rem;
    color: #fff;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.15s ease;
}

.icon-remove-btn:hover {
    color: var(--accent-red);
}

.icon-suggestions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.icon-suggestion-slot {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.icon-suggestion-slot:hover {
    transform: scale(1.1);
}

.team-icon-position-row {
    margin-bottom: 8px;
}

.team-icon-position-row label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.team-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
    display: none;
}

.team-icon.visible {
    display: block;
}

.blue-team.icon-position-left .team-header,
.red-team.icon-position-left .team-header {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
}

.blue-team.icon-position-left .team-name-render,
.red-team.icon-position-left .team-name-render {
    width: auto;
    flex: 1 1 auto;
    text-align: center;
    min-width: 0;
}

.blue-team.icon-position-left .team-icon,
.red-team.icon-position-left .team-icon {
    order: -1;
}

.team-icon-outside {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 180px;
    top: 100%;
    margin-top: 15%;
}

.team-icon-outside.visible {
    display: block;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.input-group label.label-with-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.team-columns {
    display: flex;
    gap: 16px;
}

.team-column {
    flex: 1;
    min-width: 0;
}

.team-column .input-group {
    margin-bottom: 12px;
}

.team-column .brawler-select-container {
    gap: 6px;
}

.team-label {
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.blue-label {
    color: var(--accent-blue);
}

.red-label {
    color: var(--accent-red);
}

/* header deeplink style */
.config-panel > div > a.deeplink {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 12px;
    border: 1px solid rgba(88, 166, 255, 0.35);
    background: rgba(88, 166, 255, 0.08);
    color: #58a6ff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
    max-width: 40%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.input-group label.label-with-link .deeplink:hover {
    background: rgba(88, 166, 255, 0.14);
    border-color: rgba(88, 166, 255, 0.55);
}

.input-group label.label-with-link .deeplink.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.brawler-select-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.brawler-slot {
    width: 48px;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    cursor: pointer;
    background-size: contain;
    background-position: center;
    transition: all 0.2s;
    background-color: rgba(255, 255, 255, 0.05);
}

.brawler-slot:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.1);
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-blue), #1f6feb);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(47, 129, 247, 0.4);
}

.danger {
    background: linear-gradient(135deg, #da3633, #b02a27);
}

.danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(218, 54, 51, 0.35);
}

.button-group {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.button-group .primary-btn {
    width: 100%;
}

/* Render Area */
.render-wrapper {
    flex: 1;
    min-width: 0;
    height: calc(100vh - 40px);
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.render-area {
    width: 100%;
    background: linear-gradient(135deg, #161b22, #0d1117);
    border: 2px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    position: relative;
    padding: 32px;
}

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

.render-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
}

.draft-wrapper {
    display: flex;
    align-items: stretch;
    margin-bottom: 50px;
    gap: 16px;
}

.team-draft {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
    position: relative;
}

.draft-state {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
}

.team-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    width: 100%;
}

.team-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.team-panel {
    background: rgba(0, 0, 0, 0.55);
    padding: 16px;
    border-radius: 12px;
    position: relative;
    overflow: visible;
}

.blue-team .team-bans,
.blue-team .team-picks {
    justify-content: flex-start;
}

.red-team .team-bans,
.red-team .team-picks {
    justify-content: flex-end;
}

.team-bans,
.team-picks {
    display: flex;
    gap: 12px;
    width: 100%;
    overflow: visible;
}

.center-content {
    flex: 0 0 auto;
    min-width: 260px;
    max-width: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-render {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 16px;
    width: auto;
    max-width: 260px;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.map-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.map-mode-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

#render-map-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 50vh;
    object-fit: contain;
    flex: 0 1 auto;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

#render-map-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.ban-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    min-width: 0;
}

.team-bans,
.team-picks {
    display: flex;
    gap: 12px;
    width: 100%;
    min-width: 0;
    overflow: visible;
}

.team-bans.global {
    opacity: 0.8;
}

/* Make right side team bans less transparent so they read better */
.red-team .team-bans.global {
    opacity: 1;
}

.team-bans.global .render-brawler {
    width: 67px;
    aspect-ratio: 1 / 1;
}

/* Brawler Render Cards */
.render-brawler {
    width: 70px;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    overflow: visible;
    background-color: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    transition: all 0.2s;
}

.team-bans .render-brawler {
    width: 54px;
    aspect-ratio: 1 / 1;
}

.render-brawler.filled {
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: #21262d;
}

.render-brawler.ban.filled {
    border: 2px solid rgba(0, 0, 0, 0.5);
    opacity: 0.6;
    background-image: none !important;
}

.render-brawler.ban.filled::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: var(--brawler-img);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: grayscale(100%) brightness(85%);
    z-index: 0;
}

/* Make red team ban icons more visible (less transparent) */
.red-team .render-brawler.ban.filled {
    opacity: 0.85;
}

/* Spray banned overlay on bottom-right corner of each banned brawler */
.render-brawler.ban.filled::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 28px;
    height: 28px;
    background-image: url('../--data/img/spray_banned.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 10;
}

.blue-team .render-brawler.filled:not(.ban) {
    border-color: var(--accent-blue);
    filter: drop-shadow(0 0 8px rgba(47, 129, 247, 0.5));
}

.red-team .render-brawler.filled:not(.ban) {
    border-color: var(--accent-red);
    filter: drop-shadow(0 0 8px rgba(218, 54, 51, 0.5));
}

.team-picks .render-brawler {
    width: 90px;
    aspect-ratio: 1 / 1;
}

/* Recommendations */
.section-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: 1px;
    color: #8b949e;
}

.recommendations-layout {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.human-section {
    flex: 1;
    display: flex;
    min-width: 0;
}

.human-section .human-card {
    height: 100%;
    justify-content: center;
    width: 100%;
}

.ai-section {
    flex: 2;
    min-width: 0;
}

.ai-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
}

.bot-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bot-card .bot-picks {
    padding: 15px;
}

.human-card .bot-picks .render-brawler {
    width: 120px;
    aspect-ratio: 1 / 1;
}

.bot-header {
    text-align: center;
    padding: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bot-header.plp {
    color: var(--plp-color);
}

.bot-header.dd {
    color: var(--dd-color);
}

.bot-header.b360 {
    color: var(--b360-color);
}

.bot-header.meta {
    color: var(--meta-color);
}

.bot-header.human {
    color: #fff;
}

.bot-header.custom1 {
    color: #BA68C8;
}

.bot-header.custom2 {
    color: #FF8A65;
}

/* Editable name input inside config panel */
.custom-name-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
    padding: 2px 0;
    cursor: text;
    transition: border-color 0.2s;
}

.custom-name-input:hover,
.custom-name-input:focus {
    border-bottom-color: rgba(255, 255, 255, 0.7);
}

.team-name-render {
    font-weight: 900;
    font-size: 1.4rem;
    color: #ffffff;
    text-transform: none;
    text-align: center;
    width: 100%;
}

.human-card {
    background: rgba(255, 255, 255, 0.05) !important;
    z-index: 10;
}

.bot-picks {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px;
}

.bot-picks .render-brawler {
    width: 80px;
    aspect-ratio: 1 / 1;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    display: none;
    z-index: 1000;
    pointer-events: auto;
}

.modal-overlay.popup-active {
    display: block;
}

.modal {
    position: fixed;
    background: #161b22;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 340px;
    max-width: 340px;
    max-height: 70vh;
    display: none;
    flex-direction: column;
    padding: 16px;
    z-index: 1001;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.modal[data-direction="above"]::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #161b22;
}

.modal[data-direction="below"]::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #161b22;
}

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

.modal-header h3 {
    font-size: 1.5rem;
}

.modal-header button {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

#brawler-search {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
    margin-bottom: 16px;
    outline: none;
}

.clear-btn {
    background: #da3633;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 16px;
    font-weight: bold;
}

.brawler-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.brawler-option {
    width: 60px;
    aspect-ratio: 1 / 1;
    background-size: contain;
    background-position: center;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.1s, border-color 0.1s;
}

.brawler-option:hover {
    transform: scale(1.1);
    border-color: white;
}

/* Match Settings Additions */
.styled-select {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
}

.styled-select option {
    background: #161b22;
    color: white;
    padding: 10px;
}

#render-map-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
    min-height: 24px;
}

/* hide legacy text badge when using image-based badge */
.first-pick-badge {
    display: none;
}

.first-pick-img {
    position: absolute;
    top: -22px;
    right: -22px;
    width: 64px;
    height: 64px;
    z-index: 80;
    pointer-events: none;
}

/* Ensure first-pick images overflow visible areas and are not clipped */
.draft-state, .team-panel, .render-area {
    overflow: visible !important;
}

/* Map Translations Panel */
.map-translations {
    margin-top: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 0.85rem;
    display: none;
}

.map-translations.visible {
    display: block;
}

.map-translations .translation-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.map-translations .translation-row:last-child {
    border-bottom: none;
}

.map-translations .lang-code {
    color: #8b949e;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    min-width: 50px;
}

.map-translations .lang-name {
    color: #58a6ff;
    font-size: 0.7rem;
    margin-left: 6px;
}

.map-translations .translated-name {
    flex: 1;
    text-align: right;
    color: #e6edf3;
}

.map-translations .no-translation {
    color: #6e7681;
    font-style: italic;
    font-size: 0.8rem;
    padding: 6px 0;
}

.map-translations .translation-row.selected-lang {
    background: rgba(88, 166, 255, 0.15);
    border-left: 3px solid #58a6ff;
    padding-left: 8px;
    border-radius: 4px;
}
.draft-attribution {
    position: absolute;
    bottom: 10px;
    right: 16px;
    font-size: 0.65rem;
    color: #8b949e;
    z-index: 5;
    pointer-events: none;
}

.draft-attribution a {
    color: #f0883e;
    text-decoration: none;
    pointer-events: auto;
}

.draft-attribution a:hover {
    text-decoration: underline;
}

/* Responsive: prevent horizontal overflow */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Large screens - scale panels with viewport */
@media (min-width: 1400px) {
    .center-content {
        max-width: 300px;
    }

    .map-render {
        max-width: 280px;
    }
}

/* Tablet & below */
@media (max-width: 900px) {
    .app-container {
        flex-direction: column;
        gap: 20px;
        padding: 16px;
    }

    .config-panel {
        width: 100%;
        min-width: 0;
        height: auto;
        max-height: 60vh;
    }

    .render-wrapper {
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: 60vh;
    }

    .render-area {
        padding: 20px;
        border-radius: 16px;
    }

    .render-header {
        margin-bottom: 24px;
    }

    .render-header h1 {
        font-size: clamp(1.6rem, 3vw, 2.5rem);
        letter-spacing: 1px;
    }

    .draft-wrapper {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 30px;
    }

    .draft-state {
        max-width: none;
        min-width: 0;
        padding: 16px;
    }

    .center-content {
        max-width: 250px;
        min-width: 0;
    }

    .map-render {
        max-width: 230px;
        padding: 12px;
    }

    #render-map-img {
        max-height: 35vh;
    }

    .team-picks .render-brawler {
        width: 80px;
    }

    .team-bans.global .render-brawler {
        width: 60px;
    }

    .team-bans .render-brawler {
        width: 48px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .app-container {
        gap: 12px;
        padding: 10px;
    }

    .config-panel {
        padding: 16px;
        gap: 14px;
        max-height: 55vh;
        border-radius: 12px;
    }

    .config-panel h2 {
        font-size: 1.3rem;
    }

    .config-section {
        padding: 12px;
        border-radius: 10px;
    }

    .config-section h3 {
        font-size: 1rem;
    }

    .render-area {
        padding: 14px;
        border-radius: 14px;
    }

    .render-header {
        margin-bottom: 16px;
    }

    .render-header h1 {
        font-size: 1.3rem;
    }

    .draft-wrapper {
        gap: 10px;
        margin-bottom: 20px;
    }

    .draft-state {
        padding: 12px;
        border-radius: 12px;
    }

    .team-name-render {
        font-size: 1.1rem;
    }

    .center-content {
        max-width: none;
        width: 100%;
    }

    .map-render {
        max-width: 220px;
        padding: 10px;
        border-radius: 12px;
    }

    #render-map-name {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    #render-map-img {
        max-height: 30vh;
    }

    #render-map-mode-icon {
        width: 28px;
        height: 28px;
    }

    .map-header {
        gap: 6px;
    }

    .team-picks .render-brawler {
        width: 65px;
    }

    .render-brawler {
        width: 50px;
    }

    .team-bans.global .render-brawler {
        width: 49px;
    }

    .team-bans .render-brawler {
        width: 39px;
    }

    .render-brawler.ban.filled::after {
        width: 20px;
        height: 20px;
        bottom: -4px;
        right: -4px;
    }

    .button-group {
        flex-direction: column;
        gap: 8px;
    }

    .primary-btn {
        padding: 12px 16px;
        font-size: 0.85rem;
    }

    .modal-overlay {
        padding: 8px;
    }

    .modal {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        max-height: 80vh;
    }

    .brawler-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 6px;
    }

    #brawler-search {
        font-size: 0.9rem;
        padding: 10px;
    }

    .modal-header h3 {
        font-size: 1.2rem;
    }

    .draft-attribution {
        font-size: 0.7rem;
        bottom: 6px;
        right: 8px;
    }

    .team-columns {
        flex-direction: column;
        gap: 12px;
    }

    .match-row {
        flex-wrap: wrap;
        gap: 10px;
    }

    .match-row .input-group {
        flex: 1 1 100%;
    }

    .team-names-row {
        flex-wrap: wrap;
        gap: 10px;
    }

    .team-icons-row {
        flex-wrap: wrap;
        gap: 10px;
    }

    .team-icons-row .input-group {
        flex: 1 1 100%;
    }
}