/* Wild Rift Boost — build-c03.css (Category 3: Sound & Media).
   Companion to sound.css. Styles only the pieces build-c03.js adds:
   settings panel, footer toggle, on-screen sound cues, rank
   soundboard, original-art banners / gallery / rank strip /
   wallpapers, fanfare glow, and the Lux-beam pulse that syncs with
   the sound toggle. Muted dark + single gold accent, same as
   style.css. No prices, no pay-flow, no layout changes to existing
   sections. Reduced motion respected throughout. */

/* --- header "Sound on / Sound off" text label (idea 67) --- */
.c03-sound-label{
  font-size:13px;
  color:var(--muted);
  align-self:center;
  white-space:nowrap;
}
#soundToggle + .c03-sound-label{ margin-left:6px; }

/* --- on-screen text cue (idea 57): bottom-centre, fades --- */
.c03-sound-cue{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%) translateY(8px);
  z-index:60;
  max-width:88vw;
  padding:8px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(20,20,24,.92);
  color:var(--text);
  font-size:13px;
  opacity:0;
  pointer-events:none;
  transition:opacity .25s ease, transform .25s ease;
}
.c03-sound-cue.c03-cue-show{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

/* Phones: the cue + sound panel sit ABOVE the fixed bottom bar
   (~46px + safe-area), never across it (build-c12/build-c04 bars). */
@media (max-width:700px){
  .c03-sound-cue{ bottom:calc(62px + env(safe-area-inset-bottom, 0px)); }
  .c03-sound-panel{ bottom:calc(62px + env(safe-area-inset-bottom, 0px)); }
}

/* --- footer sound toggle + settings button (idea 33) --- */
.c03-footer-toggle{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  margin:0 2px;
  background:transparent;
  color:var(--muted);
  border:1px solid var(--line);
  border-radius:10px;
  cursor:pointer;
  font-size:13px;
}
.c03-footer-toggle:hover{ color:var(--text); border-color:rgba(217,179,106,.5); }
.c03-footer-toggle.sound-on{
  color:var(--gold);
  border-color:rgba(217,179,106,.55);
  background:rgba(217,179,106,.10);
}
.c03-footer-toggle:focus-visible,
.c03-settings-btn:focus-visible{
  outline:3px solid var(--gold);
  outline-offset:2px;
}
.c03-settings-btn{
  display:inline-flex;
  padding:6px 10px;
  margin:0 2px;
  background:transparent;
  color:var(--muted);
  border:1px solid var(--line);
  border-radius:10px;
  cursor:pointer;
  font-size:13px;
}
.c03-settings-btn:hover{ color:var(--text); border-color:rgba(217,179,106,.5); }

/* --- sound settings panel (ideas 14, 15, 16, 46, 47) --- */
.c03-sound-panel{
  display:none;
  position:fixed;
  left:50%;
  bottom:16px;
  transform:translateX(-50%);
  z-index:55;
  width:min(420px, calc(100vw - 24px));
  max-height:min(78vh, 560px);
  overflow:auto;
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(18,18,22,.97);
  color:var(--text);
  box-shadow:0 12px 40px rgba(0,0,0,.5);
}
.c03-sound-panel.c03-panel-open{ display:block; }
.c03-sound-panel h3{ margin:0 0 6px; font-size:17px; }
.c03-sound-panel label{ display:block; margin:10px 0 4px; font-size:14px; }
.c03-sound-panel input[type="range"]{ width:100%; accent-color:var(--gold); }
.c03-sound-panel fieldset{
  margin:12px 0 4px;
  padding:8px 10px;
  border:1px solid var(--line);
  border-radius:10px;
}
.c03-sound-panel fieldset legend{ font-size:13px; color:var(--muted); padding:0 6px; }
.c03-sound-panel fieldset label{ display:inline-block; margin:4px 10px 4px 0; }
.c03-sound-panel .c03-previews button{
  padding:6px 10px;
  margin:3px 4px 3px 0;
  background:transparent;
  color:var(--text);
  border:1px solid var(--line);
  border-radius:999px;
  cursor:pointer;
  font-size:13px;
}
.c03-sound-panel .c03-previews button:hover{ border-color:rgba(217,179,106,.6); color:var(--gold); }

/* --- rank soundboard (idea 45) --- */
.c03-soundboard .c03-board{ display:flex; flex-wrap:wrap; gap:8px; }
.c03-soundboard .c03-board button{
  padding:8px 12px;
  background:transparent;
  color:var(--text);
  border:1px solid var(--line);
  border-radius:999px;
  cursor:pointer;
  font-size:14px;
}
.c03-soundboard .c03-board button:hover{ border-color:rgba(217,179,106,.6); color:var(--gold); }
.c03-soundboard .c03-board button:focus-visible{ outline:3px solid var(--gold); outline-offset:2px; }

/* --- original-art banners, strip, gallery, wallpapers (ideas 17, 48, 50, 51, 53, 54, 68) --- */
.c03-banner{ margin:14px 0; }
.c03-banner img{
  display:block;
  width:100%;
  height:auto;
  border-radius:12px;
  border:1px solid var(--line);
}
.c03-strip{ margin:14px 0; }
.c03-strip img{
  display:block;
  width:100%;
  height:auto;
  border-radius:12px;
  border:1px solid var(--line);
}
.c03-gallery-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
  margin-top:10px;
}
.c03-gallery-grid figure{ margin:0; }
.c03-gallery-grid img{
  display:block;
  width:100%;
  height:auto;
  border-radius:12px;
  border:1px solid var(--line);
}
.c03-gallery-grid figcaption{ font-size:13px; color:var(--muted); margin-top:6px; }
@media (max-width:700px){
  .c03-gallery-grid{ grid-template-columns:1fr; }
}

/* --- rank-up fanfare glow (idea 3) --- */
.c03-fanfare{
  animation:c03-fanfare-glow 1.4s ease;
  border-color:rgba(217,179,106,.7) !important;
}
@keyframes c03-fanfare-glow{
  0%{ box-shadow:0 0 0 rgba(217,179,106,0); }
  30%{ box-shadow:0 0 26px rgba(217,179,106,.45); }
  100%{ box-shadow:0 0 0 rgba(217,179,106,0); }
}

/* --- Lux beam pulse synced to the sound toggle (idea 55) --- */
.hero-rift.c03-beam-on,
.hero-library-img.c03-beam-on{
  animation:c03-beam-pulse 2.4s ease-in-out infinite;
}
@keyframes c03-beam-pulse{
  0%, 100%{ filter:brightness(1); }
  50%{ filter:brightness(1.12) saturate(1.08); }
}

/* --- reduced motion: no pulse, no fanfare, no cue slide --- */
@media (prefers-reduced-motion: reduce){
  .hero-rift.c03-beam-on,
  .hero-library-img.c03-beam-on{ animation:none; }
  .c03-fanfare{ animation:none; }
  .c03-sound-cue{ transition:none; transform:translateX(-50%); }
  .c03-sound-panel{ transition:none; }
}
