/* Shared responsive baseline for every Gloccabeatz page. Keep this linked last in each page head. */
*,*::before,*::after{box-sizing:border-box}
html{max-width:100%;overflow-x:clip;scrollbar-gutter:stable}
body{max-width:100%;overflow-x:clip}
img,video,canvas,svg{max-width:100%}
main,section,article,aside,footer,form,fieldset{min-width:0}
input,select,textarea,button{max-width:100%;font:inherit}
[hidden]{display:none!important}
.profile-nudge a{display:inline-flex;align-items:center;justify-content:center;gap:5px;text-align:center;line-height:1.2}
.room-composer form{align-items:center}
.room-tool,.room-emoji-tray button{display:grid;place-items:center;flex:0 0 38px;padding:0;line-height:1;font-family:system-ui,"Apple Color Emoji","Segoe UI Emoji",sans-serif}
/* Shared audio controls: keep their inline glyphs visible even when page/mobile CSS cascades differ. */
.play,.play-sample,.beat-play,.beat-pack-preview-play,.player-btn,.mini-play,[data-audio-play],.voice-play{position:relative;display:grid!important;place-items:center!important;line-height:0!important;text-align:center}
.play,.play-sample,.beat-play,.beat-pack-preview-play,.player-btn,.mini-play,[data-audio-play],.voice-play{align-items:center!important;justify-items:center!important;align-self:center;vertical-align:middle;padding:0!important}
.beat-play{position:absolute!important;inset:0!important;margin:auto!important;transform:none!important;display:grid!important;place-items:center!important}
.play svg,.play-sample svg,.beat-play svg,.beat-pack-preview-play svg,.player-btn svg,.mini-play svg,[data-audio-play] svg,.voice-play svg{display:block!important;visibility:visible!important;opacity:1!important;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;max-width:none!important;flex:none!important;margin:auto!important}
.play path,.play-sample path,.beat-play path,.beat-pack-preview-play path,.player-btn path,.mini-play path,[data-audio-play] path,.voice-play path{display:block!important;visibility:visible!important;opacity:1!important;fill:currentColor!important}
/* A right-pointing play triangle has a right-heavy bounding box; offset its glyph
   inside the centered SVG so its visual center aligns with the circular button. */
.play svg path[d^="M8 5v14l11-7z"],.play-sample svg path[d^="M8 5v14l11-7z"],.beat-play svg path[d^="M8 5v14l11-7z"],.beat-pack-preview-play svg path[d^="M8 5v14l11-7z"],.player-btn svg path[d^="M8 5v14l11-7z"],.mini-play svg path[d^="M8 5v14l11-7z"],[data-audio-play] svg path[d^="M8 5v14l11-7z"],.voice-play svg path[d^="M8 5v14l11-7z"]{transform:translateX(-1px)!important;transform-box:fill-box;transform-origin:center}
/* The sample browser uses inline SVG play glyphs; a CSS triangle is a resilient touch-size fallback. */
@media(max-width:760px){
  .play-sample{position:relative;display:grid!important;place-items:center!important;line-height:0;color:transparent!important}
  .play-sample svg{display:none!important}
  .play-sample::after{content:"";display:block;width:0;height:0;margin:0;transform:translateX(-1px);border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:9px solid #42e9df;filter:drop-shadow(0 0 3px #42e9df88)}
  .sample-row.is-playing .play-sample::after{width:11px;height:13px;margin:0;border:0;transform:none;background:linear-gradient(90deg,#42e9df 0 35%,transparent 35% 65%,#42e9df 65%);filter:drop-shadow(0 0 3px #42e9df88)}
}

@media(max-width:700px){
  body>header,header.topbar,header.header,header.site-header{height:auto!important;min-height:54px;padding:8px clamp(10px,3vw,18px)!important;gap:8px 12px;flex-wrap:wrap;align-items:center}
  header .brand{flex:0 1 auto;min-width:0;max-width:100%;gap:6px;font-size:clamp(12px,3.3vw,16px);white-space:nowrap}
  header .brand img{flex:0 0 auto;width:clamp(19px,5vw,25px);height:auto}
  header nav,header .nav,header .nav-links,header .toplinks,header .top-actions{display:flex;flex:1 1 100%;width:100%;min-width:0;max-width:100%;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:clamp(4px,1.8vw,12px);margin:0;padding:5px 0 1px;font-size:clamp(9px,2.5vw,12px);line-height:1.25}
  header nav>a,header .nav>a,header .nav-links>a,header .toplinks>a,header nav>details>summary{min-width:0;max-width:100%;padding:5px clamp(3px,1.1vw,8px);overflow-wrap:anywhere}
  header nav .store-cart-toggle,header .nav .store-cart-toggle,header .nav-links .store-cart-toggle,header .toplinks .store-cart-toggle{flex:0 0 34px;width:34px;height:32px;margin:0 0 0 auto}
  .glocca-account-link{flex:0 1 auto!important;max-width:42vw!important;margin:0 0 0 auto!important;padding:7px 9px!important;font-size:clamp(9px,2.4vw,11px)!important;line-height:1.15!important;white-space:normal!important;text-align:center}
  main,.wrap,.page,.container{width:min(100% - 24px,1180px);max-width:100%;margin-inline:auto}
  .hero,.product-hero,.content-grid,.layout,.columns{min-width:0;max-width:100%}
  h1{font-size:clamp(28px,8.5vw,46px);overflow-wrap:anywhere}
  h2{font-size:clamp(19px,5vw,30px);overflow-wrap:anywhere}
  h3{overflow-wrap:anywhere}
  p,small,label{overflow-wrap:anywhere}
  .profile-nudge{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:start!important;gap:9px 12px!important;width:100%;padding:12px!important}
  .profile-nudge-copy{grid-column:1;min-width:0!important;flex:initial!important}
  .profile-nudge strong{font-size:clamp(12px,3.4vw,14px)!important;line-height:1.3}
  .profile-nudge p{font-size:clamp(10px,2.8vw,12px)!important;line-height:1.45}
  .profile-nudge-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px!important;margin:0!important}
  .profile-nudge a,.profile-nudge button{min-height:34px;padding:0 10px!important;font-size:10px!important;white-space:nowrap}
  .room-tool,.room-emoji-tray button{align-self:center}
  .store-overlay{grid-template-columns:minmax(0,1fr) min(440px,100vw)!important}
  .store-panel{width:100%;max-width:100vw;min-width:0}
  .store-panel-head{gap:10px;padding:16px 14px 13px}
  .store-panel-head>div{min-width:0}
  .store-panel-head h2{font-size:clamp(17px,5vw,20px)}
  .store-main{padding:13px 12px 16px}
  .store-line{grid-template-columns:minmax(0,1fr) auto;gap:7px 9px;padding:11px}
  .store-line-name{overflow-wrap:anywhere;word-break:break-word;font-size:11px;line-height:1.4}
}

@media(max-width:380px){
  body>header,header.topbar,header.header,header.site-header{padding-inline:9px!important;gap:6px 8px}
  header nav,header .nav,header .nav-links,header .toplinks,header .top-actions{gap:3px;font-size:9px}
  header nav>a,header .nav>a,header .nav-links>a,header .toplinks>a,header nav>details>summary{padding:5px 3px}
  header nav .store-cart-toggle,header .nav .store-cart-toggle,header .nav-links .store-cart-toggle,header .toplinks .store-cart-toggle{flex-basis:30px;width:30px;height:29px}
  .glocca-account-link{max-width:38vw!important;padding:6px 7px!important;font-size:9px!important}
  main,.wrap,.page,.container{width:calc(100% - 18px)}
  .profile-nudge{padding:10px!important}
  .store-panel-head{padding-inline:11px}
  .store-main{padding-inline:9px}
}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Center the pause bars visually inside every circular player button. */
.player-toggle{display:grid!important;place-items:center!important;line-height:0!important;padding:0!important}.player-toggle svg{display:block;width:16px;height:16px;margin:auto;fill:currentColor}
