/* Dedicated story event presentation, namespaced to avoid changing existing website. */
.story-event-home{padding:24px 0 10px;background:linear-gradient(180deg,#12261b,#07170f);}
.story-home-banner{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(330px,1fr);border:1px solid #bfaa7590;border-radius:20px;overflow:hidden;box-shadow:0 18px 55px #0008;background:linear-gradient(115deg,#163344,#112a28 75%)}
.story-home-art{min-height:330px;overflow:hidden}.story-home-art img{width:100%;height:100%;object-fit:cover;display:block}
.story-home-copy{padding:32px 35px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:13px}
.story-home-copy h2{margin:0;font-size:clamp(1.7rem,3.2vw,2.8rem);color:#ffe6ae}
.story-home-copy p{line-height:1.65;color:#d4dfdf;font-size:1.04rem;margin:0}
.story-eyebrow{font-size:.76rem;letter-spacing:.14em;text-transform:uppercase;color:#d9c58e;font-weight:800}
.story-home-facts{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 9px;font-size:.8rem;color:#d7e6e5}.story-home-facts span{background:#173533;border:1px solid #dbca8a36;border-radius:99px;padding:6px 11px}
.story-public-page{padding:50px 0 90px;min-height:70vh;background:radial-gradient(ellipse at top,#1a342d 0%,transparent 55%)}
.story-page-intro{text-align:center;padding:0 10px 35px}.story-page-intro h1{font-size:clamp(1.8rem,5vw,3.4rem);color:#f8dc9d;margin:10px 0}.story-page-intro p{color:#bdccc4}
.story-list-section{margin:0 0 42px}.story-list-section>h2{color:#f5dda7;margin:0 0 16px}
.story-event-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:19px}
.story-list-card{background:linear-gradient(145deg,#1a362c,#102319);border:1px solid #a88f6255;border-radius:16px;overflow:hidden;display:flex;flex-direction:column}
.story-list-card>img{width:100%;height:185px;object-fit:cover}.story-list-card>div{padding:21px;display:flex;flex-direction:column;gap:10px;flex:1}
.story-list-card h3{color:#ffe4af;margin:0}.story-list-card p{line-height:1.55;margin:0;flex:1}.story-list-card a{align-self:flex-start}.story-list-card span:not(.story-eyebrow){font-size:.82rem;color:#aac1b6}
.story-event-heading{min-height:430px;position:relative;border-radius:20px;overflow:hidden;border:1px solid #bfa66e80;background:linear-gradient(120deg,#1c435b,#102923)}
.story-event-cover{width:100%;height:430px;object-fit:cover;position:absolute;inset:0;opacity:.85}
.story-event-heading:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#0b1a1ae8,#0b172870 70%,#101b170d)}
.story-title-layer{position:absolute;inset:auto 0 0;padding:35px;z-index:1;max-width:700px;text-shadow:0 2px 10px #000}.story-title-layer h1{color:#ffe4af;font-size:clamp(2rem,5vw,3.8rem);margin:9px 0}.story-title-layer h2{font-weight:600;color:#e2eff1;margin:0 0 13px;font-size:1.18rem}.story-title-layer p{color:#e0e9e6}
.story-status-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0 32px}
.story-status-row>div{display:flex;flex-direction:column;gap:7px;background:#142e24;border:1px solid #a5895844;border-radius:12px;padding:16px}
.story-status-row strong{color:#f6dfa2;font-size:.85rem}.story-status-row span{color:#d5e3d9;font-size:.94rem}
.story-prose{line-height:1.8;white-space:pre-line;color:#dcece4}.story-introduction{background:#12291f;border:1px solid #927c5149;border-radius:15px;padding:25px;margin-bottom:25px}
.story-prose h2{color:#ffe0a2;margin:0 0 9px}.story-countdown{border:1px solid #d1bb8777;background:#203c38;padding:22px;border-radius:12px;margin:22px 0;color:#f3d6a6}
.story-community{border:1px solid #a6cddd59;background:linear-gradient(145deg,#193951,#112d31);padding:24px;border-radius:17px;margin:28px 0}
.story-community>p{color:#d9e8df;line-height:1.6}.story-community-score{font-weight:800;color:#fff0bf;margin:16px 0;font-size:1.12rem}
.story-section-heading{display:flex;align-items:center;justify-content:space-between;gap:13px;flex-wrap:wrap;margin-bottom:15px}
.story-section-heading h2{color:#f5dba0;margin:0}.story-section-heading>span{font-size:.9rem;color:#bdd5c5}
.story-track{height:11px;border-radius:100px;overflow:hidden;background:#091d18;border:1px solid #6f8d7855}
.story-track span{height:100%;display:block;border-radius:100px;background:linear-gradient(90deg,#68b5dc,#ccdbff,#fee1a0);transition:width .25s}
.story-milestones{display:grid;grid-template-columns:repeat(auto-fit,minmax(225px,1fr));gap:11px;margin-top:14px}
.story-milestone{background:#102b2bd9;border:1px solid #ffffff30;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:12px}
.story-milestone div{display:flex;flex-direction:column;gap:6px}.story-milestone b{color:#f5daa6}.story-milestone small{font-size:.8rem;line-height:1.5;color:#bfcfcf}
.story-milestone-pill{font-size:.72rem;color:#e4d5b0;border:1px solid #a9a18c7b;padding:4px 9px;align-self:flex-start;border-radius:40px}
.story-milestone.is-earned{border-color:#a8dbaa}.story-milestone.is-earned .story-milestone-pill{background:#27633a;color:#edffe7}
.story-chapters{margin-top:38px}.story-chapter{display:grid;grid-template-columns:minmax(210px,.55fr) minmax(0,1fr);border:1px solid #b5a06a55;border-radius:19px;overflow:hidden;margin:22px 0;background:linear-gradient(130deg,#17362c,#0d251e)}
.story-chapter-image{width:100%;height:100%;min-height:450px;object-fit:cover}.story-chapter-body{padding:28px}.story-chapter h3{color:#ffe2ab;font-size:1.55rem;margin:9px 0}.story-chapter h4{color:#eccd91;margin:25px 0 12px}
.story-chapter-locked{opacity:.8;background:#182c28}.story-chapter .story-dates{color:#b4c7c3;font-size:.82rem}
.story-score{color:#f8deb0;font-weight:800;font-size:1.2rem}
.story-tasks-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:10px}
.story-task{background:#0e201cdd;border:1px solid #ffffff20;padding:14px;border-radius:12px}.story-task-title{display:flex;justify-content:space-between;gap:8px;align-items:center}.story-task-title strong{color:#e9dfbc}.story-task-title span{font-size:.7rem;color:#cbdbd3}
.story-task p{font-size:.83rem;color:#c6d4d0;line-height:1.5}.story-task-meta{display:flex;justify-content:space-between;gap:10px;margin-top:7px;font-size:.75rem;color:#dfd7b9}
.story-return{display:flex;gap:12px;flex-wrap:wrap;margin:30px 0}.story-error{padding:25px;border-radius:13px;color:#ffcbbe;background:#492c2a}
.story-preview-note{padding:14px 20px;background:#263e43;border:1px solid #aac9df77;border-radius:10px;color:#e8f5fb;margin-bottom:16px}
.story-profile-history{margin:30px auto;background:#142a22;border:1px solid #bba26550;border-radius:16px;padding:24px}
.story-profile-history>h2{color:#ffe0a0}.story-profile-history>a{margin-top:15px}
@media(max-width:850px){.story-home-banner{grid-template-columns:1fr}.story-home-art{min-height:180px;max-height:250px}.story-chapter{grid-template-columns:1fr}.story-chapter-image{height:220px;min-height:0}.story-status-row{grid-template-columns:1fr}}

.story-leaderboard{margin-top:24px;padding:17px;background:#081f28a6;border:1px solid #a5bfd257;border-radius:13px}
.story-leaderboard h3{color:#ffe0ab;margin:0 0 12px}.story-leaderboard>div{display:flex;justify-content:space-between;gap:13px;border-bottom:1px solid #ffffff1b;padding:7px 0;font-size:.88rem}.story-leaderboard>div strong{color:#f8d797}

/* Keep unreleased Christmas chapters visually secret until their story begins. */
.story-chapter-concealed{min-height:450px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:13px;padding:24px;text-align:center;background:radial-gradient(circle at 50% 35%,#426071 0%,#1b3640 35%,#0a1d26 85%);color:#e6d7b9}
.story-chapter-concealed span{font-size:4.4rem;color:#c3d6ed;text-shadow:0 0 22px #8ab2dc}
.story-chapter-concealed small{max-width:230px;font-size:.9rem;line-height:1.5;color:#c8d3d8}
@media(max-width:850px){.story-chapter-concealed{min-height:220px}}

/* Long-form chapter narratives: chapter-specific and hidden until released. */
.story-tale{margin:19px 0 25px;border:1px solid #c9aa744d;background:linear-gradient(155deg,#1b3029,#10241f);border-radius:14px;overflow:hidden}
.story-tale>summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;padding:18px 20px;color:#ffe3ae;font-weight:750;font-size:1.03rem}
.story-tale>summary::-webkit-details-marker{display:none}
.story-tale>summary::before{content:'▸';margin-right:6px;color:#e8c98b}
.story-tale[open]>summary::before{content:'▾'}
.story-tale>summary span{font-weight:400;color:#b7cfc3;font-size:.8rem}
.story-tale>summary:hover,.story-tale>summary:focus-visible{background:#263d3280}
.story-tale-text{padding:8px clamp(19px,3vw,34px) 24px;border-top:1px solid #bea47933;max-width:84ch;margin:auto;color:#e7e9df;font-family:Georgia,'Times New Roman',serif;font-size:clamp(1rem,1.5vw,1.12rem);line-height:1.88;overflow-wrap:anywhere}
.story-tale-text p,.story-intro-paragraphs p{margin:15px 0;white-space:normal}
.story-tale-text p:first-child{font-weight:700;color:#f8dfac;font-size:1.16em;margin-top:11px}
.story-intro-paragraphs{max-width:83ch;line-height:1.85}
.story-no-tale{color:#c5d7c9;font-style:italic}
@media(max-width:600px){.story-tale>summary{padding:14px}.story-tale-text{padding:7px 16px 21px}}


/* Announcement-only chapter cosmetic showcase. */
.story-cosmetic-preview{margin:28px 0;padding:clamp(18px,3vw,30px);border:1px solid #c1a56b85;border-radius:20px;background:radial-gradient(ellipse at 50% 0%,#334b37 0%,transparent 62%),linear-gradient(145deg,#172f28,#0d211c);box-shadow:0 14px 35px #0005}
.story-cosmetic-heading{text-align:center;max-width:760px;margin:0 auto 22px}
.story-cosmetic-heading h2{color:#ffe4ac;font-size:clamp(1.45rem,3vw,2.2rem);margin:8px 0 10px;line-height:1.25}
.story-cosmetic-heading p,.story-cosmetic-note{color:#c9dcd2;line-height:1.55;margin:0}
.story-cosmetic-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:14px;align-items:stretch}
.story-cosmetic-card{display:flex;flex-direction:column;min-width:0;border:1px solid #bda66b69;border-radius:15px;overflow:hidden;background:linear-gradient(160deg,#213c33,#112720);box-shadow:0 8px 18px #0004}
.story-cosmetic-art{position:relative;isolation:isolate;display:grid;place-items:center;aspect-ratio:4/3;background:radial-gradient(ellipse,#405c49,#142a25 72%);border-bottom:1px solid #bda66b40;overflow:hidden}
.story-cosmetic-icon{font-size:clamp(2.6rem,6vw,4rem);line-height:1;color:#ffe4ac;filter:drop-shadow(0 0 14px #e7c46b55)}
.story-cosmetic-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;padding:12px;box-sizing:border-box;background:#172e28}
.story-cosmetic-landscape .story-cosmetic-art img{object-fit:cover;padding:0}
.story-cosmetic-copy{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:16px;flex:1;overflow-wrap:anywhere}
.story-cosmetic-chapter{font-size:.76rem;font-weight:800;color:#d9c58e;line-height:1.4}
.story-cosmetic-type{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:#b8d8ce;background:#10251f;border:1px solid #93b9aa4a;border-radius:99px;padding:4px 9px}
.story-cosmetic-copy h3{margin:2px 0 8px;font-size:1.14rem;line-height:1.35;color:#ffe5af}
.story-cosmetic-lock{margin-top:auto;color:#cbdcd3;font-size:.78rem;line-height:1.4}
.story-cosmetic-note{text-align:center;font-size:.82rem;margin:18px auto 0;max-width:740px}
@media(max-width:480px){.story-cosmetic-grid{grid-template-columns:1fr}.story-cosmetic-art{aspect-ratio:16/10}.story-cosmetic-preview{padding:16px}.story-cosmetic-copy{padding:14px}}

/* Render real equipped avatar frames in announcement cards. */
.story-cosmetic-frame-art{background:radial-gradient(ellipse at center,#41666e,#182f30 68%,#132721);overflow:hidden;padding:20px}
.story-cosmetic-frame-art .story-frame-avatar{width:clamp(84px,12vw,124px);height:clamp(84px,12vw,124px);padding:7px;border-radius:22px;max-width:100%;flex-shrink:0}
.story-cosmetic-frame-art .story-frame-avatar img{position:relative;inset:auto;display:block;width:100%;height:100%;padding:0;object-fit:cover;border-radius:15px;image-rendering:pixelated;background:#12221b}
