/* ==========================================================================
   MELODY — product page (configurator). Builds on styles.css tokens.
   ========================================================================== */

.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--cocoa-3); padding: var(--s-4) 0 var(--s-5); }
.crumbs a { color: var(--cocoa-2); }
.crumbs a:hover { color: var(--cocoa); text-decoration: underline; text-underline-offset: 3px; }

.pdp { padding-bottom: var(--s-10); }
.pdp__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7); align-items: start; }
.pdp__grid > * { min-width: 0; }
@media (min-width: 980px) {
  .pdp__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: var(--s-8); }
  .gallery { position: sticky; top: calc(var(--header-h) + 16px); }
}

/* ---------- Gallery ---------- */
.gallery__stage {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--linen); box-shadow: var(--shadow-float);
}
@media (min-width: 980px) { .gallery__stage { max-height: calc(100vh - var(--header-h) - 150px); margin-inline: auto; } }
.gallery__slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease-out), visibility .6s; }
.gallery__slide.is-active { opacity: 1; visibility: visible; }
.gallery__slide picture, .gallery__slide img, .gallery__slide video { width: 100%; height: 100%; object-fit: cover; }
.gallery__slide[data-slide="2"] img { object-position: 18% 50%; }
/* Current clip has letterbox bars baked in — see .demo__frame on the homepage */
.gallery__slide--video video { transform: scale(1.34); }
.gallery__slide--wrap { display: grid; place-items: center; background: radial-gradient(70% 60% at 50% 45%, #FFF7EA, var(--blush) 75%, #D9BBAA); }
.gallery__slide--wrap .ph-tag { top: auto; bottom: 16px; right: 16px; }
.gallery__count {
  position: absolute; right: 16px; top: 16px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-variant-numeric: tabular-nums;
  background: rgba(251,248,243,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.gallery__thumbs { display: flex; gap: 10px; margin-top: var(--s-4); overflow-x: auto; scrollbar-width: none; padding: 4px; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumbs button {
  position: relative; flex: none; width: 64px; height: 80px; border-radius: 12px; overflow: hidden;
  background: var(--linen); outline-offset: 2px; opacity: .65; transition: opacity .2s, box-shadow .2s;
  display: grid; place-items: center;
}
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button:hover { opacity: 1; }
.gallery__thumbs button.is-active { opacity: 1; box-shadow: 0 0 0 2px var(--cream), 0 0 0 3.5px var(--cocoa); }
.gallery__thumb--video svg { position: absolute; width: 22px; height: 22px; fill: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.gallery__thumb--wrap { background: var(--blush) !important; }

/* ---------- Gift box illustration (until a real photo exists) ---------- */
.giftbox {
  --w: 200px;
  position: relative; width: var(--w); aspect-ratio: 1 / .78; display: block;
  background:
    linear-gradient(90deg, transparent 43%, #8E3B1C 43% 57%, transparent 57%),
    radial-gradient(circle at 20% 30%, rgba(205,174,132,.45) 0 2px, transparent 3px) 0 0 / 22px 22px,
    linear-gradient(160deg, #FBF6EE, #EFE3D2);
  border-radius: calc(var(--w) * .03);
  box-shadow: 0 calc(var(--w) * .12) calc(var(--w) * .2) calc(var(--w) * -.08) rgba(60,35,20,.4), inset 0 -6px 12px rgba(120,80,50,.08);
  margin-top: calc(var(--w) * .2);
}
.giftbox__lid {
  position: absolute; left: -4%; right: -4%; top: -14%; height: 24%;
  border-radius: calc(var(--w) * .025);
  background:
    linear-gradient(90deg, transparent 43%, #A44B1D 43% 57%, transparent 57%),
    linear-gradient(180deg, #FFFBF4, #F0E4D3);
  box-shadow: 0 4px 8px rgba(60,35,20,.18);
}
.giftbox__bow { position: absolute; left: 50%; top: -14%; width: 0; height: 0; }
.giftbox__bow::before, .giftbox__bow::after {
  content: ""; position: absolute; bottom: -2px; width: calc(var(--w) * .26); height: calc(var(--w) * .17);
  border: calc(var(--w) * .045) solid #A44B1D; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.25);
}
.giftbox__bow::before { right: 0; transform: rotate(-18deg); transform-origin: bottom right; }
.giftbox__bow::after { left: 0; transform: rotate(18deg); transform-origin: bottom left; }
.giftbox--lg { --w: clamp(170px, 24vw, 300px); }
.giftbox--sm { --w: 64px; flex: none; margin-top: 10px; }
.giftbox--xs { --w: 38px; margin-top: 8px; }

/* ---------- Buy box ---------- */
.buy { min-width: 0; }
.buy .eyebrow { margin-bottom: var(--s-3); }
.buy__title {
  margin: 0; font-family: var(--serif); font-weight: 350; letter-spacing: -0.02em; line-height: 1;
  font-size: clamp(2.6rem, 2rem + 2.4vw, 3.8rem); font-variation-settings: "SOFT" 100, "opsz" 144;
}
.buy__sub { margin: var(--s-3) 0 0; color: var(--cocoa-2); font-size: 1.08rem; }
.buy__price { display: flex; align-items: baseline; gap: 12px; margin-top: var(--s-5); }
.buy__total { font-family: var(--serif); font-size: 2rem; font-variation-settings: "SOFT" 100, "opsz" 48; font-variant-numeric: tabular-nums; }
.buy__was { color: var(--cocoa-3); text-decoration: line-through; }
/* Order deadline callout */
.deadline { display: flex; gap: 14px; align-items: flex-start; margin-top: var(--s-4); padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(201,102,47,.09); border: 1px solid rgba(164,75,29,.28); }
.deadline__icon { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ember-ink); color: var(--paper); }
.deadline__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.deadline p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--cocoa-2); }
.deadline b { display: block; margin-bottom: 2px; font-size: 16px; font-weight: 600; color: var(--ember-ink); }
.deadline strong { color: var(--cocoa); font-weight: 600; }

.step { border: 0; margin: var(--s-7) 0 0; padding: var(--s-6) 0 0; border-top: 1px solid var(--line); min-width: 0; position: relative; }
/* float takes the legend out of the fieldset border, so the divider sits above it */
.step__legend { float: left; width: 100%; }
.step > *:not(.step__legend) { clear: both; }
.step__legend { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: var(--s-4); font-family: var(--serif); font-size: 1.4rem; font-variation-settings: "SOFT" 100, "opsz" 36; }
.step__no { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--cocoa); color: var(--paper); font-family: var(--sans); font-size: 14px; font-weight: 600; flex: none; }

.choices { display: grid; gap: var(--s-3); }
@media (min-width: 560px) { .choices--2 { grid-template-columns: 1fr 1fr; } }

.choice {
  position: relative; display: flex; align-items: center; gap: var(--s-4);
  padding: 16px 18px; min-height: 72px; border-radius: var(--radius);
  border: 1.5px solid var(--line-strong); background: var(--paper); cursor: pointer;
  transition: border-color .2s, box-shadow .3s var(--ease-out), background-color .2s;
}
.choice:hover { border-color: var(--cocoa-3); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked) { border-color: var(--cocoa); background: #fff; box-shadow: 0 0 0 4px rgba(205,174,132,.28); }
.choice:has(input:focus-visible) { outline: 2px solid var(--ember-ink); outline-offset: 3px; }
.choice__body { display: grid; gap: 2px; line-height: 1.35; min-width: 0; flex: 1; }
.choice__title { font-weight: 600; }
.choice__desc { font-size: 14px; color: var(--cocoa-2); }
.choice__price { margin-left: auto; font-family: var(--serif); font-size: 1.1rem; white-space: nowrap; text-align: right; font-variation-settings: "SOFT" 100, "opsz" 24; }
.choice__price s { display: block; font-family: var(--sans); font-size: 12.5px; color: var(--cocoa-3); }
.choice__badge { position: absolute; top: -11px; right: 16px; padding: 3px 10px; border-radius: 999px; background: var(--ember-ink); color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: .03em; }
.choices--2 .choice { flex-wrap: wrap; align-content: center; }

/* radio dot / check drawn in the corner of selected cards */
.choice::after {
  content: ""; position: absolute; top: 50%; left: -1px; width: 4px; height: 0; border-radius: 0 4px 4px 0; background: var(--cocoa);
  translate: 0 -50%; transition: height .3s var(--ease-out);
}
.choice:has(input:checked)::after { height: 44%; }

.choice__icon { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--gold); }
.choice__icon img { width: 44px; height: 44px; border-radius: 50%; clip-path: circle(47%); }
.choice__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.choice--music:has(input:checked) .choice__icon img { animation: spin 5.4s linear infinite; }

/* Short song peek under the Christmas option */
.songs-peek { margin: -4px 0 var(--s-2); padding: 12px 16px; border-radius: var(--radius); background: var(--cream); }
.songs-peek__discs { display: flex; }
.songs-peek__discs img { width: 30px; height: 30px; border-radius: 50%; clip-path: circle(47%); margin-right: -8px; box-shadow: 0 0 0 2px var(--cream); }
.songs-peek p { margin: 8px 0 0; font-size: 13.5px; color: var(--cocoa); line-height: 1.45; }
.songs-peek .link-btn, .empty-help .link-btn, .links__how { min-height: 36px; padding: 4px 0; }
.links__how { margin-top: 6px; }

/* YouTube links */
.links { margin: -4px 0 var(--s-2); padding: 18px; border-radius: var(--radius); background: var(--cream); }
.links__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); }
.links__head p { margin: 0; font-size: 14.5px; }
.links__count { flex: none; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.links__count.is-done { background: #E7F0E1; border-color: #B9CFAE; color: #3E5B33; }
.links__tip { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 14px; font-size: 13px; color: var(--cocoa-2); }
.links__tip svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.5; }
.links__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.link-row { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; }
.link-row__label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--cocoa-2); white-space: nowrap; min-width: 92px; }
.link-row__label img { width: 30px; height: 30px; border-radius: 50%; clip-path: circle(47%); }
.link-row__label b { font-weight: 600; color: var(--cocoa); font-variant-numeric: tabular-nums; }
.link-row__field { position: relative; min-width: 0; }
.link-row input {
  width: 100%; height: 44px; padding: 0 40px 0 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--cocoa);
  font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s;
}
.link-row input::placeholder { color: var(--cocoa-3); }
.link-row input:focus { outline: none; border-color: var(--cocoa); box-shadow: 0 0 0 3px rgba(205,174,132,.35); }
.link-row input[aria-invalid="true"] { border-color: #B3261E; box-shadow: 0 0 0 3px rgba(179,38,30,.12); }
.link-row__ok { position: absolute; right: 12px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; border-radius: 50%; background: #5E7F52; color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--ease-out); }
.link-row__ok svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.link-row.is-valid .link-row__ok { opacity: 1; transform: scale(1); }
.link-row__err { grid-column: 2; margin: 0; font-size: 13px; color: #B3261E; }
@media (max-width: 420px) {
  .link-row { grid-template-columns: 1fr; }
  .link-row__err { grid-column: 1; }
}
.links__error, .buy__error { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: #FBEDEA; color: #8C1D18; font-size: 14px; }
.buy__error { margin-top: var(--s-5); }

/* Unit tabs (2 pieces) */
.units { margin-top: var(--s-6); }
.units__hint { margin: 0 0 var(--s-3); font-size: 14px; color: var(--cocoa-2); }
.units__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 18px; background: var(--linen); }
.units__tab { position: relative; display: grid; gap: 1px; text-align: left; padding: 10px 14px; border-radius: 13px; min-height: 56px; transition: background-color .25s, box-shadow .25s; }
.units__tab:hover { background: rgba(251,248,243,.6); }
.units__tab.is-active { background: var(--paper); box-shadow: var(--shadow-soft); }
.units__name { font-weight: 600; font-size: 15px; }
.units__for { font-size: 13px; color: var(--cocoa-2); }
.units__state { position: absolute; right: 12px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; border-radius: 50%; }
.units__state.is-ok { background: #5E7F52 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.units__state.is-todo { background: var(--ember); box-shadow: 0 0 0 4px rgba(201,102,47,.18); width: 9px; height: 9px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ember-ink); padding: 8px 0; min-height: 44px; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.copy-first { position: absolute; right: 0; top: calc(var(--s-6) - 6px); }
@media (max-width: 520px) { .copy-first { position: static; margin: -8px 0 8px; } }

.choice--wrap { gap: var(--s-4); }
.choice--wrap::before {
  content: ""; position: absolute; right: 16px; top: 16px; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--cocoa-3); background: #fff;
  transition: background-color .2s, border-color .2s;
}
.choice--wrap:has(input:checked)::before { background: var(--cocoa) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat; border-color: var(--cocoa); }
.choice--wrap .choice__price { align-self: flex-end; }

/* Summary */
.summary { margin-top: var(--s-7); padding: var(--s-5); border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.summary__unit + .summary__unit { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px dashed var(--line-strong); }
.summary__unit h4 { margin: 0 0 6px; display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; }
.summary__unit ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.summary__unit li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--cocoa-2); }
.summary__unit li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.summary__total strong { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; font-variation-settings: "SOFT" 100, "opsz" 36; font-variant-numeric: tabular-nums; }
.summary__save { margin: 6px 0 0; text-align: right; font-size: 13.5px; color: var(--ember-ink); font-weight: 500; }

.btn--xl { --h: 60px; margin-top: var(--s-5); font-size: 17px; }
.buy__ship { margin: var(--s-3) 0 0; text-align: center; font-size: 13.5px; color: var(--cocoa-2); }
/* Promise box — quality, tracking, a real person, returns */
.promise {
  list-style: none; margin: var(--s-6) 0 0; padding: 20px 22px; display: grid; gap: 14px;
  border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line);
}
.promise li { display: flex; gap: 14px; align-items: flex-start; }
.promise svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.promise p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--cocoa-2); }
.promise b { color: var(--cocoa); font-weight: 600; }

/* Christmas delivery promise */
.xmas { display: grid; justify-items: center; gap: 6px; margin-top: var(--s-6); padding: 26px 22px 24px; text-align: center; border-radius: var(--radius); background: var(--night); color: var(--on-night); }
.xmas__icon { width: 52px; height: 52px; margin-bottom: 6px; border-radius: 50%; display: grid; place-items: center; color: var(--night); background: var(--glow); box-shadow: 0 0 0 6px rgba(243,189,120,.18); }
.xmas__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.xmas__title { margin: 0; font-family: var(--serif); font-size: 1.4rem; line-height: 1.25; font-variation-settings: "SOFT" 100, "opsz" 36; }
.xmas__title em { display: block; color: var(--glow); }
.xmas__sub { margin: 0; font-size: 14px; color: var(--on-night-2); }

/* Step dots, used by the checkout confirmation */
.track__dot { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--cocoa); color: var(--paper); margin-bottom: 10px; box-shadow: 0 0 0 6px var(--cream); }
.track__dot svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Carols ---------- */
.carols__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-4); }
@media (min-width: 720px) { .carols__grid { grid-template-columns: repeat(3, 1fr); } }
.carol { display: grid; justify-items: center; text-align: center; }
.carol img { width: min(100%, 168px); aspect-ratio: 1; border-radius: 50%; clip-path: circle(47.5%); filter: drop-shadow(0 12px 18px rgba(42,29,23,.25)); transition: transform 1.2s var(--ease-out); }
.carol:hover img { transform: rotate(180deg); }
.carol__no { margin-top: var(--s-4); font-family: var(--serif); font-size: 13px; color: var(--cocoa-3); font-variant-numeric: tabular-nums; }
.carol h3 { margin: 4px 0 0; font-family: var(--serif); font-weight: 400; font-size: 1.15rem; line-height: 1.25; font-variation-settings: "SOFT" 100, "opsz" 24; max-width: 18ch; }
.carol p { margin: 4px 0 0; font-size: 14px; color: var(--cocoa-2); }

/* ---------- Custom songs how-to ---------- */
.howto__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.howto__step { display: flex; gap: var(--s-5); padding: var(--s-6); border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); }
.howto__no { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 1.3rem; background: var(--cream); color: var(--gold); }
.howto__step p { margin: 8px 0 0; color: var(--cocoa-2); font-size: 15.5px; }

/* ---------- In the box + specs: one card, two matching columns ---------- */
.box { padding: var(--s-10) 0; background: var(--paper); border-top: 1px solid var(--line); }
.box__card {
  display: grid; padding: clamp(22px, 4vw, 44px);
  border-radius: var(--radius-lg); background: var(--cream); border: 1px solid var(--line);
}
@media (min-width: 960px) {
  .box__card { grid-template-columns: 1fr 1fr; }
  .box__col:first-child { padding-right: var(--s-8); border-right: 1px solid var(--line-strong); }
  .box__col:last-child { padding-left: var(--s-8); }
}
@media (max-width: 959px) { .box__col + .box__col { margin-top: var(--s-7); } }
.box__label { margin: 0 0 var(--s-3); font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.box__rows { list-style: none; margin: 0; padding: 0; }
.box__rows > li, .box__rows > div {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: var(--s-4); align-items: baseline;
  padding: 15px 0; border-top: 1px solid var(--line);
}
.box__key { margin: 0; font-weight: 600; font-size: 15px; color: var(--cocoa); }
.box__val { margin: 0; font-size: 15px; color: var(--cocoa-2); line-height: 1.5; }
.box__qty { display: inline-block; min-width: 2.1em; font-family: var(--serif); font-weight: 400; font-size: 1.05rem; color: var(--gold); font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .box__rows > li, .box__rows > div { grid-template-columns: 1fr; gap: 2px; } }

.page-product .reviews { border-top: 1px solid var(--line); }
.page-product .buybar { transform: translateY(140%); }
.page-product .buybar.is-visible { transform: translateY(0); }

/* ---------- Setup guide (own MP3s via USB-C) ---------- */
.guide__card {
  display: grid; gap: var(--s-7); padding: clamp(20px, 4vw, 48px);
  border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
}
@media (min-width: 1040px) { .guide__card { grid-template-columns: 1.1fr .9fr; gap: var(--s-8); align-items: center; } }

.guide__art { display: grid; grid-template-columns: 1fr; gap: var(--s-4); }
@media (min-width: 560px) { .guide__art { grid-template-columns: 1fr 1fr; } }
.gstep { margin: 0; padding: 16px; border-radius: var(--radius); background: var(--cream); display: flex; flex-direction: column; }
.gstep figcaption { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; letter-spacing: .01em; }
.gstep figcaption b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--cocoa); color: var(--paper); font-size: 12.5px; }
.gstep p { margin: 10px 0 0; font-size: 13.5px; color: var(--cocoa-2); line-height: 1.45; }
.gstep > svg, .gmatch, .gplay { margin-top: 12px; aspect-ratio: 320 / 190; width: 100%; }

/* SVG paint classes — keep the drawings in the brand palette */
.gsvg { display: block; }
.g-ink { fill: var(--cocoa); }
.g-paper { fill: #fff; }
.g-linen { fill: var(--linen); }
.g-blush { fill: var(--blush); }
.g-champ { fill: var(--champagne); }
.g-ember { fill: var(--ember-ink); }
.g-line { stroke: var(--line-strong); stroke-width: 1.5; }
.g-stroke { fill: none; stroke: var(--cocoa); stroke-width: 2; stroke-linecap: round; }
.g-cable { fill: none; stroke: var(--cocoa); stroke-width: 3; stroke-linecap: round; }
.g-dot { fill: var(--sand); }
.g-folder { fill: var(--ember); }
.g-folders g:first-child .g-folder { fill: var(--ember-ink); }
.g-num { font: 600 9px var(--sans); fill: var(--cocoa-2); text-anchor: middle; }
.g-num--in { fill: #fff; font-size: 8.5px; }
.g-tag { font: 700 7.5px var(--sans); fill: #fff; text-anchor: middle; letter-spacing: .04em; }
.g-logo { font: 600 9px var(--sans); fill: var(--cocoa); text-anchor: middle; letter-spacing: -.02em; }
.g-mini { font: 700 7px var(--sans); fill: var(--cocoa); text-anchor: middle; letter-spacing: .06em; }
.g-arrow { fill: none; stroke: var(--cocoa); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 3 4; }
.g-mp3 { animation: drag-mp3 3.6s var(--ease-in-out) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes drag-mp3 {
  0%, 15% { transform: translate(0, 0); opacity: 1; }
  55% { transform: translate(88px, -24px) scale(.55); opacity: 1; }
  65% { transform: translate(92px, -20px) scale(.4); opacity: 0; }
  66% { transform: translate(0, 0); opacity: 0; }
  80%, 100% { transform: translate(0, 0); opacity: 1; }
}
.g-folders g:first-child { animation: folder-pop 3.6s var(--ease-out) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes folder-pop { 0%, 55% { scale: 1; } 62% { scale: 1.18; } 72%, 100% { scale: 1; } }

/* Step 3 — numbered discs */
.gmatch { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.gmatch__discs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gmatch__discs li, .gmatch__disc { position: relative; display: grid; place-items: center; }
.gmatch__discs img { width: 100%; max-width: 44px; aspect-ratio: 1; border-radius: 50%; clip-path: circle(47%); }
.gmatch__discs span, .gmatch__disc > span {
  position: absolute; font: 700 10px var(--sans); color: #fff; background: rgba(27,19,15,.72);
  padding: 1px 5px; border-radius: 999px; font-variant-numeric: tabular-nums;
}
.gmatch__discs li:not(.is-hit) { opacity: .55; }
.gmatch__discs li.is-hit img { box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--ember); border-radius: 50%; clip-path: none; }
.gmatch__pair { display: grid; justify-items: center; gap: 4px; padding: 8px 10px; border-radius: 14px; background: var(--paper); }
.gmatch__disc img { width: 54px; height: 54px; border-radius: 50%; clip-path: circle(47%); animation: spin 6s linear infinite; }
.gmatch__eq { font-family: var(--serif); font-size: 1.3rem; line-height: 1; color: var(--cocoa-2); }
.gmatch__folder { width: 54px; }

/* Step 4 — playing, with the glow ring */
.gplay { position: relative; display: grid; place-items: center; }
.gplay__player {
  position: relative; width: 46%; aspect-ratio: 111 / 129; padding: 14% 10% 0; border-radius: 6px;
  background: linear-gradient(160deg, #fffdf9, #ebe2d6); box-shadow: 0 10px 24px -10px rgba(60,35,20,.45);
  display: flex; flex-direction: column; align-items: center;
}
.gplay__logo { position: absolute; top: 3%; font: 600 9px var(--sans); letter-spacing: -.02em; }
.gplay__stage { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; background: var(--blush); border-radius: 2px; overflow: hidden; }
.gplay__glow { position: absolute; width: 84%; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 3px #F7D49A, 0 0 18px 7px rgba(243,170,90,.9), inset 0 0 12px rgba(243,189,120,.7); animation: glow 2.4s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .6; } to { opacity: 1; } }
.gplay__disc { width: 70%; aspect-ratio: 1; border-radius: 50%; clip-path: circle(47%); }
.gplay__bar { width: 100%; height: 2px; margin-top: 10%; background: linear-gradient(90deg, var(--cocoa) 30%, var(--sand) 30%); border-radius: 2px; }
.gplay__note { position: absolute; font-size: 20px; color: var(--gold); animation: note 3s ease-in-out infinite; opacity: 0; }
.gplay__note.n1 { left: 16%; top: 40%; }
.gplay__note.n2 { right: 15%; top: 28%; animation-delay: -1s; font-size: 24px; }
.gplay__note.n3 { right: 22%; top: 62%; animation-delay: -2s; }
@keyframes note { 0% { transform: translateY(8px); opacity: 0; } 30%, 70% { opacity: 1; } 100% { transform: translateY(-18px); opacity: 0; } }

/* Right column */
.gsteps { list-style: none; margin: 0; padding: 0; }
.gsteps li { display: flex; gap: var(--s-5); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.gsteps li:first-child { padding-top: 0; }
.gsteps__no { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--cocoa); color: var(--paper); font-family: var(--serif); font-size: 1.25rem; }
.gsteps p { margin: 8px 0 0; color: var(--cocoa-2); font-size: 15.5px; line-height: 1.6; }
.guide__compat { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.guide__compat li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--cream); font-size: 13px; color: var(--cocoa-2); }
.guide__note { margin: var(--s-5) 0 0; padding: 16px 18px; border-radius: var(--radius); background: #FBF1E4; border: 1px solid #EBD3B3; color: #6B4A26; font-size: 14.5px; line-height: 1.55; }
.guide__note b { color: #4E3417; }

.empty-help { margin: -4px 0 var(--s-2); padding-left: 4px; }
.empty-help .link-btn svg { width: 16px; height: 16px; }

/* ---------- Music options: one section, one tab per option of step 2 ---------- */
.opts { padding: var(--s-10) 0; background: var(--paper); border-top: 1px solid var(--line); }
.opts__tabs { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }
@media (min-width: 820px) { .opts__tabs { grid-template-columns: repeat(3, 1fr); } }
.opt-card {
  position: relative; display: grid; gap: 8px; text-align: left; padding: 20px 20px 18px; border-radius: var(--radius);
  background: var(--cream); border: 1.5px solid transparent; transition: border-color .2s, background-color .2s, box-shadow .3s var(--ease-out);
}
.opt-card:hover { border-color: var(--line-strong); }
.opt-card.is-active { background: #fff; border-color: var(--cocoa); box-shadow: 0 0 0 4px rgba(205,174,132,.28); }
.opt-card__name { font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; font-variation-settings: "SOFT" 100, "opsz" 36; padding-right: 92px; }
.opt-card__row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--cocoa-2); border-top: 1px solid var(--line); padding-top: 8px; }
.opt-card__row b { color: var(--cocoa); font-weight: 600; text-align: right; }
.opt-card__price { font-family: var(--serif); font-size: 1.1rem; margin-top: 2px; }
.opt-card__chosen {
  position: absolute; top: 16px; right: 16px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .03em;
  background: var(--cocoa); color: var(--paper); opacity: 0; transform: scale(.9); transition: opacity .2s, transform .25s var(--ease-out);
}
.opt-card.is-chosen .opt-card__chosen { opacity: 1; transform: none; }

.opts__panel { padding: clamp(20px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--cream); animation: panel-in .45s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.opts__intro { max-width: 44em; margin-bottom: var(--s-6); }
.opts__intro p { margin: 10px 0 0; color: var(--cocoa-2); }
.opts__panel .howto__step { background: var(--paper); }
.opts__panel .howto__steps { gap: var(--s-3); }
@media (min-width: 900px) { .opts__panel .howto__steps { grid-template-columns: repeat(3, 1fr); } .opts__panel .howto__step { flex-direction: column; } }
.opts__panel .guide__card { box-shadow: none; }
.opts__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.opts__aside { margin: 0; font-size: 14px; color: var(--cocoa-2); max-width: 40em; }
.opts__foot .btn.is-current { background: var(--paper); color: var(--cocoa); border: 1px solid var(--line-strong); box-shadow: none; cursor: default; }
.opts__foot .btn.is-current::before { content: ""; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A1D17' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 819px) {
  .opts__tabs { gap: 8px; }
  .opt-card { padding: 14px 16px; gap: 6px; }
  .opt-card__name { font-size: 1.1rem; }
  .opt-card__row { padding-top: 6px; font-size: 13px; }
  .opt-card__price { font-size: 1rem; }
}

/* Compact song list inside the "Gata încărcat cu colinde" tab */
.opts__panel .carols__grid { grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .opts__panel .carols__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .opts__panel .carols__grid { grid-template-columns: repeat(3, 1fr); } }
.opts__panel .carol {
  display: grid; grid-template-columns: 52px 1fr; grid-template-areas: "img no" "img title" "img artist";
  column-gap: 14px; align-items: center; justify-items: start; text-align: left;
  padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--paper);
}
.opts__panel .carol img { grid-area: img; width: 52px; filter: drop-shadow(0 4px 6px rgba(42,29,23,.2)); }
.opts__panel .carol__no { grid-area: no; margin: 0; font-size: 11.5px; line-height: 1.2; }
.opts__panel .carol h3 { grid-area: title; margin: 0; font-size: 1rem; line-height: 1.25; max-width: none; }
.opts__panel .carol p { grid-area: artist; margin: 0; font-size: 13px; }
