/* shunting-yard-puzzle */
.sy-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; border-bottom: 2px solid #E5E0D5; }
.sy-tab { min-height: 46px; padding: 0 16px; border: 2px solid #E5E0D5; border-bottom: 0; border-radius: 10px 10px 0 0; background: #EFEBE3; color: #24334B; font: inherit; font-weight: bold; cursor: pointer; }
.sy-on { background: #FFFFFF; color: #3B6970; border-color: #3B6970; }
.sy-row { margin: 0 0 8px; }
.sy-row > label { display: inline-block; min-width: 13em; font-weight: bold; margin-right: 6px; }
.sy-row > label.sy-inl { min-width: 0; margin-left: 6px; }
.sy-num, .sy-sel, .sy-text { min-height: 46px; padding: 0 10px; border: 2px solid #8C96A6; border-radius: 10px; font: inherit; background: #FFFFFF; box-sizing: border-box; max-width: 100%; }
.sy-num { width: 7em; }
.sy-text { width: 12em; }
.sy-wide { width: 26em; }
.sy-check { width: 26px; height: 26px; vertical-align: middle; }
.sy-btn { min-height: 46px; padding: 0 16px; border: 2px solid #3B6970; border-radius: 10px; background: #3B6970; color: #FFFFFF; font: inherit; font-weight: bold; cursor: pointer; }
.sy-board { margin: 10px 0 2px; }
.sy-cap { margin: 0 0 10px; font-size: 0.9em; }
.sy-svg { width: 100%; height: auto; display: block; }
.sy-scroll { overflow-x: auto; margin: 8px 0; }
.sy-grid { border-collapse: collapse; }
.sy-grid th, .sy-grid td { padding: 6px 10px; border: 1px solid #E5E0D5; text-align: right; }
.sy-grid th { background: #EEF4F3; color: #24334B; }
.sy-map td { text-align: center; min-width: 2.2em; }
.sy-map td.sy-capo { background: #FBF1E4; font-weight: bold; text-decoration: underline; }
.sy-table { width: 100%; border-collapse: collapse; margin: 8px 0; }
.sy-table th { text-align: left; padding: 8px 10px 8px 0; width: 36%; border-bottom: 1px solid #E5E0D5; color: #24334B; }
.sy-table td { padding: 8px 0; border-bottom: 1px solid #E5E0D5; font-weight: bold; }
.sy-h { font-size: 1.15em; margin: 22px 0 8px; }
.sy-hint { color: #4A5568; }
.sy-open { margin: 8px 0; }
.sy-out { padding: 8px 12px; border-left: 6px solid #497C83; background: #EEF4F3; border-radius: 6px; font-weight: bold; }
.sy-out:empty { display: none; }
@media (max-width: 600px) { .sy-row > label { display: block; min-width: 0; } .sy-row > label.sy-inl { display: inline-block; margin-left: 0; } .sy-wide, .sy-text { width: 100%; } }
.sy-yard { margin: 10px 0; }
.sy-track { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; margin: 0 0 6px; padding: 4px 8px; box-sizing: border-box; border: 2px solid #E5E0D5; border-radius: 10px; background: #FFFFFF; font: inherit; text-align: left; color: #24334B; }
.sy-siding { cursor: pointer; }
.sy-track.sy-on { border-color: #3B6970; background: #EEF4F3; box-shadow: inset 6px 0 0 #3B6970; }
.sy-head { background: #EFEBE3; }
.sy-lab { min-width: 11em; font-weight: bold; }
.sy-cars { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.sy-wagon { display: inline-block; min-width: 40px; height: 34px; line-height: 34px; text-align: center; color: #FFFFFF; font-weight: bold; border-radius: 6px; border: 2px solid #FFFFFF; }
.sy-want { border: 3px solid #24334B; }
.sy-loco { display: inline-block; padding: 0 8px; height: 34px; line-height: 34px; background: #24334B; color: #FFFFFF; font-weight: bold; border-radius: 6px 14px 14px 6px; }
.sy-gap { display: inline-block; width: 40px; height: 34px; border: 2px dashed #C9CED6; border-radius: 6px; box-sizing: border-box; }
.sy-goal { font-weight: bold; margin-right: 6px; }
.sy-btn2 { min-height: 46px; padding: 0 14px; border: 2px solid #3B6970; border-radius: 10px; background: #FFFFFF; color: #3B6970; font: inherit; font-weight: bold; cursor: pointer; }
.sy-btn2:disabled { opacity: 0.5; cursor: default; }
@media (max-width: 600px) { .sy-lab { min-width: 0; display: block; } .sy-track { flex-wrap: wrap; } }
