/* HELL-MU V15.16 — EVENTS timer in the established dark fantasy design.
   Only affects the popup launched from the existing EVENTS tile. */
body.hell-theme .hell-events-overlay[hidden]{display:none!important}
body.hell-theme.hell-events-open{overflow:hidden!important}
body.hell-theme .hell-events-overlay{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;padding:18px;isolation:isolate}
body.hell-theme .hell-events-backdrop{position:absolute;inset:0;background:rgba(5,3,5,.9);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
body.hell-theme .hell-events-window{position:relative;z-index:1;width:min(100%,780px);max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain;outline:none;background:radial-gradient(ellipse at 50% -25%,rgba(118,30,23,.3),transparent 68%),linear-gradient(145deg,#1d0e10,#0b070a 62%,#150a0c);border:1px solid #92553d;box-shadow:0 0 0 4px #080507,0 0 0 5px #46251e,0 28px 75px #000, inset 0 0 45px rgba(130,38,20,.14);color:#e6d9cb;border-radius:6px}
body.hell-theme .hell-events-topline{height:4px;background:linear-gradient(90deg,#481911,#db7337,#f1c780,#db7337,#481911)}
body.hell-theme .hell-events-header{display:flex;align-items:center;gap:17px;padding:25px 29px 19px;border-bottom:1px solid rgba(204,116,71,.23)}
body.hell-theme .hell-events-crest{width:59px;height:59px;flex:0 0 59px;border:1px solid #98663d;background:radial-gradient(circle at center,#61291e,#180c0e 75%);box-shadow:inset 0 0 0 4px #211110,0 0 28px #bd42152b;display:grid;place-items:center;font-size:30px;color:#e7b269;text-shadow:0 0 14px #cd6c3b}
body.hell-theme .hell-events-heading-copy{min-width:0;flex:1}
body.hell-theme .hell-events-overline{font:10px/1.3 Georgia,serif;letter-spacing:2.2px;color:#c08f6d}
body.hell-theme .hell-events-heading-copy h2{font:28px/1.15 Cinzel,Georgia,serif;font-weight:600;letter-spacing:1.6px;color:#ffdbad;margin:6px 0 7px;text-shadow:0 1px 15px #c642163b}
body.hell-theme .hell-events-heading-copy p{font:12px/1.6 Arial,sans-serif;color:#bba79f;margin:0}
body.hell-theme .hell-events-close{align-self:flex-start;flex:0 0 34px;width:34px;height:34px;padding:0;border:1px solid #754237;border-radius:2px;background:#271113;color:#e3bf9f;font:25px/1 Arial,sans-serif;cursor:pointer}
body.hell-theme .hell-events-close:hover{border-color:#dc7b46;color:#fff3e5;background:#472018}
body.hell-theme .hell-events-summary{display:flex;align-items:center;gap:10px;margin:19px 29px 5px;padding:10px 13px;background:linear-gradient(90deg,#2b1615,#1a0e10);border:1px solid #51332b;color:#e7bc87;font:12px Georgia,serif;letter-spacing:.6px}
body.hell-theme .hell-events-live-dot{width:7px;height:7px;background:#c75831;border-radius:100%;box-shadow:0 0 7px #e56c33}
body.hell-theme .hell-events-list{display:grid;gap:10px;padding:14px 29px 22px;max-height:min(57vh,540px);overflow:auto;scrollbar-color:#774536 #130a0c}
body.hell-theme .hell-event-row{display:flex;align-items:center;min-width:0;gap:15px;padding:14px 16px;border:1px solid rgba(146,82,60,.35);border-left:3px solid #57332c;background:linear-gradient(105deg,rgba(51,26,24,.85),rgba(20,12,15,.95));box-shadow:inset 0 0 0 1px #211316}
body.hell-theme .hell-event-row.is-next{border-color:#a16a3a;border-left-color:#d6a45f;background:linear-gradient(105deg,#49271b,#211115 70%);box-shadow:inset 0 0 0 1px #4c2b24,0 0 17px rgba(196,83,34,.13)}
body.hell-theme .hell-event-insignia{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border:1px solid #6e4634;background:linear-gradient(#3a1916,#130d0e);color:#bc7a4c;font:16px Georgia,serif}
body.hell-theme .hell-event-row.is-next .hell-event-insignia{color:#e8bc7a;border-color:#a37546}
body.hell-theme .hell-event-details{flex:1;min-width:0;display:grid;gap:4px}
body.hell-theme .hell-event-details strong{overflow-wrap:anywhere;font:600 15px/1.35 Cinzel,Georgia,serif;color:#ead7c4}
body.hell-theme .hell-event-details small{font:9px/1.3 Arial,sans-serif;letter-spacing:1.2px;color:#a98c7d}
body.hell-theme .hell-event-countdown{margin-left:auto;flex:0 0 auto;min-width:115px;display:grid;justify-items:end;gap:4px}
body.hell-theme .hell-event-countdown span{font:9px Arial,sans-serif;letter-spacing:1.2px;color:#ac8d7b}
body.hell-theme .hell-event-countdown time{font:600 18px/1.2 Consolas,monospace;letter-spacing:.4px;font-variant-numeric:tabular-nums;color:#e8bb7e}
body.hell-theme .hell-event-row.is-due .hell-event-countdown time{font-size:13px;color:#e18e63}
body.hell-theme .hell-events-empty{text-align:center;padding:28px 12px;border:1px dashed #613d32;background:#160d0e;color:#bda79b;font:13px/1.6 Arial,sans-serif;margin:0}
body.hell-theme .hell-events-footer{padding:14px 29px 18px;border-top:1px solid rgba(204,116,71,.2);display:flex;align-items:center;justify-content:space-between;gap:15px;font:10px/1.5 Arial,sans-serif;color:#8e7770}
body.hell-theme .hell-events-footer button{padding:9px 17px;border:1px solid #9b5433;background:linear-gradient(#54281e,#2c1614);color:#f0c69b;font:11px Cinzel,Georgia,serif;cursor:pointer}
body.hell-theme .hell-events-footer button:hover{background:#653221;color:#fff}
@media(max-width:560px){
 body.hell-theme .hell-events-overlay{padding:10px}
 body.hell-theme .hell-events-window{max-height:calc(100dvh - 20px)}
 body.hell-theme .hell-events-header{padding:18px 16px 14px;gap:11px}
 body.hell-theme .hell-events-crest{width:40px;height:40px;flex-basis:40px;font-size:20px}
 body.hell-theme .hell-events-heading-copy h2{font-size:19px;letter-spacing:1px}
 body.hell-theme .hell-events-overline{font-size:8px;letter-spacing:1px}
 body.hell-theme .hell-events-heading-copy p{font-size:10px}
 body.hell-theme .hell-events-close{width:29px;height:29px;flex-basis:29px}
 body.hell-theme .hell-events-summary{margin:12px 15px 0}
 body.hell-theme .hell-events-list{padding:12px 15px 16px;max-height:52vh}
 body.hell-theme .hell-event-row{padding:10px;gap:10px}
 body.hell-theme .hell-event-insignia{width:24px;height:24px;flex-basis:24px}
 body.hell-theme .hell-event-details strong{font-size:12px}
 body.hell-theme .hell-event-countdown{min-width:86px}
 body.hell-theme .hell-event-countdown time{font-size:13px}
 body.hell-theme .hell-events-footer{padding:12px 15px;align-items:flex-start;gap:9px}
}


/* HELL-MU V15.19: all upcoming event tiles remain readable.
   'is-next' remains informative, not a unique active/selected tile.
   Timer logic and CMS event order are unchanged. */
body.hell-theme .hell-events-list .hell-event-row {
  border-color: rgba(165,100,72,.66);
  border-left-color: #9d674b;
  background: linear-gradient(105deg,rgba(60,30,27,.95),rgba(33,18,20,.97) 72%,rgba(26,13,16,.98));
  box-shadow: inset 0 0 0 1px rgba(224,136,91,.09);
}
body.hell-theme .hell-events-list .hell-event-row.is-next {
  border-color: rgba(181,114,76,.72);
  border-left-color: #d7a16b;
  background: linear-gradient(105deg,rgba(64,34,28,.96),rgba(35,19,21,.98) 72%,rgba(27,14,17,.98));
  box-shadow: inset 0 0 0 1px rgba(224,136,91,.10);
}
body.hell-theme .hell-events-list .hell-event-insignia {
  border-color: #9b6549;
  background: linear-gradient(145deg,#49271f,#241417);
  color: #e7a86e;
}
body.hell-theme .hell-events-list .hell-event-row.is-next .hell-event-insignia {
  border-color: #b67c4c;
  color: #f2c38a;
}
body.hell-theme .hell-events-list .hell-event-details strong { color: #f0dccb; }
body.hell-theme .hell-events-list .hell-event-details small { color: #c19b81; }
body.hell-theme .hell-events-list .hell-event-countdown span { color: #c3a18c; }
body.hell-theme .hell-events-list .hell-event-countdown time { color: #f4c98c; }
