/* Shared interaction surface for Meorvo games and tools. */
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, .button, .file-button { min-height: 44px; }
button, .button, .file-button, .lang, a.card, .drop, .file-picker, .record-button, .preset, .piece-choice, .bottle, .block-cell, .feature-list button {
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease, opacity .16s ease;
}
button:disabled, .button:disabled { cursor: default; opacity: .5; }
:where(button, a, input, textarea, select, [tabindex]):focus-visible { outline: 3px solid #ad7b30; outline-offset: 3px; }
button:not(:disabled):active, .button:not(:disabled):active, .file-button:active, .preset:active, .piece-choice:active { transform: translateY(1px) scale(.985); }
@media (hover: hover) and (pointer: fine) {
  button:not(:disabled):hover, .button:not(:disabled):hover, .file-button:hover, .preset:hover, .piece-choice:hover {
    box-shadow: 0 6px 16px rgba(37, 61, 50, .1);
  }
  a.card:hover, .file-picker:hover, .record-button:hover { transform: translateY(-2px); }
}
.drop, .file-button { position: relative; }
.drop input, .file-button input, .file-picker input { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0; }
.drop:focus-within, .file-button:focus-within, .file-picker:focus-within, .record-button:focus-visible { outline: 3px solid #ad7b30; outline-offset: 3px; }
.drop.is-dragging, .panel.is-dragging { box-shadow: inset 0 0 0 2px currentColor; }
.status { min-height: 28px; line-height: 1.6; overflow-wrap: anywhere; }
.status[data-state="error"] { color: #a34535; }
.status[data-state="loading"] { color: #687a77; }
.status[aria-busy="true"]::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 2px solid #cbd9d3; border-top-color: currentColor; border-radius: 50%; vertical-align: -2px; animation: meorvo-status-spin .7s linear infinite; }
@keyframes meorvo-status-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
