/* Bouquet Studio */
.studio { padding: clamp(72px, 10vw, 128px) 0; background: linear-gradient(180deg, var(--cream), #f4ece1 60%, var(--cream)); position: relative; overflow: hidden; }
.studio::before { content: ''; position: absolute; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(216, 191, 150, .22), transparent 70%); top: 10%; inset-inline-end: -180px; pointer-events: none; }
.studio-grid { display: grid; gap: 22px; align-items: start; position: relative; max-width: 1080px; margin: 0 auto; }
@media (min-width: 960px) { .studio-grid { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 44px; } .studio-stage { position: sticky; top: 104px; } }

/* Stage */
.studio-stage { width: 100%; max-width: 420px; margin: 0 auto; }
.stage-card { position: relative; background: radial-gradient(120% 90% at 50% 18%, #fffdf9 0%, #f4ece1 75%); border: 1px solid var(--line); border-radius: 22px; padding: 12px 12px 8px; box-shadow: var(--shadow); overflow: hidden; }
.stage-card::after { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(180, 140, 88, .2); border-radius: 16px; pointer-events: none; }
.stage-art { width: 100%; max-width: 360px; aspect-ratio: 420 / 520; margin: 0 auto; }
@media (max-width: 640px) { .stage-art { max-width: 260px; } }
.stage-art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.stage-shuffle { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line-strong); background: rgba(255, 253, 250, .92); border-radius: 999px; padding: 4px 10px; font-weight: 700; font-size: 12px; cursor: pointer; color: var(--taupe-deep); transition: all .2s var(--ease); }
.stage-shuffle:hover { border-color: var(--gold); color: var(--gold-ink); }
.stage-shuffle svg { width: 13px; height: 13px; }
.stage-meaning { text-align: center; margin: 2px 0 6px; font-family: var(--serif); font-size: 14px; color: var(--taupe-deep); position: relative; z-index: 1; padding-inline: 8px; }

.fl-in { transform-box: fill-box; transform-origin: center; animation: bloom .75s cubic-bezier(.2, .8, .25, 1.15) both; animation-delay: var(--d, 0ms); }
@keyframes bloom { from { transform: scale(0) rotate(-35deg); opacity: 0; } 60% { opacity: 1; } }
.balloon-in { animation: balloon-in 1.1s cubic-bezier(.2, .8, .2, 1) both .3s; }
@keyframes balloon-in { from { transform: translateY(60px); opacity: 0; } }
.balloon-float { animation: floaty 4s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: bottom center; }
@keyframes floaty { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-8px) rotate(3deg); } }

/* Greeting card */
.gift-card { --accent: var(--gold-soft); margin: -18px auto 0; position: relative; z-index: 3; width: min(82%, 290px); background: #fffdf8; border-radius: 6px; padding: 12px 16px 10px; box-shadow: 0 18px 40px -18px rgba(46, 38, 34, .45), 0 0 0 1px rgba(46, 38, 34, .06); transform: rotate(-2.2deg); border-top: 4px solid var(--accent); transition: border-color .4s; }
.gift-card::before { content: ''; position: absolute; top: -12px; left: 50%; width: 46px; height: 18px; translate: -50% 0; background: rgba(216, 191, 150, .55); transform: rotate(3deg); }
.gc-brand { display: flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--latin); letter-spacing: .3em; font-size: 12px; color: var(--gold-ink); direction: ltr; margin-bottom: 8px; }
.gc-brand [data-icon] { width: 20px; height: 13px; color: var(--gold); }
.gc-word { font-family: 'Marcellus', var(--latin); font-size: 15px; letter-spacing: .2em; margin-right: -.2em; line-height: 1; color: var(--cocoa); }
.gift-card p { margin: 0; font-family: 'Amatic SC', var(--serif); color: #3b302b; text-align: center; }
.gc-brand { font-size: 10px !important; margin-bottom: 4px !important; }
.gc-to { font-size: 19px; }
.gc-msg { font-size: 21px; line-height: 1.15; font-weight: 700; padding: 2px 0; }
.gc-from { font-size: 18px; color: var(--taupe) !important; }

/* Panel */
.studio-panel { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 20px 16px; box-shadow: var(--shadow-sm); }
@media (min-width: 640px) { .studio-panel { padding: 26px 28px; } }
.studio-panel .chip { min-height: 36px; padding: 0 14px; font-size: 14px; }
.studio-panel .field { margin-bottom: 12px; }
.studio-panel .input, .studio-panel .textarea { min-height: 42px; font-size: 15px; }
.studio-panel .textarea { min-height: 72px; }
.st-group { margin-bottom: 18px; min-width: 0; }
.st-label { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--cocoa); margin: 0 0 8px; font-size: 15px; }
.st-label span { font-family: var(--latin); color: var(--gold); font-size: 14px; letter-spacing: .08em; }
.st-row { display: grid; grid-template-columns: 1fr; gap: 0 24px; }
@media (min-width: 560px) { .st-row { grid-template-columns: 1.4fr 1fr; } }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.swatch { display: grid; gap: 8px; justify-items: center; padding: 12px 8px 10px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--white); cursor: pointer; font-size: 14px; font-weight: 600; color: var(--taupe-deep); transition: all .2s var(--ease); }
.swatch:hover { border-color: var(--taupe); }
.swatch[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(180, 140, 88, .18); background: #fffaf2; color: var(--cocoa); }
.sw-dots { display: flex; }
.sw-dots i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(46, 38, 34, .1); margin-inline-start: -7px; }
.sw-dots i:first-child { margin-inline-start: 0; }

.sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.size { display: grid; gap: 1px; justify-items: center; text-align: center; padding: 9px 4px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--white); cursor: pointer; transition: all .2s var(--ease); }
.size b { font-family: var(--serif); font-weight: 400; font-size: 17px; color: var(--cocoa); }
.size small { font-size: 11px; color: var(--muted); line-height: 1.2; }
.size em { font-style: normal; font-weight: 700; font-size: 13px; color: var(--gold-ink); margin-top: 2px; }
.size:hover { border-color: var(--taupe); }
.size[aria-pressed="true"] { border-color: var(--gold); background: #fffaf2; box-shadow: 0 0 0 3px rgba(180, 140, 88, .18); }
@media (max-width: 420px) { .size small { display: none; } }

.dots { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.dot { width: 30px; height: 30px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-strong); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s; }
.dot:hover { transform: scale(1.08); }
.dot[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--gold); transform: scale(1.08); }
.dot[disabled] { opacity: .35; cursor: not-allowed; transform: none; }
.dot-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.studio-panel .chip small { font-weight: 400; opacity: .75; margin-inline-start: 4px; }

.suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sg { border: 1px dashed var(--line-strong); background: var(--cream); border-radius: 10px; padding: 6px 10px; font-size: 13px; cursor: pointer; color: var(--taupe-deep); text-align: start; }
.sg:hover { border-color: var(--gold); border-style: solid; color: var(--cocoa); }

.st-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin: 4px 0 0; border-radius: 16px; background: linear-gradient(135deg, #3a302b, #2a221e); color: var(--cream); }
.st-summary > div { display: grid; }
.st-summary strong { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; }
.st-summary .btn { min-height: 44px; font-size: 15px; padding: 0 1.3em; }
@media (max-width: 480px) { .st-summary .btn { width: 100%; } }
.st-summary .muted { color: #b9ab9c; }
.st-fine { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }

/* Matches */
.studio-match { margin-top: 32px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.match-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 560px; }
.match b { font-size: 15px !important; }
.match { display: grid; gap: 8px; border: 0; background: none; padding: 0; cursor: pointer; text-align: center; }
.match img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; transition: transform .6s var(--ease); }
.match:hover img { transform: scale(1.03); }
.match b { display: block; font-family: var(--serif); font-weight: 400; font-size: 17px; }
.match small { color: var(--muted); font-weight: 600; }
