/* Seasonal events: banner, reward window, and the page theme while an event runs */
.event-banner { max-width: 540px; width: 100%; margin: 0 auto 10px; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; font-size: 13px; color: #fff; background: linear-gradient(90deg, rgba(255,120,24,.3), rgba(140,60,230,.28)); border: 1px solid rgba(255,140,50,.65); box-shadow: 0 0 22px rgba(255,120,24,.22); }
.ev-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ev-title-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ev-title-row b { font-family: var(--display); font-size: 17px; letter-spacing: .5px; }
.ev-left { font-size: 12px; opacity: .85; font-variant-numeric: tabular-nums; }
.ev-next { font-size: 12px; opacity: .9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-bar { height: 8px; border-radius: 6px; background: rgba(0,0,0,.35); overflow: hidden; }
.ev-bar > div { height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #ff9f1a, #ff5a1a); transition: width .5s; }
.ev-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.ev-points { font-family: var(--display); font-size: 18px; }

.ev-card { width: min(720px, 100%); }
.ev-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.ev-blurb { margin: 0; line-height: 1.45; }
.ev-stats { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.ev-stats b { font-family: var(--display); font-size: 20px; color: #ffb15a; }
.ev-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ev-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px 8px; border-radius: 14px; border: 2px solid var(--line); background: rgba(8, 5, 28, .5); color: var(--text); font: inherit; cursor: pointer; transition: transform .12s, border-color .15s; }
.ev-tile:hover { transform: translateY(-3px); border-color: rgba(255, 160, 80, .7); }
.ev-tile.owned { border-color: rgba(255, 150, 50, .85); background: linear-gradient(180deg, rgba(255,120,24,.16), rgba(8,5,28,.5)); }
.ev-tile:not(.owned) .ev-art { filter: grayscale(.9) brightness(.55); }
.ev-art { display: grid; place-items: center; width: 64px; height: 64px; font-size: 34px; }
.ev-name { font-weight: 800; font-size: 13px; text-align: center; }
.ev-slot { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.ev-need { font-size: 11px; font-weight: 800; color: #ffb15a; }
.ev-tile:not(.owned) .ev-need { color: var(--muted); }
.tile-lock.ev { background: rgba(255, 120, 24, .25); border-color: rgba(255, 150, 50, .8); color: #ffd9b0; }
.xp-event .xp-unl-title { color: #ffb15a; }

/* the page itself: pumpkin colours, a little night sky, drifting spooks */
body.theme-halloween { --accent: #ff7a1a; --accent2: #ffb15a; }
body.theme-halloween .brand h1 span { color: #ff7a1a; text-shadow: 0 0 22px rgba(255,122,26,.6); }
.ev-fx { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.ev-fx-i { position: absolute; bottom: -40px; opacity: .22; animation: evDrift linear infinite; }
@keyframes evDrift { 0% { transform: translateY(0) translateX(0) rotate(-8deg); } 50% { transform: translateY(-55vh) translateX(26px) rotate(8deg); } 100% { transform: translateY(-115vh) translateX(-18px) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .ev-fx { display: none; } }
@media (max-width: 480px) { .event-banner { flex-direction: column; align-items: stretch; } .ev-side { flex-direction: row; align-items: center; justify-content: space-between; } }
