:root{font-family:"Helvetica Neue",Arial,sans-serif;color:#203a2c;background:#f7f6ee;font-synthesis:none;--ink:#203a2c;--muted:#657363;--green:#286845;--orange:#c45c30;--lime:#d6ef80;--line:#dbdfd2;--paper:#fffef9}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #b3692e;outline-offset:4px}button{min-height:48px;border-radius:14px;border:1px solid var(--line);padding:12px 20px;background:var(--paper);color:var(--ink);font-weight:650}button:hover:not(:disabled){border-color:var(--green);background:#f0f4e6}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover:not(:disabled){background:#1b5034;color:white}.secondary{background:var(--lime);border-color:var(--lime)}.quiet{background:transparent;border-color:transparent}.small{font-size:13px}.shell{max-width:1220px;margin:auto;padding:28px 48px 20px}.header{display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line);padding-bottom:23px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-size:36px;font-weight:850;letter-spacing:-2.5px}.brand svg{width:40px;height:40px}.tagline{font-size:12px;font-weight:500;letter-spacing:.2px;margin-left:20px;color:var(--muted)}.header-actions{display:flex;gap:6px}.eyebrow{font-size:11px;font-weight:800;letter-spacing:2px;color:var(--green)}.hero{display:grid;grid-template-columns:1.05fr 1fr;gap:64px;align-items:center;padding:54px 0 42px}h1{font-size:clamp(40px,5.5vw,67px);font-weight:760;line-height:1.06;letter-spacing:-3px;margin:18px 0 22px;white-space:pre-line}h2{font-size:26px;letter-spacing:-.7px;margin:12px 0 18px}h3{font-size:17px;letter-spacing:-.25px;margin:0 0 6px}p{line-height:1.6}.intro{color:var(--muted);font-size:17px;max-width:400px;margin:0 0 28px}.opponents{display:grid;gap:12px}.opponent{display:flex;align-items:center;text-align:left;gap:17px;padding:19px 20px;border-radius:18px;box-shadow:0 3px 0 #203a2c06}.opponent .icon{width:47px;height:47px;border-radius:14px;display:grid;place-items:center;background:#e9f1db;color:var(--green);font-size:26px;flex-shrink:0}.opponent:nth-child(2) .icon{background:#f7e6d8;color:var(--orange)}.opponent strong{display:block;font-size:18px}.opponent small{display:block;color:var(--muted);font-size:12px;font-weight:400;margin-top:5px}.arrow{margin-left:auto;font-size:24px}.hero-art{position:relative;background:#e9eddf;border:1px solid #dee4d5;border-radius:38px;padding:24px;transform:rotate(3deg)}.hero-art .board{background:var(--paper);box-shadow:0 10px 30px #203a2c08}.art-caption{display:flex;align-items:center;justify-content:center;gap:9px;font-size:12px;color:var(--muted);padding-top:18px;transform:rotate(-3deg)}.art-caption:before{content:'';width:8px;height:8px;border-radius:50%;background:var(--green)}.rules-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;padding:26px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.rule{display:flex;align-items:flex-start;gap:14px}.rule-number{width:32px;height:32px;display:grid;place-items:center;border:1px solid #cbd4bd;border-radius:50%;font-size:12px;flex-shrink:0}.rule p{margin:0;color:var(--muted);font-size:12px}.rule h3{font-size:14px}.footer{display:flex;justify-content:space-between;color:#6d7868;font-size:11px;padding-top:20px}.setup-wrap{max-width:650px;margin:40px auto}.setup-card,.invitation-card{border:1px solid var(--line);background:var(--paper);border-radius:26px;padding:30px;margin-top:20px}.setup-card h1,.invitation-card h1{font-size:36px;letter-spacing:-1.2px}.field{border:0;margin:24px 0;padding:0}.field legend,.field label{display:block;font-size:13px;font-weight:750;margin-bottom:11px}.choices{display:flex;gap:8px}.choices button{flex:1}.choices button.active{background:var(--ink);color:white;border-color:var(--ink)}.hint{font-size:12px;color:var(--muted);margin:9px 0 0}.full{width:100%}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:36px;margin:32px 0}.game-top{display:flex;justify-content:space-between;align-items:center;margin:0 0 18px}.game-top h2{margin:6px 0 0}.count{font-size:12px;border-radius:20px;background:#e9edde;padding:9px 14px;white-space:nowrap}.board{width:100%;aspect-ratio:1;position:relative;border:1px solid var(--line);border-radius:24px;overflow:hidden;background-color:var(--paper);background-image:radial-gradient(#6573630d .7px,transparent .7px);background-size:8px 8px;touch-action:manipulation}.board svg{width:100%;height:100%;position:absolute;inset:0;overflow:visible}.lasso-line,.lasso-loop{fill:none;stroke-width:.048;stroke-linecap:round;stroke-linejoin:round}.player-0{stroke:var(--green)}.player-1{stroke:var(--orange)}.preview-valid{stroke:#42a35f;stroke-dasharray:.08 .06}.preview-invalid{stroke:#c94444;stroke-dasharray:.08 .06}.dot{width:44px;height:44px;min-height:44px;padding:0;border:0;background:transparent;position:absolute;transform:translate(-50%,-50%);display:grid;place-items:center;border-radius:50%;z-index:2}.dot:hover:not(:disabled){background:#c9dec04d;border:0}.dot-core{width:16px;height:16px;display:block;border-radius:50%;background:#36533d;border:3px solid #36533d;box-shadow:0 0 0 5px var(--paper)}.dot.used .dot-core{background:#fffef9;border-color:#b4bcae;box-shadow:none;width:12px;height:12px}.dot.exhausted .dot-core{background:#bc9663;border-color:#bc9663}.dot.selected .dot-core{background:var(--lime);border-color:var(--green);box-shadow:0 0 0 6px #d6ef8070}.dot.target .dot-core{box-shadow:0 0 0 6px #7ccf8050}.dot-number{font-size:9px;font-weight:750;position:absolute;left:29px;top:28px;color:var(--muted);line-height:1}.dot.used .dot-number{color:#949b91}.board.static .dot{pointer-events:none}.board.static .dot-number{display:none}.board-note{color:var(--muted);font-size:11px;text-align:center;margin:12px 0}.status-bar{padding:16px 0;min-height:84px}.status-bar p{margin:0;font-size:15px;font-weight:600}.status-bar p.invalid{color:#ad3838}.move-actions{display:flex;gap:8px;margin-top:12px}.side-card{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:22px;margin-bottom:14px}.players{display:flex;gap:12px;align-items:center}.player{flex:1;font-size:13px;font-weight:700;display:flex;align-items:center;gap:8px}.color-dot{width:10px;height:10px;border-radius:50%;background:var(--green)}.color-dot.orange{background:var(--orange)}.side-actions{display:grid;gap:9px}.legend{display:grid;gap:13px;font-size:12px;color:var(--muted)}.legend-row{display:flex;align-items:center;gap:11px}.legend-dot{width:12px;height:12px;border-radius:50%;background:#36533d}.legend-dot.used{background:transparent;border:2px solid #a9b3a1}.legend-dot.exhausted{background:#bc9663}.side-card .eyebrow{font-size:10px;margin:0 0 18px}.side-card p{font-size:12px;color:var(--muted);margin-bottom:0}.result{background:#e7f0cf;border-radius:18px;padding:21px;margin-bottom:16px}.result h2{margin:0 0 8px}.result p{margin:0 0 14px;font-size:14px}.connection{border:1px dashed #b4c09f;background:#f1f4e8;padding:18px;border-radius:18px;margin-bottom:16px}.connection p{margin:4px 0 10px;font-size:14px}.connection strong{display:block}.waiting-dot{display:inline-block;width:8px;height:8px;background:var(--green);border-radius:50%;margin-right:6px;animation:pulse 1.5s infinite}.link-input{width:100%;border:1px solid var(--line);border-radius:12px;min-height:46px;padding:12px;font-size:12px;color:var(--muted);background:white;margin:9px 0 10px}.share-actions{display:flex;gap:8px}.share-actions button{flex:1}.tutorial{max-width:530px;width:calc(100% - 30px);border:1px solid var(--line);border-radius:28px;background:var(--paper);color:var(--ink);padding:28px;box-shadow:0 25px 100px #203a2c26}.tutorial::backdrop{background:#203a2c66;backdrop-filter:blur(5px)}.tutorial-top{display:flex;justify-content:space-between;align-items:center}.tutorial-top span{font-size:12px;color:var(--muted)}.tutorial h2{font-size:29px;margin-bottom:8px}.tutorial p{font-size:16px;margin:0 0 18px;min-height:50px}.tutorial .board{max-width:280px;margin:0 auto 18px}.tutorial-controls{display:flex;justify-content:space-between;gap:10px;align-items:center}.progress-dots{display:flex;gap:5px}.progress-dots i{width:6px;height:6px;background:#d3d9c9;border-radius:50%}.progress-dots i.active{background:var(--green)}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);max-width:90vw;border-radius:14px;background:var(--ink);color:white;padding:14px 22px;font-size:13px;box-shadow:0 8px 30px #203a2c20;z-index:10;display:none}.toast.visible{display:block}.invite-settings{list-style:none;padding:0;margin:24px 0}.invite-settings li{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line);font-size:14px}.dialog-actions{display:flex;gap:10px;margin-top:24px}.dialog-actions button{flex:1}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@keyframes pulse{50%{opacity:.4}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* The tutorial fills the play area; leave confirmations retain their compact dialog. */
body:has(.tutorial-fullscreen[open]){overflow:hidden}
.tutorial.tutorial-fullscreen{position:fixed;inset:0;margin:0;width:100%;height:100dvh;max-width:none;max-height:none;border:0;border-radius:0;padding:clamp(16px,3vw,36px);overflow:auto;box-shadow:none}
.tutorial.tutorial-fullscreen[open]{display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;gap:10px}
.tutorial-fullscreen .tutorial-top,.tutorial-fullscreen .tutorial-controls{width:100%;min-width:0}
.tutorial-fullscreen h2{margin:0;font-size:clamp(26px,3vw,42px)}
.tutorial-fullscreen p{min-height:0;margin:0;font-size:clamp(15px,1.6vw,18px)}
.tutorial-stage{min-width:0;min-height:0;display:grid;place-items:center;container-type:size}
.tutorial-fullscreen .tutorial-stage .board{width:min(100%,calc(100dvh - 270px));max-width:none;margin:0}
@supports(width:1cqw){.tutorial-fullscreen .tutorial-stage .board{width:min(100cqw,100cqh)}}
.tutorial-fullscreen .tutorial-controls{padding-top:4px}
@media(min-width:801px){.game-layout{grid-template-columns:minmax(340px,min(620px,calc(100dvh - 280px))) 280px;justify-content:center;margin-left:auto;margin-right:auto}.hero-art{margin:0 10px}}
@media(max-width:800px){.shell{padding:22px}.hero{gap:28px;padding-top:36px}.tagline{display:none}.hero-art{padding:16px;border-radius:24px}h1{font-size:44px;letter-spacing:-2px}.game-layout{grid-template-columns:minmax(0,1fr) 220px;gap:18px}.side-card{padding:16px}.header-actions button{padding:10px}.rules-strip{gap:16px}.rule{gap:8px}.rule-number{display:none}}
@media(max-width:600px){.shell{padding:18px 16px}.header{padding-bottom:15px;gap:8px}.brand{font-size:31px}.brand svg{width:33px}.header-actions{gap:0}.header-actions button{font-size:12px;padding:10px 12px}.hero{grid-template-columns:1fr;gap:24px;padding:30px 0}.hero h1{font-size:48px;margin-top:13px}.intro{font-size:15px;margin-bottom:24px}.hero-art{max-width:340px;width:88%;margin:6px auto 12px}.rules-strip{grid-template-columns:1fr;gap:17px}.rule-number{display:grid}.footer span:last-child{display:none}.setup-wrap{margin-top:24px}.setup-card,.invitation-card{padding:22px 18px}.choices{gap:6px}.choices button{padding:12px 8px;font-size:14px}.game-layout{grid-template-columns:1fr;margin-top:24px;gap:4px}.game-top h2{font-size:23px}.side-panel{display:grid;grid-template-columns:1fr 1fr;gap:10px}.side-card{margin-bottom:0}.side-card.help-card{grid-column:1/-1}.side-actions{grid-template-columns:1fr}.legend{gap:10px}.board-note{font-size:10px}.tutorial{padding:22px}.tutorial h2{font-size:26px}.tutorial p{font-size:15px}.tutorial-controls button{padding:12px 14px}.dot{width:44px;height:44px}.dot-core{width:14px;height:14px}.dot-number{left:28px;top:27px}.status-bar{min-height:86px}}
