*{box-sizing:border-box}body{margin:0 auto;padding:max(8px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom));max-width:600px;font:16px system-ui;color:#f4f6ff;background:radial-gradient(ellipse at top,#30456a,#131b30 65%);min-height:100dvh} [hidden]{display:none!important}header,.row{display:flex;align-items:center;gap:8px;justify-content:space-between}header h1{font-size:clamp(1.25rem,6vw,1.9rem);margin:4px 0}a{color:#b6e0ff}section{padding:10px;border:1px solid #526481;border-radius:15px;background:#202d46;margin:8px 0}h2{font-size:1rem;margin:10px 0}p{margin:8px 0}button,input{font:inherit;border-radius:10px;padding:9px;min-height:42px}button{border:1px solid #5b83cb;background:#315aa4;color:white;font-weight:700;cursor:pointer}button.secondary{background:#34425e;border-color:#61738f}button:disabled{opacity:.55;cursor:default}input{background:#f7f9ff;color:#172138;border:1px solid #9baac2;min-width:0}input[type=checkbox]{min-height:0}label{display:block}.grow{flex:1;min-width:0}.full,.match{display:block;width:100%;margin:6px 0}.hint{font-size:.84rem;color:#bdcce5}#status{text-align:center;font-weight:800;min-height:22px;margin:7px 0}#game{padding:8px}#players{font-weight:700;font-size:.88rem;margin:7px 0}#board{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;padding:6px;background:linear-gradient(145deg,#375f8a,#243d62);border:2px solid #6d97be;border-radius:15px;box-shadow:0 4px 0 #101929,inset 0 1px 2px #8cb1dd;max-width:min(100%,calc((100dvh - 220px)*7/6));margin:auto;overflow:hidden}#board button{display:grid;grid-template-rows:repeat(6,1fr);gap:4px;padding:0;background:none;border:none;min-height:0;opacity:1;border-radius:7px;touch-action:manipulation}#board button:focus-visible{outline:2px solid white}#board button:not(:disabled):active{background:#ffffff24}.slot{display:grid;place-items:center;width:100%;aspect-ratio:1;border-radius:50%;background:#14233c;box-shadow:inset 0 2px 5px #080f20,inset 0 -1px 2px #52769d;position:relative}.stone{width:91%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 30% 24%,#ffb1a8,#e73c48 40%,#9e1d30 90%);box-shadow:inset 0 0 0 3px #ffffff28,0 2px 3px #10121c}.stone.yellow{background:radial-gradient(circle at 30% 24%,#fff5ab,#ffc83f 40%,#bb7417 90%)}.winning .stone{outline:3px solid #fff;box-shadow:0 0 12px 5px #b8ff9c}.fall .stone{animation:fall .42s cubic-bezier(.3,.03,.85,.74) both}@keyframes fall{from{transform:translateY(calc(-1 * var(--drop)));opacity:.5}to{transform:translateY(0);opacity:1}}#feedback{min-height:19px;font-size:.85rem;margin:8px 0;color:#e2efff}.error{color:#ffb1b1!important}#chatMessages{max-height:180px;overflow:auto;margin:8px 0}.chatline{padding:6px;border-bottom:1px solid #526481;overflow-wrap:anywhere}.chatline.mine{text-align:right;color:#b4e9ff}details{font-size:.85rem}summary{cursor:pointer}.confetti{position:fixed;pointer-events:none;top:-15px;z-index:1000;width:9px;height:15px;animation:confetti 1.5s ease-in forwards}@keyframes confetti{to{transform:translate(var(--x),100dvh) rotate(720deg);opacity:0}}@media(prefers-reduced-motion:reduce){.fall .stone,.confetti{animation:none}}
body{background:#172822;color:#f7f3e9} #board{display:block;position:relative;width:min(100%,calc(100dvh - 300px),460px);min-width:min(100%,260px);aspect-ratio:1;height:auto;margin:16px auto;background:linear-gradient(105deg,#c39a63,#e3c28f,#b8874b);border:12px solid #b18652;border-radius:12px;box-shadow:inset 0 0 22px #75542b88;overflow:visible} #board:before{content:"";position:absolute;inset:0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23513920' stroke-width='.65'%3E%3Cpath d='M4 4H96V96H4Z M19 19H81V81H19Z M34 34H66V66H34Z M50 4V34 M50 66V96 M4 50H34 M66 50H96'/%3E%3C/g%3E%3C/svg%3E");pointer-events:none} #board button.point{position:absolute;transform:translate(-50%,-50%);width:10%;height:auto;aspect-ratio:1;min-width:0;min-height:0;border:0;border-radius:50%;padding:0;background:radial-gradient(circle,#634627 0 15%,transparent 17%);box-shadow:none;touch-action:manipulation} #board .point:disabled{opacity:1} #board .point.white{background:radial-gradient(circle at 34% 26%,#fff,#e5ded0 65%,#b8ac98);border:1px solid #8c7e69;box-shadow:0 3px 5px #3e2b1e99} #board .point.black{background:radial-gradient(circle at 34% 26%,#646568,#232427 65%,#0c0c0c);border:1px solid #111;box-shadow:0 3px 5px #3e2b1e99} #board .point.legal{outline:2px dashed #43e75b;background:#70ef6c55} #board .point.selected{outline:3px solid #42ef66} #board .point.mill{outline:3px solid #ffdb63} #board .point.capture{outline:3px solid #ff7466} #players{font-size:.78rem;justify-content:space-between} [hidden]{display:none!important} @media(max-height:720px){#board{margin:8px auto;width:min(100%,calc(100dvh - 245px),460px)}}
section{background:#233b30;border-color:#496753}button{background:#35664a;border-color:#6a9d77}button.secondary{background:#31473d;border-color:#66816e}#board .point.mill{animation:mill-glow .65s ease-out 2}@keyframes mill-glow{50%{box-shadow:0 0 14px 5px #ffd567}}@media(prefers-reduced-motion:reduce){#board .point.mill{animation:none}}#board button.point.white:active{background:#f0e6d8}#board button.point.black:active{background:#353535}#board button.point.capture:active{outline-color:#fff}#feedback:empty{display:none}#cancelMove{display:block;margin:8px auto;font-size:.85rem;min-height:36px}#game #players span{white-space:normal}#game #opponent{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}a{color:#c3efd0}