:root {
  --bg: #f6efe6;
  --bg2: #efe4d6;
  --card: #fffaf3;
  --ink: #2a1a12;
  --muted: #7d6a5d;
  --line: #e7dacb;
  --accent: #d9572b;
  --accent-ink: #fff;
  --radius: 22px;
  --pad: 18px;
  --head: 'Unbounded', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink);
  background: radial-gradient(120% 60% at 50% 0%, #fbf5ee 0%, var(--bg) 55%, var(--bg2) 100%) fixed;
  font: 500 16px/1.45 var(--body);
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}
body.lock { overflow: hidden; }
main, .top, .demo-bar { max-width: 480px; margin: 0 auto; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2 { font-family: var(--head); font-weight: 700; letter-spacing: -.01em; margin: 0; }

.demo-bar { font-size: 12px; text-align: center; color: var(--muted); padding: 6px 12px 0; }

/* Шапка */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  padding: 10px var(--pad); background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.logo { font: 700 20px var(--head); color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-dot { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 30%, #f0d9bd 31% 60%, #b9783f 61%); box-shadow: 0 0 0 2px var(--ink); }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: #2f7d4a; background: #e3f1e4; padding: 5px 10px; border-radius: 99px; white-space: nowrap; }
.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }
.live.closed { color: #9a4a2a; background: #f6e2d8; }
.live.closed::before { animation: none; }
@keyframes pulse { 50% { opacity: .3; } }
.bag-btn { position: relative; flex: 0 0 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); display: grid; place-items: center; }
.bag-count { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font: 700 12px/20px var(--body); text-align: center; box-shadow: 0 0 0 2px var(--bg); }

/* ===== Сцена ===== */
.stage { padding-top: 6px; }
.stage-title { font-size: clamp(30px, 9vw, 40px); line-height: 1.05; padding: 4px var(--pad) 0; }
.stage-title .char { display: inline-block; }
.scene-box { position: relative; height: min(56vh, 430px); min-height: 330px; margin-top: -8px; }
#scene { width: 100%; height: 100%; display: block; outline: none; pointer-events: none; }
.scene-fallback { position: absolute; inset: 0; margin: auto; width: 86%; max-width: 360px; }
.scene-fallback[hidden] { display: none; }
.price-badge {
  position: absolute; right: 16px; top: 16px; display: flex; align-items: baseline; gap: 3px;
  font: 700 26px/1 var(--head); background: var(--accent); color: var(--accent-ink);
  border-radius: 18px; padding: 10px 13px; transform: rotate(5deg);
  box-shadow: 0 14px 26px -14px var(--accent);
}
.price-badge .cur { font-size: 20px; }
.drink-name {
  position: absolute; left: var(--pad); bottom: 14px; font: 700 15px var(--head);
  background: var(--card); border-radius: 99px; padding: 8px 14px; box-shadow: 0 6px 18px -10px rgba(60, 30, 10, .4);
}
.spin-hint { position: absolute; right: var(--pad); bottom: 18px; margin: 0; font-size: 12px; font-weight: 700; color: var(--muted); }

/* Одометр — цифри прокручуються */
.odo { display: inline-flex; align-items: flex-start; overflow: hidden; height: 1em; line-height: 1; vertical-align: -.08em; }
.odo-col { flex: none; height: 10em; display: flex; flex-direction: column; will-change: transform; }
.odo-col span { flex: none; height: 1em; display: block; text-align: center; }

/* ===== Карусель напоїв (cover-flow) ===== */
.flow { position: relative; height: 196px; overflow: hidden; touch-action: pan-y; perspective: 900px; margin-top: 6px; }
.flow-track { position: absolute; left: 50%; top: 8px; width: 0; height: 180px; cursor: grab; }
.flow-track:active { cursor: grabbing; }
.card {
  position: absolute; left: -70px; top: 0; width: 140px; height: 176px; border-radius: 26px;
  background: var(--card); border: 0; padding: 12px 10px 10px; text-align: center;
  box-shadow: 0 1px 0 var(--line), 0 18px 30px -22px rgba(60, 30, 10, .55);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transform-style: preserve-3d; will-change: transform, opacity;
}
.card.on { background: var(--ink); color: var(--bg); }
.card b { font: 700 14px var(--head); }
.card small { font-weight: 700; color: var(--muted); }
.card.on small { color: #cbb8a6; }
.mini { position: relative; width: 58px; height: 84px; margin: 2px 0 4px; clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%); border-radius: 4px 4px 12px 12px; background: rgba(255,255,255,.5); }
.mini::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.5) 0 3px, transparent 3px calc(100% - 3px), rgba(255,255,255,.5) calc(100% - 3px)); }
.mini i { position: absolute; left: 0; right: 0; display: block; }
.flow-dots { display: flex; justify-content: center; gap: 6px; margin: 2px 0 4px; }
.flow-dots i { width: 6px; height: 6px; border-radius: 6px; background: var(--line); transition: width .3s, background .3s; }
.flow-dots i.on { width: 20px; background: var(--ink); }

/* ===== Панель опцій ===== */
.panel { margin: 8px 12px 0; background: var(--card); border-radius: 28px; padding: 6px 0 18px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(60, 30, 10, .45); }
.opt { padding: 12px 16px 0; }
.opt[hidden], .toggle[hidden] { display: none; }
.opt-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.opt-note { color: var(--muted); font-weight: 600; font-size: 12px; }
.seg { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg); border-radius: 14px; padding: 4px; }
.seg-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 11px; background: var(--card); box-shadow: 0 2px 8px -3px rgba(60, 30, 10, .35); }
.seg button { position: relative; z-index: 1; border: 0; background: transparent; border-radius: 11px; padding: 9px 0; font-weight: 800; }
.seg button small { display: block; font-weight: 600; font-size: 12px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { position: relative; border: 1.5px solid var(--line); background: transparent; border-radius: 12px; padding: 8px 12px; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.chip small { color: var(--muted); font-weight: 600; }
.chip .dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.chip[aria-checked='true'] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.chip[aria-checked='true'] small { color: #cbb8a6; }

.slider { width: 100%; -webkit-appearance: none; appearance: none; height: 34px; background: transparent; margin: 0; }
.slider::-webkit-slider-runnable-track { height: 10px; border-radius: 10px; background: linear-gradient(90deg, #e8d7c2, #f4e9d8 50%, #fff); box-shadow: inset 0 0 0 1px var(--line); }
.slider::-moz-range-track { height: 10px; border-radius: 10px; background: linear-gradient(90deg, #e8d7c2, #f4e9d8 50%, #fff); box-shadow: inset 0 0 0 1px var(--line); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -10px; border-radius: 50%; background: var(--ink); border: 4px solid var(--card); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 4px solid var(--card); }
.slider-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 600; }

.toggle { display: flex; align-items: center; gap: 12px; padding: 14px 16px 0; font-weight: 700; font-size: 15px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-ui { flex: 0 0 46px; height: 28px; border-radius: 28px; background: var(--line); position: relative; transition: background .2s; }
.toggle-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.3, 1.5, .5, 1); box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.toggle input:checked + .toggle-ui { background: var(--accent); }
.toggle input:checked + .toggle-ui::after { transform: translateX(18px); }
.toggle input:focus-visible + .toggle-ui { outline: 2px solid var(--ink); outline-offset: 2px; }
.toggle-text b { color: var(--accent); }

/* ===== Нижня кнопка ===== */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 60%, transparent); }
.cta {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; max-width: 452px; margin: 0 auto;
  border: 0; border-radius: 20px; background: var(--accent); color: var(--accent-ink); padding: 17px 20px;
  font: 700 15px var(--head); box-shadow: 0 12px 26px -12px var(--accent); white-space: nowrap;
}
.cta:disabled { opacity: .55; }
.cta-price { display: inline-flex; align-items: baseline; gap: 4px; background: rgba(0,0,0,.14); padding: 6px 10px; border-radius: 12px; }

/* біжучий рядок */
.ticker { overflow: hidden; margin: 26px 0 0; background: var(--accent); color: var(--accent-ink); transform: rotate(-2deg); }
.ticker-track { display: flex; width: max-content; padding: 10px 0; font: 700 14px var(--head); }
.ticker-track span { padding: 0 14px; white-space: nowrap; }
.ticker-track span::after { content: '✦'; margin-left: 28px; opacity: .7; }

/* Десерти */
.desserts, .how, .info { margin: 30px var(--pad) 0; }
.desserts h2, .how h2 { font-size: 22px; margin-bottom: 12px; }
.d-list { display: grid; gap: 10px; }
.d-card { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: var(--radius); padding: 12px; box-shadow: 0 1px 0 var(--line); }
.d-pic { flex: 0 0 64px; height: 64px; border-radius: 18px; position: relative; overflow: hidden; }
.d-pic.cheesecake { background: linear-gradient(160deg, #3b2416 0 22%, #f7e7c6 22% 100%); }
.d-pic.croissant { background: radial-gradient(ellipse at 50% 60%, #e7a24f 0 38%, #c97b2c 39% 48%, #f3e3c6 49%); }
.d-pic.brownie { background: linear-gradient(135deg, #4a2615, #2d150b); }
.d-pic.brownie::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 35%, #c9a27a 0 6%, transparent 7%), radial-gradient(circle at 65% 60%, #c9a27a 0 5%, transparent 6%); }
.d-text { flex: 1; min-width: 0; }
.d-text b { display: block; font-size: 15px; }
.d-text span { color: var(--muted); font-size: 13px; }
.d-add { flex: 0 0 auto; border: 0; border-radius: 14px; background: var(--ink); color: var(--bg); padding: 10px 12px; font-weight: 800; font-size: 14px; }

.how ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.how li { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; gap: 2px 12px; background: var(--card); border-radius: var(--radius); padding: 14px; }
.how li::before { content: counter(s); grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font: 700 16px var(--head); }
.how li span { color: var(--muted); font-size: 14px; }

.info { background: var(--ink); color: var(--bg); border-radius: 26px; padding: 18px; }
.info-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 15px; }
.info-row span { color: #cbb8a6; }
.info-link { display: block; text-align: center; margin-top: 14px; padding: 13px; border-radius: 14px; background: var(--bg); color: var(--ink); font-weight: 800; text-decoration: none; }
.foot { padding: 26px var(--pad) 10px; color: var(--muted); font-size: 13px; text-align: center; }

/* Кошик (нижня шторка) */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(30, 15, 8, .4); z-index: 40; opacity: 0; transition: opacity .25s; }
.sheet-backdrop.show { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; max-width: 480px; margin: 0 auto;
  max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column;
  background: var(--card); border-radius: 26px 26px 0 0; transform: translateY(105%);
  transition: transform .45s cubic-bezier(.3, 1.2, .4, 1); box-shadow: 0 -10px 40px rgba(30, 15, 8, .2);
}
.sheet.open { transform: none; }
.sheet-grip { width: 42px; height: 5px; border-radius: 5px; background: var(--line); margin: 8px auto 0; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 8px var(--pad) 6px; }
.sheet-head h2 { font-size: 20px; }
.x { border: 0; background: var(--bg); width: 38px; height: 38px; border-radius: 50%; font-size: 24px; line-height: 1; }
.sheet-body { overflow-y: auto; padding: 0 var(--pad) calc(18px + env(safe-area-inset-bottom)); }
.bag-list { list-style: none; margin: 0; padding: 0; }
.bag-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bag-mini { flex: 0 0 34px; height: 44px; clip-path: polygon(0 0, 100% 0, 86% 100%, 14% 100%); background: linear-gradient(to top, #3a1e12 0 30%, #f4e9d8 30% 80%, #fffaf2 80%); border-radius: 3px 3px 7px 7px; }
.bag-mini.dessert { clip-path: none; border-radius: 12px; height: 34px; background: #ead6b8; }
.bag-info { flex: 1; min-width: 0; }
.bag-info b { display: block; font-size: 15px; }
.bag-info span { display: block; color: var(--muted); font-size: 13px; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; font-weight: 800; line-height: 1; }
.qty output { min-width: 16px; text-align: center; font-weight: 800; }
.bag-sum { font-weight: 800; min-width: 54px; text-align: right; }
.bag-empty { color: var(--muted); text-align: center; padding: 22px 0; }
.order[hidden] { display: none; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 6px; font-weight: 800; }
.total b { font: 700 22px var(--head); }
.f { display: block; margin-top: 12px; }
.f > span { display: block; font-size: 13px; font-weight: 800; color: var(--muted); margin-bottom: 6px; }
.f input { width: 100%; border: 1.5px solid var(--line); background: var(--bg); border-radius: 14px; padding: 13px 14px; font-size: 16px; outline: none; }
.f input:focus { border-color: var(--ink); }
.f input.bad { border-color: #c2412b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.2em; margin: 10px 0 0; font-size: 14px; font-weight: 700; color: #c2412b; }
.form-msg.ok { color: #2f7d4a; }
.order .cta { justify-content: center; margin-top: 10px; }

.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 30px); opacity: 0; visibility: hidden; background: var(--ink); color: var(--bg); padding: 12px 18px;
  border-radius: 14px; font-weight: 700; font-size: 14px; transition: transform .3s cubic-bezier(.3, 1.3, .5, 1), opacity .2s, visibility .3s;
  max-width: calc(100% - 32px); width: max-content; text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

.confetti { position: fixed; z-index: 70; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; }
.flyer { position: fixed; z-index: 65; pointer-events: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ===== v4: кроки та пончик ===== */
.step-hint { position: absolute; right: var(--pad); bottom: 20px; margin: 0; font-size: 12px; font-weight: 800; color: var(--muted); }
.pick[hidden], .panel[hidden] { display: none; }
.pick-tip { text-align: center; margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px 2px; }
.panel-title { font-size: 17px; }
.back { border: 0; background: var(--bg); border-radius: 99px; padding: 9px 14px; font-weight: 800; font-size: 14px; white-space: nowrap; }
.back span { display: inline-block; margin-right: 2px; }

.donuts { margin: 34px var(--pad) 0; }
.donuts h2 { font-size: 22px; }
.dn-sub { margin: 4px 0 0; color: var(--muted); }
.dn-stage { position: relative; margin: 6px -6px 0; }
.dn-svg { display: block; width: 100%; height: auto; overflow: visible; }
.dn-price { position: absolute; right: 6px; top: 4px; font: 700 22px var(--head); background: var(--accent); color: var(--accent-ink); border-radius: 16px; padding: 8px 12px; transform: rotate(6deg); }
.dn-info { text-align: center; margin-top: 2px; }
.dn-info b { display: block; font: 700 19px var(--head); }
.dn-info span { color: var(--muted); font-size: 14px; }
.dn-pick { display: flex; gap: 8px; overflow-x: auto; padding: 14px 2px 6px; scrollbar-width: none; }
.dn-pick::-webkit-scrollbar { display: none; }
.dn-chip { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 84px; padding: 10px 6px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--card); font-weight: 800; font-size: 12px; line-height: 1.2; text-align: center; }
.dn-chip[aria-checked='true'] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.dn-ball { width: 40px; height: 40px; border-radius: 50%; box-sizing: border-box; box-shadow: 0 4px 8px -4px rgba(60, 30, 10, .5); }
.dn-add { margin-top: 10px; }

/* ===== v5: бічна панель і пончик поруч ===== */
.side-tabs { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 5; }
.side-tabs[hidden] { display: none; }
.side-tab { border: 0; background: var(--ink); color: var(--bg); border-radius: 16px 0 0 16px; padding: 14px 10px 14px 12px; font: 700 13px var(--head); box-shadow: -6px 8px 18px -10px rgba(40, 20, 10, .6); writing-mode: vertical-rl; transform: rotate(180deg); }
.side-tab + .side-tab { background: var(--accent); }
.change-drink { position: absolute; left: var(--pad); top: 26px; z-index: 5; border: 0; background: var(--card); border-radius: 99px; padding: 8px 13px; font-weight: 800; font-size: 13px; box-shadow: 0 6px 16px -10px rgba(60, 30, 10, .5); }
.change-drink[hidden] { display: none; }

.drawer {
  position: fixed; right: 0; top: 70px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 35;
  width: min(60vw, 320px); display: flex; flex-direction: column;
  background: var(--card); border-radius: 26px 0 0 26px; box-shadow: -18px 0 40px -20px rgba(40, 20, 10, .45);
}
.drawer[hidden] { display: none; }
.drawer-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 6px 14px; }
.drawer-tabs { flex: 1; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 12px; padding: 3px; }
.dtab { border: 0; background: transparent; border-radius: 10px; padding: 8px 4px; font-weight: 800; font-size: 13px; }
.dtab[aria-selected='true'] { background: var(--ink); color: var(--bg); }
.drawer .x { flex: 0 0 34px; width: 34px; height: 34px; font-size: 20px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 0 14px; -webkit-overflow-scrolling: touch; }
.tabpane[hidden] { display: none; }
.drawer-title { margin: 6px 14px 0; font-weight: 800; }
.drawer-title b { font-family: var(--head); }
.drawer-note { margin: 2px 14px 0; color: var(--muted); font-size: 13px; }
.drawer .opt { padding: 10px 14px 0; }
.drawer .seg button { padding: 8px 0; }
.drawer .chip { padding: 7px 10px; font-size: 13px; }
.drawer .toggle { padding: 12px 14px 0; font-size: 14px; }
.drawer .back { margin: 16px 14px 0; }
.dn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 14px 0; }
.dn-grid .dn-chip { width: auto; }
.dn-chip small { font-weight: 700; color: var(--muted); }
.dn-chip[aria-checked='true'] small { color: #cbb8a6; }
.dn-ball.none { background: repeating-linear-gradient(45deg, var(--line) 0 4px, transparent 4px 8px); border: 2px dashed var(--line); box-shadow: none; }

/* ===== v6: крок 2 — одна сторінка, склянка зліва, склад справа ===== */
.stage.split { display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); align-items: start; }
.stage.split .stage-title { grid-column: 1 / -1; font-size: clamp(24px, 7vw, 34px); }
.stage.split .scene-box { grid-column: 1; position: sticky; top: 66px; height: min(62vh, 420px); min-height: 300px; margin-top: 0; }
.stage.split .pick { display: none; }
.stage.split .drawer {
  grid-column: 2; position: static; width: auto; top: auto; bottom: auto; display: block;
  background: transparent; box-shadow: none; border-radius: 0; border-left: 1px solid var(--line);
}
.stage.split .drawer-head { padding: 6px 10px 4px 12px; }
.stage.split .drawer .x { display: none; }
.stage.split .drawer-body { overflow: visible; padding-bottom: 10px; }
.stage.split .drawer .opt, .stage.split .drawer-title, .stage.split .drawer-note { padding-left: 12px; padding-right: 10px; margin-left: 0; }
.stage.split .drawer-title { margin: 6px 0 0; }
.stage.split .dn-grid { grid-template-columns: 1fr; padding: 10px 10px 0 12px; }
.stage.split .dn-grid .dn-chip { flex-direction: row; justify-content: flex-start; text-align: left; gap: 10px; padding: 8px 10px; }
.stage.split .dn-grid .dn-chip small { margin-left: auto; }
.stage.split .dn-ball { width: 30px; height: 30px; flex: none; }
.stage.split .price-badge { font-size: 19px; padding: 8px 10px; right: 6px; top: 6px; }
.stage.split .price-badge .cur { font-size: 15px; }
.stage.split .drink-name { left: 10px; bottom: 10px; font-size: 13px; padding: 7px 11px; }
.stage.split .step-hint { display: none; }
.stage.split .change-drink { left: 10px; top: 8px; font-size: 12px; padding: 7px 10px; }
.stage.split .side-tabs { display: none; }
.stage.split .seg button { font-size: 14px; }
.stage.split .seg button small { font-size: 11px; }

/* v6.1: склянка більша в лівій колонці, без зайвих плашок */
.stage.split { grid-template-columns: minmax(0, 48fr) minmax(0, 52fr); }
.stage.split .scene-box { height: 300px; min-height: 0; }
.stage.split .price-badge, .stage.split .drink-name { display: none; }
.stage.split .change-drink { top: auto; bottom: 8px; left: 8px; }

/* v7: жодних країв навколо 3D — область зі склянкою м'яко розчиняється у фон сторінки */
#scene {
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 86%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 86%, transparent 100%);
}

/* v7: крок 2 на телефоні — компактна права колонка, без розділової лінії, кнопки сіткою 2×2 */
.stage.split .drawer { border-left: 0; }
.stage.split { grid-template-columns: minmax(0, 50fr) minmax(0, 50fr); column-gap: 6px; }
.stage.split .scene-box { height: 280px; top: 70px; }
.stage.split .drawer-head { padding: 4px 8px 2px 0; }
.stage.split .drawer-title { font-size: 14px; padding: 0; margin: 4px 0 0; }
.stage.split .drawer .opt { padding: 10px 8px 0 0; }
.stage.split .drawer .opt-head { font-size: 13px; margin-bottom: 6px; }
.stage.split .drawer .opt-note { display: none; }
.stage.split .drawer .seg { padding: 3px; }
.stage.split .drawer .seg button { padding: 7px 0; font-size: 13px; }
.stage.split .drawer .chips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.stage.split .drawer .chip { justify-content: flex-start; padding: 8px 8px; font-size: 12px; border-radius: 11px; gap: 5px; line-height: 1.15; }
.stage.split .drawer .chip small { margin-left: auto; font-size: 11px; }
.stage.split .drawer .chip .dot { width: 10px; height: 10px; flex: none; }
.stage.split .drawer .slider-scale { font-size: 11px; }
.stage.split .drawer .toggle { padding: 12px 8px 0 0; font-size: 12px; gap: 8px; }
.stage.split .drawer .toggle-ui { flex-basis: 40px; height: 24px; }
.stage.split .drawer .toggle-ui::after { width: 18px; height: 18px; }
.stage.split .drawer .toggle input:checked + .toggle-ui::after { transform: translateX(16px); }
.stage.split .drawer .back { display: none; }
.stage.split .drawer-note { padding: 0 8px 0 0; font-size: 12px; }
.stage.split .dn-grid { padding: 8px 8px 0 0; gap: 6px; }
.stage.split .drawer { min-width: 0; overflow: hidden; }
.stage.split .drawer .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stage.split .drawer .chip { min-width: 0; flex-wrap: wrap; align-items: center; text-align: left; }
.stage.split .drawer .chip small { margin-left: 0; flex-basis: 100%; padding-left: 15px; }
.stage.split .drawer .chip:not(:has(small)) { align-content: center; }
/* v7.1: опції — акуратний список рядками, а не плитки */
.stage.split .drawer { z-index: auto; }
.stage.split .drawer .chips { display: flex; flex-direction: column; gap: 5px; }
.stage.split .drawer .chip { display: flex; flex-wrap: nowrap; width: 100%; padding: 7px 9px; min-height: 34px; white-space: nowrap; }
.stage.split .drawer .chip small { flex-basis: auto; padding-left: 0; margin-left: auto; }
.stage.split .drawer .toggle { align-items: flex-start; }
.stage.split .drawer .toggle-text { line-height: 1.25; }
