body::before{content:"";position:fixed;top:0;left:0;right:0;height:24px;background:#fff;border-bottom:2px solid #000;z-index:9000}.mc-back{top:7px;left:10px;z-index:9001;font-size:8px;letter-spacing:0}.mc-back:hover{color:#000;text-shadow:none}.start-content,.game-screen,.modal-content{background:#0055aa;border:2px solid #fff;outline:2px solid #000}.start-content{width:100%;max-width:480px;padding:0 20px 20px;text-align:left}.start-content::before{content:"";display:block;height:20px;margin:0 -20px 20px;background:linear-gradient(#0055aa,#0055aa) right 5px center / 11px 12px no-repeat,linear-gradient(#000,#000) right 12px center / 11px 8px no-repeat,#fff;border-bottom:2px solid #000}.game-title{font-size:40px;line-height:1.1;color:#fff;margin-bottom:12px}.game-screen{width:fit-content;max-width:100%;margin:0 auto;padding:0 14px 14px}.game-header{width:calc(100% + 28px);margin:0 -14px}.game-header h1{margin:0 0 10px;padding:5px 8px;font-size:8px;text-align:left;color:#0055aa;border-bottom:2px solid #000;background:linear-gradient(#0055aa,#0055aa) right 5px center / 11px 12px no-repeat,linear-gradient(#000,#000) right 12px center / 11px 8px no-repeat,#fff}.game-header h1 span{display:none}.modal-content{animation:none}.modal-titlebar{position:sticky;top:0;padding:4px 8px 4px 30px;justify-content:flex-start;border-bottom:2px solid #000;background:linear-gradient(#0055aa,#0055aa) right 5px center / 11px 12px no-repeat,linear-gradient(#000,#000) right 12px center / 11px 8px no-repeat,#fff;z-index:1}.modal-titlebar span{color:#0055aa;font-size:8px;font-weight:normal}.modal-close{position:absolute;left:4px;width:18px;height:16px;padding:0;overflow:hidden;color:transparent;background:linear-gradient(#000,#000) center / 6px 6px no-repeat,#fff;border:2px solid #0055aa;opacity:1}.modal-close:hover{background:linear-gradient(#fff,#fff) center / 6px 6px no-repeat,#ff8800}.modal-body h3,.modal-body h4{color:#fff}.modal-body li::before{content:"-";color:#fff}.game-over-icon{display:none}.game-over-title,.game-over-title.win,.game-over-title.lose{color:#fff!important}.start-btn,.control-btn,.roll-btn,.modal-footer button{background:#0055aa;color:#fff;border:3px solid;border-color:#fff #000 #000 #fff;letter-spacing:0;text-align:left;cursor:pointer}.control-btn{font-size:8px;padding:6px 12px}.start-btn.primary,.roll-btn,.modal-footer button{background:#ff8800;color:#000}.start-btn:hover,.start-btn.primary:hover,.control-btn:hover,.roll-btn:hover,.modal-footer button:hover{background:#ff8800;color:#000;border-color:#000 #fff #fff #000;transform:none}.roll-btn:disabled,.roll-btn:disabled:hover{background:#0055aa;color:#fff;border-color:#fff #000 #000 #fff;opacity:1;text-decoration:line-through}.game-layout{display:grid;grid-template-columns:auto 200px;grid-auto-rows:min-content;gap:14px;max-width:none;align-items:start}.board-area{grid-column:1;grid-row:1 / span 4}.board-container{max-width:100%;border:2px solid #fff}.board{padding:20px 8px}.point{border:none}.point:hover{outline:1px dashed #fff;outline-offset:-1px}.point.top::before,.point.bottom::before{left:0;right:0;margin:0 auto;transform:none;width:40px;height:140px;border:none;background:var(--point-color);--point-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10' preserveAspectRatio='none' shape-rendering='crispEdges'%3E%3Cpath d='M0 0H20V1H19V2H18V3H17V4H16V5H15V6H14V7H13V8H12V9H11V10H9V9H8V8H7V7H6V6H5V5H4V4H3V3H2V2H1V1H0Z'/%3E%3C/svg%3E");-webkit-mask:var(--point-mask) 0 0 / 100% 100% no-repeat;mask:var(--point-mask) 0 0 / 100% 100% no-repeat}.point.bottom::before{transform:scaleY(-1)}.point.highlighted{--point-color: #fff}.point-number{opacity:1;color:#fff;font-size:8px}.bar{border-color:#fff}.bar-label{color:#fff}.checker,.bar-checker{position:relative;border:none;clip-path:polygon(30% 0,70% 0,70% 10%,90% 10%,90% 30%,100% 30%,100% 70%,90% 70%,90% 90%,70% 90%,70% 100%,30% 100%,30% 90%,10% 90%,10% 70%,0 70%,0 30%,10% 30%,10% 10%,30% 10%)}.checker::before,.bar-checker::before{content:"";position:absolute;inset:3px;clip-path:polygon(30% 0,70% 0,70% 10%,90% 10%,90% 30%,100% 30%,100% 70%,90% 70%,90% 90%,70% 90%,70% 100%,30% 100%,30% 90%,10% 90%,10% 70%,0 70%,0 30%,10% 30%,10% 10%,30% 10%)}.checker.player,.bar-checker.player{background:#000}.checker.player::before,.bar-checker.player::before{background:#fff}.checker.ai,.bar-checker.ai{background:#fff}.checker.ai::before,.bar-checker.ai::before{background:#000}.checker.selected{transform:none;background:#000}.checker.selected::before{background:#ff8800}.checker.highlighted{animation:none}.checker.highlighted::before{animation:checkerStep 0.8s steps(1) infinite}@keyframes checkerStep{0%,100%{background:#fff}50%{background:#ff8800}}.home-labels{position:static;height:auto;flex-direction:row;justify-content:space-between;padding:6px 8px 0}.home-label,.home-label.ai-home,.home-label.player-home{padding:0;border:none;background:none;color:#fff;letter-spacing:0;text-align:left}.off-areas{padding:0 8px 8px}.off-area{border:2px solid #fff!important}.off-area.highlighted{background:#ff8800}.off-label{color:#fff!important;font-weight:normal}.off-area.highlighted .off-label,.off-area.highlighted .off-count{color:#000!important}.off-count{color:#fff}.dice-area{grid-column:2;margin:0;gap:10px;justify-content:flex-start}.die,.doubling-cube{border:3px solid;border-color:#fff #000 #000 #fff}.die:hover{transform:none}.die.rolling{animation:dieStep 0.5s steps(5)}@keyframes dieStep{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}.doubling-cube{font-size:16px;font-weight:normal;color:#000}.doubling-cube:hover,.doubling-cube.disabled:hover{transform:none}.doubling-cube.disabled{opacity:1}.doubling-cube.player-owned{border-color:#fff}.doubling-cube.ai-owned{border-color:#000}.dice-label{color:#fff}.roll-btn{grid-column:2;width:100%;text-align:center}.game-chat{grid-column:2;order:1;width:100%;min-width:0;background:#0055aa;border:2px solid #fff}.chat-name{color:#fff!important}.lobby-player-dot,.chat-user-dot,.chat-online-dot{background:#fff!important}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important}}@media(max-width:900px){.game-screen{width:100%}.game-layout{display:flex;flex-direction:column;align-items:stretch}.dice-area{justify-content:center}}@media(max-width:768px){.point.top::before,.point.bottom::before{height:100px}}@media(max-width:480px){.container{padding:36px 6px 20px}.start-content{padding:0 12px 14px}.start-content::before{margin:0 -12px 14px}.game-title{font-size:24px}.game-screen{padding:0 4px 8px}.game-header{width:calc(100% + 8px);margin:0 -4px}.board{padding:20px 2px}.point.top::before,.point.bottom::before{width:20px;height:80px}.checker::before,.bar-checker::before{inset:2px}}
