#hf-scene .bg-library { color:#4c424c; font-variant-numeric:tabular-nums; }
.bg-ticket { display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap; font-size:.8rem; }
.bg-ticket span { display:inline-flex; gap:6px; align-items:baseline; }
.bg-ticket b { color:#503254; font-size:1rem; }
.bg-shelf { display:flex; align-items:stretch; justify-content:center; gap:clamp(3px,1.6vw,10px); padding:17px 8px 0;
  margin:9px 0 12px; border:1px solid #cfb59d; border-radius:32px 32px 8px 8px;
  background:linear-gradient(to bottom,#fff5df 0%,#f3e1c4 calc(100% - 23px),#be926f calc(100% - 23px),#d3a981 calc(100% - 20px),#ebcaa4 100%); }
.bg-lane { display:flex; flex:1 1 0; max-width:65px; min-width:0; flex-direction:column; align-items:stretch; justify-content:flex-end; }
.bg-spine { position:relative; display:flex; height:92px; min-width:0; gap:5px; flex-direction:column; align-items:center; justify-content:flex-end;
  padding:9px 2px 7px; border:1.5px solid #826d69; border-left-width:3px; border-radius:5px 8px 2px 2px;
  box-shadow:inset 3px 0 0 #ffffff50,inset 0 -3px 0 #6a4c491e; }
.bg-spine::before { content:""; position:absolute; left:2px; right:3px; top:5px; border-top:2px solid #fff8; }
.bg-spine svg { width:min(100%,40px); height:25px; stroke:#6b645d; stroke-width:1.5; stroke-linejoin:round; stroke-linecap:round; }
.bg-spine b,.bg-spine strong { display:grid; place-items:center; width:28px; height:24px; background:#fffcf3; border:1px solid #b1a495; border-radius:4px; font:bold 18px/1 Georgia,serif; }
.bg-tone-1 {height:76px; background:#c9b5d8}.bg-tone-2 {height:88px;background:#a9cdbf}.bg-tone-3 {height:83px;background:#e7b09d}
.bg-tone-4 {height:95px;background:#e9d093}.bg-tone-5 {height:81px;background:#b6cda8}.bg-tone-6 {height:90px;background:#afc9db}
.bg-label { text-align:center; color:#513e31; height:23px; font-size:.78rem; line-height:23px; }
.bg-control-label {display:flex; justify-content:space-between; font-size:.77rem; font-weight:650; margin:0 2px 6px; color:#625963;}
.bg-gates {display:grid; gap:6px;}
#hf-scene .bg-gate {min-height:47px; display:flex; align-items:center; justify-content:space-between; gap:5px; border-radius:11px;
  padding:5px 9px; background:#fffcf7; color:#493748; border:1px solid #a78e9c; box-shadow:0 2px 0 #ded2d2; text-align:left; touch-action:manipulation; }
#hf-scene .bg-gate:not(:disabled):active {background:#f6e4ef;}
#hf-scene .bg-gate:disabled {opacity:.72;background:#f4eee8;box-shadow:none;}
.bg-pairs {font-weight:650; font-size:.86rem; line-height:1.4;}
.bg-preview {display:flex;gap:2px;flex-shrink:0;}
.bg-preview b {min-width:17px; line-height:24px; text-align:center; font-size:.84rem; border-radius:3px; background:#f1ece7;}
.bg-preview .bg-moved {color:#512d53;background:#eed9ed;text-decoration:underline;text-underline-offset:3px;}
@media(max-width:360px){#hf-scene .bg-gate {padding-inline:5px;}.bg-pairs {font-size:.76rem;}.bg-preview b {min-width:15px;}}
