/* ===================================
   1. GLOBAL & LAYOUT VARIABLES
   =================================== */
:root {
    --bg-dark: #13161b;
    --bg-card: #1a1d24;
    --bg-input: #0d0e12;
    --primary-accent: #EB4A57;
    --primary-accent-dark: #c73843;
    --text-main: #edf0f1;
    --text-muted: #b0b0b0;
    --border-light: rgba(255, 255, 255, 0.1);
}

/* ===================================
   2. MAIN LAYOUT CONTAINERS
   =================================== */
.container.builder-wrapper {
    margin: 20px;
    gap: 20px;
    display: flex;
    position: relative;
}

/* Right Side Large Container */
#large-container {
    align-self: flex-start;
    display: flex;
    flex-grow: 1;
    width: 100%;
    max-width: 100%;
    min-height: 850px; /* Adjusted for better fit */
    height: auto;
    border-radius: 15px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.8);
    background: var(--bg-dark);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem;
}

.stage-img {
    position: absolute;
    top: 220px;
    width: 100%;
    pointer-events: none; /* Prevent interference with clicks */
}

/* ===================================
   3. SIDEBAR & INPUTS
   =================================== */
.input-container {
    align-self: flex-start;
    position: relative;
    border-radius: 15px;
    min-width: 256px;
    max-width: 256px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.8);
    background: var(--bg-dark);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: clamp(.75rem, 1vw, 1.75rem);
}

.input-container h3 {
    color: var(--text-main);
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    font-weight: 700;
    text-align: left;
    width: 100%;
}

.input-container p {
    color: var(--text-muted);
    font-size: clamp(0.8rem, 1vw, 1rem);
    font-weight: 500;
    margin-bottom: clamp(1rem, 1.5vw, 2rem);
}

.input-container input,
#teamNameInput {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    transition: all 0.3s ease;
}

.input-container input:focus,
#teamNameInput:focus {
    outline: none;
    border-color: var(--primary-accent);
    background: rgba(0, 0, 0, 0.5);
}

/* ===================================
   4. TEAM MANAGEMENT (SIDEBAR)
   =================================== */
.team-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.team-sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.create-new-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 500;
    background: #282C34;
    border: 1px solid var(--border-light);
    color: var(--primary-accent);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.create-new-btn:hover {
    background: #32363f;
    border-color: rgba(255, 255, 255, 0.15);
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    padding-right: 8px;
}

/* Custom Scrollbar for lists */
.team-list::-webkit-scrollbar,
.part-modal-content::-webkit-scrollbar {
    width: 6px;
}
.team-list::-webkit-scrollbar-track,
.part-modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}
.team-list::-webkit-scrollbar-thumb,
.part-modal-content::-webkit-scrollbar-thumb {
    background: rgba(235, 74, 87, 0.4);
    border-radius: 10px;
}

.team-item {
    background: rgba(13, 14, 18, 0.6);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.team-item:hover {
    border-color: rgba(235, 74, 87, 0.4);
}

.team-item.active {
    background: rgba(235, 74, 87, 0.15);
    border-color: var(--primary-accent);
}

.team-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.team-item-name {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-action-btn {
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.team-action-btn:hover {
    background: rgba(235, 74, 87, 0.2);
    border-color: var(--primary-accent);
    color: var(--primary-accent);
}

.team-item-meta {
    font-size: 0.75rem;
    color: #666;
}

.loading-teams {
    text-align: center;
    color: #888;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

/* ===================================
   5. BUILDER HEADER & CONTROLS
   =================================== */
.builder-header-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(13, 14, 18, 0.6);
    border-radius: 12px;
    margin-bottom: 1rem;
    width: 100%;
    z-index: 2;
}

.team-name-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.team-name-input-wrapper label {
    color: #888;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

.save-team-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-accent), var(--primary-accent-dark));
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.save-team-btn:hover {
    background: linear-gradient(135deg, #ff5563, var(--primary-accent));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(235, 74, 87, 0.4);
}

.save-team-btn:disabled {
    background: #333;
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
}

.divider-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
    margin: 1rem 0;
}

/* ===================================
   6. AXIE SLOTS (MAIN STAGE)
   =================================== */
.axie-slots-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    gap: 3vw;
    padding: 3vw 1.5vw;
    z-index: 2;
}

.axie-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5vw;
    position: relative;
}


.axie-slot[data-slot="1"] .axie-display-area { 
    top: 1.5vw;            /* 20px */
    left: 1.875vw;         /* 25px */
}

.axie-slot[data-slot="2"] .axie-display-area { 
    top: 0vw;              /* 0px */
    left: 0vw;             /* 0px */
}

.axie-slot[data-slot="3"] .axie-display-area { 
    top: 1.5vw;            /* 20px */
    left: -1.875vw;        /* -25px */
}

/* Charm & Stats (Perspective) */
.axie-slot[data-slot="1"] .charm-slots-container, 
.axie-slot[data-slot="1"] .potential-points-display { 
    top: 2.625vw;          /* 35px */
    left: 1.875vw;         /* 25px */
    position: relative;
}

.axie-slot[data-slot="2"] .charm-slots-container, 
.axie-slot[data-slot="2"] .potential-points-display { 
    top: 2.625vw;          /* 35px */
    left: 0vw;             /* 0px */
    position: relative;
}

.axie-slot[data-slot="3"] .charm-slots-container, 
.axie-slot[data-slot="3"] .potential-points-display { 
    top: 2.625vw;          /* 35px */
    left: -1.875vw;        /* -25px */
    position: relative;
}



.axie-display-area {
    width: 18.6vw;
    height: 18.6vw;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
}

.axie-display-area.has-axie {
    cursor: pointer;
}

.axie-display-area img.generated-axie-img {
    max-width: 120%;
    max-height: 120%;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
}

.add-axie-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(235, 74, 87, 0.2), rgba(235, 74, 87, 0.1));
    border: 3px dashed rgba(235, 74, 87, 0.5);
    color: var(--primary-accent);
    font-size: 36px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-axie-btn:hover {
    background: linear-gradient(135deg, rgba(235, 74, 87, 0.3), rgba(235, 74, 87, 0.2));
    border-color: var(--primary-accent);
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(235, 74, 87, 0.3);
}

/* ===================================
   7. INLINE BUILDER POPUP
   =================================== */
/* ===================================
   7. INLINE BUILDER POPUP
   =================================== */
.inline-builder-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.inline-builder-overlay.active {
    opacity: 1;
    visibility: visible;
}

.inline-builder-popup {
    background: var(--bg-dark);
    border-radius: 20px;
    border: 2px solid rgba(235, 74, 87, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    padding: 24px;
    min-width: 200px;
    max-width: 500px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.inline-builder-overlay.active .inline-builder-popup {
    transform: scale(1);
}

.inline-builder-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.close-inline-builder {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(235, 74, 87, 0.1);
    border: 1px solid rgba(235, 74, 87, 0.3);
    border-radius: 8px;
    color: var(--primary-accent);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-inline-builder:hover {
    background: rgba(235, 74, 87, 0.2);
    border-color: var(--primary-accent);
    transform: rotate(90deg);
}
.clear-axie-btn {
    background: rgba(235, 74, 87, 0.15);
    border: 1px solid rgba(235, 74, 87, 0.4);
    color: var(--primary-accent);
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
}

.clear-axie-btn:hover {
    background: rgba(235, 74, 87, 0.25);
    border-color: var(--primary-accent);
}

.inline-builder-title {
    color: var(--text-main);
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin: 0;
    padding-right: 40px;
}

.inline-parts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.inline-part-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(13, 14, 18, 0.6);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.inline-part-selector:hover {
    background: rgba(235, 74, 87, 0.1);
    border-color: rgba(235, 74, 87, 0.4);
    transform: translateY(-2px);
}

.inline-body-config {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.inline-generate-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-accent) 0%, var(--primary-accent-dark) 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.inline-generate-btn:hover {
    background: linear-gradient(135deg, #ff5563 0%, var(--primary-accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 74, 87, 0.4);
}

.inline-generate-btn:disabled {
    background: #333;
    cursor: not-allowed;
    opacity: 0.5;
}

/* ===================================
   8. COMPONENT ELEMENTS (PARTS, RUNES, CHARMS)
   =================================== */

/* Runes (Hexagon) */
.rune-button-container {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.rune-hexagon-btn {
    width: 48px;
    height: 48px;
    background: rgba(13, 14, 18, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: none;
}

.rune-hexagon-btn:hover {
    background: rgba(235, 74, 87, 0.2);
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(235, 74, 87, 0.4);
}

.rune-hexagon-btn.has-rune .rune-icon-inner {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.rune-icon-inner {
    font-size: 24px;
    color: var(--primary-accent);
}

/* Charm Slots */
.charm-slots-container {
    display: flex;
    gap: 2px;
    justify-content: center;
    flex-wrap: wrap;
}

.charm-part-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.part-icon-display {
    width: 32px;
    height: 32px;
    padding: 6px;
    background: rgba(13, 14, 18, 0.6);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.part-icon-display img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.charm-add-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.charm-add-btn:hover {
    background: rgba(235, 74, 87, 0.2);
    border-color: var(--primary-accent);
    transform: scale(1.05);
}

.charm-add-btn.has-charm {
    background: rgba(13, 14, 18, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0;
}

.charm-add-btn img.charm-img {
    width: auto;
    height: 25px;
    object-fit: cover;
}

/* Part/Color Preview Elements */
.color-cube-preview {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #333 0%, #111 100%);
    border: 2px solid var(--border-light);
    flex-shrink: 0;
}

.part-icon-wrapper {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(235, 74, 87, 0.12);
    border-radius: 8px;
    flex-shrink: 0;
}

.part-type-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(1.2);
}

.part-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.part-label {
    font-size: 11px;
    color: #888;
    font-weight: 500;
    text-transform: uppercase;
}

.selected-part-name {
    font-size: 13px;
    color: var(--text-main);
    font-weight: 600;
}

/* Generated Elements (Class Crests, Points) */
.class-crest-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    z-index: 5;
    pointer-events: none;
}

.potential-points-display {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 12px;
    padding: 10px;
    background: rgba(13, 14, 18, 0.7);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.potential-point-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.potential-class-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.potential-point-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ===================================
   9. PART SELECTION MODALS
   =================================== */
.part-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.part-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.part-modal {
    background: var(--bg-dark);
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.part-modal-overlay.active .part-modal {
    transform: scale(1);
}

.part-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(145deg, #1a1d24 0%, #13161b 100%);
    border-radius: 20px 20px 0 0;
}

.part-modal-header h3 {
    color: var(--text-main);
    font-size: 20px;
    font-weight: 700;
    margin: 0;
}

.part-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(235, 74, 87, 0.1);
    border: 1px solid rgba(235, 74, 87, 0.2);
    border-radius: 8px;
    color: var(--primary-accent);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.part-modal-close:hover {
    background: rgba(235, 74, 87, 0.2);
    border-color: var(--primary-accent);
    transform: rotate(90deg);
}

.part-modal-search {
    padding: 20px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.part-modal-search input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(13, 14, 18, 0.6);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 14px;
    transition: all 0.3s ease;
}

.part-modal-search input:focus {
    outline: none;
    border-color: var(--primary-accent);
    background: rgba(13, 14, 18, 0.8);
    box-shadow: 0 0 0 3px rgba(235, 74, 87, 0.1);
}

.part-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    align-content: start;
}

/* Option Styles (Part, Body, Color, Rune, Charm) */
.part-option, .body-option, .color-option, .rune-option, .charm-option {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: linear-gradient(145deg, #1a1d24 0%, #13161b 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}





/* Charm Potential Container */
.charm-potential-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
	
	
}


.charm-potential-value {
    position: absolute;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    top: 17%;
    z-index: 1;
    left: 27%;
    transform: translateX(-50%);
}

.charm-rarity-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
    top: 7%;
    /* bottom: 55%; */
    left: 86%;
    transform: translateX(-50%);
}

.charm-option.rarity-common .charm-rarity-dot { background: #888888; }
.charm-option.rarity-rare .charm-rarity-dot { background: #32CD32; }
.charm-option.rarity-epic .charm-rarity-dot { background: #1E90FF; }
.charm-option.rarity-mystic .charm-rarity-dot { background: #BA55D3; }

.charm-image-container {
    position: relative;
	display: flex;
	flex-direction: row;
	
}


/* Rune Image Container */
.rune-image-container {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.rune-stars-overlay {
    position: absolute;
    bottom: 17%;
    left: 47%;
    transform: translateX(-50%);
    padding: 0px 4px;
    background: rgba(0, 0, 0, 0.8);
    /* border: 1px solid rgba(255, 255, 255, 0.2); */
    border-radius: 16px;
}

.rune-stars-overlay .rune-stars {
    display: flex;
    gap: 2px;
}



.part-option {
    display: flex;
	flex-direction: column;
    gap: 14px;
    padding: 14px;
    background: linear-gradient(145deg, #1a1d24 0%, #13161b 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.part-option:hover, .body-option:hover, .color-option:hover, .rune-option:hover, .charm-option:hover {
    background: rgba(235, 74, 87, 0.08);
    border-color: rgba(235, 74, 87, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 74, 87, 0.2);
}

.charm-option-image {
    width: 92px;
    height: 92px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 24px;
    flex-shrink: 0;
}

.body-option-image, .rune-option-image {
    width: 74px;
    height: 74px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 18px;
    flex-shrink: 0;
}

.part-option-image {
    width: 74px;
    height: 74px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px;
    flex-shrink: 0;
}

/* Charm Rarity Dot */
.charm-option-image { position: relative; }
.charm-option-image::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.5);
}
.charm-option.rarity-common .charm-option-image::after { background: #888888; }
.charm-option.rarity-rare .charm-option-image::after { background: #32CD32; }
.charm-option.rarity-epic .charm-option-image::after { background: #1E90FF; }
.charm-option.rarity-mystic .charm-option-image::after { background: #BA55D3; }

.part-option-details, .rune-option-details, .charm-option-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.part-option-details {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 8px;
    min-width: 0;
}

.rune-option-name, .charm-option-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.part-option-name {
    display: flex;
	flex-direction: column;
    gap: 8px;
	padding: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.class-and-name-container {
	
	display: flex;
    gap: 8px;
	align-items: center;


	
}


.charm-potential-container .class-icon-small {
    width: 14px;
    height: 14px;
    object-fit: contain;
    position: absolute;
    top: 7%;
    z-index: 1;
    left: 27%;
    transform: translateX(-50%);
}


.charm-potential-value {
    position: absolute;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    top: 15%;
    z-index: 1;
    left: 27%;
    transform: translateX(-50%);
}



.rune-image-container .class-icon-small {
    width: 14px;
    height: 14px;
    object-fit: contain;
    position: absolute;
    top: 7%;
    z-index: 1;
    left: 18%;
    transform: translateX(-50%);
}

.class-and-name-container .class-icon-small {
    width: 18px;
    height: 18px;	
	
}


.part-option-description, .rune-option-description, .charm-option-description {
    color: #aaa;
    font-size: 11px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.part-gems { display: flex; gap: 4px; align-items: center; }
.gem-icon { width: 14px; height: 14px; object-fit: contain; }

/* Body Option Specifics */
.body-option { flex-direction: column; align-items: center; }
.body-option-image { width: 100px; height: 100px; }
.body-option-name { color: var(--text-main); font-weight: 600; font-size: 14px; text-align: center; }

/* Color Option Specifics */
.color-option { align-items: center; }
.color-option-cube {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.color-option-name { color: var(--text-main); font-weight: 600; font-size: 14px; }

/* Class Colors */
.class-bug { color: #ff6b6b !important; }
.class-aquatic { color: #4dabf7 !important; }
.class-plant { color: #51cf66 !important; }
.class-reptile { color: #9775fa !important; }
.class-beast { color: #ff922b !important; }
.class-bird { color: #ff6bf7 !important; }

/* Stars */
.star { font-size: 11px; text-shadow: 0 0 4px currentColor; }
.star-common { color: #888888; }
.star-rare { color: #32CD32; }
.star-epic { color: #1E90FF; }
.star-mystic { color: #BA55D3; }

/* ===================================
   10. DIALOGS & OVERLAYS
   =================================== */

/* Lock Overlay */
.builder-lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 14, 18, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 15px;
}

.builder-lock-overlay.hidden { display: none; }

.lock-content { text-align: center; padding: 3rem; max-width: 400px; }
.lock-icon { font-size: 4rem; color: var(--primary-accent); margin-bottom: 1.5rem; }
.lock-content h3 { color: var(--text-main); font-size: 1.8rem; margin-bottom: 1rem; }
.lock-content p { color: #888; font-size: 1rem; margin-bottom: 2rem; line-height: 1.6; }

.lock-login-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-accent), #c73843);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lock-login-btn:hover {
    background: linear-gradient(135deg, #ff5563, var(--primary-accent));
    transform: translateY(-2px);
}

/* General Modal Overlay (Delete Confirm) */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #0d0e12;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    padding: 32px;
    position: relative;
    animation: slideUp 0.3s ease;
}

/* Delete Modal Specifics */
.delete-confirm-content { text-align: center; max-width: 400px; }
.delete-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(244, 67, 54, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.delete-icon i { font-size: 40px; color: #F44336; }
.delete-message { color: #bbb; font-size: 15px; line-height: 1.6; margin-bottom: 24px; }
.delete-confirm-footer { display: flex; gap: 12px; }

.modal-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    flex: 1;
    transition: all 0.3s ease;
}

.delete-cancel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-main);
}
.delete-cancel:hover { background: rgba(255, 255, 255, 0.1); }

.delete-confirm {
    background: linear-gradient(135deg, #F44336, #D32F2F);
    color: white;
}
.delete-confirm:hover {
    background: linear-gradient(135deg, #E53935, #C62828);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

/* ===================================
   11. ANIMATIONS
   =================================== */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}









@media screen and (max-width: 768px) {
	
	
.axie-slot[data-slot="1"] .axie-display-area { 
    top: 3vw;            /* 20px */
    left: 4vw;         /* 25px */
}

.axie-slot[data-slot="2"] .axie-display-area { 
    top: 1vw;              /* 0px */
    left: 0vw;             /* 0px */
}

.axie-slot[data-slot="3"] .axie-display-area { 
    top:3vw;            /* 20px */
    left: -4vw;        /* -25px */
}

/* Charm & Stats (Perspective) */
.axie-slot[data-slot="1"] .charm-slots-container, 
.axie-slot[data-slot="1"] .potential-points-display { 
    top: 4vw;          /* 35px */
    left: 3vw;         /* 25px */
    position: relative;
}

.axie-slot[data-slot="2"] .charm-slots-container, 
.axie-slot[data-slot="2"] .potential-points-display { 
    top: 4vw;          /* 35px */
    left: 0vw;             /* 0px */
    position: relative;
}

.axie-slot[data-slot="3"] .charm-slots-container, 
.axie-slot[data-slot="3"] .potential-points-display { 
    top: 4vw;          /* 35px */
    left: -3vw;        /* -25px */
    position: relative;
}
	
.axie-display-area {
    width: 25vw;
    height: 25vw;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
}

	
.part-icon-display {
    width: 24px;
    height: 24px;
    padding: 4px;
    background: rgba(13, 14, 18, 0.6);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.charm-add-btn {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.charm-add-btn img.charm-img {
    width: auto;
    height: 18px;
    object-fit: cover;
}

.charm-add-btn i {
    font-family: "Font Awesome 6 Free";
    font-size: 15px;
    font-weight: 900;
}


.potential-class-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}



.part-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    align-content: start;
}


}






@media screen and (max-width: 700px) {
	
	
.axie-slot[data-slot="1"] .axie-display-area { 
    top: 5vw;            /* 20px */
    left: 4vw;         /* 25px */
}

.axie-slot[data-slot="2"] .axie-display-area { 
    top: 2.6vw;              /* 0px */
    left: 0vw;             /* 0px */
}

.axie-slot[data-slot="3"] .axie-display-area { 
    top:5vw;            /* 20px */
    left: -4vw;        /* -25px */
}

/* Charm & Stats (Perspective) */
.axie-slot[data-slot="1"] .charm-slots-container, 
.axie-slot[data-slot="1"] .potential-points-display { 
    top: 4vw;          /* 35px */
    left: 3vw;         /* 25px */
    position: relative;
}

.axie-slot[data-slot="2"] .charm-slots-container, 
.axie-slot[data-slot="2"] .potential-points-display { 
    top: 4vw;          /* 35px */
    left: 0vw;             /* 0px */
    position: relative;
}

.axie-slot[data-slot="3"] .charm-slots-container, 
.axie-slot[data-slot="3"] .potential-points-display { 
    top: 4vw;          /* 35px */
    left: -3vw;        /* -25px */
    position: relative;
}
	
.axie-display-area {
    width: 25vw;
    height: 25vw;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
}

	
.part-icon-display {
    width: 24px;
    height: 24px;
    padding: 4px;
    background: rgba(13, 14, 18, 0.6);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.charm-add-btn {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.charm-add-btn img.charm-img {
    width: auto;
    height: 18px;
    object-fit: cover;
}

.charm-add-btn i {
    font-family: "Font Awesome 6 Free";
    font-size: 15px;
    font-weight: 900;
}


.potential-class-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}




}







@media screen and (max-width: 480px) {
	


.axie-slots-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    gap: 0vw; 
    padding: 0vw 0vw;
    z-index: 2;
    width: 100%;
}
	
	
	
.axie-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5vw;
	height: 500px;
	width: 100%;
    position: relative;
}

.add-axie-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(235, 74, 87, 0.2), rgba(235, 74, 87, 0.1));
    border: 3px dashed rgba(235, 74, 87, 0.5);
    color: var(--primary-accent);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s 
cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

	
.axie-slot[data-slot="1"] .axie-display-area { 
    top: 12vw;            /* 20px */
    left: 6vw;         /* 25px */
}

.axie-slot[data-slot="2"] .axie-display-area { 
    top: 10vw;              /* 0px */
    left: 0.5vw;             /* 0px */
}

.axie-slot[data-slot="3"] .axie-display-area { 
    top:12vw;            /* 20px */
    left: -5vw;        /* -25px */
}

/* Charm & Stats (Perspective) */
.axie-slot[data-slot="1"] .charm-slots-container, 
.axie-slot[data-slot="1"] .potential-points-display { 
    top: 11vw;          /* 35px */
    left: 1vw;         /* 25px */
    position: relative;
}

.axie-slot[data-slot="2"] .charm-slots-container, 
.axie-slot[data-slot="2"] .potential-points-display { 
    top: 11vw;          /* 35px */
    left: -0.7vw;             /* 0px */
    position: relative;
}

.axie-slot[data-slot="3"] .charm-slots-container, 
.axie-slot[data-slot="3"] .potential-points-display { 
    top: 11vw;          /* 35px */
    left: -3vw;        /* -25px */
    position: relative;
}
	
.axie-display-area {
    width: 25vw;
    height: 25vw;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
}



.class-crest-icon {
    position: absolute;
    top: 12px;
    right: 6px;
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    z-index: 5;
    pointer-events: none;
}

.rune-hexagon-btn {
    width: 36px;
    height: 36px;
    background: rgba(13, 14, 18, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s 
ease;
    position: relative;
    border: none;
}

.rune-icon-inner {
    font-size: 18px;
    color: var(--primary-accent);
}

.rune-hexagon-btn.has-rune .rune-icon-inner {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

	
.part-icon-display {
    width: 16px;
    height: 16px;
    padding: 0px;
    background: rgba(13, 14, 18, 0.6);
    border-radius: 6px;
    border: 1px solid var(--border-light);
}

.charm-part-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.charm-add-btn {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.charm-add-btn img.charm-img {
    width: auto;
    height: 16px;
    object-fit: cover;
}

.charm-add-btn i {
    font-family: "Font Awesome 6 Free";
    font-size: 12px;
    font-weight: 900;
}


.potential-points-display {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 12px;
    padding: 10px;
    background: rgba(13, 14, 18, 0.7);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.potential-class-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}




}



@media screen and (max-width: 428px) {
	
	
.stage-img {
    position: absolute;
    top: 250px;
    width: 100%;
    pointer-events: none; /* Prevent interference with clicks */
}
	
.axie-slots-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    gap: 0vw; 
    padding: 0vw 0vw;
    z-index: 2;
    width: 100%;
}
	
	
.axie-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5vw;
	height: 500px;
	width: 100%;
    position: relative;
}
	
.axie-slot[data-slot="1"] .axie-display-area { 
    top: 13vw;            /* 20px */
    left: 3vw;         /* 25px */
}

.axie-slot[data-slot="2"] .axie-display-area { 
    top: 11vw;              /* 0px */
    left: -9vw;             /* 0px */
}

.axie-slot[data-slot="3"] .axie-display-area { 
    top:13vw;            /* 20px */
    left: -21vw;        /* -25px */
}

/* Charm & Stats (Perspective) */
.axie-slot[data-slot="1"] .charm-slots-container, 
.axie-slot[data-slot="1"] .potential-points-display { 
    top: 9vw;          /* 35px */
    left: -3vw;         /* 25px */
    position: relative;
}

.axie-slot[data-slot="2"] .charm-slots-container, 
.axie-slot[data-slot="2"] .potential-points-display { 
    top: 9vw;          /* 35px */
    left: -10vw;             /* 0px */
    position: relative;
}

.axie-slot[data-slot="3"] .charm-slots-container, 
.axie-slot[data-slot="3"] .potential-points-display { 
    top: 9vw;          /* 35px */
    left: -18vw;        /* -25px */
    position: relative;
}
	
.axie-display-area {
    width: 35vw;
    height: 35vw;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
}



.class-crest-icon {
    position: absolute;
    top: 12px;
    right: 6px;
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    z-index: 5;
    pointer-events: none;
}

.rune-hexagon-btn {
    width: 36px;
    height: 36px;
    background: rgba(13, 14, 18, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s 
ease;
    position: relative;
    border: none;
}

.rune-icon-inner {
    font-size: 18px;
    color: var(--primary-accent);
}

.rune-hexagon-btn.has-rune .rune-icon-inner {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

	
.part-icon-display {
    width: 16px;
    height: 16px;
    padding: 0px;
    background: rgba(13, 14, 18, 0.6);
    border-radius: 6px;
    border: 1px solid var(--border-light);
}

.charm-part-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.charm-add-btn {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.charm-add-btn img.charm-img {
    width: auto;
    height: 16px;
    object-fit: cover;
}

.charm-add-btn i {
    font-family: "Font Awesome 6 Free";
    font-size: 9px;
    font-weight: 900;
}


.potential-points-display {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 12px;
    padding: 6px;
    background: rgba(13, 14, 18, 0.7);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.potential-class-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.potential-point-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
}

.potential-point-value {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-main);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

}


@media screen and (max-width: 400px) {
	
	
.stage-img {
    position: absolute;
    top: 250px;
    width: 100%;
    pointer-events: none; /* Prevent interference with clicks */
}
	
.axie-slots-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    gap: 0vw; 
    padding: 0vw 0vw;
    z-index: 2;
    width: 100%;
}
	
	
.axie-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5vw;
	height: 500px;
	width: 100%;
    position: relative;
}
	
.axie-slot[data-slot="1"] .axie-display-area { 
    top: 15vw;            /* 20px */
    left: 2vw;         /* 25px */
}

.axie-slot[data-slot="2"] .axie-display-area { 
    top: 13vw;              /* 0px */
    left: -10vw;             /* 0px */
}

.axie-slot[data-slot="3"] .axie-display-area { 
    top:15vw;            /* 20px */
    left: -22vw;        /* -25px */
}

/* Charm & Stats (Perspective) */
.axie-slot[data-slot="1"] .charm-slots-container, 
.axie-slot[data-slot="1"] .potential-points-display { 
    top: 11vw;          /* 35px */
    left: -1vw;         /* 25px */
    position: relative;
}

.axie-slot[data-slot="2"] .charm-slots-container, 
.axie-slot[data-slot="2"] .potential-points-display { 
    top: 11vw;          /* 35px */
    left: -11vw;             /* 0px */
    position: relative;
}

.axie-slot[data-slot="3"] .charm-slots-container, 
.axie-slot[data-slot="3"] .potential-points-display { 
    top: 11vw;          /* 35px */
    left: -21vw;        /* -25px */
    position: relative;
}
	
.axie-display-area {
    width: 35vw;
    height: 35vw;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
}



.class-crest-icon {
    position: absolute;
    top: 12px;
    right: 6px;
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    z-index: 5;
    pointer-events: none;
}

.rune-hexagon-btn {
    width: 36px;
    height: 36px;
    background: rgba(13, 14, 18, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s 
ease;
    position: relative;
    border: none;
}

.rune-icon-inner {
    font-size: 18px;
    color: var(--primary-accent);
}

.rune-hexagon-btn.has-rune .rune-icon-inner {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

	
.charm-slots-container {
    display: flex;
    gap: 1px;
    justify-content: center;
    flex-wrap: wrap;
}
	
.part-icon-display {
    width: 14px;
    height: 14px;
    padding: 0px;
    background: rgba(13, 14, 18, 0.6);
    border-radius: 4px;
	align-items: center;
	justify-content: center;
    border: 1px solid var(--border-light);
}

.part-icon-display img {
    width: 12px;
    height: 12px;
    display: block;   /* removes inline descender space */
    margin: auto; 

}

.charm-part-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.charm-add-btn {
    width: 14px;
    height: 14px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.charm-add-btn img.charm-img {
    width: auto;
    height: 16px;
    object-fit: cover;
}

.charm-add-btn i {
    font-family: "Font Awesome 6 Free";
    font-size: 12px;
    font-weight: 900;
}


.potential-points-display {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 12px;
    padding: 6px;
    background: rgba(13, 14, 18, 0.7);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.potential-class-icon {
    width: 11px;
    height: 11px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.potential-point-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
}

.potential-point-value {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-main);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

}



@media screen and (max-width: 370px) {
	
	
.stage-img {
    position: absolute;
    top: 250px;
    width: 100%;
    pointer-events: none; /* Prevent interference with clicks */
}
	
.axie-slots-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    gap: 0vw; 
    padding: 0vw 0vw;
    z-index: 2;
    width: 100%;
}
	
	
.axie-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5vw;
	height: 500px;
	width: 100%;
    position: relative;
}
	
.axie-slot[data-slot="1"] .axie-display-area { 
    top: 16.5vw;            /* 20px */
    left: 2vw;         /* 25px */
}

.axie-slot[data-slot="2"] .axie-display-area { 
    top: 14.5vw;              /* 0px */
    left: -10vw;             /* 0px */
}

.axie-slot[data-slot="3"] .axie-display-area { 
    top: 16.5vw;            /* 20px */
    left: -22vw;        /* -25px */
}

/* Charm & Stats (Perspective) */
.axie-slot[data-slot="1"] .charm-slots-container, 
.axie-slot[data-slot="1"] .potential-points-display { 
    top: 13vw;          /* 35px */
    left: -4vw;         /* 25px */
    position: relative;
}

.axie-slot[data-slot="2"] .charm-slots-container, 
.axie-slot[data-slot="2"] .potential-points-display { 
    top: 13vw;          /* 35px */
    left: -12vw;             /* 0px */
    position: relative;
}

.axie-slot[data-slot="3"] .charm-slots-container, 
.axie-slot[data-slot="3"] .potential-points-display { 
    top: 13vw;          /* 35px */
    left: -20vw;        /* -25px */
    position: relative;
}
	
.axie-display-area {
    width: 35vw;
    height: 35vw;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
}



.class-crest-icon {
    position: absolute;
    top: 12px;
    right: 6px;
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    z-index: 5;
    pointer-events: none;
}

.rune-hexagon-btn {
    width: 36px;
    height: 36px;
    background: rgba(13, 14, 18, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s 
ease;
    position: relative;
    border: none;
}

.rune-icon-inner {
    font-size: 18px;
    color: var(--primary-accent);
}

.rune-hexagon-btn.has-rune .rune-icon-inner {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

	
.charm-slots-container {
    display: flex;
    gap: 1px;
    justify-content: center;
    flex-wrap: wrap;
}
	
.part-icon-display {
    width: 14px;
    height: 14px;
    padding: 0px;
    background: rgba(13, 14, 18, 0.6);
    border-radius: 4px;
	align-items: center;
	justify-content: center;
    border: 1px solid var(--border-light);
}

.part-icon-display img {
    width: 12px;
    height: 12px;
    display: block;   /* removes inline descender space */
    margin: auto; 

}

.charm-part-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.charm-add-btn {
    width: 14px;
    height: 14px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.charm-add-btn img.charm-img {
    width: auto;
    height: 14px;
    object-fit: cover;
}

.charm-add-btn i {
    font-family: "Font Awesome 6 Free";
    font-size: 12px;
    font-weight: 900;
}


.potential-points-display {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 12px;
    padding: 6px;
    background: rgba(13, 14, 18, 0.7);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.potential-class-icon {
    width: 11px;
    height: 11px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.potential-point-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
}

.potential-point-value {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-main);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

}





.sliding-panel-wrapper {
    position: relative; /* Keep it in the document flow on desktop */
}

.sliding-panel-toggle {
    display: none; /* Hide toggle button on desktop */
}

@media screen and (max-width: 768px) {

    .sliding-panel-wrapper {
        position: fixed;
        top: 0;
        left: 0; /* Changed from right: 0 */
        width: 320px;
        max-width: 85%;
        height: 100%;
        z-index: 1003;
        display: flex;
        align-items: center;
        transform: translateX(-100%); /* Changed from translateX(100%) */
        transition: transform 0.3s ease;
        will-change: transform;
    }
    
    .sliding-panel-wrapper.active {
        transform: translateX(0); /* slide in */
    }

    .sliding-panel-wrapper .input-container {
        width: 100%;
        height: 100%;
        min-width: unset;
        max-width: unset;
        border-radius: 0;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8); /* Changed shadow direction */
        border: none;
        border-right: 1px solid rgba(235, 74, 87, 0.2); /* Changed from border-left */

        padding: 20px;
        padding-top: 32px;
        overflow-y: auto;
    }

    .sliding-panel-toggle {
        display: flex;
        position: absolute;
        right: -40px; /* Changed from left: -40px */
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 60px;
        background: #13161B;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-left: none; /* Changed from border-right: none */
        color: #EB4A57;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        border-top-right-radius: 12px; /* Changed from border-top-left-radius */
        border-bottom-right-radius: 12px; /* Changed from border-bottom-left-radius */
        box-shadow: 5px 0 15px rgba(0,0,0,0.5); /* Changed shadow direction */
        z-index: -1;
    }

    .sliding-panel-toggle i {
        transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        will-change: transform;
        transform: rotate(180deg); /* Default state: arrow points left (to close) */
    }
    
    .sliding-panel-wrapper.active .sliding-panel-toggle i {
        transform: rotate(0deg); /* When open: arrow points right (to open) */
    }

    .panel-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1002;
        opacity: 0;
        visibility: hidden;
        will-change: opacity;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .panel-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

