/* Scoped layout only; the five-sided pieces are rendered by shogi-ui.css/js. */
.anaguma-page .kplayer[data-study-ui="1"] {
 --study-cell:calc((min(100vw,430px) - 22px) / 9);
 --study-board-width:calc(min(100vw,430px) - 16px);
}
.anaguma-page .kz .kplayer[data-study-ui="1"] .kp-hand.study-hand.on {
 display:flex;align-items:center;gap:0;box-sizing:border-box;
 width:var(--study-board-width)!important;max-width:100%;
 height:calc(var(--study-cell) + 10px);min-height:calc(var(--study-cell) + 10px);max-height:calc(var(--study-cell) + 10px);
 padding:4px 3px;margin:3px auto;border:0;border-radius:0;background:#ffffff0b;
}
.anaguma-page .kplayer[data-study-ui="1"] .study-hand[hidden] {display:none!important}
.anaguma-page .kplayer[data-study-ui="1"] .study-hand-label {
 flex:0 0 calc(2 * var(--study-cell));max-width:calc(2 * var(--study-cell));
 font-size:11px;line-height:1.3;text-align:left;color:#bcd;white-space:normal;
}
.anaguma-page .kplayer[data-study-ui="1"] .study-hand-items {
 display:flex;align-items:center;flex-wrap:nowrap;gap:0;flex:0 0 calc(7 * var(--study-cell));height:var(--study-cell);min-width:0;
}
.anaguma-page .kplayer[data-study-ui="1"] .study-hand .hw {
 display:block;box-sizing:border-box;margin:0;padding:0;cursor:default;
}
.anaguma-page .kplayer[data-study-ui="1"] .study-hand .hw[hidden],
.anaguma-page .kplayer[data-study-ui="1"] .study-hand .cnt[hidden],
.anaguma-page .kplayer[data-study-ui="1"] .study-hand .none[hidden] {display:none}
.anaguma-page .kplayer[data-study-ui="1"] .study-hand .none {font-size:11px;color:#89a}
.anaguma-page .kz .kplayer[data-study-ui="1"] .kp-bar {
 width:var(--study-board-width);max-width:100%;height:2px;min-height:2px;margin:0 auto 3px;padding:0!important;
 border:0;border-radius:1px;background:#ffffff08;overflow:hidden;
}
.anaguma-page .kz .kplayer[data-study-ui="1"] .kp-bar i {background:#71839a44;border-radius:1px;transition:none}
.anaguma-page .kplayer[data-study-ui="1"],
.anaguma-page .kplayer[data-study-ui="1"] * {
 -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;
}
