/* ペグソリティア固有の見た目（共通は ../common/base.css） */
#board { user-select: none; -webkit-user-select: none; touch-action: manipulation; display: block; width: 100%; height: auto; }
.board-wrap { max-width: 560px; margin: 0 auto; position: relative; }
.stage { padding: 12px; }
@media (max-width: 560px) { .stage { margin-left: -8px; margin-right: -8px; padding: 6px; } }

.turnbar .status b { font-size: 1.15rem; }
.turnbar .status .sub { margin-left: 10px; color: var(--ink-sub); font-size: .95rem; }

/* 玉 */
.peg { pointer-events: none; }
.peg.up { filter: drop-shadow(0 10px 6px rgba(0, 0, 0, .35)); }

/* 印: 目標の穴（金色の輪）・動かせる玉・選んだ玉・飛ぶ先・取れる玉・ヒント・キーボードの枠・直前の手・最後の1本 */
.goal { fill: none; stroke: #E6B84A; stroke-width: 5; stroke-dasharray: 10 6; opacity: .95; }
.mark { pointer-events: none; }
.mark.movable { fill: none; stroke: #8FC3F2; stroke-width: 4; opacity: .9; }
.mark.movable.again { stroke: #FFF8EA; stroke-width: 5; stroke-dasharray: 9 5; }
.mark.sel { fill: none; stroke: #FFF8EA; stroke-width: 6; }
.dest { fill: #2F5D8A; stroke: #FFF8EA; stroke-width: 4; pointer-events: none; }
.mark.target { fill: none; stroke: #D8574B; stroke-width: 4; stroke-dasharray: 7 5; }
.mark.hint { fill: none; stroke: #6FB0F5; stroke-width: 6; stroke-dasharray: 10 6; animation: hint 1.2s ease-in-out infinite; }
.hintpath { stroke: #6FB0F5; stroke-width: 7; stroke-dasharray: 10 8; stroke-linecap: round; pointer-events: none; }
.hintdot { fill: none; stroke: #6FB0F5; stroke-width: 6; animation: hint 1.2s ease-in-out infinite; pointer-events: none; }
@keyframes hint { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .mark.hint, .hintdot { animation: none; } }
.mark.cursor { fill: none; stroke: #F2C230; stroke-width: 4; stroke-dasharray: 8 5; }
.mark.win { fill: none; stroke: #E6B84A; stroke-width: 7; }
.mark.one { fill: none; stroke: #FFF8EA; stroke-width: 6; }
.trail { stroke: rgba(60, 30, 10, .45); stroke-width: 6; stroke-dasharray: 2 11; stroke-linecap: round; pointer-events: none; }
.hit { fill: transparent; cursor: pointer; }
.fx, .over, .under, .caps { pointer-events: none; }

.board-wrap .callout { padding: 6px 18px; font-size: clamp(16px, 3.8vw, 22px); }
.result-box .score { font-size: 1.1rem; font-weight: 700; margin: 0 0 8px; }
.result-box { inset: auto 6% 4%; padding: 14px 18px; }
.result-box h2 { font-size: 1.5rem; margin-bottom: 6px; }
@media (max-width: 520px) { .result-box { inset: auto 0 0; } .result-box .controls .btn { padding: 0 12px; } }

.howto img { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; }
.howto img.wide { max-width: 100%; }
.howto figcaption { text-align: center; }
/* 上のバーの高さを一定に（No.93。数字は一番長い文が画面の幅（360px・375px 以上・641px 以上）で何行になるか。--tb-rt はふりがなの分。base.css・turnbar.js） */
.turnbar { --tb-msg-lines: 3; --tb-st-lines: 1; --tb-rt: 0px; --tb-st-rt: 0px; }
@media (min-width: 375px) { .turnbar { --tb-msg-lines: 3; --tb-st-lines: 1; } }
@media (min-width: 641px) { .turnbar { --tb-msg-lines: 2; --tb-st-lines: 1; } }
:root:lang(en) .turnbar { --tb-msg-lines: 3; --tb-st-lines: 1; --tb-rt: 0px; --tb-st-rt: 0px; }
@media (min-width: 375px) { :root:lang(en) .turnbar { --tb-msg-lines: 3; --tb-st-lines: 1; } }
@media (min-width: 641px) { :root:lang(en) .turnbar { --tb-msg-lines: 2; --tb-st-lines: 1; } }
/* 上のバーの高さ ここまで */
