/* RB Corner — a compact, self-contained retro game. */
#w-rbcorner{width:min(760px,calc(100vw - 24px))!important}#w-rbcorner .wbody{overflow:auto;min-height:0;padding:8px;background:#d9cfb7;color:#493e32} .rb-root{display:grid;gap:8px;font:13px/1.4 Tahoma,sans-serif;color:#493e32}.rb-head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;background:#3e5049;color:#f0e3b9;border:2px solid #9d865a;border-radius:5px}.rb-head b{display:block;font:bold 25px Georgia,serif;letter-spacing:2px}.rb-head small{color:#e2d4ae}.rb-shield{padding:8px 10px;background:#83443a;color:#fff2d4;clip-path:polygon(0 0,100% 0,100% 65%,50% 100%,0 65%);font:bold 19px Georgia}.rb-hud{background:#efe7d1;border:1px solid #b7a989;padding:6px 8px;font-weight:bold;font-variant-numeric:tabular-nums}.rb-tabs,.rb-row,.rb-swatches{display:flex;gap:5px;flex-wrap:wrap}.rb-root button,.rb-root select,.rb-root input:not([type=range]){font:inherit;border:1px solid #8f826b;border-radius:5px;background:#f2e9d4;color:#423a2d;padding:7px 10px;min-height:38px}.rb-root button{touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:pointer}.rb-root button:active,.rb-root button[aria-pressed=true]{background:#52665a;color:#fff4da;border-color:#37443c}.rb-root button:disabled{opacity:.55;cursor:default}.rb-stage{border:3px ridge #a39471;border-radius:5px;background:#4d614e;min-width:0}.rb-stage canvas{display:block;width:100%;height:auto;aspect-ratio:720/340;object-fit:contain;image-rendering:pixelated}.rb-control{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.rb-control:empty{display:none}.rb-control button{flex:1 1 auto;min-height:46px}.rb-control button[data-rbhold]{touch-action:none;flex:0 0 68px;background:linear-gradient(#d9d3bb,#b2a88a);box-shadow:0 2px 0 #817359;color:#4a4235}.rb-control svg{width:27px;height:27px;vertical-align:middle;pointer-events:none}.rb-control label{display:flex;align-items:center;gap:5px;flex:1 1 130px}.rb-control input[type=range]{width:100%;min-width:60px;accent-color:#805343}.rb-msg{min-height:1.4em;font-weight:bold;color:#72513c}.rb-panel{display:grid;gap:7px}.rb-card,.rb-quest{background:#f2ead8;border:1px solid #b4a78c;border-radius:5px;padding:9px;display:grid;gap:7px}.rb-card p{margin:0}.rb-card label{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.rb-card input{max-width:100%}.rb-quest{grid-template-columns:1fr auto;align-items:center}.rb-quest small{display:block;color:#6e6555}.rb-swatches button{background:var(--sw);width:36px;height:36px;min-height:36px;padding:0;border:2px solid #fff}.rb-swatches button[aria-pressed=true]{background:var(--sw);outline:2px solid #4c5c48}.rb-note{color:#6b6050}.shell-theme7418{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.shell-theme7418 small{flex-basis:100%}
@media(max-width:820px),(pointer:coarse) and (max-height:600px){#w-rbcorner{width:auto!important}#w-rbcorner .wbody{overflow:auto!important}.rb-tabs button{flex:1 1 auto;min-height:40px;padding:5px 7px}.rb-head{padding:7px 9px}.rb-head b{font-size:20px}.rb-control button[data-rbhold]{flex:0 0 58px;min-height:52px}.rb-control button[data-rb="interact"]{min-height:52px}.rb-root{gap:6px}}
/* Vector controls: no selectable glyphs. */
#w-bounce .bt-pad button{background:linear-gradient(#e9dfef,#b7a3d0)!important;color:#513e68!important;border:2px solid #75628e!important;box-shadow:0 3px 0 #554469,inset 0 1px 0 #fff;border-radius:12px!important;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:none}#w-bounce .bt-pad .bt-j{background:linear-gradient(#f6bcd7,#d675a4)!important;border-color:#aa487c!important;color:#70284e!important;box-shadow:0 3px 0 #8b3965,inset 0 1px 0 #fff}#w-bounce .bt-pad button.on{transform:translateY(2px);box-shadow:inset 0 2px 3px #765b8b}#w-bounce .bt-pad svg{width:30px;height:30px;pointer-events:none;display:block;margin:auto}#w-bounce button,#w-tama button,#w-snake button,#w-angrycats button,#w-sims .drv-stage button{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}#w-bounce .bt-pad button{pointer-events:auto}#w-bounce .bt-pad{flex-wrap:nowrap!important}#w-bounce .bt-pad span{flex:1 1 0;min-width:0}#w-bounce .bt-top button{white-space:normal}#w-bounce .bt-top [hidden]{display:none!important}.wb7418{display:grid;gap:10px;max-width:560px;padding:18px;margin:auto;color:#323341}.wb7418 b{font-size:18px;overflow-wrap:anywhere}.wb7418 p{margin:0}.wb7418 a,.wb7418 button{width:fit-content;max-width:100%;white-space:normal}.wb7418 small{color:#666}
@media(max-width:820px),(pointer:coarse) and (max-height:600px){#w-bounce .wbody{overflow:auto!important}#w-bounce .bt-stage{flex:none!important;min-height:0!important}#w-bounce #btcv{min-height:0!important;height:auto!important;max-height:none!important;flex:none!important;aspect-ratio:2/1}#w-bounce .bt-pad{position:static!important;justify-content:space-between!important;gap:6px!important;padding:6px 0 9px!important;opacity:1!important}#w-bounce .bt-pad button{width:clamp(48px,19vw,78px)!important;height:clamp(48px,15vw,65px)!important}#w-bounce .bt-pad .bt-j{width:clamp(66px,26vw,110px)!important}#w-bounce .bt-top{gap:4px!important}#w-bounce .bt-top>button{flex:0 1 auto!important;min-height:36px!important}#w-bounce .bt-top>span{flex:1 1 100%!important}#w-bounce .bt-msg:not([hidden])~.bt-pad{visibility:hidden!important}}
/* Dark mode restricted to selected utility windows and shell surfaces. */
html.alot-shell-dark :is(.fold-win,#w-cd,#w-docs,#w-pics,#w-props,#w-trash,#w-player,#w-calc,#w-dial){--win:#302b3b;--ink:#eee7f3;background:#302b3b!important;color:#eee7f3!important;color-scheme:dark}html.alot-shell-dark :is(.fold-win,#w-cd,#w-docs,#w-pics,#w-props,#w-trash,#w-player,#w-calc,#w-dial) .wbody{color:#eee7f3!important}html.alot-shell-dark .fd-grid{background:#241f30!important;border-color:#70657e!important}html.alot-shell-dark .fd-grid .icon,html.alot-shell-dark .fold-win .fd-ic{color:#f3edf7!important}html.alot-shell-dark :is(.fd-out,.cd-case,.cd-burn,.cd-bres button:not(.btn),.cd-blist button){background:#40394e!important;color:#f2eaf6!important;border-color:#7c6c8b!important}html.alot-shell-dark :is(.fold-win,#w-cd,#w-docs,#w-pics,#w-props,#w-trash,#w-player,#w-calc,#w-dial) :is(input:not([type=range]):not([type=color]),select,textarea){background:#241f30!important;color:#f3edf7!important;border-color:#80718e!important}html.alot-shell-dark :is(.cd-note,.cd-tracks small,.cd-burnbar small,.cd-bres small,.cd-blist small,.fd-empty){color:#c4b7d0!important}html.alot-shell-dark .cd-tracks button{color:#c5c9ff!important}html.alot-shell-dark .cd-tracks button[aria-current=true]{color:#ff9ac6!important}html.alot-shell-dark :is(.fold-win,#w-cd,#w-docs,#w-pics,#w-props,#w-trash,#w-player,#w-calc,#w-dial) a:not(.btn){color:#ffadd3!important}html.alot-shell-dark :is(.fold-win,#w-cd,#w-docs,#w-pics,#w-props,#w-trash,#w-player,#w-calc,#w-dial) .btn:not(.main){background:#494055!important;color:#f3edf7!important;border-color:#80718e!important}html.alot-shell-dark .shell-theme7418 small{color:#d4c7df}
