.arena-wrapper { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: var(--bg-arena); }
.arena-header { 
    padding: 20px; 
    border-bottom: 1px solid var(--border-color); 
    display: flex; 
    gap: 20px; 
    background: var(--bg-arena-header); 
    z-index: 5; 
    
    /* --- CORREÇÃO DE COMPATIBILIDADE (Safari/iOS) --- */
    -webkit-backdrop-filter: blur(5px); /* Para iPhone/Mac */
    backdrop-filter: blur(5px);         /* Padrão Moderno */
}
.fighter-card {
    flex: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.fighter-card:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.25); }

.fighter-card.blue { border-left: 4px solid var(--fighter-1); }
.fighter-card.red { border-right: 4px solid var(--fighter-2); text-align: right; }
.fighter-card.red input, .fighter-card.red textarea { text-align: right; }

/* Input de Nome do Lutador */
.f-input { 
    background: transparent; 
    border: none; 
    color: var(--text-primary); 
    font-weight: 600; /* Reduzi de 800 para 600 (Semi-bold para o texto digitado) */
    font-size: 1rem; /* Reduzi de 1.2rem para 1rem */
    width: 100%; 
    outline: none; 
    letter-spacing: 0.5px; 
}

/* Estilo do Texto de Sugestão (Placeholder) */
.f-input::placeholder {
    font-weight: 400; /* Bem fininho */
    font-size: 0.85rem; /* Menor que o texto normal (o "pontinho abaixo" que você pediu) */
    opacity: 0.6; /* Deixa clarinho */
    font-style: italic; /* Um toque de estilo para parecer instrução */
}

.f-prompt { background: rgba(0,0,0,0.1); border: 1px solid var(--border-color); color: var(--text-secondary); font-size: 0.9rem; padding: 10px; border-radius: 8px; resize: none; min-height: 60px; width: 100%; outline: none; transition: 0.3s; line-height: 1.4; }
.f-prompt:focus { border-color: var(--accent-color); color: var(--text-primary); background: rgba(0,0,0,0.2); }

.vs-badge { display: flex; align-items: center; justify-content: center; font-weight: 900; font-style: italic; color: var(--accent-gold); font-size: 2rem; text-shadow: 0 0 15px rgba(255, 215, 0, 0.4); transform: skew(-10deg); }

/* --- ARENA RING (CONTEÚDO) --- */
.arena-ring { 
    flex: 1; 
    overflow-y: auto; 
    padding: 40px; 
    display: flex; 
    flex-direction: column; 
    gap: 25px; 
    scroll-behavior: smooth; 
}

/* Estilos legados (fight-bubble/fight-name) mantidos para compatibilidade */
.fight-bubble, .arena-message {
    max-width: 80%;
    padding: 20px 25px;
    border-radius: 16px;
    font-size: 1.05rem;
    line-height: 1.7;
    position: relative;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
@keyframes popIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.fight-bubble.blue, .arena-message.blue {
    align-self: flex-start;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid var(--fighter-1);
    color: var(--text-primary);
    border-top-left-radius: 2px;
    margin-right: 20%;
}
.fight-bubble.red, .arena-message.red {
    align-self: flex-end;
    background: rgba(255, 0, 85, 0.08);
    border: 1px solid var(--fighter-2);
    color: var(--text-primary);
    border-top-right-radius: 2px;
    margin-left: 20%;
}
.arena-message.system {
    align-self: center;
    text-align: center;
    max-width: 60%;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: var(--accent-gold);
    font-style: italic;
}

.fight-name, .msg-header {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    opacity: 0.9;
    letter-spacing: 1.5px;
    display: block;
}
.blue .fight-name, .blue .msg-header { color: var(--fighter-1); text-shadow: 0 0 10px rgba(0, 229, 255, 0.4); }
.red .fight-name, .red .msg-header { color: var(--fighter-2); text-shadow: 0 0 10px rgba(255, 0, 85, 0.4); }
.system .msg-header { color: var(--accent-gold); text-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }

.msg-body p { margin-top: 0; margin-bottom: 1em; }
.msg-body p:last-child { margin-bottom: 0; }
.msg-body strong { font-weight: 700; color: inherit; filter: brightness(1.2); }
.msg-body ul, .msg-body ol { margin-bottom: 1em; padding-left: 20px; }
.msg-body li { margin-bottom: 0.5em; }

/* --- TIPOGRAFIA MARKDOWN NA ARENA --- */
.fight-bubble p { margin-top: 0; margin-bottom: 1em; }
.fight-bubble p:last-child { margin-bottom: 0; }
.fight-bubble strong { font-weight: 700; color: inherit; filter: brightness(1.2); }
.fight-bubble ul, .fight-bubble ol { margin-bottom: 1em; padding-left: 20px; }
.fight-bubble li { margin-bottom: 0.5em; }

/* --- CONTROLES --- */
.arena-controls { padding: 20px 25px; border-top: 1px solid var(--border-color); background: var(--bg-panel); display: flex; gap: 15px; flex-direction: column; box-shadow: 0 -4px 16px rgba(0,0,0,0.1); }
.topic-input { background: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-primary); padding: 14px; border-radius: 10px; width: 100%; text-align: center; font-size: 1.05rem; transition: 0.3s; }
.topic-input:focus { border-color: var(--accent-gold); outline: none; box-shadow: 0 0 12px rgba(255, 215, 0, 0.1); }

.fight-actions { display: flex; gap: 15px; }
.btn-fight { flex: 1; background: linear-gradient(90deg, var(--fighter-1), var(--fighter-2)); border: none; color: white; font-weight: 800; padding: 14px; border-radius: 10px; cursor: pointer; text-transform: uppercase; letter-spacing: 3px; transition: 0.3s; font-size: 1rem; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.btn-fight:hover { opacity: 0.9; box-shadow: 0 4px 16px rgba(255, 255, 255, 0.15); transform: translateY(-2px); }
.btn-stop { width: 60px; background: var(--bg-input); border: 1px solid var(--border-color); color: #fff; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; transition: 0.3s; }
.btn-stop:hover { background: #ff4444; border-color: #ff4444; box-shadow: 0 0 12px rgba(255, 68, 68, 0.3); }

@media (max-width: 768px) {
    .arena-header { flex-direction: column; gap: 15px; padding: 15px; }
    .vs-badge { font-size: 1.5rem; margin: 5px 0; transform: skew(0); }
    .fighter-card.red { text-align: left; border-right: 1px solid var(--border-color); border-left: 4px solid var(--fighter-2); }
    .fighter-card.red input, .fighter-card.red textarea { text-align: left; }
    .fight-bubble, .arena-message { max-width: 90%; margin: 0 !important; }
    .arena-message.system { max-width: 90%; }
}