gitflarePublicPartly agent-ready40
sketch-rush
Multiplayer draw-and-guess game on Cloudflare Workers, Durable Objects and D1.
- LicenseApache-2.0
- LanguageJavaScript
- Last landed
dbe1e99Oct 23, 2026
Add the Apache-2.0 licence
dbe1e99:root{--bg:#faf6ec;--fg:#1b1b1b;--pink:#ff6b5a;--cyan:#ffd23b;--lime:#2e9e4f;--card:#fff}[hidden]{display:none!important}*{box-sizing:border-box}html,body{margin:0;height:100%;background:var(--bg);color:var(--fg);font:16px system-ui,sans-serif;background-image:radial-gradient(#0000000a 1px,transparent 1px);background-size:6px 6px}button{font:inherit;font-weight:700;color:#1b1b1b;background:var(--cyan);border:2px solid #1b1b1b;min-height:44px;border-radius:12px;padding:12px 18px;cursor:pointer;box-shadow:2px 3px 0 #1b1b1b}button.alt{background:var(--pink);box-shadow:2px 3px 0 #1b1b1b}input{font:inherit;padding:12px;border-radius:12px;border:2px solid #1b1b1b;background:#fff;color:var(--fg);width:100%}#landing{max-width:720px;margin:0 auto;padding:24px;text-align:center}h1{font-size:clamp(40px,10vw,72px);margin:.2em 0;color:var(--cyan);text-shadow:none}h1 span{color:var(--pink);text-shadow:none}.row{display:flex;gap:12px;margin:14px 0;flex-wrap:wrap;justify-content:center}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px;text-align:left}.cards section{background:#fff;border-radius:14px;padding:12px 18px}#err{color:#ff6b6b;min-height:1.2em}.dim{opacity:.6}.ok{color:var(--lime)}.close{color:#ffd23b}.sys{color:var(--cyan)}.err{color:#ff6b6b}#game{height:100dvh;display:flex;flex-direction:column}#hud{display:flex;align-items:center;gap:10px;padding:6px 10px;background:#fff}#phase{text-transform:capitalize;opacity:.8}#mask{flex:1;text-align:center;font:700 22px monospace;letter-spacing:.2em;text-shadow:none}#mask .ltr{display:inline-block;min-width:1ch;border-bottom:3px solid var(--cyan);margin:0 2px}#mask .pop{animation:pop .5s}@keyframes pop{0%{transform:scale(2);color:var(--lime)}100%{transform:scale(1)}}#ring{width:34px;height:34px;transform:rotate(-90deg)}#ring circle{fill:none;stroke-width:4}.bg{stroke:#333}#ringfg{stroke:var(--lime);stroke-dasharray:94.2;stroke-dashoffset:0;transition:stroke-dashoffset .3s linear}.badge{background:var(--pink);color:#000;padding:2px 8px;border-radius:8px;font-size:13px}#hud button{padding:6px 10px}#main{flex:1;display:flex;flex-direction:column;min-height:0;position:relative}#stage{position:relative;flex:0 0 auto;width:100%;aspect-ratio:4/3;max-height:55dvh;margin:0 auto;background:#fff;box-shadow:2px 3px 0 #1b1b1b}#board{width:100%;height:100%;display:block;touch-action:none}#tools{padding:6px;background:#fff}#side{flex:1;min-height:0;display:flex;flex-direction:column;padding:6px 10px}#scores{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0 0 6px;padding:0}#scores li{background:#f1ead6;border-radius:10px;padding:2px 8px;font-size:14px}#scores li.drawer{outline:2px solid var(--pink)}#scores li.done{color:var(--lime)}#chat{flex:1;overflow-y:auto;list-style:none;margin:0 0 6px;padding:0;min-height:0}#chat li{padding:2px 0;word-break:break-word}#toast{position:absolute;top:10px;left:50%;transform:translateX(-50%);background:#ffd23b;color:#000;padding:8px 16px;border-radius:12px;font-weight:700}#banner{position:absolute;inset:auto 0 10px;text-align:center;font:700 26px sans-serif;color:var(--pink);text-shadow:none}#modal,#results{position:fixed;inset:0;background:#fffc;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;z-index:5}#modal[hidden],#results[hidden]{display:none}#choices{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}#choices button{font-size:22px;padding:18px 24px}#podium{display:flex;gap:12px;align-items:flex-end}#podium div{background:#f1ead6;border-radius:12px 12px 0 0;padding:12px 16px;text-align:center;min-width:90px}#podium .p1{height:150px;box-shadow:2px 3px 0 #1b1b1b}#podium .p2{height:115px}#podium .p3{height:90px}@media (orientation:landscape) and (min-width:700px){ #main{flex-direction:row} #stage{flex:1;width:auto;max-height:none;aspect-ratio:auto;height:100%} #side{flex:0 0 300px} #tools{position:absolute;bottom:0;left:0;right:300px}}h1{font-family:"Baloo 2","Comic Neue","Comic Sans MS",system-ui,sans-serif;color:var(--fg)}h1 span{color:var(--pink)}.wob{width:220px;height:14px;display:block;margin:0 auto 8px}#joinsheet{position:fixed;inset:0;z-index:9;background:#faf6ecee;display:flex;flex-direction:column;gap:12px;align-items:center;justify-content:center;padding:24px;backdrop-filter:blur(6px);transition:opacity .2s}#joinsheet input{max-width:320px}#toast{transition:opacity .2s}#podium div{animation:rise .5s ease-out}@keyframes rise{from{transform:translateY(80px);opacity:0}}#ring{--c:var(--lime)}#ringfg{stroke:var(--lime)}.bg{stroke:#ddd}@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media (max-width:640px){#chat{max-height:4.8em}#scores{flex-wrap:nowrap;overflow-x:auto}#tools{order:3}#scores li{min-height:36px}}/* layout v3 */#game.blurred #main,#game.blurred #hud{filter:blur(5px);pointer-events:none}#wait{flex:1;font-weight:700;text-align:center;background:#fff3c4;border:2px solid #1b1b1b;border-radius:12px;padding:6px 10px}#hud{flex:0 0 auto;flex-wrap:nowrap}#hud>*{flex:0 0 auto}#mask,#wait{flex:1 1 auto;min-width:0}#game{width:100%;overflow:hidden}#main{flex:1;min-height:0;display:flex;flex-direction:column}#stage{flex:0 0 auto;width:100%;aspect-ratio:4/3;max-height:none;position:relative}#tools{flex:0 0 auto;position:fixed;left:0;right:0;bottom:0;z-index:4;background:#fff;border-top:2px solid #1b1b1b;padding:6px 6px calc(6px + env(safe-area-inset-bottom));overflow-x:auto;white-space:nowrap}#game{padding-bottom:0}#side{flex:1;min-height:0;display:flex;flex-direction:column;padding:6px 10px 64px}#scores{flex:0 0 auto;display:flex;flex-wrap:nowrap;overflow-x:auto;gap:8px}#scores li{display:flex;align-items:center;gap:6px;white-space:nowrap;flex:0 0 auto}.av{width:26px;height:26px;border-radius:50% 45% 55% 50%;display:inline-flex;align-items:center;justify-content:center;font-style:normal;font-weight:800;color:#1b1b1b;border:2px solid #1b1b1b}#chat{flex:1;max-height:none;min-height:0;overflow-y:auto}#guessForm{flex:0 0 auto}@media (orientation:landscape) and (min-width:700px){ #game{display:grid;grid-template-columns:1fr 300px;grid-template-rows:auto 1fr auto} #hud{grid-column:1/3} #main{display:contents} #stage{grid-column:1;grid-row:2;height:auto;width:auto;max-width:100%;max-height:100%;justify-self:center;align-self:center;min-height:0} #side{grid-column:2;grid-row:2/4;padding-bottom:6px} #tools{position:static;grid-column:1;grid-row:3;border-top:2px solid #1b1b1b} #scores{flex-wrap:wrap}}#chat li.ok{color:#1b7a3a;font-weight:700;background:#e3f6e8;border-radius:6px;padding:2px 6px}#chat li.lockedmsg{background:#e3f6e8;color:#2d6b43;border-radius:10px;padding:2px 8px}#banner.reveal{text-align:center}#banner.reveal div:first-child{font-weight:800;font-size:1.3em}#podium div{animation:rise .6s cubic-bezier(.2,.9,.3,1.2) both}@keyframes rise{from{transform:translateY(60px);opacity:0}to{transform:none;opacity:1}}#mask .ltr.pop{animation:ltrpop .2s ease-out}@keyframes ltrpop{from{transform:scale(1.2)}to{transform:scale(1)}}@media (min-width:641px) and (max-width:1000px){ #tools{display:flex;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin; -webkit-mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent); mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent)} #tools>*{flex:0 0 auto}}#stage{margin:12px auto;box-sizing:border-box}#board{border:2px solid #1b1b1b;border-radius:6px;box-shadow:4px 5px 0 rgba(27,27,27,.35),0 8px 18px rgba(0,0,0,.18);background:#fff;box-sizing:border-box}