@font-face{font-family:LanaPixel;src:url('/assets/ui/lana-pixel-11px-square.woff2') format('woff2');font-display:swap}
:root{color-scheme:light}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#7ba8ad}
body{font-family:LanaPixel,monospace;color:#050505;image-rendering:pixelated}
button,input{font:inherit}
button{cursor:pointer;color:#050505;background:#fff;border:6px solid #050505;border-radius:0;box-shadow:3px 3px 0 #4f5b5b;line-height:1}
button:hover{background:#ecece7}button:active{transform:translate(2px,2px);box-shadow:none}
button:focus-visible,input:focus-visible{outline:5px solid #e9bb54;outline-offset:3px}
button:disabled{background:#858585;color:#444;cursor:default;box-shadow:none}
input{border:0;background:#fff;padding:12px 18px;outline:none;color:#111}
#stage{position:absolute;width:1920px;height:1080px;left:50%;top:50%;transform:translate(-50%,-50%) scale(var(--game-scale,1));transform-origin:center center;overflow:hidden;background-color:#7ba8ad;background-image:url('/assets/paint/foreground.png'),url('/assets/paint/background-source.png');background-repeat:repeat,repeat;background-size:108px 108px,108px 108px;background-position:54px 54px,0 0;animation:scrollTiles 2s linear infinite}
@keyframes scrollTiles{to{background-position:-54px -54px,108px -108px}}
.screen{position:absolute;inset:0}.screen[hidden],[hidden]{display:none!important}
.paper{background:#fffdf1;border:7px solid #080808}
#menu .menuStats{position:absolute;left:108px;bottom:-36px;width:837px;height:406px;padding:52px 98px;font-size:60px;line-height:1.55}
.menuActions{position:absolute;right:48px;top:368px;width:650px;display:flex;flex-direction:column;align-items:center;gap:40px}
.menuActions>button{width:290px;height:92px;font-size:62px}
.menuForm{display:flex;align-items:center;gap:22px;width:100%}
.menuForm button{width:245px;height:78px;flex:none;font-size:58px}
.menuForm input{width:386px;height:75px;font-size:38px}
.bottomMenu{position:absolute;right:14px;bottom:12px;display:flex;align-items:center;gap:12px}
.bottomMenu button{width:244px;height:70px;font-size:50px}
.bottomMenu a{color:#fff;font-size:26px;margin-right:500px;text-decoration:none}
.selectHeading{position:absolute;left:48%;top:8px;font-size:68px;color:#fff}
.bookTabs{position:absolute;left:0;top:0;bottom:0;width:430px;background:#101010;border-right:15px solid #050505;overflow-y:auto;scrollbar-width:thin}
.bookTabs button{display:block;width:418px;height:250px;margin:0 0 5px;text-align:center;font-size:60px;background:#858585;border:6px solid #000;box-shadow:none;color:#333;line-height:1.3}
.bookTabs button.active{background:#fff;color:#111}
.bookTabs button small{display:block;font-size:56px}
.galleryScroll{position:absolute;left:478px;top:0;right:0;bottom:0;overflow-y:auto;scrollbar-width:thin}
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;background:#000;padding:8px}
.artCard{position:relative;height:540px;background:#ccc;border:6px solid #050505;box-shadow:none;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;font-size:64px;text-align:center;gap:28px;overflow:hidden;padding:16px 8px}
.artCard strong{font-weight:400;white-space:nowrap;font-size:58px}
.artCard canvas{width:240px;height:240px;object-fit:contain;image-rendering:pixelated}
.artCard span{font-size:56px}
.artCard .trophy{position:absolute;width:86px;height:86px;left:24%;top:29%;image-rendering:pixelated}
.galleryFooter{position:absolute;right:16px;bottom:14px;display:flex;gap:15px;align-items:center;font-size:32px;background:#7ba8ad;padding:8px}
.galleryFooter button{font-size:34px;padding:12px}
.waitingLeft{position:absolute;left:90px;top:145px;width:860px;text-align:center}
.waitingLeft button{font-size:56px;padding:10px 40px}
#waitingPreview{display:block;margin:18px auto 10px;width:480px;height:480px;object-fit:contain;image-rendering:pixelated}
#waitingSize{font-size:36px;color:#fff}
#startButton{margin-top:14px}
.waitingPlayersTitle{position:absolute;right:205px;top:62px;color:#fff;font-size:82px}
.waitingPlayers{position:absolute;left:1185px;right:10px;top:180px;bottom:180px;background:#fff;border:6px solid #bbb;box-shadow:0 2px 0 #444;font-size:54px;padding:0 20px}
.waitingPlayers #waitingPlayer{height:70px;border-bottom:3px solid #999;text-align:center}
.waitingBottom{position:absolute;left:110px;bottom:-30px;width:835px;height:200px;padding:40px 100px;font-size:62px;white-space:nowrap}
#waitingDisconnect,#waitingFollow,#waitingWindowed,#waitingHelp,#waitingClose{position:absolute;font-size:56px;padding:7px 20px}
#waitingDisconnect{left:1185px;bottom:100px}#waitingFollow{right:8px;bottom:100px}#waitingWindowed{left:1038px;bottom:15px}#waitingHelp{right:268px;bottom:15px}#waitingClose{right:8px;bottom:15px}
.gameTop{position:absolute;z-index:4;left:36px;top:-36px;width:1560px;height:240px;background:url('/assets/paint/topbar-ui.png') center / 100% 100% no-repeat;border:0;box-shadow:none}
.colorButtons{position:absolute;left:60px;top:48px;width:1440px;height:168px;display:flex;gap:12px;align-items:start;overflow:auto;scrollbar-width:none}
.colorButton{flex:none;width:96px;height:95px;border:7px solid #3a3532;background:#f0e8e0;font-size:58px;padding:0;box-shadow:inset 0 0 0 5px #eee}
.colorButton.selected{border-color:#fff;background:#fff}
.colorButton span{display:block;width:74px;height:72px;margin:4px auto;background:var(--swatch);line-height:72px}
.colorButton small{display:block;font-size:36px;line-height:34px;color:#222}
.gameTopTrack{position:absolute;left:60px;right:100px;bottom:24px;height:24px;background:#292d2d;border:4px solid #4c463f}
.gameTopTrack div{height:100%;background:#79b9b9;width:0}
.boardViewport{position:absolute;z-index:0;inset:0;background-color:#7ba8ad;background-image:url('/assets/paint/foreground.png'),url('/assets/paint/background-source.png');background-repeat:repeat,repeat;background-size:108px 108px,108px 108px;background-position:54px 54px,0 0;animation:scrollTiles 2s linear infinite;overflow:hidden;cursor:crosshair;touch-action:none}
.gameFrame{position:absolute;z-index:2;inset:0;background:url('/assets/paint/frame-ui.png') center / 100% 100% no-repeat;image-rendering:pixelated;pointer-events:none}
#boardLayer{position:absolute;left:50%;top:50%;transform:translate(calc(-50% + var(--pan-x,0px)),calc(-50% + var(--pan-y,0px))) scale(var(--zoom,1));transform-origin:center center}
#boardCanvas{display:block;image-rendering:pixelated}
.gameLeftPanel,.gameRightPanel,.gameRolls{position:absolute;color:#fff;text-align:center}
.gameLeftPanel{z-index:1;top:162px;left:24px;width:360px;height:180px;background:#ac887b;border:8px solid #343a38;font-size:44px}
#levelName{position:absolute;top:42px;left:0;right:0}#levelRemaining{position:absolute;top:93px;left:0;right:0}
.levelTrack,.playerTrack{height:29px;background:#333;border:5px solid #392f2c}
.levelTrack{position:absolute;left:85px;bottom:13px;width:240px}
.levelTrack div,.playerTrack div{height:100%;width:0;background:#82b7bb}
.gameRightPanel{z-index:4;left:1584px;top:-6px;width:288px;height:288px;background:url('/assets/paint/corner-panel-ui.png') center / 100% 100% no-repeat;font-size:42px}
#playerName{position:absolute;top:18px;left:0;right:0}#playerCursor{position:absolute;left:96px;top:65px;width:96px;height:96px;object-fit:contain;image-rendering:pixelated}#playerPixels{position:absolute;top:158px;left:0;right:0}.playerTrack{position:absolute;left:18px;right:18px;top:205px;height:27px}#nextLevel{position:absolute;top:236px;left:0;right:0}
.playerTrack div{background:#d86470}
.gameBottom{position:absolute;z-index:4;inset:0;pointer-events:none;color:#fff;font-size:53px}
.gameBottom label{position:absolute;left:36px;bottom:24px}
.gameBottom input{position:absolute;left:168px;bottom:18px;width:1200px;height:84px;border:7px solid #050505;font-size:35px;pointer-events:auto}
.gameBottom input::placeholder{color:#999;font-style:italic}
.gameBottom input:focus-visible{outline:0}.gameBottom button{position:absolute;left:1398px;bottom:18px;width:180px;height:84px;font-size:60px;padding:0;pointer-events:auto}
.gameRolls{z-index:4;left:1608px;bottom:-120px;width:288px;height:288px;background:url('/assets/paint/corner-panel-ui.png') center / 100% 100% no-repeat;font-size:56px;padding-top:28px;line-height:1.55}
.gameMenuButton{display:none}
.pointParticles{position:absolute;inset:0;z-index:7;width:1920px;height:1080px;image-rendering:pixelated;pointer-events:none}
.levelBubbleHost{position:absolute;inset:0;z-index:8;pointer-events:none}.levelBubble{position:absolute;width:300px;height:300px;pointer-events:auto;cursor:pointer;image-rendering:pixelated;will-change:left,top}.levelBubble img{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;image-rendering:pixelated}.levelBubble.popped img:last-child{display:none}.levelBubble.popped{pointer-events:none;animation:chestFloat 1s ease-in forwards}@keyframes chestFloat{to{transform:translateY(-75px) scale(.1);opacity:0}}
.completeHeading,.completeSubheading,.completeProgress{position:absolute;left:0;right:0;text-align:center;color:#fff;text-shadow:4px 4px #293e40}
.completeHeading{top:60px;font-size:70px}.completeSubheading{top:155px;font-size:55px}.completeProgress{top:230px;font-size:39px}
.completeFrame{position:absolute;left:50%;top:585px;transform:translate(-50%,-50%);width:675px;height:675px;border:24px solid #050505;background:#fff;display:grid;place-items:center}
#completePreview{width:600px;height:600px;object-fit:contain;image-rendering:pixelated}
.completeButton{position:absolute;left:50%;bottom:64px;transform:translateX(-50%);width:480px;height:120px;font-size:73px}.completeButton:active{transform:translateX(-50%) translate(2px,2px)}
#equipScreen h1{font-size:80px;text-align:center;color:white;font-weight:400;margin:35px}
.cursorGrid{position:absolute;left:320px;top:180px;bottom:0;right:390px;display:grid;grid-template-columns:repeat(5,80px);justify-content:space-between;grid-auto-rows:270px;overflow-y:auto;scrollbar-width:none}.cursorGrid::-webkit-scrollbar{display:none}
.cursorItem{position:relative;display:flex;align-items:center;justify-content:center;width:80px;height:80px;background:#fff;border:5px solid #111;font-size:30px;padding:0;box-shadow:3px 3px 0 #172d2f}
.cursorItem img{width:64px;height:64px;object-fit:contain;image-rendering:pixelated}.cursorItem span{position:absolute;top:84px;left:50%;transform:translateX(-50%);color:#fff;white-space:nowrap}.cursorItem.selected{outline:3px solid #fff;outline-offset:3px}.cursorItem.locked img{visibility:hidden}.cursorItem.locked::before{content:'?';position:absolute;inset:4px;display:grid;place-items:center;color:#1b0a1f;font-size:55px}
.cursorActions{position:absolute;right:70px;top:450px;width:270px;display:flex;align-items:center;flex-direction:column;gap:90px}.cursorActions button{font-size:55px;padding:12px 30px}.cursorActions #cursorSelect{background:none;border:0;box-shadow:none;color:#fff}.cursorActions #equipBack{background:#050505;color:#fff;border-color:#fff}
#cursorPreview{position:absolute;left:1350px;top:570px;z-index:4;width:80px;height:80px;object-fit:contain;image-rendering:pixelated;pointer-events:none}
.cursorTrail{position:absolute;inset:0;z-index:3;overflow:hidden;pointer-events:none}.cursorTrail img{position:absolute;width:28px;height:28px;object-fit:contain;image-rendering:pixelated;animation:cursorParticle .5s linear forwards}
@keyframes cursorParticle{from{opacity:1;transform:translate(0,0) rotate(var(--rot)) scale(0)}90%{opacity:1}to{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--rot)) scale(1)}}
.balloon{position:absolute;left:807px;top:32px;height:386px;width:302px;object-fit:contain;image-rendering:pixelated}
.rollThreads i{position:absolute;top:410px;width:6px;height:415px;background:#fff;transform-origin:top}.rollThreads i:nth-child(1){left:950px;transform:rotate(39deg)}.rollThreads i:nth-child(2){left:950px;height:320px}.rollThreads i:nth-child(3){left:950px;transform:rotate(-39deg)}
#rollScreen[data-count="0"] .rollThreads i{visibility:hidden}
#rollScreen[data-count="1"] .rollThreads i:not(:nth-child(2)){visibility:hidden}
#rollScreen[data-count="2"] .rollThreads i:nth-child(1){visibility:hidden}
#rollScreen.revealing[data-count="1"] .rollThreads i:nth-child(2),#rollScreen.revealing[data-count="2"] .rollThreads i:nth-child(3),#rollScreen.revealing[data-count="3"] .rollThreads i:nth-child(1){animation:dropRope .95s steps(24,end)}
@keyframes dropRope{from{height:0}}
.rollChoices{position:absolute;left:570px;right:570px;bottom:90px;display:grid;grid-template-columns:repeat(3,210px);justify-content:space-between;gap:48px}
.rollChoices button{font-size:70px;min-width:210px;padding:6px;position:relative}.rollChoices img{position:absolute;width:80px;height:80px;bottom:120px;left:50%;transform:translateX(-50%);image-rendering:pixelated}
.rollAction{position:absolute;left:50%;bottom:7px;transform:translateX(-50%);font-size:70px;min-width:250px;padding:6px}
.rollAction:active{transform:translateX(calc(-50% + 2px)) translateY(2px)}
.rollClaimed{position:absolute;left:50%;top:570px;transform:translateX(-50%);display:flex;align-items:center;flex-direction:column;color:#fff;font-size:60px}.rollClaimed img{width:120px;height:120px;image-rendering:pixelated;object-fit:contain}
.rollStatus,.rollBack{display:none}
.helpSheet{position:absolute;left:420px;top:110px;width:1080px;height:850px;font-size:42px;line-height:1.45;padding:50px}.helpSheet h1{font-weight:400}.helpSheet button{font-size:42px;padding:12px 30px}
#toast{position:absolute;z-index:20;left:50%;top:42%;transform:translateX(-50%);background:#fff;border:6px solid #000;padding:20px 36px;font-size:36px}
