/* Scribble Scuffle styles. By Shoaib.
   Every button is drawn in pencil on the canvas; these are the real, focusable buttons laid over the drawings. */
:root{--hh:58px;--ink:#1f1a17;--blue:#1d4ed8;--paper:#f6f1e4}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;overflow:hidden;background:var(--paper);color:var(--ink);font:22px/1.25 "Patrick Hand","Comic Sans MS",cursive;user-select:none;-webkit-user-select:none;overscroll-behavior:none}
canvas{position:fixed;left:0;top:0;width:100%;height:100%;display:block;touch-action:none}
.hide{display:none!important}
.pb{position:fixed;margin:0;padding:0;border:0;background:none;color:transparent;font:inherit;cursor:pointer;touch-action:manipulation;outline:none}
#menu{left:6px;top:calc(var(--hh)/2 - 23px);width:46px;height:46px}
#hops{left:56px;top:calc(var(--hh)/2 - 23px);width:46px;height:46px}
#mute,#full{top:calc(var(--hh)/2 - 23px);width:46px;height:46px}
#full{right:8px}#mute{right:58px}
#book{top:calc(var(--hh)/2 - 23px);right:108px;width:46px;height:46px}
#menu.hide+#hops{left:6px}
/* distraction-free: the eye shows only in full screen; it folds the header away and a faint eye on the right edge brings it back */
#dnd{top:calc(var(--hh)/2 - 23px);right:58px;width:46px;height:46px;display:none}
html.fs #dnd{display:block}html.fs #mute{right:108px}html.fs #book{right:158px}
#eye{right:max(6px,env(safe-area-inset-right));top:50%;transform:translateY(-50%);width:44px;height:44px;display:none}
html.fs.nobar #eye{display:block}html.nobar #hud{display:none}
.mid{left:50%;transform:translate(-50%,-50%)}
#play{top:calc(var(--hh) + (100% - var(--hh))*.34);width:min(300px,72vw);height:84px}
#invite{top:calc(var(--hh) + (100% - var(--hh))*.54);width:min(280px,68vw);height:60px}
#copy{top:calc(var(--hh) + (100% - var(--hh))*.54 + 150px);width:150px;height:44px}
#sw{position:fixed;left:8px;top:calc(var(--hh) + 4px);display:flex;gap:4px}
#sw .pb{position:static;width:46px;height:46px}
#dUndo,#dClear{bottom:max(12px,env(safe-area-inset-bottom));width:78px;height:48px}
#dUndo{left:10px}#dClear{left:94px}
#ready{right:14px;bottom:max(14px,env(safe-area-inset-bottom));width:min(180px,44vw);height:66px}
#again{top:62%;width:240px;height:66px}
#lBack,#bBack{left:10px;top:calc(var(--hh) + 8px);width:78px;height:46px}
#lCopy{top:calc(var(--hh) + 150px);width:150px;height:44px}
#lLess,#lMore{top:calc(var(--hh) + 196px);width:48px;height:46px}
#lLess{left:calc(50% - 130px)}#lMore{left:calc(50% + 82px)}
#lGo{bottom:max(14px,env(safe-area-inset-bottom));transform:translate(-50%,0);width:min(240px,60vw);height:70px}
