/* Shared look for Isih Manik (pegs) and Tuang Air (tubes). */
.st-q { margin: 0; font: 700 1.05rem var(--round); }
.st-board { --w: 46px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 8px; width: 100%; max-width: 440px; padding: 6px 0; }
.st-stack {
  position: relative; width: var(--w); border: 0; padding: 6px 0 8px; background: none;
  display: flex; flex-direction: column-reverse; align-items: center; gap: 3px; border-radius: 14px;
}
.st-item { width: calc(var(--w) - 8px); height: calc(var(--w) - 8px); display: grid; place-items: center; position: relative; z-index: 1;
  font: 800 1rem/1 var(--round); color: rgba(255, 255, 255, .92); transition: transform .15s ease; }
.st-item.on { background: var(--c); }
.st-item.hid { background: #9A8B80; color: #fff; }
.st-item.up { transform: translateY(-14px); }
.st-stack.sel { background: rgba(19, 168, 158, .12); }
.st-stack.full::after { content: '✓'; position: absolute; top: -18px; left: 0; right: 0; text-align: center; color: var(--green); font: 800 1rem var(--round); }

/* Pegs: a wooden rod on a base, round beads with a hole look */
.st-bead .st-stack::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 6px; width: 8px; margin-left: -4px; border-radius: 4px; background: #C99A63; }
.st-bead .st-stack { border-bottom: 8px solid #A87443; border-radius: 6px 6px 8px 8px; }
.st-bead .st-item.on, .st-bead .st-item.hid { border-radius: 50%; box-shadow: inset -3px -4px 0 rgba(0, 0, 0, .18), inset 3px 3px 0 rgba(255, 255, 255, .3); }

/* Tubes: glass with liquid layers */
.st-pour .st-stack { gap: 0; padding: 4px 4px 6px; border: 3px solid #B8D4E0; border-top: 0; border-radius: 0 0 22px 22px; background: rgba(255, 255, 255, .7); }
.st-pour .st-stack.sel { background: rgba(19, 168, 158, .14); }
.st-pour .st-item { width: calc(var(--w) - 14px); height: calc(var(--w) * .72); border-radius: 0; font-size: .85rem; }
.st-pour .st-item:first-child { border-radius: 0 0 16px 16px; }
.st-pour .st-item.up { transform: translateY(-8px); }

.st-board.win .st-stack { animation: lb-bounce .6s; }
@media (prefers-reduced-motion: reduce) { .st-item { transition: none; } .st-board.win .st-stack { animation: none; } }
