:root{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#252a24;background:#f7f3e8;font-synthesis:none;--paper:#f7f3e8;--ink:#252a24;--muted:#666b60;--red:#c94c3b;--blue:#28629c;--yellow:#f0ce58;--border:#dcdccd}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.45}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #28629c;outline-offset:5px}button{color:inherit}button,a{-webkit-tap-highlight-color:transparent}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.shell{width:min(1120px,100%);padding:0 40px;margin:auto}.header{height:106px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}.brand{display:flex;align-items:center;gap:12px;background:none;border:0;padding:0;font-weight:800;font-size:29px;letter-spacing:-1.4px}.brand-mark{width:30px;height:30px;display:grid;grid-template-columns:1fr 1fr;gap:4px}.brand-mark i{background:var(--red);border-radius:50%}.brand-mark i:nth-child(2),.brand-mark i:nth-child(3){background:var(--blue);border-radius:3px}.header-actions{display:flex;gap:12px}.text-button{border:0;background:none;font-weight:650;padding:12px 4px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.text-button:hover{color:var(--blue)}.icon{width:21px;height:21px;display:inline-block;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.home{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center;min-height:650px;padding:62px 0}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:750;color:#626a55;margin:0 0 18px}.home h1{font-size:clamp(72px,9vw,112px);line-height:.95;letter-spacing:-7px;margin:0 0 28px;font-weight:800}.subtitle{font-size:20px;line-height:1.6;color:#616456;max-width:390px;margin:0 0 36px}.home h2{font-size:16px;font-weight:650;margin:0 0 16px}.choices{display:grid;gap:12px}.choice{width:100%;min-height:66px;border:1px solid #cdd0bf;background:transparent;display:flex;align-items:center;gap:14px;padding:18px 22px;border-radius:13px;font-size:16px;font-weight:700;text-align:left;transition:transform .15s,background .15s}.choice:hover{transform:translateY(-2px);background:#eeeddf}.choice.primary{background:var(--ink);color:#fff;border-color:var(--ink)}.choice.primary:hover{background:#414739}.choice .arrow{margin-left:auto}.home-how{margin-top:15px;color:#575e50}.illustration{position:relative;padding:25px 5px 30px}.illustration:before{content:"";position:absolute;inset:0;border-radius:50%;background:#ecebdc}.board-wrap{position:relative;width:min(440px,100%);margin:auto}.board{aspect-ratio:1;position:relative;background:#f0cf65;border-radius:28px;box-shadow:0 10px 0 #c5a844,0 20px 40px #504b2120;isolation:isolate;user-select:none;touch-action:manipulation}.illustration .board{transform:rotate(-7deg);width:100%;border:10px solid #ebca61}.board-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}.board-lines line{stroke:#786c38;stroke-width:1.7;stroke-linecap:round}.board-lines .win-line{stroke:#fff9d7;stroke-width:5;filter:drop-shadow(0 1px 2px #6b5c42)}.point{position:absolute;transform:translate(-50%,-50%);width:64px;height:64px;border:0;border-radius:50%;background:transparent;padding:0;display:grid;place-items:center;z-index:1;touch-action:none}.point:before{content:"";width:14px;height:14px;background:#6b643b;border:4px solid #e2bc4f;border-radius:50%;box-shadow:0 0 0 1px #8a7741;transition:all .15s}.point:not(:disabled):hover:before{box-shadow:0 0 0 7px #ffffff50}.point:disabled{opacity:1;cursor:default}.piece{position:absolute;display:block;width:43px;height:43px;box-shadow:0 5px 0 #0003,inset 0 2px 0 #ffffff40;pointer-events:none}.piece.red{border-radius:50%;background:var(--red);border:2px solid #b64231}.piece.blue{border-radius:9px;background:var(--blue);border:2px solid #22558a;transform:rotate(45deg);width:36px;height:36px}.point.movable{box-shadow:inset 0 0 0 2px #fff8}.point.selected{box-shadow:inset 0 0 0 3px #fffdf2;background:#ffffff25}.point.glow{box-shadow:0 0 0 4px #fff8;background:#fff5;animation:pulse 1.5s ease-in-out infinite}.point.won .piece{box-shadow:0 0 0 4px #fff7dc,0 5px 0 #0003}.board-number{position:absolute;bottom:1px;right:1px;font-size:9px;color:#665c35;opacity:0}.point:focus-visible{outline:3px solid #252a24;outline-offset:3px}.point:focus-visible .board-number{opacity:1}.board-caption{position:relative;text-align:center;font-size:13px;color:#676c5a;margin-top:42px}.dot-red,.diamond-blue{display:inline-block;width:11px;height:11px;background:var(--red);border-radius:50%;margin:0 8px}.diamond-blue{background:var(--blue);border-radius:2px;transform:rotate(45deg)}.facts{display:flex;gap:0;justify-content:center;border-top:1px solid var(--border);padding:25px 0 30px;color:#686d60;font-size:12px;letter-spacing:.2px}.facts span+span{border-left:1px solid #cfd2c2;margin-left:30px;padding-left:30px}
.panel{max-width:480px;margin:52px auto 64px}.panel h1,.tutorial-heading{font-size:38px;letter-spacing:-1.7px;margin:0 0 38px;font-weight:750}.fieldset{border:0;padding:0;margin:0 0 28px}.fieldset legend{font-size:15px;font-weight:650;margin:0 0 13px}.segmented{display:flex;gap:8px}.segment{flex:1;border:1px solid #cdd0bf;background:transparent;border-radius:10px;min-height:54px;font-weight:650}.segment[aria-pressed=true]{background:#e5e9d8;border:2px solid #68764e;color:#344125}.hint{font-size:13px;line-height:1.65;color:#646a5a;margin:14px 0 0}.tip{background:#efeddb;padding:15px 17px;border-radius:10px;margin:15px 0 28px;font-size:13px;line-height:1.6}.primary-button,.secondary-button{border-radius:10px;min-height:52px;padding:14px 24px;font-weight:700;border:1px solid var(--ink);background:var(--ink);color:white}.primary-button:hover{background:#424a39}.secondary-button{border-color:#c9cebd;background:transparent;color:var(--ink)}.secondary-button:hover{background:#ebeddf}.full{width:100%}.row{display:flex;gap:10px;align-items:center}.row>*{flex:1}.link-input{width:100%;margin:20px 0 14px;padding:16px;border:1px solid #c9cebd;background:#fffdf7;border-radius:10px;color:#4b5342}.notice{padding:15px 18px;margin:20px 0;background:#e8ebdc;color:#47553a;border-radius:10px;font-size:13px;line-height:1.6}.notice.error{background:#fae5dc;color:#8c3524}.notice:empty{display:none}.waiting{display:flex;align-items:center;justify-content:center;gap:10px;font-size:14px;margin-top:28px}.status-dot{width:8px;height:8px;background:#718054;border-radius:50%;animation:pulse 1.5s infinite}.game{max-width:700px;margin:30px auto 45px}.phase-tabs{display:flex;justify-content:center;gap:25px;font-size:11px;text-transform:uppercase;letter-spacing:1.2px;color:#777e69;margin:0 0 24px}.phase-tabs .active{color:#303b26;font-weight:750}.phase-tabs span.active:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#71854e;margin:0 8px 1px 0}.game-title{text-align:center;margin:0 0 8px;font-size:30px;letter-spacing:-1px}.game-subtitle{text-align:center;color:#666c5d;font-size:14px;margin:0 0 22px}.players{display:flex;justify-content:space-between;gap:20px;width:min(440px,100%);margin:0 auto 20px}.player{display:flex;align-items:center;gap:9px;font-size:12px;color:#666d5d;padding:8px 0}.player strong{display:block;color:#303a29;font-size:13px;margin-bottom:3px}.player .symbol{width:25px;height:25px;border-radius:50%;background:var(--red);margin-right:3px}.player.blue .symbol{border-radius:5px;background:var(--blue);width:22px;height:22px;transform:rotate(45deg);margin-right:6px}.player.current strong{text-decoration:underline;text-underline-offset:5px}.player:last-child{text-align:right;flex-direction:row-reverse}.game-controls{justify-content:center;margin:29px auto 0;max-width:440px}.game-controls .text-button{flex:0 1 auto;padding:12px 20px}.keyboard{text-align:center;font-size:11px;line-height:1.6;color:#6b715f;max-width:440px;margin:20px auto}.result{max-width:440px;margin:28px auto 0;text-align:center;background:#e7ead9;border-radius:14px;padding:20px}.result h2{font-size:20px;line-height:1.45;margin:0 0 18px;letter-spacing:-.4px}.result .row{flex-wrap:wrap}.result .row button{white-space:nowrap}.game>.notice{max-width:440px;margin:18px auto}.tutorial{max-width:600px;margin:32px auto 45px}.tutorial-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.tutorial-heading{font-size:25px;margin:0}.step-count{font-size:12px;color:#667158}.tutorial .board-wrap{width:min(370px,100%)}.speech{position:relative;max-width:500px;background:#e7ead9;padding:20px 24px;border-radius:14px;font-size:15px;line-height:1.65;margin:30px auto 24px;min-height:116px}.speech:before{content:"";position:absolute;top:-10px;left:calc(50% - 10px);border-left:10px solid transparent;border-right:10px solid transparent;border-bottom:11px solid #e7ead9}.tutorial-controls{max-width:500px;margin:auto;display:flex;gap:10px;align-items:center}.tutorial-controls .primary-button{margin-left:auto}.tutorial-skip{display:block;margin:13px auto 0;font-size:12px;color:#676f5e}.action-hint{text-align:center;font-size:12px;color:#677255;margin:-7px 0 17px}.tutorial-progress{display:flex;justify-content:center;gap:6px;margin:17px 0}.tutorial-progress i{width:26px;height:3px;background:#d9decb;border-radius:4px}.tutorial-progress i.active{background:#68784f}
@keyframes pulse{50%{opacity:.65}}@media(prefers-reduced-motion:reduce){*,*:before{animation:none!important;transition:none!important}}@media(min-width:1300px){.home{min-height:720px}.shell{width:1180px}}@media(max-width:760px){.shell{padding:0 24px}.header{height:80px}.brand{font-size:26px}.header-actions{gap:5px}.home{grid-template-columns:1fr;gap:34px;max-width:460px;margin:auto;padding:38px 0}.home h1{font-size:82px;letter-spacing:-5px;margin-bottom:18px}.subtitle{font-size:17px;line-height:1.55;margin-bottom:26px}.illustration{grid-row:2;padding:15px 38px 20px}.illustration .board{border-width:7px;border-radius:22px}.board-caption{margin-top:30px}.home .eyebrow{font-size:10px;margin-bottom:14px}.facts{font-size:11px}.facts span+span{margin-left:16px;padding-left:16px}.panel{margin-top:34px}.panel h1{font-size:33px;margin-bottom:30px}.game{margin-top:25px}.game-title{font-size:27px}.point{width:60px;height:60px}.tutorial{margin-top:27px}.tutorial-top{gap:10px}.speech{font-size:14px;padding:18px}.keyboard{font-size:10px}}@media(max-width:380px){.shell{padding:0 14px}.point{width:56px;height:56px}.piece{width:38px;height:38px}.piece.blue{width:32px;height:32px}.header-actions .text-button{font-size:12px}.tutorial-controls button{padding:12px 18px}.facts span+span{margin-left:12px;padding-left:12px}}
