/* Pacote de aprendizado do Disney Lorcana: cenário da arena, dicas (brilho), carta ampliada no hover,
   destaque de jogada, painel do treinador e tela "Começar a partida". Usado por js/games/lorcana/. */

/* ---------- cenário da arena (fundo visível da mesa) ---------- */
.lor-table-slot.lor-arena-host { position: relative; isolation: isolate; }
.lor-arena-host .lor-battlefield { position: relative; z-index: 1; background: transparent; }
.lor-scenery { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.lor-scenery-fx { position: absolute; inset: 0; }
.lor-scenery-icon { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); font-size: clamp(110px, 18vw, 220px); opacity: 0.16; filter: blur(0.5px) drop-shadow(0 0 30px rgba(255, 255, 255, 0.35)); }
.lor-scenery-name { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 800 clamp(18px, 3.4vw, 40px)/1 Georgia, serif; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.07); white-space: nowrap; }

/* Grande Iluminário: estrelas douradas e névoa ametista */
.sc-illuminary .a { background-image: radial-gradient(2px 2px at 12% 22%, #fde68a, transparent), radial-gradient(1.5px 1.5px at 28% 70%, #fff, transparent), radial-gradient(2px 2px at 46% 34%, #fcd34d, transparent), radial-gradient(1.5px 1.5px at 63% 80%, #fff, transparent), radial-gradient(2.5px 2.5px at 78% 18%, #fde68a, transparent), radial-gradient(1.5px 1.5px at 90% 62%, #fff, transparent); background-size: 340px 260px; opacity: 0.85; animation: lor-twinkle 4s ease-in-out infinite alternate; }
.sc-illuminary .b { background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(168, 85, 247, 0.35), transparent 70%), radial-gradient(ellipse 30% 20% at 20% 80%, rgba(251, 191, 36, 0.22), transparent 70%); }
/* Arendelle: aurora boreal e cristais de gelo */
.sc-arendelle .a { background: linear-gradient(170deg, transparent 18%, rgba(45, 212, 191, 0.32) 30%, rgba(129, 140, 248, 0.28) 40%, transparent 55%); filter: blur(14px); animation: lor-aurora 9s ease-in-out infinite alternate; }
.sc-arendelle .b { background: repeating-linear-gradient(60deg, transparent 0 46px, rgba(186, 230, 253, 0.07) 46px 48px), repeating-linear-gradient(-60deg, transparent 0 46px, rgba(186, 230, 253, 0.07) 46px 48px); }
/* Motunui: ondas turquesa e sol tropical */
.sc-motunui .a { background: radial-gradient(circle at 80% 15%, rgba(253, 224, 71, 0.35), transparent 22%), repeating-radial-gradient(ellipse at 50% 130%, rgba(45, 212, 191, 0.16) 0 14px, transparent 14px 34px); animation: lor-waves 7s ease-in-out infinite alternate; }
.sc-motunui .b { background: linear-gradient(180deg, transparent 55%, rgba(6, 182, 212, 0.28)); }
/* Montanha Proibida: chamas verdes e relâmpagos */
.sc-forbidden .a { background: radial-gradient(ellipse 40% 30% at 20% 100%, rgba(74, 222, 128, 0.42), transparent 70%), radial-gradient(ellipse 35% 28% at 80% 100%, rgba(74, 222, 128, 0.36), transparent 70%); animation: lor-flame 2.6s ease-in-out infinite alternate; }
.sc-forbidden .b { background: linear-gradient(115deg, transparent 47%, rgba(190, 242, 100, 0.18) 48%, transparent 49%), radial-gradient(ellipse at 50% 0%, rgba(126, 34, 206, 0.35), transparent 60%); }

@keyframes lor-twinkle { from { opacity: 0.45; } to { opacity: 0.95; } }
@keyframes lor-aurora { from { transform: translateX(-6%) skewY(-2deg); } to { transform: translateX(6%) skewY(2deg); } }
@keyframes lor-waves { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@keyframes lor-flame { from { opacity: 0.6; transform: scaleY(0.96); } to { opacity: 1; transform: scaleY(1.06); } }

/* ---------- dica "o que posso fazer agora" ---------- */
.lor-hand-card.lor-hint, .lor-char-card.lor-hint { border-color: #facc15 !important; box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.85), 0 0 18px rgba(250, 204, 21, 0.6); animation: lor-hint-pulse 1.6s ease-in-out infinite; }
.lor-hand-card.lor-hint-ink { border-color: #38bdf8 !important; box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.7), 0 0 12px rgba(56, 189, 248, 0.45); }
.lor-char-card.lor-hint-target { border-color: #ef4444 !important; box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.85), 0 0 18px rgba(239, 68, 68, 0.6); animation: lor-hint-pulse 1.6s ease-in-out infinite; }
.lor-char-card.exerted.lor-hint-target { transform: rotate(14deg) scale(0.94); }
@keyframes lor-hint-pulse { 50% { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35), 0 0 26px currentColor; } }
.lor-hand-slot { flex-wrap: wrap; }
.lor-hintbar { flex: 1 0 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; background: rgba(250, 204, 21, 0.1); border: 1px solid rgba(250, 204, 21, 0.35); color: #fef3c7; }
.lor-hintbar.ai { background: rgba(148, 163, 184, 0.1); border-color: rgba(148, 163, 184, 0.3); color: #cbd5e1; }
.lor-hintbar-txt { min-width: 0; }

/* ---------- carta ampliada no hover ---------- */
.lor-zoom { position: fixed; left: 0; top: 0; z-index: 1200; width: 250px; padding: 8px; border-radius: 14px; background: rgba(12, 10, 24, 0.96); border: 1px solid rgba(250, 204, 21, 0.45); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(168, 85, 247, 0.35); pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 0.14s; }
.lor-zoom.on { opacity: 1; visibility: visible; }
.lor-zoom-img { display: block; width: 100%; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 10px; background: #18181b; }
.lor-zoom-info { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; font-size: 12px; color: #e2e8f0; }
.lor-zoom-info strong { font-size: 13.5px; color: #fff; }
.lor-zoom-info p { margin: 2px 0 0; font-style: italic; color: #cbd5e1; }
.lor-zoom-ink { font-weight: 700; }

/* ---------- destaque de jogada ---------- */
.lor-play { position: absolute; left: 50%; top: 50%; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 18px; pointer-events: none; transform: translate(-50%, -50%) scale(1); background: rgba(10, 8, 22, 0.88); border: 2px solid #facc15; box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.18), 0 0 60px rgba(250, 204, 21, 0.45), 0 20px 60px rgba(0, 0, 0, 0.7); animation: lor-play-in 0.32s cubic-bezier(0.2, 1.4, 0.4, 1) both; max-width: min(92%, 620px); }
.lor-play.foe { border-color: #f87171; box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.18), 0 0 60px rgba(248, 113, 113, 0.45), 0 20px 60px rgba(0, 0, 0, 0.7); }
.lor-play.out { animation: lor-play-out 0.28s ease-in both; }
.lor-play-cards { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.lor-play-card { width: 150px; border-radius: 12px; overflow: hidden; box-shadow: 0 0 26px rgba(250, 204, 21, 0.55); }
.lor-play.foe .lor-play-card { box-shadow: 0 0 26px rgba(248, 113, 113, 0.55); }
.lor-play-card.target { width: 110px; opacity: 0.92; }
.lor-play.k-ink .lor-play-card { width: 110px; }
.lor-play-img { display: block; width: 100%; aspect-ratio: 5 / 7; object-fit: cover; background: #18181b; }
.lor-play-vs { font: 900 20px/1 Georgia, serif; color: #fca5a5; text-shadow: 0 0 10px #ef4444; }
.lor-play-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; color: #f8fafc; }
.lor-play-who { font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #fde68a; }
.lor-play.foe .lor-play-who { color: #fecaca; }
.lor-play-txt strong { font-size: 18px; line-height: 1.2; }
.lor-play-fx { font-size: 15px; font-weight: 800; color: #fbbf24; }
.lor-play.foe .lor-play-fx { color: #fca5a5; }
@keyframes lor-play-in { from { opacity: 0; transform: translate(-50%, -50%) scale(0.6); } }
@keyframes lor-play-out { to { opacity: 0; transform: translate(-50%, -50%) scale(0.9); } }

/* ---------- treinador ---------- */
.lor-coach-slot { position: absolute; top: 10px; right: 10px; z-index: 25; width: min(340px, calc(100% - 20px)); pointer-events: none; }
.lor-coach { pointer-events: auto; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; color: #3b2a12; background: linear-gradient(180deg, #fdf6e3, #f3e3bd); border: 2px solid #c8a35a; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55); }
.lor-coach-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.lor-coach-eyebrow { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: #7c5a1d; }
.lor-coach-bar { height: 5px; border-radius: 3px; background: rgba(124, 90, 29, 0.2); overflow: hidden; }
.lor-coach-bar span { display: block; height: 100%; background: #b45309; transition: width 0.3s; }
.lor-coach-title { font-size: 16px; color: #2a1d0a; }
.lor-coach-text { margin: 0; font-size: 13.5px; line-height: 1.45; }
.lor-coach-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lor-coach-wait { font-size: 12.5px; font-weight: 700; color: #92400e; }
.lor-learn-guided { padding: 12px; border-radius: 12px; border: 1px solid rgba(250, 204, 21, 0.4); background: rgba(250, 204, 21, 0.08); }

/* ---------- tela "Começar a partida" ---------- */
.lor-gate { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(5, 4, 12, 0.55); backdrop-filter: blur(3px); }
.lor-gate-box { max-width: 440px; text-align: center; padding: 22px 24px; border-radius: 18px; background: rgba(17, 14, 34, 0.94); border: 1px solid rgba(250, 204, 21, 0.45); box-shadow: 0 0 50px rgba(168, 85, 247, 0.35); color: #f8fafc; }
.lor-gate-box h2 { margin: 6px 0; }
.lor-gate-box p { margin: 6px 0; }
.lor-gate-icon { font-size: 46px; }

@media (max-width: 640px) {
  .lor-play { flex-direction: column; gap: 8px; padding: 10px; }
  .lor-play-card { width: 110px; }
  .lor-play-card.target { width: 84px; }
  .lor-coach-slot { top: auto; bottom: 8px; right: 8px; left: 8px; width: auto; }
  .lor-coach-text { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .lor-scenery-fx, .lor-hint, .lor-hint-target, .lor-play, .lor-play.out { animation: none !important; }
}
