/* Existing gameplay layout remains intact; only the common chrome is adapted. */
body.rrdd-game-shell header.rrdd-game-header{position:relative!important;display:block!important;box-sizing:border-box;width:100%!important;max-width:none!important;height:72px!important;min-height:72px!important;padding:0!important;margin:0!important;background:#fffaf1!important;color:#173c61!important;border-bottom:1px solid #e8e0d2;border-radius:0!important;z-index:20}
.rrdd-game-header .rrdd-game-brand{position:absolute!important;top:6px!important;left:50%!important;transform:translateX(-50%)!important;width:105px!important;min-width:0!important;height:42px!important;padding:0!important;margin:0!important;border:0!important;background:none!important;display:flex!important;align-items:center!important;justify-content:center!important;box-shadow:none!important}
.rrdd-game-brand img{width:105px!important;height:42px!important;max-width:none!important;object-fit:contain!important}.rrdd-game-brand>span,.rrdd-game-brand>div{display:none!important}
.rrdd-game-header .rrdd-game-exit{position:absolute!important;top:6px!important;left:14px!important;right:auto!important;display:inline-flex!important;align-items:center;justify-content:center;gap:6px;min-height:44px!important;padding:8px 14px!important;box-sizing:border-box;background:#e4f2f1!important;color:#173c61!important;border:0!important;border-radius:999px!important;font:700 14px/1.2 "DM Sans",system-ui,sans-serif!important;text-decoration:none!important;white-space:nowrap}
.rrdd-game-header .rrdd-game-exit svg{width:18px;height:18px}
.rrdd-game-header .rrdd-game-tools{position:static!important;display:flex!important;align-items:center;justify-content:flex-end;gap:6px!important;margin:0!important;padding:6px 14px 0 0!important;width:100%!important;min-height:50px;pointer-events:none}
.rrdd-game-tools>*{pointer-events:auto}.rrdd-game-header .rrdd-game-tools button,.rrdd-game-header .rrdd-standalone-tool{min-width:44px!important;min-height:44px!important;box-sizing:border-box;border:1px solid #d2e2e7!important;border-radius:999px!important;background:white!important;color:#173c61!important;box-shadow:none!important;font-size:13px}
.rrdd-game-header .rrdd-standalone-tool{position:absolute;right:14px;top:6px}
.rrdd-game-header .rrdd-game-stages{position:absolute!important;bottom:1px!important;left:50%!important;transform:translateX(-50%)!important;display:flex!important;justify-content:center!important;align-items:center!important;gap:8px!important;margin:0!important;padding:0!important;width:max-content!important;max-width:94%!important;height:22px!important;grid-column:auto!important;grid-row:auto!important}
.rrdd-game-stages button,.rrdd-game-stages .journey-step{min-height:22px!important;padding:1px 8px!important;font-size:12px!important;border-radius:12px!important;color:#173c61!important;background:transparent!important;border:0!important}.rrdd-game-stages b,.rrdd-game-stages .journey-line{display:none!important}.rrdd-game-stages i{font-size:12px!important;font-style:normal}.rrdd-game-stages button[aria-current="step"],.rrdd-game-stages button[aria-current="true"],.rrdd-game-stages .active{background:#ffdd73!important;color:#173c61!important}
.rrdd-game-header .together-label{display:none!important}.rrdd-game-header button:focus-visible,.rrdd-game-header a:focus-visible{outline:3px solid #b98200!important;outline-offset:2px}
.rrdd-game-footer{position:fixed!important;bottom:0;left:0;right:0;z-index:19;height:26px;display:flex;align-items:center;justify-content:center;gap:5px;padding:3px 8px!important;margin:0!important;background:#fffaf1!important;color:#45677b!important;font:400 11px/1.3 "DM Sans",system-ui,sans-serif;text-align:center;border:0!important}.rrdd-game-footer a{color:inherit;text-decoration:underline}.rrdd-game-old-footer{display:none!important}
body.rrdd-game-shell{padding-bottom:26px}
@media(orientation:landscape) and (min-width:1000px) and (min-height:650px){
 body.rrdd-game-shell{padding-bottom:0}.rrdd-game-shell .reader-shell{height:calc(100dvh - 26px)!important}
 body.rrdd-game-shell:has(#exitGame){grid-template-rows:72px minmax(0,1fr) 26px}
}
@media(max-width:700px){
 body.rrdd-game-shell header.rrdd-game-header{height:120px!important;min-height:120px!important}
 .rrdd-game-header .rrdd-game-tools{padding-top:53px!important;justify-content:center!important;padding-right:8px!important;padding-left:8px!important}
 .rrdd-game-header .rrdd-game-tools button{font-size:12px}.rrdd-game-header .rrdd-game-stages{bottom:1px!important}
 .rrdd-game-header .rrdd-standalone-tool{top:53px}
 .rrdd-game-footer{font-size:10px}.rrdd-game-footer span{max-width:65%}
}
