:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#263a34;background:#f6f3eb;font-synthesis:none;--paper:#fffcf5;--ink:#263a34;--muted:#68756d;--line:#dcded1;--red:#d94b3e;--blue:#3478bd;--green:#285648}
*{box-sizing:border-box}body{margin:0;min-width:320px}button,input{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #ad721e;outline-offset:5px}button{border:0}h1,h2,h3,p{margin:0}button,svg{ -webkit-tap-highlight-color:transparent }h1,h2{letter-spacing:-.055em}a{color:var(--green)}
.shell{max-width:1220px;margin:auto;padding:30px 46px 20px}.topbar{display:flex;align-items:center;justify-content:space-between;min-height:48px}.brand{display:flex;gap:11px;align-items:center;font-size:26px;font-weight:850;letter-spacing:-1px}.brand svg{width:31px;height:34px}.brand-label{padding-left:20px;border-left:1px solid #cbd0c3;margin-left:9px;font-size:10px;font-weight:650;letter-spacing:2px;text-transform:uppercase;color:var(--muted)}.text-button{background:transparent;display:inline-flex;align-items:center;gap:9px;font-size:13px;font-weight:650;padding:12px 9px;border-radius:8px}.text-button:hover{background:#e9ebdf}.text-button svg{width:17px;height:17px}.topbar .text-button{border:1px solid var(--line);padding:11px 16px}
.home{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:38px;min-height:630px}.intro{padding:24px 0 42px}.eyebrow{display:flex;gap:8px;align-items:center;font-size:10px;text-transform:uppercase;letter-spacing:2px;font-weight:700;color:var(--muted);margin-bottom:16px}.color-pair{display:flex;gap:4px}.color-pair i{width:8px;height:8px;background:var(--red);border-radius:50%}.color-pair i+ i{background:var(--blue)}.intro h1{font-size:112px;font-weight:800;line-height:.95;margin-bottom:24px}.subtitle{font-size:23px;line-height:1.5;max-width:380px;letter-spacing:-.5px}.intro h2{font-size:15px;letter-spacing:0;margin:34px 0 15px;font-weight:650}.choice-stack{display:grid;gap:12px;max-width:405px}.choice{display:flex;text-align:left;align-items:center;gap:16px;border:1px solid #d6dccd;border-radius:15px;padding:19px 19px;background:var(--paper);box-shadow:0 3px 0 #e3e5d9;transition:transform .15s,box-shadow .15s}.choice:hover{transform:translateY(-2px);box-shadow:0 5px 0 #d6dccd}.choice.primary{background:var(--green);color:#fffdf4;border-color:var(--green);box-shadow:0 3px 0 #183a30}.choice-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:12px;background:#e7eddf}.primary .choice-icon{background:#416b5d}.choice-icon svg{width:25px;height:25px}.choice strong{display:block;font-size:16px;font-weight:700}.choice small{display:block;margin-top:4px;font-size:11px;color:#748076}.primary small{color:#cbdcd3}.arrow{margin-left:auto;font-size:23px;font-weight:400}.how-home{margin-top:17px}.hero-art{position:relative;min-width:0;padding:30px 0}.hero-art:before{content:"";position:absolute;inset:13% 3%;background:#e9eada;border-radius:50%;filter:blur(2px);z-index:-1}.hero-art svg{width:100%;transform:rotate(-7deg);overflow:visible;filter:drop-shadow(0 13px 0 #273b340a)}.art-caption{font-size:11px;letter-spacing:.4px;display:flex;justify-content:center;gap:20px;margin-top:31px;color:var(--muted)}.art-caption span{display:flex;align-items:center;gap:6px}.token{display:inline-block;width:12px;height:12px;border-radius:50%;background:var(--red)}.token.blue{background-color:var(--blue);background-image:radial-gradient(#dceeff 23%,transparent 25%);background-size:5px 5px}.footer{border-top:1px solid var(--line);padding:20px 0;display:flex;justify-content:space-between;font-size:10px;color:#7c877c;letter-spacing:.5px}.footer-mark{display:flex;gap:7px;align-items:center}.footer-mark i{width:5px;height:5px;border-radius:50%;background:#8a9c7a}
.settings-layout{max-width:620px;margin:55px auto 60px}.settings-layout h1{font-size:46px;margin-bottom:10px}.mode-line{color:var(--muted);font-size:14px;margin-bottom:30px}.card{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:30px;box-shadow:0 7px 0 #e9eadf}fieldset{padding:0;border:0;margin:0 0 24px;min-width:0}legend{font-size:13px;font-weight:700;margin-bottom:11px}.segments{display:flex;gap:7px;flex-wrap:wrap}.segment{flex:1;background:#f0f0e7;border:1px solid transparent;padding:12px 10px;min-height:46px;border-radius:9px;font-weight:600;font-size:13px;white-space:nowrap}.segment[aria-pressed=true]{background:#e5eddf;border-color:var(--green);color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}.segment:hover{background:#e4e8da}.hint{font-size:12px;line-height:1.7;color:var(--muted)}.tip{padding:11px 14px;background:#f3efdb;border-radius:9px;margin-top:12px;color:#766135}.primary-button{background:var(--green);color:#fffdf5;padding:15px 23px;border-radius:11px;font-size:14px;font-weight:700;min-height:49px;box-shadow:0 3px 0 #173a2d}.primary-button:hover{background:#1e483b}.wide{width:100%;margin-top:24px}.secondary-button{background:var(--paper);border:1px solid #c7d0bf;border-radius:10px;padding:12px 18px;min-height:46px;font-size:13px;font-weight:650}.secondary-button:hover{background:#e9eedd}.notice{margin:18px 0 0;font-size:13px;line-height:1.6;padding:13px 15px;border-radius:10px;background:#e9eddf}.notice:empty{display:none}.error{background:#f7e2da;color:#92382d}.link-panel{margin-top:24px;border-top:1px solid var(--line);padding-top:24px}.link-panel label{font-size:12px;font-weight:700}.link-input{display:block;width:100%;border:1px solid #becbbb;border-radius:8px;padding:12px;background:#fffdf9;color:var(--ink);font-size:12px;margin:8px 0 13px}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.waiting{display:flex;align-items:center;gap:9px;margin-top:19px;font-size:13px}.pulse{width:7px;height:7px;display:inline-block;border-radius:50%;background:#69905a;animation:pulse 1.5s infinite}
.game-layout{max-width:1000px;margin:37px auto 15px}.game-heading{display:flex;justify-content:space-between;align-items:center;margin:0 auto 20px;max-width:800px;gap:14px}.game-heading h1{font-size:32px;margin-bottom:8px;letter-spacing:-1px}.game-heading .goal{font-size:13px;color:var(--muted)}.player-chip{display:flex;align-items:center;gap:9px;font-size:12px;background:#fffcf5;border:1px solid var(--line);padding:10px 13px;border-radius:30px;white-space:nowrap}.game-tools{max-width:800px;margin:0 auto;display:flex;gap:12px;align-items:center;justify-content:space-between;min-height:48px}.game-tools .hint{max-width:340px}.swap-area{display:flex;gap:12px;align-items:center}.swap-button{background:#f4dfb7;color:#684d26;border:1px solid #d9bd8b}.board-scroll{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-color:#9ba68b #e8eadd;scrollbar-width:thin;width:100%;padding:20px 14px 22px;margin:4px 0 0;touch-action:pan-x pan-y}.board-svg{display:block;margin:0 auto;overflow:visible;max-width:100%;width:var(--board-width);min-width:var(--board-min)}.hex-cell{cursor:pointer;outline:none}.hex-base{fill:#fffdf7;stroke:#ced3c2;stroke-width:1.5;transition:fill .15s}.hex-cell[aria-disabled=true]{cursor:default}.hex-cell:not([aria-disabled=true]):hover .hex-base{fill:#edf0df}.hex-cell:focus-visible .hex-base{stroke:#927334;stroke-width:3}.stone{pointer-events:none}.ghost{opacity:0;pointer-events:none}.hex-cell:not([aria-disabled=true]):hover .ghost,.hex-cell:not([aria-disabled=true]):focus .ghost,.hex-cell.touch-preview .ghost{opacity:.35}.last-ring{fill:none;stroke:#ffffef;stroke-width:2;opacity:.85}.target .hex-base{fill:#f4e4a8;stroke:#c29735;stroke-width:3;animation:target 1.5s infinite}.bridge .hex-base{fill:#f7ebc8;stroke:#d5b75d;stroke-width:2.5}.winning-line{fill:none;stroke:#fff4b0;stroke-width:7;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 5px #eaa82e);pointer-events:none}.board-edge{fill:none;stroke-width:10;stroke-linecap:round;stroke-linejoin:round;opacity:.9}.board-label{fill:#84917e;font-size:10px;text-anchor:middle}.board-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;max-width:800px;margin:auto}.keyboard-hint{font-size:10px;color:#87917f;line-height:1.6}.pan-hint{display:none}.winner{max-width:800px;margin:15px auto 20px;padding:23px;background:#e4eddc;border:1px solid #b8cdab;border-radius:16px}.winner h2{font-size:22px;letter-spacing:-.5px;margin-bottom:20px}.game-notice{max-width:800px;margin:12px auto}.tutorial-layout{max-width:850px;margin:30px auto}.tutorial-layout .board-scroll{padding-top:10px;padding-bottom:10px}.tutorial-layout .board-svg{--board-width:650px;--board-min:310px}.tutorial-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.tutorial-top h1{font-size:28px}.step{color:var(--muted);font-size:12px}.bubble{max-width:650px;margin:auto;padding:22px 25px;background:var(--paper);border:1px solid var(--line);border-radius:17px;box-shadow:0 4px 0 #e8eadd;position:relative;min-height:113px}.bubble:after{content:"";position:absolute;width:14px;height:14px;bottom:-8px;left:49%;background:var(--paper);border-right:1px solid var(--line);border-bottom:1px solid var(--line);transform:rotate(45deg)}.bubble p{font-size:14px;line-height:1.7}.bubble .instruction{font-weight:750;color:#947325;margin-top:7px}.tutorial-actions{display:flex;align-items:center;justify-content:space-between;max-width:650px;margin:10px auto 24px;gap:10px}.dots{display:flex;gap:7px}.dots i{width:6px;height:6px;border-radius:50%;background:#d3d9c8}.dots i.active{background:var(--green);width:18px;border-radius:5px}.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}
@keyframes pulse{50%{opacity:.3}}@keyframes target{50%{stroke:#e9b42c;filter:drop-shadow(0 0 4px #edc75d)}}
@media(min-width:1450px){.shell{padding-top:43px}.home{min-height:720px}}
@media(max-width:850px){.shell{padding:22px 25px 14px}.home{gap:15px;min-height:600px}.intro h1{font-size:92px}.subtitle{font-size:20px}.brand-label{display:none}.choice{padding:17px 14px;gap:12px}.choice small{font-size:10px}.hero-art{margin-right:-15px}.art-caption{gap:12px;font-size:10px}}
@media(max-width:620px){.shell{padding:18px 20px 10px}.home{display:flex;flex-direction:column;gap:0;min-height:auto}.intro{width:100%;padding:36px 0 0;text-align:center}.eyebrow{justify-content:center}.intro h1{font-size:88px;margin-bottom:17px}.subtitle{font-size:19px;max-width:310px;margin:auto}.intro h2{margin-top:29px}.choice-stack{max-width:400px;margin:auto}.choice{text-align:left;padding:16px}.choice small{font-size:11px}.how-home{margin-top:13px}.hero-art{width:280px;padding:8px 0 20px;margin:-2px 0 0}.hero-art svg{max-height:210px}.art-caption{margin-top:7px}.footer{font-size:9px;padding:17px 0;gap:10px}.footer-mark{display:none}.settings-layout{margin:35px auto}.settings-layout h1{font-size:36px}.card{padding:22px 19px}.segments{gap:5px}.segment{padding:11px 8px}.game-layout{margin-top:30px}.game-heading{align-items:flex-start}.game-heading h1{font-size:25px}.game-heading .goal{font-size:12px}.player-chip{font-size:10px;padding:8px 10px}.game-tools{gap:8px;align-items:flex-start}.swap-area{gap:8px}.swap-area .hint{font-size:10px;max-width:150px}.board-scroll{width:calc(100% + 40px);margin-left:-20px;padding:20px 17px}.pan-hint{display:block;font-size:10px;color:#7b8774;margin:5px 0 10px}.keyboard-hint{max-width:230px}.board-bottom{align-items:flex-start}.tutorial-layout{margin-top:27px}.tutorial-top h1{font-size:23px}.bubble{padding:17px 20px;min-height:144px}.bubble p{font-size:13px}.tutorial-layout .board-scroll{padding-top:23px}.tutorial-actions .text-button{font-size:11px;padding:10px 3px}.tutorial-actions .primary-button{padding:13px 16px;font-size:12px}.tutorial-actions .secondary-button{padding:11px 14px;font-size:12px}.dots{gap:4px}.dots i{width:4px;height:4px}.dots i.active{width:12px}.winner h2{font-size:19px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.board-scroll{overflow:visible;touch-action:pan-y}.board-svg{min-width:0;max-width:100%}.hex-cell.selected .hex-base{stroke:#836120;stroke-width:4;fill:#f3e4af}.hex-cell.selected .ghost{opacity:.65}.place-bar{display:flex;justify-content:center;margin:4px 0 18px}.place-bar button{min-width:200px;min-height:52px}.small-board-tip{display:none;margin-top:10px}
@media(max-width:479px){.small-board-tip{display:block}}
@media(orientation:landscape) and (max-height:600px){.shell:has(.game-layout){padding:8px 16px}.shell:has(.game-layout) .topbar{min-height:34px}.shell:has(.game-layout) .brand{font-size:22px}.shell:has(.game-layout) .brand svg{height:25px}.shell:has(.game-layout) .footer{display:none}.game-layout{margin:8px auto 0}.game-heading{margin-bottom:3px}.game-heading h1{font-size:21px;margin-bottom:2px}.game-tools{min-height:30px}.game-tools .secondary-button{min-height:32px;padding:6px 15px}.board-scroll{padding:2px 14px;width:100%;margin:0}.board-bottom .text-button{padding:4px 10px}.place-bar{margin:0;position:fixed;right:16px;bottom:12px;z-index:2}.place-bar button{min-width:130px;min-height:44px;padding:10px}}
