/* ---------- Chaotic: câmera, carta ampliada, location revelada e arena de combate ---------- */

/* botões de câmera */
.chx-cam { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); z-index: 6; display: flex; flex-direction: column; gap: 6px; }
.chx-cam button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(148, 163, 184, 0.45); background: rgba(9, 13, 21, 0.82); color: #e2e8f0; font-size: 18px; line-height: 1; cursor: pointer; }
.chx-cam button:hover, .chx-cam button:focus-visible { border-color: #fde047; color: #fde047; outline: none; }
.chx-stage.in-combat .chx-cam, .chx-stage.in-combat .chx-hud-fan, .chx-stage.in-combat .chx-vs-hud { visibility: hidden; }

/* carta ampliada no hover */
.chx-hover { position: absolute; left: 0; top: 0; z-index: 12; width: 300px; pointer-events: none; opacity: 0; transition: opacity 0.12s; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 14px; background: rgba(8, 12, 20, 0.95); border: 1px solid rgba(148, 163, 184, 0.4); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7); }
.chx-hover.on { opacity: 1; }
.chx-hover-img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 10px; display: block; background: #0b0f18; }

/* bloco de informações da criatura (hover e arena) */
.chx-uinfo { display: flex; flex-direction: column; gap: 6px; color: #e2e8f0; font-size: 12.5px; }
.chx-uinfo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.chx-uinfo-head strong { font-size: 15px; color: #f8fafc; }
.chx-uinfo-tribe { color: #94a3b8; font-size: 11.5px; white-space: nowrap; }
.chx-en { position: relative; height: 18px; border-radius: 999px; background: #1e293b; overflow: hidden; }
.chx-en-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #16a34a, #4ade80); transition: width 0.45s ease; }
.chx-en-fill.foe { background: linear-gradient(90deg, #b91c1c, #f87171); }
.chx-en span { position: relative; display: block; text-align: center; font-size: 11.5px; font-weight: 800; line-height: 18px; color: #fff; text-shadow: 0 1px 2px #000; }
.chx-uinfo-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.chx-uinfo-stats span { display: flex; flex-direction: column; align-items: center; padding: 3px 2px; border-radius: 6px; background: rgba(30, 41, 59, 0.85); }
.chx-uinfo-stats small { font-size: 9.5px; color: #94a3b8; }
.chx-uinfo-stats b { font-size: 14px; }
.chx-uinfo-stats .up b { color: #4ade80; }
.chx-uinfo-stats .down b { color: #f87171; }
.chx-uinfo-els { display: flex; flex-wrap: wrap; gap: 4px; }
.chx-el { padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: #1e293b; }
.chx-el.el-fire { background: #7f1d1d; } .chx-el.el-air { background: #155e75; } .chx-el.el-earth { background: #78350f; } .chx-el.el-water { background: #1e3a8a; }
.chx-el.mugic { background: #4c1d95; }
.chx-uinfo-ab { margin: 0; font-size: 12px; line-height: 1.4; color: #cbd5e1; }
.chx-uinfo-gear { display: flex; gap: 8px; align-items: flex-start; padding-top: 6px; border-top: 1px solid rgba(148, 163, 184, 0.25); }
.chx-uinfo-gear p { margin: 2px 0 0; font-size: 11.5px; line-height: 1.35; color: #cbd5e1; }
.chx-gear-img { width: 54px; height: 76px; object-fit: cover; border-radius: 6px; flex: none; }
.chx-gear-img.back { display: grid; place-items: center; background: repeating-linear-gradient(45deg, #1e293b 0 6px, #0f172a 6px 12px); font-weight: 900; font-size: 22px; color: #64748b; }
.chx-uinfo.compact .chx-uinfo-gear { display: none; }

/* location revelada */
.chx-loc-reveal { position: absolute; inset: 0; z-index: 25; display: grid; place-items: center; overflow: hidden; cursor: pointer; animation: chxFadeIn 0.35s ease both; }
.chx-loc-reveal.out { animation: chxFadeOut 0.45s ease both; }
.chx-loc-reveal-bg { position: absolute; inset: 0; }
.chx-loc-reveal-bg img, .chx-arena-bg img { width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: auto; }
.chx-loc-reveal-bg img { animation: chxKenBurns 3.6s ease-out both; }
.chx-loc-reveal-bg::after, .chx-arena-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.15) 0%, rgba(3, 6, 12, 0.82) 100%); }
.chx-loc-reveal-body { position: relative; display: flex; align-items: center; gap: 24px; max-width: min(760px, 92%); padding: 18px 22px; border-radius: 16px; background: rgba(6, 10, 18, 0.72); border: 1px solid rgba(253, 224, 71, 0.45); backdrop-filter: blur(4px); }
.chx-loc-reveal-card { flex: none; perspective: 900px; }
.chx-loc-reveal-img { width: 170px; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 12px; display: block; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8); animation: chxFlipIn 0.7s 0.1s ease-out both; }
.chx-loc-reveal-txt h2 { margin: 4px 0 6px; font-size: clamp(22px, 3.2vw, 34px); color: #fde047; }
.chx-loc-reveal-txt p { margin: 0 0 8px; color: #e2e8f0; line-height: 1.45; }
.chx-loc-ini { font-weight: 800; color: #7dd3fc !important; }

/* arena de combate */
.chx-arena { position: absolute; inset: 0; z-index: 20; display: grid; grid-template-rows: auto 1fr auto; gap: 8px; padding: 10px 12px 12px; overflow: hidden; opacity: 0; transition: opacity 0.4s ease; color: #e2e8f0; }
.chx-arena.in { opacity: 1; }
.chx-arena.out { opacity: 0; transition-duration: 0.5s; }
.chx-arena.min { pointer-events: none; }
.chx-arena.min > :not(.chx-arena-top), .chx-arena.min .chx-arena-top > div { visibility: hidden; }
.chx-arena.min .chx-arena-peek { pointer-events: auto; }
.chx-arena-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 50% 40%, #1e293b, #05070c); }
.chx-arena-bg img { transform: scale(1.06); animation: chxKenBurns 12s ease-out both; }
.chx-arena-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.chx-arena-top > div { display: flex; flex-direction: column; padding: 6px 12px; border-radius: 10px; background: rgba(6, 10, 18, 0.72); }
.chx-arena-top strong { font-size: 17px; color: #fde047; }
.chx-arena-top small { color: #7dd3fc; font-weight: 700; }
.chx-arena-floor { display: grid; grid-template-columns: 1fr minmax(180px, 280px) 1fr; align-items: center; gap: 12px; min-height: 0; }
.chx-arena-fighter { display: grid; grid-template-columns: auto minmax(150px, 230px); grid-template-rows: auto auto; gap: 8px 10px; align-items: start; justify-content: center; perspective: 1000px; }
.chx-arena-fighter.foe { grid-template-columns: minmax(150px, 230px) auto; }
.chx-arena-fighter.foe .chx-arena-card { grid-column: 2; grid-row: 1 / span 2; }
.chx-arena-fighter.foe .chx-arena-info, .chx-arena-fighter.foe .chx-arena-gear { grid-column: 1; }
.chx-arena-fighter.me .chx-arena-card { grid-row: 1 / span 2; }
.chx-arena-card { position: relative; padding: 0; border: 3px solid var(--tribe, #64748b); border-radius: 14px; background: #0b0f18; cursor: zoom-in; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 20px 44px rgba(0, 0, 0, 0.75), 0 0 26px color-mix(in srgb, var(--tribe, #64748b) 55%, transparent); transform-origin: 50% 100%; animation: chxRise 0.75s cubic-bezier(0.2, 0.9, 0.25, 1.15) both; transition: box-shadow 0.25s, transform 0.25s; }
.chx-arena-fighter.foe .chx-arena-card { animation-delay: 0.12s; }
.chx-arena-card-img { width: clamp(130px, 17vw, 230px); aspect-ratio: 5 / 7; object-fit: cover; border-radius: 11px; display: block; }
.chx-arena-fighter.striking .chx-arena-card { box-shadow: 0 0 0 3px #fde047, 0 20px 44px rgba(0, 0, 0, 0.75), 0 0 36px rgba(253, 224, 71, 0.6); }
.chx-arena-info { padding: 8px; border-radius: 10px; background: rgba(6, 10, 18, 0.8); border: 1px solid color-mix(in srgb, var(--tribe, #64748b) 60%, transparent); }
.chx-arena-gear-card { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px; border-radius: 10px; background: rgba(6, 10, 18, 0.8); border: 1px solid rgba(148, 163, 184, 0.35); color: #e2e8f0; font-size: 12px; font-weight: 700; text-align: left; }
.chx-arena-gear-card img { width: 46px; height: 64px; object-fit: cover; border-radius: 6px; }
.chx-arena-gear-card.reveal { cursor: zoom-in; animation: chxFlipIn 0.6s ease-out both; border-color: #fde047; }
.chx-arena-gear-card.back span:first-child { width: 46px; height: 64px; display: grid; place-items: center; border-radius: 6px; background: repeating-linear-gradient(45deg, #1e293b 0 6px, #0f172a 6px 12px); font-size: 22px; color: #64748b; }
.chx-arena-center { display: flex; flex-direction: column; align-items: stretch; gap: 8px; min-height: 0; max-height: 100%; }
.chx-arena-vs { align-self: center; font: 900 clamp(30px, 4vw, 46px)/1 'Alegreya SC', Georgia, serif; color: #fde047; text-shadow: 0 0 18px rgba(253, 224, 71, 0.6), 0 3px 0 #7c2d12; animation: chxPulse 1.6s ease-in-out infinite; }
.chx-arena-turn { padding: 6px 10px; border-radius: 10px; text-align: center; font-weight: 800; font-size: 13px; background: rgba(6, 10, 18, 0.8); }
.chx-arena-turn.me { border: 1px solid #4ade80; color: #bbf7d0; }
.chx-arena-turn.foe { border: 1px solid #f87171; color: #fecaca; }
.chx-arena-log { margin: 0; padding: 6px 8px 6px 22px; list-style: decimal; max-height: 220px; overflow-y: auto; border-radius: 10px; background: rgba(6, 10, 18, 0.78); font-size: 12px; line-height: 1.4; color: #cbd5e1; }
.chx-arena-log li.new { color: #fde047; font-weight: 700; animation: chxFadeIn 0.4s ease both; }
.chx-arena-hand { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 12px; background: rgba(6, 10, 18, 0.82); border: 1px solid rgba(249, 115, 22, 0.45); }
.chx-arena-hand-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.chx-arena-hand-head span { color: #94a3b8; }
.chx-arena-hand-cards { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chx-arena-atk { display: flex; gap: 10px; width: min(380px, 100%); padding: 8px; border-radius: 12px; border: 2px solid rgba(148, 163, 184, 0.35); background: linear-gradient(180deg, #161f33, #0b101d); color: #e2e8f0; text-align: left; cursor: zoom-in; transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s; }
.chx-arena-atk.can { cursor: pointer; border-color: #f97316; box-shadow: 0 0 16px rgba(249, 115, 22, 0.4); }
.chx-arena-atk.can:hover, .chx-arena-atk.can:focus-visible { transform: translateY(-6px); border-color: #fde047; outline: none; }
.chx-arena-atk-art img { width: 84px; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 8px; display: block; }
.chx-arena-atk-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.chx-arena-atk-top { display: flex; justify-content: space-between; gap: 6px; align-items: flex-start; }
.chx-arena-atk-top strong { font-size: 14px; color: #f8fafc; }
.chx-arena-dmg { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 900; background: #334155; }
.chx-arena-dmg.live { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.chx-arena-atk-formula { color: #fde047; font-weight: 700; }
.chx-arena-atk-conds { color: #7dd3fc; }
.chx-arena-atk-ab { margin: 0; font-size: 12px; line-height: 1.4; color: #cbd5e1; }
.chx-arena-atk-cta { align-self: flex-start; margin-top: auto; padding: 3px 12px; border-radius: 999px; background: linear-gradient(135deg, #f97316, #ea580c); font-size: 12px; font-weight: 900; }
.chx-arena-pop { position: absolute; left: 50%; top: 35%; transform: translateX(-50%); font: 900 44px/1 Inter, sans-serif; color: #fecaca; text-shadow: 0 0 12px #ef4444, 0 3px 0 #7f1d1d; animation: chxPop 1.1s ease-out both; pointer-events: none; }
.chx-arena-fighter.me.lunge .chx-arena-card { animation: chxLungeR 0.55s ease; }
.chx-arena-fighter.foe.lunge .chx-arena-card { animation: chxLungeL 0.55s ease; }
.chx-arena-fighter.hurt .chx-arena-card { animation: chxShake 0.45s 0.25s ease; }
.chx-arena-fighter.defeated .chx-arena-card { filter: grayscale(1) brightness(0.5); transform: rotate(-6deg) translateY(16px); transition: filter 0.6s, transform 0.6s; }
.chx-arena-fighter.winner .chx-arena-card { box-shadow: 0 0 0 3px #fde047, 0 0 50px rgba(253, 224, 71, 0.7); }
.chx-arena-result { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 3; padding: 14px 24px; border-radius: 14px; background: rgba(6, 10, 18, 0.92); border: 2px solid #fde047; font-size: clamp(16px, 2.2vw, 24px); font-weight: 900; text-align: center; animation: chxFadeIn 0.3s ease both; }
.chx-arena-result.me { border-color: #4ade80; color: #bbf7d0; }
.chx-arena-result.foe { border-color: #f87171; color: #fecaca; }

/* o treinador fica por cima da arena e da location */
.chx-coach { z-index: 30 !important; }

@keyframes chxRise { from { opacity: 0; transform: translateY(80px) rotateX(62deg) scale(0.7); } to { opacity: 1; transform: none; } }
@keyframes chxFlipIn { from { opacity: 0; transform: rotateY(90deg); } to { opacity: 1; transform: none; } }
@keyframes chxKenBurns { from { transform: scale(1.18); } to { transform: scale(1.04); } }
@keyframes chxFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes chxFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes chxPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes chxLungeR { 0%, 100% { transform: none; } 45% { transform: translateX(60px) rotate(4deg) scale(1.05); } }
@keyframes chxLungeL { 0%, 100% { transform: none; } 45% { transform: translateX(-60px) rotate(-4deg) scale(1.05); } }
@keyframes chxShake { 0%, 100% { transform: none; } 20% { transform: translateX(-10px); } 40% { transform: translateX(9px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
@keyframes chxPop { from { opacity: 0; transform: translate(-50%, 10px) scale(0.6); } 25% { opacity: 1; transform: translate(-50%, -10px) scale(1.15); } to { opacity: 0; transform: translate(-50%, -50px) scale(1); } }

/* layout compacto conforme a largura da MESA (o painel lateral come espaço no desktop) */
.chx-stage { container-type: inline-size; }
@container (max-width: 900px) {
  .chx-arena { overflow-y: auto; grid-template-rows: auto auto auto; align-content: start; }
  .chx-arena-floor { grid-template-columns: 1fr 1fr; }
  .chx-arena-center { grid-column: 1 / -1; grid-row: 2; }
  .chx-arena-fighter, .chx-arena-fighter.foe { grid-template-columns: 1fr; justify-items: center; }
  .chx-arena-fighter.foe .chx-arena-card, .chx-arena-fighter.me .chx-arena-card { grid-column: auto; grid-row: auto; }
  .chx-arena-fighter.foe .chx-arena-info, .chx-arena-fighter.foe .chx-arena-gear { grid-column: auto; }
  .chx-arena-card-img { width: clamp(96px, 24cqw, 170px); }
  .chx-arena-info, .chx-arena-gear { width: 100%; max-width: 240px; }
  .chx-arena-floor { align-items: start; min-height: auto; }
  .chx-arena-center { max-height: none; min-height: auto; }
  .chx-arena-log { max-height: 120px; }
  .chx-loc-reveal-body { flex-direction: column; text-align: center; }
  .chx-loc-reveal-img { width: 130px; }
}
@media (max-width: 700px) { .chx-hover { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .chx-arena-card, .chx-arena-bg img, .chx-loc-reveal-bg img, .chx-loc-reveal-img, .chx-arena-vs, .chx-arena-gear-card.reveal { animation: none !important; }
  .chx-arena-fighter.lunge .chx-arena-card, .chx-arena-fighter.hurt .chx-arena-card { animation: none !important; }
}

/* location sem foto: a carta desenhada vira só textura de fundo (desfocada) */
.chx-arena-bg img.procedural, .chx-loc-reveal-bg img.procedural { filter: blur(10px) saturate(1.2); opacity: 0.55; }

/* fora do combate a mão de ataques fica recolhida (não cobre a mesa); passe o mouse ou foque para abrir */
.chx-hud-fan:not(.live):not(:hover):not(:focus-within) .chx-fan-cards { display: none; }
.chx-hud-fan:not(.live) .chx-fan-header { cursor: default; }
.chx-hud-fan .chx-atk-ability { display: block; font-size: 11px; line-height: 1.35; color: #cbd5e1; white-space: normal; }

/* botão "Começar a batalha" no aviso de quem começa */
.chx-ready { margin-top: 6px; font-size: 15px; padding: 8px 20px; }

/* carta grande ao passar o mouse (mão, Battlegear, location, cartas da arena) */
.chx-zoom { position: absolute; left: 0; top: 0; z-index: 24; width: 260px; pointer-events: none; opacity: 0; transition: opacity 0.12s; display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 14px; background: rgba(8, 12, 20, 0.96); border: 1px solid rgba(253, 224, 71, 0.5); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75); color: #e2e8f0; }
.chx-zoom.on { opacity: 1; }
.chx-zoom-img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 10px; display: block; background: #0b0f18; }
.chx-zoom strong { font-size: 15px; color: #f8fafc; }
.chx-zoom p { margin: 0; font-size: 12px; line-height: 1.4; color: #cbd5e1; }

/* destaque da jogada (ataque, mugic, habilidade) */
.chx-play { position: absolute; left: 50%; top: 46%; z-index: 23; display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-radius: 16px; background: rgba(6, 10, 18, 0.9); border: 2px solid #fde047; box-shadow: 0 0 40px rgba(253, 224, 71, 0.45), 0 20px 50px rgba(0, 0, 0, 0.8); pointer-events: none; max-width: min(560px, 92%); animation: chxPlayInMe 0.4s cubic-bezier(0.2, 0.9, 0.25, 1.1) both; transform: translate(-50%, -50%); }
.chx-play.foe { border-color: #f87171; box-shadow: 0 0 40px rgba(248, 113, 113, 0.5), 0 20px 50px rgba(0, 0, 0, 0.8); animation-name: chxPlayInFoe; }
.chx-play.k-mugic { border-color: #a78bfa; box-shadow: 0 0 40px rgba(167, 139, 250, 0.55), 0 20px 50px rgba(0, 0, 0, 0.8); }
.chx-play.out { opacity: 0; transition: opacity 0.3s; }
.chx-play-img { width: 150px; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 10px; display: block; animation: chxCardGlow 1.2s ease-in-out both; }
.chx-play-txt { display: flex; flex-direction: column; gap: 4px; color: #e2e8f0; }
.chx-play-txt strong { font-size: 20px; color: #fde047; }
.chx-play.foe .chx-play-txt strong { color: #fecaca; }
.chx-play-txt small { font-size: 13px; line-height: 1.4; color: #cbd5e1; }
.chx-play-dmg { font: 900 40px/1 Inter, sans-serif; color: #fecaca; text-shadow: 0 0 14px #ef4444, 0 3px 0 #7f1d1d; animation: chxPop 1.2s 0.5s ease-out both; }
.chx-arena-fighter.glow .chx-arena-card { animation: chxCardGlow 0.9s ease-in-out; }
@keyframes chxPlayInMe { from { opacity: 0; transform: translate(-50%, 40%) scale(0.6); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes chxPlayInFoe { from { opacity: 0; transform: translate(-50%, -140%) scale(0.6); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes chxCardGlow { 0%, 100% { filter: none; } 40% { filter: brightness(1.5) drop-shadow(0 0 18px #fde047); } }
@container (max-width: 700px) { .chx-play-img { width: 100px; } .chx-play-txt strong { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .chx-play, .chx-play-img, .chx-play-dmg { animation: none !important; } }

/* ---------- montador de deck (catálogo + painel do deck lado a lado) ---------- */
.chx-builder { grid-template-columns: 220px minmax(0, 1fr); }
.chx-build-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; margin-top: 10px; }
.chx-dp-host { position: sticky; top: 72px; max-height: calc(100vh - 90px); overflow-y: auto; }
.chx-dp { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; background: rgba(9, 13, 21, 0.9); border: 1px solid var(--line-strong, #334155); }
.chx-dp-head { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; }
.chx-dp-head.ok { background: rgba(22, 163, 74, 0.18); border: 1px solid #16a34a; }
.chx-dp-head.bad { background: rgba(194, 86, 74, 0.15); border: 1px solid #c2564a; }
.chx-dp-head small { color: #cbd5e1; }
.chx-dp-sec { display: flex; flex-direction: column; gap: 4px; }
.chx-dp-sec-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border-radius: 8px; border: 1px solid transparent; background: rgba(30, 41, 59, 0.7); color: #e2e8f0; cursor: pointer; text-align: left; font-size: 13px; }
.chx-dp-sec-head b { margin-left: auto; }
.chx-dp-sec-head em { font-style: normal; font-size: 11px; color: #fca5a5; }
.chx-dp-sec-head.ok b { color: #4ade80; }
.chx-dp-sec-head:hover, .chx-dp-sec-head:focus-visible { border-color: #fde047; outline: none; }
.chx-dp-row { display: flex; align-items: center; gap: 6px; padding: 3px 4px; border-radius: 8px; font-size: 12.5px; }
.chx-dp-row.flash { animation: chxRowFlash 0.9s ease; }
.chx-dp-open { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: zoom-in; }
.chx-dp-open img, .chx-dp-open .chx-thumb { width: 30px !important; height: 42px !important; object-fit: cover; border-radius: 4px; flex: none; }
.chx-dp-open span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chx-dp-qty { font-weight: 800; color: #fde047; min-width: 24px; text-align: right; }
@keyframes chxRowFlash { 0% { background: rgba(253, 224, 71, 0.45); } 100% { background: transparent; } }
@media (max-width: 1000px) {
  .chx-builder { grid-template-columns: 1fr; }
  .chx-build-grid { grid-template-columns: 1fr; }
  .chx-dp-host { position: static; max-height: none; order: -1; }
}
@media (max-width: 1100px) {
  .chx-builder { grid-template-columns: 1fr; }
  .chx-decklist { flex-direction: row; flex-wrap: wrap; }
}
.chx-ready-decks { width: 100%; }
.chx-ready-decks summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.chx-ready-decks .deck-item { width: 100%; margin-top: 4px; }
