html body[data-home=false]{height:100dvh;overflow:hidden;padding:0;background:#e0d0ef}
html body[data-home=false] .app-shell{height:100dvh;width:100%;max-width:none;margin:0;padding:0;border:0;background:none;box-shadow:none}
html body[data-home=false] .app-header{display:none}
html body #workspace{position:relative;isolation:isolate;width:100%;height:100%;padding:16px;gap:20px;background:#e0d0ef;min-height:0}
html body .play-panel{border:0;background:none;box-shadow:none;min-height:0;padding:0}
html body .console-stage{min-height:0;display:flex;align-items:center;justify-content:center;padding:0;border:0;background:none;overflow:hidden}
html body .ds-display{border:0;box-shadow:none;background:#302839;max-width:100%;max-height:100%}
html body .translation-panel{background:none;border:0;box-shadow:none;padding:0;min-width:0;min-height:0}
html body #v2-reading-paper{position:relative;flex:1;min-height:0;padding:16px;border:8px solid transparent;border-image:url('/assets/interface-v2/pastel-ui/paper-normal.png') var(--native-frame-slice,4) fill / var(--native-frame-corner,8px) / 0 repeat;background:none;overflow:hidden;z-index:4;image-rendering:pixelated;image-rendering:crisp-edges;}
html body #translation-body{height:100%;min-height:0;overflow:auto;background:repeating-linear-gradient(transparent,transparent 29px,#b7a5cd45 29px,#b7a5cd45 30px);padding:4px 8px}
html body .translation-intro{background:none;border:0;padding:0;box-shadow:none}html body .translation-intro .language-label{display:none}
html body :is(#translation-text,.translation-intro) :is(.japanese,[lang=ja]){font-weight:600}
html body .history-panel{border-color:#c5b2d3;margin-top:16px}html body .language-block{border:0;margin:4px 0;padding:4px 0}
html body #player-dock{margin:0;padding:0;border:0;background:none;width:100%}
html body .main-actions{display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:6px;width:100%}
html body .main-actions .control-group{display:contents}
html body .main-actions :is(.pixel-button,#open-settings){flex:1;min-width:40px;max-width:110px;min-height:44px;height:44px;padding:4px;font-size:0;background:none;box-shadow:none;border:6px solid transparent;border-image:url('/assets/interface-v2/pastel-ui/lavender-normal.png') var(--native-frame-slice,4) fill / var(--native-frame-corner,8px) / 0 repeat;image-rendering:pixelated;image-rendering:crisp-edges;}
html body .main-actions :is(.pixel-button,#open-settings) span{font-size:0}html body .main-actions .pixel-button .icon{width:24px;height:24px;color:#4d395e}
html body .main-actions #player-settings-slot{display:contents}
html body .main-actions #open-settings{--v2-size:40px}
html body #translation-actions{display:flex;align-items:stretch;gap:8px;min-width:0;width:100%;margin:0;grid-area:auto;order:0}
html body #capture-button{flex:1;min-width:0;min-height:48px;padding:4px 12px;font-size:26px;white-space:nowrap;border:8px solid transparent;border-image:url('/assets/interface-v2/pastel-ui/mint-normal.png') var(--native-frame-slice,4) fill / var(--native-frame-corner,8px) / 0 repeat;background:none;box-shadow:none;color:#30233a;image-rendering:pixelated;image-rendering:crisp-edges;}
html body #capture-button .icon{width:24px;height:24px;flex:none}html body #capture-button kbd{display:inline-block;border:2px solid #79628d;border-radius:3px;padding:3px 7px;margin-left:8px;background:#e8f7e8;font:16px system-ui;color:#41334c}
html body #study-reminder{min-width:64px;min-height:48px;margin:0;padding:6px;font-size:22px;animation:none;border:8px solid transparent;border-image:url('/assets/interface-v2/pastel-ui/gold-normal.png') var(--native-frame-slice,4) fill / var(--native-frame-corner,8px) / 0 repeat;background:none;box-shadow:none;color:#30233a;image-rendering:pixelated;image-rendering:crisp-edges;}
html body #v2-translation-footer{display:flex;align-items:center;gap:8px;min-height:54px;flex:none}
html body .v2-reader-tool{display:grid;place-items:center;z-index:9;min-width:28px;min-height:28px;width:28px;height:28px;padding:0;border:2px solid #79618a;border-radius:4px;background:#ede2f6;color:#594069;font:bold 20px/1 system-ui;cursor:pointer;box-shadow:none;touch-action:manipulation}
html body #v2-reader-lock[aria-pressed=true]{background:#bae9c9}html body #toggle-mobile-reader{font-size:20px}
html body #guest-trial-status{font-family:system-ui;font-size:11px;line-height:1.2;color:#665574;margin:2px 0;min-height:14px;padding:0;border:0;background:none}
html body #secondary-screen{min-height:0;margin:0;padding:0;background:none;border:0;box-shadow:none}
html body #secondary-screen :is(header,p,h3){display:none}html body #secondary-viewport{height:100%;max-height:100%;width:auto;max-width:100%;aspect-ratio:4/3;margin:auto;border:3px solid #605374;background:#2b2938}
html body[data-console-layout=desktop] #workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(310px,32%);grid-template-rows:minmax(0,1fr)}
html body[data-console-layout=desktop] .play-panel{display:flex;flex-direction:column;gap:14px;justify-content:center}
html body[data-console-layout=desktop] #console-stage{flex:1;height:0;width:100%}html body[data-console-layout=desktop] .translation-panel{display:flex;flex-direction:column;gap:12px}
html body[data-console-layout=desktop] #secondary-screen{flex:none;height:28vh;order:3}
html body[data-console-layout=desktop] #v2-translation-footer{order:4}
html body[data-console-layout=desktop] .mobile-reader-toolbar{display:none}
html body[data-console-layout=desktop] .volume-control{position:relative;flex:1;max-width:70px}
html body[data-console-layout=desktop] #swap-screens{border-image-source:url('/assets/interface-v2/pastel-ui/mint-normal.png')}
html body[data-console-layout=desktop] .main-actions #choose-rom{font-size:17px;max-width:140px}html body[data-console-layout=desktop] .main-actions #choose-rom span{font-size:17px}
/* The same real touch targets keep their multi-pointer input ledger. */
html body #touch-controls{border:0;background:none;padding:0;margin:0;position:relative;z-index:6;min-height:0}
html body .touch-main{display:grid;grid-template-columns:112px minmax(0,1fr) 112px;align-items:center;gap:8px;padding:0}
html body .touch-dpad{position:relative;width:112px;height:112px;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);background:url('/assets/interface-v2/ui/console-croix-normal.png') center/112px no-repeat;touch-action:none;transform:none;border:0;box-shadow:none}
html body .touch-dpad :is(button,.touch-dpad-center){font-size:0;border:0;border-image:none;background:transparent;box-shadow:none;color:transparent;width:auto;height:auto;padding:0;min-height:0;min-width:0;clip-path:none;border-radius:0}
html body .touch-dpad button:active{background:#ffffff28}html body .touch-face{width:112px;height:112px;position:relative;transform:none;margin:0}
html body .touch-face button{position:absolute;width:48px;height:48px;min-width:0;min-height:0;border:0;padding:0;box-shadow:none;color:transparent;font-size:0;transform:none;background:var(--key-art) center/48px 48px no-repeat;image-rendering:pixelated}
html body [data-touch-key=A]{--key-art:url('/assets/interface-v2/ui/console-a-normal.png');right:0;top:20px}html body [data-touch-key=B]{--key-art:url('/assets/interface-v2/ui/console-b-normal.png');left:0;bottom:8px}
html body [data-touch-key=X]{--key-art:url('/assets/interface-v2/ui/console-x-normal.png');top:0;left:32px}html body [data-touch-key=Y]{--key-art:url('/assets/interface-v2/ui/console-y-normal.png');left:0;top:32px}
html body[data-console=ds] [data-touch-key=A]{top:32px}html body[data-console=ds] [data-touch-key=B]{left:32px;bottom:0}
html body .touch-face button:hover{background-image:var(--key-art);filter:none}html body .touch-face button[aria-pressed=true]{filter:brightness(.88)}
html body .touch-shoulders{display:flex;align-items:center;justify-content:space-between;margin:0 0 8px;min-height:0}
html body .touch-shoulders>[data-touch-key]{width:64px;height:32px;min-height:32px;min-width:0;padding:0;border:0;box-shadow:none;font-size:0;color:transparent;background:var(--key-art) center/64px 32px no-repeat;image-rendering:pixelated}
html body [data-touch-key=L]{--key-art:url('/assets/interface-v2/ui/console-l-normal.png')}html body [data-touch-key=R]{--key-art:url('/assets/interface-v2/ui/console-r-normal.png')}
html body .touch-system{display:flex;justify-content:space-between;padding:8px 20px 0;gap:20px;margin:0}
html body .touch-system button{width:64px;height:28px;min-width:0;min-height:0;border:0;padding:0;box-shadow:none;font-size:0;color:transparent;background:var(--key-art) center/64px 28px no-repeat;image-rendering:pixelated}
html body [data-touch-key=Select]{--key-art:url('/assets/interface-v2/ui/console-select-normal.png')}html body [data-touch-key=Start]{--key-art:url('/assets/interface-v2/ui/console-start-normal.png')}
html body #touch-secondary-slot{min-height:0;max-height:none;height:100%;width:100%;padding:0}
html body #touch-swap-slot #swap-screens{min-height:28px;height:28px;width:44px;padding:2px;font-size:0;border:4px solid transparent;border-image:url('/assets/interface-v2/pastel-ui/mint-normal.png') var(--native-frame-slice,4) fill / var(--native-frame-corner,8px) / 0 repeat;image-rendering:pixelated;image-rendering:crisp-edges;}
html body[data-console-layout=portrait] #workspace{display:grid;grid-template-columns:1fr;grid-template-rows:min(40dvh,calc(100vw * .7)) minmax(80px,1fr) 194px;gap:8px;padding:max(6px,env(safe-area-inset-top)) 10px max(8px,env(safe-area-inset-bottom))}
html body[data-console-layout=portrait] .play-panel{grid-row:1;display:block;height:100%;min-height:0}
html body[data-console-layout=portrait] #console-stage{width:100%;height:100%;padding:0}
html body[data-console-layout=portrait] .translation-panel{grid-row:2;display:flex;flex-direction:column;overflow:visible}
html body[data-console-layout=portrait] .mobile-reader-toolbar{display:grid;grid-template-columns:40px minmax(0,1fr) 28px;gap:8px;padding:0 0 4px;align-items:center}
html body[data-console-layout=portrait] #touch-controls{grid-row:3;display:flex;flex-direction:column;justify-content:center}
html body[data-console-layout=portrait] #v2-reading-paper{padding:6px;min-height:0}
html body[data-console-layout=portrait] .translation-actions{width:100%}html body[data-mobile=true] #capture-button kbd{display:none}
html body[data-console-layout=portrait] #capture-button{min-height:40px;font-size:23px}html body[data-console-layout=portrait] #study-reminder{min-height:40px;font-size:20px}
html body[data-console-layout=portrait] #v2-translation-footer{display:none}
html body[data-console-layout=portrait] #secondary-screen{height:100%;min-height:0}
html body[data-console-layout=portrait][data-console=ds] .touch-main{flex:1;max-height:160px;grid-template-columns:96px minmax(0,1fr) 96px}html body[data-console-layout=portrait][data-console=ds] :is(.touch-face,.touch-dpad){width:96px;height:96px;background-size:96px}
html body[data-console-layout=portrait][data-console=ds] .touch-face button{width:40px;height:40px;background-size:40px}html body[data-console-layout=portrait][data-console=ds] [data-touch-key=B]{left:28px}html body[data-console-layout=portrait][data-console=ds] [data-touch-key=X]{left:28px}
/* Landscape: the screen keeps its maximum size when the reader opens. */
html body[data-floating-reader=true] #workspace{display:block;padding:0}
html body[data-floating-reader=true] .play-panel{position:absolute;inset:0 120px;display:block;z-index:1}
html body[data-floating-reader=true] #console-stage{position:absolute;inset:0;width:100%;height:100%;padding:0}
html body[data-floating-reader=true] :is(.translation-panel,.mobile-reader-toolbar){display:contents;position:static}
html body[data-floating-reader=true] #mobile-menu-toggle{position:absolute;left:max(12px,env(safe-area-inset-left));top:max(10px,env(safe-area-inset-top));width:40px;height:40px;min-height:40px;padding:4px;z-index:8}
html body[data-floating-reader=true] #mobile-translate-slot{position:absolute;right:max(12px,env(safe-area-inset-right));top:max(10px,env(safe-area-inset-top));width:98px;z-index:8}
html body[data-console-layout=phone-landscape] #capture-button{font-size:0;min-height:40px;padding:4px;height:40px}html body[data-console-layout=phone-landscape] #capture-button span{font-size:0}html body[data-console-layout=phone-landscape] #capture-button .icon{width:24px;height:24px}
html body[data-console-layout=phone-landscape] #study-reminder{min-width:40px;min-height:40px;height:40px;font-size:16px;padding:2px}
html body[data-floating-reader=true] #guest-trial-status{position:absolute;top:56px;right:10px;width:100px;text-align:center;z-index:7;font-size:9px}
html body[data-floating-reader=true] #touch-controls{position:absolute;inset:0;display:block;pointer-events:none;background:none;z-index:6}
html body[data-floating-reader=true] #touch-controls button,html body[data-floating-reader=true] .touch-dpad{pointer-events:auto}
html body[data-floating-reader=true] :is(.touch-main,.touch-shoulders,.touch-system){display:contents}
html body[data-floating-reader=true] .touch-dpad{position:absolute;left:max(12px,env(safe-area-inset-left));bottom:52px}
html body[data-floating-reader=true] .touch-face{position:absolute;right:max(12px,env(safe-area-inset-right));bottom:52px}
html body[data-floating-reader=true] [data-touch-key=L]{position:absolute;left:28px;bottom:178px}html body[data-floating-reader=true] [data-touch-key=R]{position:absolute;right:28px;bottom:178px}
html body[data-floating-reader=true] [data-touch-key=Select]{position:absolute;left:36px;bottom:12px}html body[data-floating-reader=true] [data-touch-key=Start]{position:absolute;right:36px;bottom:12px}
html body[data-floating-reader=true] #touch-secondary-slot{display:none}html body[data-floating-reader=true] #touch-swap-slot{position:absolute;right:38px;bottom:220px}
html body[data-floating-reader=true] #v2-reading-paper{z-index:4}html body[data-floating-reader=true] #translation-body{padding:0;font-family:system-ui;font-size:16px}
html body[data-floating-reader=true] #translation-body .language-label{display:none}html body[data-floating-reader=true] #translation-body .japanese{font-size:18px;line-height:1.5}html body[data-floating-reader=true] #translation-body :is(.french,.romaji){font-size:15px;line-height:1.4}
html body[data-floating-reader=true] #translation-text{display:flex;flex-direction:column}html body[data-floating-reader=true] #translation-text [data-reading-field=french]{order:-1}
html body[data-floating-reader=true] #v2-translation-footer{display:none}
html body[data-floating-reader=true] #mobile-toolbar{position:absolute;top:56px;left:12px;bottom:auto;right:auto;width:min(420px,calc(100vw - 24px));z-index:12}
html body[data-mobile-menu=true] .main-actions{flex-wrap:wrap}html body[data-mobile-menu=true] .main-actions .pixel-button{flex:1 0 44px}
html body[data-console-layout=tablet-landscape] .play-panel{inset:32px 140px 120px}
html body[data-console-layout=tablet-landscape] #mobile-translate-slot{top:auto;bottom:34px;left:26%;right:26%;width:auto}
html body[data-console-layout=tablet-landscape] #guest-trial-status{top:auto;bottom:12px;left:40%;right:40%;width:auto}
html body[data-console-layout=tablet-landscape] #capture-button{font-size:26px}html body[data-console-layout=tablet-landscape] #study-reminder{min-width:110px}
@media(min-width:700px) and (orientation:portrait){html body[data-console-layout=portrait] #workspace{grid-template-rows:42dvh minmax(120px,1fr) 27dvh;padding:20px;gap:14px}html body[data-console-layout=portrait] .touch-main{flex:1;grid-template-columns:160px minmax(0,1fr) 160px}html body[data-console-layout=portrait] :is(.touch-dpad,.touch-face){width:144px;height:144px;background-size:144px}html body[data-console-layout=portrait][data-console=ds] .touch-main{max-height:none;grid-template-columns:144px minmax(0,1fr) 144px}html body[data-console-layout=portrait][data-console=ds] :is(.touch-dpad,.touch-face){width:128px;height:128px;background-size:128px}}
html body[data-mobile=true] #touch-controls :is(button:hover,button:focus){filter:none}html body[data-mobile=true] .main-actions #open-settings{display:inline-block}
html body .main-actions #open-settings.v2-sprite{--v2-size:56px!important;flex:0 0 56px!important;margin:0}
html body[data-console-layout=desktop] .main-actions #choose-rom{font-size:0;max-width:80px}html body[data-console-layout=desktop] .main-actions #choose-rom span{font-size:0}
html body .v2-reader-tool,#toggle-mobile-reader.v2-reader-tool{min-height:28px!important;min-width:28px!important}
html body .touch-dpad{width:80px;height:80px;background-size:80px}
html body .touch-face button{width:56px;height:56px;background-size:56px 56px}
html body .touch-shoulders>[data-touch-key]{width:72px;height:36px;background-size:72px 36px}
html body .touch-system button{width:88px;height:28px;background-size:88px 28px}
html body[data-console-layout=portrait][data-console=ds] :is(.touch-face,.touch-dpad){width:96px;height:96px;background-size:80px}
html body[data-console-layout=portrait][data-console=ds] .touch-face button{width:56px;height:56px;background-size:56px}
html body[data-console-layout=tablet-landscape] .touch-dpad{width:160px;height:160px;background-size:160px}
html body[data-console-layout=tablet-landscape] [data-touch-key=L],html body[data-console-layout=tablet-landscape] [data-touch-key=R]{bottom:226px}
html body[data-console-layout=tablet-landscape] #touch-swap-slot{bottom:270px}
html body[data-floating-reader=true] #translation-body .history-panel{display:none}
html body[data-floating-reader=true] .passage{display:flex;flex-direction:column}
html body[data-floating-reader=true] .passage [data-reading-field=french]{order:-1}
html body[data-home=false]{padding:0!important}
html body[data-console-layout=portrait] .touch-main{min-height:0;grid-template-rows:minmax(0,1fr)}
html body[data-console-layout=portrait] #touch-secondary-slot{min-width:0;grid-template-rows:minmax(0,1fr)}
html body[data-console-layout=portrait] #secondary-viewport{width:auto;height:100%;max-width:100%;justify-self:center}
html body[data-console=ds] .touch-face{width:112px;height:112px}
html body[data-console=ds] .touch-face [data-touch-key=X]{left:28px;top:0;bottom:auto;right:auto}
html body[data-console=ds] .touch-face [data-touch-key=Y]{left:0;top:28px;bottom:auto;right:auto}
html body[data-console=ds] .touch-face [data-touch-key=A]{left:56px;top:28px;bottom:auto;right:auto}
html body[data-console=ds] .touch-face [data-touch-key=B]{left:28px;top:56px;bottom:auto;right:auto}
html body[data-console-layout=portrait][data-console=ds] .touch-main{grid-template-columns:112px minmax(0,1fr) 112px}
html body[data-console-layout=portrait][data-console=ds] .touch-face{width:112px;height:112px}
@media(min-width:700px) and (orientation:portrait){
 html body[data-console-layout=portrait][data-console=ds] .touch-main{grid-template-columns:144px minmax(0,1fr) 144px}
 html body[data-console-layout=portrait][data-console=ds] .touch-face{width:136px;height:136px}
 html body[data-console-layout=portrait][data-console=ds] .touch-face [data-touch-key=X]{left:40px}
 html body[data-console-layout=portrait][data-console=ds] .touch-face [data-touch-key=Y]{top:40px}
 html body[data-console-layout=portrait][data-console=ds] .touch-face [data-touch-key=A]{left:80px;top:40px}
 html body[data-console-layout=portrait][data-console=ds] .touch-face [data-touch-key=B]{left:40px;top:80px}
}
/* Absolute boxes are shared with the approved mockup, while live nodes keep their listeners. */
html body #workspace{display:block!important;padding:0!important;background:#d8e4f3;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);--safe-right:env(safe-area-inset-right,0px)}
html body:is([data-floating-reader=true],[data-console-layout=desktop]) #workspace{background:#34334f}
html body #workspace :is(.play-panel,.translation-panel,.touch-main,.touch-shoulders,.touch-system,#touch-secondary-slot,#touch-swap-slot){display:contents!important;position:static!important}
html body #touch-controls{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;pointer-events:none;display:block!important}
html body #touch-controls :is(button,.touch-dpad,#secondary-screen){pointer-events:auto}
html body #console-stage{position:absolute;min-height:0!important;max-width:none;max-height:none;flex:none!important;align-items:flex-start;background:#202432;inset:auto;overflow:hidden}
html body .ds-display,html body .empty-screen{background:#171d27;border:0!important;box-shadow:none!important}
html body .empty-console{border:0!important;background:#171d27}html body .empty-art{display:none}
html body #workspace .touch-dpad{background-size:80px 80px;transform:none;margin:0}
html body .touch-face button{width:56px!important;height:56px!important;background-size:56px 56px!important}
html body .touch-face [data-touch-key=A]{left:auto;right:0;top:8px;bottom:auto}
html body .touch-face [data-touch-key=B]{left:0;right:auto;top:auto;bottom:8px}
html body[data-console=ds] .touch-face [data-touch-key=X]{left:40px;top:0;right:auto;bottom:auto}
html body[data-console=ds] .touch-face [data-touch-key=Y]{left:0;top:40px;right:auto;bottom:auto}
html body[data-console=ds] .touch-face [data-touch-key=A]{left:auto;right:0;top:40px;bottom:auto}
html body[data-console=ds] .touch-face [data-touch-key=B]{left:40px;right:auto;top:auto;bottom:0}
html body[data-console=ds][data-console-layout=portrait] .touch-face [data-touch-key=X],html body[data-console=ds][data-console-layout=portrait] .touch-face [data-touch-key=B]{left:28px}
html body[data-console=ds][data-console-layout=portrait] .touch-face [data-touch-key=Y],html body[data-console=ds][data-console-layout=portrait] .touch-face [data-touch-key=A]{top:44px}
html body #workspace .touch-system button{height:36px;background-size:88px 28px;margin:0}
html body #workspace #secondary-screen{display:block;max-height:none!important;flex:none;order:0}
html body #secondary-viewport{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;border:2px solid #748797;background:#263442}
html body #workspace .mobile-reader-toolbar{position:absolute;display:flex;gap:6px;align-items:stretch;padding:0;grid-template-columns:none;z-index:8;min-height:0;border:0;pointer-events:none}
html body .mobile-reader-toolbar>*{pointer-events:auto}
html body #mobile-translate-slot{position:static;flex:1;min-width:0;width:auto;margin:0}
html body #mobile-menu-toggle{position:static;width:48px;height:48px;min-height:48px;flex:0 0 48px;padding:8px;z-index:8}
html body #translation-actions{height:48px;gap:6px;display:flex;align-items:stretch}
html body #capture-button{min-height:0;height:48px;font:700 20px/1.1 PixelUI,monospace;padding:8px 12px;border:0;border-image-width:var(--native-frame-corner,8px);display:flex;gap:6px;justify-content:center;align-items:center}
html body #study-reminder{min-height:0;height:48px;min-width:0;flex:1;font:700 20px/1.1 PixelUI;padding:8px 4px;border:0;border-image-source:url('/assets/interface-v2/pastel-ui/lavender-normal.png');border-image-width:var(--native-frame-corner,8px)}
html body #capture-button{flex:2}
html body .v2-command-art{width:32px;height:32px;object-fit:contain;flex:none;image-rendering:pixelated}
html body #workspace .v2-command>.icon{display:none!important}
html body #v2-reading-paper{border:0;border-image-width:var(--native-frame-corner,8px);padding:12px 14px;flex:none;min-height:0;color:#252231;z-index:4}
html body #translation-body{padding:0;background:none;overflow:auto;font-family:system-ui,sans-serif}
html body #translation-body .reading-card{background:none;border:0;padding:0;box-shadow:none}
html body #translation-body .passage{padding:0;border:0;box-shadow:none;background:none}
html body #translation-body .language-block{margin:0;padding:7px 0;border-bottom:2px solid #e0d1bd}
html body #translation-body .japanese{font-size:26px;line-height:1.35;font-weight:700;color:#242132}
html body #translation-body .romaji{font-size:16px;line-height:1.35;color:#766b85}
html body #translation-body .french{font-size:21px;line-height:1.35;color:#252231}
html body #workspace .v2-reader-tool{width:32px;height:32px;min-width:32px;min-height:32px;border:0;border-image:url('/assets/interface-v2/pastel-ui/paper-normal.png') var(--native-frame-slice,4) fill / var(--native-frame-corner,8px) / 0 repeat;border-image-width:var(--native-frame-corner,8px);border-radius:0;background:none;padding:4px;z-index:10;flex:none;image-rendering:pixelated;image-rendering:crisp-edges;}
html body #toggle-mobile-reader img{width:16px;height:16px;image-rendering:pixelated}
html body .v2-reader-format-symbol{width:12px;height:20px;border:2px solid #49415e;box-sizing:border-box;pointer-events:none}
html body #v2-reader-shape[aria-pressed=true] .v2-reader-format-symbol{width:20px;height:12px}
html body .v2-reader-lock-symbol{width:22px;height:22px;color:#49415e;pointer-events:none}
html body #v2-reader-lock[aria-pressed=true] .lock-open,html body #v2-reader-lock[aria-pressed=false] .lock-closed{display:none}
html body #v2-translation-footer{min-height:0;display:block;margin:0;gap:0;z-index:8}
html body[data-console-layout=portrait] #v2-translation-footer{display:none}
html body[data-console-layout=portrait] #toggle-mobile-reader{align-self:center}
html body[data-floating-reader=true] .mobile-reader-toolbar{display:contents!important;position:static!important}
html body[data-floating-reader=true] #mobile-translate-slot{position:absolute;z-index:8;bottom:auto;right:auto}
html body[data-floating-reader=true] #guest-trial-status{position:absolute;bottom:auto;right:auto;z-index:7;margin:0;min-height:0;font:10px/1.3 system-ui;color:#eee9f8;background:#34334fe6;text-align:center}
html body[data-console-layout=phone-landscape] #capture-button{flex:0 0 48px;width:48px;padding:8px;font-size:0}
html body[data-console-layout=phone-landscape] #capture-button>span{display:none}
html body[data-console-layout=phone-landscape] #study-reminder{flex:0 0 48px;width:48px;font-size:16px}
html body[data-console-layout=tablet-landscape] #translation-actions{justify-content:space-between}
html body[data-console-layout=tablet-landscape] #capture-button{flex:0 0 208px}
html body[data-console-layout=tablet-landscape] #study-reminder{flex:0 0 160px}
html body[data-floating-reader=true] #translation-body .french{font-size:21px;font-weight:700}html body[data-floating-reader=true] #translation-body .japanese{font-size:18px}html body[data-floating-reader=true] #translation-body .romaji{font-size:13px}
html body[data-floating-reader=true] #secondary-screen{display:none!important}
html body[data-console-layout=desktop] .mobile-reader-toolbar{display:none!important}
html body[data-console-layout=desktop] #translation-body{padding-right:32px}
html body[data-console-layout=desktop] #translation-body .language-block{padding:16px 0}
html body[data-console-layout=desktop] #translation-body .french{font-size:25px}
html body[data-console-layout=desktop] #translation-body .romaji{font-size:18px}
html body[data-console-layout=desktop] .main-actions{height:48px;gap:8px;justify-content:space-between}
html body[data-console-layout=desktop] .main-actions :is(.pixel-button,#open-settings){height:48px;min-height:0;max-width:none;padding:6px;border:0;border-image-width:var(--native-frame-corner,8px);border-image-source:url('/assets/interface-v2/pastel-ui/paper-normal.png');font-size:0;display:flex;gap:6px;align-items:center;justify-content:center}
html body[data-console-layout=desktop] .main-actions :is(#choose-rom,#save-game,#restore-checkpoint){font:700 18px/1.1 PixelUI;flex:1}
html body[data-console-layout=desktop] .main-actions :is(#choose-rom,#save-game,#restore-checkpoint)>span{font-size:18px}
html body[data-console-layout=desktop] .main-actions :is(#home-button,#pause-game,#fullscreen-game,#open-controls,#swap-screens,.volume-control){width:48px;flex:0 0 48px}
html body[data-console-layout=desktop] .main-actions #open-settings.v2-sprite{width:48px!important;min-width:48px!important;max-width:48px!important;height:48px!important;min-height:48px!important;max-height:48px!important;flex:0 0 48px!important;margin:0!important;background:url('/assets/interface-v2/console-controls/settings.png') center/32px no-repeat!important;border:0!important;border-image:url('/assets/interface-v2/pastel-ui/paper-normal.png') var(--native-frame-slice,4) fill / var(--native-frame-corner,8px) / 0 repeat!important;border-image-width:var(--native-frame-corner,8px)!important;image-rendering:pixelated;image-rendering:crisp-edges;}
html body[data-mobile=true] #player-dock{position:static!important;width:100%!important;height:auto!important;margin:0}
html body[data-mobile=true] #mobile-toolbar{z-index:12;padding:12px;border:0;border-image:url('/assets/interface-v2/pastel-ui/paper-normal.png') var(--native-frame-slice,4) fill / var(--native-frame-corner,8px) / 0 repeat;border-image-width:var(--native-frame-corner,8px);overflow:auto;image-rendering:pixelated;image-rendering:crisp-edges;}
html body[data-mobile=true][data-mobile-menu-open=false] #mobile-toolbar{display:none!important}
html body[data-mobile=true][data-mobile-menu-open=true] #mobile-toolbar{display:block!important;opacity:1;transform:none}
html body[data-mobile=true] .main-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
html body[data-mobile=true] .main-actions :is(button,.volume-control){width:100%;max-width:none;min-width:0;min-height:44px}
html body[data-mobile=true] .main-actions .pixel-button{font-size:18px}html body[data-mobile=true] .main-actions .pixel-button>span{font-size:18px}
html body #workspace .touch-key:hover{filter:none;background-color:transparent}
html body #workspace [hidden]{display:none!important}
html body [hidden]{display:none!important}
html body #workspace[hidden],html body #workspace [hidden],html body #touch-controls[hidden]{display:none!important}
html body #workspace #v2-reading-paper{border-image-source:url('/assets/interface-v2/pastel-ui/paper-normal.png');border-image-slice:var(--native-frame-slice,4) fill;border-image-repeat:repeat;image-rendering:pixelated;image-rendering:crisp-edges;}
html body #workspace #capture-button{border-image-source:url('/assets/interface-v2/pastel-ui/mint-normal.png');border-image-slice:var(--native-frame-slice,4) fill;border-image-repeat:repeat;image-rendering:pixelated;image-rendering:crisp-edges;}
html body #workspace #study-reminder{border-image-source:url('/assets/interface-v2/pastel-ui/lavender-normal.png');border-image-slice:var(--native-frame-slice,4) fill;border-image-repeat:repeat;image-rendering:pixelated;image-rendering:crisp-edges;}
html body[data-console-layout=desktop] .main-actions :is(.pixel-button,#open-settings){border-image-slice:var(--native-frame-slice,4) fill;border-image-repeat:repeat;image-rendering:pixelated;image-rendering:crisp-edges;}
html body[data-console-layout=portrait][data-console=ds] .touch-face [data-touch-key=X]{left:28px!important;right:auto!important;top:0!important;bottom:auto!important}
html body[data-console-layout=portrait][data-console=ds] .touch-face [data-touch-key=Y]{left:0!important;right:auto!important;top:44px!important;bottom:auto!important}
html body[data-console-layout=portrait][data-console=ds] .touch-face [data-touch-key=A]{left:auto!important;right:0!important;top:44px!important;bottom:auto!important}
html body[data-console-layout=portrait][data-console=ds] .touch-face [data-touch-key=B]{left:28px!important;right:auto!important;top:auto!important;bottom:0!important}
html body #choose-rom-empty{border:0;border-image:url('/assets/interface-v2/pastel-ui/paper-normal.png') var(--native-frame-slice,4) fill / var(--native-frame-corner,8px) / 0 repeat;border-image-width:var(--native-frame-corner,8px);padding:8px 12px;min-height:48px;font:700 20px/1.1 PixelUI;display:flex;align-items:center;gap:6px;image-rendering:pixelated;image-rendering:crisp-edges;}
/* Safe-area values are consumed by the shared reference geometry. */
#workspace{--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);--safe-right:env(safe-area-inset-right,0px)}
html body #workspace #open-settings.v2-command>.v2-command-art{display:block!important;position:relative;z-index:1;width:32px;height:32px}
html body #workspace #open-settings.v2-command{display:flex!important;align-items:center;justify-content:center}
