.battle-tab{background:#fff;padding:1.5rem;border-radius:12px;box-shadow:0 10px 30px #0000000d}.battle-tab__nav{display:flex;gap:.5rem;margin-bottom:1.5rem;flex-wrap:wrap}.battle-tab__nav button{border:1px solid #ddd;background:#f8f8f8;padding:.5rem 1rem;border-radius:999px;cursor:pointer;font-weight:600;transition:all .2s ease;color:#000}.battle-tab__nav button.active{background:#4a90e2;border-color:#4a90e2;color:#fff}.battle-tab__content{min-height:200px}.battle-tab__cards{display:flex;flex-direction:column;gap:.6rem}.battle-card{border:1px solid #e5e5e5;border-radius:8px;padding:.6rem;background:#fafafa}.battle-card--enemy{border:2px solid #ef4444;background:#fef2f2}.battle-card--character{border:2px solid #3b82f6;background:#eff6ff}.battle-card__header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.battle-card__header h4{margin:0;color:#000}.battle-card__header button{border:none;background:#ff4d4f;color:#fff;padding:.25rem .6rem;border-radius:4px;cursor:pointer;font-size:.85rem}.battle-card__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.5rem;margin-bottom:.6rem}.battle-card__grid--sprite{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.battle-card label{display:flex;flex-direction:column;font-size:.85rem;color:#333;gap:.25rem}.battle-card input,.battle-card select,.battle-card textarea{border:1px solid #ccc;border-radius:4px;padding:.35rem .5rem;font-size:.9rem;font-family:inherit;color:#000;background-color:#fff}.battle-card select option{color:#000;background-color:#fff}.battle-card__textarea textarea{min-height:60px;resize:vertical}.battle-card__subsection{border-top:1px solid #e5e5e5;margin-top:.6rem;padding-top:.6rem}.battle-card__subsection-title{margin:0 0 .4rem;font-size:.75rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#000}.battle-card__hint{margin:.25rem 0 .4rem;font-size:.8rem;color:#666;line-height:1.3}.battle-card__word-tiles-toggle{display:inline-flex;align-items:center;gap:.4rem;font-size:.85rem;color:#333;margin-bottom:.5rem}.battle-card__word-tiles-toggle input{width:auto}.battle-card__quiz-text-answers,.battle-card__word-tiles{display:flex;flex-direction:column;gap:.5rem}.battle-card__word-tiles-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:.5rem}.battle-card__enemy-slots-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:.5rem;margin-bottom:.5rem}.battle-card__enemy-slot-row{display:flex;align-items:flex-end;gap:.4rem}.battle-card__enemy-slot-label{flex:1;display:flex;flex-direction:column;gap:.25rem;font-size:.85rem;color:#333}.battle-card__enemy-slot-remove{padding:.35rem .6rem;font-size:.85rem;border:1px solid #ccc;border-radius:4px;background:#fff;cursor:pointer;color:#666}.battle-card__enemy-slot-remove:hover{background:#f5f5f5;color:#000}.battle-card__action-btn{border:1px solid #ccc;background:#fff;color:#333;padding:.25rem .6rem;border-radius:4px;cursor:pointer;font-size:.85rem;transition:all .2s ease}.battle-card__action-btn:hover{background:#f5f5f5;border-color:#999}.battle-card__quiz-text-answer,.battle-card__word-tile{display:flex;align-items:flex-end;gap:.4rem}.battle-card__quiz-text-answer label,.battle-card__word-tile label{flex:1}.battle-card__word-tiles .battle-card__add,.battle-card__quiz-text-answers .battle-card__add{align-self:flex-start}.battle-card__add{border:1px dashed #bbb;padding:.5rem;border-radius:6px;background:#fff;cursor:pointer;font-weight:600;font-size:.9rem;color:#555}.battle-card__quiz-options{display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem;margin-top:.5rem}@media(max-width:1200px){.battle-card__quiz-options{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.battle-card__quiz-options{grid-template-columns:1fr}}.battle-card__quiz-option{border:1px dashed #d4d4d4;border-radius:6px;padding:.5rem;background:#fff;display:flex;flex-direction:column;gap:.4rem}.battle-card__quiz-option-row{border:1px dashed #d4d4d4;border-radius:6px;padding:.5rem;background:#fff;display:flex;flex-direction:row;align-items:flex-end;gap:.5rem;flex-wrap:wrap}.battle-card__quiz-option-label-inline{flex:1;min-width:150px;display:flex;flex-direction:column;gap:.25rem;font-size:.85rem;color:#333}.battle-encounter-preview{margin-top:1.25rem}.battle-encounter-preview__arena{position:relative;width:100%;max-width:300px;aspect-ratio:16 / 9;border-radius:12px;overflow:hidden;border:1px solid #d1d5db;background-color:#0f172a;background-size:cover;background-position:center;box-shadow:inset 0 0 30px #0f172a66}.battle-encounter-preview__arena--empty{background-image:linear-gradient(135deg,#1e293b 25%,transparent 25%),linear-gradient(-135deg,#1e293b 25%,transparent 25%),linear-gradient(135deg,transparent 75%,#1e293b 75%),linear-gradient(-135deg,transparent 75%,#1e293b 75%);background-size:40px 40px;background-position:0 0,0 20px,20px -20px,-20px 0px}.battle-encounter-preview__placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;padding:1rem;font-size:.95rem;color:#ffffffd9;background:#0206178c}.battle-encounter-preview__sprite{pointer-events:none}.battle-encounter-preview__sprite img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 14px rgba(0,0,0,.5))}.battle-encounter-preview__sprite-placeholder{width:100%;height:100%;background:#ffffff26;border:1px dashed rgba(255,255,255,.4);border-radius:8px;color:#ffffffe6;font-size:.85rem;display:flex;align-items:center;justify-content:center;padding:.5rem;text-align:center}.battle-encounter-preview__caption{margin:.6rem 0 0;font-size:.85rem;color:#4b5563}.battle-card__quiz-correct{flex-direction:row;align-items:center;gap:.4rem;font-size:.8rem;color:#000}.battle-card__quiz-correct input{width:auto;color:#000}.tags-section{margin-bottom:.6rem;padding:.6rem;background-color:#f9f9f9;border-radius:4px;border:1px solid #e0e0e0}.tags-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.add-tag-btn{padding:.3rem .6rem;background-color:#2196f3;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:.85rem}.add-tag-btn:hover{background-color:#0b7dda}.tags-list{display:flex;flex-wrap:wrap;gap:.4rem}.tag-item{display:inline-flex;align-items:center;gap:.4rem;padding:.3rem .6rem;background-color:#e3f2fd;color:#1976d2;border-radius:16px;font-size:.85rem;font-weight:500}.tag-item input{background:transparent;border:none;color:#1976d2;font-size:.85rem;font-weight:500;padding:0;min-width:80px;outline:none}.tag-item input::placeholder{color:#90caf9}.remove-tag-btn{background:none;border:none;color:#1976d2;cursor:pointer;font-size:1.2rem;line-height:1;padding:0;width:18px;height:18px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background-color .2s}.remove-tag-btn:hover{background-color:#bbdefb}.no-tags-message{color:#000;font-style:italic;margin:.4rem 0 0;font-size:.85rem}.battle-card__dialogue-pair{margin-bottom:1rem;padding:.75rem;background:#fff;border:1px solid #e5e5e5;border-radius:6px}.battle-card__dialogue-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem;font-size:.85rem;color:#333}.battle-card__dialogue-pair .form-group{margin-bottom:.75rem}.battle-card__dialogue-pair .form-group:last-child{margin-bottom:0}.battle-card__dialogue-pair .form-group label{display:block;color:#000;margin-bottom:.4rem;font-weight:500;font-size:.85rem}.battle-card__dialogue-pair .dialogue-textarea{width:100%;padding:.5rem;border:1px solid #ccc;border-radius:4px;background:#fff;color:#000;font-size:.9rem;font-family:inherit;resize:vertical;min-height:60px}.battle-card__dialogue-pair .dialogue-textarea:focus{outline:none;border-color:#4a90e2;box-shadow:0 0 0 2px #4a90e233}.battle-card__dialogue-pair .dialogue-textarea::placeholder{color:#999}.battle-card__dialogue-pair .remove-dialogue-pair-btn{background:#ff4d4f;color:#fff;border:none;border-radius:4px;padding:.2rem .5rem;cursor:pointer;font-size:.9rem;line-height:1;transition:background .2s ease}.battle-card__dialogue-pair .remove-dialogue-pair-btn:hover{background:#ff3336}.battle-card__dialogue-pair .grammar-select{width:100%;padding:.5rem;border:1px solid #ccc;border-radius:4px;background:#fff;color:#000;font-size:.9rem;font-family:inherit}.battle-card__dialogue-pair .form-hint{display:block;margin-top:.4rem;font-size:.75rem;color:#666}.battle-card__dialogue-pair .loading-grammar{padding:.5rem;font-size:.85rem;color:#666}
