.avatar svg{width:22px;height:22px;fill:none;stroke:currentColor}
.arena .stick.removed .stick-shape{background:#52634d;opacity:.55}
.arena .stick.removed:after{background:#2c412b;opacity:.8}
:root{color-scheme:light;--paper:#f6f5ef;--ink:#203d38;--muted:#718079;--line:#dddfd5;--orange:#e78d58;--green:#224b3e;--lime:#e5edb8;--white:#fffefa;--blue:#dce9ef;--radius:24px;font-family:'DM Sans',sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button{border:0}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #b45a31;outline-offset:4px}button:not(:disabled),a{transition:background .18s,transform .18s}button:not(:disabled):active{transform:translateY(1px)}a{color:inherit}button svg{width:20px;height:20px;vertical-align:middle}button svg *{vector-effect:non-scaling-stroke}.app-shell{max-width:1280px;padding:0 64px;margin:0 auto}.topbar{height:102px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:24px}.brand{display:flex;align-items:center;text-decoration:none;font-family:Manrope,sans-serif;font-size:36px;letter-spacing:-2px;font-weight:800}.brand-dot{color:var(--orange)}.brand-mark{display:flex;align-items:center;gap:4px;margin-right:12px;transform:rotate(-10deg)}.brand-mark i{height:24px;width:5px;border-radius:5px;background:var(--orange)}.brand-mark i:nth-child(2){height:32px;background:var(--ink)}.brand-caption{font-size:12px;color:var(--muted)}nav{display:flex;align-items:center;gap:16px;margin-left:auto}.text-button{padding:10px 4px;background:transparent;font-size:13px;font-weight:600}.text-button>span:first-child{margin-right:5px}.outline-button{border:1px solid #bac5bb;border-radius:9px;padding:11px 18px;background:transparent;font-weight:600;font-size:13px}.outline-button:hover{background:#e9eddf}.icon-button{width:40px;height:40px;border-radius:50%;background:transparent;display:grid;place-items:center}.icon-button:hover{background:#e9eddf}.introduction{position:relative;margin:42px 0 30px}.eyebrow{display:flex;gap:9px;align-items:center;font-size:10px;font-weight:800;letter-spacing:1.9px}.tiny-star{font-size:23px;color:#71916e}.introduction h1{font-family:Manrope,sans-serif;font-size:clamp(34px,4vw,48px);letter-spacing:-2.3px;line-height:1.16;margin:12px 0 10px;font-weight:800}.introduction p{font-size:14px;color:var(--muted);margin:0;line-height:1.7}.scribble{position:absolute;font-size:77px;font-family:Georgia,serif;transform:rotate(15deg);color:#99a58c;right:70px;top:2px}.play-layout{display:grid;grid-template-columns:330px 1fr;gap:24px;align-items:stretch}.panel{border:1px solid var(--line);border-radius:var(--radius);background:var(--white);padding:27px 25px;min-height:480px;display:flex;flex-direction:column}.section-label{font-size:9px;letter-spacing:1.5px;font-weight:800;color:var(--muted);line-height:1.5}.panel h2{font-family:Manrope,sans-serif;font-size:25px;font-weight:800;letter-spacing:-.8px;line-height:1.26;margin:14px 0 24px}.opponent{width:100%;padding:22px 17px;border:1px solid var(--line);border-radius:15px;background:transparent;text-align:left;display:flex;gap:13px;align-items:center;margin-bottom:13px}.opponent:hover{border-color:#829480;background:#f4f6eb}.opponent.primary-choice{border-color:#cbd5b1;background:#f0f3e6}.opponent .choice-icon{width:42px;height:45px;flex-shrink:0;display:grid;place-items:center;background:#e0e8cf;border-radius:12px;color:var(--green)}.opponent:nth-of-type(2) .choice-icon{background:var(--blue);color:#456778}.choice-icon svg{width:26px;height:26px}.opponent strong{display:block;font-size:14px;margin-bottom:5px;letter-spacing:-.2px}.opponent small{display:block;font-size:10px;line-height:1.6;color:var(--muted)}.choice-arrow{margin-left:auto;font-size:18px}.learn-box{margin-top:auto;padding-top:32px;font-size:12px;text-align:center;color:var(--muted)}.learn-box button{font-size:12px;font-weight:700;text-decoration:underline;text-underline-offset:3px;padding-left:5px}.arena{border-radius:var(--radius);background:#eaeedc;border:1px solid #dfe4d2;overflow:hidden;display:flex;flex-direction:column;min-width:0;min-height:480px}.arena-top{display:flex;justify-content:space-between;align-items:center;padding:23px 26px}.arena-top h2{font-size:13px;margin:0;font-weight:600}.count-pill{font-size:10px;border:1px solid #cdd5c0;background:#f1f3e8;border-radius:25px;padding:7px 11px;white-space:nowrap}.board-status{text-align:center;font-size:11px;color:#7c8870;margin:3px 15px 0;min-height:20px}.board{padding:15px 26px 18px;display:flex;flex-direction:column;gap:13px;flex:1;justify-content:center;user-select:none;touch-action:pan-y;min-height:278px}.stick-row{display:flex;align-items:center;justify-content:center;position:relative;min-height:46px;gap:8px}.row-badge{position:absolute;left:0;top:50%;transform:translateY(-50%);font-size:9px;font-weight:600;color:#9aa48f}.row-sticks{display:flex;justify-content:center;gap:6px;border-radius:15px;padding:2px 5px;max-width:calc(100% - 30px)}.stick{padding:0;background:transparent;width:40px;height:48px;display:flex;justify-content:center;align-items:center;position:relative;touch-action:none;flex-shrink:1;min-width:25px;border-radius:10px;opacity:1!important}.stick-shape{display:block;width:13px;height:45px;border-radius:6px;background:var(--orange);box-shadow:inset -3px 0 #ce784745,0 3px 0 #cb784d;transform:rotate(-4deg);transition:background .15s,transform .15s,opacity .15s}.stick:nth-child(2n) .stick-shape{transform:rotate(4deg)}.stick:nth-child(3n) .stick-shape{transform:rotate(-1deg)}.stick:not(:disabled):hover .stick-shape{background:#f0ac70;transform:translateY(-4px) rotate(-5deg)}.stick.selected{background:#d6dfc2}.stick.selected .stick-shape{background:var(--green);box-shadow:inset -3px 0 #152d2840,0 3px 0 #17392d;transform:rotate(9deg)}.stick.selected:after{content:'';position:absolute;width:26px;height:2px;background:#fff9e7;transform:rotate(-32deg)}.stick.removed .stick-shape{background:#9ba78f;box-shadow:none;opacity:.28;transform:rotate(12deg)}.stick.removed:after{content:'';position:absolute;width:25px;height:2px;background:#7b8872;opacity:.55;transform:rotate(-35deg)}.move-tray{border-top:1px solid #d9dfcb;background:#f1f3e6;padding:19px 25px 17px;min-height:114px}.preview-tray{text-align:center;display:flex;flex-direction:column;justify-content:center;gap:8px}.preview-tray strong{font-size:13px;font-weight:600}.preview-tray span{font-size:11px;color:var(--muted)}.tray-heading{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-bottom:12px;gap:8px}.selected-label{font-weight:700;color:var(--green)}.move-controls{display:flex;align-items:center;gap:9px}.counter{display:flex;align-items:center;border:1px solid #ccd3c2;background:var(--white);border-radius:9px;height:40px}.counter button{width:35px;height:38px;background:transparent;font-size:20px}.counter output{min-width:26px;text-align:center;font-size:13px;font-weight:600}.confirm{margin-left:auto;min-width:114px;display:flex;justify-content:center;gap:14px;align-items:center}.solid-button{border-radius:9px;background:var(--green);color:#fffefa;padding:13px 18px;font-size:12px;font-weight:600}.solid-button:hover{background:#356350}.solid-button:disabled{opacity:.32}.cancel{font-size:11px;background:transparent;padding:9px;color:var(--muted)}.keyboard-note{text-align:center;font-size:9px;color:#8e9984;letter-spacing:.2px;padding:10px 0 12px;margin:0;background:#f1f3e6}.quick-rules{display:grid;grid-template-columns:repeat(3,1fr);gap:35px;margin:29px 9px 38px}.quick-rules>div{display:flex;gap:12px;align-items:flex-start}.rule-number{font-family:Manrope,sans-serif;font-size:12px;color:#91a28a;border:1px solid #d9dfce;width:28px;height:28px;display:grid;place-items:center;flex-shrink:0;border-radius:50%}.quick-rules p{margin:0}.quick-rules strong{font-size:12px;font-weight:600;display:block;margin:1px 0 5px}.quick-rules p>span{font-size:10px;color:var(--muted);line-height:1.5;display:block}footer{border-top:1px solid var(--line);padding:22px 0;display:flex;justify-content:space-between;color:#8d978d;font-size:10px}.footer-mark{display:flex;align-items:center;gap:7px}.green-dot{height:5px;width:5px;background:#839975;border-radius:50%}.panel-back{background:transparent;padding:0;display:flex;align-items:center;gap:8px;font-size:11px;margin-bottom:16px;color:var(--muted)}.settings h2{font-size:22px;margin:8px 0 19px}.field{margin-bottom:19px}.field-label{display:block;font-size:9px;font-weight:700;letter-spacing:1.1px;margin-bottom:9px;color:var(--muted)}.segments{display:flex;padding:3px;background:#f0f1e9;border-radius:9px;gap:3px}.segments button{flex:1;background:transparent;padding:9px 3px;font-size:11px;line-height:1.3;border-radius:6px;color:var(--muted)}.segments button.active{background:var(--white);color:var(--ink);box-shadow:0 1px 4px #203d3815;font-weight:700}.field-note{font-size:10px;line-height:1.6;color:var(--muted);margin:8px 0 0}.field-note:empty{display:none}.custom-label{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:600;margin-bottom:10px}.custom-label input{accent-color:var(--green);width:17px;height:17px}.custom-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.custom-fields label{font-size:9px;color:var(--muted);display:flex;flex-direction:column;gap:5px}.custom-fields input,.row-number-select{width:100%;border:1px solid var(--line);border-radius:7px;padding:7px;background:#fff;font-size:12px;color:var(--ink)}.start-button{width:100%;margin-top:auto;padding:14px}.player-card{padding:17px;border:1px solid var(--line);border-radius:12px;display:flex;align-items:center;gap:12px}.player-card.active{background:#eff3e3;border-color:#bdcda5}.avatar{height:34px;width:34px;display:grid;place-items:center;border-radius:50%;background:#dfe8cc}.avatar.bot-avatar{background:#dce9ef}.player-card strong{font-size:12px}.player-card .turn-dot{width:7px;height:7px;background:var(--green);border-radius:50%;margin-left:auto}.versus{text-align:center;font-size:10px;color:#9ba596;padding:8px}.game-panel h2{margin-bottom:9px;font-size:28px}.turn-note{font-size:12px;line-height:1.6;color:var(--muted);margin:0 0 23px}.game-meta{border-top:1px solid var(--line);margin-top:22px;padding-top:15px;font-size:10px;line-height:1.8;color:var(--muted)}.game-tools{display:flex;gap:8px;margin-top:20px}.game-tools button{padding:9px 12px;border:1px solid var(--line);border-radius:8px;font-size:11px;background:transparent}.game-tools .on{background:#e5edb8;border-color:#c8d398}.hint-text{font-size:10px;line-height:1.6;color:var(--muted);margin:12px 0 0}.hint-text strong{color:var(--ink);display:block}.result-art{font-size:50px;text-align:center;margin:15px 0;color:#c79440}.result-title{font-size:30px!important}.result-tray{text-align:center;font-size:12px}.room-link{width:100%;border:1px solid var(--line);border-radius:8px;padding:12px;font-size:11px;background:#f7f8f1;color:var(--ink)}.room-actions{display:flex;gap:8px;margin-top:10px}.room-actions button{flex:1}.connection-status{padding:13px 10px;margin:14px 0;border-radius:9px;background:#eff3e3;font-size:11px;text-align:center;line-height:1.7}.connection-status.reconnecting{background:#f6e4cb}.connection-status strong{display:block}.leave-button{margin-top:auto;align-self:center;font-size:11px;color:#8b6550}.invite-summary{background:#f0f3e7;border-radius:12px;padding:15px;font-size:12px;line-height:2;margin-bottom:24px}.online-notice{font-size:10px;line-height:1.6;color:var(--muted);margin:14px 0 22px}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);max-width:calc(100% - 40px);border-radius:12px;padding:14px 22px;background:var(--ink);color:white;font-size:13px;box-shadow:0 6px 25px #203d3820;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:20}.toast.show{opacity:1;transform:translate(-50%,0)}.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}dialog{max-width:440px;width:calc(100% - 32px);border:0;padding:30px;border-radius:24px;background:var(--white);color:var(--ink);box-shadow:0 24px 100px #203d3830}dialog::backdrop{background:#1c342e60;backdrop-filter:blur(5px)}.tutorial-top{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:var(--muted);font-weight:600;letter-spacing:1px}.tutorial-top button{font-size:11px;background:transparent;color:var(--muted);padding:8px}.tutorial-art{background:#eaeedc;border-radius:16px;margin:22px 0;padding:19px;min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}.tutorial-art .practice-row{display:flex;gap:4px}.tutorial-art .stick{width:45px}.tutorial-art .only-stick{background:#eed2b2;border:2px dashed #c49262;border-radius:12px}.tutorial-art .min-one{background:#dce7c9;border-radius:12px}.tutorial-art .practice-message{font-size:11px;font-weight:600;min-height:18px;margin:3px 0 0}.tutorial-content h2{font-family:Manrope,sans-serif;letter-spacing:-1px;font-size:27px;margin:0 0 11px}.tutorial-content p{font-size:14px;line-height:1.7;color:var(--muted);min-height:48px;margin:0}.tutorial-bottom{display:flex;align-items:center;gap:16px;margin-top:26px}.tutorial-bottom .solid-button{margin-left:auto;min-width:98px}.tutorial-dots{display:flex;gap:5px;margin:auto}.tutorial-dots i{width:5px;height:5px;border-radius:50%;background:#d9dece}.tutorial-dots i.active{background:var(--green);width:16px;border-radius:5px}.result-tray .solid-button{margin-top:10px}.selected-row .row-badge{color:var(--green);font-weight:800}
@media(min-width:1500px){.app-shell{max-width:1330px}.introduction{margin-top:50px}.panel,.arena{min-height:500px}.board{gap:17px}.stick{height:53px}.stick-shape{height:49px}}
@media(max-width:1000px){.app-shell{padding:0 30px}.play-layout{grid-template-columns:300px 1fr;gap:18px}.brand-caption{display:none}.panel{padding:24px 21px}.stick{width:34px}.stick-row{gap:4px}.row-sticks{gap:2px}.board{padding:15px}.arena-top{padding:22px 20px}.move-tray{padding:17px}.scribble{right:20px}}
@media(max-width:760px){.app-shell{padding:0 22px}.topbar{height:80px;gap:10px}.brand{font-size:31px}nav{gap:7px}.outline-button{font-size:11px;padding:10px 12px}.text-button{font-size:11px}.icon-button{width:32px}.introduction{margin:30px 0 24px}.introduction h1{font-size:36px;letter-spacing:-1.7px}.introduction p{font-size:12px;max-width:310px}.eyebrow{font-size:8px;letter-spacing:1.3px}.scribble{display:none}.play-layout{grid-template-columns:1fr}.panel{min-height:auto;padding:23px}.panel h2{font-size:24px}.opponent{padding:17px}.learn-box{padding-top:10px}.arena{min-height:435px}.board{min-height:260px}.stick{width:40px;height:46px}.row-sticks{gap:5px}.quick-rules{gap:20px;margin:24px 0 28px}.quick-rules>div{display:block}.rule-number{margin-bottom:9px}.quick-rules p>span{font-size:9px}.quick-rules strong{font-size:11px}footer{font-size:9px;gap:15px}.game-panel .players{display:flex;align-items:center;gap:12px}.player-card{flex:1;padding:12px}.game-panel h2{margin-top:8px}.game-panel .turn-note{margin-bottom:15px}.game-meta{margin-top:16px}.game-tools{margin-top:12px}.game-panel .versus{padding:0}.settings .field{margin-bottom:16px}.keyboard-note{display:none}.move-tray{padding-bottom:19px}.brand-mark{margin-right:8px}.brand-mark i{width:4px}.topbar nav .text-button span:first-child{display:none}}
@media(max-width:390px){.app-shell{padding:0 14px}.topbar{gap:4px}nav{gap:2px}.brand{font-size:28px}.stick{min-width:23px;width:30px}.row-sticks{gap:3px}.introduction h1{font-size:32px}.move-tray{padding:15px 12px}.counter button{width:30px}.confirm{min-width:100px}.quick-rules{gap:12px}.board{padding:15px 9px}.footer-mark{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
