/* Registro y resultado adaptados de app.js::renderBattle/showResult y styles.css. */
.live-log-panel{position:fixed;z-index:80;left:8px;bottom:8px;width:min(270px,32vw);color:#edf4ef;pointer-events:auto}
.log-head{display:flex;gap:3px;align-items:center}
.combat-log-toggle{flex:1;margin:0;padding:6px 9px;font-size:11px;background:#101813ee;color:#edf4ef;border:1px solid #547063;border-radius:7px;min-height:30px;touch-action:manipulation}
.live-log-panel .combat-log{max-height:140px;overflow:auto;margin:4px 0 0;padding:7px 9px;font-size:11px;background:#101813f2;border:1px solid #547063;border-radius:7px;overscroll-behavior:contain}
.combat-log p{margin:3px 0;line-height:1.4}
.live-log-panel .hud-drag-handle{background:#101813ee;cursor:grab;touch-action:none;min-height:30px}
.result-screen{display:grid;place-items:center;min-height:70vh;padding:10px;max-width:850px;margin:auto;text-align:center}
.result-screen .home-card{width:min(94vw,620px);max-height:calc(100dvh - 100px);overflow:auto;padding:22px 16px;border:1px solid #526953;border-radius:18px;background:linear-gradient(180deg,#1c2b22f5,#111b16f5);box-shadow:0 12px 35px #0008}
.result-medal{font-size:48px}.result-screen h2{font-size:30px;margin:4px 0}.result-reason{color:#b7c8bb}
.result-stats{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;margin:14px 0;font-size:12px}
.result-team{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.result-unit{display:flex;align-items:center;gap:7px;font-size:14px}.result-unit img{width:36px;height:36px;border-radius:50%;object-fit:cover}
.result-actions{display:flex;justify-content:center;gap:7px;margin-top:15px}.result-log{position:static;width:100%;text-align:left}.result-screen .log-head{justify-content:center}.result-screen .combat-log-toggle{flex:0 1 220px}
@media(orientation:landscape) and (max-height:500px){.live-log-panel{width:180px}.live-log-panel .combat-log{max-height:92px;font-size:10px}.combat-log-toggle{font-size:10px;padding:4px}.result-screen{min-height:60vh}.result-screen .home-card{width:min(78vw,720px);padding:12px 16px;max-height:calc(100dvh - 55px)}.result-medal{font-size:30px}.result-screen h2{font-size:24px}.result-screen p{margin:7px}.result-unit img{width:28px;height:28px}}
@media(orientation:portrait){.live-log-panel{width:min(260px,64vw)}.result-screen .home-card{max-height:calc(100dvh - 130px)}}

/* Result art shares the approved stadium palette; all match data remains live text. */
.result-screen{max-width:none;min-height:calc(100dvh - 80px);background:linear-gradient(#04142199,#041421dd),url('../assets/optimized/assets/ui/start/inicio-fondo.webp') center/cover;border-radius:14px;color:#f4ead4}
.result-screen .home-card{width:min(94vw,820px);border-color:#b99c61;background:linear-gradient(135deg,#123c50f2,#061c2ef5);box-shadow:inset 0 0 0 2px #091c2b,0 12px 35px #0008}
.result-heading{display:flex;justify-content:center;align-items:center;gap:16px;border:0;padding:0 0 12px;text-align:left}
.result-emblem{width:clamp(72px,14dvh,132px);height:clamp(72px,14dvh,132px);object-fit:contain;flex:none;filter:drop-shadow(0 3px 8px #0008)}
.result-eyebrow{font-size:10px;letter-spacing:1.5px;color:#b9d6df}.result-screen h2{color:#f4d58c;letter-spacing:2px;margin:5px 0;font-size:clamp(22px,4vw,32px)}
.result-screen[data-outcome=defeat] h2{color:#d1dae1}.result-screen[data-outcome=neutral] h2{color:#9ce5f2}.result-reason{color:#c2d6de}
.result-teams{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:10px}.result-team-panel{padding:12px;background:#061d2bbd;border:1px solid #4d8193;border-radius:10px;min-width:0}.result-team-panel.red{border-color:#a77670}
.result-team-panel h3{font-size:14px;color:#a4deef;margin:0 0 10px}.result-team-panel.red h3{color:#e9b4a6}.result-team{display:grid;gap:8px}.result-unit{text-align:left;font-size:13px;flex-wrap:wrap}.result-unit img{width:38px;height:38px}.result-unit strong{margin-left:auto;white-space:nowrap}
.result-stats{color:#c2d6de}.result-screen .combat-log-toggle{background:#0a2a3c;border-color:#8e7d53}.result-screen .combat-log{background:#061d2b;border-color:#527587}.result-actions .primary{background:linear-gradient(135deg,#218799,#06556d);border:1px solid #d0ad65;color:#fff0cc;min-height:42px}
@media(orientation:landscape) and (max-height:500px){.result-screen{min-height:calc(100dvh - 45px);padding:6px}.result-screen .home-card{max-height:calc(100dvh - 55px);padding:10px 14px}.result-heading{gap:12px;padding-bottom:5px}.result-emblem{width:64px;height:64px}.result-screen h2{font-size:24px}.result-eyebrow{font-size:9px}.result-teams{margin-top:4px;gap:8px}.result-team-panel{padding:7px}.result-team-panel h3{margin-bottom:5px}.result-unit img{width:28px;height:28px}.result-stats{margin:9px 0}.result-actions{margin-top:9px}}
@media(max-width:420px){.result-heading{gap:8px}.result-eyebrow{font-size:8px;letter-spacing:.8px}.result-screen h2{font-size:21px;letter-spacing:1px}.result-team-panel{padding:7px}.result-team-panel h3{font-size:12px}.result-unit{font-size:12px;gap:4px}.result-unit img{width:28px;height:28px}}

.result-screen .result-log{width:100%}
.result-tabs{display:flex;justify-content:center;gap:8px;margin:8px 0 14px}
.result-tabs button{min-height:40px;border:1px solid #658895;background:#082438;color:#d7e6ed;border-radius:8px;padding:8px 18px}
.result-tabs button[aria-pressed=true]{border-color:#e3bd72;color:#ffe0a2;background:#174355}
.performance-note,.performance-empty{font-size:12px;line-height:1.5;color:#bfd5df;text-align:left}
.performance-scroll{width:100%;overflow-x:auto;overscroll-behavior-x:contain;touch-action:pan-x pan-y;border:1px solid #658895;border-radius:10px}
.performance-table{border-collapse:collapse;width:100%;min-width:660px;font-size:12px;color:#eef3f6;text-align:center;font-variant-numeric:tabular-nums}
.performance-table caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.performance-table th,.performance-table td{padding:9px 7px;border-bottom:1px solid #335165}
.performance-table thead th{font-size:11px;background:#061c2e;line-height:1.3}
.performance-team th{text-align:left;color:#a4deef;background:#143e54}
.performance-table tbody[data-team=B] .performance-team th{color:#f2c0b2;background:#412e39}
.performance-player th{min-width:155px;text-align:left}
.performance-identity{display:flex;align-items:center;gap:7px}
.performance-identity img{border-radius:50%;object-fit:cover;flex:none}
.performance-identity strong{display:block;max-width:160px;overflow-wrap:anywhere}
.performance-identity small{display:block;font-size:10px;color:#bdd1db;font-weight:normal;margin-top:2px}
.performance-grade{display:inline-grid;place-items:center;min-width:25px;min-height:27px;background:#132e41;border:1px solid #7897a2;border-radius:6px;font-weight:bold}
.performance-grade[data-grade=S]{border-color:#edc876;color:#ffe1a0}
.performance-grade[data-grade=A]{border-color:#8adeec;color:#a6eeff}
.performance-award{display:block;font-size:10px;color:#ffe1a0;margin-top:3px}
.history-performance{margin-top:8px;width:100%;max-width:100%;color:#dce8ee}
.history-performance summary{cursor:pointer;min-height:36px;padding:8px 0;color:#ffe1a0}
.history-copy{min-width:0;flex:1}
@media(orientation:landscape) and (max-height:500px){.result-tabs{margin:5px 0 8px}.result-tabs button{min-height:34px;padding:5px 16px}.performance-table th,.performance-table td{padding:6px}.performance-note{margin:7px 0}}

.live-battle .live-log-panel{width:min(205px,27vw)}
.live-battle .live-log-panel .combat-log{max-height:100px;font-size:10px;padding:5px 7px}
.tactical-wheel{position:fixed;z-index:150;width:180px;height:180px;border-radius:50%;transform:translate(-50%,-50%);background:radial-gradient(circle,#102631b8 0 23%,#10263145 24% 61%,transparent 62%);pointer-events:none;user-select:none;touch-action:none}
.tactical-wheel-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:54px;text-align:center;font-size:8px;line-height:1.4;letter-spacing:.15px;color:#d4dfdc;text-shadow:0 1px 3px #06131f}
.tactical-wheel-cell{position:absolute;left:50%;top:50%;width:58px;height:44px;padding:3px;text-align:center;display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;border:1px solid #afc5bb55;border-radius:10px;background:linear-gradient(150deg,#183644f2,#0d2532f2);color:#e5eeeb;font-size:9px;line-height:1.1;box-shadow:0 2px 6px #03121a55,inset 0 1px #ffffff0a}
.tactical-wheel-cell b{display:grid;place-items:center;font-size:16px;font-weight:400;line-height:1;color:#dfd4aa}.tactical-wheel-cell b svg{width:17px;height:17px;max-height:none;overflow:visible}.tactical-wheel-cell span{max-width:100%;text-wrap:balance}.tactical-wheel-cell.selected{background:linear-gradient(150deg,#345347,#1b3935);border-color:#d7c98a;color:#fff6d8;box-shadow:0 0 0 1px #d7c98a22,0 2px 8px #03121a66}.tactical-wheel-cell.selected b{color:#f0d99d}
.tactical-marker{pointer-events:none;animation:tactical-marker-fade 6500ms both}.tactical-marker ellipse{fill:#b0d57733;stroke:#ddf497;stroke-width:1.5}.tactical-marker text{font-size:7px;fill:#fff;paint-order:stroke;stroke:#081c2a;stroke-width:2px;stroke-linejoin:round;font-weight:bold}.tactical-marker image{clip-path:circle(50%)}
@keyframes tactical-marker-fade{0%,80%{opacity:1}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.tactical-marker{animation-timing-function:steps(1,end)}}
