.studio-body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

.studio-top {
  position: sticky; top: 0; z-index: 900;
  width: 100%;
  background: rgba(250,246,241,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,169,126,0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem clamp(1.25rem, 5vw, 4rem);
  padding-left: max(clamp(1.25rem, 5vw, 4rem), env(safe-area-inset-left));
  padding-right: max(clamp(1.25rem, 5vw, 4rem), env(safe-area-inset-right));
}
.studio-logo img {
  height: 38px;
  width: auto;
  display: block;
}
.studio-badge {
  font-family: var(--sans);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rosegold);
  background: var(--blush);
  border-radius: 999px;
  padding: .35rem .75rem;
  white-space: nowrap;
}

.studio-main {
  width: 100%;
  max-width: 640px;
  padding: 1.6rem clamp(1.25rem, 5vw, 2.5rem) 3rem;
  padding-left: max(clamp(1.25rem, 5vw, 2.5rem), env(safe-area-inset-left));
  padding-right: max(clamp(1.25rem, 5vw, 2.5rem), env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
}

.studio-intro {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--deep);
  text-align: center;
  max-width: 46ch;
  line-height: 1.45;
}

.studio-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--charcoal);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(122,74,63,0.18);
  border: 1px solid rgba(200,169,126,0.25);
}

#video, #overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#video { opacity: 0; }

.studio-placeholder[hidden] { display: none; }
.studio-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(165deg, var(--deep), var(--charcoal));
  color: var(--cream);
  text-align: center;
  padding: 1.5rem;
}

.btn-start, .btn-snap {
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--rosegold);
  border: none;
  border-radius: 2px;
  padding: .8rem 1.8rem;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease, opacity .15s ease;
}
.btn-start:hover, .btn-snap:not(:disabled):hover {
  background: var(--deep);
  transform: translateY(-1px);
}
.btn-snap:disabled { opacity: .4; cursor: not-allowed; }

.studio-hint {
  font-size: .78rem;
  opacity: .75;
  max-width: 260px;
}

.studio-status {
  position: absolute;
  top: .7rem; left: .7rem;
  font-size: .72rem;
  color: var(--cream);
  background: rgba(44,32,25,.55);
  border-radius: 999px;
  padding: .35rem .8rem;
}

.studio-swatches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  padding: .9rem;
  background: var(--white);
  border: 1px solid rgba(200,169,126,0.25);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(122,74,63,0.06);
}
.swatch {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--white);
  outline: 1px solid rgba(0,0,0,.08);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  transition: transform .12s ease, outline-color .12s ease;
}
.swatch:hover { transform: scale(1.08); }
.swatch.active { outline: 2px solid var(--rosegold); outline-offset: 2px; transform: scale(1.1); }

.studio-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: center;
}
.studio-section-label {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rosegold);
  align-self: flex-start;
}
.studio-designs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  padding: .9rem;
  width: 100%;
  background: var(--white);
  border: 1px solid rgba(200,169,126,0.25);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(122,74,63,0.06);
}
.design-swatch {
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 2px solid var(--white);
  outline: 1px solid rgba(0,0,0,.08);
  cursor: pointer;
  background-size: cover;
  background-position: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  transition: transform .12s ease, outline-color .12s ease;
}
.design-swatch:hover { transform: scale(1.06); }
.design-swatch.active { outline: 2px solid var(--rosegold); outline-offset: 2px; transform: scale(1.08); }

.studio-actions { display: flex; gap: .75rem; }

.studio-tune {
  width: 100%;
  background: var(--white);
  border: 1px solid rgba(200,169,126,0.25);
  border-radius: 14px;
  padding: .9rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.studio-tune-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.studio-tune-label {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rosegold);
}
.studio-tune-reset {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--deep);
  background: none;
  border: 1px solid rgba(200,169,126,0.4);
  border-radius: 999px;
  padding: .25rem .65rem;
  cursor: pointer;
  transition: background .15s ease, opacity .15s ease;
}
.studio-tune-reset:hover { background: var(--blush); }
.studio-tune label {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .8rem;
  color: var(--charcoal);
}
.studio-tune label > span,
.studio-tune label { font-family: var(--sans); }
.studio-tune input[type="range"] {
  flex: 1;
  accent-color: var(--rosegold);
}
.studio-tune-values {
  font-size: .72rem;
  font-family: monospace;
  color: var(--deep);
  opacity: .8;
}
