/* Spin tutorial popup + "How Spin works" pill (see js/spin-tutorial.js). Reuses the shared .mp-confirm / .mp-card / .mp-btn look. */
.st-overlay { z-index: 110; }
.mp .st-box { max-width: 21rem; text-align: center; padding: 18px 18px 16px; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; animation: st-in .22s ease-out both; }
.st-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 700 0.68rem/1.2 "Space Mono", ui-monospace, monospace; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: rgba(20, 16, 40, 0.86); border: 1px solid rgba(255, 255, 255, 0.45); }
.st-pic { display: block; margin: 10px auto 8px; width: min(62%, 11.5rem); }
.st-img { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 14px rgba(var(--shade-1), calc(0.4 * var(--shade-k)))); user-select: none; -webkit-user-drag: none; }
.mp .st-box .st-title { margin: 0 0 0.3rem; font-size: 1.3rem; }
.st-text { margin: 0 auto; max-width: 18rem; color: rgb(var(--txt-22)); font-size: 0.92rem; line-height: 1.45; }
.st-row { display: flex; gap: 8px; margin-top: 14px; }
.mp .st-row .st-btn { flex: 1 1 0; width: auto; min-height: 44px; padding-inline: 0.6rem; }
@keyframes st-in { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mp .st-box { animation: none; } }
@media (max-width: 360px) { .st-row { flex-direction: column-reverse; } }
@media (max-height: 520px) { .st-pic { width: min(34%, 6.5rem); margin: 6px auto 4px; } .st-text { font-size: 0.86rem; } }

.dragon-puzzle .st-help { display: inline-flex; align-items: center; gap: 6px; margin-top: 0.55rem; min-height: 36px; padding: 0 0.8rem 0 0.65rem; border-radius: 999px; cursor: pointer; font: 700 0.8rem/1 "Nunito", system-ui, sans-serif; letter-spacing: 0.02em; color: rgb(var(--txt-12)); background: rgba(var(--wash-14), 0.04); border: 1px solid rgba(var(--wash-11), 0.28); transition: background .15s, border-color .15s, color .15s; }
.dragon-puzzle .st-help:hover { background: rgba(var(--wash-14), 0.09); border-color: rgba(var(--wash-11), 0.5); color: rgb(var(--txt-46)); }
.dragon-puzzle .st-help:focus-visible { outline: 2px solid rgb(var(--txt-46)); outline-offset: 2px; }
@media (pointer: coarse) { .dragon-puzzle .st-help { min-height: 44px; } }
