* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #000;
    color: #fff;
    overflow: hidden;
    height: 100vh;
    background: linear-gradient(45deg, #000000, #1a0030);
}

#backgroundVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.4;
    filter: hue-rotate(30deg) saturate(1.3);
    transform: translate(-10%, -10%);
    will-change: transform;
}

.container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#introScreen {
    text-align: center;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid #ff00ff;
    box-shadow: 0 0 15px #ff00ff, 0 0 25px rgba(255, 0, 255, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

#introScreen::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ff00ff);
    z-index: -1;
    filter: blur(20px);
    opacity: 0.6;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #00ffff;
    letter-spacing: 5px;
    font-weight: 800;
}

p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ccc;
    text-shadow: 0 0 5px #ff00ff;
}

button {
    background: linear-gradient(135deg, #000, #1a0030, #ff00ff);
    color: #00ffff;
    border: 2px solid transparent;
    padding: 12px 24px;
    font-size: 14px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 32px rgba(255, 0, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

button::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ff00ff);
    border-radius: 25px;
    z-index: -1;
    filter: blur(1px);
    opacity: 0;
    transition: opacity 0.3s;
}

button:hover {
    background: linear-gradient(135deg, #1a0030, #ff00ff, #00ffff);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(255, 0, 255, 0.5),
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

button:hover::before {
    left: 100%;
}

button:hover::after {
    opacity: 1;
}

button:active {
    transform: translateY(0);
    transition: transform 0.1s;
}

#gameScreen {
    position: absolute;
    width: 100%;
    height: 100%;
}

#vortex {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    transform: translateZ(0);
    will-change: transform;
}

#gameObjects {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

#controlPanel {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid #0ff;
    width: auto;
    max-width: 85%;
    backdrop-filter: blur(5px);
}

#speedControl {
    grid-column: span 3;
    display: flex;
    align-items: center;
    gap: 10px;
}

#speedSlider {
    -webkit-appearance: none;
    width: 150px;
    height: 10px;
    background: #333;
    border-radius: 5px;
    outline: none;
}

#speedSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0ff;
    cursor: pointer;
}

.hidden {
    display: none;
}

#cameraFeed {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.game-object {
    position: absolute;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    padding: 12px;
    box-shadow: 
        0 0 20px rgba(255, 0, 255, 0.4),
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    cursor: pointer;
    user-select: none;
    border: 2px solid transparent;
    backdrop-filter: blur(8px);
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.game-object:hover {
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.8), 0 0 30px rgba(0, 255, 255, 0.3);
    transform: scale(1.05);
}

.game-object::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    z-index: -1;
    opacity: 0.3;
    filter: blur(8px);
}

.game-object:hover::before {
    opacity: 0.5;
}

.selected {
    transform: scale(1.3) !important;
    z-index: 10;
    box-shadow: 0 0 35px rgba(255, 0, 255, 1), 0 0 50px rgba(0, 255, 255, 0.7) !important;
}

.game-detail {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #ff00ff;
    max-width: 70%;
    max-height: 80%;
    overflow-y: auto;
    z-index: 20;
    text-align: center;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4), 0 0 25px rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.game-detail::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #ff00ff, #00ffff, #ff00ff);
    z-index: -1;
    filter: blur(20px);
    opacity: 0.3;
    border-radius: 15px;
}

.game-detail h2 {
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #ff00ff;
    letter-spacing: 2px;
}

.close-detail {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    color: #ff00ff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    text-shadow: 0 0 5px #00ffff;
}

.attributes-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
    width: 100%;
}

.attribute {
    display: flex;
    align-items: center;
    gap: 10px;
}

.attribute-label {
    width: 120px;
    text-align: left;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 5px #ff00ff;
}

.attribute-bar {
    flex-grow: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
}

.attribute-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.attribute-value {
    width: 30px;
    text-align: right;
    font-weight: bold;
    color: #fff;
}

.abilities-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 15px 0;
}

.ability-card {
    display: flex;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 0, 255, 0.3);
    border-radius: 10px;
    padding: 10px;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.ability-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

.ability-icon {
    font-size: 24px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.ability-info {
    flex-grow: 1;
}

.ability-name {
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 5px;
}

.ability-description {
    font-size: 0.9em;
    color: #ccc;
}

.customization-preview {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.customization-label {
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 5px;
}

.customization-outfit, .customization-accessories, .customization-effect {
    margin-bottom: 15px;
    text-align: left;
}

.customization-accessories ul {
    margin: 5px 0 0 20px;
}

.detail-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.tab-button {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 0, 255, 0.3);
    color: #ccc;
    padding: 8px 15px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: rgba(255, 0, 255, 0.2);
}

.tab-button.active {
    background: linear-gradient(90deg, rgba(255, 0, 255, 0.5), rgba(0, 255, 255, 0.5));
    color: #fff;
    border-color: #00ffff;
}

.tab-content {
    position: relative;
    min-height: 200px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.stats-note {
    font-size: 0.8em;
    color: #aaa;
    margin-top: 15px;
    font-style: italic;
}

.character-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: linear-gradient(135deg, rgba(25, 0, 51, 0.95), rgba(10, 10, 30, 0.95));
    border: 2px solid #ff00ff;
    border-radius: 12px;
    width: 85%;
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 20px;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5), 0 0 30px rgba(0, 255, 255, 0.3);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #ff00ff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #00ffff;
    transform: scale(1.2);
}

.character-tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 0, 255, 0.3);
    padding-bottom: 10px;
}

.tab-btn {
    background: transparent;
    color: #ddd;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    color: #00ffff;
}

.tab-btn.active {
    color: #ff00ff;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease forwards;
}

.tab-panel.active {
    display: block;
}

.attribute-group {
    margin-bottom: 25px;
}

.attribute-group h3 {
    margin-bottom: 15px;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    font-size: 20px;
}

.attribute-bar {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.attribute-icon {
    width: 30px;
    text-align: center;
    font-size: 20px;
    margin-right: 10px;
}

.attribute-name {
    width: 130px;
    text-align: left;
    color: #fff;
}

.attribute-meter {
    flex-grow: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.attribute-fill {
    height: 100%;
    border-radius: 6px;
    position: absolute;
    top: 0;
    left: 0;
    transition: width 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.attribute-value {
    width: 30px;
    margin-left: 10px;
    text-align: center;
    font-weight: bold;
    color: #fff;
}

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

.ability-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 0, 255, 0.3);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.ability-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
    border-color: #00ffff;
}

.ability-icon {
    width: 40px;
    height: 40px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
}

.ability-details {
    flex: 1;
}

.ability-name {
    font-weight: bold;
    color: #00ffff;
    margin-bottom: 5px;
    font-size: 16px;
}

.ability-desc {
    font-size: 14px;
    color: #ddd;
}

.ability-type {
    margin-top: 8px;
    font-size: 12px;
    color: #ff00ff;
    text-transform: uppercase;
}

.customization-section {
    margin-bottom: 20px;
}

.customization-section h3 {
    color: #00ffff;
    margin-bottom: 15px;
    font-size: 18px;
}

.outfit-display {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.outfit-item {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 0, 255, 0.3);
    border-radius: 8px;
    padding: 12px;
    flex: 1;
    min-width: 200px;
    transition: all 0.3s ease;
}

.outfit-item:hover {
    border-color: #00ffff;
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.outfit-name {
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.outfit-desc {
    font-size: 14px;
    color: #ccc;
}

.effect-preview {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.effect-preview::before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background: linear-gradient(45deg, rgba(255, 0, 0.1), rgba(0, 255, 255, 0.1));
    filter: blur(20px);
    animation: rotateBg 8s linear infinite;
    z-index: -1;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.accessory-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.accessory-item {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 0, 255, 0.3);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    color: #ddd;
    transition: all 0.3s ease;
}

.accessory-item:hover {
    background: rgba(255, 0, 255, 0.2);
    transform: translateY(-3px);
}

.weapon-display {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid rgba(255, 0, 255, 0.3);
}

.weapon-main h4 {
    color: #00ffff;
    margin-bottom: 10px;
    font-size: 18px;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
}

.weapon-specs {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.weapon-type, .weapon-element {
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    color: #fff;
    border: 1px solid rgba(255, 0, 255, 0.3);
}

.weapon-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.stat-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-meter {
    flex-grow: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    border-radius: 5px;
}

.weapon-desc {
    font-size: 14px;
    color: #ddd;
    margin-bottom: 15px;
    line-height: 1.4;
}

.weapon-combos h5 {
    color: #ff00ff;
    margin-bottom: 8px;
}

.weapon-combos ul {
    list-style: none;
    padding: 0;
}

.weapon-combos li {
    padding: 5px 0;
    color: #fff;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 0, 255, 0.1);
}

.weapon-combos li:last-child {
    border-bottom: none;
}

.alt-weapons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.alt-weapon {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 10px;
    width: calc(50% - 5px);
}

.alt-name {
    color: #fff;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.alt-specs {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #ccc;
}

.combat-style {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid rgba(255, 0, 255, 0.3);
}

.combat-style h4 {
    color: #ff00ff;
    margin-bottom: 10px;
    font-size: 18px;
    text-shadow: 0 0 8px rgba(255, 255, 0.5);
}

.style-desc {
    color: #ddd;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.4;
}

.special-moves h5 {
    color: #00ffff;
    margin-bottom: 8px;
}

.moves-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.move-item {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    padding: 5px 12px;
    font-size: 13px;
    color: #fff;
}

.hidden {
    display: none;
}

.ar-surface-indicator {
    animation: pulse-blue 2s infinite alternate;
}

.ar-tutorial {
    animation: fade-in 0.5s ease forwards;
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 10px rgba(0, 255, 255, 0.5); }
    100% { box-shadow: 0 0 20px rgba(0, 255, 255, 0.8); }
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px) translateX(-50%); }
    to { opacity: 1; transform: translateY(0) translateX(-50%); }
}

.enemy-analyzer {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 1 solid #ff00ff;
    color: #fff;
    font-size: 14px;
    z-index: 100;
    width: 200px;
}

.enemy-analyzer h3 {
    margin: 0 0 10px;
    color: #00ffff;
    font-size: 16px;
    text-align: center;
}

.enemy-analyzer .style-indicator {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.enemy-analyzer .adaptive-warning {
    background: rgba(255, 0, 0, 0.3);
    padding: 5px;
    border-radius: 5px;
    margin-top: 10px;
    font-size: 12px;
    text-align: center;
    animation: pulse-red 1s infinite alternate;
}

@keyframes pulse-red {
    0% { background: rgba(255, 0, 0, 0.3); }
    100% { background: rgba(255, 0, 0, 0.5); }
}

.combat-arena {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.combat-arena.active {
    pointer-events: auto;
}

.arena-boundary {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 40%;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-bottom: none;
    border-radius: 50% 50% 0 0;
    pointer-events: none;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2) inset;
}

.arena-floor {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, rgba(0, 255, 255, 0.2), transparent);
    pointer-events: none;
}

.ar-portal {
    width: 300px;
    height: 300px;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.8);
}

.portal-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 15px solid;
    border-radius: 50%;
    border-color: #ff00ff;
    box-shadow: 0 0 30px #ff00ff inset, 0 0 30px #ff00ff;
    animation: portal-ring-rotate 10s linear infinite;
}

.portal-ring.exit {
    border-color: #00ffff;
    box-shadow: 0 0 30px #00ffff inset, 0 0 30px #00ffff;
    animation-direction: reverse;
}

@keyframes portal-ring-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.portal-center {
    position: absolute;
    top: 15px;
    left: 15px;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    background: radial-gradient(circle, rgba(128, 0, 255, 0.8) 0%, rgba(0, 255, 255, 0.5) 70%);
    border-radius: 50%;
    animation: portal-pulse 3s ease-in-out infinite alternate;
}

.portal-center.exit {
    background: radial-gradient(circle, rgba(0, 0, 255, 0.8) 0%, rgba(255, 0, 255, 0.5) 70%);
}

@keyframes portal-pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    100% { transform: scale(1.05); opacity: 0.9; }
}

.portal-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="white"/></svg>');
    background-repeat: repeat;
    border-radius: 50%;
    animation: portal-particles-rotate 20s linear infinite;
}

.portal-particles.exit {
    animation-direction: reverse;
}

@keyframes portal-particles-rotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.5); }
    100% { transform: rotate(360deg) scale(1); }
}

.portal-label {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #00ffff;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.mode-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #ff00ff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.arena-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.8) 0%, rgba(255, 0, 255, 0.8) 100%);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.arena-transition.exit {
    background: radial-gradient(circle, rgba(255, 0, 255, 0.8) 0%, rgba(0, 255, 255, 0.8) 100%);
}

.digital-arena {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 20;
    overflow: hidden;
    opacity: 0;
    transition: opacity 1s ease;
    perspective: 1000px;
}

.arena-sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, #1B2735 0%, #090A0F 70%);
    overflow: hidden;
}

.arena-floor {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: rotateX(70deg);
    transform-origin: bottom;
    background-size: 100px 100px;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.2) 1px, transparent 1px);
    background-position: center center;
    animation: floor-grid-move 20s linear infinite;
}

@keyframes floor-grid-move {
    0% { background-position: 0 0; }
    100% { background-position: 100px 0; }
}

.arena-boundaries {
    position: absolute;
    top: 10%;
    left: 5%;
    width: 90%;
    height: 80%;
    border: 2px solid rgba(255, 0, 255, 0.3);
    border-radius: 50% 50% 0 0;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.2) inset, 0 0 30px rgba(0, 255, 255, 0.2);
    pointer-events: none;
}

.arena-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.combat-zone {
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 50%;
    z-index: 3;
}

.arena-hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.mode-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #ff00ff;
    color: #00ffff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.view-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    pointer-events: all;
}

.view-controls button {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #ff00ff;
    color: #fff;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-controls button:hover {
    background: rgba(255, 0, 255, 0.3);
}

.view-controls button.active {
    background: linear-gradient(90deg, rgba(255, 0, 255, 0.5), rgba(0, 255, 255, 0.5));
    color: #fff;
    border-color: #00ffff;
}

.arena-character {
    position: absolute;
    bottom: 10%;
    width: 200px;
    height: 300px;
    transform: translateX(-50%);
}

.character-model {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: bottom center;
    background-repeat: no-repeat;
}

.character-shadow {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 70%);
}

.character-effects {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.health-bar-container {
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    overflow: hidden;
}

.health-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #ff0000);
    transition: width 0.3s ease;
}

.health-text {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #fff;
    text-shadow: 0 0 3px #000;
}

.character-model.ascendentes {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="200" viewBox="0 0 100 200"><rect x="40" y="20" width="20" height="100" fill="%2300ffff"/><circle cx="50" cy="10" r="10" fill="%2300ffff"/></svg>');
    filter: drop-shadow(0 0 10px #00ffff);
}

.character-model.desgarradores {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="200" viewBox="0 0 100 200"><rect x="35" y="20" width="30" height="100" fill="%23ff0000"/><circle cx="50" cy="10" r="10" fill="%23ff0000"/></svg>');
    filter: drop-shadow(0 0 10px #ff0000);
}

.character-model.exiliados {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="200" viewBox="0 0 100 200"><rect x="40" y="20" width="20" height="100" fill="%2300ff00"/><circle cx="50" cy="10" r="10" fill="%2300ff00"/></svg>');
    filter: drop-shadow(0 0 10px #00ff00);
}

.character-model.consorcio {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="200" viewBox="0 0 100 200"><rect x="40" y="20" width="20" height="100" fill="%239c27b0"/><circle cx="50" cy="10" r="10" fill="%239c27b0"/></svg>');
    filter: drop-shadow(0 0 10px #9c27b0);
}

.character-model.gladiadores {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="200" viewBox="0 0 100 200"><rect x="40" y="20" width="20" height="100" fill="%23ffeb3b"/><circle cx="50" cy="10" r="10" fill="%23ffeb3b"/></svg>');
    filter: drop-shadow(0 0 10px #ffeb3b);
}

.character-model.místicos {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="200" viewBox="0 0 100 200"><rect x="40" y="20" width="20" height="100" fill="%232196f3"/><circle cx="50" cy="10" r="10" fill="%232196f3"/></svg>');
    filter: drop-shadow(0 0 10px #2196f3);
}

.digital-arena.first-person-view .combat-zone {
    perspective: 400px;
}

.digital-arena.first-person-view .arena-character.enemy {
    transform: translateX(-50%) scale(1.5) translateZ(-100px);
}

.digital-arena.first-person-view .arena-character.player {
    opacity: 0;
}

.digital-arena.third-person-view .arena-character.player {
    left: 30%;
}

.digital-arena.third-person-view .arena-character.enemy {
    left: 70%;
}

.cyberpunk-city .arena-sky {
    background: linear-gradient(to bottom, #000000, #1a062a);
    overflow: hidden;
}

.cyberpunk-city .arena-sky::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 0, 0.5) 3px, transparent 4px);
    animation: city-scan 10s linear infinite;
}

@keyframes city-scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.floating-temple .arena-sky {
    background: linear-gradient(to bottom, #2a0845, #000000);
}

.floating-temple .arena-floor {
    background-image: 
        radial-gradient(circle at center, rgba(0, 255, 255, 0.1) 0%, transparent 70%),
        repeating-conic-gradient(from 0deg, rgba(0, 255, 255, 0.1) 0deg 10deg, transparent 10deg 20deg);
}

.quantum-void .arena-sky {
    background: black;
}

.quantum-void .arena-sky::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(white, rgba(255, 255, 255, 0.2) 2px, transparent 2px), 
        radial-gradient(white, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px;
    background-position: 0 0, 25px 25px;
    animation: stars-parallax 60s linear infinite alternate;
}

@keyframes stars-parallax {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-50px) translateY(-30px); }
}

.rain-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to bottom, transparent 0%, rgba(0, 255, 255, 0.2) 100%);
    background-size: 10px 100px;
    animation: rain-fall 0.5s linear infinite;
    opacity: 0.7;
}

@keyframes rain-fall {
    0% { background-position-y: -100px; }
    100% { background-position-y: 0; }
}

.neon-flicker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 50px rgba(255, 0, 255, 0.3), inset 0 0 80px rgba(0, 255, 255, 0.2);
    animation: neon-pulse 4s ease-in-out infinite alternate;
}

@keyframes neon-pulse {
    0% { opacity: 0.3; }
    50% { 0.5; }
    52% { opacity: 0.3; }
    54% { 0.5; }
    100% { opacity: 0.7; }
}

.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.8) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: float-up 20s linear infinite;
}

@keyframes float-up {
    0% { background-position: 0 0; }
    100% { background-position: 50px -500px; }
}

.void-ripples {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(255, 0, 255, 0.5);
    animation: void-pulse 6s cubic-bezier(0.1, 0, 0.9, 1) infinite;
}

@keyframes void-pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 0, 255, 0.5); }
    70% { box-shadow: 0 0 0 300px rgba(255, 0, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 255, 0); }
}

.ambient-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: ambient-drift 30s linear infinite;
}

@keyframes ambient-drift {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

.battle-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #000, #1a0030);
    border: 2px solid #ff00ff;
    color: #00ffff;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5), 0 0 25px rgba(0, 255, 255, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.battle-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.8), 0 0 30px rgba(0, 255, 255, 0.5);
}

.battle-button:active {
    transform: scale(0.95);
}

.swords-container {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.sword {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 6px;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    border-radius: 1px;
    transform-origin: 10px center;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}

.sword::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 10px;
    height: 10px;
    background: #444;
    border-radius: 2px;
    border: 1px solid #ff00ff;
}

.sword::after {
    content: '';
    position: absolute;
    top: 0;
    right: -5px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 3px 0 3px 10px;
    border-color: transparent transparent transparent #00ffff;
    filter: drop-shadow(0 0 3px rgba(0, 255, 255, 0.7));
}

.sword-left {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.sword-right {
    transform: translate(-50%, -50%) rotate(45deg);
}

.battle-button.animate .sword-left {
    animation: sword-clash-left 0.5s forwards;
}

.battle-button.animate .sword-right {
    animation: sword-clash-right 0.5s forwards;
}

@keyframes sword-clash-left {
    0% { transform: translate(-50%, -50%) rotate(-45deg); }
    20% { transform: translate(-60%, -60%) rotate(-60deg); }
    40% { transform: translate(-40%, -40%) rotate(-30deg); }
    60% { transform: translate(-55%, -45%) rotate(-45deg) scale(1.1); }
    80% { transform: translate(-45%, -55%) rotate(-45deg) scale(0.9); }
    100% { transform: translate(-50%, -50%) rotate(-45deg); }
}

@keyframes sword-clash-right {
    0% { transform: translate(-50%, -50%) rotate(45deg); }
    20% { transform: translate(-40%, -60%) rotate(60deg); }
    40% { transform: translate(-60%, -40%) rotate(30deg); }
    60% { transform: translate(-45%, -55%) rotate(45deg) scale(1.1); }
    80% { transform: translate(-55%, -45%) rotate(45deg) scale(0.9); }
    100% { transform: translate(-50%, -50%) rotate(45deg); }
}

.battle-button.animate {
    animation: button-pulse 0.5s;
}

@keyframes button-pulse {
    0% { box-shadow: 0 0 15px rgba(255, 0, 255, 0.5), 0 0 25px rgba(0, 255, 255, 0.3); }
    50% { box-shadow: 0 0 30px rgba(255, 0, 255, 0.8), 0 0 40px rgba(0, 255, 255, 0.6); }
    100% { box-shadow: 0 0 15px rgba(255, 0, 255, 0.5), 0 0 25px rgba(0, 255, 255, 0.3); }
}

.unity-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
    pointer-events: auto;
    background-color: black;
}

.unity-canvas {
    width: 100%;
    height: 100%;
    background: black;
}

.unity-loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ff00ff;
    border-radius: 10px;
    overflow: hidden;
}

.unity-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    transition: width 0.3s ease;
}

.ai-generation-button {
    background: linear-gradient(135deg, #000, #1a0030);
    border: 2px solid #ff00ff;
    color: #00ffff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px auto;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
    transition: all 0.3s ease;
}

.ai-generation-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.8), 0 0 25px rgba(0, 255, 255, 0.3);
}

.ai-generation-button .ai-icon {
    font-size: 20px;
}

.ai-generation-button.weapon {
    background: linear-gradient(135deg, #1a0030, #000);
    border-color: #00ffff;
    color: #ff00ff;
    margin-top: 20px;
}

.generation-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #ff00ff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.generated-preview {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #ff00ff;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    z-index: 1001;
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.6), 0 0 40px rgba(0, 255, 255, 0.4);
    overflow: hidden;
}

.generated-preview.weapon {
    border-color: #00ffff;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 0, 255, 0.3);
}

.preview-header h3 {
    margin: 0;
    color: #ff00ff;
    font-size: 18px;
}

.generated-preview.weapon .preview-header h3 {
    color: #00ffff;
}

.close-preview {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.preview-image-container {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.preview-image {
    max-width: 100%;
    max-height: 400px;
    border-radius: 5px;
    border: 1px solid rgba(255, 0, 255, 0.3);
}

.generated-preview.weapon .preview-image {
    border-color: rgba(0, 255, 255, 0.3);
}

.weapon-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 20px 20px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.stat-label {
    color: #ccc;
}

.stat-value {
    color: #00ffff;
    font-weight: bold;
}

.preview-description {
    padding: 0 20px 20px;
    color: #ddd;
    font-size: 14px;
    line-height: 1.4;
}

.preview-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0 20px 20px;
}

.preview-actions button {
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-actions button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.preview-actions button.regenerate {
    background: linear-gradient(90deg, #333, #666);
    color: #fff;
}

.weapon-equip-prompt {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ffff;
    border-radius: 10px;
    padding: 15px 20px;
    z-index: 1001;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    text-align: center;
}

.prompt-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.prompt-buttons button {
    background: linear-gradient(90deg, #00ffff, #0088ff);
    color: #000;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
}

.prompt-buttons button.equip-no {
    background: linear-gradient(90deg, #333, #666);
    color: #fff;
}

.character-model-container {
    position: relative;
    width: 100%;
    height: 200px;
    margin: 15px 0;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.character-model-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.character-model-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
}

.character-model-name {
    color: #ff00ff;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
}

.character-model-faction {
    color: #00ffff;
    font-size: 14px;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
}

.fight-design-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    max-width: 550px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #ff00ff;
    border-radius: 10px;
    z-index: 100;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5), 0 0 30px rgba(0, 255, 255, 0.2);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 0, 255, 0.3);
}

.panel-header h3 {
    margin: 0;
    color: #00ffff;
    font-size: 20px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.close-panel {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.panel-content {
    padding: 15px;
    max-height: 65vh;
    overflow-y: auto;
}

.section {
    margin-bottom: 20px;
}

.section h4 {
    color: #ff00ff;
    margin: 0 0 10px 0;
    font-size: 16px;
}

.enemy-selector, .stage-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.enemy-option, .stage-option {
    display: flex;
    align-items: center;
    padding: 10px;
    background: rgba(25, 0, 51, 0.6);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.enemy-option:hover, .stage-option:hover {
    background: rgba(25, 0, 51, 0.8);
    transform: translateY(-2px);
}

.enemy-option.active, .stage-option.active {
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.enemy-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.enemy-info {
    flex-grow: 1;
}

.enemy-name, .stage-name {
    font-weight: bold;
    color: #fff;
    margin-bottom: 5px;
}

.enemy-desc {
    font-size: 12px;
    color: #ccc;
}

.stage-preview {
    width: 80px;
    height: 45px;
    margin-right: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.stage-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 0, 255, 0.3), rgba(0, 255, 255, 0.3));
}

.stage-preview.cyberpunk::before {
    background: linear-gradient(120deg, rgba(255, 0, 255, 0.5), rgba(0, 255, 255, 0.3));
}

.stage-preview.mystical::before {
    background: linear-gradient(120deg, rgba(128, 0, 255, 0.5), rgba(0, 255, 128, 0.3));
}

.stage-preview.void::before {
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.7), rgba(64, 0, 128, 0.5));
}

.stage-preview.gladiator::before {
    background: linear-gradient(120deg, rgba(255, 215, 0, 0.5), rgba(255, 0, 0, 0.3));
}

.stage-preview.quantum::before {
    background: linear-gradient(120deg, rgba(0, 128, 255, 0.5), rgba(255, 0, 128, 0.3));
}

.fight-settings {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.setting-item label {
    width: 100px;
    color: #fff;
}

.setting-item input[type="range"] {
    flex-grow: 1;
    height: 5px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    outline: none;
}

.setting-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #00ffff;
    cursor: pointer;
}

.setting-item select {
    flex-grow: 1;
    background: rgba(25, 0, 51, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    outline: none;
}

.setting-value {
    width: 30px;
    text-align: center;
    font-weight: bold;
    color: #00ffff;
}

.start-fight-button {
    display: block;
    width: 100%;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    color: #000;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-fight-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

.fight-arena {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.arena-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, #1a0030 0%, #000000 100%);
    z-index: 1;
}

.arena-floor {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    z-index: 2;
}

.arena-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.fighter-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 15%;
}

.fighter {
    position: absolute;
    bottom: 100px;
    width: 150px;
    height: 300px;
    transition: transform 0.3s ease;
}

.fighter.player {
    left: 25%;
    transform: translateX(-50%);
}

.fighter.enemy {
    right: 25%;
    transform: translateX(50%);
}

.fighter-model {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: bottom center;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
}

.fighter-shadow {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.6) 0%, transparent 70%);
}

.fight-hud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.player-hud, .enemy-hud {
    position: absolute;
    top: 20px;
    width: 250px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #ff00ff;
    border-radius: 10px;
    padding: 10px;
}

.player-hud {
    left: 20px;
}

.enemy-hud {
    right: 20px;
}

.fighter-name {
    color: #00ffff;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: center;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.health-bar-container, .energy-bar-container {
    height: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    margin-bottom: 5px;
    overflow: hidden;
}

.health-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #ff0000, #ff5500);
    transition: width 0.3s ease;
}

.energy-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #00ffff, #0088ff);
    transition: width 0.3s ease;
}

.combo-counter {
    text-align: center;
    font-size: 12px;
    color: #fff;
}

.health-bar.low-health {
    animation: pulse-red 0.8s infinite alternate;
}

@keyframes pulse-red {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.fight-controls {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: all;
}

.control-group {
    display: flex;
    gap: 15px;
}

.fight-action-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #ff00ff;
    color: #fff;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fight-action-btn:hover {
    background: rgba(255, 0, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}

.attack-btn {
    border-color: #ff0000;
    color: #ff5500;
}

.defend-btn {
    border-color: #00ffff;
    color: #00ffff;
}

.special-btn {
    border-color: #ff00ff;
    color: #ff00ff;
}

.counter-btn {
    border-color: #ffff00;
    color: #ffff00;
}

.fight-messages {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.fight-message {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 15px;
    border-radius: 20px;
    text-align: center;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.exit-fight-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #ff0000;
    color: #ff0000;
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
}

.exit-fight-btn:hover {
    background: rgba(255, 0, 0, 0.3);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.fighter.attacking {
    animation: attack 0.5s ease;
}

.fighter.defending {
    animation: defend 0.8s ease;
}

.fighter.special-attack {
    animation: special-attack 0.8s ease;
}

.fighter.countering {
    animation: counter 0.5s ease;
}

.fighter.counter-stance {
    animation: counter-stance 0.5s ease forwards;
}

.fighter.hit {
    animation: hit 0.3s ease;
}

.fighter.victory {
    animation: victory 1s ease infinite;
}

.fighter.defeat {
    animation: defeat 1s ease forwards;
}

@keyframes attack {
    0% { transform: translateX(-50%); }
    30% { transform: translateX(-30%); }
    60% { transform: translateX(-70%); }
    100% { transform: translateX(-50%); }
}

@keyframes defend {
    0% { transform: translateX(-50%); }
    50% { transform: translateX(-50%) scale(0.9); filter: brightness(1.5); }
    100% { transform: translateX(-50%); }
}

@keyframes special-attack {
    0% { transform: translateX(-50%); filter: brightness(1); }
    20% { transform: translateX(-50%) scale(1.1); filter: brightness(1.5); }
    40% { transform: translateX(-30%); filter: brightness(1.5); }
    70% { transform: translateX(-70%); filter: brightness(1.5); }
    100% { transform: translateX(-50%); filter: brightness(1); }
}

@keyframes counter {
    0% { transform: translateX(-50%); }
    30% { transform: translateX(-40%) rotate(-5deg); }
    60% { transform: translateX(-60%) rotate(5deg); }
    100% { transform: translateX(-50%); }
}

@keyframes counter-stance {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(-50%) rotate(-10deg); }
}

@keyframes hit {
    0% { transform: translateX(50%); filter: brightness(1); }
    20% { transform: translateX(55%) rotate(5deg); filter: brightness(2); }
    40% { transform: translateX(45%) rotate(-5deg); filter: brightness(2); }
    100% { transform: translateX(50%); filter: brightness(1); }
}

@keyframes victory {
    0% { transform: translateX(-50%); }
    50% { transform: translateX(-50%) translateY(-20px); }
    100% { transform: translateX(-50%); }
}

@keyframes defeat {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(-50%) rotate(90deg) translateY(50px); }
}

.bg-cyber-arena {
    background: linear-gradient(to bottom, #1a0030, #000000);
}

.floor-cyber-arena {
    background-size: 50px 50px;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.2) 1px, transparent 1px);
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { background-position: 0 0; }
    100% { background-position: 50px 0; }
}

.bg-neon-dojo {
    background: linear-gradient(to bottom, #2a0845, #000000);
}

.bg-void-platform {
    background: #000;
}

.cyber-grid {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
    transform: perspective(500px) rotateX(60deg);
    transform-origin: bottom;
    animation: grid-move 20s linear infinite;
}

.floor-cyber-arena {
    background-size: 50px 50px;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    animation: grid-move 20s linear infinite;
}

.fight-result {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
}

.result-content {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid;
    border-radius: 10px;
    padding: 30px;
    width: 80%;
    max-width: 500px;
    text-align: center;
}

.result-content.victory {
    border-color: #00ffff;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
}

.result-content.defeat {
    border-color: #ff0000;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.6);
}

.result-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.result-content.victory h2 {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.result-content.defeat h2 {
    color: #ff0000;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

.result-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
}

.stat-label {
    color: #ccc;
}

.stat-value {
    color: #fff;
    font-weight: bold;
}

.continue-btn {
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    color: #000;
    border: none;
    padding: 10px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.continue-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

.fighter-model.ascendentes {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="200" viewBox="0 0 100 200"><rect x="40" y="20" width="20" height="100" fill="%2300ffff"/><circle cx="50" cy="10" r="10" fill="%2300ffff"/></svg>');
    filter: drop-shadow(0 0 10px #00ffff);
}

.fighter-model.desgarradores {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="200" viewBox="0 0 100 200"><rect x="35" y="20" width="30" height="100" fill="%23ff0000"/><circle cx="50" cy="10" r="10" fill="%23ff0000"/></svg>');
    filter: drop-shadow(0 0 10px #ff0000);
}

.fighter-model.exiliados {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="200" viewBox="0 0 100 200"><rect x="40" y="20" width="20" height="100" fill="%2300ff00"/><circle cx="50" cy="10" r="10" fill="%2300ff00"/></svg>');
    filter: drop-shadow(0 0 10px #00ff00);
}

.fighter-model.consorcio {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="200" viewBox="0 0 100 200"><rect x="40" y="20" width="20" height="100" fill="%239c27b0"/><circle cx="50" cy="10" r="10" fill="%239c27b0"/></svg>');
    filter: drop-shadow(0 0 10px #9c27b0);
}

.fighter-model.gladiadores {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="200" viewBox="0 0 100 200"><rect x="40" y="20" width="20" height="100" fill="%23ffeb3b"/><circle cx="50" cy="10" r="10" fill="%23ffeb3b"/></svg>');
    filter: drop-shadow(0 0 10px #ffeb3b);
}

.fighter-model.místicos {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="200" viewBox="0 0 100 200"><rect x="40" y="20" width="20" height="100" fill="%232196f3"/><circle cx="50" cy="10" r="10" fill="%232196f3"/></svg>');
    filter: drop-shadow(0 0 10px #2196f3);
}

@keyframes quick-attack {
    0% { transform: translateX(-50%); }
    15% { transform: translateX(-40%) rotate(-5deg); }
    30% { transform: translateX(-30%); }
    45% { transform: translateX(-35%) rotate(3deg); }
    60% { transform: translateX(-60%); }
    75% { transform: translateX(-55%) rotate(-3deg); }
    100% { transform: translateX(-50%); }
}

@keyframes heavy-attack {
    0% { transform: translateX(-50%); }
    20% { transform: translateX(-40%) scale(1.1); }
    40% { transform: translateX(-35%) scale(1.2) rotate(-5deg); }
    60% { transform: translateX(-75%) scale(1.1); }
    80% { transform: translateX(-70%) scale(1.0) rotate(5deg); }
    100% { transform: translateX(-50%); }
}

@keyframes dodge-left {
    0% { transform: translateX(-50%); }
    50% { transform: translateX(-80%) rotate(-10deg); }
    100% { transform: translateX(-50%); }
}

@keyframes dodge-right {
    0% { transform: translateX(-50%); }
    50% { transform: translateX(-20%) rotate(10deg); }
    100% { transform: translateX(-50%); }
}

@keyframes combo-finisher {
    0% { transform: translateX(-50%); filter: brightness(1); }
    20% { transform: translateX(-50%) scale(1.2); filter: brightness(1.8); }
    40% { transform: translateX(-30%) scale(1.1); filter: brightness(1.5); }
    60% { transform: translateX(-70%) scale(1.2); filter: brightness(1.8); }
    80% { transform: translateX(-60%) scale(1.1); filter: brightness(1.5); }
    100% { transform: translateX(-50%); filter: brightness(1); }
}

@keyframes stagger {
    0% { transform: translateX(50%); }
    25% { transform: translateX(60%) rotate(8deg); }
    50% { transform: translateX(55%) rotate(-5deg); }
    75% { transform: translateX(53%) rotate(3deg); }
    100% { transform: translateX(50%); }
}

.damage-indicator {
    position: absolute;
    font-size: 24px;
    font-weight: bold;
    color: red;
    text-shadow: 0 0 5px #000;
    z-index: 100;
    pointer-events: none;
    animation: damage-float 1s ease-out forwards;
}

@keyframes damage-float {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-50px); opacity: 0; }
}

.combo-counter.active {
    color: #ff00ff;
    font-size: 16px;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
    animation: pulse-combo 0.5s infinite alternate;
}

@keyframes pulse-combo {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

.fighter.quick-attacking { animation: quick-attack 0.4s ease; }
.fighter.heavy-attacking { animation: heavy-attack 0.7s ease; }
.fighter.dodging-left { animation: dodge-left 0.5s ease; }
.fighter.dodging-right { animation: dodge-right 0.5s ease; }
.fighter.combo-finishing { animation: combo-finisher 0.8s ease; }
.fighter.staggered { animation: stagger 0.5s ease; }

.auto-simulate-button {
    background: linear-gradient(135deg, #000, #1a0030);
    border: 2px solid #ff00ff;
    color: #00ffff;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.auto-simulate-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.5);
}

.rewards-section {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
}

.rewards-section.victory {
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.rewards-section.defeat {
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.rewards-section h3 {
    color: #00ffff;
    margin: 0 0 10px 0;
    text-align: center;
}

.rewards-section.defeat h3 {
    color: #ff0000;
}

.rewards-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reward-item {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.reward-item.coins {
    margin-top: 10px;
    font-weight: bold;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.5);
}

.reward-item .gain {
    color: #00ff00;
}

.reward-item .loss {
    color: #ff0000;
}

@media (max-width: 768px) {
    #controlPanel {
        grid-template-columns: repeat(2, 1fr);
        bottom: 10px;
        max-width: 95%;
        gap: 6px;
    }
    
    .game-detail {
        max-width: 90%;
        max-height: 85%;
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
        padding: 15px;
    }
    
    .fight-design-panel {
        width: 95%;
        max-width: none;
    }
    
    h1 {
        font-size: 3rem;
    }
    
    .game-object {
        width: 80px !important;
        height: 80px !important;
    }
}

.google-ai {
    background: linear-gradient(135deg, #4285f4, #34a853, #fbbc05, #ea4335);
    border-color: #4285f4;
    animation: google-glow 2s ease-in-out infinite alternate;
}

@keyframes google-glow {
    0% { box-shadow: 0 0 10px rgba(66, 133, 244, 0.5); }
    100% { box-shadow: 0 0 20px rgba(66, 133, 244, 0.8), 0 0 30px rgba(52, 168, 83, 0.3); }
}

.api-key-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.api-key-modal .modal-content {
    background: linear-gradient(135deg, rgba(25, 0, 51, 0.95), rgba(10, 10, 30, 0.95));
    border: 2px solid #4285f4;
    border-radius: 12px;
    width: 400px;
    padding: 20px;
    text-align: center;
}

.api-key-modal input {
    width: 100%;
    padding: 10px;
    margin: 15px 0;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #4285f4;
    border-radius: 5px;
    color: #fff;
    outline: none;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.modal-buttons button {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

#saveApiKey {
    background: linear-gradient(90deg, #4285f4, #34a853);
    color: white;
}

#skipApiKey {
    background: linear-gradient(90deg, #333, #666);
    color: white;
}

.generated-preview.character-4d {
    border-color: #4285f4;
    box-shadow: 0 0 25px rgba(66, 133, 244, 0.6), 0 0 40px rgba(52, 168, 83, 0.4);
}

.character-4d-stats {
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    margin: 15px 0;
}

.evolution-level {
    color: #4285f4;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
}

.temporal-abilities h5 {
    color: #34a853;
    margin: 10px 0 5px 0;
}

.ability-4d {
    background: rgba(66, 133, 244, 0.2);
    padding: 5px 10px;
    margin: 5px 0;
    border-radius: 3px;
    font-size: 14px;
    border-left: 3px solid #4285f4;
}

.generation-notification.google-ai {
    border-color: #4285f4;
    background: linear-gradient(90deg, rgba(66, 133, 244, 0.9), rgba(52, 168, 83, 0.9));
}

.generative-3d-player {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 300px;
    z-index: 100;
    pointer-events: none;
}

.player-aura {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 240px;
    height: 340px;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 255, 255, 0.1) 60%, rgba(255, 0, 255, 0.1) 80%, transparent 100%);
    border-radius: 50%;
    animation: aura-pulse 3s ease-in-out infinite alternate;
}

@keyframes aura-pulse {
    0% { transform: scale(0.9); opacity: 0.3; }
    100% { transform: scale(1.1); opacity: 0.7; }
}

.player-3d-model {
    position: relative;
    width: 100%;
    height: 100%;
    animation: model-idle 4s ease-in-out infinite alternate;
}

@keyframes model-idle {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-10px); }
}

.player-head {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, #00ffff, #ff00ff);
    border-radius: 50%;
    box-shadow: 0 0 15px #00ffff, inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.player-body {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 120px;
    background: linear-gradient(180deg, #00ffff, #ff00ff);
    border-radius: 10px;
    box-shadow: 0 0 20px #00ffff, inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.player-arms {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    display: flex;
    justify-content: space-between;
}

.player-arm {
    width: 15px;
    height: 80px;
    background: linear-gradient(180deg, #00ffff, #ff00ff);
    border-radius: 8px;
    animation: arm-sway 2s ease-in-out infinite alternate;
}

.player-arm.left {
    animation-delay: 0s;
}

.player-arm.right {
    animation-delay: 1s;
}

@keyframes arm-sway {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(5deg); }
}

.player-legs {
    position: absolute;
    top: 190px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    display: flex;
    justify-content: space-between;
}

.player-leg {
    width: 20px;
    height: 90px;
    background: linear-gradient(180deg, #00ffff, #ff00ff);
    border-radius: 10px;
    animation: leg-move 2s ease-in-out infinite alternate;
}

.player-leg.left {
    animation-delay: 0.5s;
}

.player-leg.right {
    animation-delay: 1.5s;
}

@keyframes leg-move {
    0% { transform: translateY(0px) rotate(-2deg); }
    100% { transform: translateY(5px) rotate(2deg); }
}

.generative-controls {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #ff00ff;
    border-radius: 10px;
    padding: 15px;
    width: 250px;
    z-index: 101;
    backdrop-filter: blur(10px);
}

.control-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.control-group label {
    color: #00ffff;
    font-weight: bold;
    width: 80px;
}

.control-slider {
    width: 120px;
    height: 5px;
    background: #333;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.control-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #00ffff;
    cursor: pointer;
    box-shadow: 0 0 5px #00ffff;
}

.generate-button {
    width: 100%;
    background: linear-gradient(90deg, #ff00ff, #00ffff);
    color: #000;
    border: none;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.generate-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5);
}