/* GOONS World Studio (/play/world) : shared/js/goons-world-studio.js, includes/world-studio.php.
   Carte, épingles et puces : shared/css/goons-world-map.css (partagée avec la page d'accueil). */

.app-hero--instrument { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 10px 0 56px; }
.app-hero--instrument h1 { margin: 14px 0 10px; font-size: clamp(30px, 4vw, 46px); }
.app-hero--instrument .lede { max-width: 110ch; margin: 0 0 16px; font-size: 16px; line-height: 1.6; }
.app-hero--instrument .app-hero-actions { margin-bottom: 18px; }

.ws {
    --ws-c: #46d3c8;
    --ws-ink: #eef1f7;
    --ws-mute: #9aa6bd;
    display: grid; gap: 16px;
    margin: 22px 0 8px;
    color: var(--ws-ink);
}
.ws-stage { display: grid; gap: 0; scroll-margin-top: 80px; }
.ws-head {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
    padding: 12px 16px; border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, color-mix(in srgb, var(--ws-c) 22%, #0d1322), #0d1322 70%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.ws-title strong { display: block; font-size: 20px; line-height: 1.15; }
.ws-title span { font-size: 13px; color: var(--ws-mute); }
.ws-groove { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-left: auto; }
.ws-groove select {
    appearance: none; -webkit-appearance: none; padding: 8px 30px 8px 11px; border: 0; border-radius: 10px;
    background: rgba(0, 0, 0, .35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23ffffff'/%3E%3C/svg%3E") no-repeat right 11px center;
    font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--ws-ink); cursor: pointer;
}
.ws-groove select option { background: #121a2c; }
.ws-tempo, .ws-vol { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--ws-mute); }
.ws-tempo input, .ws-vol input { width: 96px; accent-color: var(--ws-c); }
.ws-tempo output { min-width: 58px; color: var(--ws-ink); font-variant-numeric: tabular-nums; }
.ws:not(.is-groove) .ws-tempo, .ws:not(.is-groove) .ws-vol { display: none; }
.ws-gdots { display: flex; gap: 3px; }
.ws-gdots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.ws-gdots span.is-beat { background: rgba(255, 255, 255, .32); }
.ws-gdots span.is-acc { box-shadow: 0 0 0 1.5px var(--ws-c); }
.ws-gdots span.is-now { background: var(--ws-c); }
.ws-full { font-size: 13.5px; font-weight: 800; color: var(--ws-c); text-decoration: none; white-space: nowrap; }
.ws-full:hover { text-decoration: underline; }
.ws-full::after { content: ' \2197'; }
.ws-slot { min-height: 420px; }
.ws-slot > * { margin-top: 0 !important; border-top-left-radius: 0 !important; border-top-right-radius: 0 !important; }
.ws-stage.is-loading .ws-slot > :empty { position: relative; }
.ws-stage.is-loading .ws-slot > :empty::after {
    content: 'Loading the instrument...'; position: absolute; inset: 0; display: grid; place-items: center;
    font-size: 14px; color: var(--ws-mute); background: #0d1322; border-radius: 0 0 20px 20px;
}
.ws-error { padding: 40px 20px; border-radius: 0 0 20px 20px; background: #0d1322; text-align: center; color: var(--ws-mute); }
.ws-error a { color: var(--ws-c); }

@media (max-width: 900px) {
    .ws-groove { margin-left: 0; }
}
@media (max-width: 600px) {
    .ws-head { padding: 10px 12px; }
    .ws-title strong { font-size: 18px; }
}
