/* GlobalsWeb 1.1.3.6.6 - header music toggle + sound UI
   Brand: blue #00338D, navy #0B1B3F, gold #D4AF37, light surfaces. */

.gw-sounds{
  position:relative;
  display:inline-flex;
  align-items:center;
  flex-shrink:0;
  margin:0;
}
.header-actions .gw-sounds{order:5}
.header-actions .menu-toggle{order:6}

.gw-music-toggle{
  box-sizing:border-box;
  width:44px;
  height:44px;
  min-width:44px;
  min-height:44px;
  padding:0;
  margin:0;
  border-radius:10px;
  border:1px solid #E2E8F0;
  background:#FFFFFF;
  color:#00338D;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0;
  cursor:pointer;
  line-height:0;
  box-shadow:0 1px 2px rgba(15,23,42,0.04);
  transition:background .15s,color .15s,border-color .15s,box-shadow .15s;
  -webkit-tap-highlight-color:transparent;
  appearance:none;
  -webkit-appearance:none;
}
.gw-music-toggle:hover{
  border-color:#D4AF37;
  color:#0B1B3F;
  background:#FFFEFB;
}
.gw-music-toggle:focus{
  outline:none;
}
.gw-music-toggle:focus-visible{
  outline:2px solid #D4AF37;
  outline-offset:2px;
  border-color:#D4AF37;
}
.gw-music-toggle[aria-pressed="true"]{
  background:#00338D;
  border-color:#00338D;
  color:#D4AF37;
  box-shadow:0 4px 14px rgba(0,51,141,0.28);
}
.gw-music-toggle[aria-pressed="true"]:hover{
  background:#0B1B3F;
  border-color:#0B1B3F;
  color:#D4AF37;
}

.gw-music-ico{
  position:relative;
  width:20px;
  height:20px;
  display:block;
}
.gw-music-ico svg{
  display:block;
  width:20px;
  height:20px;
}
.gw-music-slash{
  position:absolute;
  left:1px;
  top:1px;
  width:18px;
  height:18px;
  pointer-events:none;
}
.gw-music-slash::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:18px;
  height:1.6px;
  background:currentColor;
  border-radius:1px;
  transform:translate(-50%,-50%) rotate(-42deg);
}
.gw-music-toggle[aria-pressed="true"] .gw-music-slash{display:none}

.gw-eq{
  display:none;
  position:absolute;
  right:-7px;
  bottom:-1px;
  width:10px;
  height:8px;
  align-items:flex-end;
  justify-content:space-between;
  pointer-events:none;
}
.gw-music-toggle[aria-pressed="true"] .gw-eq{display:flex}
.gw-eq i{
  display:block;
  width:2px;
  height:4px;
  border-radius:1px;
  background:currentColor;
  transform-origin:bottom;
  animation:gw-eq 1s ease-in-out infinite;
}
.gw-eq i:nth-child(1){animation-delay:-0.25s;height:3px}
.gw-eq i:nth-child(2){animation-delay:-0.55s;height:8px}
.gw-eq i:nth-child(3){animation-delay:-0.1s;height:5px}
@keyframes gw-eq{
  0%,100%{transform:scaleY(0.45)}
  50%{transform:scaleY(1)}
}

.gw-sounds-menu{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  z-index:220;
  min-width:196px;
  padding:0.4rem;
  border:1px solid #E2E8F0;
  border-radius:12px;
  background:#FFFFFF;
  box-shadow:0 8px 24px rgba(15,23,42,0.10),0 1px 2px rgba(15,23,42,0.05);
}
.gw-sounds-menu[hidden]{display:none !important}
.gw-sfx-toggle{
  width:100%;
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:0.55rem;
  padding:0.45rem 0.65rem;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#0B1B3F;
  font-family:Inter,system-ui,-apple-system,sans-serif;
  font-size:0.85rem;
  font-weight:600;
  text-align:left;
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
}
.gw-sfx-toggle:hover,
.gw-sfx-toggle:focus-visible{
  background:#F8FAFC;
  outline:none;
}
.gw-sfx-toggle:focus-visible{
  box-shadow:inset 0 0 0 2px #D4AF37;
}
.gw-sfx-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#94A3B8;
  flex-shrink:0;
  box-shadow:0 0 0 3px #E8EEF7;
}
.gw-sfx-toggle[aria-checked="true"] .gw-sfx-dot{
  background:#D4AF37;
  box-shadow:0 0 0 3px rgba(212,175,55,0.28);
}

.gw-sounds-hint{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  z-index:221;
  padding:0.4rem 0.7rem;
  border-radius:8px;
  background:#0B1B3F;
  color:#FFFFFF;
  font-family:Inter,system-ui,-apple-system,sans-serif;
  font-size:0.75rem;
  font-weight:600;
  white-space:nowrap;
  pointer-events:none;
  box-shadow:0 8px 18px rgba(11,27,63,0.22);
}
.gw-sounds-hint[hidden]{display:none !important}

@media (max-width:980px){
  .header-actions .gw-sounds{order:5}
  .header-actions .menu-toggle{order:6}
}
@media (max-width:560px){
  .header-actions{gap:0.35rem}
}

@media (prefers-reduced-motion:reduce){
  .gw-eq i{animation:none}
  .gw-music-toggle{transition:none}
}
