/* Illustrated Journey journal. No room, film or in-match selectors are changed. */
body:has(#story-dialog.story-entry-art-v1[open]){overflow:hidden!important}
#story-dialog.story-entry-art-v1[open]{--journal-ink:#153e52;--journal-gold:#c7973c;position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:10px max(22px,4vw) 26px;display:flex;overflow:hidden;border:0;border-radius:0;background:#3d9dba url('../assets/arena-art-v1/village.webp') center/cover no-repeat;box-shadow:none;color:var(--journal-ink);isolation:isolate}
#story-dialog.story-entry-art-v1::before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(#0e52611a,#12556b33 65%,#123c4d55);pointer-events:none}
#story-dialog.story-entry-art-v1 *{box-sizing:border-box}
#story-dialog.story-entry-art-v1 .story-shell{width:100%;max-width:1500px;margin:auto;flex:1;height:100%;min-height:0;gap:0}
#story-dialog.story-entry-art-v1 .story-head{position:relative;flex:none;display:flex;align-items:flex-end;flex-wrap:nowrap;gap:18px;min-height:128px;padding:0 11px 12px;z-index:5}
#story-dialog.story-entry-art-v1 .story-entry-title{position:absolute;left:47%;top:-26px;transform:translateX(-50%);width:min(565px,47%);height:auto;aspect-ratio:1200/388;display:grid;place-items:center;pointer-events:none}
#story-dialog.story-entry-art-v1 .story-entry-title>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 5px 3px #163a4d80);z-index:-1}
#story-dialog.story-entry-art-v1 .story-entry-title h2{position:absolute;left:37%;top:43%;width:49%;margin:0;text-align:center;font:800 clamp(30px,3.05vw,45px)/1 'Baloo 2',sans-serif;color:#fff2bd;letter-spacing:-.9px;text-shadow:0 3px #583113,0 0 3px #653b1d;white-space:nowrap}
#story-dialog.story-entry-art-v1 .story-entry-peek{position:absolute;right:340px;top:19px;width:110px;height:96px;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 4px 2px #15495b66);pointer-events:none}
#story-dialog.story-entry-art-v1 .story-entry-intro{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:4px;z-index:4}
#story-dialog.story-entry-art-v1 .story-head .eyebrow{font-size:11px;letter-spacing:1.6px;color:#fff9d6;text-shadow:0 1px 3px #113b52,0 1px 4px #113b52}
#story-dialog.story-entry-art-v1 .story-entry-prologue{position:relative}
#story-dialog.story-entry-art-v1 .story-entry-prologue summary{display:flex;align-items:center;gap:18px;min-height:44px;padding:8px 20px;border:2px solid #ffe7a4;border-radius:13px;background:linear-gradient(#fffce6,#f7dda0);box-shadow:0 3px #8d682c,inset 0 2px #fff;color:#64411e;list-style:none;cursor:pointer;font:900 14px/1.2 'Nunito Sans',sans-serif}
#story-dialog.story-entry-art-v1 .story-entry-prologue summary:after{content:'›';font-size:24px;line-height:1}
#story-dialog.story-entry-art-v1 .story-entry-prologue[open] summary:after{transform:rotate(90deg)}
#story-dialog.story-entry-art-v1 .story-entry-prologue summary::-webkit-details-marker{display:none}
#story-dialog.story-entry-art-v1 .story-entry-prologue .story-prologue{display:block;position:absolute;left:0;top:calc(100% + 8px);width:min(460px,calc(100vw - 52px));max-height:55dvh;overflow:auto;margin:0;padding:20px 22px;border:3px solid #e4b453;border-radius:15px;background:#fff6d9;box-shadow:0 8px 22px #173b5480;font-size:14px;line-height:1.6;color:#315a60}
#story-dialog.story-entry-art-v1 .story-prologue-inline{display:none}
#story-dialog.story-entry-art-v1 .story-head-side{position:relative;display:flex;align-items:flex-end;gap:5px;margin-left:auto;margin-right:52px;z-index:3}
#story-dialog.story-entry-art-v1 .story-progress{margin:0 2px;padding:5px 15px;border:1px solid #f9e6a5;border-radius:12px 12px 0 0;background:#fff7dceF;box-shadow:0 1px #8b7839;color:#23505e;font-size:12px;font-weight:900;line-height:1.2}
#story-dialog.story-entry-art-v1 .story-tabs{gap:8px}
#story-dialog.story-entry-art-v1 .story-tabs button{min-height:45px;padding:8px 19px;border:2px solid #ffe5a4;border-radius:19px;background:linear-gradient(#fff9e7,#dcc99f);box-shadow:0 3px #896a33,inset 0 2px #fff;color:#345567;font-size:14px;font-weight:900}
#story-dialog.story-entry-art-v1 .story-tabs button[aria-selected=true]{border-color:#fff1a1;outline:2px solid #b78525;background:linear-gradient(#12bbd1,#047089);box-shadow:0 3px #765422,inset 0 2px #adffff;color:#fffbea}
#story-dialog.story-entry-art-v1>.dialog-close{position:absolute;right:max(18px,3vw);top:17px;z-index:8;display:grid;place-items:center;width:50px;height:50px;min-height:44px;padding:0;border:3px solid #fff1a2;outline:2px solid #ad7a28;border-radius:50%;background:linear-gradient(#21d2da,#007591);box-shadow:inset 0 3px #b7fff0,0 4px #705323;color:#fffceb;font:800 38px/1 'Nunito Sans',sans-serif}
#story-dialog.story-entry-art-v1 .story-body{position:relative;display:grid;grid-template-columns:minmax(0,.43fr) minmax(0,.57fr);gap:16px;min-height:0;flex:1;padding:17px 15px 15px;border:7px solid transparent;border-image:url('../assets/social-art-v2/frame.webp') 195 170/38px/7px stretch;border-radius:25px;background:#fff0c9;box-shadow:0 7px 0 #2d746a80,0 15px 35px #143c5370;overflow:hidden}
#story-dialog.story-entry-art-v1 .story-map{display:flex;flex-direction:column;gap:13px;min-width:0;min-height:0;padding:1px 9px 7px 1px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b58b45 #f7e8bb}
#story-dialog.story-entry-art-v1 .story-chapter{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:space-between;flex:none;min-height:225px;padding:0;border:3px solid #dfb454;border-radius:19px;background:#b3dacc;box-shadow:0 3px #a17d39,inset 0 0 0 2px #fff5c8;overflow:hidden}
#story-dialog.story-entry-art-v1 .story-entry-chapter-art{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:center;pointer-events:none}
#story-dialog.story-entry-art-v1 .story-chapter:before{content:'';position:absolute;inset:0 0 auto;height:64%;z-index:-1;background:linear-gradient(90deg,#fffde9ed 0%,#fffdeabf 48%,#fffdea0a 96%);mask-image:linear-gradient(#000 70%,transparent);pointer-events:none}
#story-dialog.story-entry-art-v1 .story-chapter[data-selected=true]{border-color:#ffec9b;outline:2px solid #cb9028;outline-offset:-1px;box-shadow:0 3px #a17d39,0 0 13px #e7bd6a66}
#story-dialog.story-entry-art-v1 .story-entry-chapter-copy{padding:12px 13px 40px}
#story-dialog.story-entry-art-v1 .story-chapter header{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 9px}
#story-dialog.story-entry-art-v1 .story-chapter header small{font-size:11px;letter-spacing:.55px;color:#24525f;font-weight:900}
#story-dialog.story-entry-art-v1 .story-chapter h3{margin:0;font:800 28px/1.05 'Baloo 2',sans-serif;color:#144860;text-shadow:0 1px #ffffda}
#story-dialog.story-entry-art-v1 .story-entry-chapter-copy>p{max-width:340px;margin:6px 0 0;color:#29505b;font-size:12px;line-height:1.4;font-weight:700;text-shadow:0 1px #fff8d7}
#story-dialog.story-entry-art-v1 .story-levels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:0 7px 9px}
#story-dialog.story-entry-art-v1 .story-level{min-width:0;min-height:70px;gap:7px;padding:8px 7px;border:2px solid #dbbf84;border-radius:14px;background:linear-gradient(#fff7e2,#e9d7b7);background-image:linear-gradient(#fff7e2,#e9d7b7);box-shadow:0 3px #816e48,inset 0 2px #fff;color:#24444f;opacity:1}
#story-dialog.story-entry-art-v1 .story-level[data-state=locked]{border-style:solid;border-color:#cdb98f;background:linear-gradient(#f1e8d6,#dcd0bb)}
#story-dialog.story-entry-art-v1 .story-level[data-state=next],#story-dialog.story-entry-art-v1 .story-level[aria-pressed=true]{border-color:#fff4a6;outline:2px solid #dfab30;outline-offset:0;background:linear-gradient(#fff7ca,#ffd56c);box-shadow:0 3px #a47726,inset 0 2px #ffffdd}
#story-dialog.story-entry-art-v1 .story-level[data-state=cleared]:not([aria-pressed=true]){background:linear-gradient(#f5ffe0,#cee9b4);border-color:#aac786}
#story-dialog.story-entry-art-v1 .story-level-text{gap:2px;flex:1}
#story-dialog.story-entry-art-v1 .story-level-text small{font-size:11px;line-height:1.25;letter-spacing:0;color:#4c5042}
#story-dialog.story-entry-art-v1 .story-level-text strong{font:800 clamp(13px,1.12vw,17px)/1.1 'Baloo 2',sans-serif;color:#3d3c29;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
#story-dialog.story-entry-art-v1 .story-level-text em{font-size:11px;line-height:1.2;color:#5d594a}
#story-dialog.story-entry-art-v1 .story-level[data-state=next] .story-level-text em{color:#785015}
#story-dialog.story-entry-art-v1 .story-level[data-state=cleared] .story-level-text em{color:#2f653a}
#story-dialog.story-entry-art-v1 .story-boss-portrait{border:2px solid #fff2b1;box-shadow:0 0 0 2px #b48a3e,0 3px #806833;background:#78b8c3}
#story-dialog.story-entry-art-v1 .story-level .story-boss-portrait{width:40px;height:40px;flex:none}
#story-dialog.story-entry-art-v1 .story-level[data-state=locked] .story-boss-portrait{filter:saturate(.62);opacity:.84}
#story-dialog.story-entry-art-v1 .story-brief{display:flex;flex-direction:column;gap:0;min-width:0;min-height:0;padding:0;border:2px solid #d9b269;border-radius:19px;background:linear-gradient(110deg,#fff8db,#fffdf0 64%,#f7e5ba);box-shadow:inset 0 0 0 2px #ffffe4,0 3px #b89b61;overflow:hidden}
#story-dialog.story-entry-art-v1 .story-entry-brief-content{display:flex;flex-direction:column;gap:12px;flex:1;min-height:0;padding:8px 13px 15px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b58b45 #f7e8bb}
#story-dialog.story-entry-art-v1 .story-brief-poster{position:relative;flex:none;margin:0 -5px 0;border:3px solid #eac878;border-radius:17px;box-shadow:0 0 0 1px #a1722d,inset 0 0 0 2px #fff6b9,0 3px #bb914a;background:#186376;overflow:hidden}
#story-dialog.story-entry-art-v1 .story-brief-thumb{display:block;width:100%;height:auto;aspect-ratio:16/9;margin:0;border-radius:12px;object-fit:cover;object-position:center;box-shadow:none}
#story-dialog.story-entry-art-v1 .story-brief .story-watch{min-height:44px;padding:7px 19px;border:2px solid #ffdfa2;border-radius:18px;background:linear-gradient(#13bad9,#00648c);box-shadow:0 3px #6d4e29,inset 0 2px #72e7ea;color:#fffbea;font-size:14px;font-weight:900}
#story-dialog.story-entry-art-v1 .story-brief-poster[data-film=true] .story-watch{bottom:10px;margin:0;max-width:calc(100% - 18px);width:auto;white-space:nowrap}
#story-dialog.story-entry-art-v1 .story-watch-long:before{content:'▶';padding-right:10px;color:#fff1b6}
#story-dialog.story-entry-art-v1 .story-brief-head{display:flex;align-items:center;gap:15px;padding:2px 4px}
#story-dialog.story-entry-art-v1 .story-brief-head .story-boss-portrait{width:95px;height:95px;border-width:3px;box-shadow:0 0 0 3px #ca9c41,0 5px #ac8540;flex:none}
#story-dialog.story-entry-art-v1 .story-brief-head small{display:block;font-size:11px;letter-spacing:.45px;color:#43625e;line-height:1.35}
#story-dialog.story-entry-art-v1 .story-brief-head h3{margin:2px 0 3px;color:#164c61;font:800 clamp(26px,2.5vw,38px)/1.02 'Baloo 2',sans-serif}
#story-dialog.story-entry-art-v1 .story-brief-head p{margin:3px 0 0;color:#456468;font-size:12px;line-height:1.4}
#story-dialog.story-entry-art-v1 .story-brief-head .story-species{color:#1d5f73;font-size:12px;font-weight:900}
#story-dialog.story-entry-art-v1 .story-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0;padding:0}
#story-dialog.story-entry-art-v1 .story-facts li{min-width:0;display:flex;flex-direction:column;gap:2px;margin:0;padding:7px 10px;border:1px solid #e5d7ac;border-radius:10px;background:#f5edcf;list-style:none}
#story-dialog.story-entry-art-v1 .story-facts li[data-story-guards]{grid-column:1/-1;order:1;flex-direction:row;gap:9px;align-items:baseline}
#story-dialog.story-entry-art-v1 .story-facts small{font-size:11px;font-weight:900;color:#5c6b5c}
#story-dialog.story-entry-art-v1 .story-facts strong{font-size:13px;font-weight:900;color:#285161;line-height:1.3;overflow-wrap:break-word}
#story-dialog.story-entry-art-v1 .story-entry-skills-title{margin:1px 0 -5px;color:#456355;font:800 19px/1.2 'Baloo 2',sans-serif}
#story-dialog.story-entry-art-v1 .story-skills{display:flex;flex-direction:column;gap:8px;margin:0;padding:0}
#story-dialog.story-entry-art-v1 .story-skills li{padding:10px 11px;margin:0;border:1px solid #e8d4a5;border-left:4px solid #c89b40;border-radius:12px;background:#fffdf2}
#story-dialog.story-entry-art-v1 .story-skills li[data-kind=summon]{border-left-color:#6597ab;background:#f0f7eb}
#story-dialog.story-entry-art-v1 .story-skills li[data-kind=relocate]{border-left-color:#ad8abd;background:#f9f0ed}
#story-dialog.story-entry-art-v1 .story-skills strong{font:800 17px/1.15 'Baloo 2',sans-serif;color:#654923}
#story-dialog.story-entry-art-v1 .story-skills p{margin:4px 0 0;color:#446168;font-size:12px;line-height:1.5}
#story-dialog.story-entry-art-v1 .story-skills .story-tip{color:#24664e;font-weight:800}
#story-dialog.story-entry-art-v1 .story-skills .story-skill-icon{width:42px;height:42px;border:2px solid #e3c779;box-shadow:0 1px #8e733c}
#story-dialog.story-entry-art-v1 .story-rules,#story-dialog.story-entry-art-v1 .story-party-note{margin:0;color:#506962;font-size:12px;line-height:1.5}
#story-dialog.story-entry-art-v1 .story-reward{margin:0;padding:11px 13px;border:1px solid #ddba64;border-radius:12px;background:#fff1c9;color:#5d532f;font-size:13px;line-height:1.5}
#story-dialog.story-entry-art-v1 .story-reward b{color:#6e491f}
#story-dialog.story-entry-art-v1 .story-reward[data-cleared=true]{background:#ecf6d7;border-color:#accc92}
#story-dialog.story-entry-art-v1 .story-locked{margin:0;padding:9px 11px;border:1px solid #dec099;border-radius:10px;background:#f8ead4;color:#805029;font-size:12px;line-height:1.4}
#story-dialog.story-entry-art-v1 .story-actions{position:relative;bottom:auto;display:flex;flex-wrap:nowrap;align-items:center;gap:12px;flex:none;min-height:87px;margin:0;padding:12px 14px 14px;border-top:2px solid #e3c67f;border-radius:0;background:linear-gradient(#fff8dc,#f7e6bb);box-shadow:0 -5px 13px #72562f12;z-index:2}
#story-dialog.story-entry-art-v1 .story-actions .primary-button{display:flex;justify-content:center;flex:1;min-width:0;width:auto;min-height:55px;padding:10px 16px;border:2px solid #fff0ad;outline:1px solid #bf8a2d;border-radius:17px;background:linear-gradient(#fff5b9,#ffda68 58%,#eaae3c);box-shadow:inset 0 2px #fffbe2,0 4px #ac7a2d;color:#67421b;font:800 24px/1.15 'Baloo 2',sans-serif;white-space:normal}
#story-dialog.story-entry-art-v1 .story-actions .primary-button:disabled{opacity:1;filter:saturate(.45);background:linear-gradient(#eae0c6,#cdbb92);color:#655c48;border-color:#e7d7af;box-shadow:inset 0 2px #f7ecd1,0 3px #a39572;cursor:default}
#story-dialog.story-entry-art-v1 .story-actions .secondary-button{min-height:44px;padding:8px 14px;border:2px solid #92e2e7;border-radius:13px;background:linear-gradient(#14b5cb,#02708e);box-shadow:0 3px #14586c,inset 0 2px #91eeec;color:#f7ffeb;font-size:14px;font-weight:900}
#story-dialog.story-entry-art-v1 .story-join{flex:none;gap:4px;margin:0}
#story-dialog.story-entry-art-v1 .story-join label{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal;margin:0;color:#3f6566;font-size:11px;font-weight:900;line-height:1.25}
#story-dialog.story-entry-art-v1 .story-join span{display:flex;gap:6px}
#story-dialog.story-entry-art-v1 .story-join input{width:91px;min-height:44px;padding:8px;border:1px solid #bccbb8;border-radius:10px;background:#fffef4;box-shadow:inset 0 2px 4px #79897822;color:#214e60;font-size:14px;letter-spacing:2px}
#story-dialog.story-entry-art-v1 .story-join input::placeholder{color:#72776b;opacity:1}
#story-dialog.story-entry-art-v1 .story-hint{flex:1;margin:0;color:#476366;font-size:12px;line-height:1.4}
#story-dialog.story-entry-art-v1 .story-extreme-badge{font-size:11px;background:#87304d;box-shadow:0 1px #5a213b}
#story-dialog.story-entry-art-v1 :is(button,summary,input):focus-visible{outline:3px solid #074e64;outline-offset:3px}
#story-dialog.story-entry-art-v1 .story-brief:focus{outline:none}
#story-dialog.story-entry-art-v1 .story-entry-footer{display:grid;grid-template-columns:minmax(125px,.38fr) minmax(0,1fr);align-items:center;gap:12px;flex:none;padding:11px 13px 14px;border-top:2px solid #e3c67f;background:linear-gradient(#fff8dc,#f7e6bb);box-shadow:0 -5px 13px #72562f12;z-index:2}
#story-dialog.story-entry-art-v1 .story-entry-footer .story-reward{padding:6px 9px;font-size:12px;line-height:1.4;border-color:#e3c783;background:#fff5d6}
#story-dialog.story-entry-art-v1 .story-entry-footer .story-actions{padding:0;min-height:0;border:0;background:none;box-shadow:none}
#story-dialog.story-entry-art-v1 .story-entry-footer .story-actions .primary-button{font-size:22px}
#story-dialog.story-entry-art-v1 :is(.story-map,.story-entry-brief-content)::-webkit-scrollbar{width:7px;height:6px}
#story-dialog.story-entry-art-v1 :is(.story-map,.story-entry-brief-content)::-webkit-scrollbar-track{border-radius:8px;background:#efdfb9}
#story-dialog.story-entry-art-v1 :is(.story-map,.story-entry-brief-content)::-webkit-scrollbar-thumb{border:1px solid #fff2c6;border-radius:8px;background:#b48a44}

@media(max-width:1280px){
 #story-dialog.story-entry-art-v1[open]{padding:6px 28px 21px}
 #story-dialog.story-entry-art-v1 .story-head{min-height:119px}
 #story-dialog.story-entry-art-v1 .story-entry-title{height:auto;width:46%;top:-22px}
 #story-dialog.story-entry-art-v1 .story-entry-title h2{font-size:39px}
 #story-dialog.story-entry-art-v1 .story-entry-peek{right:303px;top:16px;width:96px;height:84px}
 #story-dialog.story-entry-art-v1 .story-body{gap:13px;padding:14px 12px 13px}
 #story-dialog.story-entry-art-v1 .story-chapter{min-height:206px}
 #story-dialog.story-entry-art-v1 .story-tabs button{padding:8px 13px;font-size:13px}
 #story-dialog.story-entry-art-v1 .story-level .story-boss-portrait{width:33px;height:33px}
 #story-dialog.story-entry-art-v1 .story-level{padding:7px 6px;gap:6px}
 #story-dialog.story-entry-art-v1 .story-level-text small{font-size:11px}
 #story-dialog.story-entry-art-v1 .story-actions{gap:9px;padding:10px 11px 12px;min-height:82px}
 #story-dialog.story-entry-art-v1 .story-actions .primary-button{font-size:22px}
 #story-dialog.story-entry-art-v1 .story-entry-footer{gap:10px;padding:10px 11px 13px;grid-template-columns:minmax(125px,.4fr) minmax(0,1fr)}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-actions .primary-button{font-size:20px;padding:8px}
}

@media(max-width:950px) and (min-height:521px){
 #story-dialog.story-entry-art-v1 .story-entry-title{top:-21px;width:62%;height:auto}
 #story-dialog.story-entry-art-v1 .story-entry-title h2{font-size:34px}
 #story-dialog.story-entry-art-v1 .story-head{min-height:158px}
 #story-dialog.story-entry-art-v1 .story-entry-peek{right:54px;top:4px;width:90px;height:74px}
 #story-dialog.story-entry-art-v1 .story-body{grid-template-columns:minmax(0,.45fr) minmax(0,.55fr);gap:11px;padding:12px 9px}
 #story-dialog.story-entry-art-v1 .story-entry-chapter-copy{padding:10px 11px 45px}
 #story-dialog.story-entry-art-v1 .story-levels{grid-template-columns:1fr;gap:5px;padding:0 7px 9px}
 #story-dialog.story-entry-art-v1 .story-level{min-height:60px}
 #story-dialog.story-entry-art-v1 .story-level-text strong{font-size:15px}
 #story-dialog.story-entry-art-v1 .story-brief-head .story-boss-portrait{width:65px;height:65px}
 #story-dialog.story-entry-art-v1 .story-brief-head{gap:12px}
 #story-dialog.story-entry-art-v1 .story-actions{flex-wrap:wrap;gap:8px}
 #story-dialog.story-entry-art-v1 .story-actions .primary-button{flex:1 1 100%;min-height:47px}
 #story-dialog.story-entry-art-v1 .story-join{flex:1;flex-direction:row;align-items:center;justify-content:space-between;gap:7px}
 #story-dialog.story-entry-art-v1 .story-join label{max-width:100px}
 #story-dialog.story-entry-art-v1 .story-entry-footer{grid-template-columns:minmax(0,1fr);gap:8px}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-reward{padding:4px 8px;font-size:11px;line-height:1.3}
}

/* Portrait uses a chapter shelf; the selected encounter keeps its own scroll well. */
@media(max-width:650px) and (min-height:521px){
 #story-dialog.story-entry-art-v1[open]{padding:4px 11px 15px}
 #story-dialog.story-entry-art-v1 .story-head{min-height:137px;padding:0 3px 10px;gap:5px;align-items:flex-end}
 #story-dialog.story-entry-art-v1 .story-entry-title{left:42%;top:-8px;width:88%;height:auto}
 #story-dialog.story-entry-art-v1 .story-entry-title h2{font-size:25px;margin:0}
 #story-dialog.story-entry-art-v1 .story-entry-peek{right:37px;top:9px;width:62px;height:58px}
 #story-dialog.story-entry-art-v1>.dialog-close{top:13px;right:13px;width:44px;height:44px;font-size:33px}
 #story-dialog.story-entry-art-v1 .story-head .eyebrow{display:none}
 #story-dialog.story-entry-art-v1 .story-entry-prologue summary{min-height:44px;padding:7px 10px;gap:6px;border-radius:11px;font-size:12px}
 #story-dialog.story-entry-art-v1 .story-head-side{gap:4px;margin-right:0}
 #story-dialog.story-entry-art-v1 .story-progress{max-width:225px;padding:3px 6px;font-size:11px;line-height:1.2;text-align:right}
 #story-dialog.story-entry-art-v1 .story-tabs{gap:5px}
 #story-dialog.story-entry-art-v1 .story-tabs button{min-height:44px;padding:7px 9px;font-size:11px;border-radius:13px}
 #story-dialog.story-entry-art-v1 .story-body{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:208px minmax(0,1fr);gap:10px;min-height:0;padding:10px 5px 8px;overflow:hidden;border-width:5px;border-image-width:23px;border-image-outset:4px;border-radius:17px}
 #story-dialog.story-entry-art-v1 .story-map{flex-direction:row;gap:10px;overflow-x:auto;overflow-y:hidden;padding:1px 3px 7px;scroll-snap-type:x proximity;scroll-padding:3px;min-height:0}
 #story-dialog.story-entry-art-v1 .story-chapter{width:calc(100% - 18px);min-height:0;height:194px;flex:0 0 calc(100% - 18px);scroll-snap-align:start;border-radius:15px}
 #story-dialog.story-entry-art-v1 .story-entry-chapter-copy{padding:9px 10px 10px}
 #story-dialog.story-entry-art-v1 .story-chapter h3{font-size:25px}
 #story-dialog.story-entry-art-v1 .story-chapter header small{font-size:11px}
 #story-dialog.story-entry-art-v1 .story-entry-chapter-copy>p{max-width:240px;font-size:11px;line-height:1.3;margin-top:4px}
 #story-dialog.story-entry-art-v1 .story-levels{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:0 5px 8px}
 #story-dialog.story-entry-art-v1 .story-level{min-height:68px;padding:5px;gap:5px;border-radius:11px}
 #story-dialog.story-entry-art-v1 .story-level .story-boss-portrait{width:28px;height:28px}
 #story-dialog.story-entry-art-v1 .story-level-text small{font-size:11px;line-height:1.2}
 #story-dialog.story-entry-art-v1 .story-level-text strong{font-size:13px;line-height:1.05}
 #story-dialog.story-entry-art-v1 .story-level-text em{font-size:11px}
 #story-dialog.story-entry-art-v1 .story-brief{min-height:0;overflow:hidden;border-radius:14px}
 #story-dialog.story-entry-art-v1 .story-entry-brief-content{gap:11px;padding:7px 10px 13px;overflow-y:auto;min-height:0}
 #story-dialog.story-entry-art-v1 .story-brief-thumb{height:auto;aspect-ratio:16/9}
 #story-dialog.story-entry-art-v1 .story-brief-poster{border-radius:13px}
 #story-dialog.story-entry-art-v1 .story-brief-poster[data-film=true] .story-watch{bottom:6px;font-size:12px;padding:6px 12px;min-height:44px}
 #story-dialog.story-entry-art-v1 .story-brief-head .story-boss-portrait{width:63px;height:63px}
 #story-dialog.story-entry-art-v1 .story-brief-head h3{font-size:28px}
 #story-dialog.story-entry-art-v1 .story-brief-head small{font-size:11px}
 #story-dialog.story-entry-art-v1 .story-actions{padding:8px 10px 11px;gap:8px;min-height:0}
 #story-dialog.story-entry-art-v1 .story-actions .primary-button{min-height:45px;font-size:23px;padding:6px 10px}
 #story-dialog.story-entry-art-v1 .story-join label{font-size:11px;max-width:none}
 #story-dialog.story-entry-art-v1 .story-join input{width:81px}
 #story-dialog.story-entry-art-v1 .story-actions .secondary-button{padding:6px 12px}
 #story-dialog.story-entry-art-v1 .story-extreme-badge{font-size:11px;padding:1px 5px}
 #story-dialog.story-entry-art-v1 .story-entry-footer{padding:7px 9px 10px;gap:6px}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-actions .primary-button{font-size:22px}
}

/* Short landscape preserves both independent columns and keeps every action visible. */
@media(max-height:520px){
 #story-dialog.story-entry-art-v1[open]{padding:3px 18px 14px}
 #story-dialog.story-entry-art-v1 .story-head{min-height:82px;padding:0 4px 9px;gap:8px}
 #story-dialog.story-entry-art-v1 .story-entry-title{width:44%;height:auto;left:43%;top:-20px}
 #story-dialog.story-entry-art-v1 .story-entry-title h2{font-size:28px}
 #story-dialog.story-entry-art-v1 .story-entry-peek{display:none}
 #story-dialog.story-entry-art-v1>.dialog-close{width:44px;height:44px;top:8px;right:15px;font-size:32px}
 #story-dialog.story-entry-art-v1 .story-head .eyebrow{font-size:11px;letter-spacing:1px}
 #story-dialog.story-entry-art-v1 .story-entry-prologue summary{min-height:44px;font-size:12px;padding:5px 11px;gap:8px;border-radius:11px}
 #story-dialog.story-entry-art-v1 .story-head-side{gap:3px;margin-right:43px}
 #story-dialog.story-entry-art-v1 .story-progress{font-size:11px;padding:3px 7px;max-width:220px;white-space:normal}
 #story-dialog.story-entry-art-v1 .story-tabs{gap:6px}
 #story-dialog.story-entry-art-v1 .story-tabs button{min-height:44px;font-size:11px;padding:5px 11px;border-radius:14px}
 #story-dialog.story-entry-art-v1 .story-body{grid-template-columns:minmax(0,.43fr) minmax(0,.57fr);gap:11px;padding:9px 9px 8px;border-width:5px;border-image-width:26px;border-image-outset:4px;border-radius:18px;overflow:hidden}
 #story-dialog.story-entry-art-v1 .story-map{gap:10px;padding-right:6px}
 #story-dialog.story-entry-art-v1 .story-chapter{min-height:181px;border-radius:14px}
 #story-dialog.story-entry-art-v1 .story-entry-chapter-copy{padding:8px 9px 20px}
 #story-dialog.story-entry-art-v1 .story-chapter header{gap:4px 6px}
 #story-dialog.story-entry-art-v1 .story-chapter header small{font-size:11px}
 #story-dialog.story-entry-art-v1 .story-chapter h3{font-size:23px}
 #story-dialog.story-entry-art-v1 .story-entry-chapter-copy>p{font-size:11px;line-height:1.3;margin-top:4px}
 #story-dialog.story-entry-art-v1 .story-levels{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:0 5px 7px}
 #story-dialog.story-entry-art-v1 .story-level{min-height:66px;padding:5px;gap:5px;border-radius:11px}
 #story-dialog.story-entry-art-v1 .story-level .story-boss-portrait{width:27px;height:27px}
 #story-dialog.story-entry-art-v1 .story-level-text small{font-size:11px;line-height:1.2}
 #story-dialog.story-entry-art-v1 .story-level-text strong{font-size:13px}
 #story-dialog.story-entry-art-v1 .story-level-text em{font-size:11px}
 #story-dialog.story-entry-art-v1 .story-entry-brief-content{display:grid;grid-template-columns:minmax(0,.47fr) minmax(0,.53fr);align-items:start;align-content:start;gap:9px;padding:6px 9px 12px}
 #story-dialog.story-entry-art-v1 .story-entry-brief-content>*{grid-column:1/-1}
 #story-dialog.story-entry-art-v1 .story-entry-brief-content>.story-brief-poster{grid-column:1;margin:0}
 #story-dialog.story-entry-art-v1 .story-entry-brief-content>.story-brief-head{grid-column:2;grid-row:1;display:block;padding:0}
 #story-dialog.story-entry-art-v1 .story-brief-head .story-boss-portrait{float:right;width:39px;height:39px;margin:3px 2px 6px 7px}
 #story-dialog.story-entry-art-v1 .story-brief-thumb{height:auto;aspect-ratio:16/9;object-fit:contain;object-position:center}
 #story-dialog.story-entry-art-v1 .story-brief-poster{border-width:2px;border-radius:12px}
 #story-dialog.story-entry-art-v1 .story-brief .story-watch{font-size:12px;min-height:44px;padding:4px 12px}
 #story-dialog.story-entry-art-v1 .story-brief-poster[data-film=true] .story-watch{position:static;transform:none;max-width:none;width:100%;margin:0;border-width:1px;border-radius:0 0 8px 8px;min-height:44px;box-shadow:none;padding:5px}
 #story-dialog.story-entry-art-v1 .story-watch-long{display:none}
 #story-dialog.story-entry-art-v1 .story-watch-short{display:inline}
 #story-dialog.story-entry-art-v1 .story-brief-head{gap:10px;padding:2px}
 #story-dialog.story-entry-art-v1 .story-brief-head h3{font-size:23px}
 #story-dialog.story-entry-art-v1 .story-brief-head small{font-size:11px}
 #story-dialog.story-entry-art-v1 .story-brief-head p{font-size:11px;line-height:1.35}
 #story-dialog.story-entry-art-v1 .story-facts strong{font-size:12px}
 #story-dialog.story-entry-art-v1 .story-facts li{padding:5px 7px}
 #story-dialog.story-entry-art-v1 .story-actions{min-height:65px;padding:7px 9px 10px;gap:9px;flex-wrap:nowrap}
 #story-dialog.story-entry-art-v1 .story-actions .primary-button{min-height:44px;padding:7px 9px;font-size:20px;white-space:normal}
 #story-dialog.story-entry-art-v1 .story-join label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
 #story-dialog.story-entry-art-v1 .story-join input{width:71px;padding:7px;font-size:12px;letter-spacing:1px}
 #story-dialog.story-entry-art-v1 .story-actions .secondary-button{padding:7px 12px;font-size:12px}
 #story-dialog.story-entry-art-v1 .story-extreme-badge{font-size:11px;padding:1px 5px}
 #story-dialog.story-entry-art-v1 .story-entry-footer{grid-template-columns:minmax(0,1fr);gap:5px;padding:5px 9px 10px}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-reward{padding:3px 7px;font-size:11px;line-height:1.2}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-actions .primary-button{font-size:20px;padding:7px 9px}
}

@media(prefers-reduced-motion:reduce){#story-dialog.story-entry-art-v1 *{scroll-behavior:auto!important}}

/* The encounter stays concise; the portrait opens the complete boss field guide. */
#story-dialog.story-entry-art-v1 .story-boss-portrait[data-art=journey] img{width:100%;height:100%;object-fit:cover;object-position:center}
#story-dialog.story-entry-art-v1 .story-entry-boss-button{position:relative;display:flex;flex-direction:column;align-items:center;gap:5px;flex:none;padding:2px 3px 0;border:0;background:none;border-radius:50%;color:#416466;cursor:pointer}
#story-dialog.story-entry-art-v1 .story-entry-boss-prompt{padding:3px 10px;border:1px solid #d6b55f;border-radius:99px;background:#fff3c9;color:#664821;font-size:11px;font-weight:900;white-space:nowrap;box-shadow:0 1px #a68b4a}
#story-dialog.story-entry-art-v1 .story-facts li{grid-column:auto;order:0}
#story-dialog.story-entry-art-v1 .story-brief-poster{isolation:isolate}
#story-dialog.story-entry-art-v1 .story-brief-poster:before{content:'';position:absolute;inset:-15px;z-index:-1;background:var(--story-entry-poster) center/cover no-repeat;filter:blur(10px) brightness(.55);pointer-events:none}
#story-dialog.story-entry-art-v1 .story-brief-thumb{height:clamp(140px,calc(100dvh - 550px),375px);aspect-ratio:auto;object-fit:contain;background:none}
#story-dialog.story-entry-art-v1 .story-entry-footer{grid-template-columns:minmax(0,.46fr) minmax(0,.54fr);gap:9px 13px;padding:10px 13px 12px;align-items:stretch}
#story-dialog.story-entry-art-v1 .story-entry-footer .story-reward{grid-column:1;grid-row:1;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:9px;padding:8px 10px;font-size:13px;line-height:1.3}
#story-dialog.story-entry-art-v1 .story-entry-footer .story-reward b{font-size:11px;color:#6a5937}
#story-dialog.story-entry-art-v1 .story-entry-reward-copy{min-width:0}
#story-dialog.story-entry-art-v1 .story-entry-reward-copy b{display:block;margin-bottom:3px}
#story-dialog.story-entry-art-v1 .story-entry-reward-icon{display:block;flex:none;width:46px;height:46px;border:2px solid #e0bf74;border-radius:50%;box-shadow:0 2px #b49a58;object-fit:cover;background:#e4f1cd}
#story-dialog.story-entry-art-v1 .story-entry-reward-icon[hidden]{display:none}
#story-dialog.story-entry-art-v1 .story-entry-reward-icon:is([data-kind=coins],[data-kind=sparkle]){object-fit:contain;border:0;box-shadow:none;background:none}
#story-dialog.story-entry-art-v1 .story-entry-footer .story-actions{display:contents}
#story-dialog.story-entry-art-v1 .story-entry-footer .story-actions .primary-button{grid-column:2;grid-row:1;min-height:59px;font-size:26px;padding:8px 14px}
#story-dialog.story-entry-art-v1 .story-entry-footer .story-join{grid-column:1/-1;grid-row:2;display:flex;flex-direction:row;align-items:center;gap:15px;padding:0 3px}
#story-dialog.story-entry-art-v1 .story-entry-footer .story-join label{position:static;max-width:none;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal;flex:none;font-size:12px;line-height:1.2}
#story-dialog.story-entry-art-v1 .story-entry-footer .story-join span{flex:1;gap:8px}
#story-dialog.story-entry-art-v1 .story-entry-footer .story-join input{width:auto;flex:1;min-height:44px}
#story-dialog.story-entry-art-v1 .story-entry-footer .story-join button{min-width:76px}
#story-dialog.story-entry-art-v1 .story-entry-footer .story-actions>.secondary-button{grid-column:1/-1;grid-row:2;justify-self:end}
#story-dialog.story-entry-art-v1 .story-entry-footer .story-hint{grid-column:2;grid-row:1;align-self:center}

.story-entry-skills-dialog{position:fixed;inset:0;display:none;width:min(820px,calc(100vw - 38px));height:min(790px,calc(100dvh - 42px));max-width:none;max-height:calc(100dvh - 42px);margin:auto;padding:23px 25px 22px;border:7px solid transparent;border-image:url('../assets/social-art-v2/frame.webp') 195 170/35px/6px stretch;border-radius:24px;background:linear-gradient(120deg,#fff0c6,#fffce8 58%,#f4e0ae);box-shadow:0 14px 65px #082e4d99;color:#224f5c;overflow:hidden}
.story-entry-skills-dialog[open]{display:flex;flex-direction:column;gap:15px}
.story-entry-skills-dialog::backdrop{background:#0b334bbf;backdrop-filter:blur(5px)}
.story-entry-skills-dialog *{box-sizing:border-box}
.story-entry-skills-close{position:absolute;right:15px;top:14px;z-index:3;display:grid;place-items:center;width:44px;height:44px;padding:0;border:2px solid #ffebac;border-radius:50%;background:linear-gradient(#20c5d2,#03728d);box-shadow:0 3px #956f2c,inset 0 2px #a4f1ee;color:#fff7d9;font:800 32px/1 'Nunito Sans',sans-serif}
.story-entry-skills-head{display:flex;align-items:center;gap:19px;flex:none;padding:0 48px 12px 0;border-bottom:2px solid #e0c078}
.story-entry-skills-head .story-boss-portrait{width:96px;height:96px;border:3px solid #ffeca2;box-shadow:0 0 0 2px #b88935,0 4px #b89652;background:#76b3bd}
.story-entry-skills-head .story-boss-portrait img{width:100%;height:100%;object-fit:cover;object-position:center}
.story-entry-skills-head small{color:#5c7964;font-size:11px;letter-spacing:1.5px;font-weight:900}
.story-entry-skills-head h2{margin:3px 0;color:#185166;font:800 35px/1.1 'Baloo 2',sans-serif}
.story-entry-skills-head p{margin:4px 0 0;color:#62694a;font-size:13px;line-height:1.4}
.story-entry-skills-content{flex:1;min-height:0;overflow:auto;padding:0 7px 2px 0;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ad873c #f7e7bd}
.story-entry-field-guide{display:flex;flex-direction:column;gap:14px}
.story-entry-field-guide>h3{margin:0;color:#52664e;font:800 22px/1.2 'Baloo 2',sans-serif}
.story-entry-skills-dialog .story-skills{display:flex;flex-direction:column;gap:12px;padding:0;margin:0;list-style:none}
.story-entry-skills-dialog .story-skills li{padding:14px 15px;margin:0;border:1px solid #ddc492;border-left:5px solid #cc9a3e;border-radius:13px;background:#fffdf2;box-shadow:0 2px #a9915930}
.story-entry-skills-dialog .story-skills li[data-kind=summon]{background:#f1f7e9;border-left-color:#5e99a5}
.story-entry-skills-dialog .story-skills li[data-kind=relocate]{background:#f8f1f1;border-left-color:#a984b7}
.story-entry-skills-dialog .story-skills strong{color:#6c4f2e;font:800 21px/1.2 'Baloo 2',sans-serif}
.story-entry-skills-dialog .story-skills p{margin:6px 0 0;color:#45656a;font-size:14px;line-height:1.55}
.story-entry-skills-dialog .story-skills .story-tip{color:#286a4e;font-weight:800}
.story-entry-skills-dialog .story-skills .story-skill-icon{float:left;width:48px;height:48px;margin:0 12px 5px 0;border:2px solid #ddbd75;border-radius:50%;box-shadow:0 2px #a58e59;object-fit:cover}
.story-entry-skills-dialog .story-facts{display:block;padding:0;margin:0;list-style:none}
.story-entry-skills-dialog .story-facts li{display:flex;flex-direction:column;gap:4px;padding:12px 15px;margin:0;border:1px solid #daca97;border-radius:13px;background:#f1e8c8}
.story-entry-skills-dialog .story-facts small{color:#5a6f5b;font-size:12px;font-weight:900}
.story-entry-skills-dialog .story-facts strong{color:#295a65;font-size:14px;line-height:1.5}
.story-entry-skills-dialog .story-rules,.story-entry-skills-dialog .story-party-note{padding:0 4px;margin:0;color:#556e65;font-size:13px;line-height:1.55}
.story-entry-skills-dialog :is(button,input):focus-visible{outline:3px solid #07556a;outline-offset:3px}

@media(max-width:950px) and (min-height:521px){
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-actions .primary-button{font-size:22px;padding:7px}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-join{gap:8px;padding:0}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-join label{max-width:103px;font-size:11px}
}
@media(max-width:650px) and (min-height:521px){
 #story-dialog.story-entry-art-v1 .story-body{grid-template-rows:185px minmax(0,1fr)}
 #story-dialog.story-entry-art-v1 .story-chapter{height:171px}
 #story-dialog.story-entry-art-v1 .story-entry-chapter-copy{padding-bottom:0}
 #story-dialog.story-entry-art-v1 .story-brief-thumb{height:128px;aspect-ratio:auto}
 #story-dialog.story-entry-art-v1 .story-brief-head p:not(.story-species){font-size:11px;line-height:1.35}
 #story-dialog.story-entry-art-v1 .story-entry-boss-button{padding:0;gap:3px}
 #story-dialog.story-entry-art-v1 .story-entry-boss-prompt{padding:2px 6px;font-size:11px}
 #story-dialog.story-entry-art-v1 .story-entry-footer{gap:7px 9px;padding:8px 9px 10px}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-reward{padding:6px 8px;font-size:11px;gap:2px}
 #story-dialog.story-entry-art-v1 .story-entry-reward-icon{width:30px;height:30px;margin-right:3px}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-actions .primary-button{font-size:21px;min-height:55px}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-join label{max-width:86px}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-join input{width:60px;padding:7px}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-join button{min-width:53px;padding:7px 10px}
 .story-entry-skills-dialog{width:calc(100vw - 24px);height:calc(100dvh - 34px);max-height:calc(100dvh - 34px);padding:17px 13px;border-width:5px;border-image-width:25px;border-image-outset:4px}
 .story-entry-skills-head{gap:12px;padding-right:29px}
 .story-entry-skills-head .story-boss-portrait{width:69px;height:69px}
 .story-entry-skills-head h2{font-size:26px}
 .story-entry-skills-head small{font-size:11px;letter-spacing:.7px}
 .story-entry-skills-close{right:7px;top:7px}
 .story-entry-skills-dialog .story-skills li{padding:12px 11px}
 .story-entry-skills-dialog .story-skills strong{font-size:19px}
 .story-entry-skills-dialog .story-skills p{font-size:13px}
}

@media(max-height:520px){
 #story-dialog.story-entry-art-v1 .story-entry-brief-content{grid-auto-rows:max-content;gap:7px 9px}
 #story-dialog.story-entry-art-v1 .story-entry-brief-content>.story-brief-poster{grid-column:1;grid-row:1/3}
 #story-dialog.story-entry-art-v1 .story-entry-brief-content>.story-facts{grid-column:2;grid-row:2}
 #story-dialog.story-entry-art-v1 .story-entry-brief-content>.story-facts li{padding:5px 4px}
 #story-dialog.story-entry-art-v1 .story-entry-brief-content>.story-brief-head{display:flex;flex-direction:row;align-items:center;gap:9px}
 #story-dialog.story-entry-art-v1 .story-entry-boss-button .story-boss-portrait{float:none;width:44px;height:44px;margin:0}
 #story-dialog.story-entry-art-v1 .story-entry-boss-prompt{padding:2px 5px;font-size:11px}
 #story-dialog.story-entry-art-v1 .story-brief-thumb{height:80px;aspect-ratio:auto;object-fit:contain}
 #story-dialog.story-entry-art-v1 .story-brief-head h3{font-size:21px}
 #story-dialog.story-entry-art-v1 .story-brief-head p:not(.story-species){display:none}
 #story-dialog.story-entry-art-v1 .story-entry-footer{grid-template-columns:minmax(0,.46fr) minmax(0,.54fr);gap:5px 9px;padding:5px 9px 8px}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-reward{font-size:11px;padding:4px 7px;gap:2px}
 #story-dialog.story-entry-art-v1 .story-entry-reward-icon{width:31px;height:31px;margin-right:4px}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-actions .primary-button{min-height:44px;padding:6px;font-size:20px}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-join{gap:9px;padding:0}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-join label{max-width:105px;font-size:11px}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-join input{width:70px;min-height:44px}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-join button{min-width:54px;padding:7px 10px}
 .story-entry-skills-dialog{height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);padding:13px 17px;border-width:5px;border-image-width:24px;border-image-outset:4px;gap:10px}
 .story-entry-skills-head{gap:13px;padding-bottom:8px}
 .story-entry-skills-head .story-boss-portrait{width:58px;height:58px}
 .story-entry-skills-head h2{font-size:27px}
 .story-entry-skills-head p{margin:1px 0 0;font-size:12px}
 .story-entry-skills-close{top:8px;right:10px}
 .story-entry-skills-dialog .story-skills p{font-size:13px}
}

/* The approved encounter composition: medallion spans identity and the stat strip. */
#story-dialog.story-entry-art-v1 .story-entry-brief-content{gap:0;padding:8px 14px 12px}
#story-dialog.story-entry-art-v1 .story-brief-thumb{height:clamp(110px,calc(100dvh - 573px),365px)}
#story-dialog.story-entry-art-v1 .story-entry-encounter{position:relative;display:grid;grid-template-columns:166px minmax(0,1fr);grid-template-rows:minmax(96px,auto) auto;gap:2px 15px;flex:none;min-height:171px;padding:9px 1px 0}
#story-dialog.story-entry-art-v1 .story-entry-encounter .story-brief-head{display:contents}
#story-dialog.story-entry-art-v1 .story-entry-encounter .story-brief-head>div{grid-column:2;grid-row:1;align-self:center;padding:3px 0 0}
#story-dialog.story-entry-art-v1 .story-entry-encounter .story-entry-boss-button{display:grid;place-items:center;grid-column:1;grid-row:1/3;align-self:start;width:164px;height:164px;padding:0;margin:-21px 0 0;gap:0;z-index:1;filter:drop-shadow(0 5px 3px #61452255)}
#story-dialog.story-entry-art-v1 .story-entry-encounter .story-boss-portrait{width:145px;height:145px;margin:0;float:none;border:0;border-radius:50%;box-shadow:none;overflow:hidden}
#story-dialog.story-entry-art-v1 .story-entry-medallion-rim{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}
#story-dialog.story-entry-art-v1 .story-entry-encounter .story-brief-head small{font-size:12px;letter-spacing:.15px}
#story-dialog.story-entry-art-v1 .story-entry-encounter .story-brief-head h3{font-size:clamp(29px,2.65vw,38px);line-height:1.02;margin:3px 0 4px}
#story-dialog.story-entry-art-v1 .story-entry-encounter .story-brief-head p{font-size:13px;line-height:1.3;margin:4px 0 0}
#story-dialog.story-entry-art-v1 .story-entry-encounter .story-brief-head .story-species{font-size:14px}
#story-dialog.story-entry-art-v1 .story-entry-encounter>.story-facts{grid-column:2;grid-row:2;align-self:start;gap:7px;margin:3px 0 0}
#story-dialog.story-entry-art-v1 .story-entry-encounter .story-facts li{display:flex;flex-direction:row;align-items:center;gap:6px;min-height:46px;padding:4px 7px 5px 3px;border:1px solid #d9c89c;border-radius:9px;background:linear-gradient(#fff7dc,#f2e7c7);box-shadow:inset 0 1px #fffff2,0 1px #fffbed}
#story-dialog.story-entry-art-v1 .story-entry-fact-icon{display:block;flex:none;width:34px;height:34px;object-fit:contain;filter:drop-shadow(0 2px 1px #74543933)}
#story-dialog.story-entry-art-v1 .story-entry-fact-copy{display:flex;flex-direction:column;gap:0;min-width:0}
#story-dialog.story-entry-art-v1 .story-entry-encounter .story-facts small{font-size:11px;line-height:1.2;color:#675b43}
#story-dialog.story-entry-art-v1 .story-entry-encounter .story-facts strong{font-size:15px;line-height:1.2;color:#305760}
#story-dialog.story-entry-art-v1 .story-entry-footer{grid-template-columns:repeat(12,minmax(0,1fr));gap:11px 15px;padding:10px 16px 13px;border-top:0;background:linear-gradient(110deg,#fff5d9,#fffbed 64%,#f4e4bf);box-shadow:none}
#story-dialog.story-entry-art-v1 .story-entry-footer .story-reward{grid-column:1/7;grid-row:1;min-height:83px;gap:8px;padding:7px 9px 7px 5px;border:2px solid #e1c48b;border-left:5px solid #eda238;border-radius:13px;background:linear-gradient(100deg,#fff3ce,#fff9e7);box-shadow:inset 0 1px #fffef3,0 2px #cbb47b33}
#story-dialog.story-entry-art-v1 .story-entry-reward-portrait{position:relative;display:block;flex:none;width:63px;height:63px;border:3px solid #e8c785;border-radius:50%;background:linear-gradient(#dbe9bc,#d0d6aa);box-shadow:0 0 0 1px #b79654,inset 0 0 8px #61847755;overflow:hidden}
#story-dialog.story-entry-art-v1 .story-entry-reward-icon{position:absolute;left:-25%;top:-16%;width:150%;height:150%;margin:0;border:0;border-radius:0;box-shadow:none;object-fit:contain;background:none}
#story-dialog.story-entry-art-v1 .story-entry-reward-icon:is([data-kind=coins],[data-kind=sparkle]){inset:0;width:100%;height:100%;object-fit:contain}
#story-dialog.story-entry-art-v1 .story-entry-footer .story-entry-reward-copy{display:flex;flex-direction:column;gap:2px;line-height:1.2}
#story-dialog.story-entry-art-v1 .story-entry-footer .story-entry-reward-copy b{font-size:11px;line-height:1.2;margin:0;color:#79684b;font-weight:800}
#story-dialog.story-entry-art-v1 .story-entry-reward-title{display:block;color:#285568;font:800 20px/1.08 'Baloo 2',sans-serif}
#story-dialog.story-entry-art-v1 .story-entry-reward-copy small{display:block;font-size:12px;line-height:1.25;color:#607571}
#story-dialog.story-entry-art-v1 .story-entry-footer .story-actions .primary-button{grid-column:7/-1;grid-row:1;align-self:center;align-items:center;justify-content:center;gap:14px;min-height:74px;padding:8px 12px;border:3px solid #fff0b1;outline:2px solid #d8a441;border-radius:18px;background:linear-gradient(#fff5c7 0%,#ffe68e 18%,#ffd365 54%,#eab449 96%);box-shadow:inset 0 3px #fffef0,inset 0 -4px #dc9b32,inset 3px 0 #f8d16b,inset -3px 0 #f8d16b,0 5px #b58337,0 7px 5px #8a673c38;color:#72481c;font-size:32px;text-shadow:0 1px #fff4b7}
#story-dialog.story-entry-art-v1 .story-entry-play-icon{width:39px;height:43px;object-fit:contain;flex:none;filter:drop-shadow(0 1px #fff0a4)}
#story-dialog.story-entry-art-v1 .story-entry-footer .story-join{grid-column:1/9;grid-row:2;gap:10px;padding:0;min-height:49px}
#story-dialog.story-entry-art-v1 .story-entry-footer .story-join label{font-size:13px;max-width:124px;font-weight:800;line-height:1.25;color:#405b58}
#story-dialog.story-entry-art-v1 .story-entry-footer .story-join span{gap:7px;min-width:0}
#story-dialog.story-entry-art-v1 .story-entry-footer .story-join input{width:90px;min-width:0;min-height:47px;border:2px solid #d7c595;border-radius:11px;background:linear-gradient(#f7f1da,#fffdf0);font-size:15px;letter-spacing:2px;box-shadow:inset 0 3px 5px #8c805922}
#story-dialog.story-entry-art-v1 .story-entry-footer .story-join button{min-width:72px;min-height:47px;border-color:#b7e7e7;outline:1px solid #668c8b;border-radius:12px;background:linear-gradient(#19a5cc,#086294);box-shadow:inset 0 2px #9cdddd,0 3px #235b77;color:#fffbe6;font-size:15px}
#story-dialog.story-entry-art-v1 .story-entry-friends-flourish{grid-column:9/-1;grid-row:2;display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;color:#937437;transform:rotate(-4deg);pointer-events:none}
#story-dialog.story-entry-art-v1 .story-entry-friends-flourish img{width:58px;height:52px;object-fit:contain;opacity:.7}
#story-dialog.story-entry-art-v1 .story-entry-friends-flourish span{font:italic 700 17px/1.05 Georgia,serif;white-space:nowrap;opacity:.85}
#story-dialog.story-entry-art-v1 .story-entry-footer .story-hint{grid-column:7/-1}
#story-dialog.story-entry-art-v1 .story-entry-footer .story-actions>.secondary-button{grid-column:7/-1}
#story-dialog.story-entry-art-v1 .story-locked{margin-top:7px}

@media(max-width:1150px) and (min-width:651px) and (min-height:521px){
 #story-dialog.story-entry-art-v1 .story-entry-encounter{grid-template-columns:118px minmax(0,1fr);gap:3px 10px;min-height:167px}
 #story-dialog.story-entry-art-v1 .story-entry-encounter .story-entry-boss-button{width:118px;height:118px;margin-top:-10px}
 #story-dialog.story-entry-art-v1 .story-entry-encounter .story-boss-portrait{width:105px;height:105px}
 #story-dialog.story-entry-art-v1 .story-entry-encounter .story-brief-head h3{font-size:27px}
 #story-dialog.story-entry-art-v1 .story-entry-encounter .story-facts li{gap:3px;padding:4px 3px}
 #story-dialog.story-entry-art-v1 .story-entry-fact-icon{width:25px;height:25px}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-reward{gap:6px}
 #story-dialog.story-entry-art-v1 .story-entry-reward-portrait{width:45px;height:45px}
 #story-dialog.story-entry-art-v1 .story-entry-reward-title{font-size:17px}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-actions .primary-button{font-size:25px;gap:8px}
 #story-dialog.story-entry-art-v1 .story-entry-play-icon{width:29px;height:33px}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-join{grid-column:1/-1}
 #story-dialog.story-entry-art-v1 .story-entry-friends-flourish{display:none}
}
@media(max-width:650px) and (min-height:521px){
 #story-dialog.story-entry-art-v1 .story-entry-brief-content{padding:6px 9px 10px}
 #story-dialog.story-entry-art-v1 .story-brief-thumb{height:137px}
 #story-dialog.story-entry-art-v1 .story-entry-encounter{grid-template-columns:88px minmax(0,1fr);grid-template-rows:auto auto;gap:6px 9px;min-height:133px;padding-top:7px}
 #story-dialog.story-entry-art-v1 .story-entry-encounter .story-entry-boss-button{width:88px;height:88px;grid-row:1;margin-top:-16px}
 #story-dialog.story-entry-art-v1 .story-entry-encounter .story-boss-portrait{width:78px;height:78px}
 #story-dialog.story-entry-art-v1 .story-entry-encounter .story-brief-head>div{padding:0}
 #story-dialog.story-entry-art-v1 .story-entry-encounter .story-brief-head h3{font-size:25px;margin:2px 0}
 #story-dialog.story-entry-art-v1 .story-entry-encounter .story-brief-head small{font-size:11px}
 #story-dialog.story-entry-art-v1 .story-entry-encounter .story-brief-head .story-species{font-size:12px}
 #story-dialog.story-entry-art-v1 .story-entry-encounter .story-brief-head p{font-size:11px;line-height:1.2;margin-top:2px}
 #story-dialog.story-entry-art-v1 .story-entry-encounter>.story-facts{grid-column:1/-1;grid-row:2;margin:0;gap:5px}
 #story-dialog.story-entry-art-v1 .story-entry-encounter .story-facts li{padding:3px;gap:4px;min-height:40px}
 #story-dialog.story-entry-art-v1 .story-entry-fact-icon{width:29px;height:29px}
 #story-dialog.story-entry-art-v1 .story-entry-encounter .story-facts strong{font-size:13px}
 #story-dialog.story-entry-art-v1 .story-entry-footer{gap:8px 10px;padding:7px 9px 9px}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-reward{min-height:66px;padding:5px 4px 5px 3px;gap:5px;border-left-width:4px}
 #story-dialog.story-entry-art-v1 .story-entry-reward-portrait{width:40px;height:40px;border-width:2px}
 #story-dialog.story-entry-art-v1 .story-entry-reward-title{font-size:14px}
 #story-dialog.story-entry-art-v1 .story-entry-reward-copy small{font-size:10px;line-height:1.1}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-entry-reward-copy b{font-size:10px}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-actions .primary-button{min-height:57px;gap:5px;font-size:20px;padding:5px;border-width:2px;border-radius:14px}
 #story-dialog.story-entry-art-v1 .story-entry-play-icon{width:26px;height:30px}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-join{grid-column:1/-1;gap:7px;min-height:44px}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-join label{max-width:105px;font-size:11px}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-join input{min-height:44px;width:62px;font-size:13px}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-join button{min-height:44px;min-width:55px;font-size:13px}
 #story-dialog.story-entry-art-v1 .story-entry-friends-flourish{display:none}
}
@media(max-height:520px){
 #story-dialog.story-entry-art-v1 .story-entry-brief-content{grid-template-columns:minmax(0,.41fr) minmax(0,.59fr);gap:7px;padding:6px 9px 9px}
 #story-dialog.story-entry-art-v1 .story-entry-brief-content>.story-brief-poster{grid-column:1;grid-row:1;margin:0}
 #story-dialog.story-entry-art-v1 .story-entry-brief-content>.story-entry-encounter{grid-column:2;grid-row:1;grid-template-columns:55px minmax(0,1fr);grid-template-rows:auto auto;gap:6px 6px;padding:0;min-height:117px}
 #story-dialog.story-entry-art-v1 .story-entry-encounter .story-entry-boss-button{width:55px;height:55px;grid-row:1;margin:0}
 #story-dialog.story-entry-art-v1 .story-entry-encounter .story-boss-portrait{width:48px;height:48px}
 #story-dialog.story-entry-art-v1 .story-entry-encounter .story-brief-head>div{padding:0}
 #story-dialog.story-entry-art-v1 .story-entry-encounter .story-brief-head h3{font-size:21px;margin:2px 0}
 #story-dialog.story-entry-art-v1 .story-entry-encounter .story-brief-head small{font-size:11px}
 #story-dialog.story-entry-art-v1 .story-entry-encounter .story-brief-head .story-species{font-size:11px;margin:1px 0}
 #story-dialog.story-entry-art-v1 .story-entry-encounter>.story-facts{grid-column:1/-1;grid-row:2;gap:4px;margin:0}
 #story-dialog.story-entry-art-v1 .story-entry-encounter .story-facts li{gap:3px;min-height:42px;padding:3px 2px}
 #story-dialog.story-entry-art-v1 .story-entry-fact-icon{width:23px;height:25px}
 #story-dialog.story-entry-art-v1 .story-entry-encounter .story-facts small{font-size:10px}
 #story-dialog.story-entry-art-v1 .story-entry-encounter .story-facts strong{font-size:12px}
 #story-dialog.story-entry-art-v1 .story-brief-thumb{height:72px}
 #story-dialog.story-entry-art-v1 .story-entry-footer{gap:5px 9px;padding:5px 9px 9px}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-reward{min-height:49px;padding:4px;gap:5px;border-left-width:4px}
 #story-dialog.story-entry-art-v1 .story-entry-reward-portrait{width:35px;height:35px;border-width:2px}
 #story-dialog.story-entry-art-v1 .story-entry-reward-title{font-size:14px}
 #story-dialog.story-entry-art-v1 .story-entry-reward-copy small{font-size:10px}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-entry-reward-copy b{font-size:10px}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-actions .primary-button{min-height:44px;gap:7px;font-size:22px;padding:4px;border-width:2px;border-radius:12px}
 #story-dialog.story-entry-art-v1 .story-entry-play-icon{width:24px;height:28px}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-join{grid-column:1/-1;gap:7px;min-height:44px}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-join label{max-width:117px;font-size:11px}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-join input{min-height:44px;width:65px;font-size:13px}
 #story-dialog.story-entry-art-v1 .story-entry-footer .story-join button{min-height:44px;min-width:55px;font-size:13px}
 #story-dialog.story-entry-art-v1 .story-entry-friends-flourish{display:none}
}

#story-dialog.story-entry-art-v1 .story-entry-footer .story-actions .primary-button>span{font:inherit;line-height:inherit}
@media(min-width:1151px) and (min-height:521px){
 #story-dialog.story-entry-art-v1 .story-entry-brief-content:not(:has(.story-locked)){justify-content:flex-end;padding-bottom:6px}
}
