/* User's October 12 reference: open meter, original large portrait, parchment,
   and a curved display shelf. The original background image is retained. */
#bq-live .instrument-art{object-fit:contain;max-width:100%;filter:drop-shadow(2px 4px 3px #0007)}
#bq-live .instrument-card .instrument-art{height:68%;width:75%;flex-shrink:0;align-self:center}
#bq-live #bq-missing-art .instrument-art{height:190px;width:100%;min-height:0}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0!important;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
#bq-live{padding:8px max(10px,calc((100vw - 1100px)/2));--bq-gold:#f0ce81;background:#100e0b}
#bq-live::before{opacity:.48;background-image:linear-gradient(#08080780,#08070560),url('assets/art-1.webp');background-position:center;background-size:cover}
#bq-live .bq-header{min-height:100px;align-items:center;gap:5px;position:relative}
#bq-live .header-settings{width:38px;height:38px;border-radius:50%;padding:10px;background:#282720b0;border-color:#a69c783d;color:#e6d2a6;flex-shrink:0}
#bq-live .header-settings svg{width:23px;height:23px}
#bq-live .brand-lockup{position:relative;align-self:center;padding:22px 0 0}
#bq-live .brand-lockup strong{font:italic bold clamp(33px,7.8vw,58px)/.96 Georgia,serif;letter-spacing:-2px;color:#ffe5a5;display:block;transform:rotate(-4deg);text-shadow:1px 3px 2px #211b12,0 0 14px #d7b97b22}
#bq-live .brand-lockup strong::after{content:'';display:block;width:62%;height:9px;border-top:4px solid #b52f26;border-radius:50%;margin:6px 0 0 28%;transform:rotate(-2deg)}
#bq-live .brand-hat{position:absolute;top:0;left:45%;height:30px;width:67px;color:#f3d18c;transform:rotate(-8deg)}
#bq-live .brand-lockup small{font-size:6px;letter-spacing:1.8px;white-space:nowrap;margin:2px 0 0;color:#eee0ba}
#bq-live .header-actions{display:flex;flex-direction:column-reverse;gap:5px;align-items:center;flex-shrink:0}
#bq-live .header-actions .gold-button{border:1px solid #dab457;border-radius:30px;color:#f2cf79;padding:6px 9px;min-height:30px;font-size:11px;background:#12120ebd;box-shadow:0 0 9px #d9a73733}
#bq-live .gold-button svg{width:17px;height:15px}
#bq-live #bq-lang-toggle{border:0;background:#18140bb0;min-height:23px;padding:3px 5px;font-size:9px;letter-spacing:1px;color:#f5e5c5}
#bq-live #bq-tuner{max-width:660px;margin:0 auto}
#bq-live .meter-caption{display:none}
#bq-live .bq-readout{filter:drop-shadow(0 2px 4px #000);max-width:600px;margin:auto}
#bq-live #bq-meter{width:100%;height:190px;aspect-ratio:auto;max-height:none}
#bq-live .meter-center{top:45%;padding:0;background:none;text-shadow:0 2px 9px #000}
#bq-live #bq-note{font-size:48px;font-weight:700;color:#fff0c2;line-height:1}
#bq-live #bq-cents{font-size:12px;color:#fff0cc;margin-top:5px}
#bq-live .bq-status-row{min-height:26px;margin-top:-9px;gap:1px;color:#f5e5bf}
#bq-live #bq-status{font-size:9px;letter-spacing:1px;color:var(--bq-glow,#f0ce81);text-shadow:0 1px 4px #000}
#bq-live #bq-measure{font-size:9px;color:#fff0d1;opacity:1}
#bq-live .bq-mic-controls,#bq-live #bq-ear-actions{margin:3px 0 0;gap:5px}
#bq-live .bq-mic-controls button,#bq-live #bq-ear-actions button{min-height:30px;font-size:10px;padding:4px 9px}
#bq-live #bq-auto-label{color:#f6e9d2;font-size:10px}
#bq-live .musician-section{grid-template-columns:minmax(0,61%) minmax(0,39%);gap:0;margin-top:3px;align-items:center}
#bq-live .character-panel{height:310px;margin-left:-13px;z-index:1;justify-content:flex-start;overflow:hidden}
#bq-live #bq-guide{height:295px;max-width:none;filter:drop-shadow(0 5px 7px #0009);margin:0;flex:none}
#bq-live #bq-guidance{font:italic 12px Georgia,serif;color:#ffe2a4;line-height:1.2;min-height:16px;max-width:90%;text-shadow:0 1px 3px #000;margin:0 auto}
#bq-live .bq-instrument-panel{position:relative;z-index:2;padding:14px 10px 9px;background:radial-gradient(ellipse at 45% 40%,#f0d3a0 0,#dbb27a 65%,#a16b33 100%);border:1px solid #875326;border-radius:1px;box-shadow:inset 0 0 15px #96562388,0 5px 10px #0006;color:#392718;min-width:0}
#bq-live .bq-instrument-panel::before{content:'';position:absolute;inset:5px;border:1px solid #8c572f80;pointer-events:none}
#bq-live .instrument-heading{text-align:center}
#bq-live .instrument-heading small,#bq-live #bq-instrument-count{display:none}
#bq-live .instrument-heading h2{font:bold 15px/1.1 Georgia,serif;text-transform:uppercase;margin:0 0 5px;color:#392718;letter-spacing:-.3px}
#bq-live .tuning-shortcut{font-size:9px;min-height:25px;color:#573a21;background:none;border:0;margin:0;padding:3px;text-align:center}
#bq-live .bq-instrument-panel #bq-instrument,#bq-live .bq-panel-heading{display:none}
#bq-live .bq-selection-panel{max-width:none;margin:2px 0 0}
#bq-live #bq-courses{display:flex;flex-direction:column;gap:1px}
#bq-live #bq-courses button{display:flex;flex-direction:row;justify-content:flex-start;gap:8px;border:0;background:transparent;padding:1px 4px;min-height:28px;border-radius:4px;color:#392718;box-shadow:none}
#bq-live .bq-course-note{display:grid;place-items:center;min-width:24px;width:24px;height:24px;border-radius:50%;font:bold 17px/1 Georgia,serif;background:#4a331e;color:#f5dca5}
#bq-live .bq-course-number{font:11px/1.1 Georgia,serif;color:#392718;opacity:1}
#bq-live #bq-courses button[aria-pressed="true"]{background:#8a59222a;border:0;box-shadow:none;color:#352314}
#bq-live #bq-courses button[aria-pressed="true"] .bq-course-note{background:#7e461c;box-shadow:0 0 0 1px #5a3315,0 0 0 3px #f6d391}
#bq-live #bq-string-heading{font-size:7px;text-align:center;letter-spacing:1px;margin:8px 0 4px;color:#614329}
#bq-live #bq-string{gap:3px}
#bq-live #bq-string button{min-height:27px;justify-content:center;padding:2px 3px;border-color:#80542588;border-radius:4px;color:#3a2818;background:transparent}
#bq-live #bq-string button[aria-pressed="true"]{color:#3a2818;background:#8f632d33;border-color:#6b421e}
#bq-live .bq-string-note{font-size:11px}
#bq-live .bq-string-name,#bq-live .bq-string-check{display:none}
#bq-live .parchment-signoff{text-align:center;margin-top:7px;color:#71391e;font:600 7px/1.3 system-ui;letter-spacing:1px}
#bq-live .parchment-signoff b{font:22px Georgia,serif;display:block;line-height:1}
#bq-live .carousel-section{overflow:hidden;position:relative;margin-top:-2px;padding:0 0 10px;isolation:isolate}
#bq-live .carousel-heading{justify-content:center;gap:10px;letter-spacing:0;font:11px Georgia,serif;color:#e5d7bb;padding:0;position:relative;z-index:12}
#bq-live .carousel-heading button{font-size:20px;min-height:23px;color:#ebdbbc}
#bq-live #bq-carousel{height:167px;perspective:750px;max-width:650px;isolation:isolate}
#bq-live #bq-carousel::before{left:-12%;right:-12%;bottom:-4px;height:90px;border-radius:50%;border:1px solid #c0a6744f;background:radial-gradient(ellipse at 50% 75%,#f2c26440,transparent 24%),linear-gradient(0deg,#080909ef,#56503b7a 22%,#0c0d0edf 62%,#4a402b80);box-shadow:inset 0 -12px 17px #0009,0 6px 9px #0006;z-index:0}
#bq-live .instrument-card{left:calc(50% - 43px);width:86px;height:141px;top:3px;gap:4px;padding:6px 3px;border:1px solid #c0af8966;border-radius:8px;background:linear-gradient(135deg,#343633ee,#0b0d0df5 80%);color:#f4e6c6;box-shadow:0 8px 10px #0008;transform:translateX(calc(var(--slot)*var(--carousel-step))) translateY(calc(var(--depth)*7px)) translateZ(calc(var(--depth)*-24px)) rotateY(calc(var(--slot)*-15deg)) rotateZ(calc(var(--slot)*3deg)) scale(calc(1 - var(--depth)*.075))}
#bq-live .instrument-card svg{height:96px;width:61px}
#bq-live .instrument-card strong{font:11px/1.1 Georgia,serif;font-weight:400}
#bq-live .instrument-card small{font-size:6px;letter-spacing:1px;opacity:.65}
#bq-live .instrument-card[aria-pressed="true"]{background:linear-gradient(125deg,#4c483bdd,#171a17f2);border-color:#ffe399;box-shadow:0 0 4px #ffe6a6,0 0 18px #e0b34d77,0 12px 20px #000a;color:#fff1cc}
#bq-live .photo-instrument{height:96px;width:70px;position:relative;flex-shrink:0}
#bq-live .photo-instrument img{position:absolute;width:105px;max-width:none;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-67deg);filter:drop-shadow(2px 4px 3px #000a)}
#bq-live #bq-carousel-name{display:none}
#bq-live .bottom-nav{margin:0 auto;padding:7px 6px 4px;background:#090d0df2;border:1px solid #d0b47a19;border-radius:26px 26px 15px 15px;gap:1px;box-shadow:0 -3px 13px #0003}
#bq-live .bottom-nav button{display:flex;flex-direction:column;gap:3px;font-size:10px;min-height:47px;background:transparent;color:#a5a39c;border-radius:5px;position:relative}
#bq-live .bottom-nav button svg{width:22px;height:22px}
#bq-live .bottom-nav button[aria-current="true"]{color:#f3d271;background:transparent}
#bq-live .bottom-nav button[aria-current="true"]::after{content:'';position:absolute;bottom:0;height:2px;width:55%;background:#f0cf78;box-shadow:0 0 7px #ffda66;border-radius:3px}
#bq-live .tuning-details{font-size:9px;margin:0 auto 3px}
#bq-live .tuning-details summary{min-height:17px}
#bq-live .bq-offline{font-size:8px;opacity:.75;margin-top:4px}
#bq-live .bq-offline button{font-size:8px;min-height:22px}
#bq-live .pro-preview{margin-top:6px}
#bq-live.bq-light{--bq-gold:#714914;background:#e5cfaa}
#bq-live.bq-light::before{opacity:.27;background-image:url('assets/art-1.webp')}
#bq-live.bq-light .brand-lockup strong{color:#67401c;text-shadow:none}
#bq-live.bq-light .brand-lockup small,#bq-live.bq-light #bq-guidance,#bq-live.bq-light .carousel-heading{color:#493018;text-shadow:none}
@media(min-width:600px){#bq-live .bq-header{max-width:750px}#bq-live .brand-lockup strong{font-size:62px}#bq-live .brand-lockup small{font-size:8px}#bq-live .brand-hat{height:36px;width:85px}#bq-live .character-panel{height:410px}#bq-live #bq-guide{height:390px}#bq-live .instrument-heading h2{font-size:21px}#bq-live #bq-courses button{min-height:39px}#bq-live .bq-course-note{width:31px;height:31px;font-size:22px}#bq-live .bq-course-number{font-size:15px}#bq-live .instrument-card{width:110px;left:calc(50% - 55px);height:167px;transform:translateX(calc(var(--slot)*var(--carousel-step))) translateY(calc(var(--depth)*8px)) translateZ(calc(var(--depth)*-24px)) rotateY(calc(var(--slot)*-15deg)) rotateZ(calc(var(--slot)*3deg)) scale(calc(1 - var(--depth)*.075))}#bq-live .instrument-card svg{height:115px;width:80px}#bq-live #bq-carousel{height:194px}#bq-live .photo-instrument{height:115px}#bq-live .photo-instrument img{width:130px}#bq-live #bq-meter{height:240px}}
@media(orientation:landscape) and (min-width:650px){
 #bq-live .bq-header{min-height:66px}#bq-live .brand-lockup{padding-top:12px}#bq-live .brand-lockup strong{font-size:38px}#bq-live .brand-hat{height:22px;top:-5px}#bq-live .brand-lockup small{font-size:6px}
 #bq-live #bq-tuner{max-width:1000px;display:grid;grid-template-columns:44% minmax(0,56%);gap:2px 8px}
 #bq-live .meter-section{align-self:center}#bq-live #bq-meter{height:165px;width:100%;max-width:380px}
 #bq-live .musician-section{grid-template-columns:61% minmax(0,39%);margin:0}
 #bq-live .character-panel{height:255px}#bq-live #bq-guide{height:239px}
 #bq-live .bq-instrument-panel{padding:10px 7px}#bq-live .instrument-heading h2{font-size:13px}
 #bq-live #bq-courses button{min-height:25px}#bq-live .bq-course-note{width:22px;height:22px;min-width:22px;font-size:15px}#bq-live .bq-course-number{font-size:10px}
 #bq-live .parchment-signoff{display:none}#bq-live .carousel-section{grid-column:1/-1;margin:0}
 #bq-live #bq-carousel{height:120px}#bq-live .instrument-card{height:106px;width:90px;left:calc(50% - 45px)}#bq-live .instrument-card svg,#bq-live .photo-instrument{height:66px}#bq-live .photo-instrument img{width:77px}
 #bq-live .bq-status-row{min-height:26px}#bq-live #bq-measure{display:block}#bq-live .meter-center{top:46%}#bq-live #bq-note{font-size:42px}
 #bq-live .bottom-nav button{min-height:40px}#bq-live .bottom-nav button svg{height:19px}
}
@media(orientation:landscape) and (max-height:500px){
 #bq-live .bq-header{min-height:57px}#bq-live .brand-lockup strong{font-size:33px}#bq-live .brand-lockup strong::after{height:5px;margin-top:3px;border-width:3px}
 #bq-live .character-panel{height:195px}#bq-live #bq-guide{height:180px}#bq-live #bq-guidance{font-size:9px}
 #bq-live .bq-instrument-panel{padding:7px}#bq-live .instrument-heading h2{font-size:11px}#bq-live .tuning-shortcut{font-size:8px;min-height:20px}
 #bq-live #bq-courses{gap:0}#bq-live #bq-courses button{min-height:22px}#bq-live .bq-course-note{width:19px;min-width:19px;height:19px;font-size:14px}#bq-live .bq-course-number{font-size:9px}
 #bq-live #bq-string-heading{margin:4px 0 2px}#bq-live #bq-string button{min-height:22px}
 #bq-live #bq-meter{height:128px;width:240px}#bq-live #bq-note{font-size:32px}#bq-live #bq-cents{font-size:10px}
 #bq-live #bq-carousel{height:91px}#bq-live .instrument-card{height:82px;width:77px;left:calc(50% - 38px)}#bq-live .instrument-card svg,#bq-live .photo-instrument{height:43px}#bq-live .photo-instrument img{width:53px}#bq-live .instrument-card strong{font-size:9px}#bq-live .instrument-card small{display:none}
 #bq-live .carousel-heading{font-size:9px}#bq-live .carousel-heading button{min-height:16px}
 #bq-live .bottom-nav{padding:3px}#bq-live .bottom-nav button{min-height:34px;font-size:9px}#bq-live .bottom-nav button svg{height:17px}
}
@media(prefers-reduced-motion:reduce){#bq-live .instrument-card{transition:none}}
/* Keep the reference composition within an ordinary phone viewport. */
@media(orientation:portrait) and (max-width:599px){
 #bq-live .bq-header{min-height:85px}
 #bq-live #bq-meter{height:170px}
 #bq-live .character-panel{height:270px}
 #bq-live #bq-guide{height:254px}
 #bq-live .bq-instrument-panel{padding:10px 8px 8px}
 #bq-live #bq-courses button{min-height:24px}
 #bq-live .parchment-signoff{display:none}
 #bq-live #bq-carousel{height:140px}
 #bq-live .instrument-card{height:124px}
 #bq-live .instrument-card svg,#bq-live .photo-instrument{height:83px}
 #bq-live .photo-instrument img{width:94px}
 #bq-live .bottom-nav{padding:3px 6px}
 #bq-live .bottom-nav button{min-height:44px}
}
@media(orientation:landscape) and (max-height:500px){
 #bq-live .brand-lockup{max-width:270px}
 #bq-live .character-panel{height:165px}
 #bq-live #bq-guide{height:150px}
 #bq-live .musician-section{align-items:start}
 #bq-live .bq-instrument-panel{padding:5px}
 #bq-live #bq-courses button{min-height:19px}
 #bq-live #bq-string-heading{display:none}
 #bq-live #bq-carousel{height:80px}
 #bq-live .instrument-card{height:73px}
 #bq-live .bottom-nav button{min-height:30px}
 #bq-live .bq-offline{font-size:8px;min-height:15px}
}

/* Direct manipulation: no easing while a finger is down. */
#bq-live #bq-carousel{--carousel-step:67px;user-select:none;-webkit-user-select:none;cursor:grab}
#bq-live #bq-carousel.is-dragging{cursor:grabbing}
#bq-live #bq-carousel.is-dragging .instrument-card{transition:none}
@media(min-width:600px){#bq-live #bq-carousel{--carousel-step:94px}}

