@import url("https://fonts.googleapis.com/css2?family=Open+Sans&family=Alfa+Slab+One&family=Raleway:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

/* ============================================================
   SEKAIMON BATTLE — Complete Stylesheet
   ============================================================
   All visual styles for the game. Edit freely to restyle.
   This file replaces all styled-components.
   ============================================================ */
/* ---- FONTS ---- */
@font-face {
  font-family: 'Pokemon';
  font-style: normal;
  src: url('https://prod-data.sekai.chat/v3-games/chat-creation/Pokemon.ttf') format('truetype');
}
@font-face {
  font-family: 'Pokemon Text';
  font-style: normal;
  src: url('https://prod-data.sekai.chat/v3-games/chat-creation/Pokemon-text.ttf') format('truetype');
}
/* ---- CSS VARIABLES ---- */
:root {
  --animation-color: yellow;
  --sekai-primary: #e53e3e;
  --sekai-secondary: #3182ce;
  --sekai-bg: #0c0c14;
}
/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; }
body, html { margin: 0; background-color: #0b0c0d; font-family: "Raleway", sans-serif; color: #2c3e50; }
#root { overflow: auto; min-height: 100vh; width: 100%; display: flex; align-items: center; justify-content: center; }
/* ---- KEYFRAMES ---- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 var(--glow-color); } 50% { box-shadow: 0 0 16px 2px var(--glow-color); } }
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes l1 { 100% { box-shadow: 0 0 0 14px rgba(255,204,0,0); } }
@keyframes physicalAttackUser { 0% { transform: translateY(0); } 50% { transform: translateY(-10vmin); } 100% { transform: translateX(40vmin) translateY(-20vmin) rotate(15deg); } }
@keyframes physicalAttackEnemy { 0% { transform: translateY(0); } 50% { transform: translateY(-5vmin); } 100% { transform: translateX(-40vmin) translateY(20vmin) rotate(-15deg); } }
@keyframes moveFromEnemyToUser { from { transform: translateX(0) translateY(0); } to { transform: translateX(36vmin) translateY(-100px); } }
@keyframes moveFromUserToEnemy { from { transform: translateX(0) translateY(0); } to { transform: translateX(-36vmin) translateY(100px); } }
@keyframes chargeAnimation {
  0% { transform: translate(0,0) rotate(0) scale(0); }
  10% { transform: translate(-8px,-5px) rotate(2.5deg) scale(0.1); }
  20% { transform: translate(-4px,10px) rotate(0.5deg) scale(0.2); }
  30% { transform: translate(0px,-3px) rotate(-0.5deg) scale(0.3); }
  40% { transform: translate(3px,-6px) rotate(1.5deg) scale(0.4); }
  50% { transform: translate(7px,3px) rotate(0.5deg) scale(0.5); }
  60% { transform: translate(-6px,4px) rotate(-0.5deg) scale(0.6); }
  70% { transform: translate(1px,-5px) rotate(-0.5deg) scale(0.7); }
  80% { transform: translate(2px,7px) rotate(-0.5deg) scale(0.8); }
  90% { transform: translate(7px,8px) rotate(-0.5deg) scale(0.9); }
  100% { transform: translate(0,0) rotate(0) scale(1); }
}
/* ============================================================
   TEAM SELECT SCREEN
   ============================================================ */
.team-select {
  min-height: 100dvh; width: 100vw; background: #0c0c14;
  display: flex; flex-direction: column; align-items: center;
  overflow-y: auto; padding: 16px 12px 24px; position: relative; padding-bottom: 80px;
}
.team-select::before { content: ""; position: fixed; inset: 0; background: repeating-linear-gradient(45deg,transparent,transparent 8px,rgba(255,255,255,0.006) 8px,rgba(255,255,255,0.006) 9px); pointer-events: none; }
.team-select::after { content: ""; position: fixed; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg,#e53e3e,#ffcc00,#3182ce); z-index: 100; }
.team-select .title { font-family: "Pokemon"; font-size: 2.4rem; color: #ffcc00; -webkit-text-stroke: 2px #b8860b; text-shadow: 3px 3px 0 #0a0a1a, 0 0 24px rgba(255,204,0,0.15); text-align: center; margin-bottom: 4px; animation: fadeUp 0.5s ease-out; }
.team-select .subtitle { font-family: "Pokemon Text","Raleway",sans-serif; font-size: 10px; letter-spacing: 5px; text-transform: uppercase; color: rgba(255,255,255,0.2); margin-bottom: 16px; animation: fadeUp 0.5s ease-out 0.05s backwards; }
.team-select .section { width: 100%; max-width: 500px; margin-bottom: 12px; animation: fadeUp 0.5s ease-out backwards; }
.team-select .section:nth-child(3) { animation-delay: 0.1s; }
.team-select .section:nth-child(5) { animation-delay: 0.15s; }
.team-select .section-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.team-select .section-header .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.team-select .section-header .label { font-family: "Pokemon Text","Raleway",sans-serif; font-size: 10px; letter-spacing: 4px; text-transform: uppercase; font-weight: 700; }
.team-select .section-header .line { flex: 1; height: 1px; }
.team-select .section-header.user .dot { background: #e53e3e; }
.team-select .section-header.user .label { color: #e53e3e; }
.team-select .section-header.user .line { background: linear-gradient(90deg,rgba(229,62,62,0.3),transparent); }
.team-select .section-header.enemy .dot { background: #3182ce; }
.team-select .section-header.enemy .label { color: #3182ce; }
.team-select .section-header.enemy .line { background: linear-gradient(90deg,rgba(49,130,206,0.3),transparent); }
.team-select .trainer-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; }
.team-select .trainer-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 10px; cursor: pointer; transition: all 0.2s; position: relative; overflow: hidden; --glow-color: transparent; }
.team-select .trainer-card:active { transform: scale(0.97); }
.team-select .trainer-card.selected { border-color: var(--glow-color); animation: pulse 2s ease infinite; background: rgba(255,255,255,0.06); }
.team-select .trainer-card .trainer-name { font-family: "Pokemon Text","Raleway",sans-serif; font-size: 14px; font-weight: 700; color: #fff; letter-spacing: 0.5px; margin-bottom: 2px; }
.team-select .trainer-card .trainer-title { font-family: "Raleway",sans-serif; font-size: 9px; color: rgba(255,255,255,0.35); letter-spacing: 1px; margin-bottom: 6px; }
.team-select .trainer-card .trainer-team { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; }
.team-select .trainer-card .trainer-team img { width: 26px; height: 26px; image-rendering: pixelated; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5)); }
.team-select .vs-divider { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 500px; margin: 8px 0; animation: fadeUp 0.5s ease-out 0.12s backwards; }
.team-select .vs-divider .vs-line { flex: 1; height: 1px; background: linear-gradient(90deg,transparent,rgba(255,204,0,0.15),transparent); }
.team-select .vs-divider .vs-text { font-family: "Pokemon"; font-size: 1.4rem; color: #ffcc00; -webkit-text-stroke: 1px #b8860b; text-shadow: 0 0 16px rgba(255,204,0,0.2); letter-spacing: 3px; }
.team-select .team-preview { display: flex; gap: 4px; align-items: center; justify-content: center; margin-top: 6px; min-height: 36px; }
.team-select .team-preview img { width: 32px; height: 32px; image-rendering: pixelated; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)); }
/* Bottom bar */
.team-select .bottom-bar { position: fixed; bottom: 0; left: 0; right: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom,0px)); background: linear-gradient(0deg,#0c0c14 60%,transparent); display: flex; justify-content: center; z-index: 50; pointer-events: none; }
.team-select .battle-button { width: 100%; max-width: 500px; padding: 15px; border: none; border-radius: 12px; font-family: "Pokemon Text","Raleway",sans-serif; font-size: 16px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; cursor: pointer; color: #fff; background: linear-gradient(135deg,#e53e3e,#c53030); box-shadow: 0 4px 0 #822727, 0 6px 20px rgba(229,62,62,0.2); transition: all 0.15s; pointer-events: all; }
.team-select .battle-button:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 #822727; }
.team-select .battle-button:disabled { background: #1a1a2e; color: #444; box-shadow: 0 4px 0 #111; cursor: not-allowed; }
/* Lineup / Lead selection */
.team-select .lineup-section { width: 100%; max-width: 500px; animation: fadeUp 0.4s ease-out; }
.team-select .lineup-list { display: flex; flex-direction: column; gap: 6px; }
.team-select .lineup-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.03); cursor: pointer; transition: all 0.15s; }
.team-select .lineup-row:active { transform: scale(0.97); }
.team-select .lineup-row.lead { border-color: rgba(255,204,0,0.4); background: rgba(255,204,0,0.06); }
.team-select .lineup-row .lineup-position { width: 24px; text-align: center; font-family: "Pokemon Text","Raleway",sans-serif; font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.3); flex-shrink: 0; }
.team-select .lineup-row.lead .lineup-position { color: #ffcc00; font-size: 16px; }
.team-select .lineup-row .lineup-sprite { width: 44px; height: 44px; image-rendering: pixelated; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); flex-shrink: 0; }
.team-select .lineup-row .lineup-name { flex: 1; font-family: "Pokemon Text","Raleway",sans-serif; font-size: 15px; font-weight: 700; color: #fff; text-transform: capitalize; letter-spacing: 0.5px; }
.team-select .lineup-row .lead-badge { font-family: "Pokemon Text","Raleway",sans-serif; font-size: 9px; letter-spacing: 2px; color: #ffcc00; background: rgba(255,204,0,0.12); border: 1px solid rgba(255,204,0,0.25); border-radius: 4px; padding: 2px 8px; flex-shrink: 0; }
.team-select .lineup-hint { font-family: "Raleway",sans-serif; font-size: 10px; color: rgba(255,255,255,0.2); text-align: center; margin-top: 10px; letter-spacing: 1px; }
.team-select .lineup-buttons { display: flex; gap: 10px; width: 100%; max-width: 500px; margin-top: 16px; animation: fadeUp 0.4s ease-out 0.1s backwards; }
.team-select .lineup-buttons .back-button { flex: 0 0 auto; padding: 14px 20px; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; background: transparent; color: rgba(255,255,255,0.5); font-family: "Pokemon Text","Raleway",sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s; letter-spacing: 1px; }
.team-select .lineup-buttons .back-button:active { transform: scale(0.95); }
.team-select .lineup-buttons .battle-button { flex: 1; margin-top: 0; }
/* Custom builder */
.team-select .custom-card { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.team-select .custom-card .custom-card-icon { font-size: 28px; color: rgba(255,204,0,0.5); margin-top: 4px; }
.team-select .custom-builder { width: 100%; max-width: 500px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; }
.team-select .custom-slots { display: flex; gap: 6px; justify-content: center; }
.team-select .custom-slot { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.15s; cursor: pointer; }
.team-select .custom-slot.empty { border: 2px dashed rgba(255,255,255,0.12); }
.team-select .custom-slot.empty .slot-number { font-size: 12px; color: rgba(255,255,255,0.15); font-family: "Raleway",sans-serif; }
.team-select .custom-slot.filled { border: 2px solid rgba(255,204,0,0.4); background: rgba(255,204,0,0.06); }
.team-select .custom-slot.filled img { width: 36px; height: 36px; image-rendering: pixelated; }
.team-select .custom-slot.filled:active { transform: scale(0.9); }
.team-select .custom-count { text-align: center; font-family: "Raleway",sans-serif; font-size: 11px; color: rgba(255,255,255,0.3); letter-spacing: 1px; }
.team-select .custom-search { font-family: "Pokemon Text","Raleway",sans-serif; font-size: 13px; padding: 10px 14px; border-radius: 8px; color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.08); background: rgba(0,0,0,0.3); outline: none; letter-spacing: 1px; }
.team-select .custom-search::placeholder { color: rgba(255,255,255,0.15); }
.team-select .custom-search:focus { border-color: rgba(255,204,0,0.3); }
.team-select .custom-list { flex: 1; min-height: 0; overflow-y: auto; background: rgba(0,0,0,0.15); border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); max-height: 40vh; }
.team-select .custom-list::-webkit-scrollbar { width: 3px; }
.team-select .custom-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 8px; }
.team-select .custom-list-item { padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: background 0.12s; border-radius: 4px; margin: 1px 2px; }
.team-select .custom-list-item:hover { background: rgba(255,255,255,0.05); }
.team-select .custom-list-item.selected { opacity: 0.35; cursor: default; }
.team-select .custom-list-item .custom-item-name { font-family: "Pokemon Text","Raleway",sans-serif; font-size: 13px; color: rgba(255,255,255,0.7); text-transform: capitalize; letter-spacing: 0.5px; }
.team-select .custom-list-item .custom-item-check { color: #ffcc00; font-size: 14px; font-weight: 700; }
/* ============================================================
   BATTLE SCREEN
   ============================================================ */
.battle-screen {
  width: 100%; height: 100%; position: relative; overflow: hidden;
  background-image: url("https://prod-data.sekai.chat/v3-games/chat-creation/pokemon-bg.jpg");
  background-position: center center; background-repeat: no-repeat; background-size: cover;
  animation: fadeIn 1.5s ease-in-out forwards;
}
.battle-screen::after { content: ""; width: 100%; height: 100%; background-color: rgba(0,0,0,0.2); position: absolute; left: 0; top: 0; z-index: -1; }
/* Sprites */
.battle-screen .user, .battle-screen .enemy { position: absolute; z-index: 999; }
.battle-screen .user img, .battle-screen .enemy img { width: 200%; height: auto; max-width: 200px; max-height: 200px; object-fit: contain; }
.battle-screen .user.damage img, .battle-screen .enemy.damage img { animation: fadeIn 0.2s ease-in-out infinite; }
.battle-screen .user.loser img, .battle-screen .enemy.loser img { animation: fadeIn reverse 1s ease-in-out forwards; }
.battle-screen .user { left: 20%; bottom: 20%; }
.battle-screen .user.physical { z-index: 9999; }
.battle-screen .user.physical img { animation: physicalAttackUser 0.8s ease-in-out; }
.battle-screen .user.special { z-index: 9999; }
.battle-screen .enemy { right: 32%; top: 25%; }
.battle-screen .enemy.physical { z-index: 9999; }
.battle-screen .enemy.physical img { animation: physicalAttackEnemy 0.8s ease-in-out; }
@media (max-width: 750px) {
  .battle-screen .user img, .battle-screen .enemy img { width: 150%; }
  .battle-screen .enemy { right: 28%; top: 20%; }
}
@media (max-width: 550px) {
  .battle-screen .user img, .battle-screen .enemy img { width: 100%; }
  .battle-screen .enemy { right: 23%; top: 25%; }
}
@media (max-width: 600px) and (orientation: portrait) {
  .battle-screen .user { left: 5%; bottom: 44%; }
  .battle-screen .user img { width: 220%; max-width: 160px; max-height: 160px; }
  .battle-screen .enemy { right: 12%; top: 22%; }
  .battle-screen .enemy img { width: 170%; max-width: 130px; max-height: 130px; }
}
/* ============================================================
   HEALTH BAR
   ============================================================ */
.health-bar-wrap { display: flex; flex-direction: column; width: 250px; position: absolute; }
.health-bar-wrap .name-and-level, .health-bar-wrap .hb-bar-container, .health-bar-wrap .health-stats-container { display: flex; align-items: center; justify-content: center; }
.health-bar-wrap .name-and-level { gap: 8px; }
.health-bar-wrap .name-and-level .type-icons { display: flex; gap: 2px; align-items: center; flex-shrink: 0; }
.health-bar-wrap .name-and-level .type-badge { height: 14px; width: 32px; image-rendering: pixelated; }
.health-bar-wrap .name-and-level .name { font-size: 20px; letter-spacing: 1px; font-weight: 900; color: whitesmoke; -webkit-text-stroke: 1.5px #333; text-transform: capitalize; }
.health-bar-wrap .name-and-level .level-container { display: flex; align-items: flex-end; gap: 4px; }
.health-bar-wrap .name-and-level .level-container .label { font-size: 14px; font-weight: 800; letter-spacing: -1px; color: #f5cf25; -webkit-text-stroke: 1px #333; }
.health-bar-wrap .name-and-level .level-container .value { font-size: 20px; letter-spacing: -1px; font-weight: 800; color: whitesmoke; -webkit-text-stroke: 1.5px #333; line-height: 20px; }
.health-bar-wrap .hb-bar-container { background-color: whitesmoke; box-shadow: 0 0 0 1px #333; gap: 4px; max-height: 12px; position: relative; }
.health-bar-wrap .hb-bar-container .side-effect-label { position: absolute; top: 50%; transform: translateY(-50%); left: 8px; border-radius: 4px; font-size: 9px; font-weight: bold; padding: 0 4px; color: white; }
.health-bar-wrap .hb-bar-container .label { font-family: "Alfa Slab One",sans-serif; font-size: 12px; color: #08d10c; -webkit-text-stroke: 1px #333; }
.health-bar-wrap .hb-bar-container .health-bar { width: 55%; height: 7px; background-color: #333; border-radius: 100000px; box-shadow: 0 0 0 1px #333; margin-top: -0.5px; }
.health-bar-wrap .hb-bar-container .health-bar .bar { width: 100%; height: 100%; background-color: #08d10c; transition: width ease-in-out; }
.health-bar-wrap .health-stats-container { background-color: #333; box-shadow: 0 0 0 1px #333; height: 6px; }
.health-bar-wrap .health-stats-container .stat { font-family: "Open Sans",sans-serif; color: white; font-size: 12px; line-height: 15px; }
@media (max-width: 600px) and (orientation: portrait) {
  .health-bar-wrap { width: 42vw; }
  .health-bar-wrap[data-player="user"] { bottom: 37% !important; left: 3% !important; right: auto !important; }
  .health-bar-wrap[data-player="enemy"] { bottom: auto !important; top: 5% !important; left: auto !important; right: 3% !important; }
  .health-bar-wrap .name-and-level { gap: 6px; }
  .health-bar-wrap .name-and-level .name { font-size: 14px; -webkit-text-stroke: 1px #333; }
  .health-bar-wrap .name-and-level .level-container .value { font-size: 14px; -webkit-text-stroke: 1px #333; }
  .health-bar-wrap .name-and-level .level-container .label { font-size: 10px; }
  .health-bar-wrap .name-and-level .type-badge { height: 12px; width: 28px; }
}
/* ============================================================
   FOOTER / MOVE PANEL
   ============================================================ */
.footer-container {
  background: linear-gradient(180deg,#1a1f2e 0%,#0f1318 100%); color: white;
  height: 100px; width: 100%; position: absolute; bottom: 0; left: 0;
  border-top: 2px solid rgba(255,204,0,0.25); padding: 4px 4%; display: flex; justify-content: center; gap: 12px;
}
.footer-container .text-container { display: flex; align-items: center; justify-content: flex-start; flex: 1; font-family: "Pokemon Text","Raleway",sans-serif; font-size: 14px; letter-spacing: 0.5px; color: rgba(255,255,255,0.9); }
.footer-container .buttons-container { height: 100%; flex: 1.5; display: grid; grid-template-columns: repeat(2,1fr); gap: 4px; padding: 3px 0; }
.footer-container .buttons-container button { font-family: "Pokemon Text","Raleway",sans-serif; outline: none; display: flex; flex-direction: column; justify-content: center; color: white; border: none; border-radius: 6px; cursor: pointer; text-transform: capitalize; padding: 4px 8px; text-shadow: 0 1px 2px rgba(0,0,0,0.5); transition: all 0.12s; gap: 2px; min-height: 0; }
.footer-container .buttons-container button .move-top { display: flex; align-items: center; gap: 4px; }
.footer-container .buttons-container button .type-icon { height: 14px; width: 32px; image-rendering: pixelated; flex-shrink: 0; }
.footer-container .buttons-container button .name { font-weight: 700; font-size: 12px; letter-spacing: 0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.footer-container .buttons-container button .move-bottom { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 4px; }
.footer-container .buttons-container button .move-stats { display: flex; gap: 6px; font-size: 9px; font-weight: 600; opacity: 0.8; }
.footer-container .buttons-container button .move-meta { display: flex; align-items: center; gap: 4px; }
.footer-container .buttons-container button .pp { font-size: 9px; font-weight: 400; opacity: 0.6; }
.footer-container .buttons-container button .cat-icon { height: 14px; width: 32px; image-rendering: pixelated; flex-shrink: 0; }
.footer-container .buttons-container button:hover:not(:disabled) { filter: brightness(1.15); transform: scale(1.02); }
.footer-container .buttons-container button:active:not(:disabled) { filter: brightness(0.9); transform: scale(0.97); }
.footer-container .buttons-container button:disabled { filter: grayscale(1) brightness(0.4); cursor: not-allowed; }
@media (max-width: 600px) and (orientation: portrait) {
  .footer-container { height: 35vh; height: 35dvh; padding: 6px 3%; gap: 4px; flex-direction: column; overflow: hidden; }
  .footer-container .text-container { flex: 0 0 auto; font-size: 14px; justify-content: center; text-align: center; }
  .footer-container .buttons-container { flex: 1; gap: 4px; padding: 0; min-height: 0; }
  .footer-container .buttons-container button { border-radius: 8px; padding: 4px 8px; gap: 1px; min-height: 0; overflow: hidden; }
  .footer-container .buttons-container button .name { font-size: 13px; }
  .footer-container .buttons-container button .move-stats { font-size: 9px; gap: 4px; }
  .footer-container .buttons-container button .pp { font-size: 9px; }
  .footer-container .buttons-container button .type-icon { height: 12px; width: 28px; }
  .footer-container .buttons-container button .cat-icon { height: 12px; width: 28px; }
}
/* ============================================================
   ACTION MENU (Fight / Pokemon / Bag / Run)
   ============================================================ */
.action-menu { display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; width: 100%; height: 100%; padding: 4px; }
.action-menu button { font-family: "Pokemon Text","Raleway",sans-serif; font-size: 16px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; cursor: pointer; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.5); transition: all 0.12s; }
.action-menu button:active { transform: scale(0.95); }
.action-menu button:disabled { opacity: 0.25; cursor: not-allowed; }
.action-menu .fight { background: linear-gradient(135deg,#e53e3e,#c53030); }
.action-menu .pokemon { background: linear-gradient(135deg,#38a169,#276749); }
.action-menu .bag { background: linear-gradient(135deg,#805ad5,#553c9a); }
.action-menu .run { background: linear-gradient(135deg,#718096,#4a5568); }
@media (max-width: 600px) and (orientation: portrait) { .action-menu button { font-size: 15px; } }
/* ============================================================
   SWITCH PANEL (Team list)
   ============================================================ */
.switch-panel { display: flex; flex-direction: column; gap: 4px; width: 100%; height: 100%; overflow-y: auto; padding: 2px; }
.switch-panel .back-btn { font-family: "Pokemon Text","Raleway",sans-serif; font-size: 11px; color: rgba(255,255,255,0.5); background: none; border: none; cursor: pointer; text-align: left; padding: 2px 4px; letter-spacing: 1px; }
.switch-panel .back-btn:hover { color: #fff; }
.switch-panel .poke-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.03); cursor: pointer; transition: all 0.12s; }
.switch-panel .poke-row:active { transform: scale(0.97); }
.switch-panel .poke-row.active-pokemon { border-color: rgba(255,204,0,0.3); background: rgba(255,204,0,0.06); }
.switch-panel .poke-row.fainted { opacity: 0.3; cursor: not-allowed; pointer-events: none; }
.switch-panel .poke-row .poke-sprite { width: 32px; height: 32px; image-rendering: pixelated; flex-shrink: 0; }
.switch-panel .poke-row .poke-info { flex: 1; min-width: 0; }
.switch-panel .poke-row .poke-name-row { display: flex; align-items: center; gap: 4px; font-family: "Pokemon Text","Raleway",sans-serif; font-size: 12px; font-weight: 700; color: #fff; text-transform: capitalize; }
.switch-panel .poke-row .poke-type-icon { height: 12px; width: 28px; image-rendering: pixelated; }
.switch-panel .poke-row .active-badge { font-size: 8px; color: #ffcc00; letter-spacing: 1px; font-weight: 400; }
.switch-panel .poke-row .hp-bar-bg { height: 5px; background: #333; border-radius: 3px; margin-top: 3px; overflow: hidden; }
.switch-panel .poke-row .hp-bar-fill { height: 100%; border-radius: 3px; transition: width 0.3s; }
.switch-panel .poke-row .hp-text { font-size: 9px; color: rgba(255,255,255,0.4); margin-top: 1px; font-family: "Raleway",sans-serif; }
.switch-panel .poke-row .fnt-text { font-size: 10px; color: #e53e3e; font-weight: 700; font-family: "Pokemon Text",sans-serif; }
/* ============================================================
   POKEMON SHOWCASE (picker preview)
   ============================================================ */
.pokemon-showcase { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 100%; }
.pokemon-showcase span { display: none; }
.pokemon-showcase img { width: 100%; max-width: 80px; height: auto; image-rendering: pixelated; filter: drop-shadow(0 3px 8px rgba(0,0,0,0.6)); animation: float 3s ease-in-out infinite; }
.pokemon-showcase .loader { width: 16px; aspect-ratio: 1; border-radius: 50%; background: #ffcc00; box-shadow: 0 0 0 0 rgba(255,204,0,0.4); animation: l1 0.8s infinite; }
/* ============================================================
   POKEMON LIST (picker scrollable list)
   ============================================================ */
.pokemon-list { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.pokemon-list input { font-family: "Pokemon Text","Raleway",sans-serif; font-size: 12px; padding: 8px 12px; border-radius: 8px; color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.08); background: rgba(0,0,0,0.3); outline: none; letter-spacing: 1px; transition: border-color 0.2s; }
.pokemon-list input::placeholder { color: rgba(255,255,255,0.15); letter-spacing: 2px; }
.pokemon-list input:focus { border-color: rgba(255,204,0,0.3); }
.pokemon-list ul { margin: 0; padding: 2px; border-radius: 8px; overflow-y: auto; height: 180px; background: rgba(0,0,0,0.15); }
.pokemon-list ul::-webkit-scrollbar { width: 3px; }
.pokemon-list ul::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 8px; }
.pokemon-list ul li { list-style: none; text-align: center; border-radius: 6px; margin: 1px 0; transition: background 0.12s; }
.pokemon-list ul li.active.user button { background: linear-gradient(90deg,#e53e3e,#c53030); color: #fff; }
.pokemon-list ul li.active.enemy button { background: linear-gradient(90deg,#3182ce,#2b6cb0); color: #fff; }
.pokemon-list ul li button { text-transform: capitalize; border-radius: 6px; color: rgba(255,255,255,0.55); font-size: 13px; font-family: "Pokemon Text","Raleway",sans-serif; letter-spacing: 0.5px; outline: 0; border: 0; background: transparent; padding: 7px 8px; width: 100%; cursor: pointer; transition: all 0.12s; }
.pokemon-list ul li button:disabled { color: rgba(255,255,255,0.1); cursor: not-allowed; }
.pokemon-list ul li:hover:not(:has(button:disabled)) { background: rgba(255,255,255,0.05); }
@media (min-width: 601px) { .pokemon-list ul { height: 250px; } }
/* ============================================================
   ENERGY BALL (special attack animation)
   ============================================================ */
.energyBall { position: absolute; left: 50px; top: 0; width: 120px; height: 120px; border-radius: 50%; transform: scale(0); box-shadow: 0 0 12px 12px var(--animation-color) inset, 0 0 12px 12px var(--animation-color); background: radial-gradient(ellipse at center, rgba(255,113,12,0) 45%, var(--animation-color) 51.5%); }
.energyBall.user { animation: chargeAnimation 2s linear forwards, moveFromUserToEnemy 0.5s ease-in-out 2s forwards; }
.energyBall.enemy { animation: chargeAnimation 2s linear forwards, moveFromEnemyToUser 0.5s ease-in-out 2s forwards; }
