:root{color-scheme:dark;font:100%/1.55 system-ui,sans-serif;font-variant-numeric:tabular-nums;color:#f6f3eb;background:#191d1b;--accent: #b5e7c5}*{box-sizing:border-box}body{margin:0;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}main{width:min(98%,70rem);margin-inline:auto;padding-block:1.5rem 3rem}a{cursor:pointer;color:var(--accent);text-underline-offset:.22em}h1,h2,h3,p{margin:0}h1,h2{letter-spacing:-.045em;line-height:1.05}h1{font:700 clamp(2.6rem,8vw,5.4rem) / .95 Georgia,serif;letter-spacing:-.06em}h2{font-size:1.6rem}p,small{color:#b9c6bd}button,input,select,.quiet,.primary{font:inherit;border-radius:.55rem}button,select,.quiet{-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;color:inherit;background:#2a322d;border:1px solid #3d4842;padding:.5rem .8rem;font-weight:650;line-height:1.2}button,select,.quiet,.primary,input,a{transition:background-color .12s ease-out,border-color .12s ease-out,color .12s ease-out,opacity .15s ease-out,transform .1s ease-out}button:hover:not(:disabled),select:hover,.quiet:hover{border-color:var(--accent)}button:enabled:active,.primary:active{transform:scale(.97)}button:disabled{cursor:default;opacity:.5}button.selected{background:#3c4a41;border-color:#f6f3eb}button.icon{width:2.5em;height:2.5em;padding:0}.primary,button.primary{display:inline-block;padding:.55rem .9rem;text-decoration:none;font-weight:650;background:var(--accent);border:1px solid transparent;color:#18281f}.primary:hover:not(:disabled),button.primary:hover:not(:disabled){background:color-mix(in srgb,var(--accent) 70%,white);border-color:transparent}select{padding-right:.6rem}select option{color:#f6f3eb;background:#191d1b}input{background:#191d1b;color:inherit;border:1px solid #3d4842;padding:.5rem .65rem;max-width:100%;-webkit-user-select:text;user-select:text}input::placeholder{color:#b9c6bdb3}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid white;outline-offset:3px}header,header nav,.brand{display:flex;align-items:center}header{justify-content:space-between;gap:1rem;padding-bottom:1.2rem;border-bottom:1px solid #3d4842;animation:sectionIn .18s ease-out}header a{text-decoration:none}header a:hover{text-decoration:underline}header nav{gap:clamp(.75rem,3vw,1.5rem)}header nav a[aria-current=page]{color:inherit;text-decoration:underline}header nav select{padding-block:.35rem;font-size:.875rem}.brand{gap:.55rem;color:inherit;font-weight:750;font-size:1.35rem;letter-spacing:-.04em}.brand:hover{text-decoration:none!important}.brand-mark{display:grid;grid-template-columns:repeat(2,.5rem);gap:.15rem;transform:rotate(-12deg);transition:transform .3s cubic-bezier(.34,1.56,.64,1)}.brand-mark i{height:.5rem;border-radius:50%;background:#3fa0ff}.brand-mark i:nth-child(2),.brand-mark i:nth-child(3){background:#ff5a4a}.brand:hover .brand-mark{transform:rotate(78deg)}.intro{display:flex;align-items:center;justify-content:space-between;gap:2rem;padding:clamp(2rem,6vw,4.5rem) 0 clamp(2rem,5vw,3.2rem);animation:sectionIn .22s ease-out}.intro p{margin-top:1rem;max-width:31rem;font-size:1.12rem}.intro-demo{flex:none;width:clamp(8rem,22vw,14rem);padding-right:clamp(0rem,3vw,2rem);transform:rotate(-6deg)}.intro-demo .board.demo{width:100%;max-width:none}.intro-demo .demoControls{display:none}.play-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.panel{background:#222825;border:1px solid #3d4842;border-radius:1rem;padding:clamp(1rem,3vw,1.45rem)}.play-mode{display:grid;grid-template-rows:auto 1fr auto;justify-items:start;gap:.9rem;animation:sectionIn .26s ease-out backwards}.play-mode+.play-mode{animation-delay:60ms}.play-mode h2{font:700 clamp(1.8rem,4vw,2.55rem) / 1 Georgia,serif}.play-mode p{max-width:34ch}.local-mode{--accent: #ffd889}.online-mode{--accent: #b5e7c5}.online-actions{display:grid;gap:.6rem;width:100%}.online-actions input{width:100%}.online-buttons{display:flex;flex-wrap:wrap;gap:.5rem}.offlineNotice{font-style:italic}.site-footer{margin-top:2.75rem;padding-top:1rem;border-top:1px solid #3d4842;font-size:.875rem}.footerLinks{display:flex;flex-wrap:wrap;gap:1.25rem}.footerLinks a{display:inline-flex;align-items:center;gap:.45em;color:#b9c6bd;text-decoration:none}.footerLinks a:hover{color:#f6f3eb;text-decoration:underline}.mode-heading{padding-block:clamp(1.5rem,4vw,2.8rem) 1.35rem;animation:sectionIn .2s ease-out}.mode-heading h1{font-size:clamp(2.5rem,7vw,4.5rem)}.mode-heading p{margin-top:.6rem;font-size:1.05rem}.joinForm,.nicknamePrompt{display:flex;flex-wrap:wrap;gap:.6rem;max-width:34rem;animation:sectionIn .24s ease-out}.joinForm input,.nicknamePrompt input{flex:1 1 12rem}.nicknamePrompt{margin-top:1.5rem}.rules-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem}.rule{border-top:1px solid #3d4842;padding-top:.9rem;animation:ruleIn .3s ease-out backwards}.rule:nth-child(2){animation-delay:80ms}.rule:nth-child(3){animation-delay:.16s}.rule h2{display:flex;align-items:center;gap:.55rem;font:700 1.6rem/1 Georgia,serif}.rule .ruleNum{display:inline-grid;place-items:center;width:1.6rem;height:1.6rem;font:650 .8rem system-ui,sans-serif;letter-spacing:0;border:1px solid #3d4842;border-radius:50%;color:#b9c6bd}.rule p{margin:.4rem 0 1rem;min-height:3.1em}.demoWrap{display:flex;flex-direction:column;align-items:center}.help .board.demo,.help .demoControls{width:100%;max-width:16rem}.help .playCta{margin-top:2rem;font-size:1.1rem;padding:.7rem 1.6rem}.help .credits{margin-top:1.25rem;font-size:.875rem}@keyframes ruleIn{0%{opacity:0;transform:translateY(.5em)}}.table{display:grid;grid-template-columns:minmax(0,38rem) minmax(15rem,1fr);gap:clamp(1rem,4vw,2.4rem);align-items:start;padding-top:1.5rem;animation:sectionIn .2s ease-out}.boardColumn{display:grid;justify-items:center;gap:.75rem}.controls{display:grid;gap:1rem;min-width:0}.status{color:#b9c6bd;text-align:center;font-weight:600}.status.playing.A{color:#3fa0ff}.status.playing.B{color:#ff5a4a}.status .turnNumber{color:#b9c6bd;font-weight:400}.status.win{font:700 1.5rem/1.2 Georgia,serif;animation:statusPop .25s ease-out}.status.win.A{color:#3fa0ff}.status.win.B{color:#ff5a4a}@keyframes statusPop{0%{transform:scale(.85);opacity:0}}.moveHistory{columns:4;column-fill:auto;column-gap:0;list-style:none;margin:0;padding:.5rem;height:10.5em;overflow-x:auto;border:1px solid #3d4842;border-radius:.9rem;background:#121714;font-size:.875rem}.moveHistory::-webkit-scrollbar{height:.4rem}.moveHistory::-webkit-scrollbar-track{background:transparent}.moveHistory::-webkit-scrollbar-thumb{background:#3d4842;border-radius:.2rem}.moveHistory li{cursor:pointer;padding:0 .4rem;border-radius:.3rem;color:#3fa0ff;animation:fadeIn .15s ease-out;transition:opacity .1s ease-out}.moveHistory li:nth-child(2n){color:#ff5a4a}.moveHistory li.selected{text-decoration:underline}.moveHistory li.forced{color:#191d1b;background:#3fa0ff}.moveHistory li.forced:nth-child(2n){background:#ff5a4a}.moveHistory li:hover{opacity:.7}.labeledButtons{display:flex;flex-wrap:wrap;gap:.5rem}.labeledButtons button{display:inline-flex;align-items:center;justify-content:center;gap:.5em;flex:1 1 auto;white-space:nowrap}.labeledButtons button.used{color:#ffd23f;border-color:#ffd23f}.labeledButtons button.used.selected,.labeledButtons button.used:hover:not(:disabled){background-color:#ffd23f2e;border-color:#ffd23f}.titleBar{display:flex;align-items:center;gap:.6rem;padding-bottom:.9rem;border-bottom:1px solid #3d4842}.titleBar h1{font-size:1.6rem;letter-spacing:-.04em;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.titleBar .peers{flex:1;min-width:0;color:#b9c6bd;font-size:.875rem}.titleBar .peers .peer+.peer:before{content:", "}.titleBar .peers .alone{color:#ff5a4a}.titleBar .voiceChat{display:flex;align-items:center;gap:.25rem}.titleBar .voiceChat button.icon{border-radius:50%}.titleBar .voiceChat button.icon.hangup,.titleBar .voiceChat button.icon.muted{color:#ff5a4a;border-color:#ff5a4a}.titleBar .voiceChat button.icon.hangup:hover:enabled{background-color:#ff5a4a40}.titleBar .voiceChat .voiceStatus{font-size:.8rem;color:#b9c6bd}.titleBar .onlineStatus{flex:none;width:.6rem;height:.6rem;border-radius:50%}.titleBar .onlineStatus.online{background:#b5e7c5;box-shadow:0 0 .4rem #b5e7c599}.titleBar .onlineStatus.offline{background:#ff5a4a}.botControls{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;padding-top:1rem;border-top:1px solid #3d4842}.botGroup{display:flex;align-items:center;gap:.25rem}.botGroup.blue{--accent: #3fa0ff}.botGroup.red{--accent: #ff5a4a}.botGroup button,.botGroup select{color:var(--accent);border-color:var(--accent)}.botGroup button.selected{background-color:color-mix(in srgb,var(--accent) 25%,transparent)}.delayInput label{display:flex;align-items:center;gap:.5rem;color:#b9c6bd;font-size:.875rem}.delayInput input[type=number]{width:5.5em;text-align:right}.matchingOverlay{position:fixed;left:50%;bottom:1.5rem;translate:-50% 0;display:flex;align-items:center;gap:1rem;padding:.7rem .7rem .7rem 1.1rem;background:#222825;border:1px solid #3d4842;border-radius:1rem;box-shadow:0 .75rem 2rem #0008;animation:sectionIn .18s ease-out}.matchingOverlay p{display:flex;align-items:center;gap:.5rem;color:#f6f3eb}.dbProgress{flex-basis:100%;display:flex;align-items:center;gap:.5rem;font-size:.875rem}.lobby-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin-bottom:1.25rem}.lobby-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;align-items:start;animation:sectionIn .24s ease-out}.lobby-grid h2{font:700 1.6rem/1.1 Georgia,serif}.archive{grid-column:1 / -1}.room-list{margin:.65rem 0 0;padding:0;list-style:none}.room-list li{display:flex;align-items:center;justify-content:space-between;gap:.8rem;padding-block:.75rem;border-top:1px solid #3d4842;animation:fadeIn .15s ease-out}.room-list strong{overflow-wrap:anywhere}.room-list small{display:block;color:#b9c6bd;overflow-wrap:anywhere}.room-list .quiet{flex:none;text-decoration:none;color:inherit}.empty{padding-block:.85rem .25rem}.more{margin-top:.55rem}.account,.error{margin-top:1rem}.account{max-width:40rem;animation:sectionIn .18s ease-out}.account h2{font:700 1.6rem/1.1 Georgia,serif;overflow-wrap:anywhere}.account p{margin-block:.6rem}.account form{margin-top:.65rem;display:flex;flex-wrap:wrap;gap:.55rem;align-items:end}.account label{display:grid;gap:.25rem;color:#b9c6bd;font-size:.875rem}.account-actions{margin-top:.75rem;display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}.account-actions p{flex-basis:100%}header nav .account-button{max-width:12rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.error{padding:.6rem .85rem;border-radius:.5rem;background:#4a2b30;color:#fdd}.text-button{padding:0;border:0;text-decoration:underline;background:transparent;color:inherit;font-weight:inherit}.match{padding-top:1.2rem}.back{display:inline-block;margin-bottom:.85rem;text-decoration:none}.back:hover{text-decoration:underline}.waiting{max-width:40rem;animation:sectionIn .22s ease-out}.waiting h1{font-size:clamp(2.2rem,7vw,3.6rem)}.waiting p{margin-block:.7rem}.waiting-actions,.game-actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}.game-actions:empty{display:none}.spectating{color:#b9c6bd;font-style:italic}@keyframes sectionIn{0%{opacity:0;transform:translateY(.4em)}}@keyframes fadeIn{0%{opacity:0}}@media (max-width: 760px){.play-modes,.table,.lobby-grid,.rules-grid{grid-template-columns:minmax(0,1fr)}.table{padding-top:1rem}.moveHistory{height:7em}.rule p{min-height:0}}@media (max-width: 560px){main{width:calc(100% - 1.4rem);padding-top:1rem}header{flex-wrap:wrap;gap:.6rem}.intro{gap:1rem}.intro-demo{width:6.5rem;padding-right:0}}.demoControls{display:flex;align-items:center;gap:.5em;margin-top:.25em}.demoControls .demoProgress{flex:1;height:.25em;border-radius:.125em;background-color:#3d4842;overflow:hidden}.demoControls .demoProgressFill{height:100%;background-color:#8a9a90;transition-property:width;transition-timing-function:linear}.demoControls button.demoRestart{width:2.2em;height:2.2em;padding:0;margin:0;font-size:80%;border-radius:50%}.board.demo .demoPiece{transition:transform .5s cubic-bezier(.3,.7,.4,1)}.board.demo circle.piece.pop{animation:piecePop .4s cubic-bezier(.34,1.56,.64,1) backwards}.board.demo .demoPieces{transition:opacity .5s ease-out}.board.demo .demoPieces.clearing{opacity:0}.board.demo .demoTarget{transform-box:fill-box;transform-origin:center;animation:targetPulse 1s ease-in-out infinite}.board.demo .demoTarget.A{fill:#23588c}.board.demo .demoTarget.B{fill:#8c3229}@keyframes piecePop{0%{transform:scale(0)}}@keyframes winPulse{50%{transform:scale(1.18)}}@keyframes targetPulse{50%{transform:scale(1.4)}}@keyframes winDraw{to{stroke-dashoffset:0}}@keyframes crownIn{0%{transform:scale(.6);opacity:0}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.board .winShape{stroke-dashoffset:0!important}}.board{display:block;background:#121714;border:1px solid #3d4842;border-radius:.9rem}.board.full{touch-action:none;width:min(100%,70vh);max-width:38rem}.board.demo{border-radius:.6rem;box-shadow:0 .5rem 1.2rem #10151266}.board line.bg{stroke-width:.03;stroke:#3d4842;stroke-dasharray:.03}.board circle.lineMargin{fill:#121714}.board circle.bg{fill:#2f3833}.board circle.bg.release.A{fill:#3fa0ff}.board circle.bg.release.B{fill:#ff5a4a}.board circle.last.A{fill:#2968a6}.board circle.last.B{fill:#a63b30}.board circle.selected{fill:#8a9a90}.board circle.target.A{fill:#205080}.board circle.target.B{fill:#802d25}.board line.last{stroke-width:.05}.board line.last.A{stroke:#2968a6}.board line.last.B{stroke:#a63b30}.board .pieceG{transition:transform .22s cubic-bezier(.3,.7,.4,1)}.board .pieceG.dragging,.board .pieceG.dummy{transition:none}.board .piece.A{fill:#3fa0ff}.board .piece.B{fill:#ff5a4a}.board .piece.dummy{pointer-events:none}.board circle.piece{transform-box:fill-box;transform-origin:center}.board circle.piece:not(.dummy){animation:piecePop .3s cubic-bezier(.34,1.56,.64,1) backwards}.board circle.piece.winner{animation:winPulse .8s ease-in-out infinite}.board g.winning circle.piece:not(.winner){opacity:.4;transition:opacity .4s}.board circle.selected,.board circle.target{transform-box:fill-box;transform-origin:center;animation:crownIn .16s ease-out}.board .winShape{fill:none;stroke-width:.12;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1;animation:winDraw .7s .15s ease-out forwards;pointer-events:none}.board .winShape.A{stroke:#3fa0ffcc}.board .winShape.B{stroke:#ff5a4acc}.board line.arrow{stroke-width:.1;stroke-linecap:round}.board line.arrow.A{stroke:#205080}.board line.arrow.B{stroke:#802d25}.board #arrowheadA{fill:#205080}.board #arrowheadB{fill:#802d25}.board .analysisScore{font-size:.25px;font-weight:700;text-anchor:middle;dominant-baseline:central;pointer-events:none}
