/* HH Party Rentals — "Design Your Backdrop" studio (pairs with assets/js/studio.js) */
.studio-sec { position: relative; padding: 96px 0 90px; background:
  radial-gradient(900px 480px at 12% 8%, rgba(247,163,199,.35), transparent 60%),
  radial-gradient(700px 420px at 92% 90%, rgba(242,65,143,.14), transparent 60%),
  linear-gradient(180deg, var(--cream, #fffafa), var(--blush, #fdf4f5)); overflow: clip; }
.studio-sec::before { /* arch motif */
  content: ""; position: absolute; width: 520px; height: 640px; right: -140px; top: 40px; border: 1.5px solid rgba(242,65,143,.18);
  border-radius: 260px 260px 0 0; pointer-events: none; }
.studio-sec::after { content: ""; position: absolute; width: 380px; height: 470px; left: -160px; bottom: -120px; border: 1.5px solid rgba(201,162,75,.25); border-radius: 190px 190px 0 0; pointer-events: none; }
.studio-sec .wrap { position: relative; z-index: 1; }
.studio-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.studio-head .section-head { margin-bottom: 0; }
.studio-head h2 { text-transform: none !important; }
.studio-head h2 .script { font-size: 1.3em; }
.studio-open { display: inline-flex; align-items: center; gap: .6em; font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink, #161113); border-bottom: 2px solid var(--pink, #f2418f); padding-bottom: 4px; transition: gap .3s var(--ease); }
.studio-open:hover { gap: 1em; color: var(--pink, #f2418f); }
.studio-open svg { width: 1.1em; height: 1.1em; }

.studio { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: 28px; align-items: start; font-family: var(--sans); color: var(--ink, #161113); }
.st-left { position: sticky; top: calc(var(--st-top, var(--header-h, 76px)) + 18px); min-width: 0; }
.st-stage { position: relative; border-radius: 28px; perspective: 1400px; --rx: 0deg; --ry: 0deg; --px: 0; --py: 0; }
.st-tilt { position: relative; border-radius: 28px; overflow: hidden; background: #f6e7ea; transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  box-shadow: 0 2px 0 rgba(255,255,255,.9) inset, 0 40px 80px -36px rgba(120,20,60,.55), 0 18px 34px -22px rgba(120,20,60,.35); outline: 1px solid rgba(255,255,255,.7); outline-offset: -1px; }
.st-svg { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.st-svg .ly-back { transform: translate(calc(var(--px) * -6px), calc(var(--py) * -4px)); }
.st-svg .ly-front { transform: translate(calc(var(--px) * 9px), calc(var(--py) * 5px)); }
.st-svg .ly-mid { transform: translate(calc(var(--px) * 2px), calc(var(--py) * 1px)); }
.st-chipline { position: absolute; left: 16px; right: 16px; top: 14px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; }
.st-live, .st-mini-total { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  background: rgba(255,255,255,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 18px -10px rgba(120,20,60,.5); }
.st-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--pink, #f2418f); box-shadow: 0 0 0 0 rgba(242,65,143,.6); animation: stPulse 1.8s infinite; }
.st-mini-total { background: var(--ink, #161113); color: #fff; letter-spacing: .08em; }
@keyframes stPulse { 70% { box-shadow: 0 0 0 9px rgba(242,65,143,0); } 100% { box-shadow: 0 0 0 0 rgba(242,65,143,0); } }

/* scene animation */
.st-fillp { transition: fill .6s var(--ease); }
.st-in { animation: stFade .7s .28s var(--ease) both; }
@keyframes stFade { from { opacity: 0; } }
.st-twinkle { opacity: 0; animation: stTw 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes stTw { 0%, 60%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 75% { opacity: 1; transform: scale(1) rotate(45deg); } }
.st-flicker { animation: stFlick 1.1s linear both; }
@keyframes stFlick { 0% { opacity: 0; } 8% { opacity: .9; } 12% { opacity: .1; } 20% { opacity: 1; } 26% { opacity: .25; } 34% { opacity: 1; } 46% { opacity: .55; } 52%, 100% { opacity: 1; } }
.st-text { animation: stHum 5s ease-in-out infinite 1.2s; }
@keyframes stHum { 0%, 100% { opacity: 1; } 50% { opacity: .9; } 51% { opacity: .78; } 52% { opacity: 1; } }
.st-text.st-flicker { animation: stFlick 1.1s linear both; }
.st-neon-t { transition: fill .4s, stroke .4s; }
.bl { transition: transform .8s var(--ease); }
.bl-f { animation: stFloat 4.5s ease-in-out infinite alternate; }
@keyframes stFloat { from { transform: translateY(-2.5px) rotate(-1.5deg); } to { transform: translateY(2.5px) rotate(1.5deg); } }
.bl-s { transform-box: fill-box; transform-origin: center; transition: transform .45s var(--ease); }
.bl-s circle:first-child { transition: fill .5s var(--ease); }
.st-pop .bl-s { animation: stSpring .9s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes stSpring { 0% { transform: scale(0); } 55% { transform: scale(1.16); } 75% { transform: scale(.95); } 100% { transform: scale(1); } }
.st-garland.is-off .bl-s { transform: scale(0); animation: none; transition-duration: .35s; }
.st-item { transition: opacity .45s var(--ease), transform .6s cubic-bezier(.3,1.5,.5,1); transform-box: view-box; }
.st-item.is-off { opacity: 0; transform: translateY(26px) scale(.9); pointer-events: none; transition: opacity .3s, transform .3s; }
.st-decal.is-off { transform: scale(.6); transform-origin: 400px 532px; }
.st-decal { transform-origin: 400px 532px; }
.st-platform { transform-origin: 400px 480px; }

/* actions */
.st-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; align-items: center; }
.st-actions .btn { padding: 14px 22px; }
.st-act { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 999px; border: 1.5px solid var(--line, #f0d9e2); background: rgba(255,255,255,.8);
  font-weight: 600; font-size: .78rem; letter-spacing: .04em; color: var(--ink, #161113); transition: transform .3s var(--ease), border-color .3s, background .3s, box-shadow .3s; }
.st-act svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.st-act[data-act="surprise"] svg { fill: var(--pink, #f2418f); stroke: none; }
.st-act:hover { transform: translateY(-2px); border-color: var(--pink, #f2418f); box-shadow: 0 10px 20px -14px rgba(242,65,143,.8); }
.st-act:active { transform: scale(.96); }
.st-act[disabled] { opacity: .5; }
.st-ghost { background: transparent; border-color: transparent; color: var(--muted, #74676d); padding: 12px; }
.st-ghost .st-rs { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.st-bokeh { animation: stDrift 9s ease-in-out infinite alternate; }
@keyframes stDrift { to { transform: translate(14px, -18px); } }

/* glass panel */
.st-panel { min-width: 0; padding: 26px 24px 22px; border-radius: 28px; background: rgba(255,255,255,.62); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(255,255,255,.9); box-shadow: 0 30px 60px -30px rgba(120,20,60,.35), 0 1px 0 rgba(255,255,255,.9) inset; }
.st-group { padding: 0 0 18px; margin-bottom: 18px; border-bottom: 1px dashed var(--line, #f0d9e2); min-width: 0; }
.st-label { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.12rem; margin-bottom: 12px; }
.st-label b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink, #161113); color: #fff; font: 700 .7rem var(--sans); flex: none; }
.st-label small { font: 500 .72rem var(--sans); color: var(--muted, #74676d); letter-spacing: .02em; }
.st-label .st-tog { margin-left: auto; }
.st-row { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.st-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px 8px 10px; border-radius: 999px; border: 1.5px solid var(--line, #f0d9e2); background: #fff; color: var(--ink, #161113);
  font-size: .78rem; font-weight: 600; white-space: nowrap; transition: transform .3s cubic-bezier(.3,1.6,.5,1), background .25s, border-color .25s, color .25s, box-shadow .25s; }
.st-pill:not(:has(svg)) { padding-left: 13px; }
.st-pill:hover { transform: translateY(-2px); border-color: var(--pink-300, #f7a3c7); }
.st-pill.on { background: var(--ink, #161113); border-color: var(--ink, #161113); color: #fff; box-shadow: 0 10px 18px -12px rgba(22,17,19,.8); }
.st-pill:active { transform: scale(.94); }
.st-ico { width: 15px; height: 19px; fill: var(--pink-300, #f7a3c7); stroke: var(--pink, #f2418f); stroke-width: 1.2; transition: fill .3s; }
.st-pill.on .st-ico { fill: var(--pink, #f2418f); stroke: #fff; }
.st-sub, .st-add { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: .85rem; font-weight: 600; min-width: 0; }
.st-sub[hidden] { display: none; }
.st-sub small, .st-add small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted, #74676d); }
.st-add { margin-top: 0; padding: 10px 0; border-bottom: 1px solid rgba(240,217,226,.6); flex-wrap: wrap; }
.st-add:last-child { border-bottom: 0; }
.st-add .st-row { gap: 6px; }
.st-add .st-pill { padding: 6px 11px; font-size: .74rem; }

.st-swatches { gap: 10px; }
.st-sw { width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; background: var(--sw); position: relative; flex: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08) inset, 0 6px 14px -8px rgba(0,0,0,.4); transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.st-sw::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--ink, #161113); opacity: 0; transform: scale(.8); transition: opacity .25s, transform .35s cubic-bezier(.3,1.6,.5,1); }
.st-sw:hover { transform: translateY(-2px) scale(1.06); }
.st-sw.on::after { opacity: 1; transform: none; }
.st-sw.on { transform: scale(1.04); }
.st-sw.glow { background: radial-gradient(circle at 50% 50%, #fff 0 22%, var(--sw) 60%); box-shadow: 0 0 14px -2px var(--sw); }
.st-note { font-size: .8rem; color: var(--muted, #74676d); padding: 6px 0; }
.st-pal { display: inline-flex; padding: 6px 8px; border-radius: 999px; border: 1.5px solid var(--line, #f0d9e2); background: #fff; transition: transform .35s cubic-bezier(.3,1.6,.5,1), border-color .25s, box-shadow .25s; flex: none; }
.st-pal i { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.7), transparent 45%), var(--c); box-shadow: 0 0 0 1px rgba(0,0,0,.08) inset; margin-left: -6px; }
.st-pal i:first-child { margin-left: 0; }
.st-pal:hover { transform: translateY(-2px); }
.st-pal.on { border-color: var(--ink, #161113); box-shadow: 0 8px 16px -12px rgba(0,0,0,.6); }
.st-pal.on i { animation: stBob .6s cubic-bezier(.3,1.6,.5,1) both; }
.st-pal.on i:nth-child(2) { animation-delay: .05s; } .st-pal.on i:nth-child(3) { animation-delay: .1s; } .st-pal.on i:nth-child(4) { animation-delay: .15s; }
@keyframes stBob { 40% { transform: translateY(-5px); } }
.st-garland-off .st-garland .st-row, .st-pl-off .st-plc { opacity: .45; }

.st-tog { position: relative; width: 46px; height: 26px; border-radius: 999px; border: 0; background: #e8d7de; padding: 0; transition: background .3s; flex: none; }
.st-tog i { position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.st-tog.on { background: var(--pink, #f2418f); }
.st-tog.on i { transform: translateX(20px); }

.st-step { display: inline-flex; align-items: center; border-radius: 999px; background: #fff; border: 1.5px solid var(--line, #f0d9e2); flex: none; }
.st-step output { min-width: 26px; text-align: center; font-weight: 700; font-size: .9rem; }
.st-sb { width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; font-size: 1.1rem; font-weight: 700; color: var(--ink, #161113); transition: background .2s, transform .2s; }
.st-sb:hover:not([disabled]) { background: var(--pink-100, #fde3ee); }
.st-sb:active:not([disabled]) { transform: scale(.88); }
.st-sb[disabled] { opacity: .3; cursor: default; }

.st-textrow { display: flex; gap: 12px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.st-input { flex: 1 1 180px; min-width: 0; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--line, #f0d9e2); background: #fff; font: 400 1.5rem var(--script); color: var(--ink, #161113); transition: border-color .25s, box-shadow .25s; }
.st-input:focus { outline: none; border-color: var(--pink, #f2418f); box-shadow: 0 0 0 4px rgba(242,65,143,.15); }
.st-neon { flex-wrap: nowrap; gap: 8px; }
.st-neon .st-sw { width: 28px; height: 28px; }

.studio button:focus-visible, .studio a:focus-visible { outline: 3px solid var(--pink, #f2418f); outline-offset: 3px; }

/* estimate */
.st-estimate { margin-top: 6px; padding: 18px 18px 14px; border-radius: 20px; background: var(--ink, #161113); color: #fff; position: relative; overflow: hidden; }
.st-estimate::before { content: ""; position: absolute; width: 220px; height: 220px; right: -60px; top: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(242,65,143,.55), transparent 70%); }
.st-est-head { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.st-est-head span { font-size: .7rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--pink-300, #f7a3c7); }
.st-total { font-family: var(--serif); font-size: 2.3rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.st-total.bump { animation: stBump .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes stBump { 40% { transform: scale(1.08); color: var(--pink-300, #f7a3c7); } }
.st-estimate ul { position: relative; list-style: none; margin: 0 0 10px; padding: 0; font-size: .8rem; }
.st-estimate li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.1); animation: stFade .4s var(--ease) both; }
.st-estimate li small { display: block; color: rgba(255,255,255,.5); font-size: .7rem; }
.st-estimate li b { white-space: nowrap; font-weight: 600; }
.st-fine { position: relative; margin: 0; font-size: .7rem; line-height: 1.5; color: rgba(255,255,255,.62); }

/* full-page studio */
.studio-page .studio-sec { padding-top: 48px; min-height: calc(100vh - var(--header-h, 76px)); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) { .studio { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
@media (max-width: 900px) {
  .studio-sec { padding: 64px 0 60px; }
  .studio { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .st-left { display: contents; }
  .st-stage { position: sticky; top: var(--st-top, var(--header-h, 76px)); z-index: 5; order: 0; padding: 8px 16px 12px; margin: -8px -16px -12px; background: linear-gradient(var(--blush, #fdf4f5) 88%, rgba(253,244,245,0)); }
  .st-chipline { left: 30px; right: 30px; }
  .st-chipline { top: 22px; }
  .st-tilt { border-radius: 22px; }
  .st-panel { order: 1; padding: 18px 0 16px; background: transparent; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .st-actions { order: 2; margin-top: 0; }
  .st-group { padding-bottom: 14px; margin-bottom: 14px; }
  .st-group > .st-row, .st-add > .st-row, .st-swatches { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 6px 2px 8px; margin: -6px 0 -8px; }
  .st-row::-webkit-scrollbar { display: none; }
  .st-group > .st-row { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .st-add { flex-wrap: nowrap; }
  .st-add > span { flex: none; }
  .st-add > .st-row { min-width: 0; }
  .st-estimate { margin-top: 0; }
  .st-neon { padding-left: 6px; padding-right: 6px; }
}
@media (max-width: 600px) {
  .studio-sec::before, .studio-sec::after { display: none; }
  .studio-head { margin-bottom: 22px; }
  .st-chipline { left: 26px; right: 26px; top: 18px; }
  .st-live, .st-mini-total { padding: 5px 10px; font-size: .6rem; }
  .st-add { flex-wrap: wrap; }
  .st-add > .st-row { flex: 1 1 100%; }
  .st-actions { gap: 8px; }
  .st-actions .btn { flex: 1 1 100%; }
  .st-act { flex: 1 1 calc(50% - 4px); justify-content: center; }
  .st-ghost { border-color: var(--line, #f0d9e2); padding: 12px 16px; }
  .st-ghost .st-rs { position: static; width: auto; height: auto; clip: auto; }
  .st-total { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .studio *, .studio *::before, .studio *::after { animation: none !important; transition: none !important; }
  .st-twinkle { opacity: 0; }
  .st-svg .ly-back, .st-svg .ly-front, .st-svg .ly-mid, .st-tilt { transform: none !important; }
}
