.ev-overlay{position:fixed;inset:0;z-index:76000;background:#0d2547b8;backdrop-filter:blur(5px);display:grid;place-items:center;padding:18px;color:#604128;font:15px/1.45 system-ui,sans-serif}.ev-overlay[hidden]{display:none}.ev-dialog{display:flex;flex-direction:column;width:min(1380px,96vw);max-height:95dvh;box-sizing:border-box;overflow:hidden;border:7px ridge #b78241;border-radius:28px;background:#fae9cc;box-shadow:0 22px 90px #051126a8,inset 0 0 0 3px #fff7db;animation:ev-arrive .25s ease-out}.ev-head{position:relative;flex-shrink:0;padding:21px 70px 12px 26px;background:linear-gradient(110deg,#fff8e9,#f3d7a7);border-bottom:2px solid #d4ab70}.ev-head:before{content:'';position:absolute;left:25px;right:70px;top:0;height:8px;background:repeating-linear-gradient(100deg,#386344 0 12px,#628151 13px 21px,#bc8b39 22px 25px);border-radius:0 0 100% 100%}.ev-head h2{font:700 30px/1.2 Georgia,serif;margin:0 0 9px;color:#754524;text-shadow:0 1px #fff}.ev-close{position:absolute;top:16px;right:17px;display:grid;place-items:center;width:42px;height:42px;padding:10px;border:2px solid #be8b4d;border-radius:50%;color:#744c2c;background:linear-gradient(#fffaf0,#ecd1a6);box-shadow:0 2px 0 #b99666;cursor:pointer}.ev-close svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round}.ev-nav{display:flex;gap:8px}.ev-button{font:700 14px/1.25 system-ui;color:#604025;padding:11px 18px;min-height:38px;border:2px solid #bf8c49;border-radius:12px;background:linear-gradient(#fff7e6,#e7bc7e);box-shadow:0 2px 0 #bc945d55,inset 0 1px #fff;cursor:pointer}.ev-button:disabled{opacity:.55;cursor:default}.ev-button:not(:disabled):hover{filter:brightness(1.05)}.ev-nav .ev-button{font-size:12px;padding:5px 13px}.ev-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:22px;background:radial-gradient(ellipse at 0 0,#fffaf0,transparent 65%),linear-gradient(140deg,#faebd1,#edcfa1)}.ev-dialog button:focus-visible,.ev-sources summary:focus-visible,.ev-gift:focus-visible{outline:3px solid #3b89b2;outline-offset:3px}.ev-kicker{display:block;font-size:11px;font-weight:800;letter-spacing:1.7px;color:#a57231}.ev-cards{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}.ev-event-card{min-width:0;border:2px solid #cba16d;border-radius:22px;overflow:hidden;background:linear-gradient(#fffaf0,#f9e7c5);box-shadow:0 6px 0 #bd96624a}.ev-cover{position:relative;display:block;width:100%;height:300px;border:0;padding:0;background:#355578;cursor:pointer;overflow:hidden}.ev-cover img{width:100%;height:100%;object-fit:cover;object-position:50% 42%;transition:transform .4s}.ev-cover[data-event-id="winter-lights-2026"] img{object-position:50% 40%}.ev-cover[data-event-id="snow-flurry-2026"] img{object-position:50% 38%}.ev-cover:hover img{transform:scale(1.025)}.ev-badge{position:absolute;left:16px;top:16px;background:#fff4dcef;color:#755025;font-size:12px;font-weight:800;border:1px solid #d4ac67;border-radius:20px;padding:7px 13px;box-shadow:0 3px 8px #15263c44}.ev-badge.reward{background:#e2f0c8;color:#466d36}.ev-badge.upcoming{background:#deedf6;color:#365e7e}.ev-card-info{padding:22px}.ev-card-info h3{font:700 28px/1.12 Georgia;color:#734723;margin:8px 0 10px}.ev-card-info p{font-size:14px;color:#8b6e50;margin:10px 0 15px}.ev-timer{display:block;font-weight:700;color:#6f8791;font-size:12px;min-height:19px}.ev-total{display:block;margin:15px 0 8px;font-size:18px;color:#8d642e}.ev-meter{height:9px;border-radius:12px;overflow:hidden;border:1px solid #b89966;box-shadow:inset 0 1px 3px #60401b4d;background:#dac09a}.ev-meter i{display:block;height:100%;border-radius:inherit;background:linear-gradient(#ffed96,#d59b36);box-shadow:0 0 6px #fff2a2;transition:width .3s}.ev-card-info>.ev-button{margin-top:16px;min-width:190px}.ev-card-prize{display:flex;align-items:center;gap:10px;margin-top:14px;border-top:1px solid #e4cba4;padding-top:10px;font-size:12px;color:#90704a}.ev-card-prize img{height:57px;width:57px;object-fit:contain}.ev-hero{position:relative;height:215px;overflow:hidden;border:2px solid #c29860;border-radius:20px;background:#254e6a}.ev-hero>img{height:100%;width:100%;object-fit:cover;object-position:50% 40%}.ev-hero[data-event-id="winter-lights-2026"]>img{object-position:50% 42%}.ev-hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#102a40ee,#17384e80 45%,transparent 85%)}.ev-hero>div{position:absolute;left:27px;top:22px;width:42%;z-index:1;color:#fff0cf}.ev-hero .ev-kicker{color:#e4c288}.ev-hero h3{font:700 32px/1.12 Georgia;margin:9px 0}.ev-hero p{font-size:13px;line-height:1.5;max-width:360px;color:#f5dfbc}.ev-hero .ev-timer{color:#f9e4b4}.ev-progress-title{display:flex;justify-content:space-between;align-items:center;margin:16px 0 9px;gap:10px;font-size:17px}.ev-progress-title>span{font-size:12px;color:#91714c}.ev-season-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:18px}.ev-chapters{position:relative;display:grid;gap:10px}.ev-chapters:before{content:'';position:absolute;left:53px;top:35px;bottom:35px;width:3px;background:#e3bc61;box-shadow:0 0 9px #f6d98b}.ev-chapter{position:relative;display:flex;gap:12px;align-items:center;background:#fff7e8;border:1px solid #dfbd8b;border-radius:15px;padding:10px}.ev-chapter-art{position:relative;flex:0 0 85px;display:grid;place-items:center;align-self:stretch;padding:8px;border-radius:18px;background:radial-gradient(circle at 50% 35%,#fff8eb 0,#f5e2bf 72%,#efd5a6 100%);border:1px solid #e1bf85}.ev-chapter-art>img{width:78px;height:78px;object-fit:contain;filter:drop-shadow(0 3px 3px #78532844)}.ev-chapter-art[data-art-type="scene"]>img{width:92px;height:68px}.ev-chapter-art[data-art-type="scene"][data-chapter-id="village"]>img{width:94px;height:70px}.ev-chapter-art>span{position:absolute;left:0;bottom:0;border:2px solid #dfbd74;border-radius:50%;width:22px;height:22px;display:grid;place-items:center;font:700 12px Georgia;background:#fff4d5}.ev-chapter>div:nth-child(2){flex:1;min-width:0}.ev-chapter small{font-size:10px;color:#ac854f}.ev-chapter h4{font:700 18px/1.2 Georgia;margin:2px 0 4px}.ev-chapter p{font-size:11px;line-height:1.4;color:#997e5a;margin:3px 0 7px}.ev-chapter .ev-button{font-size:11px;min-height:30px;padding:7px 10px}.ev-chapter.ev-complete{border-color:#c6a34f;background:linear-gradient(100deg,#fff8e5,#fae7b4)}.ev-complete .ev-chapter-art>span{background:#d8e9bd;border-color:#99b677;color:#496a39}.ev-lantern-game{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:3px ridge #c2965c;border-radius:20px;padding:25px 18px;background:linear-gradient(#eff6f4dc,#d6e8e8e8),url('assets/p0/clearing.webp') center/cover;box-shadow:inset 0 0 0 3px #fff6}.ev-lantern-game h3{font:700 29px Georgia;color:#4d6670;margin:8px 0}.ev-game-copy{font-size:13px;max-width:370px;color:#6c8083}.ev-lanterns{display:flex;align-items:flex-end;justify-content:center;gap:5px;width:100%;padding:20px 0 8px}.ev-lantern{position:relative;flex:1;min-width:44px;max-width:100px;height:145px;border:0;border-radius:40px;background:transparent;padding:0;cursor:pointer;transition:filter .16s,transform .16s;filter:brightness(.52) saturate(.7)}.ev-lantern>img{width:100%;height:125px;object-fit:contain;pointer-events:none}.ev-lantern>span{display:block;font:700 13px Georgia;color:#526c73;padding-top:3px}.ev-lantern:nth-child(2)>img{filter:hue-rotate(140deg)}.ev-lantern:nth-child(3)>img{filter:hue-rotate(290deg)}.ev-lantern:nth-child(4)>img{filter:hue-rotate(55deg)}.ev-lantern:nth-child(5)>img{filter:hue-rotate(195deg)}.ev-lantern.ev-lit{filter:brightness(1.4) drop-shadow(0 0 15px #ffdf74);transform:translateY(-5px)}.ev-lantern:not(:disabled):hover{filter:brightness(1.1);transform:translateY(-3px)}.ev-game-phase{min-height:24px;font-weight:700;color:#627f83;margin:12px 0 5px;font-size:15px}.ev-game-daily{font-size:12px;color:#7b8c86;margin:6px 0 15px}.ev-reset{display:block;margin-top:11px;font-size:11px;color:#86948c}.ev-reward-track{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:20px;padding:16px 10px;background:#eddbb8;border:1px solid #c3a16e;border-radius:18px}.ev-track-item{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px}.ev-track-item>img{height:82px;width:100px;object-fit:contain;object-position:center;filter:drop-shadow(0 4px 4px #78563244)}.ev-track-item>img[src*="money-star"]{width:47px;height:56px;margin-block:13px}.ev-track-item small{font-size:10px;color:#a07943}.ev-track-item strong{font:700 15px/1.2 Georgia;color:#7a552e}.ev-track-item>span{font-size:10px;color:#8c7759}.ev-received>span{font-weight:800;color:#5c7d43}.ev-sources{margin-top:16px;border:1px solid #d7b78a;border-radius:12px;padding:11px 15px;background:#fff7e5;font-size:12px}.ev-sources summary{cursor:pointer;font-weight:700;color:#8b6a39}.ev-sources p{margin:8px 0;color:#8b775d}.ev-status{display:flex;gap:12px;align-items:center;justify-content:space-between;min-height:22px;margin-top:15px;color:#8b5d33;font-size:12px}.ev-status .ev-button{font-size:11px;padding:8px}.ev-empty{text-align:center;padding:50px 20px;color:#947854}.ev-mini-hero{display:grid;grid-template-columns:1.1fr 1fr;overflow:hidden;border:2px solid #c59c67;border-radius:23px;background:#fff6df}.ev-mini-hero>img{width:100%;height:380px;object-fit:cover;object-position:32% 50%}.ev-mini-hero>div{padding:35px;align-self:center}.ev-mini-hero h3{font:700 32px Georgia;margin:12px 0;color:#845333}.ev-mini-hero p{font-size:14px;color:#997a57;line-height:1.6}.ev-mini-stages{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:20px 0}.ev-mini-stages>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border:1px solid #d8b57b;border-radius:13px;background:#fff4de;padding:13px}.ev-mini-stages>div>span{display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;border-radius:50%;border:2px solid #d1aa6c;color:#a6793d;font:700 17px Georgia;background:#f7e3ba}.ev-mini-stages strong{font:700 16px Georgia;flex:1}.ev-mini-stages small{color:#9c7b51}.ev-mini-stages .ev-found-stage{background:#e3edce;border-color:#a8bd7f}.ev-mini-prize{display:flex;align-items:center;gap:20px;margin-top:20px;padding:15px 25px;border-radius:18px;background:#f0debb;border:1px solid #d1ad74;font-size:14px;color:#917046}.ev-mini-prize>img{width:110px;height:110px;object-fit:contain}.ev-prize-reveal{display:flex;align-items:center;flex-direction:column;text-align:center;background:radial-gradient(ellipse,#fff7df,#f1d7ab);border:2px solid #d5ad68;border-radius:23px;padding:30px}.ev-prize-reveal>img{height:290px;width:290px;object-fit:contain;filter:drop-shadow(0 10px 15px #bd934b60);animation:ev-arrive .4s ease-out}.ev-prize-reveal h3{font:700 34px Georgia;color:#855329;margin:15px 0 5px}.ev-prize-reveal p{max-width:470px;font-size:15px;color:#93734b}.ev-claimed-seal{border:2px solid #b0bd78;color:#628545;background:#e8edcf;padding:9px 16px;border-radius:16px;margin:5px 0 13px}.ev-help{font-size:12px;color:#8c785d}.ev-world{position:absolute;inset:0;z-index:37;pointer-events:none}.ev-world-light{position:absolute;transform:translate(-50%,-50%);pointer-events:none;background:radial-gradient(ellipse,#fff9c2a0,#f3bf4a55 25%,transparent 72%);mix-blend-mode:screen;animation:ev-twinkle 3.6s ease-in-out infinite;border-radius:50%}.ev-gift{position:absolute;display:grid;place-items:center;transform:translate(-50%,-75%);background:transparent;border:0;border-radius:13px;padding:0;pointer-events:auto;cursor:pointer;filter:drop-shadow(0 0 7px #fff3aa)}.ev-gift img{height:100%;width:100%;object-fit:contain;pointer-events:none}.ev-gift-ghost{position:fixed;pointer-events:none;z-index:77000;object-fit:contain;animation:ev-found .6s ease-out forwards}.ev-huntbar{position:absolute;z-index:6000;left:50%;top:77px;transform:translateX(-50%);display:flex;align-items:center;gap:11px;background:#fff3dbef;border:2px solid #ca9c54;border-radius:17px;padding:6px 10px;color:#785027;font:13px system-ui;white-space:nowrap;box-shadow:0 3px 9px #0c26444a}.ev-huntbar[hidden]{display:none}.ev-huntbar img{width:30px;height:30px;object-fit:contain}.ev-huntbar small{color:#a28155;font-size:10px}.ev-hunt-exit{background:#ecd1a4;border:1px solid #bc985f;border-radius:9px;color:#77512b;font:700 11px system-ui;padding:6px 9px;cursor:pointer}.events-hunting .ref-dock,.events-hunting .ref-develop{transform:translateY(170%);pointer-events:none}.ev-toast{position:fixed;left:50%;bottom:115px;transform:translateX(-50%);max-width:min(520px,85vw);z-index:78000;border:2px solid #d3a75d;background:linear-gradient(#fff8e6,#eed2a3);border-radius:16px;padding:14px 23px;box-shadow:0 8px 25px #17314c55;color:#80572c;font:700 14px system-ui;text-align:center;pointer-events:none}.ev-toast[hidden]{display:none}.ev-burst{position:fixed;left:50%;top:50%;z-index:79000;pointer-events:none}.ev-burst>i{position:absolute;width:7px;height:7px;background:#fff4b8;border-radius:1px;box-shadow:0 0 8px #ffe387;animation:ev-spark 1.2s ease-out forwards;transform:rotate(var(--angle))}.ev-tree-burst:after{content:'';position:absolute;left:-120px;top:-70px;width:240px;height:140px;border-radius:50%;border:3px solid #ffeab4b0;animation:ev-wave 1.2s ease-out forwards}.ref-rail button[data-event-notice=true]:after{content:'';position:absolute;right:3px;top:3px;width:clamp(18px,1.7vw,21px);height:clamp(18px,1.7vw,21px);border:0;border-radius:0;pointer-events:none;background:radial-gradient(circle at 35% 26%,#ff9397 0%,#ff3446 34%,#d7082a 76%,#a90020 100%);clip-path:polygon(50% 0,60% 33%,78% 12%,68% 41%,100% 50%,68% 59%,78% 88%,60% 67%,50% 100%,40% 67%,22% 88%,32% 59%,0 50%,32% 41%,22% 12%,40% 33%);filter:drop-shadow(0 0 1px #fffaf0) drop-shadow(0 0 2px #fffaf0) drop-shadow(0 0 5px #ff3550);animation:meadow-spark-pulse 2.4s ease-in-out infinite alternate}.ed-tree-garland[data-garland="event_radiance_garland_2026"]{filter:drop-shadow(0 0 2px #ffd660)}.ed-tree-garland[data-garland="event_radiance_garland_2026"] circle{animation:ev-garland 2.8s ease-in-out infinite}.ed-tree-garland[data-garland="event_radiance_garland_2026"] circle:nth-child(3n){animation-delay:-.9s}.ed-tree-garland[data-garland="event_radiance_garland_2026"] circle:nth-child(3n+1){animation-delay:-1.8s}
@keyframes ev-arrive{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}@keyframes ev-found{to{transform:translateY(-45px) scale(.5);opacity:0;filter:brightness(2)}}@keyframes ev-twinkle{0%,100%{opacity:.5}50%{opacity:1}}@keyframes ev-garland{0%,100%{opacity:.4}50%{opacity:1;fill:#fffac5}}@keyframes ev-spark{to{transform:rotate(var(--angle)) translateX(var(--distance)) scale(0);opacity:0}}@keyframes ev-wave{from{opacity:.9;transform:scale(.3)}to{opacity:0;transform:scale(2.3)}}
@media(max-width:1100px){.ev-body{padding:16px}.ev-cover{height:230px}.ev-card-info{padding:17px}.ev-card-info h3{font-size:25px}.ev-season-grid{gap:12px}.ev-chapter{gap:6px;padding:8px}.ev-chapter-art{flex-basis:64px}.ev-chapter-art>img{width:60px;height:68px}.ev-chapter h4{font-size:16px}.ev-lantern-game{padding:20px 12px}.ev-lantern{height:125px}.ev-lantern>img{height:105px}.ev-mini-hero>div{padding:23px}.ev-mini-hero>img{height:330px}}
@media(max-height:550px),(max-width:800px){.ev-overlay{padding:6px}.ev-dialog{max-height:97dvh;width:98vw;border-width:5px;border-radius:21px}.ev-head{padding:12px 59px 9px 18px}.ev-head h2{font-size:22px;margin-bottom:6px}.ev-close{width:33px;height:33px;top:10px;right:12px;padding:8px}.ev-nav .ev-button{font-size:10px;min-height:26px;padding:4px 9px}.ev-body{padding:12px}.ev-cards{gap:12px}.ev-cover{height:180px}.ev-card-info{padding:13px}.ev-card-info h3{font-size:23px}.ev-card-info p{font-size:12px}.ev-card-info .ev-kicker{font-size:9px}.ev-card-info>.ev-button{font-size:12px;min-width:150px}.ev-hero{height:160px}.ev-hero>div{left:17px;top:13px;width:48%}.ev-hero h3{font-size:23px}.ev-hero p{font-size:11px}.ev-hero .ev-kicker,.ev-hero .ev-timer{font-size:9px}.ev-season-grid{grid-template-columns:1fr}.ev-chapters{grid-template-columns:repeat(2,1fr);gap:8px}.ev-chapters:before{display:none}.ev-lanterns{max-width:460px;padding-top:10px}.ev-lantern{height:120px;max-width:85px}.ev-lantern>img{height:100px}.ev-reward-track{gap:6px;padding:12px 6px}.ev-track-item>img{height:65px;width:75px}.ev-track-item strong{font-size:13px}.ev-mini-hero>img{height:240px}.ev-mini-hero>div{padding:17px}.ev-mini-hero h3{font-size:25px}.ev-mini-hero p{font-size:12px}.ev-mini-prize{font-size:12px;padding:12px}.ev-mini-prize img{width:80px;height:80px}.ev-mini-stages{gap:7px;margin:12px 0}.ev-mini-stages>div{padding:9px;gap:6px}.ev-mini-stages strong{font-size:13px}.ev-prize-reveal{padding:20px}.ev-prize-reveal>img{width:180px;height:180px}.ev-prize-reveal h3{font-size:26px}.ev-prize-reveal p{font-size:13px}.ev-huntbar{top:36px;font-size:10px;padding:3px 6px;gap:7px}.ev-huntbar img{width:24px;height:24px}.ev-huntbar small{font-size:8px}.ev-hunt-exit{font-size:9px;padding:5px 6px}.ev-toast{bottom:65px;font-size:12px;padding:9px 14px}}
@media(max-width:600px){.ev-cards,.ev-chapters,.ev-mini-hero,.ev-mini-stages{grid-template-columns:1fr}.ev-mini-hero>img{height:200px}.ev-hero>div{width:70%}.ev-reward-track{grid-template-columns:repeat(2,1fr)}}
@media(prefers-reduced-motion:reduce){.ev-dialog,.ev-prize-reveal>img,.ev-world-light,.ed-tree-garland[data-garland="event_radiance_garland_2026"] circle,.ev-gift-ghost{animation:none}.ev-lantern,.ev-cover>img,.ev-meter>i{transition:none}.ev-lantern.ev-lit{transform:none}.ev-burst{display:none}}
.ev-dialog{animation:none}.ev-overlay.ev-opening .ev-dialog{animation:ev-arrive .25s ease-out}
@media(prefers-reduced-motion:reduce){.ev-overlay.ev-opening .ev-dialog{animation:none}}

/* A single published event occupies the whole event-center grid. */
.ev-cards:has(> .ev-event-card:only-child){grid-template-columns:minmax(0,1fr)}

/* Full-picture event artwork: never crop characters to fill a wide banner. */
.ev-cover[data-event-id="winter-lights-2026"]{
  height:clamp(310px,39vw,530px);
  background:radial-gradient(ellipse at 50% 55%,#597996 0%,#244663 70%,#162b45 100%);
}
.ev-cover[data-event-id="winter-lights-2026"] img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
}
.ev-cover[data-event-id="winter-lights-2026"]:hover img{transform:none}

.ev-hero[data-event-id="winter-lights-2026"]{
  display:grid;
  grid-template-columns:minmax(0,36%) minmax(0,64%);
  grid-template-areas:"caption illustration";
  align-items:center;
  height:clamp(310px,29vw,440px);
  background:linear-gradient(110deg,#102c44 0%,#1b4768 52%,#335b7a 100%);
}
.ev-hero[data-event-id="winter-lights-2026"]:after{display:none}
.ev-hero[data-event-id="winter-lights-2026"]>img{
  grid-area:illustration;
  display:block;
  width:100%;
  height:100%;
  min-width:0;
  object-fit:contain;
  object-position:center;
}
.ev-hero[data-event-id="winter-lights-2026"]>div{
  grid-area:caption;
  position:relative;
  inset:auto;
  width:auto;
  min-width:0;
  padding:clamp(15px,2.6vw,36px);
  align-self:center;
  z-index:1;
}
.ev-hero[data-event-id="winter-lights-2026"] h3{
  font-size:clamp(23px,2.5vw,37px);
}
.ev-hero[data-event-id="winter-lights-2026"] p{
  font-size:clamp(12px,1.1vw,15px);
}
@media(max-width:700px){
  .ev-cover[data-event-id="winter-lights-2026"]{
    height:auto;
    aspect-ratio:1672 / 941;
  }
  .ev-hero[data-event-id="winter-lights-2026"]{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    height:auto;
    min-height:0;
  }
  .ev-hero[data-event-id="winter-lights-2026"]>img{
    order:0;
    width:100%;
    height:auto;
    aspect-ratio:1672 / 941;
    object-fit:contain;
  }
  .ev-hero[data-event-id="winter-lights-2026"]>div{
    order:1;
    padding:18px;
  }
  .ev-hero[data-event-id="winter-lights-2026"] h3{margin:6px 0 9px}
}
