.efg-screen{--efg-ink:#241541;position:fixed!important;inset:0!important;width:100%!important;height:100vh;height:100dvh;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;background:#faf7ff;color:var(--efg-ink);z-index:2147483600;display:flex;flex-direction:column;isolation:isolate;box-sizing:border-box;font:16px/1.5 system-ui,sans-serif}
.efg-screen *{box-sizing:border-box}
.efg-bar{display:flex;align-items:center;justify-content:space-between;flex:none;min-height:56px;gap:8px;padding:6px max(10px,env(safe-area-inset-right)) 6px max(12px,env(safe-area-inset-left));padding-top:max(6px,env(safe-area-inset-top));background:#241541;color:#fff;box-shadow:0 2px 14px #160b2520;z-index:5}
.efg-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700;font-size:14px;padding-right:6px}
.efg-actions{display:flex;flex:none;gap:6px}
.efg-screen .efg-actions button,.efg-screen .efg-actions a,.efg-dialog button,.efg-dialog a,.efg-loading button,.efg-loading a{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;min-width:44px;border:1px solid #ffffff45;border-radius:12px;background:#ffffff12;color:#fff;padding:8px 13px;font:600 14px/1.2 system-ui,sans-serif;text-decoration:none;cursor:pointer;touch-action:manipulation}
.efg-screen button:focus-visible,.efg-screen a:focus-visible{outline:3px solid #eecf6e;outline-offset:2px}
.efg-screen button:disabled{opacity:.65;cursor:wait}
.efg-content,.efg-frame-wrap{position:relative;flex:1;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:env(safe-area-inset-bottom)}
.efg-frame-wrap{overflow:hidden;display:flex}
.efg-frame{flex:1;display:block;width:100%;height:100%;border:0;background:#faf7ff}
.efg-document,.efg-game-page{margin:0!important;padding:0!important;height:100%!important;overflow:hidden!important;scroll-padding:0!important;--esc-header-height:0px;--esc-header-offset:0px}
body.efg-game-page>:not(#efg-direct):not(script):not(style):not(link){display:none!important}
.efg-embedded .efg-screen{height:100vh;height:100dvh}
.efg-content .euonia-page-ads,.efg-content .euonia-game-ads,.efg-content [aria-label="Advertisement"],.efg-content [aria-label="More book games"],.efg-content .egr-policy{display:none!important}
.efg-content .euonia-page-with-ads,.efg-content .euonia-game-layout{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
.efg-content>:first-child{margin-top:0!important}
.efg-content main{max-width:100%;margin-top:0!important}
.efg-content .esp,.efg-content .etp,.efg-content .ees{width:100%!important;max-width:none!important;margin:0!important}
.efg-document.efg-paused .efg-content{visibility:hidden!important}
.efg-document.efg-paused *, .efg-document.efg-paused *::before,.efg-document.efg-paused *::after{animation-play-state:paused!important}
.efg-overlay{position:absolute;inset:0;display:grid;place-items:center;background:#241541f7;color:#fff;z-index:10;padding:20px max(20px,env(safe-area-inset-right)) 20px max(20px,env(safe-area-inset-left));text-align:center;overflow:auto}
.efg-overlay[hidden],.efg-loading[hidden],.efg-loading [hidden]{display:none!important}
.efg-dialog{width:min(100%,390px);margin:auto;outline:0}
.efg-dialog .efg-pause-icon{display:block;width:23px;height:32px;border-left:7px solid #eecf6e;border-right:7px solid #eecf6e;margin:0 auto 24px}
.efg-actions [data-efg="pause"]::before{content:"";display:block;width:9px;height:13px;border-left:3px solid currentColor;border-right:3px solid currentColor;box-sizing:border-box}
.efg-content .ebse{margin:0!important;width:100%!important;height:100%!important;min-height:0!important}
.efg-dialog h2{font:700 30px/1.2 system-ui,sans-serif;color:#fff;margin:0 0 12px}
.efg-dialog p{font:400 15px/1.6 system-ui,sans-serif;color:#e1d6ef;margin:0 0 24px}
.efg-dialog button,.efg-dialog a{margin:5px}
.efg-dialog [data-efg="resume"]{background:#efd48c;color:#241541;border-color:#efd48c}
.efg-dialog [data-efg="expand"]{display:flex;margin:14px auto 0;background:transparent;border:0;color:#d9c8ef;font-size:13px}
.efg-loading{position:absolute;inset:0;background:#faf7ff;display:grid;place-content:center;gap:12px;text-align:center;padding:24px;color:#39294f;z-index:2}
.efg-loading button,.efg-loading a{background:#392451;color:#fff;border:0}
html.efg-open,html.efg-open body{overflow:hidden!important}
html.efg-open body>:not(.efg-screen):not(script):not(style):not(link){visibility:hidden!important}
@media(max-width:600px){.efg-title{font-size:12px}.efg-bar{min-height:54px}.efg-screen .efg-actions button,.efg-screen .efg-actions a{padding:8px 10px}.efg-content .esp,.efg-content .etp,.efg-content .ees{border-radius:0!important}.efg-content .esp-hero,.efg-content .etp-hero{padding-top:10px!important}}
@media(prefers-reduced-motion:reduce){.efg-screen *{scroll-behavior:auto!important}}
