/* Magera Returns - Mundo Vivo: a single original TibiaMaps viewer. */
.magera-world-live .mxun{background:linear-gradient(146deg,#071729,#102d4a 56%,#081828);border:1px solid #bd9254;box-shadow:0 12px 30px #0006,inset 0 0 0 1px #af925437;padding:13px;margin:13px 0 4px;color:#dceaf9}
.magera-world-live .mxun *{box-sizing:border-box}
.magera-world-live .mxun-head{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin:0 0 12px}
.magera-world-live .mxun-eyebrow{display:block;font:700 10px/1.5 Verdana,sans-serif;color:#b7cde2;text-transform:uppercase;letter-spacing:1.35px}
.magera-world-live .mxun h2{font:700 clamp(20px,3vw,28px)/1.2 Georgia,serif;color:#f5d59a;margin:3px 0 5px}
.magera-world-live .mxun-head p{font:11px/1.6 Verdana,sans-serif;color:#c8d6e5;margin:0}
.magera-world-live .mxun-live{border:1px solid #b99453;padding:7px 10px;border-radius:20px;color:#ffe0a7;background:#0c2b39;font:700 10px Verdana,sans-serif;white-space:nowrap}
.magera-world-live .mxun-live-dot{display:inline-block;background:#5ed68c;width:7px;height:7px;margin-right:6px;border-radius:50%;box-shadow:0 0 8px #4fdd87}
.magera-world-live .mxun-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 10px}
.magera-world-live .mxun-stat{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #486989;background:#061728ab;padding:11px 12px;min-height:48px}
.magera-world-live .mxun-stat span{color:#b9d1e4;font:10px/1.4 Verdana,sans-serif}
.magera-world-live .mxun-stat strong{color:#f4d28d;font:700 13px/1.3 Verdana,sans-serif;text-align:right}
.magera-world-live .mxun-controls{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.magera-world-live .mxun-controls label{min-width:130px;max-width:250px;flex:1 1 165px;display:flex;flex-direction:column;gap:4px;color:#f4d39e;font:700 10px Verdana,sans-serif}
.magera-world-live .mxun-controls select{width:100%;background:#0d2841;border:1px solid #6486a4;color:#e4eff8;padding:8px;font:11px Verdana,sans-serif;border-radius:3px;min-height:34px}
.magera-world-live .mxun-button{background:linear-gradient(#235275,#0b2846);color:#ffe0ab;border:1px solid #bd955c;min-height:34px;padding:6px 12px;border-radius:3px;font:700 10px Verdana,sans-serif;cursor:pointer}
.magera-world-live .mxun-button:hover:not(:disabled){filter:brightness(1.2)}
.magera-world-live .mxun-button:disabled{opacity:.45;cursor:not-allowed}
.magera-world-live .mxun-legend{background:#041526a6;border:1px solid #385b7d;display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:10px 9px;margin:0 0 8px;color:#e0ebf7;font:11px/1.3 Verdana,sans-serif}
.magera-world-live .mxun-legend label{display:inline-flex;align-items:center;gap:5px;cursor:pointer}
.magera-world-live .mxun-legend input{accent-color:#e7ba74}
.magera-world-live .mxun-key{width:11px;height:11px;border:2px solid #fff6;border-radius:50%;display:inline-block}
.magera-world-live .mxun-key.city{background:#e2ac54}.magera-world-live .mxun-key.event{background:#f46249}.magera-world-live .mxun-key.player{background:#51aeff}
.magera-world-live #mxun-status{margin-left:auto;color:#f2d99d;font:10px/1.3 Verdana,sans-serif}
.magera-world-live .mxun-frame{position:relative;background:#091722;border:1px solid #b58c57;min-height:470px;overflow:hidden}
.magera-world-live #mxun-map{display:block;width:100%;height:clamp(470px,62vw,850px);border:0;background:#000}
.magera-world-live .mxun-frame:fullscreen{background:#000;width:100vw;height:100vh;overflow:hidden;display:flex}
.magera-world-live .mxun-frame:fullscreen #mxun-map{height:100vh!important;width:100vw!important;flex:1}
.magera-world-live .mxun-footnote{display:flex;gap:10px;justify-content:space-between;flex-wrap:wrap;padding:10px 2px 3px;color:#b9cfe1;font:10px/1.6 Verdana,sans-serif}
.magera-world-live .mxun code{background:#071523;padding:2px 4px;border:1px solid #435775;color:#ffe2aa}
.magera-world-live .mxun-credit{font:10px/1.6 Verdana,sans-serif;color:#93adc4;padding:9px 0 0;border-top:1px solid #4f6981;margin-top:7px}
.magera-world-live .mxun-credit a{color:#e5c084!important}
@media(max-width:650px){.magera-world-live .mxun{padding:7px}.magera-world-live .mxun-stats{grid-template-columns:1fr 1fr}.magera-world-live .mxun-stat:last-child{grid-column:1/-1}.magera-world-live .mxun-controls label{flex:1 1 130px}.magera-world-live .mxun-legend{gap:7px}.magera-world-live #mxun-status{width:100%;margin-left:0}.magera-world-live #mxun-map{height:480px}}
@media(prefers-reduced-motion:reduce){.magera-world-live .mxun-live-dot{box-shadow:none}}

/* Raid start history: truthful event timeline, never fake a finished raid as active. */
.magera-world-live .mxun-activity{margin-top:10px;background:linear-gradient(160deg,#071b2f,#102d45);border:1px solid #53738e;padding:10px}
.magera-world-live .mxun-activity-head{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:9px}
.magera-world-live .mxun-activity-head h3{font:700 15px Georgia,serif;color:#f4d69b;margin:0}
.magera-world-live #mxun-activity-updated{font:10px Verdana,sans-serif;color:#a6bdd4}
.magera-world-live .mxun-activity-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.magera-world-live .mxun-activity-item{width:100%;display:flex;flex-direction:column;align-items:stretch;gap:4px;text-align:left;padding:9px 10px;background:#0b2742;border:1px solid #546e89;border-left:3px solid #f4aa55;color:#edf4ff;border-radius:3px;min-height:52px;text-decoration:none}
.magera-world-live button.mxun-activity-item{cursor:pointer}
.magera-world-live button.mxun-activity-item:hover{background:#163b5b;border-color:#d1ad70}
.magera-world-live .mxun-activity-item.invasion{border-left-color:#ec6557}
.magera-world-live .mxun-activity-item.raid{border-left-color:#edb76d}
.magera-world-live .mxun-activity-item strong{font:700 11px Verdana,sans-serif;color:#f0d5a2;overflow-wrap:anywhere}
.magera-world-live .mxun-activity-item small{font:10px Verdana,sans-serif;color:#c5d5e5}
.magera-world-live .mxun-empty{display:block;grid-column:1/-1;font:11px Verdana,sans-serif;color:#b4c9de;padding:10px}
@media(max-width:700px){.magera-world-live .mxun-activity-list{grid-template-columns:1fr}}

/* Invasion activity and predicted event windows, real data from API. */
.magera-world-live .mxun-pulse{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 10px}
.magera-world-live .mxun-pulse-card{display:flex;flex-direction:column;gap:5px;border:1px solid #6e704e;border-left:3px solid #c89b54;background:linear-gradient(140deg,#122944,#071b2c);padding:11px 13px;min-width:0}
.magera-world-live .mxun-pulse-card span{font:700 10px/1.4 Verdana,sans-serif;letter-spacing:.3px;color:#a9c8dd}
.magera-world-live .mxun-pulse-card strong{font:700 15px/1.35 Georgia,serif;color:#f6d499;overflow-wrap:anywhere}
.magera-world-live .mxun-pulse-card small{font:10px/1.5 Verdana,sans-serif;color:#b5cbdc}
@media(max-width:650px){.magera-world-live .mxun-pulse{grid-template-columns:1fr}}

/* Verified quest start markers, driven by Magera world-npc.xml. */
.mxun .mxun-quest-focus{margin:13px 0 12px;padding:13px 15px;border:1px solid #e3be77;border-radius:8px;background:linear-gradient(95deg,#264455,#1b344d);color:#faedd6;font:13px/1.65 Arial,sans-serif}
.mxun .mxun-quest-focus strong{color:#ffe1a3}
.mxun .mxun-quest-focus a{color:#fff0bd;font-weight:bold;text-decoration:underline}

.mxun .mxun-key.quest{background:#f0c66b;border-color:#fae1a0}
