/* PADEL QUEST v2.0 — Manga Tactical HUD (Persona 5 × Blue Lock × One Piece TCG) */
:root {
  --bg: #050711;
  --surface: rgba(13, 19, 40, 0.88);
  --surface-2: rgba(20, 29, 60, 0.94);
  --cyan: #00f0ff;
  --magenta: #ff2a85;
  --gold: #ffd500;
  --green: #00f59b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #050711;
  color: var(--text);
  font-family: 'Chakra Petch', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

/* Fond Stade Panorama + Trame Halftone Manga */
.arena-bg-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(180deg, rgba(5, 7, 17, 0.72), rgba(5, 7, 17, 0.95)), url('../assets/ui/arena_bg.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
}

.halftone-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(0, 240, 255, 0.08) 1px, transparent 1px);
  background-size: 14px 14px;
}

.app-frame {
  max-width: 980px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: 84px;
}

/* Header asymétrique Shōnen */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(6, 9, 22, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid rgba(0, 240, 255, 0.35);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.brand-emblem {
  width: 38px;
  height: 38px;
  clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  color: #050814;
  display: grid;
  place-items: center;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.5);
}

.brand-text h1 {
  margin: 0;
  font-family: 'Russo One', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  background: linear-gradient(90deg, #fff, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text .jp-sub {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.62rem;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.currencies {
  display: flex;
  align-items: center;
  gap: 8px;
}

.currency-pill {
  padding: 5px 11px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  background: var(--surface-2);
  border-bottom: 2px solid var(--gold);
  font-family: 'Russo One', sans-serif;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.currency-pill.gem {
  border-bottom-color: var(--cyan);
}

.icon-btn {
  width: 36px;
  height: 36px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  border: none;
  background: var(--surface-2);
  color: var(--cyan);
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* Contenu principal */
.main-content {
  padding: 16px 14px;
  flex: 1;
}

.section-title {
  font-family: 'Russo One', sans-serif;
  font-size: 1.08rem;
  letter-spacing: 0.05em;
  margin: 4px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-transform: uppercase;
}

.section-title .title-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title .title-bar::before {
  content: "";
  width: 6px;
  height: 20px;
  background: linear-gradient(180deg, var(--cyan), var(--magenta));
  transform: skewX(-14deg);
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
  font-family: 'Russo One', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

/* Boutons Biseautés Shōnen */
.btn-primary, .btn-neon, .btn-gold, .btn-ghost {
  font-family: 'Russo One', sans-serif;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: transform 0.12s ease, filter 0.15s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--cyan), #008cff);
  color: #040814;
  padding: 12px 22px;
  font-size: 0.92rem;
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.35);
}

.btn-gold {
  background: linear-gradient(120deg, #ffe600, #ff9900);
  color: #050814;
  padding: 13px 26px;
  font-size: 1rem;
  box-shadow: 0 8px 28px rgba(255, 213, 0, 0.42);
}

.btn-neon {
  background: linear-gradient(120deg, var(--magenta), #ff5e3a);
  color: #fff;
  padding: 12px 20px;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(255, 42, 133, 0.38);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.09);
  color: #e2e8f0;
  padding: 10px 16px;
  font-size: 0.82rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost.active {
  background: rgba(0, 240, 255, 0.18);
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.btn-primary:hover:not(:disabled),
.btn-gold:hover:not(:disabled),
.btn-neon:hover:not(:disabled) { filter: brightness(1.12); transform: translateY(-1px); }
.btn-primary:disabled, .btn-gold:disabled, .btn-neon:disabled, .btn-ghost:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-sm { padding: 7px 13px; font-size: 0.74rem; }

/* ====== DIORAMA SQUAD SHOWCASE (TOUR TAB) ====== */
.duo-showcase {
  position: relative;
  background: linear-gradient(145deg, rgba(15, 23, 50, 0.94), rgba(8, 12, 28, 0.96));
  border: 1.5px solid rgba(0, 240, 255, 0.35);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  padding: 16px;
  margin-bottom: 18px;
  overflow: hidden;
}

.duo-showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pwr-meter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(0, 0, 0, 0.45);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  border-left: 3px solid var(--gold);
  font-family: 'Russo One', sans-serif;
  font-size: 0.85rem;
  color: var(--gold);
}

.duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 440px;
  margin: 0 auto 14px;
}

.duo-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Circuit Mondial Shōnen — Chapitres VS Boss */
.tournament-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}

.tourney-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--t-color, var(--cyan));
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(8px);
}

.tourney-card.locked-t { opacity: 0.5; }

.tourney-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.tourney-tier {
  font-family: 'Russo One', sans-serif;
  font-size: 0.78rem;
  padding: 3px 10px;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  background: rgba(255, 255, 255, 0.1);
  color: var(--t-color, var(--cyan));
}

/* Portraits VS découpés des 2 Boss */
.boss-vs-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(5, 8, 20, 0.65);
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.boss-avatar {
  width: 44px;
  height: 52px;
  object-fit: cover;
  object-position: center 15%;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  border-bottom: 2px solid var(--t-color, var(--cyan));
  flex-shrink: 0;
}

.boss-vs-names {
  font-size: 0.78rem;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.25;
}

/* ====== INVOCATION / BOOSTERS ====== */
.festival-banner {
  position: relative;
  border: 2px solid #ff2a85;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  background: linear-gradient(125deg, #1b0c2e, #0a1433 55%, #2b0f22);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  overflow: hidden;
}

.festival-avatars {
  display: flex;
  align-items: center;
}

.festival-avatars img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  object-position: center 15%;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  border: 2px solid var(--gold);
  margin-left: -10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
}
.festival-avatars img:first-child { margin-left: 0; }

.packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 16px;
}

.pack-card {
  position: relative;
  background: linear-gradient(160deg, rgba(18, 26, 54, 0.96), rgba(8, 12, 28, 0.98));
  border: 2px solid var(--pack-c, var(--cyan));
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.pack-cover-strip {
  height: 112px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
}

.pack-cover-strip img {
  flex: 1;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(1.2);
}

.pack-cover-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(8, 12, 28, 0.85) 100%);
}

.rates-box {
  background: rgba(0, 0, 0, 0.42);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.74rem;
  color: #cbd5e1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

/* ====== ESCOUADE / COLLECTION ====== */
.tactical-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.tactical-slot {
  background: var(--surface);
  border: 1.5px solid rgba(0, 240, 255, 0.35);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.tactical-slot img {
  width: 52px;
  height: 68px;
  object-fit: cover;
  object-position: center 15%;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  flex-shrink: 0;
}

.filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(146px, 1fr));
  gap: 13px;
}

/* ====== MISSIONS ====== */
.quests-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quest-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--cyan);
  padding: 13px 14px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.quest-bar {
  height: 7px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-top: 6px;
  max-width: 260px;
  transform: skewX(-12deg);
}

.quest-bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

/* Bottom Navigation Tactique */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(6, 9, 22, 0.96);
  backdrop-filter: blur(16px);
  border-top: 2px solid rgba(0, 240, 255, 0.28);
  display: flex;
  justify-content: center;
}

.bottom-nav-inner {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.nav-tab {
  background: none;
  border: none;
  color: var(--muted);
  padding: 10px 4px;
  font-family: 'Russo One', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}

.nav-tab.active {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.45);
}

.nav-tab.active::after {
  content: "";
  position: absolute;
  top: 0;
  width: 44px;
  height: 3px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

/* Modal Inspect Card */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 6, 14, 0.88);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow-y: auto;
}

.modal-card {
  background: #0b1226;
  border: 2px solid rgba(0, 240, 255, 0.4);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  max-width: 740px;
  width: 100%;
  padding: 20px;
  display: grid;
  grid-template-columns: minmax(190px, 245px) 1fr;
  gap: 18px;
  position: relative;
}

@media (max-width: 640px) {
  .modal-card {
    grid-template-columns: 1fr;
    max-height: 92dvh;
    overflow-y: auto;
  }
  .modal-card .tcg-card {
    max-width: 215px;
    margin: 0 auto;
  }
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  cursor: pointer;
  font-weight: 900;
}

/* ====== BATTLE ARENA HUD v2 ====== */
.battle-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #04060e;
  overflow-y: auto;
}

.battle-shell {
  max-width: 860px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 8px 10px 14px;
  gap: 7px;
}

.battle-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.scoreboard {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid rgba(0, 240, 255, 0.3);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  padding: 5px 16px;
}

.score-side {
  display: flex;
  align-items: center;
  gap: 6px;
}
.score-label { font-family: 'Russo One', sans-serif; font-size: 0.62rem; color: var(--muted); }
.score-games { font-family: 'Russo One', sans-serif; font-size: 0.78rem; color: var(--cyan); }
.score-pts {
  background: #040712;
  padding: 3px 9px;
  font-family: 'Russo One', sans-serif;
  font-size: 1rem;
  min-width: 32px;
  text-align: center;
  border-bottom: 2px solid var(--gold);
}
.score-center { text-align: center; }
.tier-tag { font-family: 'Russo One', sans-serif; font-size: 0.72rem; color: var(--gold); }
.punto-badge {
  font-family: 'Russo One', sans-serif;
  font-size: 0.62rem;
  color: #040814;
  background: var(--gold);
  padding: 2px 7px;
  animation: ur-pulse 0.9s infinite;
}

.hud-team {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 10px;
}

.hud-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.guard-label {
  display: flex;
  justify-content: space-between;
  font-family: 'Russo One', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.zone-pill {
  background: rgba(0, 240, 255, 0.16);
  color: var(--cyan);
  padding: 1px 8px;
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}

.bar-track {
  height: 11px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transform: skewX(-12deg);
}

.bar-fill {
  height: 100%;
  transition: width 0.25s ease;
}
.enemy-fill { background: linear-gradient(90deg, #ff2a85, #ff6b35); }
.ally-fill { background: linear-gradient(90deg, #00f0ff, #00f59b); }
.bar-fill.broken { background: #ef4444; animation: ur-pulse 0.45s infinite; }

.target-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.target-chip {
  flex: 1;
  min-width: 88px;
  padding: 4px 8px;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.target-chip img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
}
.target-chip.selected {
  background: rgba(255, 213, 0, 0.22);
  border-bottom: 2px solid var(--gold);
  color: #fff;
}

.ally-units-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 7px;
}

.unit-mini-card {
  background: rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.unit-mini-card.acting {
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.34);
}
.unit-mini-avatar {
  width: 34px;
  height: 44px;
  object-fit: cover;
  object-position: center 15%;
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
  flex-shrink: 0;
}
.unit-mini-info {
  flex: 1;
  min-width: 0;
}

.unit-mini-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  margin-bottom: 3px;
}
.mp-text { color: #38bdf8; font-weight: 800; }

.limit-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transform: skewX(-12deg);
}
.limit-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b35, #ffd500);
  transition: width 0.25s;
}
.limit-fill.ready {
  background: linear-gradient(90deg, #ff2a85, #ffd500, #00f0ff);
}
.limit-caption { font-size: 0.62rem; color: #fbbf24; font-weight: 800; margin-top: 2px; }

/* Arena Canvas Stage */
.arena-stage {
  position: relative;
  width: 100%;
  height: clamp(255px, 41dvh, 390px);
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(0, 240, 255, 0.38);
  background: #04060f;
  cursor: pointer;
}

#battleCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.qte-tap-hint {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%) skewX(-8deg);
  background: var(--gold);
  color: #050814;
  font-family: 'Russo One', sans-serif;
  font-size: 0.76rem;
  padding: 5px 14px;
  pointer-events: none;
  z-index: 12;
  box-shadow: 0 4px 16px rgba(255, 213, 0, 0.5);
}

/* Cut-in Manga Diagonal Plein Écran */
.cutin-layer {
  position: absolute;
  inset: 0;
  z-index: 25;
  background: rgba(3, 5, 14, 0.84);
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cutin-banner {
  position: relative;
  width: 116%;
  height: 82%;
  transform: skewY(-5deg);
  background: linear-gradient(110deg, #060918 12%, var(--cut-color, #00f0ff) 62%, #060918 100%);
  border-top: 5px solid #fff;
  border-bottom: 5px solid #fff;
  display: flex;
  align-items: center;
  padding: 0 9%;
  gap: 16px;
  animation: cutin-slide 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@keyframes cutin-slide {
  from { transform: translateX(-45%) skewY(-5deg); opacity: 0; }
  to { transform: translateX(0) skewY(-5deg); opacity: 1; }
}

.cutin-kanji {
  position: absolute;
  right: 8%;
  font-family: 'Noto Sans JP', serif;
  font-size: 10rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.cutin-portrait {
  width: 132px;
  height: 175px;
  overflow: hidden;
  border: 3px solid #fff;
  flex-shrink: 0;
  transform: skewY(5deg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85);
}

.cutin-text {
  transform: skewY(5deg);
  z-index: 2;
}
.cutin-tag {
  font-family: 'Russo One', sans-serif;
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.09em;
}
.cutin-move {
  font-family: 'Russo One', sans-serif;
  font-size: 1.45rem;
  color: #fff;
  text-shadow: 0 4px 12px #000;
  margin: 4px 0;
}
.cutin-quote {
  font-size: 0.86rem;
  font-style: italic;
  color: #f8fafc;
}

/* Battle Log */
.battle-log {
  background: rgba(11, 17, 36, 0.86);
  border-left: 3px solid var(--cyan);
  padding: 6px 10px;
  font-size: 0.75rem;
  color: var(--muted);
  max-height: 52px;
  overflow: hidden;
}
.battle-log .latest { color: #fff; }

/* Persona Blade Command Panel */
.ff-command-panel {
  background: linear-gradient(160deg, #0d1430, #070b1c);
  border: 1.5px solid rgba(0, 240, 255, 0.4);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  padding: 10px;
}

.actor-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-family: 'Russo One', sans-serif;
  font-size: 0.76rem;
  margin-bottom: 8px;
  color: var(--cyan);
}

.actor-banner.smash-alert {
  color: var(--gold);
  animation: ur-pulse 0.8s infinite;
}

.btn-switch {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  padding: 4px 11px;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
  font-family: 'Russo One', sans-serif;
  font-size: 0.68rem;
  cursor: pointer;
}

.ff-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ff-btn {
  text-align: left;
  padding: 9px 12px;
  border: none;
  border-left: 4px solid var(--cyan);
  background: #131c3d;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: transform 0.12s, background 0.12s;
}
.ff-btn:hover:not(:disabled) { transform: translateY(-1px); background: #192652; }
.ff-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.ff-btn.attack { border-left-color: #00f0ff; }
.ff-btn.skill { border-left-color: #c44dff; }
.ff-btn.guard { border-left-color: #00f59b; }
.ff-btn.limit { border-left-color: #ffd500; background: linear-gradient(135deg, #2b162a, #151a38); }
.ff-btn.duo { border-left-color: #fff; background: linear-gradient(120deg, #ff2a85, #ff9900); color: #050814; }

.ff-title {
  font-family: 'Russo One', sans-serif;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.kbd-tag {
  font-size: 0.62rem;
  padding: 1px 5px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 3px;
  color: var(--gold);
}
.ff-sub { font-size: 0.68rem; color: #cbd5e1; }
.ff-btn.duo .ff-sub { color: #090e20; font-weight: 700; }

.turn-wait {
  text-align: center;
  padding: 18px;
  font-family: 'Russo One', sans-serif;
  color: var(--cyan);
}

.match-result-card {
  text-align: center;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.result-title { font-family: 'Russo One', sans-serif; font-size: 1.4rem; color: var(--gold); }
.match-result-card.lose .result-title { color: #ff5c7c; }
.result-sub { font-size: 0.88rem; color: #cbd5e1; }
.result-loot { font-size: 1rem; margin-bottom: 6px; font-weight: 800; }

.toast {
  position: fixed;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: #0d1533;
  border-left: 4px solid var(--cyan);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  color: #fff;
  padding: 9px 18px;
  font-family: 'Russo One', sans-serif;
  font-size: 0.82rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.7);
}
