﻿/* ── Arène mascottes — scène vivante / DNA D.Majin ───────────────────── */

.page-cm {
  background: #070a10;
  overflow-x: clip;
}

/* Empêche pageEnter (transform) de décaler / élargir la page */
body.page-mascotte.page-enter main.page-content,
body.page-mascotte main.page-content {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
  overflow-x: clip;
}

.section-cm {
  /* Override .section (flex row + min-height 100vh) → colonne centrée */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0 3.5rem;
  position: relative;
  overflow-x: clip;
  box-sizing: border-box;
}

.section-cm > .cm-stage {
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  min-width: 0;
  align-self: stretch;
}

.section-cm > .container-cm {
  width: min(920px, 100%);
  max-width: 920px;
  flex: 0 0 auto;
  min-width: 0;
  align-self: center;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.section-cm::before,
.section-cm::after {
  content: '';
  position: absolute;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
}

.section-cm::before {
  background:
    radial-gradient(ellipse at 18% 12%, rgba(0, 245, 212, 0.14), transparent 42%),
    radial-gradient(ellipse at 82% 68%, rgba(56, 189, 248, 0.1), transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 139, 106, 0.05), transparent 45%);
  animation: cmAurora 18s ease-in-out infinite alternate;
}

.section-cm::after {
  background-image:
    linear-gradient(rgba(0, 245, 212, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 212, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 74%);
  opacity: 0.4;
  top: 40%;
}

.container-cm {
  width: min(920px, 100%);
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

@keyframes cmAurora {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2%, -1.5%, 0) scale(1.05); }
  100% { transform: translate3d(-1%, 1%, 0) scale(1.02); }
}

.cm-reveal {
  animation: cmFadeUp 0.45s ease both;
}

.cm-reveal:nth-child(2) { animation-delay: 0.05s; }
.cm-reveal:nth-child(3) { animation-delay: 0.1s; }

@keyframes cmFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Hero stage ─────────────────────────────────────────────────────── */

.cm-stage {
  position: relative;
  min-height: min(52vh, 420px);
  margin-bottom: 1.25rem;
  overflow: hidden;
  isolation: isolate;
}

.cm-stage-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cm-stage-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.06);
  filter: saturate(1.15) brightness(0.72);
  animation: cmBgDrift 22s ease-in-out infinite alternate;
}

@keyframes cmBgDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, 1%, 0); }
}

.cm-stage-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 10, 16, 0.35) 0%, rgba(7, 10, 16, 0.55) 45%, rgba(7, 10, 16, 0.96) 100%),
    radial-gradient(ellipse at 50% 70%, rgba(0, 245, 212, 0.12), transparent 55%);
}

.cm-stage-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.cm-stage-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(0, 245, 212, 0.85);
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.7);
  animation: cmSpark 3.8s ease-in-out infinite;
}

.cm-stage-particles span:nth-child(1) { left: 10%; top: 22%; animation-delay: 0s; }
.cm-stage-particles span:nth-child(2) { left: 22%; top: 58%; animation-delay: 0.4s; background: #fcd34d; box-shadow: 0 0 10px rgba(252, 211, 77, 0.6); }
.cm-stage-particles span:nth-child(3) { left: 38%; top: 18%; animation-delay: 0.8s; }
.cm-stage-particles span:nth-child(4) { left: 55%; top: 42%; animation-delay: 1.1s; }
.cm-stage-particles span:nth-child(5) { left: 68%; top: 20%; animation-delay: 1.5s; background: #ff8b6a; box-shadow: 0 0 10px rgba(255, 139, 106, 0.55); }
.cm-stage-particles span:nth-child(6) { left: 78%; top: 62%; animation-delay: 1.9s; }
.cm-stage-particles span:nth-child(7) { left: 88%; top: 30%; animation-delay: 2.2s; }
.cm-stage-particles span:nth-child(8) { left: 46%; top: 72%; animation-delay: 2.6s; background: #fcd34d; box-shadow: 0 0 10px rgba(252, 211, 77, 0.55); }

@keyframes cmSpark {
  0%, 100% { opacity: 0.15; transform: translateY(0) scale(0.8); }
  50% { opacity: 1; transform: translateY(-14px) scale(1.2); }
}

.cm-stage-inner {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  padding: 5.5rem 1rem 2rem;
  display: grid;
  gap: 1.1rem;
}

.cm-stage-duel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 0.35rem;
  max-width: 420px;
  margin: 0 auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}

.cm-stage-fighter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.cm-stage-fighter--left { animation: cmFloat 3.4s ease-in-out infinite; }
.cm-stage-fighter--right { animation: cmFloat 3.4s ease-in-out 0.5s infinite; }

.cm-stage-pedestal {
  width: 72px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 245, 212, 0.35), transparent 70%);
  filter: blur(1px);
}

.cm-stage-fighter--right .cm-stage-pedestal {
  background: radial-gradient(ellipse, rgba(255, 139, 106, 0.35), transparent 70%);
}

.cm-stage-vs {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 72px;
  padding-bottom: 0.6rem;
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  color: var(--turquoise, #00f5d4);
  text-shadow: 0 0 22px rgba(0, 245, 212, 0.65);
}

.cm-stage-vs > span {
  animation: cmPulse 1.8s ease-in-out infinite;
}

.cm-stage-copy {
  text-align: center;
}

.cm-stage-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  z-index: 3;
  background: linear-gradient(180deg, transparent, #070a10 70%);
  pointer-events: none;
}

/* Pixel sprite sheet crop (4×4, case 102×153 → ratio 2:3) */
.cm-pixel-char {
  width: 72px;
  height: 108px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(0, 245, 212, 0.35);
  background:
    radial-gradient(circle at 40% 30%, rgba(0, 245, 212, 0.18), transparent 60%),
    rgba(8, 12, 22, 0.85);
  box-shadow: 0 0 22px rgba(0, 245, 212, 0.18);
}

.cm-stage-fighter--right .cm-pixel-char {
  border-color: rgba(255, 139, 106, 0.4);
  box-shadow: 0 0 22px rgba(255, 139, 106, 0.2);
  background:
    radial-gradient(circle at 40% 30%, rgba(255, 139, 106, 0.18), transparent 60%),
    rgba(8, 12, 22, 0.85);
}

.cm-pixel-char img {
  display: block;
  width: 400%;
  height: 400%;
  max-width: none;
  image-rendering: pixelated;
  transform: translate(0, 0);
}

.cm-pixel-char--sm {
  width: 40px;
  height: 60px;
  border-radius: 10px;
}

.cm-pixel-char--md {
  width: 56px;
  height: 84px;
  border-radius: 12px;
}

/* Navi flapping frames */
.cm-navi {
  position: relative;
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 0 10px rgba(0, 245, 212, 0.55));
  animation: cmFloat 2.2s ease-in-out infinite;
}

.cm-navi--mini {
  width: 40px;
  height: 40px;
}

.cm-navi--stage {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  animation: cmNaviOrbit 3.2s ease-in-out infinite;
}

.cm-navi-aura {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 245, 212, 0.28), transparent 70%);
  animation: cmPulse 2s ease-in-out infinite;
}

.cm-navi-viewport {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.cm-navi-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  opacity: 0;
}

.cm-navi-frame--0 { opacity: 1; animation: cmNavi0 0.52s step-end infinite; }
.cm-navi-frame--1 { animation: cmNavi1 0.52s step-end infinite; }
.cm-navi-frame--2 { animation: cmNavi2 0.52s step-end infinite; }
.cm-navi-frame--3 { animation: cmNavi3 0.52s step-end infinite; }

@keyframes cmNavi0 {
  0%, 24% { opacity: 1; }
  25%, 100% { opacity: 0; }
}
@keyframes cmNavi1 {
  0%, 24% { opacity: 0; }
  25%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes cmNavi2 {
  0%, 49% { opacity: 0; }
  50%, 74% { opacity: 1; }
  75%, 100% { opacity: 0; }
}
@keyframes cmNavi3 {
  0%, 74% { opacity: 0; }
  75%, 99% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes cmNaviOrbit {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -10px); }
}

@keyframes cmFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes cmPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

.cm-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 245, 212, 0.9);
}

.section-cm .section-title {
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  letter-spacing: 0.06em;
  font-size: clamp(2rem, 7vw, 3rem);
  margin: 0 0 0.45rem;
  color: #f8fafc;
  text-shadow:
    0 0 28px rgba(0, 245, 212, 0.4),
    0 2px 18px rgba(0, 0, 0, 0.55);
}

.section-cm .section-intro {
  margin: 0 auto;
  max-width: 36rem;
  color: #d1d5db;
  line-height: 1.5;
  font-size: 0.95rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

.cm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 1rem;
}

/* How-to strip */
.cm-howto-details {
  margin: 0 0 1rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 245, 212, 0.2);
  background: rgba(8, 12, 20, 0.55);
  overflow: hidden;
}

.cm-howto-summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  letter-spacing: 0.05em;
  font-size: 1.15rem;
  color: #f3f4f6;
  user-select: none;
}

.cm-howto-summary::-webkit-details-marker { display: none; }

.cm-howto-summary::after {
  content: '+';
  float: right;
  color: var(--turquoise, #00f5d4);
  font-weight: 700;
}

.cm-howto-details[open] .cm-howto-summary::after { content: '−'; }

.cm-howto-details .cm-howto {
  margin: 0;
  padding: 0 0.75rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cm-howto {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 0 0 1.15rem;
}

.cm-howto-card {
  position: relative;
  padding: 0.95rem 0.85rem 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 245, 212, 0.22);
  background: linear-gradient(160deg, rgba(14, 16, 28, 0.95), rgba(9, 11, 20, 0.92));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.cm-howto-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 245, 212, 0.45);
}

.cm-howto-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-bottom: 0.55rem;
}

.cm-howto-art--letters,
.cm-empty-art .cm-howto-art--letters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.cm-howto-art--letters span {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 7px;
  background: rgba(0, 245, 212, 0.14);
  color: var(--turquoise, #00f5d4);
  font-size: 0.72rem;
  font-weight: 800;
  border: 1px solid rgba(0, 245, 212, 0.28);
  animation: cmLetterPop 2.4s ease-in-out infinite;
}

.cm-howto-art--letters span:nth-child(2) { animation-delay: 0.15s; }
.cm-howto-art--letters span:nth-child(3) { animation-delay: 0.3s; }
.cm-howto-art--letters span:nth-child(4) { animation-delay: 0.45s; }

@keyframes cmLetterPop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.cm-howto-art--vs {
  gap: 0.35rem;
}

.cm-howto-art--vs em {
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  font-style: normal;
  color: var(--turquoise, #00f5d4);
  letter-spacing: 0.06em;
  text-shadow: 0 0 12px rgba(0, 245, 212, 0.45);
}

.cm-howto-step {
  display: inline-block;
  margin-bottom: 0.2rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(0, 245, 212, 0.7);
}

.cm-howto-card h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  letter-spacing: 0.04em;
  font-size: 1.15rem;
  color: #f3f4f6;
}

.cm-howto-card p {
  margin: 0;
  color: #9ca3af;
  font-size: 0.82rem;
  line-height: 1.4;
}

.cm-howto-card strong { color: #fcd34d; }

.cm-stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin: 0.25rem 0 0.85rem;
  min-height: 2rem;
}

.cm-quota-strip {
  margin-top: -0.35rem;
  margin-bottom: 0.55rem;
}

.cm-timer-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.cm-timer-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(
      var(--turquoise, #00f5d4) calc(var(--cm-timer-pct, 1) * 360deg),
      rgba(255, 255, 255, 0.08) 0
    );
  mask: radial-gradient(circle at center, transparent 58%, #000 60%);
  -webkit-mask: radial-gradient(circle at center, transparent 58%, #000 60%);
}

.cm-timer-val {
  position: relative;
  z-index: 1;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.78rem;
  color: #e5e7eb;
}

.cm-timer-val.is-urgent {
  color: #fca5a5;
}

.cm-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 245, 212, 0.28);
  background: rgba(0, 245, 212, 0.08);
  color: #e5e7eb;
  font-size: 0.78rem;
  font-weight: 600;
}

.cm-stat-pill strong {
  color: var(--turquoise, #00f5d4);
  font-variant-numeric: tabular-nums;
}

.cm-stat-pill--gold {
  border-color: rgba(252, 211, 77, 0.35);
  background: rgba(252, 211, 77, 0.08);
}

.cm-stat-pill--gold strong { color: #fcd34d; }

.cm-status {
  min-height: 1.35rem;
  margin: 0 auto 0.85rem;
  text-align: center;
  color: #a7f3d0;
  font-size: 0.9rem;
  font-weight: 500;
}

.cm-status.is-error { color: #fca5a5; }
.cm-status:empty { min-height: 0; margin-bottom: 0.4rem; }

/* Tabs */
.cm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin: 0 0 1.15rem;
  padding: 0.35rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 245, 212, 0.18);
  background: rgba(8, 12, 20, 0.82);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 20;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

@media (min-width: 721px) {
  .cm-tabs {
    position: sticky;
    top: calc(64px + env(safe-area-inset-top, 0px));
  }

  .cm-howto-details {
    margin: 0 0 1.15rem;
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .cm-howto-summary {
    display: none;
  }

  .cm-howto-details .cm-howto {
    display: grid !important;
    padding: 0;
    border-top: 0;
    margin: 0;
  }
}

.cm-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #9ca3af;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.cm-tab svg {
  width: 16px;
  height: 16px;
  opacity: 0.75;
}

.cm-tab:hover {
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.04);
}

.cm-tab.is-active {
  color: var(--turquoise, #00f5d4);
  border-color: rgba(0, 245, 212, 0.45);
  background: rgba(0, 245, 212, 0.12);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.12);
}

.cm-tab.is-active svg { opacity: 1; }

.cm-panel.hidden { display: none !important; }

/* Cards */
.cm-card {
  position: relative;
  padding: 1.05rem 1.1rem;
  margin-bottom: 0.9rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 245, 212, 0.26);
  background: linear-gradient(155deg, rgba(14, 16, 28, 0.96), rgba(9, 11, 20, 0.95));
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 34px rgba(0, 0, 0, 0.32),
    0 0 28px rgba(0, 245, 212, 0.07);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.cm-card:hover {
  border-color: rgba(0, 245, 212, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.36),
    0 0 34px rgba(0, 245, 212, 0.11);
}

.cm-card--soft {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}

.cm-card--spotlight { overflow: hidden; }

.cm-card--spotlight::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 55%;
  height: 120%;
  background: radial-gradient(circle, rgba(0, 245, 212, 0.12), transparent 65%);
  pointer-events: none;
}

.cm-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.cm-card h2 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  letter-spacing: 0.04em;
  font-size: 1.35rem;
  color: #f3f4f6;
}

.cm-hint {
  margin: 0;
  color: #9ca3af;
  font-size: 0.86rem;
  line-height: 1.45;
}

.cm-hint--lg { font-size: 0.92rem; }
.cm-hint strong { color: var(--turquoise, #00f5d4); }

.cm-member-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cm-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 245, 212, 0.35);
  background: rgba(0, 245, 212, 0.1);
  color: var(--turquoise, #00f5d4);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cm-chip--muted {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #9ca3af;
}

.cm-chip--ok {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}

.cm-chip--warn {
  border-color: rgba(252, 211, 77, 0.4);
  background: rgba(252, 211, 77, 0.1);
  color: #fcd34d;
}

/* Arena rows */
.cm-crew-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cm-crew-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cm-crew-row:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 245, 212, 0.4);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.cm-crew-avatar {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid rgba(0, 245, 212, 0.3);
  background:
    radial-gradient(circle at 30% 25%, rgba(0, 245, 212, 0.15), transparent 55%),
    #0b1220;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.cm-crew-avatar img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  image-rendering: pixelated;
}

.cm-crew-meta strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.cm-crew-meta span {
  color: #9ca3af;
  font-size: 0.82rem;
}

/* Illustrated empty states */
.cm-empty {
  text-align: center;
  padding: 1.6rem 1rem 1.35rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 245, 212, 0.16);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0, 245, 212, 0.08), transparent 55%),
    rgba(0, 0, 0, 0.28);
  color: #9ca3af;
}

.cm-empty-art {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0 auto 0.85rem;
  min-height: 72px;
}

.cm-empty strong {
  display: block;
  color: #f3f4f6;
  margin-bottom: 0.35rem;
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  letter-spacing: 0.04em;
  font-size: 1.25rem;
}

.cm-empty p,
.cm-empty .cm-empty-text {
  margin: 0 auto;
  max-width: 26rem;
  line-height: 1.45;
  font-size: 0.88rem;
}

.cm-empty .cm-actions {
  justify-content: center;
  margin-top: 0.9rem;
}

/* Mascot preview */
.cm-mascot-preview {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.cm-mascot-frame {
  width: 120px;
  height: 120px;
  border-radius: 18px;
  border: 1px solid rgba(0, 245, 212, 0.4);
  background:
    radial-gradient(circle at 40% 30%, rgba(0, 245, 212, 0.2), transparent 60%),
    #0b1220;
  box-shadow: 0 0 28px rgba(0, 245, 212, 0.15);
  display: grid;
  place-items: center;
  overflow: hidden;
  animation: cmFloat 3.6s ease-in-out infinite;
}

.cm-mascot-frame img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  image-rendering: pixelated;
}

.cm-mascot-body h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  letter-spacing: 0.04em;
  font-size: 1.4rem;
  color: var(--turquoise, #00f5d4);
}

.cm-mascot-body .cm-lore {
  margin: 0 0 0.55rem;
  color: #d1d5db;
  font-size: 0.9rem;
  line-height: 1.45;
}

.cm-captain-stack {
  display: grid;
  gap: 0.9rem;
}

/* Forms */
.cm-form {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.cm-form label {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0.02em;
}

.cm-form input,
.cm-form textarea,
.cm-form select {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  padding: 0.6rem 0.8rem;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cm-form textarea { min-height: 128px; resize: vertical; }

.cm-form input:focus,
.cm-form textarea:focus,
.cm-form select:focus {
  outline: none;
  border-color: rgba(0, 245, 212, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 245, 212, 0.12);
}

.cm-answers-grid {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

@media (min-width: 640px) {
  .cm-answers-grid { grid-template-columns: 1fr 1fr; }
}

.cm-letter {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.25rem;
  border-radius: 6px;
  background: rgba(0, 245, 212, 0.15);
  color: var(--turquoise, #00f5d4);
  font-size: 0.7rem;
  font-weight: 800;
}

.cm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.cm-actions--duel { justify-content: center; }

.cm-q-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1rem;
}

.cm-q-item {
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
}

.cm-q-item strong {
  display: block;
  margin: 0.35rem 0 0.25rem;
  color: #f3f4f6;
  font-size: 0.95rem;
  line-height: 1.35;
}

.cm-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cm-badge.ok {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.cm-badge.ko {
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.cm-q-item .cm-q-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.cm-rank-wrap { overflow-x: auto; }

.cm-rank-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cm-rank-table th {
  text-align: left;
  padding: 0.55rem 0.4rem;
  color: #9ca3af;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cm-rank-table td {
  padding: 0.7rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #e5e7eb;
}

.cm-rank-table tr:hover td {
  background: rgba(0, 245, 212, 0.04);
}

.cm-rank-num {
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  color: var(--turquoise, #00f5d4);
  font-size: 1.15rem;
}

.cm-rank-num.is-top { color: #fcd34d; text-shadow: 0 0 12px rgba(252, 211, 77, 0.35); }

/* Duel stage */
.cm-duel-stage {
  overflow: hidden;
  min-height: 320px;
}

.cm-duel-ring {
  position: absolute;
  inset: -30% auto auto 50%;
  width: min(520px, 120%);
  height: 280px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0, 245, 212, 0.14), transparent 65%);
  pointer-events: none;
}

.cm-duel-fighters {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
  margin-bottom: 0.85rem;
}

.cm-fighter { padding: 0.5rem; }

.cm-fighter-frame {
  width: 96px;
  height: 96px;
  margin: 0 auto 0.45rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 245, 212, 0.4);
  background: #0b1220;
  box-shadow: 0 0 24px rgba(0, 245, 212, 0.18);
  display: grid;
  place-items: center;
  overflow: hidden;
  animation: cmFloat 3.2s ease-in-out infinite;
}

.cm-fighter:last-child .cm-fighter-frame {
  animation-delay: 0.45s;
  border-color: rgba(255, 139, 106, 0.45);
  box-shadow: 0 0 24px rgba(255, 139, 106, 0.18);
}

.cm-fighter-frame img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  image-rendering: pixelated;
}

.cm-fighter strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
}

.cm-fighter .cm-hint { font-size: 0.78rem; }

.cm-vs {
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  color: var(--turquoise, #00f5d4);
  font-size: 1.6rem;
  letter-spacing: 0.08em;
}

.cm-vs span {
  display: inline-block;
  text-shadow: 0 0 18px rgba(0, 245, 212, 0.55);
  animation: cmPulse 1.8s ease-in-out infinite;
}

.cm-duel-lore {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border-left: 3px solid rgba(0, 245, 212, 0.45);
  background: rgba(0, 0, 0, 0.25);
  color: #d1d5db;
  font-size: 0.88rem;
  line-height: 1.45;
  font-style: italic;
}

.cm-duel-lore:empty { display: none; }

.cm-duel-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.cm-progress {
  margin: 0;
  color: #9ca3af;
  font-size: 0.82rem;
  font-weight: 600;
}

.cm-duel-dots {
  display: flex;
  gap: 0.3rem;
}

.cm-duel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.cm-duel-dots span.is-done { background: rgba(0, 245, 212, 0.35); }
.cm-duel-dots span.is-current {
  background: var(--turquoise, #00f5d4);
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.55);
}

.cm-duel-prompt {
  margin: 0 0 0.85rem;
  font-size: clamp(1.05rem, 3.5vw, 1.25rem);
  line-height: 1.35;
  color: #f9fafb;
  text-align: center;
}

.cm-choices { display: grid; gap: 0.5rem; }

.cm-choice {
  min-height: 52px;
  text-align: left;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.cm-choice:hover {
  border-color: rgba(0, 245, 212, 0.4);
  background: rgba(0, 245, 212, 0.08);
}

.cm-choice.is-selected {
  border-color: rgba(0, 245, 212, 0.6);
  background: rgba(0, 245, 212, 0.16);
  color: var(--turquoise, #00f5d4);
  box-shadow: 0 0 22px rgba(0, 245, 212, 0.15);
  transform: translateY(-1px);
}

.cm-duel-result {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.25rem 0.5rem 0.5rem;
}

.cm-duel-result h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  font-size: 2rem;
  letter-spacing: 0.06em;
  color: var(--turquoise, #00f5d4);
  text-shadow: 0 0 24px rgba(0, 245, 212, 0.4);
}

.cm-duel-result.is-loss h3 { color: #fca5a5; text-shadow: 0 0 20px rgba(252, 165, 165, 0.35); }

.cm-duel-idle {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 0.5rem;
  padding: 1.1rem 1rem 1rem;
}

.cm-duel-idle.hidden { display: none !important; }

.cm-idle-cast {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.cm-idle-cast .cm-pixel-char--md:first-child { animation: cmFloat 3s ease-in-out infinite; }
.cm-idle-cast .cm-pixel-char--md:last-child {
  animation: cmFloat 3s ease-in-out 0.4s infinite;
  border-color: rgba(255, 139, 106, 0.4);
}

.cm-duel-idle strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-display, "Bebas Neue", sans-serif);
  letter-spacing: 0.05em;
  font-size: 1.35rem;
  color: #f3f4f6;
}

.cm-duel-idle .cm-hint {
  max-width: 26rem;
  margin: 0 auto 1rem;
}

.cm-duel-play.hidden,
.cm-duel-result.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .section-cm::before,
  .cm-reveal,
  .cm-crew-row,
  .cm-choice,
  .cm-tab,
  .cm-vs span,
  .cm-mascot-frame,
  .cm-fighter-frame,
  .cm-stage-bg img,
  .cm-stage-particles span,
  .cm-stage-fighter--left,
  .cm-stage-fighter--right,
  .cm-navi,
  .cm-navi--stage,
  .cm-navi-frame,
  .cm-howto-art--letters span,
  .cm-idle-cast .cm-pixel-char--md {
    animation: none !important;
    transition: none !important;
  }
  .cm-navi-frame--0 { opacity: 1; }
}


/* ── Mobile portrait (dense, not stretched) ───────────────────────── */
@media (max-width: 720px) {
  /* pageEnter laisse transform sur main → fixed tabs clip�s / 2 onglets visibles */
  body.page-mascotte.page-enter main.page-content,
  body.page-mascotte main.page-content {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: visible;
  }

  .page-mascotte {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .section-cm {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    min-height: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible;
    padding: 0 0 0.5rem !important;
  }

  .section-cm::before,
  .section-cm::after {
    display: none;
  }

  .section-cm > .cm-stage,
  .section-cm > .container-cm {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 auto !important;
  }

  .container-cm {
    width: 100%;
    max-width: 26rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: max(0.85rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.85rem, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
  }

  .cm-stage {
    min-height: 0;
    margin-bottom: 0.15rem;
    overflow: hidden;
    width: 100%;
  }

  .cm-stage-duel,
  .cm-stage-particles,
  .cm-stage-floor,
  .cm-stage-bg {
    display: none !important;
  }

  .cm-stage-overlay {
    display: none;
  }

  .cm-stage-inner {
    padding: 0.35rem 0.85rem 0.4rem;
    gap: 0.1rem;
    max-width: 26rem;
    width: 100%;
    box-sizing: border-box;
  }

  .cm-kicker {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.1rem;
  }

  .section-cm .section-title {
    font-size: 1.25rem;
    letter-spacing: 0.03em;
    margin: 0 0 0.15rem;
    line-height: 1.05;
    text-shadow: none;
  }

  .section-cm .section-intro {
    display: none;
  }

  .cm-hero-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
  }

  .cm-hero-actions .btn {
    flex: 1 1 calc(50% - 0.2rem);
    width: auto;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
    box-shadow: none;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .cm-tab {
    min-height: 48px;
    padding: 0.55rem 0.85rem;
  }

  .cm-pixel-char {
    width: 64px;
    height: 96px;
  }

  .cm-pixel-char--md {
    width: 52px;
    height: 78px;
  }

  .cm-pixel-char img {
    max-width: none !important;
    width: 400% !important;
    height: 400% !important;
  }

  .cm-form input,
  .cm-form select,
  .cm-form textarea,
  .cm-form .btn {
    min-height: 48px;
    font-size: 16px;
    box-sizing: border-box;
  }

  .cm-form .btn {
    width: 100%;
    justify-content: center;
  }

  .section-cm .section-nav {
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    padding: 0 max(0.85rem, env(safe-area-inset-left));
  }

  .section-cm .section-nav .btn {
    width: 100%;
    max-width: 22rem;
    min-height: 48px;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .cm-stat-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem;
    margin: 0.15rem 0 0.45rem;
    min-height: 0;
  }

  .cm-stat-pill {
    justify-content: space-between;
    font-size: 0.72rem;
    padding: 0.35rem 0.55rem;
    gap: 0.35rem;
    border-radius: 10px;
    min-width: 0;
  }

  .cm-stat-pill strong {
    font-size: 0.78rem;
  }

  .cm-status {
    min-height: 0;
    margin-bottom: 0.3rem;
    font-size: 0.78rem;
  }

  .cm-tabs {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    z-index: 200;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 0.2rem;
    margin: 0;
    padding: 0.35rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
    border: 0;
    border-top: 1px solid rgba(0, 245, 212, 0.28);
    background: rgba(7, 10, 16, 0.98);
    backdrop-filter: blur(14px);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
    animation: none !important;
  }

  .cm-tab {
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-height: 52px;
    min-width: 0;
    padding: 0.3rem 0.15rem;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cm-tab span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cm-tab svg {
    width: 18px;
    height: 18px;
    opacity: 0.9;
    flex-shrink: 0;
  }

  .cm-tab.is-active {
    box-shadow: none;
    background: rgba(0, 245, 212, 0.12);
  }

  .cm-howto-details { margin-bottom: 0.5rem; }

  .cm-howto-summary {
    padding: 0.55rem 0.7rem;
    font-size: 0.95rem;
    min-height: 40px;
    line-height: 1.2;
  }

  .cm-howto {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding-top: 0.45rem !important;
  }

  .cm-howto-card { padding: 0.55rem 0.6rem; }
  .cm-howto-card h3 { font-size: 1rem; }
  .cm-howto-card p { font-size: 0.75rem; }
  .cm-howto-art { min-height: 36px; margin-bottom: 0.25rem; }

  .cm-panel { min-width: 0; }

  .cm-card {
    padding: 0.65rem;
    margin-bottom: 0.55rem;
    border-radius: 12px;
  }

  .cm-card:hover { transform: none; }

  .cm-card-head {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
  }

  .cm-card-head .cm-hint {
    flex: 1 1 100%;
    font-size: 0.75rem;
  }

  .cm-chip {
    align-self: center;
    font-size: 0.6rem;
    padding: 0.2rem 0.45rem;
  }

  .cm-card h2 {
    font-size: 1.05rem;
    margin: 0;
  }

  .cm-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.65rem;
  }

  .cm-actions .btn,
  .cm-actions--duel .btn,
  .cm-duel-idle .btn {
    width: auto;
    flex: 1 1 calc(50% - 0.2rem);
    min-width: 0;
    min-height: 40px;
    padding: 0.45rem 0.6rem;
    font-size: 0.82rem;
    box-shadow: none;
  }

  .cm-actions--duel .btn,
  .cm-duel-idle .btn {
    flex: 1 1 100%;
  }

  .cm-empty .cm-actions {
    display: flex;
    justify-content: center;
  }

  .cm-empty .cm-actions .btn,
  .cm-actions .btn:only-child {
    flex: 0 1 auto;
    width: auto;
    min-width: 11rem;
    max-width: 100%;
  }

  .cm-form { gap: 0.2rem; margin-top: 0.45rem; }
  .cm-form label { margin-top: 0.3rem; font-size: 0.72rem; }

  .cm-form input,
  .cm-form textarea,
  .cm-form select {
    font-size: 16px !important;
    min-height: 42px;
    max-width: 100%;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
  }

  .cm-form textarea { min-height: 88px; }

  .cm-answers-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.4rem;
  }

  .cm-mascot-preview {
    grid-template-columns: 72px minmax(0, 1fr);
    justify-items: start;
    text-align: left;
    align-items: center;
    gap: 0.55rem;
  }

  .cm-mascot-frame {
    width: 72px;
    height: 72px;
    border-radius: 12px;
  }

  .cm-mascot-frame img {
    width: 60px;
    height: 60px;
  }

  .cm-mascot-body h3 { font-size: 1.1rem; }

  .cm-mascot-body .cm-lore {
    font-size: 0.78rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .cm-member-row {
    flex-direction: row;
    text-align: left;
    gap: 0.55rem;
    align-items: center;
  }

  .cm-crew-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 0.45rem;
    padding: 0.5rem;
    align-items: center;
  }

  .cm-crew-row .btn {
    grid-column: auto;
    width: auto;
    min-height: 36px;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
  }

  .cm-crew-meta { min-width: 0; }
  .cm-crew-meta strong { font-size: 0.9rem; }
  .cm-crew-meta span { font-size: 0.72rem; overflow-wrap: anywhere; }

  .cm-crew-avatar {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .cm-crew-avatar img {
    width: 38px;
    height: 38px;
  }

  .cm-duel-stage { min-height: 0; }

  .cm-duel-fighters {
    gap: 0.2rem;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .cm-fighter { padding: 0.15rem; min-width: 0; }

  .cm-fighter-frame {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .cm-fighter-frame img {
    width: 48px;
    height: 48px;
  }

  .cm-fighter strong { font-size: 0.8rem; }
  .cm-vs { font-size: 1rem; }

  .cm-duel-lore {
    font-size: 0.78rem;
    padding: 0.5rem 0.6rem;
    margin-bottom: 0.65rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .cm-duel-prompt {
    font-size: 0.95rem;
    margin-bottom: 0.55rem;
  }

  .cm-choices { gap: 0.35rem; }

  .cm-choice {
    min-height: 42px;
    font-size: 0.82rem;
    padding: 0.5rem 0.6rem;
    border-radius: 10px;
  }

  .cm-letter {
    width: 1.1rem;
    height: 1.1rem;
    font-size: 0.65rem;
  }

  .cm-idle-cast {
    gap: 0.3rem;
    margin-bottom: 0.55rem;
  }

  .cm-pixel-char--md {
    width: 48px;
    height: 48px;
  }

  .cm-duel-idle strong { font-size: 1.1rem; }
  .cm-rank-table { font-size: 0.78rem; }
  .cm-rank-table th,
  .cm-rank-table td { padding: 0.45rem 0.25rem; }

  .cm-empty { padding: 0.85rem 0.6rem; }
  .cm-empty-art { min-height: 48px; margin-bottom: 0.4rem; }
  .cm-empty strong { font-size: 1.05rem; }
  .cm-empty-text { font-size: 0.78rem; }
}

@media (max-width: 380px) {
  .cm-crew-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .cm-crew-row .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .cm-answers-grid {
    grid-template-columns: 1fr !important;
  }

  .cm-mascot-preview {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}
