:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--paper:#f4efe5;--panel:#fbf8f0;--ink:#302e28;--muted:#777161;--wood:#d5b47c;--wood-light:#e8d2a9;--line:#d4c9b6;--accent:#405c4e;--accent-light:#dde5dc;--red:#a13d32;--gold:#c69b3a;--blue:#cedde3;--serif:"Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;color:var(--ink);background:var(--paper);font-synthesis:none;font-family:system-ui,-apple-system,Hiragino Kaku Gothic ProN,sans-serif}*{box-sizing:border-box}body{background:repeating-linear-gradient(94deg,#0000 0 7px,#927b4f04 8px 9px);min-width:320px;margin:0}button,select{font:inherit;color:inherit}button,select,summary{-webkit-tap-highlight-color:transparent}button{border:1px solid var(--line);background:var(--panel);cursor:pointer;border-radius:3px;min-height:44px;padding:.65rem 1rem;transition:background .16s,border-color .16s}button:hover:not(:disabled){background:var(--accent-light);border-color:var(--accent)}button:disabled{opacity:.45;cursor:default}button[aria-pressed=true]{background:var(--accent-light);border-color:var(--accent);box-shadow:inset 0 -2px var(--accent)}button.primary{background:var(--accent);color:var(--panel);border-color:var(--accent)}button.primary:hover:not(:disabled){background:#2d483b}button.danger{color:var(--red)}button.quiet{background:0 0;border-color:#0000;padding-inline:.5rem}:focus-visible{outline:3px solid var(--accent);outline-offset:3px}h1,h2,h3,p{margin:0}h1,h2,h3,.brand{font-family:var(--serif)}h1{letter-spacing:.1em;font-size:clamp(1.8rem,3vw,2.6rem);font-weight:600;line-height:1.6}h2{font-size:1.1rem;font-weight:600}p{white-space:pre-line;line-height:1.9}.site-header{border-bottom:1px solid var(--line);align-items:center;gap:1.2rem;min-height:88px;padding:1rem clamp(1rem,4vw,4rem);display:flex}.brand{letter-spacing:.18em;white-space:nowrap;font-size:1.5rem}.brand-sub{color:var(--muted);letter-spacing:.15em;font-size:.65rem}.site-header button{white-space:nowrap;margin-left:auto}.eyebrow{color:var(--accent);letter-spacing:.2em;margin-bottom:.6rem;font-size:.72rem;font-weight:600}.description{color:var(--muted);margin-top:.65rem;font-size:.9rem}.muted{color:var(--muted);font-size:.78rem}.notice{color:var(--red);font-size:.85rem}.notice:empty{display:none}.paper{background:var(--panel);border:1px solid var(--line);border-radius:4px}.button-row{flex-wrap:wrap;align-items:center;gap:.6rem;display:flex}.title-screen{grid-template-columns:1fr 1fr;align-items:center;max-width:1180px;min-height:520px;margin:auto;padding:clamp(3rem,7vw,7rem) 2.5rem 3rem;display:grid;overflow:hidden}.title-intro{z-index:1}.title-intro h1{letter-spacing:.16em;font-size:clamp(3.8rem,7vw,6.1rem)}.title-intro .description{font-family:var(--serif);font-size:clamp(1rem,1.7vw,1.2rem);line-height:2.2}.title-actions{gap:.8rem;margin:2rem 0 1rem;display:flex}.title-actions button{min-width:140px}.title-illustration{perspective:1000px;height:400px;position:relative}.title-slab{background:repeating-linear-gradient(0deg,#0000 0 31px,#846c4255 31px 32px),repeating-linear-gradient(90deg,#0000 0 31px,#846c4255 31px 32px),#d5b77f90;border:1px solid #897353;width:290px;height:290px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)rotateX(57deg)rotate(-32deg);box-shadow:12px 22px 25px #4c3a1a12,0 5px #9f815059}.slab-0{margin-top:100px}.slab-1{margin-top:0}.slab-2{margin-top:-100px}.title-piece{background:var(--wood-light);clip-path:polygon(50% 0,88% 20%,100% 100%,0 100%,12% 20%);width:49px;height:59px;font:bold 35px var(--serif);place-items:center;display:grid;position:absolute;top:55%;left:45%;box-shadow:2px 4px #77603c}.title-guide{border-top:1px solid var(--line);grid-template-columns:repeat(3,1fr);gap:3rem;max-width:1100px;margin:1rem auto 3rem;padding:2rem;display:grid}.title-guide article{grid-template-columns:auto 1fr;align-items:baseline;gap:.7rem 1rem;display:grid}.guide-number{font-family:var(--serif);color:var(--accent);font-size:1.4rem}.title-guide p{color:var(--muted);grid-column:2;font-size:.82rem}footer{border-top:1px solid var(--line);color:var(--muted);text-align:center;letter-spacing:.1em;padding:1.5rem;font-size:.7rem}.handoff{text-align:center;width:min(640px,100% - 2rem);margin:clamp(2rem,8vh,6rem) auto;padding:clamp(1.5rem,5vw,4rem)}.handoff .primary{width:100%;margin-top:1.5rem}.seal{width:90px;height:100px;font:2.8rem var(--serif);background:var(--wood-light);clip-path:polygon(50% 0,90% 20%,100% 100%,0 100%,10% 20%);place-items:center;margin:2rem auto;display:grid}.play-screen{max-width:1680px;margin:auto;padding:1.5rem clamp(.75rem,2vw,2.5rem) 2rem}.play-heading{margin-bottom:1rem}.play-heading h1{font-size:1.8rem}.status-banner{background:var(--accent-light);color:var(--accent);border-radius:3px;margin-bottom:1rem;padding:.8rem 1.1rem;font-size:.9rem;line-height:1.7}.status-banner.in-check{color:var(--red);background:#f0dfd5}.status-banner.ended{background:var(--ink);color:var(--panel);font-family:var(--serif);font-size:1.15rem}.board-layout{grid-template-columns:150px minmax(0,1fr) 210px;align-items:start;gap:1rem;display:grid}.side-panel{min-width:0;padding:1rem}.side-panel>p{color:var(--muted);margin-top:.8rem;font-size:.85rem}.board-center{min-width:0}.board-stage{border:1px solid var(--line);background:radial-gradient(at 50% 70%,#d9c8a847,#0000 70%);border-radius:4px;height:clamp(340px,42vw,590px);position:relative;overflow:hidden}.board-stage canvas{touch-action:none;display:block}.stage-caption{color:var(--muted);letter-spacing:.15em;pointer-events:none;font-size:.6rem;position:absolute;top:1rem;left:1rem}.board-stage.unavailable{height:auto;min-height:90px;color:var(--muted);padding:1.25rem;font-size:.9rem}.view-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;margin:.65rem 0 1rem;display:flex}.toolbar-group{align-items:center;gap:.4rem;font-size:.8rem;display:flex}.toolbar-group>span{color:var(--muted);margin-right:.25rem}.view-toolbar button{padding:.45rem .7rem;font-size:.78rem}.toolbar-group select{border:1px solid var(--line);background:var(--panel);border-radius:3px;min-height:44px;padding:.4rem}.minimap{margin-top:.75rem;padding:.7rem}.minimap summary{cursor:pointer;min-height:38px;color:var(--accent);padding:.25rem;font-size:.85rem}.mini-boards{grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;margin-top:.5rem;display:grid}.mini-layer{min-width:0;container-type:inline-size}.mini-layer h3{text-align:center;margin-bottom:.4rem;font-size:.85rem;font-weight:500}.mini-files{color:var(--muted);text-align:center;grid-template-columns:repeat(9,1fr);margin-bottom:.2rem;padding-right:1rem;font-size:.62rem;display:grid}.mini-board-wrap{grid-template-columns:minmax(0,1fr) 1rem;display:grid}.mini-ranks{text-align:right;color:var(--muted);font:.62rem var(--serif);grid-template-rows:repeat(9,1fr);align-items:center;display:grid}.mini-grid{background:repeating-linear-gradient(95deg, #ffffff05 0 5px, #77562608 6px 7px), var(--wood-light);border-top:1px solid #9b8056;border-left:1px solid #9b8056;grid-template-columns:repeat(9,minmax(0,1fr));display:grid}button.square{aspect-ratio:1;min-width:0;min-height:0;box-shadow:none;background:0 0;border:1px solid #9b805688;border-top:0;border-left:0;border-radius:0;place-items:center;padding:0;display:grid;position:relative}button.square:disabled{opacity:1}.square[data-piece]{touch-action:none}button.square:hover:not(:disabled){background:#fff7d2}.square.last-move{background:var(--blue)}.square.target{background:#a5c6a1}.square.target:after{content:"";background:var(--accent);opacity:.8;border-radius:50%;width:23%;height:23%;position:absolute}.square.target:has(.mini-piece):after{border:2px solid var(--accent);background:0 0;width:85%;height:85%}button.square.selected{box-shadow:inset 0 0 0 2px var(--gold);background:#ecc76e}.square.check{background:#dc9d89}.mini-piece{clip-path:polygon(50% 0,90% 19%,100% 100%,0 100%,10% 19%);width:85%;height:90%;font:600 clamp(9px, 7cqi, 23px)/1 var(--serif);color:#30281e;background:#e4c489;place-items:center;padding-top:10%;display:grid}.mini-piece.gote{transform:rotate(180deg)}.mini-piece.promoted{color:var(--red);font-size:clamp(8px,6cqi,21px)}.minimap.revealing .mini-piece{animation:.9s ease-out both reveal-piece}@keyframes reveal-piece{0%{opacity:0}to{opacity:1}}.hand-panel h2{margin-bottom:.8rem;font-size:1rem}.hand-list{flex-wrap:wrap;gap:.4rem;display:flex}.hand-list button{font-family:var(--serif);min-width:62px;padding:.5rem}.move-log{border-top:1px solid var(--line);margin-top:1.5rem;padding-top:1rem}.move-log .muted{margin:.5rem 0}.notation{font-variant-numeric:tabular-nums;max-height:390px;margin:.6rem 0 0;padding-left:1.8rem;font-size:.8rem;line-height:2.3;overflow-y:auto}.notation li{white-space:nowrap;padding-left:.1rem}.notation li:last-child{color:var(--accent);font-weight:600}.placement-controls{background:var(--panel);border:1px solid var(--line);border-radius:4px;margin-top:1rem;padding:1.25rem}.placement-controls h2{margin-bottom:.8rem}.placement-controls .muted{margin:.7rem 0}.placement-controls .primary{margin-left:auto}.game-controls{margin-top:1rem}.game-controls .muted{margin-left:auto}.play-screen>.notice{margin-top:1rem}.choice-dialog{background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:5px;width:min(480px,100% - 2rem);padding:2rem;box-shadow:0 20px 100px #1b211940}.choice-dialog::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#25281f90}.choice-dialog p{margin:1rem 0 1.5rem}@media (width>=768px) and (width<=1100px){.board-layout{grid-template-columns:115px minmax(0,1fr) 150px;gap:.6rem}.side-panel{padding:.7rem}.mini-boards{grid-template-columns:1fr;max-width:420px;margin-inline:auto}.board-stage{height:480px}.notation{font-size:.7rem}}@media (width<=767px){.site-header{gap:.6rem;min-height:70px;padding:.7rem 1rem}.brand{font-size:1.2rem}.brand-sub{display:none}.title-screen{flex-direction:column;align-items:stretch;min-height:0;padding:2.8rem 1.25rem 1rem;display:flex}.title-intro h1{font-size:4rem}.title-illustration{height:320px;margin-top:1rem}.title-slab{background-size:auto;width:240px;height:240px}.slab-0{margin-top:80px}.slab-2{margin-top:-80px}.title-actions button{flex:1;min-width:0}.title-guide{grid-template-columns:1fr;gap:1.5rem;margin:0 1.25rem 1.5rem;padding:1.5rem 0}.title-guide p{font-size:.85rem}.play-screen{padding-top:1rem}.play-heading h1{font-size:1.5rem}.play-heading .description{font-size:.8rem}.status-banner{padding:.7rem;font-size:.8rem}.board-layout{grid-template-columns:1fr 1fr;gap:.65rem;display:grid}.board-center{grid-area:1/1/auto/-1}.side-panel{padding:.8rem}.side-panel h2{font-size:.9rem}.side-panel p{font-size:.76rem}.board-stage{height:360px}.view-toolbar{justify-content:flex-start;gap:.5rem 1rem}.view-toolbar>button{margin-left:auto}.minimap{padding:.7rem}.mini-boards{grid-template-columns:1fr;gap:1.5rem}.mini-layer{width:100%;max-width:470px;margin-inline:auto}.mini-grid .square{min-height:30px}.mini-files,.mini-ranks{font-size:.75rem}.mini-piece{font-size:clamp(16px,7cqi,27px)}.mini-piece.promoted{font-size:clamp(13px,6cqi,23px)}.minimap summary{min-height:44px;padding-block:.6rem}.minimap.fallback summary{font-weight:600}.move-log{margin-top:1rem}.notation{max-height:180px;font-size:.7rem}.hand-list button{min-width:54px;padding-inline:.4rem}.placement-controls{padding:1rem}.placement-controls .primary{width:100%;margin-left:0}.placement-controls .muted{font-size:.75rem}.game-controls .muted{width:100%;margin:.5rem 0 0}.choice-dialog{padding:1.5rem}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}.title-actions{flex-wrap:wrap}@media (width<=767px){.title-actions button{flex-basis:42%}}
