:root{--bg:#0f131a;--panel:#19212b;--gold:#d6b77a;--text:#e7dfd3;--muted:#9e9d9b}*{box-sizing:border-box}body{background:radial-gradient(ellipse at 50% 0,#263544,#0f131a 58%);min-height:100vh;color:var(--text);font-family:Georgia,serif}.shell{max-width:1150px;margin:auto}.game-bar{padding:15px 24px;background:#10171edc;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #42464a;gap:10px}.brand{letter-spacing:.2em;color:var(--gold);font-weight:bold}.brand small{display:block;letter-spacing:.27em;font-size:.55rem;color:#aaa}.text-gold{color:var(--gold)!important}.btn-gold{background:#c5a36b;border:1px solid #ddbd81;color:#10141b;font-weight:bold}.btn-gold:hover{background:#e3c58f}.panel{background:#18212bdc;border:1px solid #394149;border-radius:6px;padding:25px}.intro{max-width:780px;margin:40px auto}.form-control,.form-select{background:#121b25;color:#eee;border-color:#50515a}.form-control:focus,.form-select:focus{background:#141e28;color:white;border-color:var(--gold);box-shadow:0 0 0 2px #c6a56f35}.form-control::placeholder{color:#85898b}.muted{color:var(--muted)}.story{max-width:850px;margin:auto}.story-image{width:100%;aspect-ratio:16/9;object-fit:cover;background:linear-gradient(120deg,#283846,#121b25)}.scene{background:#18212a;border:1px solid #353e46;margin:24px 0;border-radius:5px;overflow:hidden}.scene-body{padding:28px}.scene-body p{line-height:1.85;font-size:1.08rem;white-space:pre-wrap}.scene-foot{padding:8px 16px;display:flex;justify-content:space-between;align-items:center;background:#121a22;color:#b8a68a;font:12px system-ui}.choice{display:block;text-align:left;width:100%;background:#1a2530;color:#eee;border:1px solid #48505a;border-radius:4px;padding:13px 17px;margin:9px 0;font:14px system-ui}.choice:hover,.choice.active{border-color:var(--gold);background:#29302d}.section-title{font-variant:small-caps;letter-spacing:.15em;color:var(--gold)}.dark-modal{background:#1a222c;color:#eee;border:1px solid #5d523f}.alert-quiet{background:#3b2f26;color:#edd9b4;border:1px solid #806548;padding:12px}.busy{color:var(--gold);font-style:italic}.illustration-placeholder{height:260px;display:flex;align-items:center;justify-content:center;background:linear-gradient(30deg,#293b4d,#101821);color:#c5a36b}.action-area{border-top:1px solid #39424b;padding-top:22px}

.inventory-backdrop{position:fixed;inset:0;z-index:1100;background:#03060bcc;display:flex;justify-content:flex-end}.inventory-panel{height:100%;width:min(490px,100vw);overflow-y:auto;background:#16202a;border-left:1px solid #6b5b41;padding:24px;box-shadow:-14px 0 80px #000a}.inventory-panel h2{color:#e7d1a5;font-family:Georgia,serif}.inventory-panel h4{color:#c9ab79;font:small-caps 1.1rem Georgia,serif;letter-spacing:.06em}.inv-entry{display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:1px solid #39424b;padding:12px 0}.inv-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.inv-entry button{white-space:nowrap}

/* Player skill allocation, deliberately styled as an RPG character sheet. */
.skill-line{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:12px 0;border-bottom:1px solid #43403b}.skill-controls{display:flex;align-items:center;gap:12px;min-width:142px;justify-content:flex-end}.skill-controls span{min-width:48px;text-align:center;color:#d9bd86;font-variant-numeric:tabular-nums}.skill-builder{margin:1rem 0 1.5rem}@media(max-width:560px){.skill-line{align-items:flex-start;flex-direction:column;gap:6px}.skill-controls{justify-content:flex-start}}

/* Persistent in-world health and terminal outcomes */
.health-hud{max-width:270px;margin:.75rem 0 1rem;color:#e5c8af;font-size:.88rem}.health-track{height:9px;background:#493039;border:1px solid #73505a;border-radius:5px;overflow:hidden;margin-top:.35rem}.health-fill{height:100%;background:linear-gradient(90deg,#a93546,#e77070);transition:width .3s}.end-screen{border:1px solid #8f7755;padding:1.25rem;margin:1rem 0;background:rgba(18,21,26,.8);color:#e9d7bd}.end-screen h2{font-family:Georgia,serif;color:#dec08a}

/* Mobile-first game presentation. Desktop game remains unchanged. */
.mobile-game-dock,.mobile-scene-status{display:none}
@media(max-width:767.98px){
 html{scroll-padding-top:70px}body{background:#0b1119;color:#f0e7d8}
 .shell{min-height:100svh;width:100%;overflow-x:clip}
 .game-bar{position:sticky;top:0;z-index:100;background:#101820f5;padding:calc(env(safe-area-inset-top,0px) + 8px) 14px 9px;min-height:59px;box-shadow:0 3px 25px #0009;gap:7px}
 .brand{font:700 .82rem Georgia,serif;letter-spacing:.11em;white-space:nowrap}.brand small{font-size:.43rem;letter-spacing:.08em;margin-top:3px}
 .game-bar>div:last-child{display:flex;align-items:center;gap:2px}
 #wallet{font:600 12px system-ui;padding:5px;white-space:nowrap;text-decoration:none}
 #buy{font-size:11px;padding:5px 8px}#exit,#admin-link{font-size:0!important;padding:5px!important;max-width:28px;overflow:hidden}#exit::after{content:'↪';font-size:16px}#admin-link::after{content:'⚙';font-size:16px}
 #app.campaign-active{padding:0!important;width:100%;max-width:100%}
 .campaign-active .story{max-width:none;margin:0;padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))}
 .campaign-active .story>.mb-4{padding:14px 17px 9px;margin:0!important;background:#111a24}
 .campaign-active .story>.mb-4 .d-flex.gap-2,.campaign-active .story>.mb-4>.section-title,.campaign-active .story>.mb-4>#daily-free{display:none!important}
 .campaign-active .story>.mb-4 h1{display:none}
 .mobile-scene-status{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#121d29;padding:10px 17px;border-bottom:1px solid #333f4c;color:#e5ce9e;font:600 11px system-ui;letter-spacing:.07em;text-transform:uppercase}
 .mobile-scene-status .mobile-world-title{max-width:65%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .mobile-scene-status .mobile-free-turns{color:#aebcc8;letter-spacing:0;text-transform:none}
 .campaign-active .health-hud{max-width:none;margin:0;display:flex;align-items:center;gap:12px;font:600 12px system-ui}.campaign-active .health-hud span{white-space:nowrap}.campaign-active .health-track{flex:1;margin:0;height:7px}
 .campaign-active .scene{border:0;border-bottom:1px solid #34404b;border-radius:0;margin:0;background:#141e29;box-shadow:none}
 .campaign-active .scene-archived{display:none}
 .campaign-active .view-history .scene-archived{display:block}
 .campaign-active .story-image{display:block;width:100%;aspect-ratio:4/3;max-height:47svh;object-fit:cover;background:#202e38}
 .campaign-active .scene-foot{min-height:40px;background:#121b24;padding:9px 15px;gap:10px;font-size:10px;letter-spacing:.02em}
 .campaign-active .scene-foot span:last-child{margin-left:auto;text-align:right}.campaign-active .scene-foot button{font-size:11px!important;min-height:30px;text-decoration:none}
 .campaign-active .scene-body{padding:20px 20px 24px}.campaign-active .scene-body p{font-size:1.035rem;line-height:1.72;letter-spacing:.006em;margin-bottom:1.05rem}
 .campaign-active .action-area{border:0;border-top:1px solid #4a463c;border-radius:0;background:#121c26;padding:23px 17px 26px;margin:0}
 .campaign-active .action-area h3{color:#e9d4ad;font-size:1.25rem;margin-bottom:15px}
 .campaign-active .choice{min-height:56px;margin:9px 0;padding:14px 16px;border-radius:9px;background:#202c38;border:1px solid #445260;color:#eee5d6;font:500 14px/1.45 system-ui;transition:background .15s,border-color .15s}
 .campaign-active .choice:active,.campaign-active .choice.active{background:#353322;border-color:#d6b77a}
 .campaign-active .action-area .section-title{display:block;font-size:12px;margin-top:22px!important}
 .campaign-active #action{min-height:95px;font:16px/1.5 system-ui;border-radius:9px;resize:vertical;padding:13px}
 .campaign-active #continue{display:block;width:100%;min-height:54px;border-radius:9px;margin-top:14px!important;font:700 15px system-ui;letter-spacing:.02em}
 .mobile-game-dock{display:flex;position:fixed;z-index:90;bottom:0;left:0;right:0;height:calc(69px + env(safe-area-inset-bottom,0px));padding:5px 7px env(safe-area-inset-bottom,0px);background:#0f1822f5;border-top:1px solid #574e3d;backdrop-filter:blur(20px);box-shadow:0 -8px 28px #0008}
 .mobile-dock-btn{color:#9eaebd;flex:1;min-width:0;border:0;background:transparent;font:500 11px system-ui;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:52px}.mobile-dock-btn.is-active{color:#e9c688}.dock-icon{font-size:22px;line-height:24px}
 .campaign-active .view-history .action-area{display:none}
 .inventory-panel{width:100vw;padding:calc(18px + env(safe-area-inset-top,0px)) 18px calc(30px + env(safe-area-inset-bottom,0px));border-left:0}
 .inventory-panel button{min-height:39px}.inv-entry{align-items:flex-start}
 .modal-dialog{margin:0;min-height:100%;display:flex;align-items:flex-end}.modal-content{border-radius:17px 17px 0 0;padding-bottom:env(safe-area-inset-bottom,0px)}
 .panel.intro{margin:14px 0;padding:20px}.skill-controls button{min-height:42px;min-width:42px}
 @media(orientation:landscape) and (max-height:520px){.campaign-active .story-image{max-height:70svh;aspect-ratio:16/9}.mobile-game-dock{height:52px}.mobile-dock-btn{min-height:40px}.dock-icon{font-size:16px}}
}
@media(prefers-reduced-motion:reduce){.campaign-active .choice{transition:none}html{scroll-behavior:auto!important}}

/* Responsive original game wordmark, transparent PNG. */
.game-logo-link{display:inline-flex;align-items:center;flex:0 1 auto;min-width:0;line-height:0;text-decoration:none}
.game-logo{display:block;width:clamp(156px,22vw,235px);height:auto;max-height:71px;object-fit:contain;object-position:left center}
.game-logo-link:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:2px}
.admin-brand{display:flex;align-items:center;gap:14px;min-width:0}
.admin-game-logo{display:block;width:clamp(118px,15vw,178px);height:auto;object-fit:contain}
@media(max-width:767.98px){
 .game-bar .game-logo-link{flex:0 1 auto;max-width:47%;min-width:0}
 .game-bar .game-logo{width:clamp(115px,35vw,173px);max-width:100%;max-height:48px;height:auto}
 .game-bar>div:last-child{flex-shrink:0}
 .admin-brand{gap:9px;flex-wrap:wrap}.admin-game-logo{width:124px}
}
@media(max-width:380px){.game-bar{padding-left:9px;padding-right:9px}.game-bar .game-logo{width:120px}#wallet{font-size:11px}#buy{padding:5px!important}}

/* v0.14.1 — cinematic single-scene adventure, shared desktop + mobile */
body:has(.er-game){background:radial-gradient(ellipse 1100px 530px at 50% -70px,#233447 0%,#0a0f17 68%);}
#app.campaign-active{max-width:1300px;padding:20px 22px 60px!important;}
.er-game{max-width:1180px;margin:0 auto;color:#e9e5de;}
.er-game-head{padding:26px 5px 20px;}
.er-game-top,.er-hud,.er-scene-nav,.er-scene-meta,.er-choice{display:flex;align-items:center;}
.er-game-top{justify-content:space-between;gap:16px;margin-bottom:20px;}
.er-quiet-button,.er-nav-btn,.er-video-button{border:1px solid #384452;color:#e0d5c0;background:#17212c;border-radius:8px;padding:10px 15px;cursor:pointer;font:600 12px system-ui;transition:background .16s,border-color .16s;}
.er-quiet-button:hover,.er-nav-btn:hover:not(:disabled),.er-video-button:hover{background:#273646;border-color:#c6a56f;}
.er-hud{gap:20px;color:#e5c998;font:600 12px system-ui;}
.er-hud-soft{color:#9ea7ae;}
.er-eyebrow{font:700 10px/1.4 system-ui;letter-spacing:.25em;color:#cda96e;text-transform:uppercase;margin:0 0 9px;}
.er-game-head h1{font:500 clamp(28px,3.1vw,43px)/1.15 Georgia,serif;letter-spacing:.012em;margin:0 0 18px;color:#f5efe5;}
.er-health-track{width:170px;height:4px;border-radius:9px;background:#392e37;overflow:hidden}.er-health-track>div{height:100%;background:linear-gradient(90deg,#b54b5b,#dc8d8c);}
.er-scene-nav{justify-content:space-between;gap:12px;padding:10px 4px 18px;}
.er-nav-btn{min-width:124px;}.er-nav-btn:disabled{opacity:.35;cursor:not-allowed;}
.er-scene-counter{text-align:center;font:600 13px system-ui;color:#e9c88c;}.er-scene-counter small{display:block;color:#8696a4;font:11px system-ui;margin-top:4px;}
.er-content{display:grid;grid-template-columns:minmax(0,1.56fr) minmax(290px,.78fr);align-items:start;gap:20px;}
.er-scene,.er-action-panel,.er-empty{border:1px solid #334250;border-radius:13px;overflow:hidden;background:linear-gradient(160deg,#172430,#111922);box-shadow:0 22px 68px #0005;}
.er-art{position:relative;background:#111d28;}.er-scene-image{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;}.er-art-placeholder{display:flex;flex-direction:column;gap:10px;justify-content:center;align-items:center;aspect-ratio:16/9;color:#d6b77a;background:radial-gradient(circle at 50% 40%,#304357,#101923);font:500 13px system-ui;}.er-art-glyph{font:52px Georgia,serif;opacity:.7;}
.er-art-overlay{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:space-between;align-items:flex-end;padding:36px 19px 14px;background:linear-gradient(0deg,#071018e8,transparent);pointer-events:none;}.er-art-overlay .er-eyebrow{margin:0;}.er-art-number{font:700 11px system-ui;letter-spacing:.12em;color:#fff2d7;}
.er-scene-meta{justify-content:space-between;flex-wrap:wrap;gap:10px;padding:12px 21px;border-bottom:1px solid #2b3843;color:#aeb7be;font:11px system-ui;}.er-status{display:flex;align-items:center;gap:8px;}.er-status i{height:6px;width:6px;background:#b5a16e;border-radius:50%;display:inline-block;}.er-status.er-failed i{background:#d86868;}.er-video-button{margin-left:7px;padding:5px 7px;font-size:10px;}
.er-prose{padding:30px clamp(22px,3.6vw,47px) 34px;}.er-prose p{color:#e1ddd3;font:clamp(16px,1.25vw,18px)/1.87 Georgia,serif;margin:0 0 1.25em;}.er-prose p:last-child{margin-bottom:0;}.er-pending-copy{color:#b9a785!important;font-style:italic!important;}.er-video{width:100%;display:block;}
.er-action-panel{padding:27px 25px;position:sticky;top:22px;}.er-action-heading{margin-bottom:21px;}.er-action-heading h2{font:400 29px/1.2 Georgia,serif;color:#f6eddf;margin:0;}.er-choices{display:grid;gap:9px;}.er-choice{width:100%;gap:13px;text-align:left;border:1px solid #3c4a58;background:#1c2a36;color:#e9e5dc;border-radius:9px;min-height:60px;padding:13px 14px;font:500 13px/1.45 system-ui;cursor:pointer;transition:background .15s,border-color .15s;}.er-choice:hover,.er-choice.active{background:#304050;border-color:#d1ac70;}.er-choice-num{font:700 11px system-ui;letter-spacing:.09em;color:#d3b37d;align-self:flex-start;margin-top:2px;}.er-choice-arrow{margin-left:auto;color:#ad9776;}.er-action-label{display:block;color:#d5b77e;font:700 11px system-ui;letter-spacing:.07em;margin:24px 0 9px;}.er-action-panel textarea{background:#0d1822;color:#f3eadd;border:1px solid #435364;border-radius:9px;padding:14px;min-height:108px;font:15px/1.5 system-ui;resize:vertical;}.er-continue{display:flex;justify-content:space-between;align-items:center;width:100%;padding:13px 17px;margin-top:15px!important;border-radius:8px;font:700 14px system-ui;}.er-continue:disabled{opacity:.5;}.er-wait{margin:13px 0 0;color:#c1b198;font:12px/1.5 system-ui;}.er-readonly{font:14px/1.65 system-ui;color:#abbac5;}.er-readonly strong{color:#eee0c7;}.er-readonly p{margin:12px 0 18px;}.er-bottom-note{text-align:center;color:#687c8a;font:11px system-ui;letter-spacing:.035em;padding:25px 0;}.er-empty{padding:40px;color:#c7b797;}
@media(max-width:900px){.er-content{grid-template-columns:minmax(0,1fr);}.er-action-panel{position:static;}.er-game-head{padding-top:12px;}.er-prose{padding:25px;}}
@media(max-width:767.98px){#app.campaign-active{padding:0 0 36px!important;}.er-game-head{padding:18px 17px 10px;}.er-game-top{margin-bottom:15px;}.er-hud{gap:9px;font-size:10px;}.er-quiet-button{padding:8px 9px;font-size:11px;}.er-scene-nav{padding:12px 12px 14px;}.er-nav-btn{min-width:auto;padding:10px;font-size:11px;}.er-scene-counter{font-size:11px;}.er-scene-counter small{font-size:9px;}.er-content{gap:11px;}.er-scene,.er-action-panel{border-radius:0;border-left:0;border-right:0;}.er-scene-image,.er-art-placeholder{aspect-ratio:4/3;}.er-action-panel{padding:23px 18px;}.er-prose{padding:25px 20px;}.er-prose p{font-size:17px;line-height:1.75;}.er-choice{min-height:57px;}.er-game-head h1{font-size:31px;}.er-bottom-note{padding:18px 12px;}}
@media(prefers-reduced-motion:reduce){.er-choice,.er-nav-btn,.er-quiet-button{transition:none;}}

/* v0.14.5: compact inline health and full-resolution scene lightbox */
.er-health-inline{display:inline-flex;align-items:center;gap:10px;white-space:nowrap}
.er-health-inline .er-health-track{width:104px;height:6px;flex:0 0 104px;margin:0;background:#44303a;border-radius:30px;overflow:hidden}
.er-health-inline .er-health-fill{display:block;height:100%;background:linear-gradient(90deg,#ac3b50,#e37782);border-radius:inherit;transition:width .25s ease}
.er-image-open{display:block;position:relative;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in;color:#f1deb6;text-align:left}
.er-image-open:focus-visible{outline:3px solid #d9b679;outline-offset:-4px;z-index:1}
.er-image-expand{position:absolute;right:14px;top:14px;background:#08121cc9;color:#fff3d7;border:1px solid #b8a17c7a;border-radius:6px;padding:7px 11px;font:600 11px system-ui;opacity:0;transition:opacity .15s ease;pointer-events:none}
.er-image-open:hover .er-image-expand,.er-image-open:focus-visible .er-image-expand{opacity:1}
.er-image-lightbox{position:fixed;inset:0;z-index:20000;background:#05090df5;display:flex;align-items:center;justify-content:center;padding:70px 24px 55px}
.er-image-lightbox img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;box-shadow:0 20px 80px #000b;border-radius:5px}
.er-image-close{position:absolute;top:16px;right:20px;background:#1a2530;border:1px solid #5e6672;color:#fff2df;border-radius:8px;padding:10px 14px;font:600 13px system-ui;cursor:pointer}
.er-image-close:focus-visible{outline:2px solid #d9b679;outline-offset:3px}
.er-lightbox-caption{position:absolute;bottom:19px;color:#cfb383;font:600 10px system-ui;letter-spacing:.18em}
@media(max-width:767.98px){.er-hud{flex-wrap:wrap;justify-content:flex-end}.er-health-inline{gap:6px}.er-health-inline .er-health-track{width:74px;flex-basis:74px}.er-image-expand{opacity:1;top:8px;right:8px;font-size:10px}.er-image-lightbox{padding:60px 9px 48px}.er-image-close{top:9px;right:9px}}

/* v0.14.6 — persistent inventory card in cinematic single-scene layout */
.er-inventory-card{grid-column:2;background:linear-gradient(145deg,#182633,#131d28);border:1px solid #354654;border-radius:12px;padding:20px 22px;margin-top:-7px}
.er-inventory-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.er-inventory-head h3{font:400 22px/1.2 Georgia,serif;color:#f4e4c7;margin:5px 0 0}
.er-inventory-head .er-eyebrow{margin:0}
.er-inventory-count{font:500 11px system-ui;color:#8e9ea8}
.er-inventory-summary{font:13px/1.5 system-ui;color:#d9e0e3}
.er-inventory-list{display:grid;gap:8px}
.er-inventory-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;background:#111e29;border:1px solid #344453;border-radius:7px}
.er-inventory-item b{color:#dfc28a;font:700 12px system-ui}
.er-inventory-empty,.er-inventory-error{margin:0;color:#a7b4c1;font:13px/1.6 system-ui}
.er-inventory-error{color:#e2b37e}
.er-inventory-more{font-size:12px;color:#c4aa7e;margin:12px 0 0}
.er-ground-summary{margin-top:12px}
.er-ground-button{border:0;background:none;color:#d9b77f;font:500 12px system-ui;padding:3px 0;text-align:left}
.er-ground-button:hover{text-decoration:underline}
@media(max-width:900px){.er-inventory-card{grid-column:1;margin-top:0}}
@media(max-width:767.98px){.er-inventory-card{border-radius:0;border-left:0;border-right:0;padding:19px 18px}.er-inventory-head h3{font-size:20px}}


/* v0.14.8 — immersive game shell and unified HUD */
:root{--er-ink:#080d13;--er-void:#0c141d;--er-steel:#253442;--er-brass:#cbab74;--er-parchment:#f1e5d2}
body:has(.er-game){background:radial-gradient(ellipse 85% 52% at 50% -12%,#26384a 0%,#0d1621 51%,#070c12 100%);background-attachment:fixed}
body:has(.er-game)::before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.16;background-image:repeating-linear-gradient(90deg,transparent 0,transparent 83px,#9db8cb09 84px),repeating-linear-gradient(0deg,transparent 0,transparent 83px,#9db8cb06 84px);z-index:-1}
body:has(.er-game) .shell{max-width:1580px;width:100%;min-height:100vh}
.game-bar{min-height:78px;padding:10px clamp(16px,3.4vw,52px);max-width:none;background:linear-gradient(90deg,#0a1119f8,#111e29f6 50%,#0a1119f8);border-bottom:1px solid #6e60483d;box-shadow:0 16px 65px #0005;gap:22px}
.game-bar .game-logo{width:clamp(164px,15vw,220px);max-height:57px}
.game-top-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:10px;min-width:0;font-family:system-ui,sans-serif}
.game-top-actions button,.game-top-actions a{appearance:none;text-decoration:none!important;display:inline-flex;align-items:center;justify-content:center;gap:7px;line-height:1;white-space:nowrap;margin:0!important;min-height:39px;box-sizing:border-box;font:600 12px/1 system-ui;border-radius:7px;transition:background .15s,border-color .15s,color .15s}
.game-wallet{padding:0 12px;border:1px solid transparent;background:transparent;color:#e9cc93}
.game-wallet:hover{border-color:#504634;background:#172430}.game-wallet-icon{color:#e8c17c;font-size:16px}.game-wallet-label{color:#a7b3b8;font-weight:500}
.game-header-divider{height:22px;width:1px;background:#59627178;flex:none;margin:0 2px}
.game-header-control{border:1px solid #425362;background:#14212e;color:#d8e0e4;padding:0 14px}
.game-header-control:hover{background:#253646;border-color:#b79b6a;color:#f8f0e2}
.game-header-credits{background:linear-gradient(120deg,#d9bc82,#bb9259);border-color:#e3c68e;color:#1a1a17;font-weight:750!important;padding:0 17px}
.game-header-credits:hover{color:#13191f;background:#e8cb96}
.game-header-admin{color:#ead3a5;border-color:#806b46}
.game-header-exit{color:#b1bbc4}
#app.campaign-active{max-width:1500px;padding:24px clamp(20px,3.5vw,54px) 52px!important}
.er-game{max-width:1380px;position:relative}
.er-game-head{padding:20px 0 10px}
.er-game-top{padding:0 0 20px;margin-bottom:22px;border-bottom:1px solid #52607341;align-items:center}
.er-quiet-button,.er-nav-btn{border-color:#48505b;background:linear-gradient(180deg,#1a2935,#131d29);border-radius:6px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:12px;padding:9px 15px}
.er-hud{gap:16px;flex-wrap:wrap;justify-content:flex-end}
.er-health-inline{padding:8px 12px;border:1px solid #46505a66;border-radius:6px;background:#13212b;gap:12px}
.er-health-inline .er-health-track{height:6px;width:106px;flex-basis:106px}
.er-game-head h1{font-size:clamp(31px,3.4vw,50px);font-weight:400;letter-spacing:.008em;margin-bottom:10px;text-wrap:balance}
.er-game-head>.er-eyebrow{font-size:11px;letter-spacing:.25em;margin-bottom:10px}
.er-scene-nav{padding:14px 0 19px;gap:18px}
.er-scene-counter{font-size:13px;letter-spacing:.03em}
.er-scene-counter small{font-size:11px;margin-top:6px}
.er-content{grid-template-columns:minmax(0,1.72fr) minmax(330px,.82fr);gap:22px;align-items:start}
.er-scene,.er-action-panel,.er-inventory-card{background:linear-gradient(150deg,#192733,#101922);border:1px solid #405062a1;border-radius:10px;box-shadow:0 26px 65px #0006,0 1px 0 #e6c88b0a}
.er-art{background:#08131d}
.er-scene-image{aspect-ratio:16/9;object-position:center center}
.er-art-overlay{padding:48px 22px 16px;background:linear-gradient(0deg,#080f18ec,#080f1830 58%,transparent)}
.er-art-overlay .er-eyebrow,.er-art-number{font-size:10px;letter-spacing:.22em}
.er-scene-meta{min-height:45px;background:#111d27;padding:10px 22px}
.er-prose{padding:33px clamp(28px,4.4vw,58px) 42px}
.er-prose p{font-size:clamp(17px,1.16vw,19px);line-height:1.92;color:#ede5d8;margin-bottom:1.3em;max-width:77ch}
.er-action-panel{padding:27px 25px 28px;top:22px}
.er-action-heading{margin-bottom:22px;padding-bottom:17px;border-bottom:1px solid #52607352}
.er-action-heading .er-eyebrow{margin-bottom:9px}
.er-action-heading h2{font-size:clamp(25px,2vw,30px);letter-spacing:.004em}
.er-choice{background:linear-gradient(145deg,#202f3e,#1b2936);border-color:#3e5060;border-radius:7px;min-height:68px;padding:16px 15px;font-size:13px;line-height:1.55;box-shadow:inset 3px 0 0 transparent}
.er-choice:hover,.er-choice:focus-visible,.er-choice.active{background:#293d4e;border-color:#c8aa74;box-shadow:inset 3px 0 0 #c8aa74;outline:none;transform:translateX(1px)}
.er-choice-num{color:#e2c48c;font-size:11px}
.er-action-label{margin-top:25px;font-size:10px;letter-spacing:.14em;text-transform:uppercase}
.er-action-panel textarea{border-color:#435666;min-height:125px;background:#0d1822;border-radius:7px}
.er-continue{min-height:53px;border-radius:7px;letter-spacing:.035em;box-shadow:0 5px 25px #0003}
.er-inventory-card{padding:22px 24px;margin-top:0}
.er-inventory-item{border-color:#3d4b58;background:#121e29}
.er-bottom-note{padding:33px 0 12px;font-size:11px;color:#91a0aa}
.er-image-expand{opacity:1;background:#0a111bc7;border-color:#99835a88}
@media(min-width:901px){.er-game-head{padding-top:10px}}
@media(max-width:1100px) and (min-width:901px){.er-content{grid-template-columns:minmax(0,1.4fr) minmax(305px,.85fr);gap:15px}.er-action-panel{padding:22px 19px}}
@media(max-width:900px){.er-content{grid-template-columns:1fr}.er-inventory-card{grid-column:1}.er-action-panel{position:static}.er-game-head{padding-top:10px}}
@media(max-width:767.98px){
 .game-bar{min-height:64px;padding:8px 12px;gap:7px}
 .game-top-actions{gap:5px}
 .game-top-actions button,.game-top-actions a{min-height:34px;font-size:11px;padding:0 8px}
 .game-wallet-label,.game-header-divider{display:none}
 .game-header-admin{font-size:0!important;padding:0 9px!important}
 .game-header-admin::after{content:'⚙';font-size:16px}
 .game-header-exit{font-size:0!important;padding:0 9px!important}
 .game-header-exit::after{content:'↪';font-size:16px}
 .game-bar .game-logo{width:clamp(108px,29vw,161px);max-height:43px}
 #app.campaign-active{padding:0 0 36px!important}
 .er-game-head{padding:22px 17px 7px}
 .er-game-top{gap:9px;align-items:flex-start;margin-bottom:16px;padding-bottom:14px}
 .er-hud{gap:8px;max-width:63%}
 .er-health-inline{padding:6px 8px;gap:6px}.er-health-inline .er-health-track{width:60px;flex-basis:60px}
 .er-game-head h1{font-size:33px}
 .er-scene-nav{padding:11px 15px 16px}
 .er-scene,.er-action-panel,.er-inventory-card{border-radius:0;border-left:0;border-right:0}
 .er-content{gap:12px}
 .er-prose{padding:25px 20px 29px}.er-prose p{font-size:17px;line-height:1.8}
 .er-scene-image{aspect-ratio:4/3}
 .er-action-panel{padding:24px 18px}
 .er-inventory-card{padding:20px 18px}
}
@media(max-width:390px){.game-bar{padding:7px 8px}.game-top-actions{gap:3px}.game-top-actions button,.game-top-actions a{padding:0 6px}.game-bar .game-logo{width:106px}.er-hud{max-width:69%}.er-health-inline .er-health-track{width:45px;flex-basis:45px}}

/* v0.14.9 — Unified scene and action sidebar */
.er-content{grid-template-columns:minmax(0,1.72fr) minmax(330px,.82fr);align-items:start}
.er-game-sidebar{grid-column:2;display:flex;flex-direction:column;gap:12px;min-width:0;position:sticky;top:18px;max-height:calc(100dvh - 36px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#4c6270 transparent}
.er-game-sidebar .er-action-panel{position:static;top:auto;flex:0 0 auto}
.er-game-sidebar .er-inventory-card{position:static;grid-column:auto;margin-top:0;flex:0 0 auto}
.er-edit-hint{font-weight:400;letter-spacing:normal;text-transform:none;color:#91a2b0}
.er-choice.active{border-color:#d8b77c;box-shadow:inset 3px 0 0 #d8b77c}
.er-action-panel textarea:focus{border-color:#d0ae76;box-shadow:0 0 0 2px #d0ae7624;outline:none}
@media(min-width:901px){.er-scene .er-prose{max-height:clamp(290px,47dvh,590px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#4c6270 transparent}.er-game-sidebar .er-inventory-list{gap:6px}.er-game-sidebar .er-inventory-item{padding:8px 10px}}
@media(max-width:900px){.er-content{grid-template-columns:minmax(0,1fr)}.er-game-sidebar{grid-column:1;position:static;max-height:none;overflow:visible;gap:12px}.er-scene .er-prose{max-height:none;overflow:visible}}

/* v0.15.0 — player action shown immediately before its scene narrative */
.er-player-action{margin:0 0 22px;padding:0 0 17px;border-bottom:1px solid rgba(177,139,70,.22)}
.er-player-action p{margin:0!important;color:#b9924b!important;font-style:italic;font-size:clamp(15px,1.1vw,17px)!important;line-height:1.65!important;white-space:pre-wrap;overflow-wrap:anywhere}

/* v0.15.3 public library and textured site surface */
html{background:#080e17}body,body:has(.er-game){background:linear-gradient(180deg,rgba(7,13,22,.45),rgba(6,11,19,.62)),url('realm-texture.webp') center top / 1024px 512px repeat;background-attachment:fixed;color:#eee5d8}
.er-landing,.er-worlds-page{padding:26px 0 65px}.er-landing-hero{min-height:345px;display:flex;flex-direction:column;justify-content:center;padding:65px clamp(24px,5vw,84px);border:1px solid #5c5b555c;border-radius:14px;background:radial-gradient(ellipse at 80% 10%,#1d36598a,transparent 55%),linear-gradient(115deg,#0d1926ec,#0a111edc);box-shadow:0 20px 70px #0008;margin:0 0 56px}.er-landing-hero h1{font:normal clamp(2.6rem,6vw,5rem)/1.08 Georgia,serif;max-width:660px;color:#f6e9d3}.er-landing-hero>p:not(.er-eyebrow){max-width:580px;color:#c1cbd1;font-size:1.1rem;line-height:1.75}.er-landing-actions{display:flex;flex-wrap:wrap;gap:22px;align-items:center;margin-top:18px}.er-landing-actions span,.er-catalog-head>span{color:#9aaebd;font-size:.83rem}.er-catalog-section{margin:30px 0 65px}.er-catalog-head{display:flex;align-items:end;justify-content:space-between;gap:22px;margin-bottom:24px}.er-catalog-head h2{font:normal clamp(1.8rem,3vw,2.4rem) Georgia,serif;color:#f2e4ce}.er-public-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.er-world-card{overflow:hidden;border:1px solid #4a5763;border-radius:12px;background:linear-gradient(160deg,#152330f7,#101924f6);box-shadow:0 10px 35px #0006;display:flex;flex-direction:column;transition:transform .18s,border-color .18s}.er-world-card:hover{transform:translateY(-4px);border-color:var(--world-accent)}.er-world-art{min-height:154px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 30%,color-mix(in srgb,var(--world-accent),transparent 61%),transparent 58%),linear-gradient(125deg,#1c3244,#0d1726 75%);border-bottom:1px solid #4d5867}.er-world-art:after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(115deg,transparent 0 23px,#fff1 24px,#fff0 25px);opacity:.17}.er-world-glyph{font:normal 5rem Georgia,serif;color:var(--world-accent);text-shadow:0 0 50px var(--world-accent)}.er-world-genre{position:absolute;top:15px;left:16px;font:600 .64rem system-ui;letter-spacing:.11em;text-transform:uppercase;color:#f6e5ca}.er-world-details{padding:20px;display:flex;flex:1;flex-direction:column}.er-world-details small{color:var(--world-accent);font:.65rem system-ui;letter-spacing:.12em}.er-world-details h3{color:#f5ead8;font:normal 1.5rem Georgia,serif;margin:9px 0}.er-world-tagline{font-size:.94rem;color:#d7b980;margin-bottom:12px}.er-world-desc{font:.87rem/1.63 system-ui;color:#acbac5;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.er-world-start{border:1px solid var(--world-accent);border-radius:6px;color:#f5e9d9;background:#202d3a;min-height:44px;padding:10px 14px;display:flex;justify-content:space-between;align-items:center;margin-top:auto;font:600 .83rem system-ui}.er-world-start:hover{background:#344353}.er-login-box{max-width:680px;margin:0 auto}.er-worlds-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:10px 0 32px}.er-worlds-intro h1{font-size:2.5rem;color:#f7e9d2}.er-saved-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.er-save-card{border:1px solid #4b5965;border-radius:9px;background:#1c2a37e8;color:#eee5d8;text-align:left;padding:22px;display:flex;flex-direction:column;gap:10px}.er-save-card:hover{border-color:#c5a36b}.er-save-card strong{font:normal 1.3rem Georgia,serif}.er-save-card small{color:#b7bfca}.er-saved-section{margin-bottom:45px}.er-template-setup .er-template-objective{background:#283442;border-left:3px solid #c7a775;padding:14px}.er-login-box h2{font:normal 1.9rem Georgia,serif}
@media(max-width:900px){.er-public-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.er-public-grid,.er-saved-grid{grid-template-columns:1fr}.er-landing-hero{min-height:300px;padding:36px 24px}.er-worlds-intro,.er-catalog-head{align-items:start;flex-direction:column}.er-world-art{min-height:132px}body{background-attachment:scroll}}

/* v0.15.8 — edge-to-edge site navigation; page content stays centered. */
body>.game-bar{width:100%;max-width:none;margin:0;position:relative;z-index:101;padding-left:clamp(16px,3vw,58px);padding-right:clamp(16px,3vw,58px)}
body>.shell{margin-left:auto;margin-right:auto}
@media(max-width:767.98px){body>.game-bar{position:sticky;top:0;padding-left:12px;padding-right:12px}}


/* v0.16.0 — premium game skin pass */
:root{
  --er-bronze-1:#f1d6a1;
  --er-bronze-2:#caa56a;
  --er-bronze-3:#7c5b31;
  --er-bronze-4:#3b2b18;
  --er-steel-1:#31485b;
  --er-steel-2:#12202c;
  --er-ink-2:#09111a;
  --er-panel-edge:#6d5b3d;
  --er-panel-line:#2b3f50;
}

body:has(.er-game)::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:-1;
  opacity:.22;
  background:
    radial-gradient(circle at 18% 9%, rgba(223,180,109,.11), transparent 18%),
    radial-gradient(circle at 82% 16%, rgba(113,151,184,.1), transparent 19%),
    radial-gradient(circle at 50% 100%, rgba(22,39,56,.35), transparent 28%);
}

.game-bar{
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,0) 18%),
    linear-gradient(90deg, #071018, #10202d 18%, #10202d 82%, #071018);
  border-top:1px solid rgba(224,191,129,.18);
  border-bottom:1px solid rgba(224,191,129,.16);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06), inset 0 -1px 0 rgba(0,0,0,.55), 0 18px 50px rgba(0,0,0,.42);
}
.game-bar::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(90deg, transparent, rgba(212,175,110,.09) 50%, transparent),
    repeating-linear-gradient(90deg, transparent 0 95px, rgba(255,255,255,.025) 96px, transparent 97px);
  opacity:.55;
}
.game-bar > *{position:relative;z-index:1}
.game-top-actions{gap:12px}
.game-top-actions button,.game-top-actions a,
.er-quiet-button,.er-nav-btn,.er-video-button,.er-world-start,.btn-gold{
  position:relative;
  overflow:hidden;
  border-radius:9px;
  transition:transform .12s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}
.game-top-actions button::before,.game-top-actions a::before,
.er-quiet-button::before,.er-nav-btn::before,.er-video-button::before,.er-world-start::before,.btn-gold::before{
  content:"";
  position:absolute;
  inset:1px 1px auto 1px;
  height:46%;
  border-radius:8px 8px 16px 16px;
  background:linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0));
  pointer-events:none;
}
.game-wallet{
  min-width:124px;
  justify-content:flex-start;
  padding:0 14px;
  border:1px solid rgba(110,91,56,.72);
  background:linear-gradient(180deg, rgba(42,53,65,.92), rgba(13,21,31,.95));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), inset 0 -1px 0 rgba(0,0,0,.55), 0 8px 22px rgba(0,0,0,.18);
}
.game-wallet:hover,
.game-top-actions button:hover,.game-top-actions a:hover,
.er-quiet-button:hover,.er-nav-btn:hover:not(:disabled),.er-video-button:hover,.er-world-start:hover,.btn-gold:hover{
  transform:translateY(-1px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.11), inset 0 -1px 0 rgba(0,0,0,.55), 0 12px 26px rgba(0,0,0,.28);
}
.game-wallet:active,
.game-top-actions button:active,.game-top-actions a:active,
.er-quiet-button:active,.er-nav-btn:active,.er-video-button:active,.er-world-start:active,.btn-gold:active{
  transform:translateY(1px);
  box-shadow:inset 0 3px 8px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.05);
}
.game-header-control,
.er-quiet-button,.er-nav-btn,.er-video-button{
  border:1px solid rgba(83,103,121,.84);
  background:linear-gradient(180deg, #223344, #16222d 54%, #101922);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), inset 0 -1px 0 rgba(0,0,0,.55), 0 8px 22px rgba(0,0,0,.18);
}
.game-header-control:hover,.er-quiet-button:hover,.er-nav-btn:hover:not(:disabled),.er-video-button:hover{
  border-color:#d6b57f;
  color:#fff4dd;
  background:linear-gradient(180deg, #2b4054, #1c2d3c 55%, #15202b);
}
.game-header-credits,.btn-gold,
.er-continue{
  color:#14110d!important;
  border-color:#e6c98e!important;
  background:linear-gradient(180deg, #e6c688, #c79a57 56%, #a67839)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.32), inset 0 -1px 0 rgba(92,61,24,.48), 0 10px 24px rgba(0,0,0,.22)!important;
}
.game-header-credits:hover,.btn-gold:hover,.er-continue:hover{
  background:linear-gradient(180deg, #f0d39c, #d4a662 56%, #b18345)!important;
  color:#100d09!important;
}
.game-header-admin{min-width:72px;text-align:center}
.game-header-exit{min-width:78px;text-align:center}

.er-game-head,
.er-scene-nav,
.er-scene,
.er-action-panel,
.er-inventory-card,
.er-world-card,
.er-landing-hero,
.panel.intro{
  position:relative;
}
.er-scene,
.er-action-panel,
.er-inventory-card,
.er-world-card,
.er-landing-hero,
.panel.intro{
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,0) 18%),
    linear-gradient(155deg, rgba(26,40,53,.98), rgba(12,21,30,.98));
  border:1px solid rgba(88,112,133,.62);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    inset 0 0 0 1px rgba(0,0,0,.24),
    0 18px 45px rgba(0,0,0,.34);
}
.er-scene::before,
.er-action-panel::before,
.er-inventory-card::before,
.er-world-card::before,
.er-landing-hero::before,
.panel.intro::before{
  content:"";
  position:absolute;
  inset:8px;
  border:1px solid rgba(199,164,103,.17);
  border-radius:inherit;
  pointer-events:none;
}
.er-scene::after,
.er-action-panel::after,
.er-inventory-card::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  background:
    radial-gradient(circle at top left, rgba(216,181,120,.16), transparent 15%),
    radial-gradient(circle at top right, rgba(216,181,120,.12), transparent 13%),
    radial-gradient(circle at bottom left, rgba(103,132,158,.12), transparent 13%),
    radial-gradient(circle at bottom right, rgba(103,132,158,.09), transparent 12%);
}
.er-scene-nav{
  align-items:center;
  padding:16px 12px 22px;
}
.er-scene-counter{
  min-width:200px;
  text-align:center;
  padding:10px 16px;
  border:1px solid rgba(72,96,114,.58);
  border-radius:999px;
  background:linear-gradient(180deg, rgba(31,45,60,.84), rgba(13,22,32,.92));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 8px 18px rgba(0,0,0,.18);
}
.er-art{
  border-bottom:1px solid rgba(206,169,103,.2);
}
.er-scene-image{
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.3);
}
.er-art-overlay{
  background:linear-gradient(0deg, rgba(5,10,16,.96), rgba(5,10,16,.15) 54%, transparent);
}
.er-scene-meta{
  border-top:1px solid rgba(255,255,255,.025);
  border-bottom:1px solid rgba(0,0,0,.34);
  background:linear-gradient(180deg, #12202c, #0d171f);
}
.er-prose{
  background:linear-gradient(180deg, rgba(14,23,33,.35), rgba(14,23,33,0));
}
.er-prose p{
  text-shadow:0 1px 0 rgba(0,0,0,.26);
}
.er-action-heading{
  margin:-2px -2px 22px;
  padding:16px 18px 18px;
  border:1px solid rgba(203,168,108,.18);
  border-radius:10px;
  background:linear-gradient(180deg, rgba(34,48,63,.82), rgba(13,21,30,.72));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.er-action-heading h2,
.er-game-head h1,
.er-inventory-head h3{
  text-shadow:0 1px 0 rgba(0,0,0,.4), 0 0 18px rgba(212,172,101,.05);
}
.er-choice{
  display:grid;
  grid-template-columns:44px 1fr 22px;
  align-items:center;
  gap:12px;
  min-height:74px;
  padding:14px 15px;
  border:1px solid rgba(77,102,123,.8);
  border-radius:12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0) 24%),
    linear-gradient(145deg, #203141, #182531 58%, #121d27);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06), inset 0 -1px 0 rgba(0,0,0,.46), 0 8px 18px rgba(0,0,0,.14);
}
.er-choice:hover,
.er-choice:focus-visible,
.er-choice.active{
  background:
    linear-gradient(180deg, rgba(241,214,161,.08), rgba(255,255,255,0) 26%),
    linear-gradient(145deg, #294056, #1e3141 58%, #16232e);
  border-color:#d2b178;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), inset 0 -1px 0 rgba(0,0,0,.48), 0 12px 24px rgba(0,0,0,.22), 0 0 0 1px rgba(210,177,120,.14);
  transform:translateX(2px) translateY(-1px);
}
.er-choice-num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid rgba(216,182,121,.45);
  background:linear-gradient(180deg, rgba(216,182,121,.18), rgba(32,47,63,.24));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
  font:700 11px/1 system-ui;
  letter-spacing:.1em;
}
.er-choice-arrow{
  color:#d8b77c;
  font-size:16px;
  opacity:.95;
}
.er-action-panel textarea{
  border:1px solid rgba(77,104,126,.78);
  background:linear-gradient(180deg, rgba(8,16,24,.98), rgba(11,20,28,.98));
  box-shadow:inset 0 2px 8px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.03);
}
.er-action-panel textarea:focus{
  border-color:#d5b47c;
  box-shadow:0 0 0 2px rgba(213,180,124,.14), inset 0 2px 8px rgba(0,0,0,.35);
}
.er-continue{
  min-height:56px;
}
.er-inventory-head{
  align-items:flex-start;
  gap:14px;
}
.er-inventory-item{
  position:relative;
  border-radius:10px;
  background:linear-gradient(180deg, rgba(29,42,56,.88), rgba(16,26,35,.94));
  border-color:rgba(77,102,123,.7);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04), 0 7px 16px rgba(0,0,0,.12);
}
.er-bottom-note{
  color:#98a9b4;
  letter-spacing:.02em;
}
.er-image-expand{
  border-radius:999px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 10px 18px rgba(0,0,0,.22);
}
.er-world-start{
  background:linear-gradient(180deg, #223344, #182633);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06), inset 0 -1px 0 rgba(0,0,0,.45), 0 10px 18px rgba(0,0,0,.14);
}
.er-world-start:hover{color:#fff7ea}

@media (max-width: 900px){
  .er-scene-nav{padding-left:0;padding-right:0}
  .er-game-sidebar{top:0}
}
@media (max-width: 767.98px){
  .game-bar{padding-left:12px;padding-right:12px}
  .game-wallet{min-width:auto;padding:0 10px}
  .game-top-actions{gap:6px}
  .game-top-actions button,.game-top-actions a{border-radius:8px}
  .er-scene::before,.er-action-panel::before,.er-inventory-card::before{inset:6px}
  .er-choice{grid-template-columns:38px 1fr 18px;gap:10px;padding:13px 13px;min-height:68px;border-radius:11px}
  .er-choice-num{width:30px;height:30px;border-radius:8px}
}


/* v0.16.2 — mobile scene navigation containment */
@media(max-width:600px){
  .er-game,.er-content,.er-scene-nav{min-width:0;max-width:100%;}
  .er-scene-nav{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr) minmax(0,1fr);gap:6px;padding:10px 9px 14px;align-items:center;}
  .er-nav-btn{min-width:0!important;width:100%;max-width:100%;padding:9px 3px;font-size:clamp(10px,2.65vw,12px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .er-scene-counter{box-sizing:border-box;min-width:0!important;width:100%;max-width:100%;padding:9px 3px;border-radius:8px;overflow:hidden;font-size:clamp(10px,2.6vw,12px);line-height:1.2;}
  .er-scene-counter span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .er-scene-counter small{display:none;}
}


/* v0.16.3 — stronger 3D game button treatment */
:root{
  --er-btn-amber-top:#ffd97a;
  --er-btn-amber-mid:#f2b94b;
  --er-btn-amber-low:#cc7d1b;
  --er-btn-amber-base:#5f2f0e;
  --er-btn-olive-top:#d9e56b;
  --er-btn-olive-mid:#98ae2c;
  --er-btn-olive-low:#6d7316;
  --er-btn-dark-top:#526779;
  --er-btn-dark-mid:#253848;
  --er-btn-dark-low:#14212b;
  --er-btn-frame:#1c130d;
}

/* shared 3D button shell */
.game-top-actions button,.game-top-actions a,
.er-quiet-button,.er-nav-btn,.er-video-button,.er-world-start,.btn-gold,
.er-continue,.inventory-panel button,.inv-entry button,.skill-controls button,
.er-manage-items,.er-ground-button{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border-radius:8px;
  border:1px solid rgba(42,29,18,.95)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -2px 0 rgba(0,0,0,.38),
    0 0 0 1px rgba(232,189,113,.17),
    0 8px 0 rgba(7,10,15,.32),
    0 14px 22px rgba(0,0,0,.26)!important;
}
.game-top-actions button::after,.game-top-actions a::after,
.er-quiet-button::after,.er-nav-btn::after,.er-video-button::after,.er-world-start::after,.btn-gold::after,
.er-continue::after,.inventory-panel button::after,.inv-entry button::after,.skill-controls button::after,
.er-manage-items::after,.er-ground-button::after{
  content:"";
  position:absolute;
  inset:2px;
  border-radius:6px;
  pointer-events:none;
  border:1px solid rgba(255,255,255,.06);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), inset 0 -1px 0 rgba(0,0,0,.25);
}
.game-top-actions button:active,.game-top-actions a:active,
.er-quiet-button:active,.er-nav-btn:active,.er-video-button:active,.er-world-start:active,.btn-gold:active,
.er-continue:active,.inventory-panel button:active,.inv-entry button:active,.skill-controls button:active,
.er-manage-items:active,.er-ground-button:active{
  transform:translateY(3px)!important;
  box-shadow:
    inset 0 3px 7px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 0 1px rgba(232,189,113,.13),
    0 4px 0 rgba(7,10,15,.34),
    0 8px 16px rgba(0,0,0,.22)!important;
}

/* dark steel controls */
.game-header-control,
.er-quiet-button,.er-nav-btn,.er-video-button,.er-world-start,.inventory-panel button,.inv-entry button,.skill-controls button,
.er-manage-items,.er-ground-button{
  color:#eef1f3!important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,0) 18%),
    linear-gradient(180deg, var(--er-btn-dark-top), var(--er-btn-dark-mid) 54%, var(--er-btn-dark-low))!important;
  text-shadow:0 1px 0 rgba(0,0,0,.7);
}
.game-header-control:hover,
.er-quiet-button:hover,.er-nav-btn:hover:not(:disabled),.er-video-button:hover,.er-world-start:hover,
.inventory-panel button:hover,.inv-entry button:hover,.skill-controls button:hover,
.er-manage-items:hover,.er-ground-button:hover{
  color:#fff6e8!important;
  border-color:#2d2013!important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 18%),
    linear-gradient(180deg, #627a90, #31485b 54%, #1a2b37)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.24),
    inset 0 -2px 0 rgba(0,0,0,.42),
    0 0 0 1px rgba(240,201,132,.22),
    0 9px 0 rgba(7,10,15,.34),
    0 18px 26px rgba(0,0,0,.32)!important;
}

/* gold / primary buttons */
.game-header-credits,.btn-gold,.er-continue{
  color:#241307!important;
  border-color:#5d3410!important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,0) 19%),
    linear-gradient(180deg, var(--er-btn-amber-top), var(--er-btn-amber-mid) 45%, var(--er-btn-amber-low) 72%, var(--er-btn-amber-base))!important;
  text-shadow:0 1px 0 rgba(255,246,225,.48);
}
.game-header-credits:hover,.btn-gold:hover,.er-continue:hover{
  color:#1f1005!important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,0) 20%),
    linear-gradient(180deg, #ffe8a0, #ffc95d 44%, #ea8f22 71%, #713710)!important;
}

/* special nav / scene buttons slightly chunkier */
.er-nav-btn,.er-quiet-button,.er-video-button,.er-continue,.game-header-control{letter-spacing:.02em}
.er-nav-btn,.er-quiet-button,.er-video-button,.game-header-control{min-height:42px}
.er-continue{min-height:58px;border-radius:10px;font-weight:800}
.er-video-button{font-size:10px;padding:7px 9px;border-radius:999px}

/* choices become command tiles */
.er-choice{
  position:relative;
  border:1px solid #3b2a19!important;
  border-radius:10px!important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0) 18%),
    linear-gradient(180deg, #405264, #233342 54%, #16222d)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -2px 0 rgba(0,0,0,.42),
    0 0 0 1px rgba(224,184,112,.13),
    0 8px 0 rgba(7,10,15,.28),
    0 12px 18px rgba(0,0,0,.18)!important;
  transform:translateY(0)!important;
}
.er-choice::before{
  content:"";
  position:absolute;
  inset:2px;
  border-radius:8px;
  pointer-events:none;
  border:1px solid rgba(255,255,255,.05);
}
.er-choice:hover,.er-choice:focus-visible,.er-choice.active{
  border-color:#6a471d!important;
  color:#fff5e5;
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,0) 18%),
    linear-gradient(180deg, #556d84, #2e4658 52%, #1c2d39)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.15),
    inset 0 -2px 0 rgba(0,0,0,.45),
    0 0 0 1px rgba(232,190,116,.22),
    0 10px 0 rgba(7,10,15,.3),
    0 16px 22px rgba(0,0,0,.23)!important;
  transform:translateY(-1px)!important;
}
.er-choice:active{
  transform:translateY(3px)!important;
  box-shadow:
    inset 0 3px 7px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 0 1px rgba(232,190,116,.16),
    0 4px 0 rgba(7,10,15,.32),
    0 8px 16px rgba(0,0,0,.2)!important;
}
.er-choice-num{
  width:30px;
  height:30px;
  border-radius:7px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(82,55,23,.85);
  background:
    linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0) 20%),
    linear-gradient(180deg, #f2cb7c, #c38828 62%, #6f4111);
  color:#221106!important;
  text-shadow:0 1px 0 rgba(255,247,227,.4);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22), 0 3px 8px rgba(0,0,0,.18);
}
.er-choice-arrow{color:#f2cb7c!important;text-shadow:0 1px 0 rgba(0,0,0,.5)}

/* mobile: keep depth without overflow */
@media(max-width:767.98px){
  .er-nav-btn,.er-quiet-button,.game-header-control{min-height:40px}
  .er-choice{box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -2px 0 rgba(0,0,0,.42),
    0 0 0 1px rgba(224,184,112,.12),
    0 6px 0 rgba(7,10,15,.25),
    0 10px 16px rgba(0,0,0,.15)!important;}
}

/* v0.17.0 · Cinematic Realm Interface: one visual language throughout */
:root{--realm-gold:#cfa965;--realm-ivory:#f2e8d6;--realm-muted:#9baebb;--realm-iron:#536777;--realm-ink:#0c1620}
body:has(.er-game){background:linear-gradient(180deg,rgba(5,10,16,.48),rgba(5,10,16,.16) 36%,rgba(5,10,16,.66)),url('realm-texture.webp') center top/1024px 512px repeat}
body:has(.er-game) .game-bar{border-bottom:1px solid #a58c5b66;background:linear-gradient(180deg,#172635,#0c161f 95%);box-shadow:inset 0 1px #ffffff13,0 12px 40px #0008}
#app.campaign-active{max-width:1480px;padding:17px clamp(15px,3vw,46px) 50px!important}
.er-game{max-width:1380px}
.er-game-head{padding:16px 1px 10px}
.er-game-top{padding-bottom:17px;margin-bottom:21px;border-image:linear-gradient(90deg,transparent,#8b7752 14%,#8b7752 86%,transparent) 1}
.er-game-head>.er-eyebrow{color:#ccae77;letter-spacing:.27em}
.er-game-head h1{font-size:clamp(33px,3.35vw,49px);color:var(--realm-ivory);text-shadow:0 3px 12px #0008}
.er-scene-nav{padding:10px 0 18px;gap:12px}
.er-scene-counter{border:0;border-radius:3px;background:transparent;box-shadow:none;padding:5px 12px;min-width:0;color:var(--realm-gold)}
.er-scene-counter:before,.er-scene-counter:after{content:'✦';display:inline-block;margin:0 9px;color:#8c754e;font-size:9px}
.er-scene-counter small{margin-top:2px;color:#95a3af}
.er-content{gap:20px}
.er-game-sidebar{gap:15px;max-height:calc(100dvh - 28px);padding:1px;scrollbar-width:thin}
.er-scene,.er-action-panel,.er-inventory-card{position:relative;isolation:isolate;overflow:hidden;border-radius:8px;border:1px solid #6b6859!important;background:linear-gradient(150deg,#172631,#0c1721 70%)!important;box-shadow:0 0 0 1px #050a0e,0 0 0 2px #a68a5040,inset 0 1px 0 #ffffff16,0 19px 36px #0009!important}
.er-scene::before,.er-action-panel::before,.er-inventory-card::before{content:'';position:absolute;pointer-events:none;z-index:2;inset:6px;border:1px solid #b497543c;border-radius:3px;box-shadow:inset 0 0 0 1px #0004}
.er-scene::after,.er-action-panel::after,.er-inventory-card::after{content:'';position:absolute;pointer-events:none;z-index:3;inset:0;border-radius:inherit;background:radial-gradient(circle at 0 0,#e0bc7f88 0 1px,transparent 3px),radial-gradient(circle at 100% 0,#e0bc7f88 0 1px,transparent 3px),radial-gradient(circle at 0 100%,#e0bc7f88 0 1px,transparent 3px),radial-gradient(circle at 100% 100%,#e0bc7f88 0 1px,transparent 3px);background-size:22px 22px;background-position:left top,right top,left bottom,right bottom;background-repeat:no-repeat}
.er-scene .er-art{margin:7px 7px 0;overflow:hidden;border:1px solid #5b6f79;border-radius:3px 3px 0 0;box-shadow:0 0 0 1px #070b10,0 7px 14px #0008}
.er-scene-image{aspect-ratio:16/9;object-fit:cover}
.er-art-overlay{padding:44px 18px 15px;background:linear-gradient(0deg,#050a11ee,transparent 85%)}
.er-art-overlay .er-eyebrow,.er-art-number{letter-spacing:.19em;color:#e6c482;text-shadow:0 2px 4px #000}
.er-scene-meta{margin:0 7px;border:1px solid #2b3e4c;border-top:none;background:linear-gradient(180deg,#172733,#101d26);min-height:44px;padding:8px 17px}
.er-prose{padding:29px clamp(22px,3vw,42px) 35px;background:transparent}
.er-prose p{font:normal clamp(17px,1.2vw,19px)/1.83 Georgia,serif;max-width:72ch;letter-spacing:.002em;color:#e8e2d7;text-shadow:none}
.er-player-action{border-bottom:1px solid #9674494d}
.er-action-panel{padding:19px 19px 24px;top:16px}
.er-action-heading{padding:13px 5px 15px;margin:0 0 16px;border:0;border-bottom:1px solid #aa8b545c;border-radius:0;background:transparent;box-shadow:none;text-align:center}
.er-action-heading:after{content:'✦';display:block;color:#9b7b46;font-size:11px;margin-top:8px;line-height:1}
.er-action-heading h2{font-size:clamp(24px,2vw,29px);color:#f0e4cb;letter-spacing:.01em}
.er-choices{gap:12px;padding:2px 4px 6px}
.er-choice{grid-template-columns:36px minmax(0,1fr) 15px;gap:10px;min-height:67px;padding:11px 12px;background:linear-gradient(180deg,#253746,#192a37 54%,#101e29)!important;border:1px solid #4a5e69!important;border-radius:6px!important;box-shadow:inset 0 1px #ffffff19,inset 0 -1px #0009,0 3px 0 #060d13,0 8px 12px #0005!important;transform:none!important;transition:background .17s,border-color .17s,box-shadow .17s,transform .17s}
.er-choice::before{inset:3px;border-color:#e0b9771b;border-radius:3px}
.er-choice:hover,.er-choice:focus-visible,.er-choice.active{border-color:#caa769!important;background:linear-gradient(180deg,#354a58,#253846 55%,#162632)!important;box-shadow:inset 0 1px #ffffff20,inset 0 -1px #0009,0 3px 0 #19170f,0 10px 16px #0006,0 0 0 1px #bc965038!important;transform:translateY(-1px)!important}
.er-choice:active{transform:translateY(2px)!important;box-shadow:inset 0 2px 6px #0009,0 1px 0 #060d13!important}
.er-choice-num{width:29px;height:29px;border-radius:4px;border:1px solid #96754a;background:linear-gradient(180deg,#dcc080,#98763a 50%,#48331b);color:#110f0c!important;font-size:11px}
.er-choice-arrow{font-size:13px;color:#d0ac70!important}
.er-action-label{margin:22px 3px 9px;color:#dbbc82}
.er-action-panel textarea{border-radius:5px;background:#0a151e!important;border:1px solid #546775;box-shadow:inset 0 3px 12px #0009;color:#f7eee3;min-height:112px}
.er-continue{min-height:55px;border-radius:5px;font-size:13px;letter-spacing:.02em;box-shadow:inset 0 1px #fff7bb66,inset 0 -2px #573209,0 4px 0 #322414,0 8px 16px #0008!important}
.er-continue:hover{box-shadow:inset 0 1px #fff7bb66,inset 0 -2px #573209,0 4px 0 #322414,0 12px 20px #0009!important}
.er-inventory-card{padding:18px 19px 20px}
.er-inventory-head{margin-bottom:11px}
.er-inventory-head h3{font-size:22px}
.er-inventory-summary{font-size:12px}
.er-inventory-item{background:linear-gradient(180deg,#24323c,#14232d);border:1px solid #4b5c65;border-radius:5px;padding:10px}
.er-inventory-empty{font-size:12px;line-height:1.5;color:#aebac0}
.er-ground-summary{margin-top:9px}
.er-ground-button{background:none!important;border:none!important;box-shadow:none!important;padding:3px 1px;font-size:12px;color:#ddb875!important;text-align:left}
.er-ground-button:before,.er-ground-button:after{display:none}
.er-inventory-card .er-quiet-button{font-size:11px;min-height:36px;white-space:nowrap}
.er-nav-btn:disabled{opacity:.45;box-shadow:none!important;transform:none!important}
.er-bottom-note{padding:25px 5px;font-size:10px;color:#80929f}
.er-quiet-button:focus-visible,.er-nav-btn:focus-visible,.er-choice:focus-visible,.er-continue:focus-visible{outline:2px solid #e2bf7b;outline-offset:3px}
@media(max-width:900px){.er-game-sidebar{position:static;max-height:none;overflow:visible}.er-scene .er-prose{max-height:none;overflow:visible}}
@media(max-width:767.98px){
 #app.campaign-active{padding:0 0 40px!important;max-width:100%}
 .er-game-head{padding:15px 14px 6px}
 .er-game-top{gap:9px;padding-bottom:11px;margin-bottom:14px}
 .er-game-head h1{font-size:clamp(29px,7vw,37px);margin-bottom:9px}
 .er-scene-nav{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr) minmax(0,1fr);gap:7px;padding:8px 13px 14px}
 .er-scene-nav>*{min-width:0;max-width:100%}
 .er-scene-counter{min-width:0;padding:4px 0;font-size:10px;white-space:nowrap}
 .er-scene-counter:before,.er-scene-counter:after{display:none}
 .er-scene-counter small{display:none}
 .er-nav-btn{width:100%;min-width:0!important;padding:8px 5px;font-size:11px;white-space:nowrap}
 .er-content{gap:12px;grid-template-columns:minmax(0,1fr)}
 .er-scene,.er-action-panel,.er-inventory-card{border-radius:7px!important;margin-left:10px;margin-right:10px;border-left:1px solid #6b6859!important;border-right:1px solid #6b6859!important}
 .er-scene .er-art{margin:5px 5px 0}
 .er-scene-meta{margin:0 5px;padding:9px 11px}
 .er-scene-image{aspect-ratio:4/3}
 .er-prose{padding:21px 18px 27px}
 .er-prose p{font-size:16.5px;line-height:1.77}
 .er-action-panel{padding:17px 15px 22px}
 .er-action-heading{padding-top:9px}
 .er-action-heading h2{font-size:26px}
 .er-choice{min-height:64px;grid-template-columns:32px minmax(0,1fr) 12px;padding:10px 9px;font-size:12.5px}
 .er-choice-num{width:27px;height:27px}
 .er-inventory-card{padding:15px 16px 17px}
 .er-inventory-head h3{font-size:20px}
 .er-inventory-head .er-quiet-button{font-size:10px;min-height:34px;padding:7px 9px}
}
@media(prefers-reduced-motion:reduce){.er-choice{transition:none!important}}

/* v0.17.1 — separate framed action and inventory panels, not one shared rail */
.er-game-sidebar{
  display:flex;
  flex-direction:column;
  gap:24px;
  padding:4px 5px 8px;
  background:transparent;
  border:0;
  box-shadow:none;
}
.er-game-sidebar .er-action-panel,
.er-game-sidebar .er-inventory-card{
  position:relative;
  flex:0 0 auto;
  width:100%;
  margin:0;
  isolation:isolate;
  overflow:hidden;
  border-radius:9px!important;
  border:1px solid #6b6859!important;
  box-shadow:0 0 0 1px #050a0e,0 0 0 2px #a68a5040,inset 0 1px 0 #ffffff16,0 13px 26px #0009!important;
}
.er-game-sidebar .er-action-panel::before,
.er-game-sidebar .er-inventory-card::before{
  inset:6px;
  border-radius:4px;
}
@media(max-width:900px){
  .er-game-sidebar{max-height:none;overflow:visible}
}
@media(max-width:767.98px){
  .er-game-sidebar{gap:18px;padding:3px 10px 10px}
  .er-game-sidebar .er-action-panel,
  .er-game-sidebar .er-inventory-card{width:100%;margin:0;border-radius:8px!important}
}

/* v0.17.2 — nearby object count is informational, not an action. */
.er-ground-count{display:inline-block;color:#d9b77f;font:500 12px/1.5 system-ui;cursor:default;user-select:text}


/* v0.17.4 — currency display instead of button */
.game-top-actions{align-items:center}
.game-wallet{
  display:inline-flex;
  align-items:stretch;
  gap:0;
  min-height:42px;
  padding:0;
  border-radius:14px;
  border:1px solid rgba(82,101,121,.75);
  background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0) 18%), linear-gradient(180deg, #243747, #13222d 58%, #0e1821);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), inset 0 -1px 0 rgba(0,0,0,.52), 0 12px 24px rgba(0,0,0,.22);
  overflow:hidden;
}
.game-wallet::before{
  content:"";
  position:absolute;
  inset:2px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.05);
  pointer-events:none;
}
.game-wallet:hover{border-color:rgba(111,132,153,.78); background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 18%), linear-gradient(180deg, #2a4052, #172935 58%, #101b24); transform:none}
.game-wallet:active{transform:none; box-shadow:inset 0 1px 0 rgba(255,255,255,.08), inset 0 -1px 0 rgba(0,0,0,.52), 0 12px 24px rgba(0,0,0,.22)}
.game-wallet-gem{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  font-size:15px;
  color:#f0cd82;
  border-right:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg, rgba(249,214,140,.14), rgba(249,214,140,.02) 42%, rgba(0,0,0,.08));
  text-shadow:0 1px 0 rgba(0,0,0,.5);
}
.game-wallet-stack{
  display:flex;
  align-items:center;
  gap:6px;
  padding:0 12px 0 10px;
  white-space:nowrap;
}
.game-wallet-value{
  color:#f5f1e7;
  font-weight:800;
  letter-spacing:.01em;
  font-size:14px;
}
.game-wallet-label{
  display:inline!important;
  color:#aeb7bf;
  font-size:11px;
  letter-spacing:.08em;
  text-transform:lowercase;
}
.game-wallet-add{
  position:relative;
  min-width:38px;
  border:0;
  border-left:1px solid rgba(0,0,0,.28);
  border-radius:0;
  color:#11210e;
  font-weight:900;
  font-size:19px;
  line-height:1;
  background:linear-gradient(180deg, rgba(255,255,255,.3), rgba(255,255,255,0) 18%), linear-gradient(180deg, #8ce972, #48b847 58%, #2e7f2e);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.32), inset 0 -1px 0 rgba(0,0,0,.28);
  text-shadow:0 1px 0 rgba(255,255,255,.35);
}
.game-wallet-add:hover{
  color:#0d1a0b;
  background:linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,0) 18%), linear-gradient(180deg, #a0f388, #58c956 58%, #348f34);
}
.game-wallet-add:active{
  transform:none;
  box-shadow:inset 0 2px 5px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.18);
}
.game-header-divider,.game-header-credits{display:none!important}
@media (max-width: 767.98px){
  .game-wallet{min-height:38px; border-radius:12px}
  .game-wallet::before{border-radius:10px}
  .game-wallet-gem{width:34px;font-size:14px}
  .game-wallet-stack{padding:0 10px 0 8px;gap:5px}
  .game-wallet-value{font-size:13px}
  .game-wallet-label{font-size:10px;letter-spacing:.05em}
  .game-wallet-add{min-width:34px;font-size:18px}
}


/* v0.17.5 — RPG currency HUD: gem, recessed counter, floating add control */
.game-top-actions .game-wallet{
  position:relative!important;display:flex;align-items:center;gap:0;
  height:40px;min-height:40px;min-width:180px;
  margin-right:9px;padding:0 26px 0 11px!important;
  overflow:visible!important;isolation:visible!important;
  border-radius:22px!important;
  border:1px solid #425565!important;
  background:linear-gradient(180deg,#0c1924 0%,#142633 45%,#0a131c 100%)!important;
  box-shadow:inset 0 3px 7px #000a,inset 0 1px 1px #0009,0 1px 0 #afbbc32b,0 5px 13px #0007!important;
  transform:none!important;cursor:default!important;
}
.game-top-actions .game-wallet::before{
  content:"";position:absolute;inset:3px;pointer-events:none;
  border:1px solid #c5d8e01c;border-radius:20px;
}
.game-top-actions .game-wallet:hover,.game-top-actions .game-wallet:active{
  border-color:#425565!important;
  background:linear-gradient(180deg,#0c1924 0%,#142633 45%,#0a131c 100%)!important;
  box-shadow:inset 0 3px 7px #000a,inset 0 1px 1px #0009,0 1px 0 #afbbc32b,0 5px 13px #0007!important;
  transform:none!important;
}
.game-wallet-gem{
  flex:none;display:flex;align-items:center;justify-content:center;
  width:42px;height:45px;margin-left:-18px;margin-right:0;
  background:none!important;border:0!important;
  filter:drop-shadow(0 2px 2px #000c) drop-shadow(0 0 5px #37a8db70);
  pointer-events:none;
}
.game-wallet-gem svg{display:block}
.game-wallet-stack{
  display:flex!important;flex-direction:column;align-items:flex-start!important;
  justify-content:center;gap:0!important;
  padding:0 16px 0 1px!important;line-height:1.04!important;
}
.game-wallet-label{
  order:-1;display:block!important;font:700 8px/1.1 system-ui!important;
  letter-spacing:.17em!important;text-transform:uppercase!important;color:#8ca3b4!important;
  margin:0 0 2px;
}
.game-wallet-value{
  font:800 16px/1.1 system-ui!important;letter-spacing:.012em!important;
  font-variant-numeric:tabular-nums;color:#f6eacb!important;
  text-shadow:0 1px 0 #000,0 0 10px #e6c07824;
}
.game-top-actions .game-wallet .game-wallet-add{
  position:absolute!important;right:-11px;top:50%;transform:translateY(-50%)!important;
  display:flex;align-items:center;justify-content:center;
  width:33px;min-width:33px;height:33px;min-height:33px;
  padding:0!important;border:2px solid #17471e!important;border-radius:50%!important;
  color:#f1ffe9!important;font:900 20px/1 system-ui!important;
  background:linear-gradient(180deg,#b1ef73 0%,#63c94a 30%,#279035 72%,#156022 100%)!important;
  box-shadow:inset 0 1px 0 #ffffffa0,inset 0 -2px 2px #0d4219,0 0 0 2px #101923,0 3px 8px #000b,0 0 9px #64cc4750!important;
  text-shadow:0 1px 2px #16481a!important;
  z-index:3;cursor:pointer;
}
.game-top-actions .game-wallet .game-wallet-add::before,
.game-top-actions .game-wallet .game-wallet-add::after{display:none!important}
.game-top-actions .game-wallet .game-wallet-add:hover{
  transform:translateY(-50%) scale(1.08)!important;
  background:linear-gradient(180deg,#c7ff97,#72dc56 36%,#339e42 76%,#1c6f29)!important;
}
.game-top-actions .game-wallet .game-wallet-add:active{
  transform:translateY(-50%) scale(.96)!important;
  box-shadow:inset 0 2px 5px #113c1e,0 0 0 2px #101923,0 1px 4px #000a!important;
}
@media(max-width:767.98px){
  .game-top-actions .game-wallet{min-width:130px;height:37px;min-height:37px;padding-left:7px!important;padding-right:15px!important;margin-right:7px}
  .game-wallet-gem{width:36px;height:39px;margin-left:-11px}
  .game-wallet-gem svg{width:26px;height:31px}
  .game-wallet-stack{padding-right:8px!important}
  .game-wallet-value{font-size:13px!important}
  .game-wallet-label{font-size:7px!important}
  .game-top-actions .game-wallet .game-wallet-add{width:30px;min-width:30px;height:30px;min-height:30px;right:-9px;font-size:18px!important}
}


/* v0.17.6 — refined currency HUD sizing, alignment, and finish */
.game-top-actions{align-items:center!important;gap:10px!important}
.game-top-actions .game-header-control{min-height:40px!important}

.game-top-actions .game-wallet{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:0!important;
  height:38px!important;
  min-height:38px!important;
  min-width:158px!important;
  margin-right:6px!important;
  padding:0 22px 0 8px!important;
  border-radius:19px!important;
  border:1px solid #536575!important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 16%),
    linear-gradient(180deg, #132535 0%, #0d1d2a 58%, #08121a 100%)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -1px 0 rgba(0,0,0,.48),
    inset 0 0 0 1px rgba(7,18,28,.48),
    0 8px 16px rgba(0,0,0,.22)!important;
}
.game-top-actions .game-wallet::before{
  content:"";
  position:absolute;
  inset:2px;
  border-radius:17px;
  border:1px solid rgba(194,216,231,.08);
  pointer-events:none;
}
.game-top-actions .game-wallet:hover,
.game-top-actions .game-wallet:active{
  transform:none!important;
  border-color:#617688!important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,0) 16%),
    linear-gradient(180deg, #162b3e 0%, #112231 58%, #09151f 100%)!important;
}
.game-top-actions .game-wallet .game-wallet-gem{
  flex:none;
  width:28px!important;
  height:28px!important;
  margin:0 8px 0 2px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  filter:drop-shadow(0 1px 1px rgba(0,0,0,.55)) drop-shadow(0 0 4px rgba(68,203,234,.28));
}
.game-top-actions .game-wallet .game-wallet-gem svg{
  width:22px!important;
  height:26px!important;
  display:block;
}
.game-top-actions .game-wallet .game-wallet-stack{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:flex-start!important;
  gap:0!important;
  min-width:0;
  padding:0 10px 0 0!important;
}
.game-top-actions .game-wallet .game-wallet-label{
  display:block!important;
  margin:0 0 1px!important;
  color:#9fb1c0!important;
  font:700 8px/1 system-ui!important;
  letter-spacing:.20em!important;
  text-transform:uppercase!important;
}
.game-top-actions .game-wallet .game-wallet-value{
  color:#fff2d1!important;
  font:800 15px/1 system-ui!important;
  letter-spacing:.01em!important;
  font-variant-numeric:tabular-nums;
  text-shadow:0 1px 0 rgba(0,0,0,.75);
}
.game-top-actions .game-wallet .game-wallet-add{
  position:absolute!important;
  top:50%!important;
  right:4px!important;
  transform:translateY(-50%)!important;
  width:28px!important;
  min-width:28px!important;
  height:28px!important;
  min-height:28px!important;
  border-radius:50%!important;
  border:1px solid #2d6f2e!important;
  padding:0!important;
  color:#efffe9!important;
  font:900 18px/1 system-ui!important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,0) 18%),
    linear-gradient(180deg, #92ea77 0%, #4fbe48 55%, #2d8d2f 100%)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.34),
    inset 0 -1px 0 rgba(0,0,0,.28),
    0 0 0 2px #13202b,
    0 2px 6px rgba(0,0,0,.38)!important;
  text-shadow:0 1px 1px rgba(0,0,0,.35)!important;
}
.game-top-actions .game-wallet .game-wallet-add:hover{
  transform:translateY(-50%) scale(1.04)!important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,0) 18%),
    linear-gradient(180deg, #a6f48d 0%, #63cf58 55%, #369b39 100%)!important;
}
.game-top-actions .game-wallet .game-wallet-add:active{
  transform:translateY(-50%) scale(.96)!important;
  box-shadow:
    inset 0 2px 5px rgba(0,0,0,.24),
    0 0 0 2px #13202b,
    0 1px 4px rgba(0,0,0,.32)!important;
}

@media(max-width:767.98px){
  .game-top-actions{gap:7px!important}
  .game-top-actions .game-wallet{
    min-width:142px!important;
    height:36px!important;
    min-height:36px!important;
    margin-right:4px!important;
    padding:0 20px 0 7px!important;
  }
  .game-top-actions .game-wallet::before{border-radius:16px}
  .game-top-actions .game-wallet .game-wallet-gem{width:25px!important;height:25px!important;margin-right:6px!important}
  .game-top-actions .game-wallet .game-wallet-gem svg{width:20px!important;height:24px!important}
  .game-top-actions .game-wallet .game-wallet-label{font-size:7px!important;letter-spacing:.16em!important}
  .game-top-actions .game-wallet .game-wallet-value{font-size:14px!important}
  .game-top-actions .game-wallet .game-wallet-add{width:26px!important;min-width:26px!important;height:26px!important;min-height:26px!important;right:4px!important;font-size:17px!important}
}

/* v0.18.0 optional audiobook playback */
.er-audio-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 20px;background:linear-gradient(180deg,#172635,#101c27);border-top:1px solid #475464;border-bottom:1px solid #303e4b}
.er-audio-launch{background:linear-gradient(180deg,#324c61,#1c2e3d);border:1px solid #927c58;border-radius:8px;color:#f5e2bb;padding:8px 13px;font:700 12px system-ui;cursor:pointer;box-shadow:inset 0 1px #ffffff1c,0 4px 10px #0004}
.er-audio-launch:hover{background:#36536a}.er-audio-launch:disabled{opacity:.55;cursor:wait}
.er-audio-note{font:11px/1.5 system-ui;color:#a4b6c4}.er-audio-player{width:100%;height:40px;color-scheme:dark;flex-basis:100%}
@media(max-width:767.98px){.er-audio-bar{padding:12px 16px}.er-audio-note{font-size:10px}}

/* v0.18.1 — selectable audiobook narrators */
.er-audio-controls{display:flex;align-items:center;flex-wrap:wrap;gap:9px}
.er-audio-voice-label{display:inline-flex;align-items:center;gap:7px;color:#d2c5af;font:600 11px/1.3 system-ui}
.er-audio-voice{min-height:36px;max-width:150px;border:1px solid #516070;border-radius:7px;padding:6px 8px;background:#111d29;color:#f1e7d5;font:600 12px system-ui}
.er-audio-voice:disabled{opacity:.72}
.er-audio-voice:focus-visible{outline:2px solid #c9a36b;outline-offset:2px}
@media(max-width:520px){.er-audio-controls{width:100%;justify-content:space-between}.er-audio-voice{max-width:130px}}

/* v0.18.2 — optional recurring scene narration */
.er-auto-audio{display:flex;align-items:flex-start;gap:10px;margin:12px 0 3px;padding:12px;border:1px solid #41576a;border-radius:8px;background:linear-gradient(180deg,#152737,#101b27);cursor:pointer;color:#e6d8c3;font:12px/1.45 system-ui}
.er-auto-audio input{appearance:auto!important;flex:none;margin-top:3px;width:17px;height:17px;accent-color:#bba16e;cursor:pointer}
.er-auto-audio span{display:flex;flex-direction:column;gap:4px;min-width:0}
.er-auto-audio strong{font-weight:700;letter-spacing:.01em}
.er-auto-audio small{display:block;color:#b7a68e;font-size:11px;line-height:1.5}
.er-auto-audio:focus-within{outline:2px solid #bba16e;outline-offset:2px}

/* v0.18.3 — credit checkout confirmation */
.credit-success-icon{width:60px;height:60px;margin:0 auto;display:grid;place-items:center;border-radius:50%;color:#d9f7bf;font-size:29px;background:radial-gradient(circle at 38% 25%,#72b95a,#21672b 70%);border:2px solid #8fcb75;box-shadow:0 0 25px #56c85736,inset 0 2px 4px #ffffff36}
#payment-step #change-package{text-decoration:none}#payment-step #change-package:hover{text-decoration:underline}


/* v0.18.4 — premium credit store package selection */
#creditModal #packages{--bs-gutter-x:12px;--bs-gutter-y:12px}
#creditModal #packages-step>.muted{margin-bottom:17px!important;color:#aab8c4!important}
#creditModal .er-credit-pack{
  position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;justify-content:center;
  width:100%;min-height:177px;padding:19px 12px 15px;gap:7px;text-align:center;cursor:pointer;
  color:#f6ecda;border:1px solid #5d7181;border-radius:12px;
  background:radial-gradient(ellipse at 50% 0%,rgba(61,110,144,.3),transparent 69%),linear-gradient(180deg,#253849 0%,#172736 55%,#101b28 100%);
  box-shadow:inset 0 1px 0 #ffffff20,inset 0 0 0 3px #0d1722,0 0 0 1px #bd9a6240,0 10px 20px #0006;
  transition:transform .17s ease,border-color .17s ease,box-shadow .17s ease;
}
#creditModal .er-credit-pack::before{content:"";position:absolute;inset:6px;border:1px solid #bba07833;border-radius:7px;pointer-events:none}
#creditModal .er-credit-pack:hover,#creditModal .er-credit-pack:focus-visible{
  transform:translateY(-3px);border-color:#e3c48d;outline:none;
  box-shadow:inset 0 1px 0 #ffffff30,inset 0 0 0 3px #0d1722,0 0 0 1px #e3c48d88,0 16px 30px #0009;
}
#creditModal .er-credit-pack:active{transform:translateY(1px)}
#creditModal .er-credit-pack:disabled{opacity:.65;cursor:wait;transform:none}
.er-credit-pack-gem{color:#56d8f4;font-size:27px;line-height:1;text-shadow:0 1px 0 #d8f9ff,0 0 17px #2ca7ed96,0 4px 5px #000a}
.er-credit-pack-amount{display:flex;flex-direction:column;align-items:center;gap:2px;font:700 clamp(23px,3vw,29px)/1.1 Georgia,serif;font-variant-numeric:tabular-nums;letter-spacing:.015em}
.er-credit-pack-amount small{font:700 9px/1.4 system-ui;letter-spacing:.22em;color:#9fb1bd}
.er-credit-pack-price{margin-top:2px;color:#ffdda1;font:800 18px/1.15 system-ui;letter-spacing:.015em}
.er-credit-pack-arrow{margin-top:5px;color:#bbcad3;font:600 10px/1.4 system-ui;letter-spacing:.04em}
@media(max-width:420px){#creditModal #packages{--bs-gutter-x:9px;--bs-gutter-y:9px}#creditModal .er-credit-pack{min-height:161px;padding:14px 8px 13px}.er-credit-pack-amount{font-size:23px}.er-credit-pack-price{font-size:17px}}
@media(prefers-reduced-motion:reduce){#creditModal .er-credit-pack{transition:none}}


/* v0.18.5 — purpose-built small-screen masthead and game HUD */
@media (max-width: 600px) {
  body > .game-bar {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:42px 31px;
    align-items:center!important;
    column-gap:8px!important;
    row-gap:1px!important;
    min-height:92px!important;
    padding:8px 14px 9px!important;
    overflow:visible;
  }
  .game-bar .game-logo-link {
    grid-column:1;
    grid-row:1;
    justify-self:start;
    min-width:0;
  }
  .game-bar .game-logo {
    width:clamp(122px,30vw,156px)!important;
    height:auto;
    max-height:39px;
  }
  .game-top-actions {
    grid-column:2;
    grid-row:1 / span 2;
    display:grid!important;
    grid-template-columns:auto 1fr 1fr;
    grid-template-rows:40px 31px;
    column-gap:5px!important;
    row-gap:2px!important;
    align-items:center!important;
    justify-items:stretch;
    max-width:min(250px,57vw);
  }
  .game-top-actions .game-wallet {
    grid-row:1!important;
    grid-column:1 / -1!important;
    justify-self:end;
    width:150px;
    min-width:150px!important;
    height:37px!important;
    margin-right:0!important;
  }
  .game-top-actions .game-header-admin {
    grid-row:2;
    grid-column:2;
  }
  .game-top-actions .game-header-exit {
    grid-row:2;
    grid-column:3;
  }
  .game-top-actions .game-header-admin,
  .game-top-actions .game-header-exit {
    display:inline-flex;
    min-width:0!important;
    width:100%;
    min-height:28px!important;
    height:28px;
    border-radius:7px!important;
    padding:0 10px!important;
    font:600 10px/1 system-ui!important;
  }
  .game-header-admin::after,
  .game-header-exit::after {content:none!important}
  .game-top-actions .d-none{display:none!important}
  .er-game-head {padding:10px 15px 7px!important}
  .er-game-top {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:auto auto;
    column-gap:10px!important;
    row-gap:12px!important;
    padding:10px 0 16px!important;
    margin:0 0 18px!important;
    align-items:center!important;
  }
  .er-game-top #backworlds {grid-column:1;grid-row:1;justify-self:start}
  .er-game-top .er-hud {display:contents!important}
  .er-game-top #open-inventory {grid-column:2;grid-row:1;justify-self:end}
  .er-game-top .er-health-inline {
    grid-column:1;grid-row:2;justify-self:start;
    max-width:100%;margin:0!important;
    gap:8px!important;
  }
  .er-game-top .er-hud > span:not(.er-health-inline) {
    grid-column:2;grid-row:2;
    justify-self:end;
    font:600 10px/1.3 system-ui;
    white-space:nowrap;
    color:#dec28f;
  }
  .er-game-top .er-health-inline .er-health-track {width:clamp(46px,14vw,80px);flex-basis:clamp(46px,14vw,80px)}
  .er-game-top #backworlds,.er-game-top #open-inventory {
    min-height:35px;
    padding:6px 12px;
    font-size:11px;
  }
  .er-game-head > .er-eyebrow {margin:0 0 7px!important;letter-spacing:.20em;font-size:9px!important}
  .er-game-head h1 {font-size:clamp(27px,7.4vw,37px)!important;line-height:1.13;margin:0 0 7px!important}
  .er-scene-nav {padding:10px 0 14px!important;gap:7px!important}
  .er-scene-nav .er-nav-btn {min-width:0!important;width:100%;padding:8px 6px!important;min-height:36px;font-size:10px!important}
  .er-scene-counter {min-width:0!important;padding:7px 4px!important;font-size:10px!important}
  .er-scene-counter small{display:none!important}
}
@media(max-width:365px){
  body>.game-bar{padding-left:9px!important;padding-right:9px!important}
  .game-bar .game-logo{width:110px!important}
  .game-top-actions .game-wallet{width:132px;min-width:132px!important}
  .game-top-actions{max-width:60vw}
  .er-game-top .er-health-inline .er-health-track{width:42px;flex-basis:42px}
}


/* v0.18.6 — purpose-built public homepage */
.er-public-nav{display:none;align-items:center;gap:clamp(14px,2.4vw,34px);font:600 12px system-ui}
.er-public-nav a{color:#cbd8df;text-decoration:none;white-space:nowrap}.er-public-nav a:hover{color:#f7d696}
.er-public-nav .er-public-nav-cta{background:linear-gradient(180deg,#f6d899,#bd8440);padding:12px 20px;color:#131720;border-radius:7px;box-shadow:0 4px 0 #65401f,0 9px 20px #0007}
body.er-public-home .game-top-actions{display:none!important}body.er-public-home .er-public-nav{display:flex}
body.er-public-home .shell,body.er-public-home #app{max-width:none!important;padding:0!important;width:100%}
body.er-public-home .er-home{padding:0!important}
.er-home-hero{position:relative;display:flex;align-items:center;min-height:clamp(510px,66vw,730px);background:linear-gradient(90deg,rgba(5,12,20,.86),rgba(5,12,20,.60) 31%,rgba(5,12,20,.10) 72%),linear-gradient(0deg,#090f18 0%,transparent 30%),url('home-hero.webp') center center/cover no-repeat;border-bottom:1px solid #9471485c}
.er-home-hero-inner{width:min(1300px,100%);margin:auto;padding:80px clamp(24px,5.5vw,88px)}
.er-home-hero h1{color:#fff1d8;font:400 clamp(3.3rem,6.3vw,6.6rem)/1.02 Georgia,serif;max-width:830px;letter-spacing:-.035em;text-shadow:0 5px 24px #000a;margin:24px 0}
.er-home-hero h1 em{font-weight:400;color:#e5c38c}.er-home-lede{max-width:585px;font:400 clamp(1rem,1.38vw,1.25rem)/1.7 system-ui;color:#f0e7d9;text-shadow:0 2px 12px #000c}
.er-home-hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:22px;margin:33px 0 24px}.er-home-primary{padding:15px 24px!important;font:700 15px system-ui}.er-home-secondary{color:#f2dfbf;text-decoration:none;border-bottom:1px solid #d8b77a7c;padding-bottom:5px;font:600 13px system-ui}.er-home-secondary:hover{color:#fff}
.er-home-hero-note{font:500 12px system-ui;color:#d8d5d1;letter-spacing:.06em;text-shadow:0 2px 8px #000}
.er-home-content{max-width:1300px;margin:auto;padding:0 clamp(20px,5vw,70px)}
.er-home-intro{text-align:center;max-width:820px;margin:100px auto 52px}.er-home-intro h2,.er-home-feature-band h2,.er-home-start h2{font:400 clamp(2.1rem,4vw,3.5rem)/1.17 Georgia,serif;color:#f6e9d4}.er-home-intro>p:last-child{color:#bcc8d1;font:16px/1.85 system-ui;margin-top:22px}
.er-home-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:110px}.er-home-steps article{padding:31px;border:1px solid #58647285;border-radius:12px;background:linear-gradient(150deg,#1a2936,#101a24);box-shadow:0 15px 35px #0004}.er-home-step-no{font:600 14px system-ui;color:#e7be79;letter-spacing:.18em}.er-home-steps h3{font:400 1.65rem Georgia,serif;color:#f3e5cf;margin:19px 0 12px}.er-home-steps p{font:14px/1.7 system-ui;color:#b5c3ce;margin:0}
.er-home-feature-band{padding:48px 50px;display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:center;border:1px solid #7b634366;border-radius:15px;background:radial-gradient(circle at 70% 20%,#2b445644,transparent 60%),#111f2a}.er-home-feature-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;font:600 13px system-ui;color:#e9ddc8}.er-home-feature-grid span{padding:12px;border-bottom:1px solid #64748736}
.er-home-start{scroll-margin-top:90px;display:grid;grid-template-columns:1fr minmax(290px,450px);align-items:center;gap:60px;padding:105px 0 70px}.er-home-start>div>p:last-child{font:15px/1.8 system-ui;color:#b7c5cd;margin-top:25px}.er-home-auth{padding:30px;border:1px solid #856c457a;border-radius:12px;background:linear-gradient(160deg,#1c2b39,#0d1822);box-shadow:0 24px 60px #0007}.er-home-auth h3{font:400 1.65rem Georgia,serif;margin-bottom:22px}.er-home-auth form>label:not(.er-home-adult){font:600 12px system-ui;color:#d6c2a3;display:block;margin-bottom:7px}.er-home-auth .form-control{margin-bottom:18px;height:46px}.er-home-adult{display:flex;gap:9px;align-items:center;font:12px system-ui;color:#b5c2cd}.er-home-auth-actions{display:flex;gap:10px;margin-top:24px}.er-home-auth-actions .btn{flex:1;min-height:46px;white-space:nowrap}
.er-home-catalog{scroll-margin-top:90px;padding:22px 0 40px}.er-home-footer{border-top:1px solid #8c724b5c;background:#080f17;padding:46px 0}.er-home-footer-inner{max-width:1300px;margin:auto;padding:0 clamp(20px,5vw,70px);display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:center}.er-home-footer img{width:185px;max-width:100%;height:auto}.er-home-footer p,.er-home-footer small{font:12px system-ui;color:#90a1ad}.er-home-footer nav{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:22px}.er-home-footer nav a{color:#d0c1a7;text-decoration:none;font:12px system-ui}.er-home-footer nav a:hover{color:#fff}.er-home-footer small{grid-column:1/-1;border-top:1px solid #52606c4b;padding-top:18px}
@media(max-width:850px){.er-home-steps{grid-template-columns:1fr;gap:12px}.er-home-feature-band,.er-home-start{grid-template-columns:1fr;gap:24px}.er-home-start{padding:70px 0}.er-home-feature-band{padding:32px}}
@media(max-width:600px){body.er-public-home .game-bar{min-height:62px}.er-public-nav{gap:10px;font-size:10px}.er-public-nav a:not(.er-public-nav-cta){display:none}.er-public-nav .er-public-nav-cta{padding:10px 13px}.er-home-hero{min-height:630px;align-items:flex-end;background:linear-gradient(0deg,#090f18 1%,rgba(5,12,20,.82) 32%,rgba(5,12,20,.16) 100%),url('home-hero.webp') 66% center/cover no-repeat}.er-home-hero-inner{padding:45px 22px 55px}.er-home-hero h1{font-size:clamp(3.05rem,11vw,4.4rem)}.er-home-lede{font-size:15px}.er-home-hero-actions{gap:17px}.er-home-intro{margin:64px auto 36px}.er-home-steps{margin-bottom:65px}.er-home-steps article{padding:22px}.er-home-feature-grid{grid-template-columns:1fr;gap:4px}.er-home-auth{padding:23px}.er-home-footer-inner{grid-template-columns:1fr}.er-home-footer nav{justify-content:flex-start}.er-home-auth-actions{flex-direction:column}}


/* v0.18.7 — signed-in adventure dashboard */
#app:has(.er-dashboard){max-width:none!important;padding:0!important;width:100%}
body:has(.er-dashboard) .shell{max-width:none!important;width:100%}
.er-dashboard{padding:0!important}
.er-dashboard-hero{position:relative;isolation:isolate;min-height:390px;display:flex;align-items:center;background:linear-gradient(90deg,rgba(6,13,23,.94),rgba(6,13,23,.78) 37%,rgba(6,13,23,.12) 78%),linear-gradient(0deg,#08111c 0%,transparent 35%),url('home-hero.webp') center 42%/cover no-repeat;border-bottom:1px solid #ab875348}
.er-dashboard-hero-copy{width:min(1300px,100%);margin:auto;padding:65px clamp(24px,5.5vw,88px)}
.er-dashboard-hero h1{max-width:700px;color:#fff0d6;font:400 clamp(2.7rem,5.3vw,5rem)/1.08 Georgia,serif;letter-spacing:-.025em;margin:18px 0;text-shadow:0 4px 22px #000b}
.er-dashboard-hero-copy>p:not(.er-eyebrow){max-width:550px;color:#e4e4df;font:15px/1.8 system-ui;text-shadow:0 2px 8px #000a}
.er-dashboard-hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:22px;margin-top:27px}
.er-dashboard-primary{min-height:49px;display:inline-flex;align-items:center;gap:18px;padding:13px 20px!important;text-align:left;white-space:normal;font:700 14px/1.35 system-ui}
.er-dashboard-text-link{color:#e8d2af;text-decoration:none;border-bottom:1px solid #bb9a6180;padding-bottom:5px;font:600 12px system-ui}
.er-dashboard-text-link:hover{color:white}
.er-dashboard-inner{width:min(1300px,100%);padding:0 clamp(20px,5vw,70px);margin:auto}
.er-dashboard-overview{display:grid;grid-template-columns:1fr 1fr minmax(255px,1.45fr);gap:16px;margin:32px 0 60px}
.er-dashboard-summary,.er-dashboard-create{display:flex;align-items:center;gap:14px;min-width:0;padding:20px 22px;border:1px solid #63708080;border-radius:12px;background:linear-gradient(150deg,#1b2b39,#0d1822);box-shadow:inset 0 1px 0 #ffffff0d,0 12px 30px #0005}
.er-dashboard-summary-icon{flex:none;display:grid;place-items:center;width:43px;height:43px;border:1px solid #96794c65;border-radius:10px;background:#253644;color:#dfba79;font-size:22px}
.er-dashboard-summary>span:last-child,.er-dashboard-create>span:nth-child(2){min-width:0;display:flex;flex-direction:column;gap:3px}
.er-dashboard-summary strong{font:400 1.8rem/1 Georgia,serif;color:#f0dfc4}
.er-dashboard-summary small,.er-dashboard-create small{font:12px/1.4 system-ui;color:#aabac7}
.er-dashboard-create{text-align:left;width:100%;color:#f2e3ca;cursor:pointer}
.er-dashboard-create strong{font:600 15px/1.35 system-ui}
.er-dashboard-create:hover,.er-dashboard-save:hover{border-color:#d5b57f;background:linear-gradient(150deg,#263e51,#111f2c)}
.er-dashboard-save-arrow{margin-left:auto;color:#dfba79;font-size:19px}
.er-dashboard-save-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.er-dashboard-save{display:flex;align-items:center;min-width:0;width:100%;gap:16px;text-align:left;padding:19px 21px;border:1px solid #536576a3;border-radius:12px;background:linear-gradient(140deg,#1c2e3e,#101a26);box-shadow:inset 0 1px 0 #ffffff0b,0 10px 25px #0004;color:#e9dfd0;cursor:pointer;transition:border-color .16s,background .16s,transform .16s}
.er-dashboard-save:hover{transform:translateY(-2px)}
.er-dashboard-save-symbol{display:grid;place-items:center;flex:none;width:46px;height:46px;border:1px solid #ba97626e;border-radius:9px;color:#e8c17b;background:#2c3540;font-size:21px}
.er-dashboard-save-text{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.er-dashboard-save-text strong{font:400 1.35rem/1.3 Georgia,serif;color:#f8e8cb;overflow-wrap:anywhere}
.er-dashboard-save-text small{font:12px system-ui;color:#abbac6}
.er-dashboard-empty{text-align:center;padding:28px 20px 52px;color:#b4c2c9}
.er-dashboard-empty h2{color:#ecdcc4;font:400 2rem Georgia,serif}
.er-dashboard-catalog{scroll-margin-top:40px;margin-top:40px}
.er-dashboard-footer{margin-top:80px}
@media(max-width:850px){.er-dashboard-hero{min-height:350px}.er-dashboard-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.er-dashboard-create{grid-column:1/-1}.er-dashboard-save-grid{grid-template-columns:1fr}}
@media(max-width:600px){.er-dashboard-hero{min-height:400px;align-items:flex-end;background:linear-gradient(0deg,#08111c,rgba(6,13,23,.8) 46%,rgba(6,13,23,.25)),url('home-hero.webp') 66% center/cover no-repeat}.er-dashboard-hero-copy{padding:52px 21px 40px}.er-dashboard-hero h1{font-size:clamp(2.7rem,10vw,3.6rem)}.er-dashboard-overview{gap:10px;margin:20px 0 43px}.er-dashboard-summary{padding:14px 12px;gap:9px}.er-dashboard-summary-icon{width:34px;height:34px;font-size:18px}.er-dashboard-summary strong{font-size:1.5rem}.er-dashboard-summary small{font-size:10px}.er-dashboard-create{padding:15px}.er-dashboard-save{padding:15px 13px;gap:12px}.er-dashboard-save-symbol{width:40px;height:40px}.er-dashboard-save-text strong{font-size:1.2rem}.er-dashboard-footer{margin-top:50px}}


/* v0.18.8 — unified single-row mobile masthead. Overrides earlier two-row rules. */
@media(max-width:600px){
  body:not(.er-public-home) > .game-bar{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:clamp(5px,1.5vw,11px)!important;
    width:100%!important;
    min-width:0!important;
    min-height:60px!important;
    padding:8px clamp(8px,2.5vw,14px)!important;
    overflow:visible;
  }
  body:not(.er-public-home) > .game-bar .game-logo-link{
    flex:0 1 auto!important;
    min-width:0!important;
    grid-area:auto!important;
  }
  body:not(.er-public-home) > .game-bar .game-logo{
    width:clamp(96px,28vw,133px)!important;
    height:auto!important;
    max-height:38px!important;
  }
  body:not(.er-public-home) > .game-bar .game-top-actions{
    display:flex!important;
    flex:0 0 auto!important;
    flex-flow:row nowrap!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:6px!important;
    width:auto!important;
    max-width:none!important;
    grid-area:auto!important;
    min-width:0!important;
  }
  body:not(.er-public-home) .game-top-actions .game-wallet{
    width:clamp(120px,35vw,148px)!important;
    min-width:0!important;
    flex:none!important;
    height:36px!important;
    min-height:36px!important;
    padding:0 19px 0 5px!important;
    margin:0!important;
    grid-area:auto!important;
  }
  body:not(.er-public-home) .game-top-actions .game-wallet .game-wallet-gem{
    width:22px!important;
    height:24px!important;
    margin:0 6px 0 0!important;
  }
  body:not(.er-public-home) .game-top-actions .game-wallet .game-wallet-gem svg{width:19px!important;height:23px!important}
  body:not(.er-public-home) .game-top-actions .game-wallet .game-wallet-stack{padding:0 5px 0 0!important}
  body:not(.er-public-home) .game-top-actions .game-wallet .game-wallet-value{font-size:13px!important}
  body:not(.er-public-home) .game-top-actions .game-wallet .game-wallet-label{font-size:7px!important}
  body:not(.er-public-home) .game-top-actions .game-wallet .game-wallet-add{
    width:25px!important;min-width:25px!important;height:25px!important;min-height:25px!important;right:3px!important;
  }
  body:not(.er-public-home) .game-top-actions .game-header-admin,
  body:not(.er-public-home) .game-top-actions .game-header-exit{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 33px!important;
    width:33px!important;
    min-width:33px!important;
    max-width:33px!important;
    height:34px!important;
    min-height:34px!important;
    padding:0!important;
    grid-area:auto!important;
    border-radius:8px!important;
    font-size:0!important;
    line-height:0!important;
  }
  body:not(.er-public-home) .game-top-actions .game-header-admin::after{
    content:"⚙"!important;font-size:17px!important;line-height:1!important;
  }
  body:not(.er-public-home) .game-top-actions .game-header-exit::after{
    content:"↪"!important;font-size:17px!important;line-height:1!important;
  }
  body:not(.er-public-home) .game-top-actions .d-none{display:none!important}
  body:not(.er-public-home) .game-header-divider{display:none!important}
}
@media(max-width:360px){
  body:not(.er-public-home) > .game-bar{gap:4px!important;padding-inline:6px!important}
  body:not(.er-public-home) > .game-bar .game-logo{width:96px!important}
  body:not(.er-public-home) .game-top-actions{gap:4px!important}
  body:not(.er-public-home) .game-top-actions .game-wallet{width:119px!important}
  body:not(.er-public-home) .game-top-actions .game-header-admin,
  body:not(.er-public-home) .game-top-actions .game-header-exit{width:29px!important;min-width:29px!important;max-width:29px!important;flex-basis:29px!important}
}


/* v0.18.9 — illustrated public-world carousel on both homepages */
.er-world-carousel{position:relative;width:100%;min-width:0;margin-top:7px}
.er-world-carousel-top,.er-world-carousel-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px}
.er-world-carousel-top{padding:0 1px 15px}
.er-carousel-kicker,.er-carousel-hint,.er-carousel-position{font:600 11px/1.45 system-ui,sans-serif;color:#a4b6c4;letter-spacing:.06em}
.er-carousel-controls{display:flex;gap:9px}
.er-carousel-prev,.er-carousel-next{display:flex;align-items:center;justify-content:center;width:45px;height:39px;padding:0;border:1px solid #77623f;border-radius:8px;background:linear-gradient(#344a5b,#132331);color:#f4dcac;font:700 22px/1 Georgia,serif;box-shadow:inset 0 1px #ffffff23,0 5px 12px #0006;cursor:pointer}
.er-carousel-prev:hover:not(:disabled),.er-carousel-next:hover:not(:disabled){background:linear-gradient(#49647b,#21394c);border-color:#cfaa69}
.er-carousel-prev:disabled,.er-carousel-next:disabled{opacity:.3;cursor:default}
.er-world-carousel-track{display:flex;gap:18px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scroll-padding:3px;scrollbar-width:thin;scrollbar-color:#77623f #14212c;padding:4px 3px 22px;-webkit-overflow-scrolling:touch}
.er-world-carousel-track:focus-visible{outline:2px solid #c9a86e;outline-offset:2px}
.er-world-carousel-track .er-carousel-card{flex:0 0 clamp(275px,39%,460px);width:auto;min-width:0;scroll-snap-align:start;overflow:hidden;transition:transform .2s ease,border-color .2s ease}
.er-world-carousel-track .er-world-banner-art{height:auto;aspect-ratio:16/9;min-height:0;overflow:hidden;background:#0c1823}
.er-world-carousel-track .er-world-banner-art::after{display:none}
.er-world-carousel-track .er-world-banner-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .4s ease}
.er-world-carousel-track .er-carousel-card:hover .er-world-banner-art img{transform:scale(1.025)}
.er-world-carousel-track .er-world-details{min-height:255px}
.er-world-carousel-track .er-world-desc{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
.er-world-carousel-bottom{padding:1px 3px 14px}
@media(max-width:767.98px){.er-world-carousel-track .er-carousel-card{flex-basis:min(86vw,420px)}.er-world-carousel-track{gap:12px}.er-world-carousel-track .er-world-details{min-height:235px}.er-carousel-hint{font-size:10px}}
@media(max-width:390px){.er-world-carousel-track .er-carousel-card{flex-basis:86vw}.er-carousel-kicker{font-size:10px}}
@media(prefers-reduced-motion:reduce){.er-world-carousel-track .er-carousel-card,.er-world-carousel-track .er-world-banner-art img{transition:none}}

/* v0.18.11 — audiobook pacing control */
.er-audio-pace{display:inline-flex;align-items:center;gap:8px;margin-left:auto;color:#c7b79b;font:600 11px system-ui}
.er-audio-pace-select{min-height:33px;padding:5px 9px;border:1px solid #546879;border-radius:7px;background:#0e1b26;color:#f0e5d2;font:600 12px system-ui}
.er-audio-pace-select:focus-visible{outline:2px solid #d1ae76;outline-offset:2px}
@media(max-width:520px){.er-audio-pace{margin-left:0}.er-audio-pace-select{max-width:145px}}

/* v0.18.12 — keep both scene ornaments on the scene-count line (desktop). */
.er-scene-counter::before,.er-scene-counter::after{content:none!important;display:none!important}
.er-scene-counter > span::before,.er-scene-counter > span::after{content:'✦';display:inline-block;margin:0 9px;color:#8c754e;font-size:9px;vertical-align:middle}
@media(max-width:767.98px){.er-scene-counter > span::before,.er-scene-counter > span::after{content:none!important;display:none!important}}

/* v0.18.14 — restrained in-game world heading */
#app.campaign-active .er-game-head h1{font-size:clamp(27px,2.6vw,39px)!important;line-height:1.17;letter-spacing:.006em;margin-bottom:9px!important}
@media(max-width:767.98px){#app.campaign-active .er-game-head h1{font-size:clamp(25px,6.5vw,31px)!important;line-height:1.16}}

/* v0.18.15 — in-game title and scene counter, explicit typography */
#app.campaign-active .er-game .er-game-head > h1{font-size:clamp(25px,2.1vw,34px)!important;line-height:1.18!important;margin:0 0 6px!important;font-weight:400!important;}
#app.campaign-active .er-game .er-scene-counter{font-size:11px!important;line-height:1.2!important;}
#app.campaign-active .er-game .er-scene-counter > span{font-size:11px!important;font-weight:600!important;white-space:nowrap!important;}
#app.campaign-active .er-game .er-scene-counter > small{font-size:9px!important;line-height:1.35!important;}
@media(max-width:767.98px){#app.campaign-active .er-game .er-game-head > h1{font-size:clamp(23px,5.6vw,28px)!important;}#app.campaign-active .er-game .er-scene-counter > span{font-size:10px!important;}}

/* v0.18.16 — tools shown only on saved adventure cards */
.er-dashboard-save-wrap{position:relative;min-width:0}
.er-dashboard-save-wrap>.er-dashboard-save{width:100%;padding-right:94px}
.er-dashboard-save-tools{display:flex;align-items:center;gap:5px;position:absolute;right:13px;top:50%;transform:translateY(-50%);z-index:2}
.er-dashboard-save-tools .er-save-icon{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-height:32px;padding:0;border:1px solid #8b754f;border-radius:8px;background:linear-gradient(#24313d,#141f2a);color:#deb97d;font:700 20px/1 system-ui;cursor:pointer;box-shadow:inset 0 1px #ffffff1a,0 2px 5px #0007}
.er-dashboard-save-tools .er-save-icon:hover{color:#ffe0aa;border-color:#d0ad72;background:#344254}
.er-dashboard-save-tools .er-save-icon:focus-visible{outline:2px solid #e3bf83;outline-offset:2px}
.er-dashboard-save-tools .er-save-icon:disabled{opacity:.45;cursor:wait}
.er-dashboard-save-wrap .er-dashboard-save-arrow{display:none}
@media(max-width:420px){.er-dashboard-save-wrap>.er-dashboard-save{padding-right:83px}.er-dashboard-save-tools{right:9px;gap:4px}.er-dashboard-save-tools .er-save-icon{width:29px;height:29px;min-height:29px;font-size:18px}}

/* v0.18.19 — skinned decision / notice dialogs */
.er-dialog-backdrop{position:fixed;inset:0;z-index:3000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(3,7,14,.82);backdrop-filter:blur(7px)}
.er-dialog{position:relative;isolation:isolate;width:min(460px,100%);padding:33px 31px 26px;text-align:center;border:1px solid #a48959;border-radius:13px;color:#f2e9d9;background:linear-gradient(148deg,#1d3040 0%,#101c28 56%,#0b141e 100%);box-shadow:inset 0 1px 0 #ffffff15,inset 0 0 0 4px #070f17,0 0 0 5px #7b684672,0 25px 85px #000c}
.er-dialog::before{content:"";position:absolute;inset:8px;border:1px solid #c6a8733a;border-radius:7px;pointer-events:none}
.er-dialog-symbol{display:inline-grid;place-items:center;width:43px;height:43px;margin:0 auto 15px;border:1px solid #947a51;border-radius:50%;background:linear-gradient(#3c423d,#18222b);color:#ebc37e;font:700 24px Georgia,serif;box-shadow:inset 0 1px #ffffff26,0 5px 14px #0007}
.er-dialog-danger .er-dialog-symbol{border-color:#b97062;color:#f4a190}.er-dialog-success .er-dialog-symbol{border-color:#6aa18b;color:#a1edca}
.er-dialog-title{margin:0 0 12px;color:#f4e7cf;font:400 clamp(23px,5vw,29px)/1.22 Georgia,serif}.er-dialog-body{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;color:#b9c7d2;font:14px/1.72 system-ui,sans-serif}
.er-dialog-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:26px}.er-dialog-actions button{appearance:none;min-height:43px;border-radius:8px;padding:9px 18px;cursor:pointer;font:700 13px system-ui;transition:filter .16s,transform .12s}.er-dialog-actions button:hover{filter:brightness(1.14);transform:translateY(-1px)}.er-dialog-actions button:active{transform:translateY(1px)}
.er-dialog-primary{color:#261605;border:1px solid #e3bd79;background:linear-gradient(#f4d495,#d0a35c 55%,#a77637);box-shadow:inset 0 1px #fff7d57d,0 4px 12px #0006}.er-dialog-danger .er-dialog-primary{color:#fff2e9;border-color:#c47b69;background:linear-gradient(#b35e4b,#74342b)}
.er-dialog-cancel{color:#e4e8ea;border:1px solid #52677a;background:linear-gradient(#293e50,#182632);box-shadow:inset 0 1px #ffffff20,0 4px 12px #0005}
.er-dialog-actions button:focus-visible{outline:2px solid #f0c783;outline-offset:3px}
@media(max-width:480px){.er-dialog{padding:29px 23px 24px}.er-dialog-actions{gap:9px}.er-dialog-actions button{flex:1}}
@media(prefers-reduced-motion:reduce){.er-dialog-actions button{transition:none}}

/* v0.18.22: In-image animation progress and separate View Video action */
.er-scene .er-art-tools{position:absolute;top:12px;right:12px;z-index:5;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;max-width:calc(100% - 24px)}
.er-scene .er-art-tool{border:1px solid #bcaa82a6;border-radius:6px;background:#07131cda;color:#fff8e8;padding:8px 11px;font:600 11px system-ui;cursor:pointer;box-shadow:0 2px 9px #0007;white-space:nowrap}
.er-scene .er-art-tool:hover,.er-scene .er-art-tool:focus-visible{border-color:#f3d395;background:#1d2e3b}
.er-scene .er-art .er-image-expand{display:none}
.er-video-progress{position:absolute;inset:0;z-index:4;background:linear-gradient(0deg,#071019bb,#07101982);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:9px;color:#fff;text-shadow:0 2px 8px #000;pointer-events:none}
.er-video-progress strong{font:700 clamp(17px,2.3vw,24px) system-ui;letter-spacing:.03em;color:#fff}
.er-video-progress small{font:500 12px system-ui;color:#f1f0e9}
.er-video-spinner{height:29px;width:29px;border:2px solid #fff7;border-top-color:#fff;border-radius:50%;animation:er-video-spin 1s linear infinite}
@keyframes er-video-spin{to{transform:rotate(360deg)}}
.er-video-lightbox{position:fixed;inset:0;z-index:2100;background:#040a0ef5;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:65px 22px 35px;gap:15px}
.er-video-viewer{max-width:min(1200px,100%);max-height:calc(100vh - 135px);width:100%;background:#000;object-fit:contain}
.er-video-close{position:absolute;top:20px;right:24px;background:#172632;color:#fff0d7;border:1px solid #a58a5f;border-radius:6px;padding:8px 14px;cursor:pointer}
.er-video-hint{color:#eee1c6;font:13px system-ui}
@media(max-width:767px){.er-scene .er-art-tools{top:8px;right:8px;gap:5px}.er-scene .er-art-tool{padding:7px 8px;font-size:10px}}
@media(prefers-reduced-motion:reduce){.er-video-spinner{animation:none}}

/* v0.18.25 shared footer and dedicated account / information pages */
body{min-height:100vh;display:flex;flex-direction:column}body>.shell,body>.er-info-main{flex:1 0 auto}body>.er-global-footer{flex-shrink:0;width:100%}.er-global-footer{margin-top:auto}.er-info-page{background:#0b131d;color:#e6e2d9}.er-info-nav{display:flex;align-items:center;gap:22px;margin-left:auto}.er-info-nav a{font-size:13px;color:#d9c7aa;text-decoration:none}.er-info-nav .er-info-nav-cta{color:#17110c;padding:9px 18px}.er-info-main{width:100%;padding:60px 20px 90px}.er-info-container{max-width:1020px;margin:0 auto}.er-info-heading{text-align:center;margin-bottom:36px}.er-info-heading h1{font-family:Georgia,serif;font-weight:400;color:#f0dfc3;font-size:clamp(32px,4vw,52px)}.er-info-heading .er-eyebrow{color:#d3ae70}.er-info-main .er-prose{max-width:820px;margin:0 auto;background:linear-gradient(150deg,#172736,#0e1824);border:1px solid #92764a60;border-radius:12px;padding:clamp(24px,4vw,52px);line-height:1.75;color:#c5cbd0}.er-info-main .er-prose h2{font-family:Georgia,serif;color:#e8cc97;font-size:23px;margin:30px 0 10px}.er-info-main .er-prose p{margin-bottom:15px}.er-policy-date{font-size:12px;color:#b6ad95}.er-faq{max-width:820px;margin:0 auto;display:grid;gap:12px}.er-faq details{border:1px solid #a98a5b55;border-radius:8px;background:#152332;padding:0 24px}.er-faq summary{font-size:16px;color:#f2dfbb;cursor:pointer;font-weight:600;padding:20px 0}.er-faq details p{color:#c1cad0;line-height:1.7;padding:0 0 20px;margin:0}.er-login-layout{display:grid;grid-template-columns:1fr minmax(320px,450px);gap:clamp(30px,6vw,90px);align-items:center;max-width:1000px;margin:30px auto 0}.er-login-aside h1{font:400 clamp(34px,4.2vw,59px)/1.1 Georgia,serif;color:#f5e4c5;margin:15px 0 20px}.er-login-aside>p:not(.er-eyebrow){font-size:16px;line-height:1.8;color:#aab9c7;max-width:480px;margin-bottom:28px}.er-login-feature{padding:12px 0;color:#d7c6a6;font-size:14px;border-bottom:1px solid #66748838}.er-login-panel{padding:clamp(22px,3vw,40px);background:linear-gradient(145deg,#1a2c3a,#101a25);border:1px solid #ad8a55a1;border-radius:14px;box-shadow:0 24px 70px #0007}.er-login-tabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #7e6b4e65;margin-bottom:26px}.er-login-tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:13px 5px;color:#9cb0bc}.er-login-tabs button.active{border-color:#d7ae70;color:#f1daaf}.er-login-panel h2{font:400 27px Georgia,serif;color:#f4e5c7}.er-login-panel .muted{font-size:13px;margin-bottom:23px}.er-login-panel label:not(.er-login-adult){display:block;color:#d0d3d0;font-size:13px;margin:15px 0 7px}.er-login-panel .form-control{background:#0b1621;border:1px solid #4b5d69;color:#f3f4f2;padding:13px 14px}.er-login-panel .form-control:focus{background:#0b1621;color:#fff;border-color:#ccaa73;box-shadow:0 0 0 2px #c49e4e3b}.er-login-adult{display:flex;gap:9px;align-items:flex-start;color:#c7d0d5;font-size:13px;margin:20px 0}.er-password-help,.er-login-legal{color:#a9bac4;font-size:12px;margin:8px 0}.er-login-legal{margin-top:23px;line-height:1.5}.er-login-legal a{color:#e5bf82}.er-login-error{background:#47272c;border:1px solid #ce7770;border-radius:6px;padding:12px;color:#ffe5e2;font-size:13px;margin:15px 0}.er-login-submit{width:100%;margin-top:23px;padding:13px}.er-global-footer nav{row-gap:12px}.er-global-footer a:focus-visible,.er-info-nav a:focus-visible{outline:2px solid #e9bf79;outline-offset:4px}@media(max-width:760px){.er-login-layout{grid-template-columns:1fr;gap:30px}.er-info-main{padding:35px 17px 60px}.er-info-nav{gap:10px}.er-info-nav>a:not(.er-info-nav-cta){display:none}.er-login-aside h1{max-width:500px}.er-global-footer .er-home-footer-inner{grid-template-columns:1fr}.er-global-footer nav{justify-content:flex-start}}

/* v0.18.28 — Public-home custom worlds and media showcase; scoped to avoid game/legal layouts. */
.er-home-showcase{padding:96px 0 86px}.er-home-showcase-intro{text-align:center;max-width:780px;margin:0 auto 34px}.er-home-showcase-intro h2{font:400 clamp(2rem,3.9vw,3.35rem)/1.16 Georgia,serif;color:#f7e8ce;margin:12px 0 17px}.er-home-showcase-intro h2 em{color:#e6be7e;font-weight:400}.er-home-showcase-intro>p:last-child{font:15px/1.8 system-ui;color:#b8c5d0}.er-home-spotlights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.er-home-spotlight{position:relative;overflow:hidden;border:1px solid #76634570;border-radius:14px;background:linear-gradient(155deg,#192b39,#0c1823);padding:30px 32px;min-height:225px;display:flex;align-items:flex-start;gap:22px;box-shadow:0 18px 40px #0003}.er-home-spotlight-primary{grid-column:1/-1;min-height:265px;background:radial-gradient(ellipse at 22% 40%,#a9783340,transparent 52%),linear-gradient(120deg,#182938,#0d1721);align-items:center}.er-home-spotlight-art{flex:0 0 32%;min-height:190px;display:flex;align-items:center;justify-content:center;position:relative}.er-home-spotlight-glyph{font:110px Georgia,serif;color:#f0bd71;text-shadow:0 0 55px #d1945188;z-index:1}.er-home-spotlight-orbit{position:absolute;width:185px;height:185px;border:1px solid #d1a56a88;transform:rotate(45deg);box-shadow:0 0 70px #ab81432a,inset 0 0 50px #ad7a4020}.er-home-spotlight-copy{position:relative;z-index:1;flex:1}.er-home-spotlight h3{font:400 clamp(1.5rem,2.3vw,2.15rem)/1.2 Georgia,serif;color:#f4e7d2;margin:10px 0 14px}.er-home-spotlight-copy>p:not(.er-eyebrow){font:14px/1.78 system-ui;color:#bdcbd5;max-width:620px;margin-bottom:17px}.er-home-price,.er-home-feature-note{display:block;color:#dfbd84;font:600 12px/1.5 system-ui;letter-spacing:.035em}.er-home-spotlight-link{display:inline-flex;align-items:center;gap:12px;color:#21160b!important;background:#d5aa6d;border-radius:5px;padding:12px 19px;margin-top:20px;font:700 13px system-ui;text-decoration:none!important;transition:background .2s,transform .2s}.er-home-spotlight-link:hover{background:#f0c48c;transform:translateY(-2px)}.er-home-spotlight-symbol{flex:0 0 62px;width:62px;height:62px;border:1px solid #b493636e;background:#d7b47e1a;border-radius:13px;display:flex;align-items:center;justify-content:center;font:40px Georgia,serif;color:#edc58b}.er-home-showcase + .er-home-feature-band{margin-bottom:0}
@media(max-width:760px){.er-home-showcase{padding:64px 0}.er-home-spotlights{grid-template-columns:1fr}.er-home-spotlight-primary{grid-column:auto}.er-home-spotlight{padding:25px;min-height:0}.er-home-spotlight-primary{display:block}.er-home-spotlight-art{min-height:115px}.er-home-spotlight-glyph{font-size:80px}.er-home-spotlight-orbit{width:108px;height:108px}.er-home-spotlight-symbol{flex-basis:46px;width:46px;height:46px;font-size:29px}.er-home-spotlight h3{font-size:1.5rem}}
@media(max-width:430px){.er-home-spotlight:not(.er-home-spotlight-primary){gap:14px;padding:20px}.er-home-spotlight-symbol{flex-basis:40px;width:40px;height:40px;font-size:25px}.er-home-spotlight-copy>p:not(.er-eyebrow){font-size:13px}}

/* v0.18.29 — mobile-only dedicated adventure shell; desktop untouched. */
.er-mobile-dock{display:none}
@media(max-width:767.98px){
 body:has(#app.campaign-active){background:#090f17;background-attachment:scroll}
 body:has(#app.campaign-active)>.shell{width:100%;min-width:0}
 #app.campaign-active{width:100%;max-width:100%!important;padding:0 0 calc(100px + env(safe-area-inset-bottom))!important}
 #app.campaign-active .er-game{width:100%;max-width:100%;margin:0}
 #app.campaign-active .er-game-head{background:linear-gradient(180deg,#132430,#0b151f);padding:13px 17px 11px;border-bottom:1px solid #80674755}
 #app.campaign-active .er-game-top{margin:0 0 12px;padding:0 0 11px;gap:7px;flex-wrap:wrap}
 #app.campaign-active .er-game-head>.er-eyebrow{font-size:9px;letter-spacing:.16em;margin:2px 0 5px}
 #app.campaign-active .er-game .er-game-head>h1{font-size:clamp(22px,5.3vw,27px)!important;margin:0!important;line-height:1.18!important}
 #app.campaign-active .er-hud{gap:8px;font-size:10px}
 #app.campaign-active .er-scene-nav{margin:0;padding:8px 12px;display:grid!important;gap:6px;background:#0c1823;border-bottom:1px solid #69583c6b}
 #app.campaign-active .er-scene-counter>span{font-size:11px!important;color:#e7c58b}
 #app.campaign-active .er-nav-btn{min-height:40px;border-radius:8px;font-size:11px}
 #app.campaign-active .er-content{display:flex!important;flex-direction:column!important;gap:0!important}
 #app.campaign-active #er-scene-stage{width:100%;min-width:0;scroll-margin-top:75px}
 #app.campaign-active .er-scene{width:100%;margin:0!important;border-radius:0!important;border-left:0!important;border-right:0!important;border-top:0!important;box-shadow:none!important;background:#101c28!important}
 #app.campaign-active .er-scene::before,#app.campaign-active .er-scene::after{display:none}
 #app.campaign-active .er-scene .er-art{margin:0!important;border:0;border-radius:0;box-shadow:none}
 #app.campaign-active .er-scene-image,#app.campaign-active .er-art-placeholder{aspect-ratio:4/3;max-height:58svh;object-fit:cover}
 #app.campaign-active .er-art-overlay{padding:10px 13px}
 #app.campaign-active .er-scene-meta{margin:0!important;border:0;border-bottom:1px solid #344757;padding:12px 16px}
 #app.campaign-active .er-audio-bar{padding:13px 16px;border-bottom:1px solid #344757}
 #app.campaign-active .er-prose{padding:24px 20px 27px;background:transparent;border:0;box-shadow:none;border-radius:0}
 #app.campaign-active .er-prose p{font-size:16px;line-height:1.83}
 #app.campaign-active .er-game-sidebar{display:flex!important;flex-direction:column;grid-column:auto!important;width:100%;position:static!important;overflow:visible!important;max-height:none!important;gap:0!important;margin:0!important;padding:0!important}
 #app.campaign-active .er-game-sidebar .er-action-panel,#app.campaign-active .er-game-sidebar .er-inventory-card{width:100%!important;min-width:0;margin:0!important;border-left:0!important;border-right:0!important;border-radius:0!important;box-shadow:none!important}
 #app.campaign-active .er-action-panel{scroll-margin-top:65px;padding:22px 18px 26px;background:linear-gradient(180deg,#172a36,#101c27)!important;border-top:1px solid #9d7e4f!important}
 #app.campaign-active .er-action-panel::before,#app.campaign-active .er-action-panel::after,#app.campaign-active .er-inventory-card::before,#app.campaign-active .er-inventory-card::after{display:none}
 #app.campaign-active .er-action-heading h2{font-size:23px}
 #app.campaign-active .er-choices{gap:10px}
 #app.campaign-active .er-choice{min-height:62px;padding:13px 12px;font-size:13px;border-radius:9px}
 #app.campaign-active #action{min-height:94px;font-size:16px;border-radius:9px}
 #app.campaign-active .er-continue{min-height:52px;width:100%;border-radius:9px}
 #app.campaign-active .er-inventory-card{scroll-margin-top:65px;padding:22px 18px 24px;background:#111e2a!important;border-top:1px solid #987a4d!important}
 #app.campaign-active .er-bottom-note{margin:0;padding:22px 20px;color:#8092a1;font-size:11px}
 #app.campaign-active .er-mobile-dock{position:fixed;left:0;right:0;bottom:0;z-index:1300;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));height:calc(66px + env(safe-area-inset-bottom));padding:5px max(10px,env(safe-area-inset-left)) calc(5px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-right));background:linear-gradient(180deg,#1a2b39,#0b1520);border-top:1px solid #af9161;box-shadow:0 -10px 32px #0009;backdrop-filter:blur(12px)}
 #app.campaign-active .er-mobile-dock button{display:flex;flex-direction:column;gap:1px;justify-content:center;align-items:center;border:0;border-radius:9px;background:transparent;color:#abbac5;min-height:52px;touch-action:manipulation}
 #app.campaign-active .er-mobile-dock button span{font-size:23px;color:#d4ad70;line-height:1}
 #app.campaign-active .er-mobile-dock button small{font:600 10px system-ui;letter-spacing:.04em}
 #app.campaign-active .er-mobile-dock button.is-active,#app.campaign-active .er-mobile-dock button:focus-visible{color:#f8ebd3;background:#c7a4741f;outline:1px solid #af916177}
 body:has(#app.campaign-active)>.er-global-footer{padding-bottom:calc(74px + env(safe-area-inset-bottom))}
}
@media(min-width:768px){.er-mobile-dock{display:none!important}}
@media(prefers-reduced-motion:reduce){#app.campaign-active .er-mobile-dock *{transition:none!important}}

/* Item-gated story choices are visible but cannot be selected until equipped. */
.er-choice.er-choice-locked{opacity:.55;cursor:not-allowed;border-style:dashed}
.er-choice.er-choice-locked:hover{transform:none;box-shadow:none}

/* Survival RPG status: compact on desktop; touch-ready on mobile. */
.er-survival-hud{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px;border:1px solid rgba(186,148,89,.35);background:rgba(9,20,30,.85);border-radius:10px}
.er-survival-meter{display:grid;grid-template-columns:1fr auto;gap:4px 8px;color:#d9e0dc;font-size:12px;line-height:1.3}
.er-survival-meter b{color:#e5c08b;font-size:12px}
.er-survival-meter i{grid-column:1/-1;display:block;height:4px;border-radius:4px;background:#2c3b44;overflow:hidden}
.er-survival-meter em{display:block;height:100%;border-radius:4px;background:#78b79f;transition:width .25s}
.er-survival-warn em{background:#e4ad5d}.er-survival-danger em{background:#dc7474}
.er-survival-danger b{color:#ed8c8c}
@media(max-width:767px){.er-survival-hud{gap:8px;margin:0 12px;padding:10px}.er-survival-meter{font-size:11px}}

/* v0.18.39: image privacy matches the gold/iron game palette. */
.er-image-privacy-toggle{border:1px solid #947a50;background:linear-gradient(180deg,#273642,#15232e);color:#e8c68e;border-radius:7px;padding:6px 10px;cursor:pointer;font-size:.76rem;font-weight:650;white-space:nowrap;transition:background .18s,border-color .18s;box-shadow:inset 0 1px 0 #ffffff12}
.er-image-privacy-toggle[aria-pressed="true"]{background:linear-gradient(180deg,#604d35,#332a22);color:#ffe0a7;border-color:#d2ab6d;box-shadow:inset 0 0 0 1px #d2ab6d22}
.er-blur-images img.er-scene-image,.er-blur-images #er-image-lightbox img{filter:blur(26px)!important;transform:scale(1.045)}
.er-blur-images .er-image-open{overflow:hidden}
.er-blur-images #er-image-lightbox{overflow:hidden}
.er-stream-cursor{display:inline-block;height:1em;width:2px;background:#d4b580;vertical-align:text-bottom;animation:er-stream-pulse 1s steps(2,end) infinite;margin-left:2px}
@keyframes er-stream-pulse{50%{opacity:0}}
/* On phones privacy is a dedicated fourth action in the fixed game dock. */
@media(max-width:767px){
 #app.campaign-active .er-game-top .er-image-privacy-toggle{display:none!important}
 #app.campaign-active .er-mobile-dock{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 #app.campaign-active .er-mobile-dock .er-image-privacy-dock{color:#c6b28e}
 #app.campaign-active .er-mobile-dock .er-image-privacy-dock span{color:#d5b17a}
 #app.campaign-active .er-mobile-dock .er-image-privacy-dock[aria-pressed="true"]{background:#b9945430;outline:1px solid #af916177;color:#f8ebd3}
 #app.campaign-active .er-mobile-dock .er-image-privacy-dock:focus-visible{outline:2px solid #e2c38c;outline-offset:-2px}
}
@media(min-width:768px){#app.campaign-active .er-mobile-dock .er-image-privacy-dock{display:none!important}}

/* World time: quiet, in-game status, not a second header */
.er-world-clock{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:2px 0 0;color:#d3b783;font-size:12px;letter-spacing:.045em;font-weight:600}
.er-world-clock>span:first-child{color:#e5c594;font-size:16px}
.er-world-clock-divider{opacity:.48}
.er-world-clock-period{font-weight:400;color:#a7b7be;text-transform:capitalize}
@media(max-width:760px){.er-world-clock{margin-top:5px;padding:0 2px;font-size:11px;gap:6px}}

.er-video-failed{position:absolute;left:12px;right:12px;bottom:58px;z-index:5;background:#251b1aeb;color:#f3d5ce;border:1px solid #a66f63;border-radius:8px;padding:10px 12px;font:500 12px/1.5 system-ui;box-shadow:0 5px 20px #0007;pointer-events:none}

/* v1.0.17 — unified world masthead and scene navigation; scoped to active game. */
#app.campaign-active .er-game{--er-bar-edge:#695b4785;--er-bar-gold:#e4c389}
#app.campaign-active .er-game-head{box-sizing:border-box;position:relative;background:linear-gradient(115deg,#172937 0%,#0d1925 75%)!important;border:1px solid var(--er-bar-edge);border-bottom:0;border-radius:14px 14px 0 0;padding:17px 22px 16px!important;box-shadow:0 8px 25px #0003}
#app.campaign-active .er-game-top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:0 0 16px!important;padding:0 0 13px!important;border-bottom:1px solid #b49b6d36}
#app.campaign-active .er-game-head>.er-eyebrow{margin:0 0 5px!important;color:#cdaa72}
#app.campaign-active .er-game-head>h1{margin:0 0 12px!important;font-size:clamp(26px,2.7vw,39px)!important;line-height:1.13!important;text-wrap:balance}
#app.campaign-active .er-world-status{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px}
#app.campaign-active .er-status-chip{box-sizing:border-box;display:flex;align-items:center;gap:7px;margin:0!important;padding:7px 10px;border:1px solid #a28b6347;border-radius:7px;background:#091521a6;color:#dec9a6;font:500 12px/1.35 system-ui;letter-spacing:0}
#app.campaign-active .er-status-chip strong{font-weight:650;color:#f0d5a6}
#app.campaign-active .er-world-weather>span:first-child{color:#e4bd79}
#app.campaign-active .er-weather-detail{color:#aebcc4;border-left:1px solid #8c815a55;padding-left:8px}
#app.campaign-active .er-scene-nav{box-sizing:border-box;display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:14px;margin:0 0 16px!important;padding:10px 16px!important;background:linear-gradient(180deg,#142635,#0c1925)!important;border:1px solid var(--er-bar-edge);border-top:1px solid #bb9c5c4a;border-radius:0 0 12px 12px;box-shadow:0 8px 24px #0003}
#app.campaign-active .er-scene-nav .er-nav-btn{width:auto!important;min-width:118px;min-height:39px;padding:9px 16px!important;border-radius:7px}
#app.campaign-active .er-scene-nav #er-prev{justify-self:start}
#app.campaign-active .er-scene-nav #er-next{justify-self:end}
#app.campaign-active .er-scene-counter{padding:2px 8px!important;min-width:0;color:#e3c086;text-align:center;background:transparent!important;box-shadow:none!important}
#app.campaign-active .er-scene-counter>span{display:block;white-space:nowrap;color:#e7c58b;font-size:12px!important;font-weight:700!important}
#app.campaign-active .er-scene-counter>small{display:block!important;color:#96a9b7;font-size:10px!important;margin-top:3px}
@media(max-width:767.98px){
 #app.campaign-active .er-game-head{border-radius:0;padding:12px 14px 13px!important;border-left:0;border-right:0}
 #app.campaign-active .er-game-top{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:9px 10px!important;margin:0 0 13px!important;padding:0 0 12px!important}
 #app.campaign-active .er-game-top #backworlds{grid-column:1;grid-row:1;justify-self:start}
 #app.campaign-active .er-game-top .er-hud{display:contents!important}
 #app.campaign-active .er-game-top #open-inventory{grid-column:2;grid-row:1;justify-self:end}
 #app.campaign-active .er-game-top .er-health-inline{grid-column:1;grid-row:2;justify-self:start}
 #app.campaign-active .er-game-top .er-hud>span:not(.er-health-inline){grid-column:2;grid-row:2;justify-self:end}
 #app.campaign-active .er-game-head>h1{font-size:clamp(24px,6.1vw,30px)!important;margin-bottom:11px!important}
 #app.campaign-active .er-world-status{gap:7px}
 #app.campaign-active .er-status-chip{font-size:11px;padding:7px 9px;max-width:100%;flex-wrap:wrap}
 #app.campaign-active .er-weather-detail{font-size:10px}
 #app.campaign-active .er-scene-nav{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;gap:7px;margin:0!important;padding:9px 11px!important;border-left:0;border-right:0;border-radius:0}
 #app.campaign-active .er-scene-nav .er-nav-btn{min-width:0!important;width:100%!important;padding:8px 5px!important;font-size:11px!important;min-height:38px}
 #app.campaign-active .er-scene-counter{padding:0!important}
 #app.campaign-active .er-scene-counter>span{font-size:10px!important}
 #app.campaign-active .er-scene-counter>small{display:none!important}
}
@media(max-width:370px){#app.campaign-active .er-weather-detail{display:none}#app.campaign-active .er-status-chip{font-size:10px}}


/* v1.0.19 — unboxed masthead, matched condition chips, clean scene-only navigation. */
#app.campaign-active .er-game-head{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:12px 0 15px!important;
}
#app.campaign-active .er-game-head>h1{
  font-size:clamp(23px,2.15vw,31px)!important;
  line-height:1.18!important;
  margin:0 0 11px!important;
}
#app.campaign-active .er-game-top{
  margin-bottom:15px!important;
  padding-bottom:12px!important;
}
#app.campaign-active .er-world-status{align-items:stretch;gap:9px}
#app.campaign-active .er-world-status .er-status-chip{
  min-height:35px;
  padding:8px 11px!important;
  display:inline-flex;
  align-items:center;
  align-content:center;
  box-sizing:border-box;
  line-height:1.2;
}
#app.campaign-active .er-world-weather>strong{text-transform:uppercase;letter-spacing:.025em}
#app.campaign-active .er-scene-nav{
  border:1px solid var(--er-bar-edge)!important;
  border-radius:11px!important;
  margin-bottom:16px!important;
}
@media(max-width:767.98px){
  #app.campaign-active .er-game-head{padding:10px 13px 12px!important}
  #app.campaign-active .er-game-head>h1{font-size:clamp(22px,5.5vw,27px)!important;margin-bottom:10px!important}
  #app.campaign-active .er-world-status .er-status-chip{min-height:34px;padding:7px 9px!important}
  #app.campaign-active .er-scene-nav{border-radius:9px!important;margin:0 10px 13px!important}
}

/* v1.0.25: compact image stage while its illustration is being generated or loaded. */
#app.campaign-active .er-art.er-art-pending,
#app.campaign-active .er-art.er-art-await-load,
#app.campaign-active .er-art.er-art-image-error{
  height:25px;min-height:25px;overflow:hidden;
  border-bottom:1px solid rgba(206,169,103,.2);
}
#app.campaign-active .er-art.er-art-pending .er-art-placeholder,
#app.campaign-active .er-art.er-art-image-error .er-art-placeholder{
  display:flex;flex-direction:row;align-items:center;justify-content:center;
  width:100%;height:25px;min-height:25px;max-height:25px;
  aspect-ratio:auto;padding:0 8px;gap:7px;
  background:linear-gradient(90deg,#152431,#1b2b37,#152431);
  color:#d6b77a;font:500 11px/1 system-ui;
}
#app.campaign-active .er-art.er-art-pending .er-art-glyph,
#app.campaign-active .er-art.er-art-image-error .er-art-glyph{font:13px/1 Georgia,serif;opacity:.8}
#app.campaign-active .er-art.er-art-await-load .er-scene-image,
#app.campaign-active .er-art.er-art-image-error .er-scene-image,
#app.campaign-active .er-art.er-art-await-load .er-image-open,
#app.campaign-active .er-art.er-art-image-error .er-image-open,
#app.campaign-active .er-art.er-art-pending .er-art-overlay,
#app.campaign-active .er-art.er-art-await-load .er-art-overlay,
#app.campaign-active .er-art.er-art-image-error .er-art-overlay{
  display:none!important;
}
#app.campaign-active .er-art.er-art-image-error::after{
  content:'Illustration unavailable';display:flex;align-items:center;justify-content:center;
  height:25px;color:#c5ad88;font:500 11px/1 system-ui;
}
#app.campaign-active .er-art.er-art-ready{animation:er-art-arrive .22s ease-out}
@keyframes er-art-arrive{from{opacity:.65}to{opacity:1}}
@media(prefers-reduced-motion:reduce){#app.campaign-active .er-art.er-art-ready{animation:none}}

#app.campaign-active .er-art.er-art-await-load::after{content:'✧  A new moment is taking shape…';display:flex;align-items:center;justify-content:center;height:25px;color:#d6b77a;background:linear-gradient(90deg,#152431,#1b2b37,#152431);font:500 11px/1 system-ui}

/* v1.0.27 — quiet cinematic reading mode. Deliberately preserves v1.0.25 layout. */
@media(min-width:901px){
  /* Reading is not a tiny scrollable widget: let the story occupy the page. */
  #app.campaign-active .er-scene .er-prose{max-height:none!important;overflow:visible!important;}
  #app.campaign-active .er-game-sidebar{max-height:none!important;overflow:visible!important;position:sticky;top:18px;}
}
/* Remove stacked ornamentation and inset frames, not the useful separation of scene and action. */
#app.campaign-active .er-scene,
#app.campaign-active .er-action-panel,
#app.campaign-active .er-inventory-card{
  border:1px solid rgba(151,146,125,.26)!important;
  border-radius:8px!important;
  background:#111c27!important;
  box-shadow:0 8px 28px rgba(0,0,0,.26)!important;
}
#app.campaign-active .er-scene::before,
#app.campaign-active .er-scene::after,
#app.campaign-active .er-action-panel::before,
#app.campaign-active .er-action-panel::after,
#app.campaign-active .er-inventory-card::before,
#app.campaign-active .er-inventory-card::after{display:none!important;}
#app.campaign-active .er-prose{background:#101b26!important;}
#app.campaign-active .er-prose p{line-height:1.87!important;letter-spacing:.002em;}
#app.campaign-active .er-action-panel{padding:24px 22px!important;}
#app.campaign-active .er-action-heading{margin-bottom:17px!important;}
#app.campaign-active .er-action-heading h2{font-size:clamp(23px,2vw,28px)!important;}
#app.campaign-active .er-choices{gap:8px!important;}
#app.campaign-active .er-choice{
  min-height:66px!important;padding:14px 15px!important;
  background:rgba(25,40,53,.64)!important;
  border:1px solid rgba(156,151,133,.30)!important;
  border-left:2px solid rgba(201,169,109,.65)!important;
  border-radius:5px!important;box-shadow:none!important;
  transition:background-color .16s ease,border-color .16s ease,transform .16s ease!important;
}
#app.campaign-active .er-choice:hover,
#app.campaign-active .er-choice:focus-visible,
#app.campaign-active .er-choice.active{
  background:#263749!important;border-color:#d6b77a!important;
  border-left-color:#edca88!important;transform:translateX(2px);
}
#app.campaign-active .er-choice-num{color:#e3be80!important;}
#app.campaign-active .er-action-panel textarea{background:#0b1620!important;border-color:#455462!important;}
#app.campaign-active .er-action-label{margin-top:22px!important;}
#app.campaign-active .er-continue{min-height:51px!important;}
#app.campaign-active .er-audio-bar{background:#101b26!important;border-color:rgba(151,146,125,.2)!important;}
#app.campaign-active .er-inventory-card{box-shadow:0 6px 22px #0003!important;}
#app.campaign-active .er-bottom-note{opacity:.62;}
@media(max-width:900px){
  #app.campaign-active .er-game-sidebar{position:static!important;top:auto!important;}
  #app.campaign-active .er-scene .er-prose{max-height:none!important;overflow:visible!important;}
}
@media(max-width:767.98px){
  #app.campaign-active .er-scene,#app.campaign-active .er-action-panel,#app.campaign-active .er-inventory-card{border-left:0!important;border-right:0!important;border-radius:0!important;}
  #app.campaign-active .er-action-panel{padding:23px 18px!important;}
  #app.campaign-active .er-choice{min-height:62px!important;}
}
@media(prefers-reduced-motion:reduce){#app.campaign-active .er-choice{transition:none!important;transform:none!important;}}

/* v1.0.28 — unified scene media controls, built on v1.0.27 */
#app.campaign-active .er-scene-media{padding:12px 18px 13px!important;display:flex!important;flex-direction:column;gap:9px!important;background:linear-gradient(180deg,#12212c,#0e1a23)!important;border-top:1px solid #88724848;border-bottom:1px solid #88724833;}
#app.campaign-active .er-media-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;color:#c6ad7e;font:600 10px/1.4 system-ui;letter-spacing:.13em;}
#app.campaign-active .er-media-heading span{color:#8da0ac;font-weight:400;letter-spacing:0;}
#app.campaign-active .er-media-row{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap;}
#app.campaign-active .er-media-row .er-audio-controls{display:flex;align-items:center;flex:1 1 245px;min-width:0;gap:10px;flex-wrap:wrap;}
#app.campaign-active .er-media-video{display:flex;align-items:center;min-height:34px;margin-left:auto;}
#app.campaign-active .er-media-video-action{white-space:nowrap;margin:0!important;min-height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:6px!important;}
#app.campaign-active .er-media-processing{color:#c2a576;font:12px system-ui;}
#app.campaign-active .er-scene-media>.er-audio-note{margin:0!important;color:#8093a0;font-size:11px;}
#app.campaign-active .er-scene-media .er-auto-audio{margin:4px 0 0!important;padding:9px 0 0!important;border-top:1px solid #70818b2b;}
#app.campaign-active .er-scene-media .er-auto-audio small{line-height:1.4;}
#app.campaign-active .er-scene-media .er-audio-player{width:100%;max-width:100%;}
@media(max-width:640px){#app.campaign-active .er-scene-media{padding:11px 13px 12px!important;}#app.campaign-active .er-media-heading span{display:none;}#app.campaign-active .er-media-video{margin-left:0;}#app.campaign-active .er-media-row{align-items:flex-start;gap:8px;}#app.campaign-active .er-media-row .er-audio-controls{flex-basis:100%;}}


/* v1.0.29 — scene media moves into a compact translucent overlay on the illustration. */
#app.campaign-active .er-art{overflow:hidden}
#app.campaign-active .er-art-overlay{
  display:flex!important;justify-content:space-between;align-items:flex-end;
  padding:12px 14px!important;background:transparent!important;z-index:4;
}
#app.campaign-active .er-art-badge{
  display:inline-flex;align-items:center;min-height:26px;padding:5px 9px;
  border:1px solid rgba(203,171,106,.45);border-radius:999px;
  background:rgba(6,13,20,.58);backdrop-filter:blur(8px);
  color:#f0d6a2;text-shadow:0 2px 3px rgba(0,0,0,.65);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 3px 12px rgba(0,0,0,.28);
  font:700 10px/1 system-ui;letter-spacing:.18em;
}
#app.campaign-active .er-art-number{font:700 10px/1 system-ui!important;letter-spacing:.18em!important;color:#f0d6a2!important}
#app.campaign-active .er-scene-media-overlay{
  position:absolute;left:14px;right:14px;bottom:14px;z-index:3;
  display:grid!important;grid-template-columns:minmax(0,1.2fr) minmax(230px,.8fr);
  gap:12px!important;align-items:stretch;padding:0!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
}
#app.campaign-active .er-media-panel{
  display:flex;flex-direction:column;gap:10px;min-width:0;
  padding:12px 14px;border:1px solid rgba(198,164,104,.28);border-radius:12px;
  background:linear-gradient(180deg,rgba(14,26,37,.78),rgba(9,18,27,.84));
  box-shadow:0 12px 30px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.05);
  backdrop-filter:blur(10px);
}
#app.campaign-active .er-media-panel-head{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#d8bc87;font:700 11px/1.2 system-ui;letter-spacing:.11em;text-transform:uppercase}
#app.campaign-active .er-media-panel-head span{color:#8da0ac;font:500 10px/1.2 system-ui;letter-spacing:.03em;text-transform:none}
#app.campaign-active .er-media-panel-body{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
#app.campaign-active .er-media-panel-body .er-audio-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
#app.campaign-active .er-media-panel-body .er-audio-voice-label{gap:8px;min-width:0}
#app.campaign-active .er-media-panel-body .er-audio-voice{min-height:34px;max-width:150px;background:rgba(8,17,26,.8);border-color:rgba(104,123,141,.7)}
#app.campaign-active .er-media-panel-body .er-audio-launch,
#app.campaign-active .er-media-panel-body .er-media-video-action{
  min-height:34px;padding:8px 12px;border-radius:9px!important;white-space:nowrap;margin:0!important;
}
#app.campaign-active .er-media-panel .er-audio-note,
#app.campaign-active .er-media-panel .er-video-note,
#app.campaign-active .er-media-processing{display:block;color:#9fb1bc;font-size:11px;line-height:1.45}
#app.campaign-active .er-media-panel-body-video{align-items:flex-start;justify-content:center;flex-direction:column;min-height:60px}
#app.campaign-active .er-media-audio-slot{display:flex;flex-direction:column;gap:8px}
#app.campaign-active .er-media-audio-slot .er-audio-pace{display:inline-flex;align-items:center;gap:8px;color:#d3c0a1;font:600 11px/1.3 system-ui}
#app.campaign-active .er-media-audio-slot .er-audio-pace-select{min-height:30px;border:1px solid rgba(104,123,141,.7);border-radius:7px;padding:4px 8px;background:rgba(8,17,26,.8);color:#f1e7d5;font:600 12px system-ui}
#app.campaign-active .er-media-audio-slot .er-audio-player{width:100%;height:36px;max-width:100%}
#app.campaign-active .er-media-panel-extra .er-auto-audio{
  margin:0!important;padding:8px 10px!important;border:1px solid rgba(116,133,147,.34)!important;border-radius:9px!important;
  background:rgba(9,17,25,.42)!important;gap:9px!important;
}
#app.campaign-active .er-media-panel-extra .er-auto-audio strong{font-size:12px}
#app.campaign-active .er-media-panel-extra .er-auto-audio small{font-size:10px;color:#9fb0bb}
#app.campaign-active .er-scene-meta{border-top:1px solid rgba(52,71,87,.88)}
@media(max-width:900px){
  #app.campaign-active .er-scene-media-overlay{grid-template-columns:1fr;left:12px;right:12px;bottom:12px;gap:10px!important}
  #app.campaign-active .er-media-panel{padding:11px 12px}
}
@media(max-width:640px){
  #app.campaign-active .er-art-overlay{padding:10px 10px!important}
  #app.campaign-active .er-art-badge{min-height:24px;padding:4px 8px;font-size:9px;letter-spacing:.14em}
  #app.campaign-active .er-scene-media-overlay{left:10px;right:10px;bottom:10px}
  #app.campaign-active .er-media-panel-head{font-size:10px}
  #app.campaign-active .er-media-panel-head span{display:none}
  #app.campaign-active .er-media-panel-body{gap:8px}
  #app.campaign-active .er-media-panel-body .er-audio-controls{width:100%;justify-content:space-between}
  #app.campaign-active .er-media-panel-body .er-audio-voice{max-width:125px;min-height:32px}
  #app.campaign-active .er-media-panel-body .er-audio-launch,#app.campaign-active .er-media-panel-body .er-media-video-action{width:100%;justify-content:center}
}
/* Keep the placeholder compact until the art arrives. */
#app.campaign-active .er-art.er-art-pending .er-scene-media-overlay,
#app.campaign-active .er-art.er-art-await-load .er-scene-media-overlay,
#app.campaign-active .er-art.er-art-image-error .er-scene-media-overlay{display:none!important}

/* v1.0.30 — simplified bottom overlay strip + voice chooser modal */
#app.campaign-active .er-scene-media-overlay{
  left:0;right:0;bottom:0;z-index:3;display:flex!important;flex-direction:column;gap:0!important;
  padding:0!important;background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.1) 12%,rgba(0,0,0,.38) 100%)!important;
  border:0!important;box-shadow:none!important;
}
#app.campaign-active .er-scene-media-strip{
  display:grid;grid-template-columns:1fr auto 1fr;align-items:stretch;min-height:52px;
  border-top:1px solid rgba(255,255,255,.07);
  background:linear-gradient(180deg,rgba(10,16,24,.34),rgba(5,10,16,.62));backdrop-filter:blur(8px);
}
#app.campaign-active .er-media-overlay-action{
  min-width:0;display:flex;align-items:center;justify-content:center;gap:8px;
  padding:12px 16px;color:#f6f2e8;text-decoration:none;font:700 13px/1 system-ui;letter-spacing:.01em;
  background:transparent;border:0;box-shadow:none;position:relative;
}
#app.campaign-active .er-media-overlay-action + .er-media-overlay-action{border-left:1px solid rgba(255,255,255,.08)}
#app.campaign-active .er-media-overlay-action button,
#app.campaign-active .er-media-overlay-action span,
#app.campaign-active .er-media-overlay-action label{font:inherit;color:inherit}
#app.campaign-active .er-media-overlay-voice,
#app.campaign-active .er-media-overlay-auto,
#app.campaign-active .er-media-overlay-video{justify-content:flex-start}
#app.campaign-active .er-media-overlay-voice{padding-left:18px}
#app.campaign-active .er-media-overlay-video{justify-content:flex-end;padding-right:18px}
#app.campaign-active .er-media-overlay-voice:hover,
#app.campaign-active .er-media-overlay-auto:hover,
#app.campaign-active .er-media-overlay-video:hover{background:rgba(255,255,255,.045)}
#app.campaign-active .er-media-overlay-icon{font-size:14px;opacity:.9}
#app.campaign-active .er-media-overlay-auto{cursor:pointer;user-select:none}
#app.campaign-active .er-media-overlay-auto input{
  appearance:none;-webkit-appearance:none;width:11px;height:11px;border-radius:2px;
  border:1px solid rgba(255,255,255,.45);background:rgba(255,255,255,.08);margin:0;position:relative;flex:0 0 auto;
}
#app.campaign-active .er-media-overlay-auto input:checked{background:#d9b56d;border-color:#f0d79b;box-shadow:0 0 0 2px rgba(217,181,109,.15)}
#app.campaign-active .er-media-overlay-auto input:checked::after{content:'';position:absolute;inset:2px;background:#0c1620}
#app.campaign-active .er-media-overlay-video .er-video-button,
#app.campaign-active .er-media-overlay-voice{
  width:100%;justify-content:inherit;padding:0;background:none!important;border:0!important;box-shadow:none!important;min-height:unset!important;margin:0!important;color:inherit!important;
}
#app.campaign-active .er-media-overlay-video .er-video-button{justify-content:flex-end}
#app.campaign-active .er-media-overlay-video .er-media-processing,
#app.campaign-active .er-media-overlay-video .er-video-note{color:#f6f2e8;opacity:.88;font:700 13px/1 system-ui}
#app.campaign-active .er-media-overlay-detail{
  display:flex;flex-direction:column;gap:8px;padding:10px 16px 12px;
  background:rgba(6,10,15,.52);backdrop-filter:blur(9px);
}
#app.campaign-active .er-media-overlay-detail .er-audio-note{margin:0;color:#ced8e1;font:500 11px/1.35 system-ui}
#app.campaign-active .er-media-audio-slot{display:flex;flex-direction:column;gap:8px;max-width:420px}
#app.campaign-active .er-media-audio-slot .er-audio-pace{display:inline-flex;align-items:center;gap:8px;color:#e8d4aa;font:600 11px/1.3 system-ui}
#app.campaign-active .er-media-audio-slot .er-audio-pace-select{min-height:30px;border:1px solid rgba(133,151,166,.68);border-radius:8px;padding:4px 8px;background:rgba(8,17,26,.82);color:#f4ebdc;font:600 12px system-ui}
#app.campaign-active .er-media-audio-slot .er-audio-player{width:100%;height:36px;max-width:100%}
#app.campaign-active .er-media-panel-extra:empty,#app.campaign-active .er-media-heading,#app.campaign-active .er-media-row,#app.campaign-active .er-media-panel,#app.campaign-active .er-media-panel-head,#app.campaign-active .er-media-panel-body{display:none!important}
#app.campaign-active .er-art-overlay{padding:12px 14px 60px!important}
#app.campaign-active .er-art.er-art-pending .er-scene-media-overlay,
#app.campaign-active .er-art.er-art-await-load .er-scene-media-overlay,
#app.campaign-active .er-art.er-art-image-error .er-scene-media-overlay{display:none!important}
@media(max-width:860px){
  #app.campaign-active .er-scene-media-strip{grid-template-columns:1fr 1fr 1fr}
}
@media(max-width:640px){
  #app.campaign-active .er-art-overlay{padding:10px 10px 106px!important}
  #app.campaign-active .er-scene-media-strip{grid-template-columns:1fr;min-height:unset}
  #app.campaign-active .er-media-overlay-action,#app.campaign-active .er-media-overlay-voice,#app.campaign-active .er-media-overlay-video{justify-content:center;padding:11px 12px}
  #app.campaign-active .er-media-overlay-action + .er-media-overlay-action{border-left:0;border-top:1px solid rgba(255,255,255,.08)}
  #app.campaign-active .er-media-overlay-detail{padding:10px 12px 12px}
}
.er-voice-modal-backdrop{
  position:fixed;inset:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:20px;
  background:rgba(2,6,10,.72);backdrop-filter:blur(10px);
}
.er-voice-modal{
  width:min(440px,100%);padding:20px 20px 18px;border-radius:18px;border:1px solid rgba(212,176,111,.32);
  background:linear-gradient(180deg,#12202d 0%,#0a141e 100%);box-shadow:0 30px 80px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.05);
  color:#f3ecdf;
}
.er-voice-modal-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}
.er-voice-modal-head h2{margin:0;font:700 27px/1.1 Georgia,serif;color:#f6ead0}
.er-voice-modal-close,.er-voice-modal-cancel,.er-voice-modal-confirm{appearance:none;border:0;cursor:pointer}
.er-voice-modal-close{width:34px;height:34px;border-radius:999px;background:rgba(255,255,255,.06);color:#f3ecdf;font-size:16px}
.er-voice-modal-copy{margin:0 0 14px;color:#b6c4cd;font:400 14px/1.6 system-ui}
.er-voice-modal-field{display:flex;flex-direction:column;gap:7px;margin-bottom:14px;color:#dcc18d;font:700 11px/1.2 system-ui;letter-spacing:.1em;text-transform:uppercase}
.er-voice-modal-select{min-height:44px;padding:10px 12px;border-radius:10px;border:1px solid rgba(133,151,166,.55);background:#09131c;color:#f7efe0;font:600 14px/1.2 system-ui}
.er-voice-modal-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;margin-bottom:16px;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:rgba(255,255,255,.03);color:#bdd0db;font:500 13px/1.4 system-ui}
.er-voice-modal-meta strong{color:#f1d49c;font:700 15px/1.2 system-ui}
.er-voice-modal-actions{display:flex;gap:10px;justify-content:flex-end}
.er-voice-modal-cancel{min-height:42px;padding:10px 14px;border-radius:10px;background:rgba(255,255,255,.06);color:#f0e7d8;font:600 14px/1 system-ui}
.er-voice-modal-confirm{min-height:42px;padding:10px 16px;border-radius:10px;background:linear-gradient(180deg,#f0be68,#c88c2d);color:#201304;font:800 14px/1 system-ui;box-shadow:0 10px 24px rgba(0,0,0,.22)}
@media(max-width:520px){
  .er-voice-modal{padding:18px 16px 16px}
  .er-voice-modal-head h2{font-size:24px}
  .er-voice-modal-actions{flex-direction:column-reverse}
  .er-voice-modal-cancel,.er-voice-modal-confirm{width:100%}
}

/* v1.0.31: one-line scene image media strip, no badges or helper row */
#app.campaign-active .er-art-overlay{display:none!important}
#app.campaign-active .er-scene-media-overlay{left:0!important;right:0!important;bottom:0!important;display:block!important;padding:0!important;border:0!important;background:none!important}
#app.campaign-active .er-scene-media-strip{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr)!important;min-height:44px!important;align-items:center;gap:0!important;background:rgba(3,9,14,.66)!important;backdrop-filter:blur(8px)}
#app.campaign-active .er-media-overlay-action{display:flex!important;min-width:0;min-height:44px!important;padding:8px 10px!important;align-items:center!important;justify-content:center!important;white-space:nowrap;font:600 12px/1.2 system-ui!important;box-shadow:none!important;border:0!important;background:transparent!important;color:#f0f0ee!important;text-shadow:0 1px 3px #000}
#app.campaign-active .er-media-overlay-action+.er-media-overlay-action{border-left:1px solid rgba(255,255,255,.09)!important;border-top:0!important}
#app.campaign-active .er-media-overlay-video .er-video-button{display:inline-flex!important;width:auto!important;min-height:unset!important;padding:0!important;margin:0!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;outline-offset:5px;color:#f0f0ee!important;font:600 12px/1.2 system-ui!important;text-shadow:0 1px 3px #000}
#app.campaign-active .er-media-overlay-video .er-video-button:hover{background:none!important;color:#f4ce91!important;box-shadow:none!important}
#app.campaign-active .er-media-overlay-detail{display:none!important}
#app.campaign-active .er-scene-media-overlay:has(.er-audio-player) .er-media-overlay-detail{display:flex!important;gap:6px!important;padding:9px 12px!important;background:rgba(4,10,15,.82)!important}
#app.campaign-active .er-media-overlay-detail .er-audio-note{display:none!important}
#app.campaign-active .er-media-overlay-icon{font-size:12px!important}
@media(max-width:640px){#app.campaign-active .er-scene-media-strip{grid-template-columns:repeat(3,minmax(0,1fr))!important}#app.campaign-active .er-media-overlay-action{padding:8px 4px!important;font-size:10px!important;gap:4px!important}#app.campaign-active .er-media-overlay-video .er-video-button{font-size:10px!important}#app.campaign-active .er-art-overlay{display:none!important}}

/* v1.0.32 — remove legacy bevel layers from Generate/Play Video in scene media strip only. */
#app.campaign-active .er-scene-media-strip .er-media-overlay-video .er-video-button,
#app.campaign-active .er-scene-media-strip .er-media-overlay-video .er-video-button:hover,
#app.campaign-active .er-scene-media-strip .er-media-overlay-video .er-video-button:active,
#app.campaign-active .er-scene-media-strip .er-media-overlay-video .er-video-button:focus-visible{
  -webkit-appearance:none!important;appearance:none!important;
  background:none!important;background-image:none!important;
  border:0!important;border-radius:0!important;
  outline:none;box-shadow:none!important;text-shadow:0 1px 3px rgba(0,0,0,.7)!important;
  filter:none!important;transform:none!important;
  padding:0!important;margin:0!important;min-width:0!important;min-height:0!important;
}
#app.campaign-active .er-scene-media-strip .er-media-overlay-video .er-video-button::before,
#app.campaign-active .er-scene-media-strip .er-media-overlay-video .er-video-button::after{
  content:none!important;display:none!important;
  background:none!important;border:0!important;box-shadow:none!important;
}
#app.campaign-active .er-scene-media-strip .er-media-overlay-video .er-video-button:focus-visible{
  outline:2px solid #e2c38c!important;outline-offset:5px!important;
}

/* v1.0.34 — audio player sits flush against the bottom edge of the scene overlay. */
#app.campaign-active .er-scene-media-overlay:has(.er-audio-player) .er-media-overlay-detail{
  padding:6px 10px 0!important;
  gap:0!important;
  margin:0!important;
}
#app.campaign-active .er-scene-media-overlay .er-media-audio-slot{
  margin:0!important;
  padding:0!important;
  gap:0!important;
  line-height:0;
}
#app.campaign-active .er-scene-media-overlay .er-audio-player{
  display:block;
  margin:0!important;
  padding:0!important;
  vertical-align:bottom;
}

/* v1.0.35 — prevent narration playback from shifting the scene's control strip.
   The playback tray overlays the image ABOVE the fixed bottom strip rather than
   adding height to the bottom-anchored overlay itself. */
#app.campaign-active .er-scene-media-overlay{
  height:44px!important;
  min-height:44px!important;
  overflow:visible!important;
}
#app.campaign-active .er-scene-media-overlay .er-scene-media-strip{
  position:absolute!important;
  left:0!important;right:0!important;bottom:0!important;
  height:44px!important;min-height:44px!important;
}
#app.campaign-active .er-scene-media-overlay:has(.er-audio-player) .er-media-overlay-detail{
  position:absolute!important;
  bottom:44px!important;
  left:0!important;right:0!important;
  width:100%!important;
  height:auto!important;
  margin:0!important;
  padding:6px 10px 0!important;
  box-sizing:border-box!important;
  z-index:1;
}
#app.campaign-active .er-scene-media-overlay .er-media-audio-slot{
  width:100%!important;
  max-width:none!important;
}
#app.campaign-active .er-scene-media-overlay .er-audio-player{
  width:100%!important;
  max-width:none!important;
  height:36px!important;
}

/* v1.0.36 — remove the empty tray band entirely during playback.
   Only the native audio control remains above the fixed 44px scene strip. */
#app.campaign-active .er-scene-media-overlay:has(.er-audio-player) .er-media-overlay-detail{
  display:block!important;
  position:absolute!important;
  left:0!important;right:0!important;bottom:44px!important;
  width:100%!important;height:36px!important;min-height:0!important;
  padding:0!important;margin:0!important;gap:0!important;
  background:transparent!important;border:0!important;
  box-shadow:none!important;backdrop-filter:none!important;
  overflow:hidden!important;
}
#app.campaign-active .er-scene-media-overlay:has(.er-audio-player) .er-media-audio-slot{
  display:block!important;width:100%!important;max-width:none!important;
  height:36px!important;min-height:0!important;
  margin:0!important;padding:0!important;gap:0!important;
  background:transparent!important;border:0!important;overflow:hidden!important;
}
#app.campaign-active .er-scene-media-overlay:has(.er-audio-player) .er-audio-player{
  display:block!important;width:100%!important;height:36px!important;
  margin:0!important;padding:0!important;border:0!important;
}
#app.campaign-active .er-scene-media-overlay:has(.er-audio-player) .er-media-audio-slot > :not(.er-audio-player),
#app.campaign-active .er-scene-media-overlay:has(.er-audio-player) .er-media-overlay-detail > :not(.er-media-audio-slot){display:none!important}


/* v1.0.37 — refined survival gauges and mobile scene HUD */
#app.campaign-active .er-mobile-survival{display:none}
#app.campaign-active .er-survival-hud{
  gap:11px;padding:13px;border:1px solid rgba(195,160,102,.32);
  border-radius:10px;background:linear-gradient(150deg,rgba(22,37,48,.96),rgba(10,21,31,.96));
  box-shadow:inset 0 1px rgba(255,255,255,.06),0 8px 20px rgba(0,0,0,.18);
}
#app.campaign-active .er-survival-meter{
  grid-template-columns:minmax(0,1fr) auto;gap:7px 9px;align-items:center;
  border-radius:7px;padding:7px 8px;background:rgba(6,16,25,.48);
  color:#d8e0e3;font:600 11px/1.2 system-ui;
}
#app.campaign-active .er-survival-meter span{letter-spacing:.025em}
#app.campaign-active .er-survival-meter b{color:#f0d5a1;font:700 12px/1 system-ui;font-variant-numeric:tabular-nums}
#app.campaign-active .er-survival-meter i{height:5px;background:#283a48;border-radius:10px;box-shadow:inset 0 1px 2px rgba(0,0,0,.5)}
#app.campaign-active .er-survival-meter em{height:100%;border-radius:10px;background:linear-gradient(90deg,#487e78,#95cbb1);box-shadow:0 0 8px rgba(102,192,160,.15)}
#app.campaign-active .er-survival-meter.er-survival-warn em{background:linear-gradient(90deg,#ac813d,#e5b96c)}
#app.campaign-active .er-survival-meter.er-survival-danger em{background:linear-gradient(90deg,#a84d4c,#e68c7d)}
@media(max-width:767.98px){
  #app.campaign-active #er-scene-stage>.er-mobile-survival{display:block;padding:0 12px 9px;margin:0;scroll-margin-top:65px}
  #app.campaign-active #er-scene-stage>.er-mobile-survival .er-survival-hud{
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;
    margin:0;padding:8px;border-radius:9px;
  }
  #app.campaign-active #er-scene-stage>.er-mobile-survival .er-survival-meter{
    min-width:0;display:grid;grid-template-columns:1fr;gap:6px;padding:7px 5px 6px;text-align:center;
  }
  #app.campaign-active #er-scene-stage>.er-mobile-survival .er-survival-meter span{font-size:10px;white-space:nowrap}
  #app.campaign-active #er-scene-stage>.er-mobile-survival .er-survival-meter b{font-size:11px}
  #app.campaign-active #er-scene-stage>.er-mobile-survival .er-survival-meter i{grid-column:auto;width:100%}
  #app.campaign-active .er-game-sidebar>.er-survival-hud{display:none!important}
}
@media(max-width:380px){
  #app.campaign-active #er-scene-stage>.er-mobile-survival{padding-inline:6px}
  #app.campaign-active #er-scene-stage>.er-mobile-survival .er-survival-hud{gap:4px;padding:6px}
  #app.campaign-active #er-scene-stage>.er-mobile-survival .er-survival-meter span{font-size:9px}
}
/* v1.0.38 player world marketplace */
.er-market-page{max-width:1200px;margin:auto;padding:10px 0 60px}.er-market-head{margin-bottom:35px;padding:25px 20px;border-bottom:1px solid #b9995b55}.er-market-head h1{font:normal clamp(32px,4vw,48px) Georgia,serif;color:#f2dfba;margin:12px 0}.er-market-head p:last-child{max-width:720px;color:#b7c7d0;line-height:1.65}.er-market-head strong{color:#e9c080}.er-market-listings{margin:28px 0 45px}.er-market-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:16px}.er-market-card{padding:22px;display:flex;flex-direction:column;min-height:260px;background:linear-gradient(150deg,#192d3d,#0c1722);border:1px solid #7f735d66;border-radius:12px;box-shadow:0 10px 28px #0005}.er-market-card-top,.er-market-card-foot{display:flex;justify-content:space-between;align-items:center;gap:12px}.er-market-card-top{font:700 10px system-ui;letter-spacing:.13em;color:#c5aa77}.er-market-card h3{font:normal 26px/1.2 Georgia,serif;margin:18px 0 12px;color:#f1e0c4}.er-market-card p{flex:1;color:#b5c3ca;font:14px/1.6 system-ui}.er-market-card-foot{border-top:1px solid #8e744535;padding-top:14px;flex-wrap:wrap;font:600 12px system-ui;color:#e9c080}.er-market-card-foot .btn{font-size:12px}.er-market-own-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid #7a80902e}.er-market-own-row strong{display:block;color:#ecd7b4}.er-market-own-row small{display:block;color:#9fb0bb;margin-top:3px}@media(max-width:640px){.er-market-head{padding:18px 12px}.er-market-card{min-height:210px}.er-market-own-row{align-items:flex-start;flex-direction:column}}
.er-market-card-tools{display:flex;gap:14px;margin-top:12px}.er-market-card-tools button{appearance:none;border:0;padding:0;background:none;color:#91a6b6;text-decoration:underline;font:11px system-ui;cursor:pointer}.er-market-card-tools button:hover{color:#e2c18c}

/* v1.0.40: aligned hub and creator studio */
#app .er-world-hub{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:28px 0 42px}
#app .er-world-hub>*{grid-column:auto;min-width:0;min-height:94px;padding:17px 15px;gap:12px;border-radius:13px;background:linear-gradient(160deg,#1b2b39,#111d2a);transition:transform .16s,border-color .16s}
#app .er-world-hub .er-dashboard-create:hover{transform:translateY(-2px);border-color:#bc985f}
#app .er-world-hub .er-dashboard-summary-icon{width:42px;height:42px;flex:0 0 42px}
#app .er-world-hub .er-dashboard-create strong{font-size:14px}
#app .er-world-hub .er-dashboard-create small{font-size:11px}
#app .er-world-hub .er-dashboard-save-arrow{margin-left:auto}
.er-creator-studio{max-width:950px;margin:auto;background:linear-gradient(180deg,rgba(22,39,53,.96),rgba(12,23,36,.97));border-radius:18px;padding:clamp(20px,4vw,44px)}
.er-creator-studio h1{letter-spacing:-.035em}
.er-creator-tip{display:flex;flex-direction:column;gap:6px;padding:17px 20px;background:rgba(204,159,95,.08);border:1px solid rgba(204,159,95,.23);border-radius:12px;margin:18px 0;color:#edd3a5}
.er-creator-tip span{color:#c3cbd3;font-size:12px}
.er-creator-draft-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px;font-size:12px;color:#a9b8c5}
.er-creator-section-label{margin:28px 0 14px;padding-bottom:8px;border-bottom:1px solid #ad97634a;font-size:12px;letter-spacing:.15em;color:#dcb776;text-transform:uppercase;font-weight:700}
.er-creator-studio label{display:block;font-weight:600;margin-bottom:6px}
.er-creator-studio .form-control,.er-creator-studio .form-select{background-color:#101f2d;color:#e9eef3;border-color:#60708180}
.er-creator-studio textarea{line-height:1.55}
.er-creator-submit-note{padding:14px 0;color:#b6c7d5;font-size:13px}
.er-npc-chip{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 14px;margin:8px 0;border:1px solid #64758b60;border-radius:9px;background:#142533}
.er-npc-chip>div{display:flex;flex-direction:column;gap:3px}.er-npc-chip small{font-size:12px;color:#adbdcb}.er-npc-chip button{border:0;background:none;color:#dbc091;font-size:22px}
.er-world-cover{width:100%;aspect-ratio:16/9;overflow:hidden;background:#0d1928;margin-bottom:14px;border-radius:9px}
.er-world-cover img{width:100%;height:100%;object-fit:cover;display:block}.er-world-cover-empty,.er-own-cover-empty{display:grid;place-items:center;color:#c7a469;font-size:42px;background:linear-gradient(145deg,#183145,#111b29)}
.er-own-cover{width:100px;height:56px;flex:0 0 100px;object-fit:cover;border-radius:7px}
.er-market-own-row{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.er-market-own-row>div:nth-child(2){flex:1;min-width:120px}
@media(max-width:1100px){#app .er-world-hub{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){#app .er-world-hub{grid-template-columns:1fr 1fr;gap:9px}#app .er-world-hub>*{min-height:82px;padding:12px 10px;gap:8px}#app .er-world-hub .er-dashboard-summary-icon{width:32px;height:32px;flex-basis:32px;font-size:17px}#app .er-world-hub .er-dashboard-create strong{font-size:12px}#app .er-world-hub .er-dashboard-create small{font-size:10px}.er-creator-studio{padding:20px 16px}.er-own-cover{width:72px;height:42px;flex-basis:72px}}

.er-market-hook{font-weight:700;color:#eccd91;font-size:13px}

/* Creator Studio v1.0.41: authored world sections */
.er-creator-studio .er-world-fields{margin-top:1.25rem}
.er-creator-studio .er-world-fields .er-creator-section-label{margin-top:1.55rem;margin-bottom:.85rem;padding-top:1rem;border-top:1px solid rgba(214,182,120,.18)}
.er-creator-studio .er-world-fields textarea{line-height:1.55;min-height:90px;resize:vertical}
.er-creator-studio .er-world-fields label{display:block;font-weight:650;letter-spacing:.01em;margin-bottom:.45rem}
@media(min-width:900px){.er-creator-studio .er-world-fields{max-width:900px}}

.er-creator-studio .er-compiled-preview{padding:1.1rem 1.2rem;border:1px solid rgba(218,180,104,.26);background:rgba(5,16,27,.72);border-radius:12px;margin-bottom:1rem}
.er-creator-studio .er-compiled-preview[hidden]{display:none!important}
.er-creator-studio .er-compiled-preview h4{font-size:1rem;color:#efcc86;margin:0 0 .5rem}
.er-creator-studio .er-compiled-preview pre{max-height:420px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:.875rem;line-height:1.55;color:#d3e1ea;margin:0}

/* v1.0.42: creator-focused field guidance and optional examples */
.er-creator-studio .er-creator-orientation{padding:12px 15px;border-left:3px solid #cba568;background:rgba(206,173,108,.07);color:#cddbe5;font-size:13px;line-height:1.6;margin:0 0 18px}
.er-creator-studio .er-creator-guidance{margin:-.5rem 0 1.35rem;padding:11px 14px;border:1px solid rgba(158,182,202,.16);border-radius:9px;background:rgba(11,28,42,.47);color:#b8cad7;font-size:12px;line-height:1.58}
.er-creator-studio .er-creator-guidance p{margin:0 0 6px}
.er-creator-studio .er-guide-purpose{color:#dce6ed}
.er-creator-studio .er-guide-questions strong{color:#e2bc7c}
.er-creator-studio .er-guide-example{margin-top:7px}
.er-creator-studio .er-guide-example summary{cursor:pointer;color:#deb879;font-weight:650;outline-offset:3px}
.er-creator-studio .er-guide-example[open] summary{margin-bottom:8px}
.er-creator-studio .er-guide-example p{padding:10px 12px;background:rgba(193,160,102,.08);border-radius:6px;color:#e5eaf0;margin-bottom:7px}
.er-creator-studio .er-guide-example small{color:#a8bdc9}
.er-creator-studio.er-creator-quick .er-creator-guidance{display:none}

/* v1.0.45 Creator Studio: unified editor with a contextual sidebar */
#app .er-creator-studio{max-width:1370px;width:100%;padding:clamp(22px,3vw,42px)}
#app .er-creator-studio .er-studio-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,320px);gap:clamp(20px,2.8vw,40px);align-items:start}
#app .er-creator-studio #worldform{min-width:0}
#app .er-creator-studio .er-studio-help-sidebar{min-width:0}
#app .er-creator-studio .er-studio-help-sticky{position:sticky;top:20px;border:1px solid rgba(213,175,111,.3);border-radius:16px;background:linear-gradient(160deg,rgba(25,46,62,.98),rgba(11,24,39,.98));padding:24px;box-shadow:0 18px 38px rgba(0,0,0,.18)}
#app .er-creator-studio .er-studio-help-sticky h3{font-size:1.3rem;color:#f5e2bd;line-height:1.25;margin:8px 0 12px}
#app .er-creator-studio .er-studio-help-sticky h4{font-size:1rem;color:#eac48c;margin:20px 0 12px}
#app .er-creator-studio .er-studio-help-lede,#app .er-creator-studio .er-studio-help-footer p{font-size:13px;line-height:1.6;color:#b7c7d3}
#app .er-creator-studio .er-studio-help-sidebar .er-creator-guidance{display:block!important;background:transparent;border:0;padding:0;margin:0}
#app .er-creator-studio .er-studio-help-footer{border-top:1px solid rgba(213,175,111,.23);margin-top:24px;padding-top:16px;font-size:13px;color:#e3c28f}
@media(min-width:961px){#app .er-creator-studio #worldform>.er-world-fields .er-creator-guidance{display:none!important}}
#app .er-creator-studio .btn,#app .er-creator-studio button[data-creator],#app .er-creator-studio .er-quiet-button{border-radius:10px;min-height:41px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:650;line-height:1.25;box-shadow:none}
#app .er-creator-studio .btn-sm{min-height:39px;padding:9px 16px}
#app .er-creator-studio #create-custom-world{min-height:48px;padding:12px 22px}
#app .er-creator-studio .er-creator-section-label{font-size:12px;letter-spacing:.1em;color:#e7c68f;margin-top:30px}
#app .er-creator-studio .form-control:focus,#app .er-creator-studio .form-select:focus{border-color:#d5ad70;box-shadow:0 0 0 3px rgba(207,164,96,.15)}
@media(max-width:960px){#app .er-creator-studio .er-studio-layout{grid-template-columns:minmax(0,1fr)}#app .er-creator-studio .er-studio-help-sidebar{display:none}}

/* v1.0.46: Creator Studio final actions and genuinely sticky help column. */
@media (min-width:961px) {
  #app .er-creator-studio .er-studio-help-sidebar {
    align-self:stretch; /* A full-height grid track lets sticky operate while the form scrolls. */
    position:relative;
    min-height:100%;
  }
  #app .er-creator-studio .er-studio-help-sticky {
    position:sticky;
    top:86px; /* clear the site header */
    max-height:calc(100dvh - 104px);
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    z-index:2;
  }
}
#app .er-creator-studio .er-creator-final-actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:stretch;
  margin:16px 0 20px;
}
#app .er-creator-studio .er-creator-final-actions .btn {
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:46px;
  min-height:46px;
  margin:0!important;
  padding:0 17px!important;
  border:1px solid rgba(210,184,142,.48)!important;
  border-radius:9px!important;
  box-shadow:none!important;
  background:#1a2a37!important;
  background-image:none!important;
  color:#f4e9d7!important;
  text-decoration:none!important;
  text-shadow:none!important;
  font:600 13px/1.25 system-ui!important;
  letter-spacing:0!important;
  white-space:normal;
  transition:background .15s,border-color .15s;
}
#app .er-creator-studio .er-creator-final-actions .btn::before,
#app .er-creator-studio .er-creator-final-actions .btn::after {content:none!important;display:none!important}
#app .er-creator-studio .er-creator-final-actions .btn:hover {background:#283b49!important;border-color:#d4b477!important}
#app .er-creator-studio .er-creator-final-actions #create-custom-world {
  background:#d0a45f!important;
  border-color:#e6bd7e!important;
  color:#191611!important;
  font-weight:750!important;
  min-height:46px!important;
  height:46px!important;
}
#app .er-creator-studio .er-creator-final-actions #create-custom-world:hover {background:#e5bb77!important}
#app .er-creator-studio .er-creator-final-actions .er-creator-back{margin-left:auto!important}
@media(max-width:620px){
  #app .er-creator-studio .er-creator-final-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  #app .er-creator-studio .er-creator-final-actions #create-custom-world{grid-column:1/-1;grid-row:1}
  #app .er-creator-studio .er-creator-final-actions .er-creator-back{margin:0!important}
}

/* v1.0.47 marketplace filters */
.er-market-filters{display:flex;flex-wrap:wrap;gap:18px;align-items:end;margin:12px 0 20px;padding:14px 18px;border:1px solid rgba(204,175,117,.20);border-radius:12px;background:rgba(9,20,30,.55)}
.er-market-filters label{color:#e7e0ce;font-size:13px;font-weight:650}.er-market-filters select{min-width:195px;margin-top:7px;background:#132333;color:#eee;border-color:#5a5d63}.er-market-adult{display:flex;align-items:center;gap:9px;padding-bottom:10px;cursor:pointer}.er-market-adult input{accent-color:#d6a65d;width:17px;height:17px}

/* v1.0.51: world-wide image and video art direction */
.er-style-canon-preview{margin:0 0 1.1rem;padding:12px 14px;border:1px solid rgba(203,164,90,.35);border-radius:10px;background:rgba(203,164,90,.07);color:#d7e1ec;font-size:.86rem;line-height:1.5;overflow-wrap:anywhere}

/* v1.0.52 · Story freedom controls */
.er-creator-studio .er-story-freedom-help{padding:12px 15px;border-radius:10px;border:1px solid rgba(207,168,95,.25);background:rgba(207,168,95,.07);color:#d9e2ed;font-size:.9rem;line-height:1.5;}
.er-creator-studio #er-story-freedom{min-height:46px;}

/* Quick Create drafting action (not shown in Guided or Advanced). */
.er-quick-ai:not([hidden]){display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:12px 0 20px;padding:16px 18px;border:1px solid rgba(204,164,96,.4);border-radius:12px;background:rgba(210,167,91,.07)}
.er-quick-ai[hidden]{display:none!important}
.er-quick-ai>div{flex:1 1 260px}.er-quick-ai strong{font-size:1rem}.er-quick-ai p{color:#c5ccda;font-size:.86rem;line-height:1.5;margin:5px 0 0}.er-quick-ai #er-auto-populate-status{flex-basis:100%;font-size:.85rem;color:#dbc18b}

/* v1.0.57: a partial API outage must not hide the marketplace controls. */
.er-market-errors{margin:0 0 18px;padding:14px 17px;border:1px solid #ad794e;border-radius:12px;background:rgba(130,68,42,.2);color:#f4dfc8}
.er-market-errors p{margin:6px 0 12px;overflow-wrap:anywhere;font-size:.87rem}

/* v1.0.69: fatal ending after the last settled scene; never before the narrator's prose. */
.er-death-ending{margin:1.25rem 0 2rem;padding:clamp(1.3rem,4vw,3rem);border:1px solid rgba(218,184,132,.35);border-radius:18px;background:linear-gradient(160deg,rgba(36,28,30,.96),rgba(10,13,20,.96));color:#f4ece1;box-shadow:0 12px 35px rgba(0,0,0,.22)}
.er-death-kicker{font-size:.72rem;letter-spacing:.3em;color:#d3ab82;font-weight:700;margin-bottom:.75rem}
.er-death-ending h2{font-family:Georgia,serif;font-weight:500;font-size:clamp(1.55rem,4vw,2.4rem);margin:0 0 1.1rem}
.er-death-ending p{font-family:Georgia,serif;font-size:clamp(1.02rem,2vw,1.18rem);line-height:1.85;margin-bottom:1rem}
.er-death-cause{margin-top:1.4rem;border-top:1px solid rgba(255,255,255,.18);padding-top:1rem;font-size:.85rem;opacity:.75}

/* v1.0.81 — credit checkout overlays must sit above the fixed mobile game dock.
   Bootstrap defaults modal/backdrop to 1055/1050; the game dock uses 1300. */
#creditModal,
#creditSuccessModal { z-index: 1510 !important; }
.modal-backdrop { z-index: 1500 !important; }

@media (max-width: 767.98px) {
  #creditModal,
  #creditSuccessModal {
    padding: 0 !important;
    padding-top: env(safe-area-inset-top) !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
  }
  #creditModal .modal-dialog,
  #creditSuccessModal .modal-dialog {
    width: calc(100% - 24px);
    max-width: 480px;
    margin: 12px auto;
    min-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }
  #creditModal .modal-content,
  #creditSuccessModal .modal-content {
    pointer-events: auto;
    width: 100%;
    max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  #creditModal .modal-header,
  #creditSuccessModal .modal-header { flex-shrink: 0; }
  #creditModal .modal-body,
  #creditSuccessModal .modal-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
  #creditModal #pay-now { min-height: 48px; }
}

/* v1.0.82 — app-like mobile layout: keep the fixed mobile navigation,
   but omit the desktop website footer from the narrow-screen experience. */
@media (max-width: 767.98px) {
  body > .er-global-footer { display: none !important; }
}

/* v1.0.85 — mobile account access: brand header + form only.
   Restrict to login page so other public pages and desktop remain unchanged. */
@media (max-width: 767.98px) {
  body.er-login-page .er-login-aside { display: none !important; }
  body.er-login-page .er-login-layout {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }
  body.er-login-page .er-info-main {
    padding: 20px 14px calc(28px + env(safe-area-inset-bottom));
  }
  body.er-login-page .er-login-panel {
    width: 100%;
    padding: clamp(20px, 5vw, 30px);
  }
}
