@font-face{font-family:Manrope Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(data:font/woff2;base64,d09GMgABAAAAAAn4ABMAAAAAEwQAAAmOAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGjQbgnQcLj9IVkFSgQEGYD9TVEFUgQIAgQovahEICok0h0ULIAAwhzoBNgIkAzwEIAWHJgeBDgwHG6QQUdRKTmoBFD8K42bniObKrG3LZFcMWZzFmrjTFhQ6TVTqPJcInrfrvzq3b2PGn1wwMiNYGTy9ViREYARlL1zAGcPdPqBt3gNWrfKthv4xnM+b9caw+wmjgEUVRjHXhS6jgCK6zf5HiWQacJpGdAgdrbV6g/Rf1BfxRqZVQnrxRVWSJb6RLFnyu0elilmjeoSQCKnxsmwLaddUMjnksriSYuuPl06EAl7KfAiWQjCUETz0zNZ3EII94CDQtzkMfZ/9IkkY8tZRZTDky5ZVwBAM+GYpdd4ZVAWYImnLkiTg48l79gGx3D+VBtLeyg8u7bJAd4uo0pFuQBFysE9C95l0W4Fkiao6GfrDbu77lVU7wk9cV3uqOsXmQiMkhVKl1ugjzUAJBSIkkVWHijkpkVSyUFsgVBuJMA0N+ZnXtyUv5yMigGdfQRmwL1AAjQ3YXG6iIFNSUdPQo8+AISPGAltBMDQRAtyf4ZspLlZkpyOVoMZPvFGWzvk8p5SUC/NWPMj6T2/Yas2EdlON5GkfdkeFwVGjta825H89NIenlLWAPAp5h1KDtRhCaAQWMsFKtEvOKpIhgLHlXPARokkgEGEOAkqxJRQpKYq4ezahIiLHP6hZpqMbV0pUF2vdvEimLEQ/iIUYLgYWs0VXGVlLTOPdaPmFfCC/XrtzqVo1ez7vz6+Kd2+7o11ZJ+4MreLbB5BKVGxobAq4jZYalZ5aX2CKJiwUuc9GNJyi4M8bGyKcdjSRrG4JohdF8buJfmQefbYYREnMFsOoiNliFDVxmRgL0XUmUMLqzW0A4gCQAhWGYCQpFNukwXhIkPMsbRI19ewtw8Cp2Wj/Ro5cM2OTAbJAvZ/L4opBXb9+U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xMXO54ogShooTV2bj2z1zL6DYSoImoQ8lFUWxMLBNQQgLkV2tHYgUoIbkuREz+fJHKxxWBcnvu3KQppFCxLkguB1NyVSp/TknRvNwYlCdbblWu3ze6owHdWluhE5tgQ6ej2SV65CijijoaRfSiH4Nqz1OpfEW+WeI/oU0ly60zkV9YzOQSYtZVEGYmrysTZAJkY4qZtIBD9/LYTIK7Nww3vMiYBwA=) format("woff2-variations");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Manrope Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/assets/manrope-cyrillic-wght-normal-Dvxsihut.woff2) format("woff2-variations");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Manrope Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/assets/manrope-greek-wght-normal-DL7QRZyv.woff2) format("woff2-variations");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Manrope Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/assets/manrope-vietnamese-wght-normal-usUDDRr7.woff2) format("woff2-variations");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Manrope Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/assets/manrope-latin-ext-wght-normal-Ch3YOpNY.woff2) format("woff2-variations");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Manrope Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/assets/manrope-latin-wght-normal-DHIcAJRg.woff2) format("woff2-variations");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{font-family:Manrope Variable,Hiragino Sans,Microsoft YaHei,sans-serif;color:var(--text);background:var(--page);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--page: #f4f3ef;--surface: #fbfaf7;--surface-soft: #eae9e3;--text: #252523;--muted: #706f67;--line: #d6d4cc;--rule: #b84e3d45;--accent: #af3c2d;--accent-soft: #f1e1da;--on-accent: #fffaf6;--primary: #282825;--on-primary: #faf9f5;--board-bg: #e8e7df;--board-line: #9b9a8e;--board-label: #68685f;--play-accent: #a83526;--promoted: #d74334;--last-from: #ac72521a;--last-to: #ac725238;--selected-square: #b1443023;--shadow: #3b352414;--layer-skip: 20;color-scheme:light}:root[data-theme=dark]{--page: #20211f;--surface: #292a27;--surface-soft: #333530;--text: #efeee8;--muted: #b4b4a9;--line: #484a43;--rule: #cf85745c;--accent: #efa28e;--accent-soft: #49342e;--on-accent: #26201c;--primary: #e9e8e1;--on-primary: #252523;--board-bg: #b9b9ac;--board-line: #76776b;--board-label: #3e4037;--play-accent: #8e2e21;--last-from: #844e3022;--last-to: #844e3050;--selected-square: #9e34192d;--shadow: #10120e38;color-scheme:dark}*{box-sizing:border-box}html{scroll-padding-block:24px 160px}body{margin:0;min-width:320px}body,button,input,select{font-family:Manrope Variable,Hiragino Sans,Microsoft YaHei,sans-serif}button,input,select{font-size:13px}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button,a,select,input{touch-action:manipulation}button{transition:background .16s,border-color .16s,color .16s,transform .16s}button:active:not(:disabled){transform:translateY(1px)}button:disabled{cursor:not-allowed;opacity:.4}button svg,a svg{flex-shrink:0}a{color:inherit;text-decoration:none}button,input,select{border-radius:3px}input,select{min-width:0;width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--line);background:var(--surface);color:var(--text)}select{cursor:pointer;padding-right:24px}input::placeholder{color:var(--muted);opacity:1}select:disabled{opacity:.6;cursor:not-allowed}:focus-visible{outline:2px solid var(--accent);outline-offset:4px}h1,h2,h3,h4,p{margin:0}img{display:block;max-width:100%;height:auto}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.app{max-width:1120px;margin:0 auto;padding:0 32px;min-height:100dvh;display:flex;flex-direction:column}.skip-link{position:fixed;top:-100px;left:20px;z-index:var(--layer-skip);background:var(--primary);color:var(--on-primary);padding:14px 22px}.skip-link:focus{top:12px}.app-header{min-height:68px;display:flex;align-items:center;border-bottom:1px solid var(--rule);gap:32px}.brand{display:inline-flex;align-items:center;gap:13px;flex-shrink:0}.brand-mark{display:grid;place-items:center;width:35px;height:42px;padding-top:5px;background:var(--text);color:var(--page);clip-path:polygon(50% 0,94% 23%,85% 100%,15% 100%,6% 23%);font-family:Yu Mincho,SimSun,serif;font-size:24px;font-weight:700}.brand>span:last-child{font-size:19px;font-weight:800;letter-spacing:2px}.brand small{display:block;margin-top:2px;font-size:10px;letter-spacing:4px;font-weight:500;color:var(--muted)}.main-nav{display:flex;align-self:stretch;gap:32px;margin-left:auto}.nav-item{position:relative;display:inline-flex;align-items:center;gap:7px;padding:0 2px;border:0;background:none;color:var(--muted);font-size:13px;font-weight:600;white-space:nowrap}.nav-item:hover,.nav-item.active{color:var(--text)}.nav-item.active:after{content:"";position:absolute;height:3px;background:var(--accent);bottom:-1px;left:0;right:0}.lang-switch{display:inline-flex;align-items:center;gap:7px}.lang-switch select{width:auto;min-height:40px;padding:7px 20px 7px 2px;border:none;background:transparent;font-size:12px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:1px solid transparent;background:transparent;flex-shrink:0}.icon-button:hover{background:var(--surface-soft);border-color:var(--line)}.theme-switch{border-left:1px solid var(--line);border-radius:0}.page-content{margin:18px auto 0;padding-bottom:20px;outline:none;width:100%;flex:1}.app-footer{display:flex;justify-content:center;padding:16px 0 max(18px,env(safe-area-inset-bottom));border-top:1px solid var(--line);color:var(--muted);font-size:11px;line-height:1.7;letter-spacing:.04em}.app-footer a{color:inherit;text-decoration:underline;text-underline-offset:3px}.app-footer a:hover{color:var(--text)}.page-play .play-area{max-width:520px;margin:auto}.room-shortcut{letter-spacing:2px;font-variant-numeric:tabular-nums;border-bottom:1px solid var(--line);padding:5px}.room-shortcut:hover{color:var(--accent)}.play-area{min-width:0;outline:none}.play-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:28px;font-size:12px;color:var(--muted)}.play-heading>span:first-child{display:flex;align-items:center;gap:7px}.play-heading>span:first-child:before{content:"";width:5px;height:5px;background:var(--accent);border-radius:50%}.board-dimensions{font-variant-numeric:tabular-nums;letter-spacing:1.5px}.status-banner{padding:9px 0 11px;border-bottom:1px solid var(--line);margin-bottom:10px;font-size:13px}.turn-line{display:flex;align-items:center;gap:9px}.turn-line strong{font-weight:700}.move-count{margin-left:auto;color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}.check-badge{background:var(--accent-soft);color:var(--accent);padding:3px 6px;font-size:11px;font-weight:700}.game-over{color:var(--accent);line-height:1.65;margin-top:10px}.board-column{display:flex;flex-direction:column;align-items:center;gap:9px;max-width:480px;margin-inline:auto}.hand-panel{display:flex;align-items:center;gap:10px;min-height:42px;width:100%;padding:5px 10px;background:var(--surface-soft);border-left:2px solid transparent}.hand-panel.current-turn{border-left-color:var(--accent)}.hand-title{display:flex;align-items:center;gap:10px;flex-shrink:0}.player-name{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;white-space:nowrap}.player-name small{font-size:9px;font-weight:500;color:var(--accent)}.player-stone{display:inline-block;width:11px;height:11px;border-radius:50%;flex-shrink:0}.player-stone.sente{background:#282825;border:1px solid #6d6c61}.player-stone.gote{background:#faf9f6;border:1px solid #a8a699}.hand-label{font-size:10px;color:var(--muted)}.hand-items{display:flex;gap:5px;align-items:center;flex-wrap:wrap;min-width:0}.hand-empty{font-size:11px;color:var(--muted)}.hand-item{padding:3px 5px;min-height:38px;min-width:38px;display:inline-flex;align-items:center;justify-content:center;gap:3px;border:1px solid var(--line);background:var(--surface)}.hand-item:hover:not(:disabled),.hand-item.selected{background:var(--accent-soft);border-color:var(--accent)}.hand-item .count{font-size:11px;font-variant-numeric:tabular-nums}.mini-piece{display:grid;place-items:center;clip-path:polygon(50% 0,96% 23%,87% 100%,13% 100%,4% 23%);width:23px;height:28px;padding-top:3px;font-family:Yu Mincho,SimSun,serif;font-size:17px;font-weight:700}.mini-piece-black{background:#262625;color:#faf9f6}.mini-piece-white{background:#faf9f6;color:#242422}.hand-item:has(.mini-piece-white){background:#cccac1}.hand-item.selected:has(.mini-piece-white){background:var(--accent-soft)}.board-wrap{display:flex;justify-content:center;width:100%;min-width:0;--accent: var(--play-accent)}.board-wrap>svg{display:block;width:auto;height:clamp(340px,calc(100svh - 278px),620px);max-width:100%;background:var(--board-bg);box-shadow:0 3px #79776a44,0 12px 24px var(--shadow);border:1px solid #9491854d}.variant-standard .board-wrap>svg{max-height:480px}.cell-rect{cursor:pointer}.cell-rect[aria-disabled=true]{cursor:default}.cell-rect:hover:not([aria-disabled=true]){fill:#fff9e426}.cell-rect:focus-visible{outline:none;stroke:var(--accent);stroke-width:3px;stroke-dasharray:5 3}.piece-layer>g{transition:transform .22s ease;pointer-events:none}.piece-glyph polygon{transition:transform .18s ease;filter:drop-shadow(0 2px 0 #20201855) drop-shadow(0 3px 1.5px #26251c24)}.piece-glyph text{font-family:Yu Mincho,Hiragino Mincho ProN,Songti SC,SimSun,serif}.board-hint{display:flex;align-items:center;justify-content:center;gap:7px;min-height:37px;padding:12px 2px 0;color:var(--muted);font-size:11px;line-height:1.6;text-align:center}.hint-marker{width:4px;height:4px;background:var(--accent);flex-shrink:0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:34px;margin-bottom:18px;padding-bottom:13px;border-bottom:1px solid var(--line)}.section-heading h2{font-size:14px;font-weight:700;display:flex;align-items:center;gap:9px}.section-heading>span{font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}.controls-col{display:flex;flex-direction:column;gap:12px;max-width:480px;margin:12px auto 0}.variant-row{display:flex;flex-direction:column;gap:8px}.variant-row label,.lobby-label{font-size:12px;color:var(--muted)}.rotation-control{padding:12px 14px;background:var(--surface);border:1px solid var(--line)}.rotation-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.rotation-heading h3{font-size:12px;font-weight:650}.rotation-heading .icon-button{width:28px;height:28px}.rotation-control .rotate-row{margin-top:6px}.rotate-row{display:flex;gap:8px}.rotate-btn{flex:1;min-width:0;min-height:45px;display:flex;justify-content:center;align-items:center;gap:8px;padding:7px;border:1px solid var(--line);background:var(--surface);font-size:12px;font-weight:600}.rotate-btn:hover:not(:disabled){color:var(--accent);border-color:var(--accent);background:var(--accent-soft)}.ready .rotate-btn{border-color:var(--accent);color:var(--accent)}.hint,.dfp-hint{color:var(--muted);font-size:11px;line-height:1.6}.rotation-control .hint{margin-top:9px;min-height:16px}.controls{display:flex;gap:8px}.controls>button{flex:1;padding-inline:8px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:43px;padding:10px 15px;border:1px solid transparent;font-size:12px;font-weight:600;white-space:nowrap;text-align:center;line-height:1.4}.button.primary{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}.button.primary:hover:not(:disabled){background:var(--accent);color:var(--on-accent);border-color:var(--accent)}.button.secondary{background:transparent;border-color:var(--line)}.button.secondary:hover:not(:disabled){background:var(--surface-soft);border-color:var(--muted)}.button.danger{color:var(--accent);background:var(--accent-soft);border-color:var(--accent-soft)}.button.danger:hover:not(:disabled){border-color:var(--accent)}.text-button{padding:8px 0;display:inline-flex;align-items:center;gap:10px;border:0;background:none;color:var(--muted);font-size:11px}.text-button:hover{color:var(--accent)}.drop-facing-panel{padding:12px;background:var(--surface-soft);border:1px solid transparent}.drop-facing-panel.awaiting,.drop-facing-panel.active{border-color:var(--accent);background:var(--accent-soft)}.dfp-title{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;font-weight:600;min-height:19px}.dfp-title .icon-button{width:26px;height:26px;margin-top:-4px}.dfp-piece{font-size:11px;margin-top:5px;color:var(--accent)}.facing-buttons{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:9px 0}.facing-buttons button{display:grid;place-items:center;min-height:36px;padding:0;border:1px solid var(--line);background:var(--surface);color:var(--text);font-size:22px}.facing-buttons button.active{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}.facing-buttons button:hover:not(:disabled){border-color:var(--accent)}.lobby-panel{min-width:0}.lobby-content{display:flex;flex-direction:column;gap:16px}.lobby-intro{font-size:11px;color:var(--muted);line-height:1.7}.lobby-section{display:flex;flex-direction:column;gap:8px}.create-room{width:100%;justify-content:space-between;margin-top:2px}.join-form{border-top:1px solid var(--line);padding-top:16px}.lobby-row{display:flex;gap:8px}.lobby-row input{flex:1;text-transform:uppercase;letter-spacing:2px;font-variant-numeric:tabular-nums}.lobby-row input::placeholder{letter-spacing:1px}.lobby-hint{font-size:11px;color:var(--muted);line-height:1.65}.lobby-hint.warn{color:var(--accent)}.game-notice{display:flex;align-items:center;gap:12px;max-width:640px;margin:0 auto 12px;background:var(--accent-soft);color:var(--accent);padding:8px 12px;font-size:12px;line-height:1.6}.game-notice .icon-button{margin-left:auto;width:30px;height:36px}.room-code-block{padding:15px;background:var(--surface-soft)}.room-code-row{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:5px 0}.room-code{font-size:30px;letter-spacing:6px;font-weight:750;font-variant-numeric:tabular-nums;-webkit-user-select:all;user-select:all}.lobby-info{display:flex;flex-direction:column;gap:12px;margin:0;font-size:11px}.lobby-info>div{display:flex;justify-content:space-between;gap:8px}.lobby-info dt{color:var(--muted);flex-shrink:0}.lobby-info dd{margin:0;text-align:right}.conn-dot{display:inline-flex;align-items:center;gap:5px}.conn-dot:before{content:"";width:5px;height:5px;background:var(--text);border-radius:50%}.conn-dot.offline{color:var(--accent)}.conn-dot.offline:before{background:var(--accent)}.lobby-actions{display:flex;gap:8px;flex-wrap:wrap}.lobby-actions .button{flex:1}.connecting-state p{margin-top:12px;font-size:12px;color:var(--muted)}.connection-track{height:3px;background:var(--surface-soft);overflow:hidden}.connection-track:after{content:"";display:block;width:40%;height:100%;background:var(--accent);animation:connect 1.5s ease-in-out infinite alternate}@keyframes connect{to{transform:translate(150%)}}.setup-page{max-width:820px;margin:30px auto 0}.page-heading h1{font-size:clamp(27px,3vw,36px);letter-spacing:-1px;font-weight:750}.page-heading p{color:var(--muted);font-size:13px;line-height:1.85;max-width:60ch;margin-top:12px}.setup-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:60px;margin-top:35px}.setup-local{display:flex;flex-direction:column;gap:35px}.setup-section>.button,.setup-section>.hint{margin-top:16px}.preferences-row{display:flex;align-items:center;justify-content:space-between;gap:15px}.preferences-row .lang-switch select{max-width:240px}.modal{padding:0;margin:auto;border:1px solid var(--line);border-radius:6px;max-width:calc(100% - 32px);max-height:calc(100dvh - 32px);color:var(--text);background:var(--surface);box-shadow:0 24px 100px #18181040}.modal::backdrop{background:#1719137a;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.modal-surface{position:relative}.modal-close{position:absolute;right:14px;top:14px}.confirm-modal{width:420px}.confirm-modal .modal-surface{padding:36px 28px 28px}.confirm-modal h2{padding-right:20px;font-size:23px;line-height:1.5}.confirm-modal p{margin-top:16px;font-size:13px;color:var(--muted);line-height:1.8}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:28px}.welcome-modal{width:740px}.welcome-modal .modal-surface{display:grid;grid-template-columns:.9fr 1fr}.welcome-art{position:relative;min-height:450px;overflow:hidden}.welcome-art img{width:100%;height:100%;object-fit:cover}.welcome-art>span{position:absolute;bottom:24px;left:24px;font-size:35px;letter-spacing:-1px;color:#f8f7f2;font-weight:800;padding:3px 12px;background:#252523}.welcome-copy{padding:52px 35px 32px;display:flex;flex-direction:column}.welcome-label{color:var(--accent);font-size:12px;margin-bottom:21px}.welcome-copy h2{font-size:35px;font-weight:750;line-height:1.4;letter-spacing:-1.5px;white-space:pre-line}.welcome-copy p{font-size:13px;line-height:1.9;color:var(--muted);margin:20px 0 27px}.welcome-copy .button{margin-bottom:9px;justify-content:space-between}.welcome-copy .button.secondary{justify-content:center}.welcome-copy small{font-size:10px;line-height:1.7;color:var(--muted);margin-top:13px}.tutorial-page{max-width:920px;margin:28px auto 0;display:flex;flex-direction:column;height:min(790px,calc(100dvh - 132px));min-height:400px}.tutorial-header{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:0 0 22px;border-bottom:1px solid var(--rule);flex-shrink:0}.tutorial-header h1{font-size:27px;letter-spacing:-.6px}.tutorial-header p{color:var(--muted);font-size:12px;margin-top:6px}.tutorial-layout{display:grid;grid-template-columns:206px minmax(0,1fr);flex:1;min-height:0}.lesson-menu{padding:24px 18px;border-right:1px solid var(--rule);overflow-y:auto}.lesson-menu>label{display:block;font-size:11px;color:var(--muted);margin-bottom:8px}.lesson-menu>select{font-size:11px;padding-left:8px}.lesson-links{display:flex;flex-direction:column;gap:7px;margin-top:24px}.lesson-links button{display:flex;align-items:center;text-align:left;gap:10px;background:none;border:1px solid transparent;padding:12px 10px;min-height:45px;font-size:12px}.lesson-links button>span{font-size:10px;font-variant-numeric:tabular-nums;color:var(--muted)}.lesson-links button.active{background:var(--accent-soft);color:var(--accent);border-left-color:var(--accent)}.lesson-links button:hover{background:var(--surface-soft)}.lesson-content{padding:27px 32px 35px;overflow:auto;overscroll-behavior:contain}.lesson-number{font-size:10px;letter-spacing:1px;color:var(--accent);font-variant-numeric:tabular-nums}.lesson-content>h3{font-size:25px;line-height:1.5;margin:12px 0 16px;letter-spacing:-.8px;text-wrap:balance}.lesson-content p{color:var(--muted);font-size:12px;line-height:1.9}.lesson-photo{width:100%;height:140px;object-fit:cover;object-position:center 46%;margin:22px 0}.lesson-fact{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.lesson-content h4{font-size:13px;margin-bottom:8px}.lesson-callout{background:var(--surface-soft);padding:14px 16px;border-left:2px solid var(--accent);margin-top:20px}.tutorial-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:17px 26px;border-top:1px solid var(--rule);flex-shrink:0}.tutorial-footer>span{color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}.piece-picker{display:flex;gap:6px;flex-wrap:wrap;margin:20px 0}.piece-picker button{display:grid;place-items:center;width:42px;height:42px;background:var(--surface-soft);border:1px solid transparent;font-family:Yu Mincho,SimSun,serif;font-size:22px}.piece-picker button.selected{background:var(--primary);color:var(--on-primary)}.piece-picker button:hover{border-color:var(--accent)}.demo-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:22px;align-items:center}.demo-board{width:100%;--accent: var(--play-accent)}.demo-description h3{font-size:15px;margin-bottom:8px}.demo-description .demo-note{font-size:10px;margin-top:12px}.demo-facing{display:block;font-size:11px;margin:13px 0 10px;color:var(--accent)}.demo-description .rotate-btn{gap:5px;font-size:11px}.promotion-example{display:flex;justify-content:center;align-items:center;gap:36px;padding:32px 0}.promotion-example span{font-family:Yu Mincho,SimSun,serif;font-size:65px}.promotion-example span:last-child{color:var(--accent)}.drop-steps{list-style:none;padding:0;margin:25px 0 0}.drop-steps li{display:flex;gap:20px;padding:22px 0;border-top:1px solid var(--line)}.drop-steps li>span{color:var(--accent);font-size:12px;padding-top:1px}.promotion-modal{width:360px}.promotion-dialog{padding:32px;text-align:center}.promotion-dialog h2{font-size:22px;margin-bottom:25px}.promotion-dialog .choices{display:flex;justify-content:center;gap:15px}.promotion-dialog .button{min-width:100px}.gate-screen{min-height:100dvh;padding:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted)}.gate-text{font-size:13px}.gate-404-code{font-size:96px;letter-spacing:-6px}.gate-404-text{font-size:16px}@media (max-width: 767px){.app{padding:0 16px}.app-header{min-height:58px;gap:18px}.brand{gap:8px}.brand-mark{width:27px;height:33px;font-size:20px}.brand>span:last-child{font-size:14px;letter-spacing:1px}.brand small{font-size:8px;letter-spacing:2px}.main-nav{gap:17px;margin-left:auto}.nav-item{font-size:12px}.nav-item svg{display:none}.page-content{margin-top:8px}.play-area{width:100%}.play-heading{min-height:22px;font-size:10px}.status-banner{padding:7px 0 9px;margin-bottom:8px;font-size:12px}.move-count{font-size:10px}.board-column{gap:7px}.hand-panel{min-height:36px;padding:4px 8px;gap:10px}.hand-title{gap:8px}.hand-label{display:none}.player-name{font-size:11px}.hand-empty{font-size:10px}.hand-items{flex-wrap:nowrap;overflow-x:auto;padding:2px}.hand-item{min-width:42px;min-height:42px;flex-shrink:0}.board-wrap>svg{height:clamp(300px,calc(100svh - 260px),540px);max-width:100%}.page-play:has(.rotation-control) .board-wrap>svg{height:clamp(280px,calc(100svh - 380px),480px)}.page-play:has(.drop-facing-panel) .board-wrap>svg{height:clamp(280px,calc(100svh - 430px),440px)}.variant-standard .board-wrap>svg{width:100%;height:auto}.board-hint{padding-top:8px;min-height:28px;font-size:10px}.controls-col{margin-top:10px}.controls .button{font-size:11px;min-height:44px;gap:4px;padding-inline:6px}.controls .button svg{width:14px}.rotation-control{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2.2fr);gap:4px 10px;padding:10px}.rotation-heading h3{font-size:10px}.rotation-heading .icon-button{width:22px;height:26px}.rotation-control .rotate-row{grid-column:2;grid-row:1 / 3;margin:0;gap:5px}.rotation-control .rotate-btn{gap:4px;padding:4px;font-size:11px}.rotation-control .hint{font-size:10px;margin:0;min-height:0}.rotation-control.ready{border-color:var(--accent)}.drop-facing-panel:not(.idle){padding:10px 12px;position:relative}.drop-facing-panel:not(.idle) .facing-buttons button{min-height:44px}.drop-facing-panel:not(.idle) .dfp-piece{position:absolute;top:11px;right:56px}.setup-page{margin-top:24px}.setup-layout{grid-template-columns:1fr;gap:32px;margin-top:28px}.setup-local{gap:28px}.lobby-content{gap:15px}.lobby-content>.lobby-section{max-width:none}.lobby-hint,.lobby-intro{font-size:11px}.lobby-label,.variant-row label{font-size:10px}.modal{max-width:calc(100% - 24px);max-height:calc(100dvh - 24px)}.welcome-modal{width:460px}.welcome-modal .modal-surface{grid-template-columns:1fr}.welcome-art{min-height:0;height:175px}.welcome-art img{object-position:center 38%}.welcome-art>span{left:20px;bottom:15px;font-size:26px}.welcome-copy{padding:27px 25px 24px}.welcome-label{margin-bottom:12px}.welcome-copy h2{font-size:29px;line-height:1.35}.welcome-copy p{margin:14px 0 20px;font-size:12px}.welcome-copy .modal-close{background:var(--surface);border:1px solid var(--line)}.welcome-copy small{margin-top:7px}.tutorial-page{height:calc(100dvh - 104px);min-height:0;margin-top:20px}.tutorial-header{padding:0 0 16px;gap:12px;flex-direction:column;align-items:flex-start}.tutorial-header h1{font-size:23px}.tutorial-header p{font-size:11px}.tutorial-layout{display:flex;flex-direction:column}.lesson-menu{padding:12px 0 0;border-right:0;border-bottom:1px solid var(--rule);overflow:visible;flex-shrink:0;min-width:0}.lesson-menu>label{display:none}.lesson-menu>select{width:auto;min-height:40px;padding-block:6px}.lesson-links{flex-direction:row;overflow:auto;gap:6px;margin-top:10px;padding-bottom:10px}.lesson-links button{flex-shrink:0;padding:8px 10px;gap:5px;min-height:44px;font-size:11px}.lesson-links button.active{border-left-color:transparent;border-bottom-color:var(--accent)}.lesson-content{padding:20px 2px 28px;min-height:0}.lesson-content>h3{font-size:22px}.lesson-content p{font-size:13px}.lesson-photo{height:130px}.tutorial-footer{padding:12px 0;gap:10px}.tutorial-footer .button{padding:10px 12px;font-size:11px;gap:6px}.demo-layout{grid-template-columns:1fr;gap:15px}.demo-board{max-width:260px;margin:auto}.demo-description .demo-note{font-size:10px}.demo-description .rotate-row{gap:5px}.demo-description .rotate-btn{min-height:42px;font-size:11px}.demo-description .rotate-btn svg{width:24px}.piece-picker{gap:5px}.piece-picker button{width:39px;height:42px}}@media (max-width: 380px){.app{padding-inline:12px}.app-header{gap:11px}.main-nav{gap:15px}.brand>span:last-child{display:none}.theme-switch{width:28px}.controls{gap:5px}.controls .button svg{display:none}.demo-layout{grid-template-columns:1fr}.demo-board{width:180px;margin:auto}.welcome-art{height:130px}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
