body{font-family:sans-serif;margin:0;background:#eef3f8;color:#222}
header{background:#e3350d;color:#fff;padding:12px 16px;text-align:center}
h1{margin:0;font-size:1.3rem}
main{max-width:960px;margin:0 auto;padding:12px}
.team-bar{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin-bottom:10px}
.slot{background:#fff;border-radius:8px;text-align:center;padding:4px;font-size:.8rem;min-height:70px}
.slot img{width:48px;height:48px;image-rendering:pixelated}
.slot.empty{color:#999;display:flex;align-items:center;justify-content:center}
.toolbar{display:flex;gap:8px;margin-bottom:10px}
.toolbar input{flex:1;padding:8px;font-size:1rem;border:1px solid #bbb;border-radius:6px}
button{font-size:1rem;padding:8px 12px;border:none;border-radius:6px;background:#3b6fd8;color:#fff;cursor:pointer}
button:disabled{background:#aaa;cursor:default}
.dex{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px}
.card{background:#fff;color:#222;border:2px solid transparent;display:flex;flex-direction:column;align-items:center;padding:6px}
.card img{width:72px;height:72px;image-rendering:pixelated}
.card span{font-size:.85rem}
.card small{color:#666}
.card.picked{border-color:#e3350d;background:#fff4f0}
.field{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:10px}
.side{background:#fff;border-radius:10px;padding:10px;text-align:center}
.sprite{width:120px;height:120px;image-rendering:pixelated}
.hpbar{height:12px;background:#ddd;border-radius:6px;overflow:hidden}
.hpfill{height:100%;background:#3cb371;width:100%;transition:width .4s}
.dots .dot{display:inline-block;width:12px;height:12px;border-radius:50%;background:#3cb371;margin:2px}
.dots .dot.fainted{background:#ccc}
.label{margin:0;color:#666;font-size:.9rem}
.name{font-weight:bold;margin:4px 0}
.hptext{font-size:.9rem;margin:4px 0}
.log{background:#222;color:#fff;border-radius:8px;padding:10px;height:150px;overflow-y:auto;font-size:.95rem}
.log p{margin:3px 0}
.controls{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;align-items:center}
.controls button[data-switch]{background:#6c757d}
.move-panel{background:#fff;border-radius:8px;padding:8px;margin-bottom:10px}
.tabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.tab{background:#aaa;padding:6px 10px;font-size:.9rem}
.tab.active{background:#3b6fd8}
.move-list{display:flex;flex-wrap:wrap;gap:6px}
.move-btn{background:#fff;color:#222;border:2px solid #ccc;font-size:.9rem}
.move-btn.picked{border-color:#e3350d;background:#fff4f0}
.move-btn small{color:#666}
.hint{color:#666;font-size:.9rem;margin:4px 0 8px}
@media (max-width:600px){.team-bar{grid-template-columns:repeat(3,1fr)}.field{grid-template-columns:1fr}.sprite{width:96px;height:96px}}
