/* Decorate Your Vibe - public site.
   Velvet night base with iridescent chrome accents (taken from the logo).
   The 3D rooms bring the color; everything around them stays calm and dark. */
:root {
  --bg: #120a17; --bg-2: #170e1e; --card: #1d1325; --card-2: #271a31; --card-3: #32233d;
  --line: rgba(246, 238, 252, .1); --line-2: rgba(246, 238, 252, .2);
  --ink: #f6eefc; --ink-2: #d4c6df; --muted: #a493b3;
  --pink: #ff71ce; --hot: #ff2e88; --lilac: #c084fc; --ice: #9fe8ff;
  --chrome: linear-gradient(115deg, #ffe0f6 0%, #f3a8e4 20%, #c9a2ff 42%, #a8ecff 62%, #ffb8e6 82%, #fff0fa 100%);
  --chrome-ink: #1a0d1f;
  --display: "Unbounded", ui-sans-serif, system-ui, sans-serif;
  --body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-xl: 28px; --r-lg: 20px; --r: 14px; --r-sm: 10px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
html.no-scroll { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; margin: 0; line-height: 1.08; }
h1 { font-size: clamp(36px, 6.4vw, 76px); }
h2 { font-size: clamp(24px, 3.2vw, 36px); }
h3 { font-size: 17px; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0 0 12px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.chrome-text { background: var(--chrome); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------------------------------------------------------- buttons + inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; cursor: pointer; text-decoration: none;
  font: 700 15px/1 var(--body); padding: 14px 22px; border-radius: 999px; background: var(--card-2); color: var(--ink); white-space: nowrap;
  transition: transform .2s var(--spring), background-color .2s, border-color .2s, background-position .6s var(--ease); -webkit-tap-highlight-color: transparent; }
.btn:hover { background-color: var(--card-3); }
.btn:active { transform: scale(.96); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.chrome { background: var(--chrome); background-size: 220% 100%; background-position: 0% 0; color: var(--chrome-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 8px 30px rgba(201, 162, 255, .25); }
.btn.chrome:hover { background-position: 100% 0; }
.btn.ghost { background: transparent; border-color: var(--line-2); }
.btn.ghost:hover { background: rgba(255,255,255,.06); }
.btn.light { background: rgba(255,255,255,.9); color: var(--chrome-ink); }
.btn.light:hover { background: #fff; }
.btn.danger { background: transparent; border-color: rgba(255, 46, 136, .5); color: #ff8fbf; }
.btn.danger:hover { background: rgba(255, 46, 136, .12); }
.btn.sm { padding: 10px 15px; font-size: 14px; }
.btn.xs { padding: 7px 11px; font-size: 13px; }
.btn[disabled], .icon-btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--card-2); cursor: pointer;
  transition: transform .2s var(--spring), background-color .2s; -webkit-tap-highlight-color: transparent; padding: 0; }
.icon-btn:hover:not([disabled]) { background: var(--card-3); }
.icon-btn:active:not([disabled]) { transform: scale(.9); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn.sm { width: 34px; height: 34px; }
.icon-btn.sm svg { width: 16px; height: 16px; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, select.input { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 10px 12px; font-size: 15px; color: var(--ink); }
.input:focus { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(192, 132, 252, .25); }
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.seg button { flex: 1 1 auto; border: 0; background: transparent; border-radius: 10px; padding: 8px 10px; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--ink-2); transition: background-color .2s, color .2s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-2); background: transparent; padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { color: var(--ink); border-color: var(--ink-2); }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
input[type="range"] { width: 100%; accent-color: var(--pink); }
.switch { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.switch input { appearance: none; width: 38px; height: 22px; border-radius: 99px; background: var(--card-3); position: relative; cursor: pointer; transition: background-color .2s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); transition: transform .25s var(--spring); }
.switch input:checked { background: var(--hot); }
.switch input:checked::after { transform: translateX(16px); }

/* ---------------------------------------------------------------- header, menu, footer */
.top { position: sticky; top: 0; z-index: 40; background: rgba(18, 10, 23, .72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s; view-transition-name: site-header; }
.top.scrolled, .top.menu-open { border-bottom-color: var(--line); background: rgba(18, 10, 23, .9); }
.top-row { display: flex; align-items: center; gap: 18px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -.02em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: #1c1626 url("../img/logo-d.png") center / cover no-repeat; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { text-decoration: none; padding: 9px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--ink-2); transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.nav a.on { color: var(--ink); background: rgba(255,255,255,.1); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; position: relative; margin-left: 4px; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu { border-top: 1px solid var(--line); background: var(--bg); height: calc(100svh - 68px); overflow-y: auto; animation: menu-in .35s var(--ease); }
.menu-links { display: grid; padding-top: 18px; padding-bottom: 40px; }
.menu-links a { text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.menu-links small { font-family: var(--body); font-weight: 500; font-size: 15px; letter-spacing: 0; color: var(--muted); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
.foot { margin-top: 110px; border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--ink-2); font-size: 14px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot a { color: var(--ink-2); text-decoration: none; display: block; padding: 4px 0; }
.foot a:hover { color: var(--ink); }
.foot h3 { font-size: 13px; margin-bottom: 10px; color: var(--ink); font-family: var(--body); font-weight: 800; letter-spacing: 0; }
.foot .logo { color: var(--ink); margin-bottom: 14px; }
.disclose { font-size: 13px; color: var(--muted); max-width: 46ch; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot-base span:last-child { display: flex; gap: 18px; }
.foot-base a { display: inline; padding: 0; color: var(--muted); }

/* ---------------------------------------------------------------- home hero */
.hero { position: relative; height: min(84svh, 820px); min-height: 560px; margin: 0 12px; border-radius: var(--r-xl); overflow: hidden; background: #2a1b2f; isolation: isolate; }
.hero .stage { position: absolute; inset: 0; }
.hero .stage canvas { display: block; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64%; background: linear-gradient(to top, rgba(18, 10, 23, .9) 0%, rgba(18, 10, 23, .62) 45%, rgba(18, 10, 23, 0)); pointer-events: none; z-index: 1; }
.hero-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 28px 30px; pointer-events: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hero-copy > * { pointer-events: auto; }
.hero h1 { font-size: clamp(42px, 7.4vw, 96px); line-height: .95; letter-spacing: -.04em; max-width: 9ch; filter: drop-shadow(0 3px 22px rgba(18, 10, 23, .65)); }
.hero h1 .chrome-text { animation: shimmer 6s linear infinite; text-shadow: none; }
@keyframes shimmer { to { background-position: -200% 0; } }
.hero-lede { color: var(--ink-2); font-size: 17px; max-width: 42ch; margin: 16px 0 22px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-top { position: absolute; top: 18px; left: 18px; right: 18px; z-index: 2; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; pointer-events: none; }
.hero-top > * { pointer-events: auto; }
.pills { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(18, 10, 23, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); }
.pills button { border: 0; background: transparent; font: 700 14px/1 var(--body); padding: 10px 14px; border-radius: 999px; cursor: pointer; color: var(--ink-2); display: flex; align-items: center; gap: 8px; transition: background-color .25s, color .25s; }
.pills button:hover { color: var(--ink); }
.pills button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.pills .dot { width: 10px; height: 10px; border-radius: 50%; }
.hint { font-size: 13px; font-weight: 700; color: var(--ink); background: rgba(18, 10, 23, .55); padding: 9px 13px; border-radius: 999px; backdrop-filter: blur(12px); border: 1px solid var(--line); }
.picked { width: min(360px, 100%); background: rgba(29, 19, 37, .88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 16px; animation: pop-in .35s var(--spring); }
.picked-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }

/* ---------------------------------------------------------------- sections + cards */
.section { margin-top: 96px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head p { color: var(--ink-2); margin: 10px 0 0; max-width: 56ch; }
.page-head { padding-top: 48px; margin-bottom: 30px; }
.page-head h1 { font-size: clamp(34px, 5.4vw, 60px); }
.page-head p { color: var(--ink-2); margin-top: 12px; max-width: 58ch; font-size: 17px; }
.crumb { display: inline-block; font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 10px; }
.crumb:hover { color: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--chrome); color: var(--chrome-ink); font: 800 15px/1 var(--display); margin-bottom: 18px; }
.steps p { color: var(--ink-2); margin: 8px 0 0; font-size: 15px; }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.room-card { position: relative; border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .35s var(--ease), border-color .3s; }
.room-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.room-card .art { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.room-card .art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.room-card:hover .art img { transform: scale(1.04); }
.room-card .body { padding: 16px 18px 18px; display: grid; gap: 6px; flex: 1; }
.room-card .body p { color: var(--ink-2); font-size: 14px; margin: 0; }
.room-card .acts { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.room-card.soon { opacity: .62; }
.room-card.soon:hover { transform: none; }
.tag { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--ink-2); }
.tag .dot { width: 8px; height: 8px; border-radius: 50%; }
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 40px; overflow: hidden; }
.feature p { color: var(--ink-2); font-size: 17px; margin: 14px 0 22px; max-width: 46ch; }
.feature-art { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: #f6edff; }
.feature-art { display: block; }
.feature-art img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease), transform .6s var(--ease); }
.feature-art img.in { opacity: 1; }
.feature-art:hover img { transform: scale(1.03); }
.grid-prod { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.prod { text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), border-color .3s; }
.prod:hover { transform: translateY(-3px); border-color: var(--line-2); }
.prod img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; }
.prod .body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.prod .name { font-weight: 700; font-size: 15px; line-height: 1.3; }
.prod .meta { font-size: 13px; color: var(--muted); }
.prod .cta { margin-top: 6px; font-weight: 800; font-size: 14px; color: var(--pink); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.empty-state { text-align: center; padding: 56px 20px; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); color: var(--ink-2); display: grid; justify-items: center; gap: 8px; }
.empty-state h3 { color: var(--ink); }
.empty-state .btn { margin-top: 8px; }

/* ---------------------------------------------------------------- room page */
.room-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 22px; align-items: start; }
.viewer { position: relative; height: min(76svh, 740px); min-height: 460px; border-radius: var(--r-xl); overflow: hidden; }
.viewer-tools { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; z-index: 3; }
.side { position: sticky; top: 92px; max-height: calc(100svh - 110px); overflow-y: auto; padding-right: 4px; }
.side h2 { font-size: 22px; margin-bottom: 14px; }
.r3d-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.r3d-dot { position: absolute; left: 0; top: 0; pointer-events: auto; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; padding: 0;
  background: var(--chrome-ink); color: #fff; font: 800 13px/1 var(--body); cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: background-color .2s, scale .25s var(--spring); }
.r3d-dot:hover, .r3d-dot.on { background: var(--hot); scale: 1.15; }
.shop { display: grid; gap: 10px; }
.shop-item { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); scroll-margin-top: 100px; transition: border-color .25s, box-shadow .25s; }
.shop-item.on { border-color: var(--hot); box-shadow: 0 0 0 1px var(--hot); }
.shop-item .n { width: 32px; height: 32px; border-radius: 50%; background: var(--card-3); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.shop-item.on .n { background: var(--hot); }
.shop-item h3 { font-family: var(--body); font-size: 15px; font-weight: 800; letter-spacing: 0; margin-top: 5px; }
.shop-item .empty { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.prod-row { display: flex; gap: 10px; overflow-x: auto; padding: 10px 0 4px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.mini { flex: 0 0 148px; scroll-snap-align: start; text-decoration: none; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; background: var(--card-2); }
.mini img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fff; }
.mini span { display: block; padding: 7px 9px; font-size: 13px; line-height: 1.3; }
.mini b { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------------------------------------------------------------- legal */
.prose { max-width: 70ch; padding-top: 48px; }
.prose h1 { font-size: clamp(30px, 4.6vw, 46px); margin-bottom: 18px; }
.prose h2 { margin: 30px 0 10px; font-size: 20px; }
.prose p, .prose li { color: var(--ink-2); }
.prose a { color: var(--pink); }

/* ---------------------------------------------------------------- dialogs + toasts (shared by the makers) */
dialog.sheet { border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--card); color: var(--ink); padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100svh - 32px); box-shadow: var(--shadow); }
dialog.sheet[open] { animation: pop-in .3s var(--spring); }
dialog.sheet::backdrop { background: rgba(8, 4, 10, .66); backdrop-filter: blur(4px); }
.sheet-body { padding: 26px; overflow-y: auto; max-height: calc(100svh - 34px); }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.sheet-head h2 { font-size: 22px; }
.sheet-head p { color: var(--ink-2); font-size: 15px; margin: 6px 0 0; }
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow); animation: toast-in .35s var(--spring); pointer-events: none; display: flex; gap: 10px; align-items: center; }
.toast button { border: 0; background: transparent; font-weight: 800; text-decoration: underline; cursor: pointer; padding: 0; color: inherit; pointer-events: auto; }
.toast.out { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }

/* ---------------------------------------------------------------- page transitions */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------------------------------------------------------------- small screens */
@media (max-width: 960px) {
  .room-layout { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .feature { grid-template-columns: 1fr; padding: 26px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .top-cta { margin-left: auto; }
  .menu-btn { display: block; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top-row { height: 64px; gap: 10px; }
  .menu { height: calc(100svh - 64px); }
  .logo-text { font-size: 14px; }
  .top-cta { display: none; }
  .menu-btn { margin-left: auto; }
  .hero { margin: 0 8px; height: 80svh; min-height: 520px; border-radius: 22px; }
  .hero-copy { padding: 0 18px 20px; flex-direction: column; align-items: stretch; }
  .hero-lede { font-size: 15px; margin: 10px 0 16px; }
  .hero-top { top: 12px; left: 12px; right: 12px; }
  .hint { display: none; }
  .section { margin-top: 72px; }
  .foot-grid { grid-template-columns: 1fr; }
  .viewer { min-height: 420px; height: 64svh; border-radius: 22px; }
}

/* ================================================================ room maker (/make) */
body.app { height: 100svh; overflow: hidden; }
.appbar { height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 30; }
.appbar .logo-text { display: none; }
.room-name input { background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 8px 10px; font: 700 16px/1 var(--display); letter-spacing: -.02em; color: var(--ink); width: min(260px, 36vw); transition: border-color .2s, background-color .2s; }
.room-name input:hover { border-color: var(--line); }
.room-name input:focus { outline: none; border-color: var(--lilac); background: var(--card); }
.appbar-tools { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.appbar .sep { width: 1px; height: 24px; background: var(--line); margin: 0 2px; }
.studio { position: relative; height: calc(100svh - 60px); display: grid; grid-template-columns: 300px minmax(0, 1fr) 330px; }
.studio .panel { background: var(--bg); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.panel-add { border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.panel-edit { border-left: 1px solid var(--line); }
.panel-inner { padding: 18px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.panel-title h2 { font-size: 17px; }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--muted); }
.search input { padding-left: 36px; }
.cat-chips { display: flex; gap: 6px; overflow-x: auto; padding: 12px 18px 12px; margin: 0 -18px; scrollbar-width: none; }
.cat-chips::-webkit-scrollbar { display: none; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 18px 24px; }
.tile { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 6px 4px 8px; cursor: grab; display: grid; justify-items: center; gap: 2px; font-size: 11.5px; font-weight: 700; line-height: 1.2; text-align: center; color: var(--ink-2);
  transition: transform .2s var(--spring), border-color .2s, background-color .2s; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.tile:hover { border-color: var(--line-2); background: var(--card-2); color: var(--ink); transform: translateY(-2px); }
.tile:active { transform: scale(.95); cursor: grabbing; }
.tile .thumb { width: 100%; aspect-ratio: 1; background-repeat: no-repeat; border-radius: 10px; }
.tile-group { grid-column: 1 / -1; font-size: 12px; font-weight: 800; color: var(--muted); margin: 10px 2px 2px; }
.tiles .none { grid-column: 1 / -1; color: var(--muted); font-size: 14px; padding: 20px 4px; }
.drag-ghost { position: fixed; z-index: 80; width: 76px; height: 76px; border-radius: 16px; background-color: var(--card-2); border: 1px solid var(--line-2); pointer-events: none; box-shadow: var(--shadow); translate: -50% -50%; background-repeat: no-repeat; }
.stage-wrap { position: relative; overflow: hidden; }
.stage-wrap .stage { position: absolute; inset: 0; transition: background .6s; }
.stage-wrap.dropping .stage { outline: 2px dashed var(--pink); outline-offset: -10px; }
.stage-tools { position: absolute; left: 14px; bottom: 14px; z-index: 5; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stage-tools .seg { background: rgba(18, 10, 23, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.glass { background: rgba(18, 10, 23, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); }
.stage-hint { position: absolute; top: 14px; left: 50%; translate: -50% 0; z-index: 5; font-size: 13px; font-weight: 700; padding: 9px 14px; border-radius: 999px; white-space: nowrap; transition: opacity .4s; background: rgba(18, 10, 23, .82) !important; color: var(--ink); }
.stage-hint.gone { opacity: 0; pointer-events: none; }
.float-bar { position: absolute; left: 0; top: 0; z-index: 6; display: flex; gap: 4px; padding: 5px; border-radius: 999px; translate: -50% calc(-100% - 14px); box-shadow: var(--shadow); animation: pop-in .25s var(--spring); }
.float-bar .icon-btn { background: transparent; border-color: transparent; }
.float-bar .icon-btn:hover { background: rgba(255,255,255,.1); }
.float-bar .icon-btn.del:hover { background: rgba(255, 46, 136, .2); color: #ff8fbf; }
.loading { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; background: var(--bg); transition: opacity .5s; font-weight: 700; color: var(--ink-2); }
.loading.done { opacity: 0; pointer-events: none; }
.loading .spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--card-3); border-top-color: var(--pink); animation: spin .8s linear infinite; margin: 0 auto 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
.tabbar { display: none; }

/* inspector */
.insp-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.insp-head .thumb { width: 54px; height: 54px; border-radius: 14px; background-color: var(--card); border: 1px solid var(--line); flex: none; background-repeat: no-repeat; }
.insp-head h2 { font-size: 17px; }
.insp-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.insp-head .icon-btn { margin-left: auto; flex: none; }
.group { border-top: 1px solid var(--line); padding: 16px 0; display: grid; gap: 10px; }
.group:first-of-type { border-top: 0; padding-top: 4px; }
.group > h3 { font-family: var(--body); font-size: 13px; font-weight: 800; letter-spacing: 0; color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; }
.group > h3 button { border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: underline; padding: 0; }
.row { display: flex; gap: 8px; align-items: center; }
.row > .grow { flex: 1; }
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.actions .btn { flex-direction: column; gap: 5px; padding: 10px 4px; font-size: 12px; border-radius: 14px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.14); cursor: pointer; padding: 0; transition: transform .2s var(--spring); }
.swatch:hover { transform: scale(1.15); }
.swatch[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px var(--hot); }
.swatch.custom { background: conic-gradient(#ff71ce, #c084fc, #7df9ff, #3ee6a0, #fff2b8, #ff71ce); position: relative; overflow: hidden; }
.swatch.custom input { position: absolute; inset: -6px; opacity: 0; cursor: pointer; width: 40px; height: 40px; }
.color-row { display: grid; gap: 6px; }
.color-row label { font-size: 12px; font-weight: 700; color: var(--muted); }
.style-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.style-card { border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 8px; cursor: pointer; display: grid; gap: 6px; text-align: left; font-size: 13px; font-weight: 800; transition: border-color .2s, transform .2s var(--spring); }
.style-card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.style-card[aria-pressed="true"] { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink); }
.style-card .sw { height: 34px; border-radius: 9px; }
.pattern-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.pattern { aspect-ratio: 1; border-radius: 10px; border: 2px solid transparent; cursor: pointer; padding: 0; background-size: cover; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.pattern[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px var(--hot); }
.art-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.art-pick { aspect-ratio: 3 / 4; border-radius: 8px; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--card) center / cover no-repeat; }
.art-pick[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px var(--hot); }
.range-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-2); }
.range-row output { font-weight: 800; color: var(--ink); min-width: 46px; text-align: right; }
.shop-mini { display: grid; gap: 8px; }
.shop-card { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center; text-decoration: none; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); transition: border-color .2s; }
.shop-card:hover { border-color: var(--line-2); }
.shop-card img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: #fff; }
.shop-card span { font-size: 13px; line-height: 1.3; }
.shop-card b { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.note { font-size: 13px; color: var(--muted); }
.kbd { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; color: var(--ink-2); }
.kbd kbd { font: 700 12px/1 var(--body); background: var(--card-3); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 5px 7px; color: var(--ink); white-space: nowrap; }
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tpl { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card-2); cursor: pointer; padding: 0; text-align: left; display: grid; transition: transform .25s var(--spring), border-color .2s; }
.tpl:hover { transform: translateY(-3px); border-color: var(--line-2); }
.tpl .pic { aspect-ratio: 4 / 3; background: var(--card-3) center / cover no-repeat; }
.tpl span { padding: 9px 10px 11px; font-size: 13px; font-weight: 800; }
.share-row { display: flex; gap: 8px; }
.share-row input { flex: 1; min-width: 0; }

@media (max-width: 1100px) {
  .studio { grid-template-columns: 270px minmax(0, 1fr) 300px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .appbar { padding: 0 10px; gap: 6px; }
  .appbar .sep, .appbar .hide-sm { display: none; }
  .room-name input { width: 40vw; font-size: 14px; }
  .studio { display: block; height: calc(100svh - 60px - 64px); }
  .stage-wrap { position: absolute; inset: 0; }
  .studio .panel { position: fixed; left: 0; right: 0; bottom: 64px; z-index: 20; max-height: 56svh; border: 0; border-top: 1px solid var(--line-2); border-radius: 22px 22px 0 0;
    box-shadow: 0 -20px 50px rgba(0,0,0,.45); transform: translateY(105%); transition: transform .38s var(--ease); visibility: hidden; }
  .studio .panel.open { transform: none; visibility: visible; }
  .studio .panel::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 10px auto 0; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; height: 64px; z-index: 25; background: var(--bg); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar button { border: 0; background: transparent; display: grid; justify-items: center; align-content: center; gap: 3px; font-size: 11.5px; font-weight: 800; color: var(--muted); cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tabbar button svg { width: 22px; height: 22px; }
  .tabbar button[aria-pressed="true"] { color: var(--ink); }
  .tabbar button[disabled] { opacity: .35; }
  .stage-tools { left: 10px; bottom: 10px; }
  .stage-tools .hide-sm { display: none; }
  .stage-hint { top: 10px; font-size: 12px; max-width: calc(100% - 20px); white-space: normal; text-align: center; }
  .tpl-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .appbar .btn.sm { padding: 9px 12px; font-size: 13px; }
  .style-cards { grid-template-columns: repeat(3, 1fr); }
  .pattern-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ================================================================ outfit maker (/outfits/make) */
.board-stage { background: radial-gradient(90% 70% at 50% 30%, #241830, var(--bg)); }
.board { position: absolute; left: 0; top: 0; width: 600px; height: 900px; transform-origin: 0 0; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); touch-action: none; user-select: none; -webkit-user-select: none; }
.board .bg { position: absolute; inset: 0; }
#items { position: absolute; inset: 0; }
.oi { position: absolute; left: 0; top: 0; cursor: grab; transform-origin: 50% 50%; display: grid; place-items: center; }
.oi:active { cursor: grabbing; }
.oi svg, .oi img { display: block; width: 100%; height: 100%; pointer-events: none; }
.oi.pop { animation: oi-pop .45s var(--spring) both; }
@keyframes oi-pop { from { opacity: 0; scale: .5; } }
.pcard { width: 100%; height: 100%; background: #fff; border-radius: 14px; padding: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.pcard img { border-radius: 8px; object-fit: cover; }
.pcut { width: 100%; height: 100%; }
.pcut img { object-fit: contain; }
.pcut.blend img { mix-blend-mode: multiply; }
.otext { white-space: nowrap; line-height: 1; pointer-events: none; }
.otext.edge { text-shadow: 0 0 0 #fff, 3px 0 #fff, -3px 0 #fff, 0 3px #fff, 0 -3px #fff, 2px 2px #fff, -2px -2px #fff, 2px -2px #fff, -2px 2px #fff; }
.otext.edge.dark { text-shadow: 3px 0 #120a17, -3px 0 #120a17, 0 3px #120a17, 0 -3px #120a17, 2px 2px #120a17, -2px -2px #120a17, 2px -2px #120a17, -2px 2px #120a17; }
.cap-wrap { position: absolute; left: 0; top: 0; pointer-events: none; }
.cap { display: inline-block; translate: -50% 0; background: rgba(28,22,38,.88); color: #fff; font: 700 15px/1 var(--body); padding: 7px 11px; border-radius: 999px; white-space: nowrap; }
.selframe { position: absolute; left: 0; top: 0; border: calc(2px * var(--inv, 1)) dashed var(--hot); border-radius: 10px; pointer-events: none; transform-origin: 50% 50%; }
.handle { position: absolute; width: calc(24px * var(--inv, 1)); height: calc(24px * var(--inv, 1)); border-radius: 50%; background: #fff; border: calc(2.5px * var(--inv, 1)) solid var(--hot); pointer-events: auto; box-shadow: 0 2px 8px rgba(0,0,0,.25); touch-action: none; }
.handle.scale { right: calc(-13px * var(--inv, 1)); bottom: calc(-13px * var(--inv, 1)); cursor: nwse-resize; }
.handle.rot { left: 50%; top: calc(-46px * var(--inv, 1)); translate: -50% 0; cursor: grab; }
.handle.rot::after { content: ""; position: absolute; left: 50%; top: 100%; width: calc(2px * var(--inv, 1)); height: calc(22px * var(--inv, 1)); background: var(--hot); translate: -50% 0; }
.otiles .thumb.opv { display: grid; place-items: center; background: #f6edff; padding: 8px; }
.otiles .thumb.opv svg { width: 100%; height: 100%; }
.bg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bg-grid .pattern { aspect-ratio: 2 / 3; }
.preset-grid { grid-template-columns: repeat(4, 1fr); }
.preset-grid .pic svg { filter: drop-shadow(0 4px 6px rgba(0,0,0,.15)); }
.tile-chip { cursor: pointer; }
@media (max-width: 860px) {
  .preset-grid { grid-template-columns: repeat(2, 1fr); }
  .board-stage { position: absolute; inset: 0; }
}
.btn.glass { background: rgba(18, 10, 23, .72); border-color: var(--line-2); color: var(--ink); }
.btn.glass:hover { background: rgba(18, 10, 23, .88); }

.show-xs { display: none; }
.room-name { min-width: 0; flex: 1 1 auto; }
.room-name input { max-width: 100%; }
#open-share svg { display: none; }
.pills { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pills button { white-space: nowrap; flex: none; }
@media (max-width: 520px) {
  .hide-xs { display: none; }
  .show-xs { display: inline; }
  #open-share { padding: 0; width: 40px; height: 40px; }
  #open-share svg { display: block; }
  .appbar { gap: 4px; }
  .appbar .logo-mark { width: 30px; height: 30px; }
  .appbar .icon-btn { width: 36px; height: 36px; }
  .room-name input { width: 100%; font-size: 13px; padding: 8px 6px; }
}
