/* Llamas "Build your guitar": section on the page and the full-screen builder.
   Sizes are in px/clamp (the site's rem scales with viewport width). */

/* ---------- section ---------- */
.build {
  position: relative;
  z-index: 100;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #070707;
  color: #f5f0eb;
}
.build-bg {
  position: absolute;
  inset: 0;
}
.build-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 60%;
  opacity: 0.42;
  filter: saturate(0.85);
}
.build-bg:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #070707 18%, rgba(7, 7, 7, 0.7) 52%, rgba(7, 7, 7, 0.25)),
    linear-gradient(0deg, #070707, transparent 30%);
}
.build-inner {
  position: relative;
  max-width: 640px;
  padding: 14vh 6vw;
}
.build-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  color: #d60407;
  font: 600 13px/1 Barlow, Arial, sans-serif;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.build-eyebrow:before {
  content: "";
  width: 56px;
  height: 1px;
  background: currentColor;
}
.build-title {
  margin: 0;
  font: 900 clamp(64px, 9vw, 150px) / 0.9 "Big Shoulders", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.build-text {
  max-width: 44ch;
  margin: 26px 0 34px;
  color: #cfc8c2;
  font: 400 clamp(16px, 1.35vw, 20px) / 1.6 Barlow, Arial, sans-serif;
}
.build-start {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 30px;
  border: 1px solid #d60407;
  background: #d60407;
  color: #fff;
  font: 600 14px/1 Barlow, Arial, sans-serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.build-start:after {
  content: "→";
  letter-spacing: 0;
  transition: transform 0.3s ease;
}
.build-start:hover,
.build-start:focus-visible {
  background: transparent;
}
.build-start:hover:after {
  transform: translateX(4px);
}
.build-note {
  margin: 18px 0 0;
  color: #8f8781;
  font: 400 13px/1.4 Barlow, Arial, sans-serif;
}

/* ---------- builder overlay ----------
   Desktop: choices | guitar | estimate. Narrower screens: the guitar stays pinned at the top while the
   choices and the estimate scroll beneath it, with the total and "Add to enquiry" pinned at the bottom.
   Phone held sideways: guitar on the left, everything else on the right. */
.lb {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  grid-template-columns: minmax(360px, 31%) minmax(0, 1fr) minmax(310px, 25%);
  grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas:
    "top top top"
    "choose stage summary";
  background: radial-gradient(ellipse 45% 70% at 52% 55%, #2a0606, #0b0b0b 62%, #050505);
  color: #f5f0eb;
  font-family: Barlow, Arial, sans-serif;
  opacity: 0;
  transition: opacity 0.45s ease;
  cursor: auto;
}
.lb.is-open {
  opacity: 1;
}
/* closed: removed entirely (display: grid above would otherwise override [hidden]) */
.lb[hidden] {
  display: none;
}
.lb > * {
  min-width: 0;
}
.lb > svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.lb * {
  cursor: inherit;
}
.lb button,
.lb summary,
.lb label {
  cursor: pointer;
}
html.lb-open .custom-cursor {
  display: none;
}

/* header */
.lb-top {
  grid-area: top;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 28px 14px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 8, 8, 0.6);
}
.lb-brand {
  flex: 1;
  min-width: 0;
}
.lb-eyebrow {
  margin: 0 0 8px;
  color: #d60407;
  font: 600 12px/1 Barlow, Arial, sans-serif;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.lb-title {
  margin: 0;
  font: 900 40px/0.95 "Big Shoulders", Impact, sans-serif;
  text-transform: uppercase;
}
.lb-badge {
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(214, 4, 7, 0.6);
  background: rgba(10, 10, 10, 0.75);
  color: #f0e6de;
  font: 600 11px/1.25 Barlow, Arial, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lb-close {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(245, 240, 235, 0.25);
  background: none;
  color: #f5f0eb;
  font-size: 16px;
}
.lb-close:hover {
  border-color: #d60407;
  color: #fff;
}

/* the two scrolling panels share one wrapper on narrow screens; on desktop it disappears */
.lb-scroll {
  display: contents;
}

/* left: the choices */
.lb-choose {
  grid-area: choose;
  min-height: 0;
  overflow: auto;
  padding: 0 24px 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(12, 12, 12, 0.86);
}
.lb-notice {
  position: sticky;
  top: 0;
  z-index: 3;
  display: none;
  margin: 0 -24px 6px;
  padding: 12px 24px;
  border-left: 3px solid #d60407;
  background: #240707;
  color: #fff;
  font-size: 14px;
  line-height: 1.45;
}
.lb-notice.is-on {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.lb-notice-text {
  flex: 1;
}
.lb-notice-x {
  flex: none;
  width: 32px;
  height: 32px;
  margin: -6px -8px 0 0;
  border: 0;
  background: none;
  color: #e9e2dc;
  font-size: 14px;
}
.lb-sec {
  padding-top: 26px;
}
.lb-sec-title {
  margin: 0 0 4px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #d60407;
  font: 600 12px/1 Barlow, Arial, sans-serif;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.lb-group {
  min-width: 0;
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}
/* a legend ignores its fieldset padding; floating it makes it behave like an ordinary heading */
.lb-legend-h {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 8px;
  font: 900 26px/1 "Big Shoulders", Impact, sans-serif;
  text-transform: uppercase;
}
.lb-legend-h + * {
  clear: both;
}
.lb-hint {
  margin: 0 0 14px;
  color: #b8b0aa;
  font-size: 14px;
  line-height: 1.5;
}
.lb-hint-sel {
  margin: 12px 0 0;
  color: #e9e2dc;
}
.lb-opts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 18px 8px;
}
.lb-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 4px 2px;
  border: 0;
  background: none;
  color: #cfc8c2;
  text-align: center;
}
.lb-swatch {
  display: block;
  width: 64px;
  aspect-ratio: 1;
  border-radius: 50%;
  background-size: 260% auto;
  background-position: 50% 45%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 -12px 20px rgba(0, 0, 0, 0.32), 0 6px 18px rgba(0, 0, 0, 0.55);
  outline: 2px solid transparent;
  outline-offset: 4px;
  transition: outline-color 0.25s ease, transform 0.25s ease;
}
.lb-swatch.is-none {
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 6px, transparent 6px 12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.lb-opt:hover .lb-swatch {
  transform: scale(1.05);
}
.lb-opt[aria-checked="true"] .lb-swatch {
  outline-color: #d60407;
}
.lb-opt-name {
  font: 600 14px/1.2 Barlow, Arial, sans-serif;
}
.lb-opt[aria-checked="true"] .lb-opt-name {
  color: #fff;
}
.lb-opt-price {
  color: #d7ccc4;
  font: 600 12px/1 Barlow, Arial, sans-serif;
}
.lb-opt-price.is-zero {
  color: #8f8781;
  font-weight: 400;
}
.lb-opt-why {
  color: #c98a8a;
  font: 600 11px/1.2 Barlow, Arial, sans-serif;
}
.lb-opts-colour {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px 8px;
}
.lb-opt-colour {
  flex-direction: row;
  justify-content: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 6px 8px;
  border: 1px solid rgba(245, 240, 235, 0.14);
  text-align: left;
}
.lb-opt-colour[aria-checked="true"] {
  border-color: #d60407;
  background: rgba(214, 4, 7, 0.14);
}
.lb-opt-colour .lb-opt-name {
  font-size: 13px;
}
.lb-dot {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}
.lb-dot.is-other {
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 4px, transparent 4px 8px) !important;
}
.lb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lb-chip {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(245, 240, 235, 0.22);
  background: none;
  color: #cfc8c2;
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.lb-chip:hover {
  border-color: rgba(245, 240, 235, 0.5);
}
.lb-chip[aria-checked="true"] {
  border-color: #d60407;
  background: rgba(214, 4, 7, 0.16);
  color: #fff;
}
.lb-chip-name {
  font: 600 14px/1.2 Barlow, Arial, sans-serif;
}
.lb-chip .lb-opt-price {
  margin-left: auto;
}
.is-disabled {
  opacity: 0.45;
}
.lb-chip.is-disabled:hover {
  border-color: rgba(245, 240, 235, 0.22);
}
.lb-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  color: #dcd4cd;
  font-size: 14px;
  line-height: 1.45;
}
.lb-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: #d60407;
}

/* centre: the guitar */
.lb-stage {
  grid-area: stage;
  position: relative;
  min-height: 0;
  overflow: hidden;
}
.lb-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  cursor: zoom-in;
}
.lb-viewport.is-zoomed {
  cursor: grab;
}
.lb-zoom {
  position: absolute;
  inset: 0;
  transition: transform 0.25s ease-out;
  transform-origin: 50% 50%;
}
.lb-flip {
  position: absolute;
  inset: 3% 2% 128px; /* the guitar stays clear of the view controls and the legend */
  transform-style: preserve-3d;
  transition: transform 1s cubic-bezier(0.65, 0, 0.35, 1);
  perspective: 1600px;
}
.lb-flip.is-back {
  transform: rotateY(180deg);
}
.lb-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.lb-back {
  transform: rotateY(180deg);
}
/* wide screens: front and back side by side, so every choice is visible without flipping */
@media (min-width: 801px), (orientation: landscape) {
  .lb-flip,
  .lb-flip.is-back {
    transform: none;
  }
  .lb-face {
    width: 50%;
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
  }
  .lb-front {
    left: 0;
  }
  .lb-back {
    left: 50%;
    transform: none;
  }
  .lb-face:before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    right: 0;
    bottom: -30px;
    text-align: center;
    color: #a39b95;
    font: 600 11px/1 Barlow, Arial, sans-serif;
    letter-spacing: 0.22em;
    text-transform: uppercase;
  }
  .lb-seg-view {
    display: none !important;
  }
}
.lb-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.lb-frets line {
  stroke: #d9d9d9;
  stroke-width: 1.6;
}
.lb-strings line {
  stroke: #e6e6e6;
}
.lb-strings .lb-str-shadow {
  stroke: #000;
  opacity: 0.35;
}
.lb-lum {
  fill: #d9ffd1;
  filter: drop-shadow(0 0 3px rgba(190, 255, 170, 0.9));
}
.lb-ghost-line {
  fill: none;
  stroke: rgba(233, 226, 220, 0.8);
  stroke-width: 1.4;
  stroke-dasharray: 4 3;
}
/* fittings that aren't confirmed yet: drawn as dashed placeholders */
.lb-ghost * {
  fill: rgba(255, 255, 255, 0.05);
  stroke: var(--ink, rgba(233, 226, 220, 0.8));
  stroke-width: 1.4;
  stroke-dasharray: 4 3;
}
.lb-ghost-pu .lb-pu {
  stroke: rgba(233, 226, 220, 0.8);
}
.lb-part.is-changed {
  animation: lbChange 0.8s ease;
}
@keyframes lbChange {
  0% {
    opacity: 0.4;
    filter: brightness(1.5);
  }
  to {
    opacity: 1;
    filter: none;
  }
}
.lb-view {
  position: absolute;
  left: 50%;
  bottom: 62px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}
.lb-seg {
  display: flex;
  border: 1px solid rgba(245, 240, 235, 0.25);
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(8px);
}
.lb-seg button {
  min-width: 46px;
  padding: 11px 16px;
  border: 0;
  background: none;
  color: #e9e2dc;
  font: 600 12px/1 Barlow, Arial, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.lb-seg button + button {
  border-left: 1px solid rgba(245, 240, 235, 0.15);
}
.lb-seg button.is-on {
  background: #d60407;
  color: #fff;
}
.lb-seg button:hover {
  color: #fff;
}
.lb-legend {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 14px;
  margin: 0;
  text-align: center;
  color: #8f8781;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.02em;
}
.lb-legend-lead {
  display: none;
  color: #e9e2dc;
  font-weight: 600;
}
.lb-legend-dash {
  display: inline-block;
  width: 22px;
  margin-right: 8px;
  border-top: 2px dashed rgba(233, 226, 220, 0.75);
  vertical-align: middle;
}

/* right: the estimate */
.lb-summary {
  grid-area: summary;
  min-height: 0;
  overflow: auto;
  padding: 24px 24px 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(12, 12, 12, 0.86);
}
.lb-sum-title {
  margin: 0 0 4px;
  font: 900 34px/1 "Big Shoulders", Impact, sans-serif;
  text-transform: uppercase;
}
.lb-sum-id {
  margin: 0 0 14px;
  color: #8f8781;
  font: 600 11px/1 Barlow, Arial, sans-serif;
  letter-spacing: 0.18em;
}
.lb-sum-list {
  margin: 0;
}
.lb-sum-row {
  display: grid;
  gap: 3px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.lb-sum-row dt {
  color: #8f8781;
  font: 600 10px/1 Barlow, Arial, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.lb-sum-row dd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}
.lb-sum-price {
  flex: none;
  color: #f5f0eb;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.lb-sum-price.is-zero {
  color: #8f8781;
  font-weight: 400;
}
.lb-sum-total {
  margin: 14px 0 12px;
}
.lb-sum-total p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 6px;
  color: #cfc8c2;
  font-size: 14px;
}
.lb-sum-total .is-grand {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(214, 4, 7, 0.6);
  color: #fff;
}
.lb-sum-total .is-grand strong {
  font: 900 32px/1 "Big Shoulders", Impact, sans-serif;
}
.lb-sum-fine,
.lb-saved {
  margin: 0 0 12px;
  color: #8f8781;
  font-size: 12.5px;
  line-height: 1.5;
}
.lb-incl {
  margin: 0 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #cfc8c2;
  font-size: 13px;
}
.lb-incl summary {
  padding: 12px;
  font: 600 11px/1 Barlow, Arial, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.lb-incl ul {
  margin: 0;
  padding: 0 12px 12px 28px;
  line-height: 1.5;
}
.lb-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.lb-actions button {
  min-height: 46px;
  padding: 14px 20px;
  border: 1px solid rgba(245, 240, 235, 0.3);
  background: none;
  color: #f5f0eb;
  font: 600 12px/1 Barlow, Arial, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.lb-enquire {
  border-color: #d60407 !important;
  background: #d60407 !important;
}
.lb-copied {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: #e9e2dc;
  font-size: 14px;
}
.lb-bar {
  display: none;
}
.lb button:focus-visible,
.lb summary:focus-visible,
.lb input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.lb-opt:focus-visible {
  outline: none;
}
.lb-opt:focus-visible .lb-swatch {
  outline-color: #fff;
}

/* narrower than a laptop: the guitar stays at the top, the rest scrolls beneath it */
@media (max-width: 1179px) {
  .lb {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .lb-top {
    flex: none;
    gap: 14px;
    padding: 12px 16px 10px 18px;
  }
  .lb-title {
    font-size: 30px;
  }
  .lb-stage {
    position: sticky;
    top: 0;
    z-index: 5;
    flex: none;
    height: clamp(260px, 42vh, 460px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(ellipse 60% 80% at 50% 50%, #2a0606, #0b0b0b 70%);
  }
  .lb-scroll {
    display: block;
    flex: none;
  }
  .lb-choose,
  .lb-summary {
    overflow: visible;
    border: 0;
  }
  .lb-choose {
    padding: 0 18px 8px;
  }
  .lb-notice {
    top: clamp(260px, 42vh, 460px);
    margin: 0 -18px 6px;
    padding: 10px 18px;
  }
  .lb-summary {
    padding: 22px 18px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .lb-bar {
    position: sticky;
    bottom: 0;
    z-index: 6;
    display: flex;
    flex: none;
    align-items: center;
    gap: 14px;
    padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(214, 4, 7, 0.5);
    background: rgba(8, 8, 8, 0.96);
  }
  .lb-bar-total {
    display: grid;
    flex: 1;
    gap: 3px;
    margin: 0;
  }
  .lb-bar-total span {
    color: #a39b95;
    font: 600 10px/1 Barlow, Arial, sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }
  .lb-bar-total strong {
    font: 900 26px/1 "Big Shoulders", Impact, sans-serif;
  }
  .lb-bar button {
    flex: none;
    min-height: 46px;
    padding: 12px 20px;
    border: 0;
    color: #fff;
    font: 600 12px/1 Barlow, Arial, sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
  /* the summary's own enquiry button repeats the bar's */
  .lb-summary .lb-enquire {
    display: none;
  }
}

/* phone upright */
@media (max-width: 800px) and (orientation: portrait) {
  .lb-eyebrow,
  .lb-badge {
    display: none;
  }
  .lb-title {
    font-size: 26px;
  }
  .lb-stage {
    height: clamp(230px, 36vh, 340px);
  }
  .lb-notice {
    top: clamp(230px, 36vh, 340px);
  }
  .lb-flip {
    inset: 2% 0 54px;
  }
  .lb-view {
    bottom: 8px;
    gap: 8px;
  }
  .lb-seg button {
    min-width: 40px;
    padding: 10px 12px;
    font-size: 11px;
  }
  .lb-legend {
    top: 8px;
    bottom: auto;
    left: 12px;
    right: auto;
    max-width: 44%;
    font-size: 10px;
    text-align: left;
  }
  .lb-legend-more {
    display: none;
  }
  .lb-legend-lead {
    display: block;
  }
  .lb-legend-dash {
    width: 16px;
    margin-right: 6px;
  }
  .lb-opts {
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  }
  .lb-opts.lb-opts-colour {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lb-swatch {
    width: 56px;
  }
  .lb-legend-h {
    font-size: 24px;
  }
}
/* tablet upright: the badge is smaller */
@media (min-width: 801px) and (max-width: 1179px) {
  .lb-badge {
    font-size: 10px;
  }
}

/* phone held sideways: guitar on the left, the rest on the right */
@media (orientation: landscape) and (max-height: 600px) and (max-width: 1179px) {
  .lb {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "top top"
      "stage scroll"
      "stage bar";
    overflow: hidden;
  }
  .lb-top {
    padding: 6px 12px 6px 16px;
  }
  .lb-eyebrow,
  .lb-badge {
    display: none;
  }
  .lb-title {
    font-size: 22px;
  }
  .lb-close {
    width: 40px;
    height: 40px;
  }
  .lb-stage {
    grid-area: stage;
    position: relative;
    height: auto;
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.07);
  }
  .lb-scroll {
    grid-area: scroll;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .lb-bar {
    grid-area: bar;
    position: static;
  }
  .lb-notice {
    top: 0;
  }
  .lb-flip {
    inset: 10px 0 58px;
  }
  .lb-face:before {
    bottom: -16px;
    font-size: 8px;
    letter-spacing: 0.1em;
  }
  .lb-view {
    bottom: 22px;
  }
  .lb-seg button {
    min-width: 34px;
    padding: 6px 10px;
    font-size: 10px;
  }
  .lb-legend {
    left: 8px;
    right: 8px;
    bottom: 4px;
    font-size: 9px;
  }
  .lb-legend-lead {
    display: inline;
  }
  .lb-legend-more {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lb-flip,
  .lb-zoom,
  .lb {
    transition: none;
  }
  .lb-part.is-changed {
    animation: none;
  }
}

/* ---------- 360° turn: a conceptual turntable (js/builder.js) ----------
   The front and back drawings sit back to back with a thin slab of slices between them. */
.lb-zoom {
  perspective: 1500px;
}
.lb-flip {
  perspective: none;
}
.lb-edges {
  display: none;
}
.lb-flip.is-turn {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: none;
  will-change: transform;
}
.lb-flip.is-turn .lb-face {
  left: 20%;
  width: 60%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.lb-flip.is-turn .lb-front {
  transform: translateZ(var(--zf, 11px));
}
.lb-flip.is-turn .lb-back {
  transform: rotateY(180deg) translateZ(var(--zf, 11px));
}
.lb-flip.is-turn .lb-edges {
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
  pointer-events: none;
}
.lb-edges-in {
  position: absolute;
  left: 0;
  top: 0;
  width: 400px;
  height: 1000px;
  transform-origin: 0 0;
  transform-style: preserve-3d;
}
.lb-wall {
  position: absolute;
  left: 0;
  display: block;
  transform-origin: 0 50%;
  background: color-mix(in srgb, var(--edge, #b8906a) calc(var(--s, 1) * 100%), #000);
}
.lb.is-turning .lb-face:before {
  display: none;
}
.lb.is-turning .lb-seg-view {
  display: flex !important;
}
.lb-viewport.is-turn-view {
  cursor: grab;
}
.lb-viewport.is-turn-view.is-grabbing {
  cursor: grabbing;
}
.lb-viewport:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}
/* mode switch and the first-use hint */
.lb-mode {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 4;
  padding: 10px 14px;
  border: 1px solid rgba(245, 240, 235, 0.25);
  background: rgba(10, 10, 10, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #e9e2dc;
  font: 600 11px/1 Barlow, Arial, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.lb-mode:hover,
.lb-mode:focus-visible {
  border-color: #d60407;
  color: #fff;
}
.lb-drag-hint {
  position: absolute;
  left: 50%;
  bottom: 118px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 9px 14px 9px 12px;
  border: 1px solid rgba(214, 4, 7, 0.55);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.78);
  color: #f5f0eb;
  font: 600 11px/1 Barlow, Arial, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  translate: -50% 0;
  opacity: 1;
  transition: opacity 0.6s ease, translate 0.6s ease;
}
.lb-drag-hint i {
  width: 22px;
  height: 8px;
  border-top: 2px solid #d60407;
  border-bottom: 0;
  border-radius: 8px;
  position: relative;
  animation: lbHint 1.8s ease-in-out infinite alternate;
}
.lb-drag-hint i:before,
.lb-drag-hint i:after {
  content: "";
  position: absolute;
  top: -5px;
  width: 7px;
  height: 7px;
  border-top: 2px solid #d60407;
}
.lb-drag-hint i:before {
  left: -1px;
  border-left: 2px solid #d60407;
  rotate: -45deg;
}
.lb-drag-hint i:after {
  right: -1px;
  border-right: 2px solid #d60407;
  rotate: 45deg;
}
@keyframes lbHint {
  to {
    translate: 8px 0;
  }
}
.lb-drag-hint.is-gone,
.lb:not(.is-turning) .lb-drag-hint {
  opacity: 0;
  translate: -50% 8px;
}
@media (max-width: 800px) and (orientation: portrait) {
  .lb-mode {
    top: 8px;
    right: 10px;
    padding: 8px 10px;
    font-size: 10px;
  }
  .lb-drag-hint {
    bottom: 64px;
    font-size: 10px;
    padding: 8px 12px 8px 10px;
  }
}
@media (orientation: landscape) and (max-height: 600px) and (max-width: 1179px) {
  .lb-mode {
    top: 8px;
    right: 8px;
    padding: 6px 9px;
    font-size: 9px;
  }
  .lb-drag-hint {
    bottom: 70px;
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lb-drag-hint i {
    animation: none;
  }
}
.lb-core {
  position: absolute;
  left: 20%;
  top: 0;
  width: 60%;
  height: 100%;
  overflow: visible;
}
.lb-core path {
  fill: color-mix(in srgb, var(--edge, #b8906a) 80%, #000);
}

/* ---------- 3D model (js/lou-3d.js) ----------
   Shown whenever WebGL works; the drawing and its turntable above remain as the fallback. */
.lb-gl {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: calc(100% - var(--lb-gl-pad, 118px)); /* clear of the view controls and legend */
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease;
  touch-action: none;
}
.lb.is-gl-ready .lb-gl {
  opacity: 1;
}
.lb.is-gl .lb-zoom,
.lb.is-gl .lb-mode,
.lb.is-gl .lb-legend-dash {
  display: none;
}
.lb.is-gl-loading .lb-stage::after {
  content: "Preparing the 3D model…";
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translateX(-50%);
  color: #cfc6bf;
  font: 600 11px/1 Barlow, Arial, sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .lb-gl {
    transition: none;
  }
}
.lb.is-gl .lb-legend {
  pointer-events: none;
}
@media (max-width: 800px) and (orientation: portrait) {
  .lb.is-gl .lb-gl {
    --lb-gl-pad: 56px;
  }
  .lb.is-gl .lb-legend {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 58px;
    max-width: none;
    text-align: left;
    font-size: 11px;
    display: none;
  }
}
@media (max-width: 800px) and (orientation: portrait) {
  .lb.is-gl .lb-stage {
    height: clamp(300px, 46vh, 460px);
  }
  .lb.is-gl .lb-notice {
    top: clamp(300px, 46vh, 460px);
  }
}

/* ---------- studio front and back views (js/lou-2d.js) ---------- */
/* while the studio view loads, show nothing rather than flashing the fallback drawing */
.lb.is-preparing .lb-flip,
.lb.is-preparing .lb-legend,
.lb.is-preparing .lb-view {
  visibility: hidden;
}
.lb-photo {
  display: none;
}
.lb.is-photo .lb-flip {
  display: none;
}
.lb.is-photo .lb-photo {
  position: absolute;
  inset: 62px 1.5% 40px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2%;
}
.lb-ph {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.lb-photo.is-ready .lb-ph {
  opacity: 1;
}
.lb-photo[data-view="front"] .lb-ph-back,
.lb-photo[data-view="back"] .lb-ph-front {
  display: none;
}
.lb.is-photo .lb-drag-hint,
.lb.is-photo .lb-mode {
  display: none;
}
.lb.is-photo .lb-mode:not([hidden]),
.lb.is-gl .lb-mode:not([hidden]) {
  display: block;
}
/* the controls sit above the guitar, never over it */
.lb.is-photo .lb-view {
  top: 10px;
  bottom: auto;
}
.lb.is-photo .lb-legend {
  bottom: 8px;
  pointer-events: none;
  font-size: 11.5px;
}
.lb.is-gl .lb-view {
  top: 10px;
  bottom: auto;
}
.lb.is-gl .lb-gl {
  top: 56px;
  height: calc(100% - 56px - 64px);
}
.lb.is-gl .lb-legend {
  bottom: 8px;
}
/* ---------- "What changes the image?" ---------- */
.lb-note-tag {
  position: absolute;
  top: 62px;
  left: 12px;
  z-index: 7;
}
.lb-note-tag[hidden], .lb-note-panel[hidden] { display: none; }
.lb-note-more {
  padding: 5px 9px;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #cfcfcf;
  background: rgba(10, 10, 10, 0.7);
  border: 1px solid #4a4a4a;
  cursor: pointer;
}
.lb-note-panel {
  position: absolute;
  top: 98px;
  left: 12px;
  z-index: 7;
  width: min(430px, calc(100% - 24px));
  max-height: calc(100% - 160px);
  overflow: auto;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.4;
  color: #ddd;
  background: rgba(8, 8, 8, 0.94);
  border: 1px solid #b3141a;
}
.lb-note-panel h4 { margin: 10px 0 4px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.lb-note-panel h4.ok { color: #7bd88f; }
.lb-note-panel h4.ap { color: #e8c15a; }
.lb-note-panel h4.no { color: #ff6b6b; }
.lb-note-panel ul { margin: 0; padding-left: 16px; }
.lb-note-panel li { margin: 0 0 3px; }
.lb-note-lead { margin: 0; }
@media (max-width: 800px) and (orientation: portrait) {
  .lb-note-tag { top: 6px; left: 6px; }
  .lb-note-panel { top: 42px; left: 6px; max-height: calc(100% - 110px); }
}
@media (max-width: 800px) and (orientation: portrait) {
  .lb.is-photo .lb-photo {
    inset: 6px 2% 54px;
  }
  .lb.is-photo .lb-view,
  .lb.is-gl .lb-view {
    top: auto;
    bottom: 8px;
  }
  .lb.is-gl .lb-gl {
    top: 0;
    height: calc(100% - 56px);
  }
  .lb.is-photo .lb-legend {
    display: none;
  }
  .lb.is-photo .lb-stage,
  .lb.is-gl .lb-stage {
    height: clamp(320px, 50vh, 480px);
  }
  .lb.is-photo .lb-notice,
  .lb.is-gl .lb-notice {
    top: clamp(320px, 50vh, 480px);
  }
}
.lb.is-gl .lb-view-both {
  display: none;
}
.lb.is-photo .lb-mode:not([hidden]),
.lb.is-gl .lb-mode:not([hidden]) {
  top: 62px;
  right: 14px;
}

/* ---------- finding the colours ---------- */
.lb-jump {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 8px 0 12px;
  background: #0a0a0a;
}
.lb-jump-btn {
  padding: 5px 9px;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #d6d6d6;
  background: transparent;
  border: 1px solid #3d3d3d;
  cursor: pointer;
}
.lb-jump-btn:hover,
.lb-jump-btn:focus-visible {
  color: #fff;
  border-color: #e1262d;
}
.lb-cat {
  margin-top: 14px;
}
.lb-cat-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #eee;
}
.lb-hint-pick {
  color: #ff8f8f;
}
.lb-colour-nudge {
  position: absolute;
  left: 50%;
  bottom: 52px;
  z-index: 6;
  margin: 0;
  padding: 6px 12px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 12px;
  color: #fff;
  background: rgba(120, 12, 16, 0.92);
  border: 1px solid #e1262d;
  pointer-events: none;
}
.lb-colour-nudge[hidden] {
  display: none;
}
@media (max-width: 800px) and (orientation: portrait) {
  .lb-colour-nudge {
    bottom: 60px;
    font-size: 11px;
  }
}

/* a saved body wood that is no longer offered: the body list asks for a new choice */
.lb-group.is-needed {
  outline: 1px solid rgba(214, 4, 7, 0.65);
  outline-offset: 8px;
}
.lb-hint-needed {
  color: #ff8a80;
  font-weight: 600;
}
