:root{color:#20242a;--game-board-max-inline-size:38rem;--game-board-inline-size:var(--game-board-max-inline-size);--game-hand-row-min-size:4.5rem;background:#f7f5f0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans JP,sans-serif}*{box-sizing:border-box}body{margin:0}header,footer{color:#fff;background:#243447;padding:1rem max(1rem,50% - 35rem)}header a{color:#fff;font-weight:700;text-decoration:none}footer{margin-top:3rem;font-size:.85rem}main{max-width:70rem;margin:auto;padding:1.5rem 1rem}a{color:#075da8}.cards{grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:1rem;display:grid}.card{background:#fff;border:1px solid #ddd;border-radius:.4rem;padding:1rem}.table-wrap{overflow-x:auto}table{border-collapse:collapse;background:#fff;width:100%}th,td{text-align:left;white-space:nowrap;border-bottom:1px solid #ddd;padding:.55rem}code,.long{overflow-wrap:anywhere;word-break:break-all}.muted{color:#687078}.round{margin-top:2rem}dl{grid-template-columns:max-content 1fr;gap:.4rem 1rem;display:grid}dt{font-weight:700}h1{line-height:1.35}@media (max-width:600px){dl{grid-template-columns:1fr}dd{margin:0 0 .5rem}}.viewerMain{grid-template-columns:minmax(18rem,2fr) minmax(16rem,1fr);align-items:start;gap:1.25rem;display:grid}.boardPanel,.movePanel{background:#fff;border:1px solid #d7d2c8;border-radius:.5rem;min-width:0;padding:1rem}.viewerHeading{justify-content:space-between;align-items:center;gap:1rem;display:flex}.viewerHeading h2,.movePanel h2{margin-top:0}.viewerHeading button,.viewerControls button,.moveList button{color:#20242a;cursor:pointer;background:#fff;border:1px solid #8a8175;border-radius:.35rem;min-height:2.75rem}.currentMove{flex-wrap:wrap;justify-content:space-between;gap:.75rem;display:flex}.currentMove span{color:#687078}.boardAndHands{grid-template-rows:minmax(var(--game-hand-row-min-size),auto) auto minmax(var(--game-hand-row-min-size),auto);width:min(100%,var(--game-board-inline-size));margin:auto;display:grid}.viewerHand{min-height:var(--game-hand-row-min-size);padding:.45rem .2rem}.viewerHand>div{flex-wrap:wrap;gap:.4rem;margin-top:.3rem;display:flex}.handItem{color:#21170b;background:#f4dfad;border:1px solid #806534;align-items:baseline;min-width:2rem;padding:.25rem;font-weight:700;display:inline-flex}.handItem small{margin-left:.15rem}.boardGrid{aspect-ratio:10/9;grid-template-columns:1.7rem repeat(9,minmax(0,1fr));width:100%;display:grid}.boardRow{display:contents}.boardCorner,.boardCoord{color:#514536;justify-content:center;align-items:center;font-size:.8rem;font-weight:600;display:flex}.boardSquare{aspect-ratio:1;background:#e5bc69;border-bottom:1px solid #735b34;border-right:1px solid #735b34;justify-content:center;align-items:center;min-width:0;display:flex}.boardSquare:nth-child(2){border-left:1px solid #735b34}.boardRow:nth-of-type(2) .boardSquare{border-top:1px solid #735b34}.boardSquare.lastTo{background:#f7d77c;box-shadow:inset 0 0 0 3px #176a73,inset 0 0 0 5px #f9edc9}.boardPiece{clip-path:polygon(50% 0,78% 10%,94% 100%,6% 100%,22% 10%);color:#171008;text-shadow:-1px -1px #fff8df,1px -1px #fff8df,-1px 1px #fff8df,1px 1px #fff8df;filter:drop-shadow(0 1px 1px #6a4d22)drop-shadow(0 0 1px #785a29);writing-mode:horizontal-tb;background:linear-gradient(160deg,#fff5cf,#e9c678);justify-content:center;align-items:center;width:78%;height:88%;font-size:clamp(.78rem,2.2vw,1.2rem);font-weight:900;line-height:1;display:inline-flex}.boardPiece.opponent{transform:rotate(180deg)}.boardPiece.promoted{color:#7b1f13;text-shadow:-1px -1px #fff2cf,1px -1px #fff2cf,-1px 1px #fff2cf,1px 1px #fff2cf}.viewerControls{grid-template-columns:repeat(4,1fr);gap:.5rem;margin-top:.75rem;display:grid}.viewerControls button:disabled{cursor:not-allowed;color:#888;background:#eee}.moveList{max-height:min(70vh,var(--game-board-max-inline-size));overscroll-behavior:contain;border:1px solid #ddd;flex-direction:column;display:flex;overflow-y:auto}.moveList button{text-align:left;border:0;border-bottom:1px solid #ddd;border-radius:0;grid-template-columns:2.5rem 1fr auto;align-items:center;gap:.5rem;padding:.4rem .65rem;display:grid}.moveList button.selectedMove{background:#e1f0f1;font-weight:700;box-shadow:inset .3rem 0 #176a73}.viewerError{background:#fff4ef;border:2px solid #a6472d;padding:1rem;font-weight:700}@media (min-width:761px){:root{--game-board-inline-size:clamp(18rem,calc(111.111dvh - 30rem),var(--game-board-max-inline-size))}.viewerMain{grid-template-columns:minmax(18rem,calc(var(--game-board-inline-size) + 2.125rem)) minmax(16rem,1fr)}.moveList{max-height:min(70dvh,var(--game-board-inline-size))}}@media (max-width:760px){.viewerMain{grid-template-columns:1fr}.boardPanel,.movePanel{padding:.7rem}.moveList{max-height:20rem}.viewerControls button{min-height:3rem}.boardPiece{font-size:clamp(.72rem,4.2vw,1.05rem)}}.gameBack{margin-top:0}.gameHeader{margin:.75rem 0 1rem}.gameContext{color:#5d6670;margin:0 0 .5rem}.gamePlayers{width:min(100%,var(--game-board-inline-size));grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:.75rem;margin:.25rem auto .75rem;display:grid}.gamePlayer{flex-direction:column;gap:.15rem;min-width:0;display:flex}.gameSide{color:#5d6670;font-size:.8rem}.gamePlayerName{overflow-wrap:anywhere;word-break:normal;font-size:clamp(1.25rem,3.5vw,1.85rem);line-height:1.25}.gamePlayer small{color:#687078;overflow-wrap:anywhere;font-size:.75rem;font-weight:400}.gameVersus{color:#687078;font-size:1rem;font-weight:400}.gameOutcome{flex-wrap:wrap;justify-content:center;align-items:center;gap:.45rem .8rem;margin:0;display:flex}.gameOutcomeResult,.gameTermination{white-space:nowrap}.gameRole{background:#fff;border:1px solid #8a8175;border-radius:999px;padding:.15rem .55rem;font-weight:700;display:inline-block}.technicalInfo{margin-bottom:1rem}.technicalInfo summary,main>details>summary{cursor:pointer;font-weight:700}.technicalInfo dl{margin-bottom:0}@media (max-width:600px){main{padding-top:1rem}.gameBack{margin-bottom:.65rem}.gameHeader{margin-top:.5rem}.gamePlayers{gap:.45rem}.gamePlayerName{font-size:1.2rem}.gameOutcome{font-size:.9rem}}.moveList{display:block}.moveListHeader{color:#5d6670;background:#f2f0eb;border-bottom:1px solid #cfc9bf;justify-content:space-between;gap:.75rem;padding:.35rem .65rem;font-size:.75rem;font-weight:700;display:flex}.moveRows{margin:0;padding:0;list-style:none}.moveRows>li{min-width:0}.moveList .moveRow{flex-direction:column;align-items:stretch;gap:.25rem;width:100%;min-width:0;padding:.5rem .65rem;display:flex}.movePrimary{grid-template-columns:2.5rem minmax(0,1fr);align-items:baseline;gap:.5rem;min-width:0;display:grid}.movePly{font-variant-numeric:tabular-nums;color:#5d6670}.moveNotation{overflow-wrap:anywhere;word-break:normal;min-width:0}.moveTimes{color:#5d6670;flex-wrap:wrap;gap:.35rem 1rem;font-size:.78rem;font-weight:400;display:flex}.moveTimes time{font-variant-numeric:tabular-nums;color:#303840}.moveList button.selectedMove{background:#e1f0f1;box-shadow:inset .3rem 0 #176a73,inset 0 0 0 1px #75aeb3}.terminalRow{color:#30271e;background:#f5eee4;border-top:2px solid #8a6842;flex-direction:column;gap:.3rem;min-width:0;padding:.6rem .65rem;display:flex}.terminalLabel{color:#7a2d20;border:1px solid #9a4a35;border-radius:999px;align-self:flex-start;padding:.05rem .45rem;font-size:.78rem}.currentMove{align-items:baseline;margin:1rem 0}.currentMove>strong{font-size:1.08rem}.currentMove>.moveTimes{flex-basis:auto}.currentMove>span:last-child{margin-left:auto}@media (max-width:760px){.moveListHeader{display:none}.moveList .moveRow,.terminalRow{padding:.55rem .6rem}.currentMove>.moveTimes{flex-basis:100%}.currentMove>span:last-child{margin-left:0}.moveTimes{gap:.3rem .8rem}}.sourceKif{margin-top:1.5rem}.sourceKif h2{margin-bottom:.65rem}.sourceKifActions{margin-bottom:.75rem}.sourceKifButtons{flex-wrap:wrap;gap:.6rem;display:flex}.sourceKifButtons button{color:#20242a;min-height:2.75rem;font:inherit;cursor:pointer;background:#fff;border:1px solid #796f63;border-radius:.35rem;padding:.55rem .85rem;font-weight:700}.sourceKifButtons button:disabled{cursor:not-allowed;color:#777;background:#eceae6}.sourceKifStatus{color:#4c5661;min-height:1.5em;margin:.45rem 0 0}.sourceKif details summary{cursor:pointer;font-weight:700}.sourceKif pre{max-width:100%;overflow:auto}@media (max-width:420px){.sourceKifButtons{flex-direction:column}.sourceKifButtons button{width:100%}}.boardAndHands{grid-template-columns:minmax(0,1fr)}@media (min-width:761px){:root{--game-board-inline-size:clamp(18rem,calc(111.111dvh - 39rem),var(--game-board-max-inline-size))}.viewerMain{grid-template-columns:minmax(18rem,calc(var(--game-board-inline-size) + 2.125rem)) minmax(16rem,var(--game-board-max-inline-size));grid-template-columns:minmax(18rem,calc(var(--game-board-inline-size) + 2.125rem)) minmax(16rem,1fr);max-width:calc(var(--game-board-inline-size) + 2.125rem + 1.25rem + var(--game-board-max-inline-size));justify-content:center;margin-inline:auto}}.gameOutcomeResult,.gameTermination{align-items:baseline;gap:.35rem;display:inline-flex}.moveList .terminalRow{text-align:left;border:0;border-top:2px solid #8a6842;border-radius:0;width:100%}.terminalRow.selectedTerminal{background:#f7ded6;box-shadow:inset .3rem 0 #9a4a35}.boardSquare{position:relative}.boardSquare.illegalAttemptFrom{outline-offset:-4px;outline:3px dashed #9a4a35}.boardSquare.illegalAttemptTo{box-shadow:inset 0 0 0 4px #9a4a35,inset 0 0 0 7px #f9edc9}.illegalAttemptMarker{z-index:2;color:#fff;white-space:nowrap;background:#7a2d20;border-radius:.2rem;max-width:calc(100% - .2rem);padding:.05rem .2rem;font-size:clamp(.5rem,1.1vw,.7rem);font-weight:800;line-height:1.15;position:absolute;bottom:.1rem;right:.1rem}.illegalAttemptNotice{width:min(100%,var(--game-board-inline-size));color:#6f291f;background:#fff4ef;border-left:.3rem solid #9a4a35;margin:.25rem auto;padding:.4rem .55rem;font-weight:700}.viewerHeading{justify-content:flex-end;gap:0}.currentMove{flex-wrap:nowrap;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:.35rem 1rem;min-height:2rem;margin:.45rem 0;display:grid}.currentMove>.moveTimes{flex-basis:auto;justify-content:flex-end}.gamePlayers,.gamePlayer,.gameOutcome{text-align:left}.gamePlayer{align-items:flex-start}.gameOutcome{width:min(100%,var(--game-board-inline-size));justify-content:flex-start;margin-inline:auto}.illegalAttemptSlot{height:2.35rem;width:min(100%,var(--game-board-inline-size));margin-inline:auto}.illegalAttemptNotice{width:100%;margin:0}@media (min-width:761px){.boardPanel{position:relative}.viewerHeading{z-index:2;position:absolute;top:1rem;right:1rem}.currentMove{min-height:2.75rem;margin:0 0 .45rem;padding-right:8rem}}@media (max-width:760px){.currentMove{grid-template-columns:1fr;gap:.2rem}.currentMove>.moveTimes{justify-content:flex-start}.gameOutcome{font-size:.9rem}}.gameViewer{margin:.5rem 0}.gamePlayers{justify-self:start}@media (max-width:760px){.gameHeader{padding-inline:.8125rem}}.currentMove{grid-template-rows:1.35rem 1.2rem;grid-template-columns:minmax(0,1fr);gap:.1rem;height:2.75rem;min-height:2.75rem;margin:0 0 .35rem;overflow:visible;padding-right:0!important}.currentMove>strong{text-overflow:clip;white-space:nowrap;line-height:1.35;overflow:visible}.currentMove>.moveTimes{justify-content:flex-start;line-height:1.2}.illegalAttemptMarker,.illegalAttemptSlot,.illegalAttemptNotice{display:none}.moveList .terminalRow{background:#f5eee4;flex-direction:column;align-items:stretch;gap:.25rem;width:100%;min-width:0;padding:.5rem .65rem;display:flex}.terminalRow .moveNotation{text-overflow:clip;white-space:nowrap;word-break:keep-all;overflow:visible}.terminalLabel{display:none}@media (max-width:760px){.gamePlayer{max-width:none}.currentMove{height:2.75rem}.currentMove>strong{font-size:1rem}}@media (min-width:761px){.currentMove{height:2.75rem;overflow:hidden}.currentMove>strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}}.gameHeader{max-width:calc(var(--game-board-inline-size) + 2.125rem + 1.25rem + var(--game-board-max-inline-size));grid-template-columns:minmax(0,max-content) minmax(0,1fr);align-items:center;gap:.35rem 1.5rem;margin:.5rem auto;padding-inline-start:1.0625rem;display:grid}.gameContext{grid-column:1/-1;margin-bottom:0}.gamePlayers{align-items:baseline;gap:.5rem;width:auto;max-width:100%;margin:0;display:flex}.gamePlayer{flex:0 auto;max-width:min(14rem,30vw)}.gamePlayerName,.gamePlayer small{text-overflow:ellipsis;white-space:nowrap;max-width:100%;display:block;overflow:hidden}.gameVersus{flex:none}.gameOutcome{justify-content:flex-start;width:auto;min-width:0;margin:0}.currentMove{height:2.75rem;overflow:visible}.currentMove>strong{text-overflow:clip;white-space:nowrap;min-width:0;overflow:visible}.viewerControls{align-items:stretch;gap:.5rem;margin-top:.5rem;display:flex}.viewerNavigation{flex:1;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem;min-width:0;display:grid}.orientationButton{flex:none;padding-inline:.75rem}.illegalAttemptGhost{z-index:1;opacity:.68;filter:drop-shadow(0 0 2px #fff);justify-content:center;align-items:center;display:flex;position:absolute;inset:8%}.illegalAttemptGhost .boardPiece{outline-offset:1px;outline:2px dashed #7a2d20;width:82%;height:92%}.illegalAttemptMarker{z-index:3}.terminalRow .movePrimary{grid-template-columns:max-content minmax(0,1fr)}.terminalRow .moveNotation,.terminalLabel{text-overflow:ellipsis;white-space:nowrap;word-break:keep-all;max-width:100%;overflow:hidden}@media (max-width:760px){.gameHeader{grid-template-columns:1fr;gap:.35rem;padding-inline-start:.75rem}.gameContext{grid-column:1}.gamePlayers{gap:.4rem}.gamePlayer{max-width:calc(50% - 1rem)}.gameOutcome{font-size:.9rem}.orientationButton{padding-inline:.5rem}.currentMove{height:3.5rem}.currentMove>strong{font-size:1rem}}.viewerHand{grid-template-rows:1.2rem 2rem;height:3.45rem;min-height:3.45rem;padding:.15rem .2rem;display:grid}.viewerHand>div{white-space:nowrap;flex-wrap:nowrap;align-items:flex-start;gap:.25rem;min-width:0;height:2rem;min-height:2rem;margin-top:.1rem;padding-top:.25rem}.handItem{min-width:auto;padding:.18rem .25rem}.gameVersus{align-self:flex-start;margin-top:1.1rem}.currentMove{grid-template-rows:1.35rem 1.1rem;gap:.05rem;height:2.55rem;min-height:2.55rem;margin-bottom:.1rem}.currentMove>strong{line-height:1.3}.currentMove>.moveTimes{line-height:1.15}@media (max-width:760px){.gamePlayers{gap:.4rem;width:100%}.gamePlayer{flex:0 auto;min-width:0;max-width:none}.currentMove{height:2.55rem;min-height:2.55rem}}
