:root {
  --ink: #202037;
  --muted: #6f6e83;
  --paper: #ffffff;
  --cloud: #f5f7fb;
  --line: #e5e5ef;
  --coral: #ff5f67;
  --coral-dark: #e94352;
  --cyan: #24c6dc;
  --lemon: #ffd84e;
  --violet: #8867e8;
  --mint: #78dfbd;
  --shadow: 0 18px 48px rgba(56, 48, 98, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cloud);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--cloud); color: var(--ink); }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 100; padding: .75rem 1rem; color: #fff; background: var(--ink); border-radius: 10px; }
.skip-link:focus { top: 1rem; }

.topbar { position: sticky; top: 0; z-index: 30; min-height: 82px; display: grid; grid-template-columns: minmax(180px, 1fr) auto minmax(max-content, 1fr); align-items: center; gap: 1.5rem; padding: .85rem clamp(1rem, 4vw, 4rem); background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(32,32,55,.08); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: .75rem; width: fit-content; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; color: white; background: var(--coral); border-radius: 15px; box-shadow: 0 8px 20px rgba(255,95,103,.27); font-size: 1.4rem; }
.brand strong { display: block; font: 800 1.3rem/1 "Outfit", sans-serif; letter-spacing: -.04em; }
.brand small { display: block; margin-top: .25rem; color: var(--muted); font-size: .66rem; font-weight: 700; letter-spacing: .12em; }
.main-nav { display: flex; align-items: center; padding: .3rem; border: 1px solid var(--line); border-radius: 999px; background: var(--cloud); }
.nav-button { min-height: 42px; padding: .55rem 1rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.nav-button span { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; margin-left: .25rem; padding: 0 .3rem; color: var(--ink); background: var(--lemon); border-radius: 99px; font-size: .72rem; }
.nav-button.active { color: var(--ink); background: white; box-shadow: 0 3px 12px rgba(32,32,55,.08); }
.player-strip { display: flex; justify-content: flex-end; gap: .65rem; }
.basket-chip { display: flex; align-items: center; gap: .45rem; min-height: 48px; padding: .45rem .8rem; border: 0; border-radius: 15px; color: white; background: var(--ink); cursor: pointer; }
.basket-chip span { color: var(--lemon); }.basket-chip small { display: grid; place-items: center; min-width: 22px; height: 22px; color: var(--ink); background: var(--lemon); border-radius: 99px; font-weight: 800; }
.stat-chip { display: flex; align-items: center; gap: .6rem; min-height: 48px; padding: .45rem .85rem; border: 1px solid var(--line); border-radius: 15px; background: white; }
.stat-chip strong, .stat-chip small { display: block; }
.stat-chip strong { font-size: .9rem; }
.stat-chip small { margin-top: .12rem; color: var(--muted); font-size: .68rem; }
/* The Spark tab is information, not an alarm: neutral violet, never red or amber. */
.stat-chip .spark-tab { color: var(--violet); font-weight: 700; }
.basket-tab-note { margin: .7rem 0 0; padding: .65rem .85rem; color: #4a3f8a; background: #f1edff; border-radius: 12px; font-size: .78rem; line-height: 1.45; }
.tab-note { margin: .9rem 0 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.spark-symbol, .level-orb { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; }
.spark-symbol { background: var(--lemon); }
.spark-chip { position: relative; text-align: left; cursor: pointer; transition: border-color .2s ease; }
.spark-chip:hover { border-color: var(--coral); }
/* Sparks waiting to be collected: a rainbow ring around the balance, which collects them when pressed. */
.spark-chip.tap-ready::after { content: ""; position: absolute; inset: -3px; border-radius: 18px; padding: 3px; background: conic-gradient(from 0deg, #ff5f67, #ffa53d, #ffd84e, #4fd08a, #35c7e0, #6f8cff, #b169ff, #ff5f67); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; animation: spark-rainbow 2.4s linear infinite; pointer-events: none; }
@keyframes spark-rainbow { to { filter: hue-rotate(360deg); } }
.tap-dot { position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border: 2px solid white; border-radius: 50%; background: var(--coral); }
.intro-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .75rem; }
.tap-icon { position: relative; flex: 0 0 auto; width: 30px; height: 36px; overflow: hidden; border: 3px solid var(--coral); border-radius: 50% 50% 12px 12px / 45% 45% 12px 12px; background: #fff7ef; }
.tap-icon span { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(var(--lemon), var(--coral)); transition: height .6s ease; }
.tap-mini.tap-ready { border-color: var(--coral); box-shadow: 0 6px 18px rgba(255,111,97,.16); }
.level-orb { color: white; background: var(--violet); font-size: .8rem; font-weight: 800; }

main { width: min(1440px, 100%); min-height: calc(100vh - 160px); margin: 0 auto; padding: 2.4rem clamp(1rem, 4vw, 4rem) 5rem; }
.fiction-notice { position: sticky; top: 82px; z-index: 24; padding: .55rem 1rem; color: #554514; background: #fff5bd; border-bottom: 1px solid #f0dd79; text-align: center; font-size: .78rem; }
.view { animation: view-in .35s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } }
.shop-intro, .section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 1.7rem; }
.eyebrow { display: block; margin-bottom: .45rem; color: var(--coral-dark); font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
h1, h2, h3 { font-family: "Outfit", sans-serif; letter-spacing: -.035em; }
h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: .98; }
h2 { margin: 0; font-size: clamp(1.45rem, 2.3vw, 2.2rem); }
p { line-height: 1.6; }
.restraint-mini { display: flex; align-items: center; gap: .8rem; min-width: 240px; padding: .8rem 1rem; background: white; border: 1px solid var(--line); border-radius: 16px; text-align: left; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease; }
.restraint-mini:hover { border-color: var(--violet); box-shadow: 0 6px 18px rgba(136,103,232,.14); }
.jar-icon { position: relative; flex: 0 0 auto; width: 30px; height: 36px; overflow: hidden; border: 3px solid var(--violet); border-top-width: 6px; border-radius: 8px 8px 11px 11px; background: #f5f3ff; }
.jar-icon span { position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: linear-gradient(var(--lemon), var(--coral)); transition: height .6s ease; }
.restraint-icon { display: grid; place-items: center; width: 36px; height: 36px; color: var(--coral-dark); background: #fff0f1; border-radius: 12px; font-size: 1.3rem; }
.restraint-mini strong, .restraint-mini small { display: block; }
.restraint-mini strong { font-size: .9rem; }
.restraint-mini small { margin-top: .15rem; color: var(--muted); font-size: .74rem; }
.discovery-strip { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.25rem; padding: .8rem; background: white; border: 1px solid var(--line); border-radius: 18px; }
.discovery-strip > div { display: flex; align-items: center; gap: .75rem; flex: 1; }.discovery-strip strong,.discovery-strip small { display:block; }.discovery-strip small { margin-top:.15rem;color:var(--muted); }
.pip-avatar { display:grid;place-items:center;width:42px;height:42px;flex:0 0 auto;color:white;background:var(--violet);border-radius:14px;font:800 1rem "Outfit"; }

.help-dialog,.faq-dialog { width:min(760px,calc(100% - 2rem));max-height:min(82vh,820px);padding:2.2rem;overflow:auto; }.help-dialog h2,.faq-dialog h2{font-size:2rem}.help-dialog li,.faq-dialog p{color:var(--muted);line-height:1.55}.help-dialog li+li{margin-top:.7rem}.faq-intro{margin-bottom:1.2rem}.faq-list{display:grid;gap:.65rem}.faq-list details{padding:1rem 1.1rem;background:var(--cloud);border:1px solid var(--line);border-radius:15px}.faq-list summary{font-weight:800;cursor:pointer}.faq-list p{margin:.65rem 0 0}
@media (max-width: 520px) {
  .help-dialog,.faq-dialog { padding:1.5rem; }
}

/* ── This week's theme ── a fixed weekly rotation. The look changes; prices and rewards never do. */
.theme-banner { --theme-accent: var(--violet); --theme-soft: #efeaff; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(250px, 1fr) minmax(0, 1.15fr); gap: 1.2rem; margin-bottom: 1.25rem; padding: 1.25rem 1.35rem; background: var(--theme-soft); border: 1px solid var(--line); border-color: color-mix(in srgb, var(--theme-accent) 30%, white); border-radius: 22px; transition: background .6s ease; }
.theme-copy, .theme-picks { position: relative; z-index: 2; }
.theme-banner .eyebrow { color: var(--theme-accent); }
.theme-banner h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
.theme-tagline { display: block; margin-top: .3rem; font-size: .95rem; }
.theme-banner p { margin: .5rem 0 .75rem; max-width: 46ch; color: var(--muted); font-size: .88rem; }
.theme-meta { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .5rem .9rem; font-size: .78rem; }
.theme-next { display: inline-flex; align-items: center; min-height: 30px; padding: .25rem .65rem; background: white; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; }
.theme-rotation summary { min-height: 30px; padding: .35rem 0; color: var(--muted); font-weight: 700; cursor: pointer; }
.theme-rotation ol { margin: .5rem 0 0; padding-left: 1.2rem; color: var(--muted); font-size: .8rem; line-height: 1.7; }
.theme-rotation li.is-now { color: var(--ink); font-weight: 800; }
.theme-rotation p { max-width: 42ch; margin: .5rem 0 0; font-size: .78rem; }
.theme-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
/* Just arrived */
.new-shelf { margin-bottom: 1.7rem; padding: 1.2rem 1.3rem 1.3rem; background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.new-shelf-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: .9rem; }
.new-shelf-head h2 { margin: 0; font-size: 1.3rem; }
.new-shelf .note { margin: .2rem 0 0; color: var(--muted); font-size: .85rem; }
.new-picks { grid-template-columns: repeat(6, 1fr); }
.new-shelf[hidden] { display: none; }
.window-shelf { background: linear-gradient(140deg, #fff, var(--cloud)); }
.window-shelf .eyebrow { color: var(--violet); }
/* Welcome back */
.away-card { position: relative; margin-bottom: 1.4rem; padding: 1.2rem 1.4rem; background: linear-gradient(120deg, var(--lemon-soft, #fff8dd), #fff); border: 1px solid var(--line); border-radius: 20px; }
.away-card[hidden] { display: none; }
.away-card h2 { margin: 0 0 .5rem; font-size: 1.25rem; }
.away-card ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .25rem; }
.away-card li { color: var(--ink); }
.away-note { display: block; margin-top: .6rem; color: var(--muted); font-size: .78rem; }
.away-close { position: absolute; top: .6rem; right: .6rem; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.8); font-size: 1.2rem; cursor: pointer; }
@media (max-width: 1100px) { .new-picks { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .new-picks { grid-template-columns: repeat(2, 1fr); } .new-shelf { padding: 1rem; } }
.theme-pick { display: grid; grid-template-rows: auto 1fr; gap: .55rem; padding: .6rem; background: white; border: 1px solid var(--line); border-radius: 16px; text-align: left; cursor: pointer; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.theme-pick:hover { border-color: var(--theme-accent); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(32,32,55,.1); }
.theme-pick-art { display: block; aspect-ratio: 1.25; border-radius: 11px; background-repeat: no-repeat; background-size: 200% 200%; }
.theme-pick strong { display: block; font: 800 .88rem/1.2 "Outfit", sans-serif; }
.theme-pick small { display: block; margin-top: .22rem; color: var(--muted); font-size: .74rem; line-height: 1.4; }
.theme-pick-foot { display: block; margin-top: .45rem; font-size: .8rem; font-weight: 800; }
.theme-pick-foot span { color: var(--coral); }

/* Weekly weather, shared by the banner and the Cloudroom. Each <i> is an invisible track 10% of its stage tall
   and the mark is drawn in ::before, so one percentage translate carries it across any stage size. */
.theme-weather, .room-weather { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.theme-weather { z-index: 1; opacity: .85; }
.room-weather { z-index: 2; }
.theme-weather i, .room-weather i { position: absolute; left: var(--x); top: 0; width: 0; height: 10%; opacity: var(--o); animation: weather-fall var(--t) linear var(--d) infinite; }
.theme-weather i::before, .room-weather i::before { content: ""; position: absolute; left: 0; top: 0; }
[data-weather="rain"] i { animation-duration: calc(var(--t) * .45); }
[data-weather="rain"] i::before { width: 2px; height: 100%; border-radius: 2px; background: linear-gradient(transparent, var(--theme-accent, #4f7fd6)); }
[data-weather="stars"] i { top: var(--y); height: 0; animation: weather-twinkle var(--t2) ease-in-out var(--d) infinite alternate; }
[data-weather="stars"] i::before { width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--theme-accent, #8867e8); box-shadow: 0 0 9px 2px var(--theme-accent, #8867e8); transform: scale(var(--s)); }
[data-weather="petals"] i { animation-duration: calc(var(--t) * 1.5); }
[data-weather="petals"] i::before { width: 11px; aspect-ratio: 1.25; border-radius: 62% 12% 62% 12%; background: var(--theme-accent, #3ea57a); animation: weather-sway var(--t2) ease-in-out infinite alternate; }
[data-weather="neon"] i { top: 100%; animation-name: weather-rise; animation-duration: calc(var(--t) * 1.6); }
[data-weather="neon"] i::before { width: 7px; height: 7px; border-radius: 50%; background: var(--theme-accent, #1ba9bd); box-shadow: 0 0 10px 3px var(--theme-accent, #1ba9bd); transform: scale(var(--s)); }
[data-weather="motes"] i { animation-duration: calc(var(--t) * 2.6); }
[data-weather="motes"] i::before { width: 6px; height: 6px; border-radius: 50%; background: var(--theme-accent, #d8801f); box-shadow: 0 0 7px var(--theme-accent, #d8801f); animation: weather-sway var(--t2) ease-in-out infinite alternate; }
@keyframes weather-fall { from { transform: translateY(-120%); } to { transform: translateY(1050%); } }
@keyframes weather-rise { from { transform: translateY(120%); } to { transform: translateY(-1050%); } }
@keyframes weather-sway { from { transform: translateX(-9px) rotate(-20deg) scale(var(--s)); } to { transform: translateX(9px) rotate(26deg) scale(var(--s)); } }
@keyframes weather-twinkle { from { opacity: .12; } to { opacity: 1; } }

.flash-zone { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; min-height: 360px; background: var(--ink); border-radius: 34px; box-shadow: var(--shadow); }
.flash-zone::after { content: ""; position: absolute; width: 260px; height: 260px; left: 41%; bottom: -190px; border: 46px solid rgba(255,216,78,.18); border-radius: 50%; }
.flash-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(2rem, 5vw, 4.5rem); color: white; }
.live-label { display: inline-flex; gap: .45rem; align-items: center; padding: .4rem .65rem; border: 1px solid rgba(255,255,255,.25); border-radius: 99px; color: var(--lemon); font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.live-label span { color: var(--coral); }
.flash-copy h2 { max-width: 600px; margin-top: 1rem; font-size: clamp(2.25rem, 5vw, 4.6rem); line-height: .94; }
.flash-copy p { max-width: 620px; margin: 1rem 0; color: #d8d8e6; font-size: .95rem; }
.flash-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.3rem; color: #fff; font-size: .8rem; }
.primary-button, .secondary-button { min-height: 48px; padding: .75rem 1.15rem; border-radius: 14px; font-weight: 800; cursor: pointer; }
.primary-button { border: 0; color: var(--ink); background: var(--lemon); box-shadow: 0 8px 22px rgba(255,216,78,.18); }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255,216,78,.26); }
.primary-button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.secondary-button { border: 1px solid var(--line); background: white; }
.flash-visual { position: relative; min-height: 360px; background-image: radial-gradient(circle at 55% 42%, #4b3a8f, #202037 72%); }
/* Until app.js has drawn this week's deal and its picture has loaded, show only the dark panel (no stand-in product).
   The animation is a failsafe: if the script never finishes, everything appears after four seconds. */
.flash-zone[data-pending] .flash-copy > *, .flash-zone[data-pending] .flash-visual > * { visibility: hidden; animation: flash-failsafe 0s 4s forwards; }
@keyframes flash-failsafe { to { visibility: visible; } }
.flash-visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 0%, transparent 26%); }
.npc-stack { position: absolute; top: 1.2rem; right: 1.2rem; display: flex; flex-direction: row-reverse; }
.npc-stack span { display: grid; place-items: center; width: 38px; height: 38px; margin-left: -.45rem; border: 3px solid white; border-radius: 50%; font: 800 .72rem "Outfit"; }
.npc-stack span:nth-child(1) { background: var(--lemon); }
.npc-stack span:nth-child(2) { color: white; background: var(--coral); }
.npc-stack span:nth-child(3) { color: white; background: var(--violet); }
.flash-price { position: absolute; right: 1.2rem; bottom: 1.2rem; padding: .8rem 1rem; background: rgba(255,255,255,.94); border-radius: 16px; box-shadow: var(--shadow); }
.flash-price span, .flash-price strong, .flash-price small { display: block; }
.flash-price > span { color: var(--muted); font-size: .72rem; text-decoration: line-through; }
.flash-price strong { font: 800 1.8rem "Outfit"; }
.flash-price strong span { display: inline; color: var(--coral); }
.flash-price small { color: var(--muted); font-size: .68rem; }
/* The weekly story deal (renderStoryDeal in app.js): the find's photo on a soft glow, and the NPC who picked it. */
.flash-visual.deal-art { background-size: 58% auto, cover; background-position: 55% 45%, center; background-repeat: no-repeat; }
.npc-stack span.picker { position: relative; z-index: 1; transform: scale(1.3); box-shadow: 0 0 0 3px var(--lemon); }

.catalog-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin: 3rem 0 1.25rem; }
.filter-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.filter-chip { min-height: 42px; padding: .55rem .85rem; border: 1px solid var(--line); border-radius: 99px; background: white; color: var(--muted); font-size: .82rem; font-weight: 700; cursor: pointer; }
.filter-chip.active { color: white; background: var(--ink); border-color: var(--ink); }
/* ── Catalogue browsing ── */
.catalog-controls { display: flex; flex-wrap: wrap; gap: .5rem; }
.catalog-search input, .catalog-sort select { min-height: 44px; padding: .55rem .95rem; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--ink); font: inherit; font-size: .88rem; }
.catalog-search { flex: 1 1 280px; }
.catalog-search input { width: 100%; min-width: 260px; }
#filter-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: .5rem; margin: 0 0 .9rem; padding: .2rem 0; }
.catalog-intro { margin: .3rem 0 0; color: var(--muted); font-size: .85rem; }
.dept-tile { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: .55rem; min-height: 52px; padding: .35rem .55rem .35rem .35rem; border: 1px solid var(--line); border-radius: 15px; background: white; color: var(--ink); font-size: .8rem; font-weight: 700; text-align: left; cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease; }
.dept-tile:hover { border-color: var(--violet); box-shadow: 0 6px 16px rgba(136,103,232,.12); }
.dept-tile.active { color: white; background: var(--ink); border-color: var(--ink); }
.dept-tile.active .chip-count { background: rgba(255,255,255,.18); color: #fff; }
.dept-thumb { display: block; width: 40px; height: 40px; border-radius: 11px; background-color: var(--cloud); background-repeat: no-repeat; background-size: 200% 200%; }
.dept-thumb.dept-all { display: grid; place-items: center; background: var(--lemon); color: var(--ink); font-size: 1.1rem; }
.dept-name { overflow: hidden; line-height: 1.2; text-overflow: ellipsis; }
.dept-tile .chip-count { margin-left: 0; }
.dept-more { display: none; min-height: 48px; border: 1px dashed var(--line); border-radius: 15px; background: transparent; color: var(--ink); font-size: .82rem; font-weight: 800; cursor: pointer; }
.filter-chip { flex: 0 0 auto; white-space: nowrap; }
.chip-count { margin-left: .4rem; padding: .06rem .42rem; border-radius: 99px; background: var(--cloud); color: var(--muted); font-size: .72rem; }
.filter-chip.active .chip-count { background: rgba(255,255,255,.18); color: #fff; }
.catalog-count { margin: 0 0 .9rem; color: var(--muted); font-size: .82rem; }
.catalog-more { display: flex; justify-content: center; margin-top: 1.6rem; }
.catalog-more button { min-height: 46px; padding-inline: 1.4rem; }
.catalog-more button[hidden] { display: none; }
.catalog-empty { grid-column: 1 / -1; padding: 3rem 1rem; color: var(--muted); background: white; border: 1px dashed var(--line); border-radius: 22px; text-align: center; }
.catalog-empty strong { color: var(--ink); }
.saved-shelf { margin: 1.2rem 0 1.5rem; padding: 1.15rem 1.3rem; border: 1px solid #e4dcff; border-radius: 20px; background: linear-gradient(115deg, #fbf9ff, #f5fcff); }
.saved-shelf-head h2 { margin: .15rem 0 .25rem; font-size: 1.25rem; }
.saved-shelf-head p { margin: 0; color: var(--muted); font-size: .82rem; }
.saved-count { display: inline-grid; place-items: center; min-width: 1.6rem; min-height: 1.6rem; margin-left: .25rem; padding: .1rem .35rem; border-radius: 99px; color: #5d3fbd; background: #eee9ff; font-size: .78rem; vertical-align: .08rem; }
.saved-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: .7rem; margin-top: .9rem; }
.saved-empty { grid-column: 1 / -1; margin: 0; padding: .8rem; color: var(--muted); border: 1px dashed #d9d1ef; border-radius: 12px; font-size: .82rem; }
.saved-item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: .7rem; align-items: center; min-width: 0; padding: .55rem; border: 1px solid var(--line); border-radius: 14px; background: white; }
.saved-thumb { width: 76px; aspect-ratio: 1; border: 0; border-radius: 10px; background-repeat: no-repeat; background-size: 200% 200%; cursor: pointer; }
.saved-copy { display: grid; gap: .22rem; min-width: 0; }
.saved-copy > strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; }
.saved-copy > small { color: var(--muted); font-size: .72rem; }
.saved-copy > div { display: flex; gap: .65rem; }
.saved-copy button, .save-toggle { min-height: 34px; padding: .28rem .45rem; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: white; font: inherit; font-size: .72rem; font-weight: 800; cursor: pointer; }
.saved-copy .saved-view { color: #5d3fbd; }
.saved-copy .saved-remove { color: var(--muted); }
.save-toggle { width: 100%; margin-top: .55rem; color: #5d3fbd; }
.save-toggle.is-saved { color: #a33b63; background: #fff5f8; border-color: #f2cfdd; }
.save-toggle:hover, .saved-copy button:hover { border-color: currentColor; }
.saved-thumb:focus-visible, .saved-copy button:focus-visible, .save-toggle:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.format-tag { position: absolute; z-index: 2; left: .7rem; bottom: .7rem; padding: .28rem .5rem; border-radius: 99px; color: #fff; background: rgba(32,32,55,.72); font-size: .64rem; font-weight: 800; letter-spacing: .03em; }
/* Clickable product pictures */
button.product-image, button.think-thumb, button.pip-image { display: block; width: 100%; padding: 0; border: 0; cursor: pointer; }
button.product-image:focus-visible { outline: 3px solid var(--cyan); outline-offset: -3px; }
.product-card:hover .product-image { filter: saturate(1.08); }
/* Drawn art fills its frame; in the room and the unboxing it sits on no backdrop. */
.art-drawn { background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; }
.art-drawn.art-contain { background-size: contain !important; }
.detail-image.art-drawn.art-contain { padding: 8%; background-origin: content-box, border-box !important; background-clip: border-box; background-size: contain, cover !important; }
.room-art.art-drawn { -webkit-mask-image: none; mask-image: none; }
.room-art.art-drawn.photo-faded { -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.product-card { overflow: hidden; position: relative; background: white; border: 1px solid var(--line); border-radius: 22px; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-image { position: relative; aspect-ratio: 1 / .86; background-repeat: no-repeat; background-size: 200% 200%; }
.product-image::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -25px 30px rgba(255,255,255,.14); }
.sprite-tech { background-image: url("assets/tech-products.webp"); }
.sprite-home { background-image: url("assets/home-products.webp"); }
.sprite-carry { background-image: url("assets/carry-products.webp"); }
.pos-tl { background-position: 0 0; }.pos-tr { background-position: 100% 0; }.pos-bl { background-position: 0 100%; }.pos-br { background-position: 100% 100%; }
.rarity { position: absolute; z-index: 2; top: .7rem; left: .7rem; padding: .32rem .55rem; border-radius: 99px; background: rgba(255,255,255,.9); font-size: .75rem; font-weight: 800; letter-spacing: .06em; }
.owned-tag { position: absolute; z-index: 2; top: .7rem; right: .7rem; padding: .32rem .55rem; border-radius: 99px; color: white; background: var(--violet); font-size: .66rem; font-weight: 800; }
.basket-tag { position:absolute;z-index:2;right:.7rem;bottom:.7rem;padding:.32rem .55rem;color:var(--ink);background:var(--lemon);border-radius:99px;font-size:.66rem;font-weight:800; }
.product-copy { padding: 1rem; }
.brand-name { color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.product-copy h3 { margin: .25rem 0 .7rem; font-size: 1.25rem; }
.price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; }
.price strong { font: 800 1.25rem "Outfit"; }
.price strong span { color: var(--coral); }
.price small { display: block; color: var(--muted); font-size: .75rem; }
.discount { padding: .3rem .48rem; color: #1d674f; background: #dff8ee; border-radius: 8px; font-size: .75rem; font-weight: 800; }
.consider-button { width: 100%; min-height: 44px; margin-top: .9rem; border: 1px solid var(--ink); border-radius: 12px; background: white; font-weight: 800; cursor: pointer; }
.consider-button:hover { color: white; background: var(--ink); }

.section-heading { margin-bottom: 2rem; }
.section-heading p { max-width: 450px; color: var(--muted); }
.showroom-stage { --item-size: clamp(56px, 12%, 150px); position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: linear-gradient(155deg, #fcf5ff 0%, #eef9ff 48%, #fff9df 100%); border: 1px solid white; border-radius: 34px; box-shadow: var(--shadow); transition: background .6s ease; }
/* ── Unboxing ── box wrap reflects rarity; glow and confetti use the chosen finish colour (--finish). */
.unbox-dialog { --finish: var(--violet); width: min(520px, calc(100% - 2rem)); padding: 2rem; text-align: center; overflow: hidden; }
.unbox-dialog h2 { font-size: 1.8rem; }
.unbox-stage { position: relative; height: 290px; margin: .6rem 0 .4rem; }
.unbox-glow { position: absolute; left: 50%; top: 42%; width: 280px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--finish) 0%, transparent 65%); opacity: 0; transform: translate(-50%, -50%) scale(.4); transition: opacity .6s ease, transform .8s cubic-bezier(.3,1.3,.5,1); }
.unbox-product { position: absolute; left: 50%; bottom: 58px; width: 190px; aspect-ratio: 1; background-size: 200% 200%; background-repeat: no-repeat; opacity: 0; transform: translate(-50%, 30%) scale(.35); -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }
.unbox-box { --wrap: #e7c9a0; --lid: #d6b07f; --ribbon: var(--coral); position: absolute; left: 50%; bottom: 8px; width: 160px; height: 124px; padding: 0; border: 0; background: transparent; transform: translateX(-50%); cursor: pointer; }
.unbox-box:focus-visible { outline: 3px solid var(--cyan); outline-offset: 6px; border-radius: 14px; }
.unbox-body { position: absolute; left: 0; right: 0; bottom: 0; height: 96px; border-radius: 10px 10px 14px 14px; background: var(--wrap); box-shadow: inset 0 -10px 0 rgba(0,0,0,.06), 0 14px 22px -10px rgba(40,30,70,.35); overflow: hidden; }
.unbox-ribbon { position: absolute; left: 50%; top: 0; bottom: 0; width: 20px; background: var(--ribbon); transform: translateX(-50%); }
.unbox-sticker { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 38px; height: 38px; border: 3px solid white; border-radius: 50%; color: white; background: var(--coral); font-size: 1.1rem; transform: translate(-50%, -40%) rotate(-10deg); }
.unbox-lid { position: absolute; z-index: 2; left: -8px; right: -8px; top: 0; height: 34px; border-radius: 8px; background: var(--lid); box-shadow: 0 6px 10px -6px rgba(40,30,70,.35); }
.unbox-lid::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 20px; background: var(--ribbon); transform: translateX(-50%); }
.unbox-box.rarity-uncommon { --wrap: #a4ead2; --lid: #7fd8bb; --ribbon: #ffffff; }
.unbox-box.rarity-rare { --wrap: #b29cf3; --lid: #8867e8; --ribbon: var(--lemon); }
.unbox-box.rarity-legendary { --wrap: linear-gradient(120deg, #ffe27a 0%, #ffbf4e 40%, #fff1b8 50%, #ffbf4e 60%, #ffe27a 100%); --lid: #ffb23e; --ribbon: var(--violet); }
.unbox-box.rarity-legendary .unbox-body { background-size: 220% 100%; animation: unbox-shimmer 2.4s linear infinite; }
.unbox-stage[data-state="arriving"] .unbox-box { animation: unbox-drop .75s cubic-bezier(.3,1.45,.5,1) both; }
.unbox-stage[data-state="closed"] .unbox-box { animation: unbox-wiggle 2.6s ease-in-out infinite; }
.unbox-stage[data-state="open"] .unbox-lid { animation: unbox-lid .7s cubic-bezier(.3,.8,.4,1) forwards; }
.unbox-stage[data-state="open"] .unbox-body { animation: unbox-squash .45s ease; }
.unbox-stage[data-state="open"] .unbox-product { animation: unbox-rise .9s .15s cubic-bezier(.3,1.35,.5,1) forwards; }
.unbox-stage[data-state="open"] .unbox-glow { opacity: .55; transform: translate(-50%, -50%) scale(1); }
.unbox-confetti i { position: absolute; left: 50%; top: 58%; width: 9px; height: 14px; border-radius: 3px; background: var(--c); opacity: 0; animation: unbox-confetti 1.3s cubic-bezier(.2,.7,.4,1) forwards; animation-delay: var(--delay); }
.unbox-caption { min-height: 2.8em; margin: .2rem 0 .8rem; color: var(--muted); }
.unbox-caption strong { color: var(--ink); }
.unbox-finish { display: inline-flex; align-items: center; gap: .35rem; }.unbox-finish::before { content: ""; width: .8rem; height: .8rem; border-radius: 50%; background: var(--finish); box-shadow: 0 0 0 2px white, 0 0 0 3px var(--line); }
.unbox-actions { display: grid; grid-template-columns: 1fr auto; gap: .6rem; }
@keyframes unbox-drop { from { transform: translate(-50%, -260px) rotate(-8deg); opacity: 0; } 60% { opacity: 1; } }
@keyframes unbox-wiggle { 0%, 70%, 100% { transform: translateX(-50%) rotate(0); } 76% { transform: translateX(-50%) rotate(-5deg); } 82% { transform: translateX(-50%) rotate(5deg); } 88% { transform: translateX(-50%) rotate(-3deg); } 94% { transform: translateX(-50%) rotate(2deg); } }
@keyframes unbox-lid { 30% { transform: translateY(-30px) rotate(-6deg); } to { transform: translate(-150px, -150px) rotate(-50deg); opacity: 0; } }
@keyframes unbox-squash { 40% { transform: scaleY(.9) scaleX(1.04); } }
@keyframes unbox-rise { from { opacity: 0; transform: translate(-50%, 30%) scale(.35); } 40% { opacity: 1; } to { opacity: 1; transform: translate(-50%, -22%) scale(1); } }
@keyframes unbox-confetti { 0% { opacity: 1; transform: translate(-50%, 0) rotate(0); } to { opacity: 0; transform: translate(calc(-50% + var(--dx)), var(--dy)) rotate(var(--rot)); } }
@keyframes unbox-shimmer { to { background-position: -220% 0; } }
/* ── Living Cloudroom ── scene positions are % of the stage so saved layouts survive resizing. */
.room-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.room-hint { margin: 0; color: var(--muted); font-size: .85rem; }.room-hint > span[aria-hidden] { color: var(--coral); }
@media (pointer: coarse) { .keys-hint { display: none; } }
.room-controls { display: flex; flex-wrap: wrap; gap: .5rem; flex: 0 0 auto; }
.room-controls .secondary-button { min-height: 44px; padding: .55rem .9rem; }
#room-night[aria-pressed="true"] { color: white; background: var(--ink); border-color: var(--ink); }
#room-theme[aria-pressed="true"] { color: #5d3fbd; background: #eee9ff; border-color: #cfc2ff; }
.sound-toggle[aria-pressed="true"] { color: #5d3fbd !important; background: #eee9ff !important; border-color: #cfc2ff !important; }
.footer-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.showroom-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: #e1cba8; clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%); opacity: .35; transition: background .6s ease, opacity .6s ease; }
.room-scene, .room-items, .room-effects { position: absolute; inset: 0; }
.room-effects { z-index: 900; pointer-events: none; }
.room-window { position: absolute; top: 7%; right: 5%; display: grid; grid-template-columns: 1fr 1fr; width: 17%; aspect-ratio: 1.2; padding: .5%; background: white; border-radius: 45% 45% 12px 12px; box-shadow: 0 10px 24px rgba(60,70,120,.1); overflow: hidden; }
.room-window span { background: linear-gradient(#9ee9f3, #fff); border-radius: 50px 0 8px 8px; transition: background .6s ease; }
.room-window span + span { border-left: 5px solid white; border-radius: 0 50px 8px 8px; }
.room-sky-moon { position: absolute; top: 22%; left: 58%; width: 16%; aspect-ratio: 1; border-radius: 50%; background: #fff6c9; box-shadow: 0 0 18px #fff3a8; opacity: 0; transform: translateY(40%); transition: opacity .6s ease, transform .6s ease; }
.room-shelf { position: absolute; left: 4%; width: 60%; height: 2.4%; min-height: 8px; background: #8a6758; border-radius: 4px; box-shadow: 0 8px 14px rgba(60,40,30,.16); }
.shelf-main { top: 48%; }
.shelf-top { top: 22%; display: none; background: linear-gradient(90deg, var(--coral), var(--lemon), var(--cyan), var(--violet)); }
.showroom-stage.has-colour-shelf .shelf-top { display: block; }
.room-rug { position: absolute; left: 30%; bottom: 3%; width: 46%; height: 13%; border-radius: 50%; background: radial-gradient(ellipse, rgba(136,103,232,.22) 0 55%, rgba(255,95,103,.14) 56% 70%, transparent 71%); }

.room-item { --glow: transparent; position: absolute; width: var(--item-size); aspect-ratio: 1; padding: 0; border: 0; background: transparent; transform: translate(-50%, -90%); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.room-item:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 16px; }
.room-item.is-dragging { cursor: grabbing; z-index: 950 !important; }
/* A chosen finish tints photo finds (finishTint in app.js); night and drag effects add to it. */
.detail-image, .basket-thumb, .think-thumb, .room-art, #unbox-product, #haggle-thumb, #letgo-thumb .room-art { filter: var(--finish-tint, none); }
.room-item.is-dragging .room-art { transform: scale(1.08) translateY(-4px); filter: var(--finish-tint,) drop-shadow(0 16px 16px rgba(40,30,70,.25)); }
.room-art { position: absolute; inset: 0; background-size: 200% 200%; background-repeat: no-repeat; transform-origin: 50% 90%; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); transition: transform .2s ease, filter .6s ease; pointer-events: none; }
.room-item::before { content: ""; position: absolute; inset: -35%; border-radius: 50%; background: radial-gradient(circle, var(--glow) 0%, transparent 62%); opacity: 0; transition: opacity .5s ease, background .5s ease; pointer-events: none; }
.room-item.is-glowing::before { opacity: .75; }
.room-name { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 2px); width: max-content; max-width: 160px; padding: .2rem .45rem; overflow: hidden; color: var(--ink); background: white; border-radius: 7px; font-size: .7rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 3px 8px rgba(40,40,60,.12); opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.room-item:hover .room-name, .room-item:focus-visible .room-name, .room-item.is-dragging .room-name { opacity: 1; }
.room-item.just-arrived .room-art { animation: room-arrive .7s cubic-bezier(.3,1.5,.5,1) both; }

/* Per-find reactions */
.room-art.play-bop { animation: room-bop .9s ease-in-out; }
.room-art.play-snap { animation: room-snap .45s ease; }
.room-art.play-hum { animation: room-hum .5s linear 2; }
.room-art.play-pulse { animation: room-pulse .7s ease; }
.room-art.play-wiggle { animation: room-wiggle .6s ease; }
.room-art.play-orbit { animation: room-orbit 1.6s ease-in-out; }
.room-art.play-hop { animation: room-hop .8s cubic-bezier(.3,1.6,.5,1); }
.room-art.play-clack { animation: room-clack .09s linear 6; }
.room-art.play-clink { animation: room-clink .5s ease 2; }
.showroom-stage.is-breezy .room-item:not(.is-fan) .room-art { animation: room-sway 1.2s ease-in-out 2; }
@keyframes room-arrive { from { transform: translateY(-120%) scale(.7); opacity: 0; } }
@keyframes room-bop { 25%, 75% { transform: translateY(-8%) rotate(-4deg); } 50% { transform: scaleY(.9) scaleX(1.06); } }
@keyframes room-snap { 40% { transform: scale(.88); } 70% { transform: scale(1.08); } }
@keyframes room-hum { 25% { transform: translateX(-1.5%); } 75% { transform: translateX(1.5%); } }
@keyframes room-pulse { 50% { transform: scale(1.1); } }
@keyframes room-wiggle { 20% { transform: rotate(-8deg); } 40% { transform: rotate(7deg); } 60% { transform: rotate(-5deg); } 80% { transform: rotate(3deg); } }
@keyframes room-orbit { 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@keyframes room-hop { 40% { transform: translateY(-28%) rotate(6deg); } 70% { transform: translateY(0) scaleY(.9); } }
@keyframes room-clack { 50% { transform: translateY(3%); } }
@keyframes room-clink { 30% { transform: rotate(6deg); } 70% { transform: rotate(-6deg); } }
@keyframes room-sway { 30% { transform: rotate(-5deg) translateX(-3%); } 70% { transform: rotate(4deg) translateX(2%); } }

.room-particle { position: absolute; z-index: 900; color: var(--c, var(--violet)); font: 800 clamp(1rem, 2vw, 1.6rem) "Outfit", sans-serif; text-shadow: 0 2px 6px rgba(255,255,255,.8); transform: translate(-50%, -50%); animation: room-float 1.6s ease-out both; }
.room-particle.mist { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,255,255,0) 70%); animation-duration: 2.4s; }
@keyframes room-float { from { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 20% { opacity: 1; } to { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% - var(--rise, 90px))) scale(1.15) rotate(var(--spin, 0deg)); } }
.room-bubble { position: absolute; z-index: 960; max-width: min(260px, 70%); padding: .55rem .75rem; color: var(--ink); background: white; border-radius: 14px; box-shadow: var(--shadow); font-size: .8rem; font-weight: 700; line-height: 1.35; transform: translate(-50%, calc(-100% - 10px)); animation: room-bubble 3.2s ease both; }
.room-bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: white; transform: translateX(-50%) rotate(45deg); }
@keyframes room-bubble { from { opacity: 0; margin-top: 6px; } 10%, 85% { opacity: 1; margin-top: 0; } to { opacity: 0; } }
.room-flash { position: absolute; inset: 0; z-index: 970; background: white; animation: room-flash .6s ease-out both; }
@keyframes room-flash { from { opacity: .95; } to { opacity: 0; } }
.room-polaroid { position: absolute; z-index: 965; width: 74px; padding: 6px 6px 16px; background: white; border-radius: 4px; box-shadow: var(--shadow); transform: translate(-50%, -100%) rotate(-8deg); animation: room-polaroid 2.6s ease both; }
.room-polaroid span { display: block; aspect-ratio: 1; background: linear-gradient(155deg, #fcf5ff, #eef9ff 50%, #fff9df); }
@keyframes room-polaroid { from { opacity: 0; transform: translate(-50%, -60%) rotate(0); } 15%, 80% { opacity: 1; } to { opacity: 0; transform: translate(-50%, -160%) rotate(-12deg); } }
.room-projection { position: absolute; z-index: 5; width: 13%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 38% 38%, #fffbe6 0%, #e9ddff 45%, rgba(136,103,232,.45) 70%, transparent 72%); box-shadow: 0 0 40px 10px rgba(173,145,255,.45); transform: translate(-50%, -50%); animation: room-projection-in .6s ease both; pointer-events: none; }
.room-projection[hidden] { display: none; }
@keyframes room-projection-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.6); } }

/* Night mode */
.showroom-stage.is-night { background: linear-gradient(160deg, #1d1b3a 0%, #2a2450 55%, #3a2c4f 100%); border-color: #2a2450; }
.showroom-stage.is-night::after { background: #120f24; opacity: .55; }
.showroom-stage.is-night .room-window span { background: linear-gradient(#0e1a3d, #36407a); }
.showroom-stage.is-night .room-sky-moon { opacity: 1; transform: none; }
.showroom-stage.is-night .room-shelf { background-color: #4a3a44; }
.showroom-stage.is-night .room-art { filter: var(--finish-tint,) brightness(.62) saturate(.85); }
.showroom-stage.is-night .room-item.is-glowing .room-art, .showroom-stage.is-night .room-item.night-glow .room-art { filter: var(--finish-tint,) brightness(1.05) drop-shadow(0 0 12px var(--glow)); }
.showroom-stage.is-night .room-item.night-glow::before { opacity: .55; }
.showroom-stage.is-night .room-item.is-glowing::before { opacity: 1; }
.showroom-stage.is-night .room-rug { opacity: .5; }
.showroom-stage.is-night .empty-showroom { color: white; }.showroom-stage.is-night .empty-showroom p { color: #cfcde6; }

.room-items { pointer-events: none; }.room-item { pointer-events: auto; }

/* ── This week's theme in the Cloudroom ── switched off with the Theme look button. */
.showroom-stage[data-theme] { background: var(--theme-sky); }
.showroom-stage[data-theme].is-night { background: var(--theme-sky-night); }
.showroom-stage[data-theme]::after { background: var(--theme-floor); }
.showroom-stage[data-theme].is-night::after { background: #120f24; }
.showroom-stage[data-theme].is-night .room-weather i::before { background: var(--theme-glow); box-shadow: 0 0 10px 3px var(--theme-glow); }
.showroom-stage[data-theme].is-night [data-weather="rain"] i::before { background: linear-gradient(transparent, var(--theme-glow)); box-shadow: none; }
.showroom-stage[data-theme]:not(.deco-sunset-window) .room-window span { background: var(--theme-glass); }
.showroom-stage[data-theme].is-night:not(.deco-sunset-window) .room-window span { background: var(--theme-glass-night); }


/* ── Pass Jar decorations (drawn in CSS; shown when unlocked and switched on) ── */
.room-wallpaper, .room-lights, .room-plant { display: none; }
.deco-star-wallpaper .room-wallpaper { display: block; position: absolute; left: 0; right: 0; top: 0; height: 72%; background-image: radial-gradient(circle, rgba(136,103,232,.2) 1.6px, transparent 2.2px), radial-gradient(circle, rgba(255,95,103,.16) 1.2px, transparent 1.8px); background-size: 42px 42px, 26px 26px; background-position: 0 0, 13px 19px; }
.is-night.deco-star-wallpaper .room-wallpaper { background-image: radial-gradient(circle, rgba(255,255,255,.85) 1.4px, transparent 2px), radial-gradient(circle, rgba(255,216,78,.6) 1px, transparent 1.6px); animation: deco-twinkle 3s ease-in-out infinite alternate; }
@keyframes deco-twinkle { from { opacity: .45; } to { opacity: 1; } }
.deco-fairy-lights .room-lights { display: flex; justify-content: space-between; position: absolute; left: 3%; right: 26%; top: 1.5%; height: 9%; border-bottom: 2px solid rgba(90,70,80,.45); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.room-lights i { position: relative; top: var(--y); width: clamp(7px, 1.1%, 14px); aspect-ratio: .8; border-radius: 50% 50% 45% 45%; background: var(--bulb, var(--lemon)); box-shadow: 0 0 6px var(--bulb, var(--lemon)); }
.room-lights i:nth-child(4n+1) { --bulb: #ff8a8f; }.room-lights i:nth-child(4n+2) { --bulb: #ffd84e; }.room-lights i:nth-child(4n+3) { --bulb: #6fe3f0; }.room-lights i:nth-child(4n) { --bulb: #b9a2ff; }
.is-night.deco-fairy-lights .room-lights i { box-shadow: 0 0 10px 3px var(--bulb); animation: deco-bulb 1.8s ease-in-out infinite alternate; }
.is-night .room-lights i:nth-child(odd) { animation-delay: .9s; }
@keyframes deco-bulb { from { opacity: .55; } to { opacity: 1; } }
.deco-cloud-rug .room-rug { left: 32%; bottom: 3%; width: 40%; height: 9%; border-radius: 999px; background: #fdfbff; filter: drop-shadow(0 4px 0 #d9ccff) drop-shadow(0 8px 10px rgba(136,103,232,.22)); }
.deco-cloud-rug .room-rug::before, .deco-cloud-rug .room-rug::after { content: ""; position: absolute; bottom: 45%; border-radius: 50%; background: #fdfbff; }
.deco-cloud-rug .room-rug::before { left: 14%; width: 34%; aspect-ratio: 1.6; }
.deco-cloud-rug .room-rug::after { left: 42%; width: 42%; aspect-ratio: 1.5; }
.is-night.deco-cloud-rug .room-rug { opacity: .8; filter: drop-shadow(0 4px 0 #6d5bb0) drop-shadow(0 0 12px rgba(185,162,255,.45)); }
.deco-sunset-window .room-window span { background: linear-gradient(#ffb36b, #ff7fa3 55%, #b48cff); }
.is-night.deco-sunset-window .room-window span { background: linear-gradient(#0b1a3a 0%, #1f6f78 42%, #6ce0b0 58%, #2a2360 100%); background-size: 100% 180%; animation: deco-aurora 6s ease-in-out infinite alternate; }
@keyframes deco-aurora { from { background-position: 0 0; } to { background-position: 0 100%; } }
.deco-hanging-plant .room-plant { display: block; position: absolute; top: 0; left: 68%; width: 8%; transform-origin: 50% 0; animation: deco-plant 5s ease-in-out infinite alternate; }
.is-breezy.deco-hanging-plant .room-plant { animation: deco-plant .6s ease-in-out 4 alternate; }
.plant-cord { display: block; width: 2px; height: clamp(24px, 9vw, 90px); margin: 0 auto; background: rgba(90,70,80,.5); }
.plant-pot { position: relative; display: block; width: 100%; aspect-ratio: 1.3; border-radius: 10% 10% 45% 45%; background: linear-gradient(#e98a64, #c9664a); }
.plant-pot i { position: absolute; width: 26%; aspect-ratio: .5; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: linear-gradient(#7fdca9, #3ea57a); transform-origin: 50% 0; }
.plant-pot i:nth-child(1) { left: -12%; top: 45%; transform: rotate(28deg); }.plant-pot i:nth-child(2) { left: 18%; top: 70%; transform: rotate(8deg); aspect-ratio: .38; }
.plant-pot i:nth-child(3) { left: 48%; top: 68%; transform: rotate(-10deg); aspect-ratio: .4; }.plant-pot i:nth-child(4) { right: -14%; top: 40%; transform: rotate(-30deg); }
.is-night .room-plant { filter: brightness(.6); }
@keyframes deco-plant { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.room-pip { position: absolute; z-index: 470; left: 12%; bottom: 3%; width: calc(var(--item-size) * .62); aspect-ratio: 1; padding: 0; border: 0; background: transparent; cursor: pointer; animation: pip-walk 26s ease-in-out infinite alternate; }
.room-pip[hidden] { display: none; }
.room-pip:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 50%; }
.room-pip.is-resting { animation-play-state: paused; }
.pip-body { position: absolute; inset: 0; border-radius: 46% 46% 40% 40%; background: radial-gradient(circle at 35% 42%, #fff 0 7%, #202037 8% 12%, transparent 13%), radial-gradient(circle at 65% 42%, #fff 0 7%, #202037 8% 12%, transparent 13%), radial-gradient(ellipse at 50% 64%, #ff8a8f 0 8%, transparent 9%), linear-gradient(#a58cf0, var(--violet)); box-shadow: 0 8px 12px -6px rgba(40,30,70,.4); animation: pip-bob .5s ease-in-out infinite alternate; }
.pip-body i { position: absolute; left: 50%; top: -14%; width: 14%; aspect-ratio: .5; border-radius: 50%; background: var(--lemon); transform: translateX(-50%); box-shadow: 0 0 6px var(--lemon); }
.room-pip.is-happy .pip-body { animation: room-hop .8s cubic-bezier(.3,1.6,.5,1); }
.is-night .pip-body i { box-shadow: 0 0 12px 3px var(--lemon); }
@keyframes pip-walk { 0%, 8% { left: 10%; } 42%, 50% { left: 82%; } 92%, 100% { left: 38%; } }
@keyframes pip-bob { to { transform: translateY(-5%); } }

/* Pass Jar card on the Showroom */
.jar-card { display: grid; grid-template-columns: 130px 1fr minmax(240px, .9fr); align-items: center; gap: 1.5rem; margin-top: 1.2rem; padding: 1.35rem 1.5rem; background: white; border: 1px solid var(--line); border-radius: 22px; scroll-margin-top: 140px; }
.jar-visual { width: 120px; }.jar-svg { display: block; width: 100%; }
#jar-liquid-rect { transition: y .8s cubic-bezier(.3,1.2,.5,1); }
.jar-card.is-full .jar-sparkles { animation: deco-twinkle .8s ease-in-out infinite alternate; }
.jar-copy h2 { font-size: 1.3rem; }.jar-copy p { margin: .3rem 0 .6rem; color: var(--muted); }
.jar-copy small { display: block; margin-top: .5rem; color: var(--muted); font-size: .78rem; }
.budget-track.jar-track span { background: linear-gradient(90deg, var(--lemon), var(--coral)); }
#jar-claim { margin-top: .9rem; }
.decor-panel > strong { display: block; margin-bottom: .55rem; font-size: .8rem; }
.decor-list { display: grid; gap: .4rem; }
.decor-toggle, .decor-locked { display: flex; align-items: center; gap: .55rem; min-height: 40px; padding: .4rem .6rem; border-radius: 12px; background: var(--cloud); font-size: .8rem; font-weight: 700; }
.decor-toggle { cursor: pointer; }.decor-toggle input { width: 18px; height: 18px; accent-color: var(--violet); }
.decor-locked { color: var(--muted); font-weight: 600; }.decor-locked span { margin-left: auto; font-size: .72rem; }
.decor-swatch { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; background: var(--swatch); }
.jar-dialog { width: min(640px, calc(100% - 2rem)); padding: 2.5rem; }.jar-dialog p { color: var(--muted); }
.decor-choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-top: 1rem; }
.decor-choice { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: .75rem; padding: .8rem; border: 2px solid var(--line); border-radius: 16px; background: white; text-align: left; cursor: pointer; }
.decor-choice:hover, .decor-choice:focus-visible { border-color: var(--violet); }
.decor-choice .decor-swatch { width: 44px; height: 44px; border-radius: 12px; }
.decor-choice strong, .decor-choice small { display: block; }.decor-choice small { margin-top: .15rem; color: var(--muted); font-size: .75rem; line-height: 1.35; }

.empty-showroom { position: absolute; z-index: 3; inset: 0; display: grid; place-content: center; justify-items: center; padding: 1rem; text-align: center; }
.empty-showroom > span { display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 1rem; color: var(--violet); background: white; border-radius: 22px; font-size: 2rem; }
.empty-showroom p { margin: .35rem 0 1rem; color: var(--muted); }
.upgrade-card { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-top: 1.2rem; padding: 1.35rem 1.5rem; background: white; border: 1px solid var(--line); border-radius: 22px; }
/* Storage box */
.storage-box-icon { position: relative; display: block; width: 34px; height: 28px; border: 3px solid var(--violet); border-top-width: 7px; border-radius: 6px 6px 9px 9px; background: linear-gradient(#fff9df, #ffe9a8); }
.storage-box-icon::after { content: ""; position: absolute; left: 50%; top: 4px; width: 12px; height: 4px; transform: translateX(-50%); border-radius: 3px; background: var(--violet); }
.storage-box-icon.large { flex: 0 0 auto; width: 54px; height: 44px; border-width: 4px; border-top-width: 10px; }
.room-storage-drop { --near: 0; position: absolute; right: 2%; bottom: 3%; z-index: 900; display: grid; transform: scale(calc(1 + var(--near) * .45)); transform-origin: 100% 100%; justify-items: center; gap: .2rem; padding: .55rem .7rem; border: 2px dashed rgba(136,103,232,.45); border-radius: 16px; background: rgba(255,255,255,.72); opacity: .55; pointer-events: none; transition: opacity .2s ease, transform .12s ease-out, border-color .2s ease, background .2s ease; }
.room-storage-drop small { color: var(--ink); font-size: .66rem; font-weight: 800; }
.showroom-stage.is-arranging .room-storage-drop { opacity: 1; }
.room-storage-drop.is-over { border-style: solid; border-color: var(--coral); background: #fff4ec; transform: scale(1.6); box-shadow: 0 10px 26px rgba(255,111,97,.25); }
.room-storage-drop.is-over .storage-box-icon { border-color: var(--coral); }
.storage-card { margin-top: 1.2rem; padding: 1.35rem 1.5rem; background: white; border: 1px solid var(--line); border-radius: 22px; }
.storage-head { display: flex; align-items: center; gap: 1rem; }
.storage-head h2 { font-size: 1.3rem; }.storage-head p { margin: .25rem 0 0; color: var(--muted); }
.storage-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 1.1rem; }
.storage-columns h3 { margin: 0 0 .5rem; font-size: .95rem; }
.storage-list { display: grid; gap: .4rem; max-height: 330px; margin: 0; padding: 0 .25rem 0 0; overflow-y: auto; list-style: none; }
.storage-item { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: .7rem; padding: .35rem .45rem; border: 1px solid var(--line); border-radius: 14px; background: var(--cloud); }
.storage-thumb { position: relative; width: 46px; height: 46px; overflow: hidden; border-radius: 10px; background: white; }
.storage-name { overflow: hidden; font-size: .88rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.storage-name small { margin-left: .3rem; color: var(--muted); font-weight: 600; }
.storage-item .secondary-button { min-height: 44px; padding: .45rem .85rem; font-size: .82rem; }
.storage-actions { display: flex; gap: .35rem; }
.storage-item .letgo-button { color: var(--muted); background: transparent; }
.storage-item .letgo-button:hover { color: var(--ink); border-color: var(--coral); }
.letgo-history { margin-top: 1rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--cloud); }
.letgo-history summary { font-weight: 800; cursor: pointer; }
.letgo-history ul { display: grid; gap: .35rem; max-height: 240px; margin: .7rem 0 0; padding: 0; overflow-y: auto; list-style: none; }
.letgo-history li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .8rem; font-size: .85rem; }
.letgo-history li span { color: var(--muted); }
.letgo-dialog { width: min(600px, calc(100% - 2rem)); padding: 2.2rem; }
.letgo-head { display: flex; align-items: center; gap: 1rem; }
.letgo-head h2 { margin: 0; font-size: 1.6rem; }.letgo-head p { margin: .25rem 0 0; color: var(--muted); }
.letgo-thumb { position: relative; flex: 0 0 auto; width: 84px; height: 84px; overflow: hidden; border-radius: 18px; background: var(--cloud); }
.letgo-warnings { margin: 1rem 0 0; padding-left: 1.2rem; color: var(--muted); line-height: 1.5; }
.letgo-confirm { display: flex; align-items: center; gap: .6rem; margin-top: .8rem; padding: .7rem .9rem; border: 1px solid var(--coral); border-radius: 12px; background: #fff4ec; font-weight: 700; cursor: pointer; }
.letgo-confirm[hidden], .letgo-history[hidden] { display: none; }
.letgo-confirm input { width: 20px; height: 20px; accent-color: var(--coral); }
.letgo-options { display: grid; gap: .7rem; margin-top: 1.1rem; }
.letgo-option { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: var(--cloud); }
.letgo-option strong, .letgo-option small { display: block; }
.letgo-option small { color: var(--muted); font-size: .74rem; }
.letgo-option p { margin: .35rem 0 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.npc-chip { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--lemon); font-size: .8rem; font-weight: 800; }
.npc-chip.donate { background: #ffe1e3; color: var(--coral); font-size: 1.4rem; }
.letgo-keep { width: 100%; margin-top: .9rem; }
@media (max-width: 520px) { .letgo-dialog { padding: 1.5rem; } .letgo-option { grid-template-columns: auto 1fr; } .letgo-option > button { grid-column: 1 / -1; } .storage-item { grid-template-columns: 46px 1fr; } .storage-actions { grid-column: 1 / -1; } .storage-actions button { flex: 1; } }
.storage-empty { padding: .8rem; color: var(--muted); font-size: .85rem; border: 1px dashed var(--line); border-radius: 14px; }
@media (max-width: 760px) { .storage-columns { grid-template-columns: 1fr; } .storage-card { padding: 1.1rem; } .room-storage-drop small { display: none; } }
.upgrade-card h2 { font-size: 1.3rem; }.upgrade-card p { margin: .25rem 0 0; color: var(--muted); }

.progress-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.progress-card { position: relative; min-height: 300px; padding: 2rem; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 26px; }
.progress-card .card-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 2.2rem; border-radius: 16px; font-size: 1.4rem; }
.progress-card p { color: var(--muted); }
.restraint-card .card-icon { color: var(--coral-dark); background: #fff0f1; }
.mastery-card .card-icon { background: #fff7c8; }
.collection-card .card-icon { color: white; background: var(--violet); }
.privacy-card .card-icon { background: #ddf8f7; }
.quest-card .card-icon { color:#246b57;background:#dff8ee; }.receipts-card .card-icon { color:#5d3fbd;background:#eee9ff; }
.survey-card .card-icon { color: #8a5a1b; background: #fdf1e2; }
.receipt-list { max-height:420px;overflow:auto;margin-top:1rem }.receipt { padding:.8rem 0;border-top:1px solid var(--line);font-size:.78rem }.receipt header { display:flex;justify-content:space-between;gap:1rem;align-items:start }.receipt header > strong { text-align:right;white-space:nowrap }.receipt small{display:block;color:var(--muted);margin-top:.18rem}.receipt ul { display:grid;gap:.28rem;margin:.6rem 0 0;padding:0;list-style:none;color:var(--muted);font-size:.74rem }.receipt li { display:flex;justify-content:space-between;gap:.7rem }.receipt li strong { color:var(--ink);font-weight:700;white-space:nowrap }
.budget-line { display: flex; justify-content: space-between; margin-top: 1.4rem; font-size: .78rem; font-weight: 700; }
.budget-track { overflow: hidden; height: 9px; margin-top: .5rem; background: var(--cloud); border-radius: 99px; }
.budget-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--mint), var(--cyan)); border-radius: inherit; transition: width .5s ease; }
.xp-track span { background: linear-gradient(90deg, var(--violet), var(--coral)); }
.kept-total { display: block; margin-top: 1rem; color: #24745d; }
.badge-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.5rem; }
.badge-row span { padding: .38rem .55rem; color: var(--muted); background: var(--cloud); border-radius: 8px; font-size: .7rem; font-weight: 700; }
.badge-row span.unlocked { color: #5d3fbd; background: #eee9ff; }
.budget-choice { display: grid; gap: .35rem; margin-top: 1rem; color: var(--muted); font-size: .78rem; font-weight: 700; }
.budget-choice select, .budget-row select { min-height: 44px; padding: .5rem; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); font: inherit; font-weight: 700; }
.pip-note { display: block; margin: .2rem 0 .4rem; color: #8a5a00; font-size: .78rem; }
.data-actions { display: flex; gap: .7rem; margin-top: 1.5rem; }
.data-actions button, footer button { padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: white; font-size: .75rem; font-weight: 700; cursor: pointer; }
.data-actions button:last-child { color: #b72b3d; }

footer { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 1.5rem clamp(1rem, 4vw, 4rem); color: var(--muted); background: white; border-top: 1px solid var(--line); font-size: .78rem; }
footer p { max-width: 850px; margin: 0; }

dialog { max-width: min(900px, calc(100% - 2rem)); padding: 0; color: var(--ink); background: white; border: 0; border-radius: 28px; box-shadow: 0 28px 100px rgba(23,22,45,.3); }
dialog::backdrop { background: rgba(20,20,38,.58); backdrop-filter: blur(6px); }
.dialog-close { position: absolute; z-index: 5; top: .8rem; right: .8rem; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); font-size: 1.5rem; cursor: pointer; }
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.detail-image { min-height: 420px; background-size: 200% 200%; }
/* An original find is one slice of a 2×2 sprite sheet, so its frame has to keep the slice's shape;
   stretched to fill a tall panel the product came out twice as tall as it is on the shop card. */
.detail-image.sprite-tech, .detail-image.sprite-home, .detail-image.sprite-carry { aspect-ratio: 1 / .86; min-height: 0; align-self: center; }
.detail-copy { display: flex; flex-direction: column; justify-content: center; padding: 3rem; }
.detail-copy h2 { margin: .2rem 0 .7rem; font-size: 2.4rem; }
.detail-copy > p { color: var(--muted); }
.detail-price { margin: 1rem 0; }.detail-price strong { display: block; font: 800 2rem "Outfit"; }.detail-price span { color: var(--muted); font-size: .75rem; }
.variant-picker { margin:.2rem 0 1rem }.variant-picker strong{display:block;margin-bottom:.45rem;font-size:.78rem}.variant-row{display:flex;flex-wrap:wrap;gap:.4rem}.variant-button{padding:.4rem .58rem;border:1px solid var(--line);border-radius:9px;background:white;font-size:.72rem;font-weight:700;cursor:pointer}.variant-button.active{color:white;background:var(--violet);border-color:var(--violet)}.variant-single{margin:0;font-size:.74rem;color:var(--muted)}
.spec-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.2rem; }.spec-list span { padding: .4rem .55rem; background: var(--cloud); border-radius: 8px; font-size: .7rem; }
.fictional-review { padding: .9rem; background: #fff9df; border-radius: 13px; font-size: .78rem; }.fictional-review strong { display: block; margin-bottom: .2rem; }
.decision-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 1.2rem; }
.haggle-button, .think-button { min-height: 44px; font-size: .86rem; }
/* ── Anonymous totals ── */
.totals-dialog { width: min(560px, calc(100% - 2rem)); padding: 2rem; }
.totals-dialog p, .totals-dialog li { color: var(--muted); line-height: 1.55; }
.totals-dialog ul { padding-left: 1.2rem; }
.totals-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1.2rem; }
.totals-actions button { min-height: 48px; }
.totals-row span { font-size: .82rem; line-height: 1.45; }
.totals-status { margin: -.2rem 0 .8rem; font-size: .8rem; font-weight: 700; color: var(--violet); }
#totals-toggle[aria-pressed="true"] { color: #5d3fbd; background: #eee9ff; border-color: #cfc2ff; }

/* ── End-of-pilot survey ── */
.survey-dialog { width: min(720px, calc(100% - 2rem)); padding: 2rem; }
.survey-intro { margin: .4rem 0 1.2rem; color: var(--muted); font-size: .9rem; }
.survey-group { margin: 1.6rem 0 .8rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); font: 800 .78rem/1 "Outfit", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--coral-dark); }
.survey-question { margin: 0 0 1.3rem; padding: 0; border: 0; }
.survey-question legend { padding: 0; margin-bottom: .6rem; font-weight: 700; font-size: .95rem; }
.survey-optional { color: var(--muted); font-weight: 600; font-size: .78rem; }
.survey-scale { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; }
.survey-scale small { color: var(--muted); font-size: .74rem; }
.scale-row { display: flex; justify-content: space-between; gap: .4rem; }
.scale-row label { flex: 1; }
.scale-row input, .survey-option input { position: absolute; opacity: 0; pointer-events: none; }
.scale-row span { display: grid; place-items: center; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: white; font-weight: 800; cursor: pointer; }
.scale-row input:checked + span { color: white; background: var(--violet); border-color: var(--violet); }
.scale-row input:focus-visible + span, .survey-option input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.survey-options { display: flex; flex-wrap: wrap; gap: .45rem; }
.survey-option span { display: inline-block; min-height: 44px; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 12px; background: white; font-size: .85rem; cursor: pointer; }
.survey-option input:checked + span { color: white; background: var(--ink); border-color: var(--ink); }
.survey-question textarea { width: 100%; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: white; font: inherit; font-size: .9rem; resize: vertical; }
.survey-include { margin: .4rem 0 1rem; font-size: .85rem; }
.survey-consent { margin: 0 0 .3rem; font-size: .9rem; font-weight: 700; }
.survey-consent-note { margin: 0 0 1rem; }
.survey-consent-note code { padding: .05rem .3rem; background: var(--cloud); border-radius: 5px; font-size: .9em; }
.survey-send-status { min-height: 1.2em; margin: 0 0 .6rem; color: #1d674f; font-size: .85rem; font-weight: 700; }
.survey-send-status.is-error { color: var(--coral-dark); }
.survey-preview { margin-bottom: 1rem; }
.survey-preview summary { min-height: 30px; padding: .35rem 0; color: var(--muted); font-weight: 700; font-size: .82rem; cursor: pointer; }
.survey-preview pre { max-height: 240px; margin: .5rem 0 0; padding: .8rem; overflow: auto; background: var(--cloud); border: 1px solid var(--line); border-radius: 12px; font-size: .74rem; line-height: 1.5; }
.survey-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .9rem; }
.survey-actions button { min-height: 46px; }
.survey-actions button[disabled] { opacity: .5; cursor: not-allowed; }
.survey-card small { display: block; margin: .3rem 0 .8rem; color: var(--muted); font-size: .78rem; }

/* ── Cloudroom snapshot ── */
.snapshot-dialog { width: min(680px, calc(100% - 2rem)); padding: 2rem; }
.snapshot-frame { display: grid; place-items: center; min-height: 200px; margin: 1rem 0 .75rem; padding: .75rem; background: var(--cloud); border: 1px solid var(--line); border-radius: 18px; }
.snapshot-frame img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 26px rgba(32,32,55,.14); }
.snapshot-frame img:not([src]) { display: none; }
.snapshot-status { margin: 0 0 1rem; color: var(--muted); font-size: .82rem; }
.snapshot-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .9rem; }
.snapshot-actions button { min-height: 46px; }
.snapshot-action[disabled] { opacity: .55; cursor: progress; }

/* ── Deal Detective ── */
.detective-dialog { width: min(560px, calc(100% - 2rem)); padding: 2.2rem; }
.detective-dialog h2 { margin-bottom: .8rem; font-size: 1.7rem; }
.case-sign { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: .8rem; padding: .7rem; background: var(--cloud); border-radius: 14px; }
.case-sign strong, .case-sign small { display: block; }.case-sign small { color: var(--muted); font-size: .8rem; }
.case-sign .sale-claim { margin-top: .15rem; color: var(--ink); font-weight: 800; }
.case-sign .sale-claim s { color: var(--muted); font-weight: 600; }
.case-sign .sale-claim em { margin-left: .3rem; padding: .1rem .4rem; color: #1d674f; background: #dff8ee; border-radius: 6px; font-style: normal; font-size: .75rem; }
.case-chart { display: block; width: 100%; height: auto; margin: .8rem 0 .2rem; overflow: visible; }
.case-chart .grid-line { stroke: var(--line); stroke-width: 1; }
.case-chart .was-line { stroke: var(--violet); stroke-width: 1.5; stroke-dasharray: 5 4; }
.case-chart .was-label { fill: #5d3fbd; font: 700 10px "DM Sans", sans-serif; }
.case-chart .price-line { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.case-chart .price-dot { fill: white; stroke: var(--ink); stroke-width: 2; }
.case-chart .price-dot.is-now { fill: var(--coral); stroke: var(--coral); }
.case-chart .axis-label { fill: var(--muted); font: 600 10px "DM Sans", sans-serif; }
.case-chart .point-label { fill: var(--ink); font: 700 9.5px "DM Sans", sans-serif; }
.case-chart .clue { fill: var(--lemon); opacity: .35; }
.verdict-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .6rem; }
.verdict-button { min-height: 48px; padding: .5rem; border: 2px solid var(--line); border-radius: 12px; background: white; font-weight: 800; font-size: .85rem; cursor: pointer; }
.verdict-button:hover:not(:disabled) { border-color: var(--violet); }
.verdict-button:disabled { cursor: default; opacity: .55; }
.verdict-button.is-answer { opacity: 1; color: #1d674f; background: #dff8ee; border-color: #78dfbd; }
.verdict-button.is-wrong { opacity: 1; color: #b72b3d; background: #fff0f1; border-color: #ffb3b8; }
.case-result { margin-top: .8rem; padding: .85rem 1rem; border-radius: 14px; background: #fff9df; font-size: .9rem; line-height: 1.5; }
.case-result strong { display: block; margin-bottom: .15rem; }
.case-result.is-correct { background: #e9fbf3; }
.case-next { width: 100%; margin-top: .7rem; }
.case-summary { padding: 1.2rem; text-align: center; background: var(--cloud); border-radius: 16px; }
.case-summary .case-score { display: block; margin: .3rem 0; font: 800 2.4rem "Outfit", sans-serif; }
.case-summary p { margin: .3rem 0 0; color: var(--muted); }
.detective-tips { margin-top: .9rem; font-size: .82rem; color: var(--muted); }
.detective-tips summary { color: var(--ink); font-weight: 800; cursor: pointer; }
.detective-tips ul { margin: .5rem 0; padding-left: 1.1rem; }.detective-tips li + li { margin-top: .3rem; }.detective-tips p { margin: .3rem 0 0; }
.detective-progress-button { margin-top: 1rem; }

/* ── Think Tank ── */
.think-tank { margin-bottom: 1.25rem; padding: 1.1rem 1.2rem; background: linear-gradient(135deg, #f4f0ff, #eefaff); border: 1px solid #e0d8ff; border-radius: 22px; }
.think-tank[hidden] { display: none; }
.think-tank-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .9rem; }
.think-tank-head h2 { font-size: 1.35rem; }.think-tank-head small { display: block; margin-top: .15rem; color: var(--muted); font-size: .8rem; }
.think-cloud { display: grid; place-items: center; flex: 0 0 auto; width: 52px; height: 42px; border-radius: 50% 50% 46% 46%; color: var(--violet); background: white; box-shadow: 10px 6px 0 -4px white, -10px 6px 0 -4px white, 0 8px 16px rgba(136,103,232,.18); font: 800 1.2rem "Outfit", sans-serif; }
.think-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .7rem; }
.think-item { display: grid; grid-template-columns: 64px 1fr; gap: .8rem; align-items: center; padding: .75rem; background: white; border-radius: 16px; box-shadow: 0 6px 16px rgba(56,48,98,.06); }
.think-item.is-ready { box-shadow: 0 0 0 2px var(--violet), 0 8px 20px rgba(136,103,232,.18); }
.think-thumb { aspect-ratio: 1; background-size: 200% 200%; border-radius: 12px; background-color: var(--cloud); }
.think-item.is-thinking .think-thumb { animation: think-doze 3s ease-in-out infinite alternate; }
.think-item strong, .think-item small { display: block; }.think-item small { margin-top: .15rem; color: var(--muted); font-size: .76rem; }
.think-progress { height: 6px; margin-top: .45rem; overflow: hidden; background: var(--cloud); border-radius: 99px; }
.think-progress span { display: block; height: 100%; background: linear-gradient(90deg, #c9b8ff, var(--violet)); border-radius: inherit; }
.think-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.think-actions button { min-height: 38px; padding: .4rem .7rem; border-radius: 10px; font-size: .78rem; font-weight: 800; cursor: pointer; }
.think-keep { border: 0; background: var(--lemon); }.think-release { border: 2px solid var(--coral); color: var(--coral-dark); background: #fff5f5; }
.think-stop { border: 0; background: transparent; color: var(--muted); text-decoration: underline; padding-inline: .2rem !important; }
.think-tag { background: #eee9ff; color: #5d3fbd; }
@keyframes think-doze { from { transform: rotate(-3deg); } to { transform: rotate(3deg) translateY(-2px); } }
.deal-tag { color: #5d3fbd; background: #eee9ff; }
.haggle-dialog { width: min(520px, calc(100% - 2rem)); padding: 2.2rem; }
.haggle-head { display: flex; align-items: center; gap: .9rem; margin: .3rem 0 1rem; }
.haggle-head h2 { font-size: 1.6rem; }.haggle-head small { display: block; margin-top: .15rem; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.npc-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 64px; height: 64px; border: 3px solid white; border-radius: 50%; background: var(--npc, var(--lemon)); box-shadow: var(--shadow); font: 800 .9rem "Outfit", sans-serif; letter-spacing: -.02em; white-space: nowrap; }
.haggle-item { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: .75rem; padding: .6rem; background: var(--cloud); border-radius: 14px; }
.haggle-item strong, .haggle-item small { display: block; }.haggle-item small { color: var(--muted); font-size: .78rem; }
.haggle-speech { position: relative; margin: 1rem 0; padding: .85rem 1rem; background: #fff9df; border-radius: 14px; font-weight: 700; }
.haggle-speech::before { content: ""; position: absolute; left: 26px; top: -7px; width: 14px; height: 14px; background: #fff9df; transform: rotate(45deg); }
.haggle-form { display: grid; gap: .45rem; }.haggle-form[hidden] { display: none; }
.haggle-form label { color: var(--muted); font-size: .78rem; font-weight: 700; }
.offer-row { display: grid; grid-template-columns: 48px 1fr 48px; gap: .5rem; }
.offer-row input { min-height: 48px; padding: .5rem; border: 1px solid var(--line); border-radius: 12px; text-align: center; font: 800 1.25rem "Outfit", sans-serif; }
.offer-step { border: 1px solid var(--line); border-radius: 12px; background: white; font-size: 1.3rem; font-weight: 800; cursor: pointer; }
.haggle-rounds { color: var(--muted); font-size: .76rem; }
.haggle-actions { display: grid; gap: .55rem; margin-top: .8rem; }
.haggle-stats { display: block; margin-top: -.4rem; color: #5d3fbd; font-size: .78rem; font-weight: 700; }.pass-button { border: 2px solid var(--coral); color: var(--coral-dark); background: #fff5f5; }
.pip-dialog form.pip-ask { display: block; margin-top: 1rem; }
.pip-ask label { display: block; margin-bottom: .35rem; }
.pip-ask-row { display: flex; gap: .5rem; }
.pip-ask-row input { flex: 1; min-width: 0; min-height: 48px; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); background: white; }
.pip-ask-row .primary-button { flex: 0 0 auto; }
.pip-privacy { display: block; margin-top: .45rem; color: var(--muted); font-size: .74rem; line-height: 1.45; }
.pip-or { margin: 1.1rem 0 0; color: var(--muted); font-size: .8rem; font-weight: 700; }
.pip-dialog form.pip-ask + .pip-or + form { margin-top: .5rem; }
.pip-thinking { display: flex; align-items: center; gap: .6rem; padding: 1rem 0; color: var(--muted); font-weight: 700; }
.pip-found { margin: 1rem 0 .2rem; color: var(--coral-dark); font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.pip-result .pip-card + .pip-card { margin-top: .7rem; }
@media (max-width: 430px) { .pip-ask-row { flex-direction: column; } }
.pilot-dialog, .about-dialog, .basket-dialog, .pip-dialog, .quest-dialog { width: min(600px, calc(100% - 2rem)); padding: 2.5rem; }
.basket-items{display:grid;gap:.65rem;margin:1.3rem 0}.basket-empty{padding:2rem;color:var(--muted);background:var(--cloud);border-radius:16px;text-align:center}.basket-item{display:grid;grid-template-columns:58px 1fr auto;align-items:center;gap:.8rem;padding:.65rem;background:var(--cloud);border-radius:14px}.basket-thumb{aspect-ratio:1;background-size:200% 200%;border-radius:10px}.basket-item small{display:block;color:var(--muted)}.basket-item button{border:0;background:transparent;color:#b72b3d;cursor:pointer}.basket-summary{display:flex;justify-content:space-between;padding:1rem 0;border-top:1px solid var(--line);font-size:1.15rem}.fine-print{color:var(--muted);font-size:.75rem}.basket-actions{display:grid;grid-template-columns:1fr 1fr;gap:.7rem;margin-top:1rem}
.pip-dialog form{display:grid;grid-template-columns:1fr 1fr;gap:.8rem;margin-top:1.2rem}.pip-dialog label{display:grid;gap:.35rem;color:var(--muted);font-size:.76rem;font-weight:700}.pip-dialog select{min-height:44px;padding:.55rem;border:1px solid var(--line);border-radius:10px;background:white;color:var(--ink)}.pip-dialog form .primary-button{grid-column:1/-1}.pip-result{margin-top:1rem}.pip-card{display:grid;grid-template-columns:110px 1fr;gap:1rem;padding:1rem;background:var(--cloud);border-radius:16px}.pip-image{min-height:110px;background-size:200% 200%;border-radius:13px}.pip-card p{margin:.3rem 0;color:var(--muted);font-size:.82rem}.pip-card button{margin-top:.4rem}.quest-dialog p{padding:1rem;background:#edfbf6;border-radius:14px;color:#246b57;font-weight:700}
.pilot-dialog .pilot-mark { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 1.5rem; color: white; background: var(--coral); border-radius: 18px; font-size: 1.7rem; }
.pilot-dialog h1 { font-size: 2.4rem; }.pilot-dialog p, .about-dialog p, .about-dialog li { color: var(--muted); }
.check-row { display: flex; align-items: flex-start; gap: .7rem; margin-top: 1rem; padding: .9rem; background: var(--cloud); border-radius: 12px; font-weight: 600; cursor: pointer; }
.check-row input { flex: 0 0 auto; width: 19px; height: 19px; margin-top: .1rem; accent-color: var(--violet); }
.check-row.budget-row { flex-direction: column; align-items: stretch; gap: .5rem; font-size: .82rem; font-weight: 500; cursor: default; }
.pilot-dialog .primary-button { width: 100%; margin-top: 1.2rem; }.pilot-dialog > small { display: block; margin-top: .8rem; color: var(--muted); text-align: center; }
.about-dialog ul { padding-left: 1.2rem; }.about-dialog li + li { margin-top: .55rem; }
.toast { position: fixed; z-index: 90; right: 1.2rem; bottom: 1.2rem; max-width: 340px; padding: .85rem 1rem; color: white; background: var(--ink); border-radius: 14px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px); transition: .25s ease; }
.toast.show { opacity: 1; transform: none; }

/* First-visit guide */
.guide-card { position: fixed; z-index: 1200; left: 50%; bottom: 1.2rem; width: min(420px, calc(100% - 2rem)); padding: 1.2rem 1.3rem; transform: translateX(-50%); background: white; border: 2px solid var(--violet); border-radius: 22px; box-shadow: 0 20px 60px rgba(23,22,45,.28); }
.guide-card[hidden] { display: none; }
.guide-card h2 { margin: 0; font-size: 1.25rem; }
.guide-card p { margin: .4rem 0 0; color: var(--muted); line-height: 1.5; }
.guide-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1rem; }
.guide-focus { position: relative; z-index: 60; outline: 3px solid var(--coral) !important; outline-offset: 4px; animation: guide-pulse 1.4s ease-in-out infinite; }
@keyframes guide-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,95,103,.45); } 50% { box-shadow: 0 0 0 10px rgba(255,95,103,0); } }

@media (max-width: 1100px) {
  .guide-card { bottom: 6rem; }
  /* backdrop-filter would make the header the containing block for the fixed nav, pinning it over the header. */
  .topbar { grid-template-columns: 1fr auto; background: rgba(255,255,255,.98); backdrop-filter: none; }
  .main-nav { position: fixed; z-index: 40; left: 50%; bottom: 1rem; transform: translateX(-50%); box-shadow: var(--shadow); }
  body { padding-bottom: 5.5rem; }.toast { bottom: 5.5rem; }
}
@media (max-width: 1050px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }.showroom-stage { aspect-ratio: 4 / 3; }
}
@media (max-width: 760px) {
  .topbar { gap: .6rem; padding: .7rem 1rem; }.brand small { display: none; }.player-strip { gap: .35rem; }.stat-chip { padding: .35rem .55rem; }.level-chip small, .spark-chip small { display: none; }.spark-chip .spark-tab:not([hidden]) { display: block; }
  main { padding-top: 1.6rem; }.shop-intro, .section-heading { display: block; }.intro-actions { justify-content: stretch; margin-top: 1rem; }.intro-actions .restraint-mini { flex: 1 1 240px; }.section-heading p { margin-bottom: 0; }
  .flash-zone { grid-template-columns: 1fr; }.flash-copy { padding: 2rem 1.3rem 1.4rem; }.flash-copy h2 { font-size: 2.2rem; }.flash-visual { min-height: 220px; }.flash-visual::before { background: linear-gradient(var(--ink), transparent 20%); }
  .theme-banner { grid-template-columns: 1fr; }
  .discovery-strip{align-items:stretch;flex-wrap:wrap}.discovery-strip>div{flex-basis:100%}.discovery-strip>button{flex:1}.catalog-toolbar { display: block; }.catalog-controls { margin-top: 1rem; }.catalog-search { flex: 1 1 100%; }.catalog-search input { width: 100%; }.filter-row { justify-content: flex-start; margin-top: 1rem; }
  #filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #filter-row.is-folded .dept-extra { display: none; }
  .dept-more { display: block; grid-column: 1 / -1; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }.progress-layout { grid-template-columns: 1fr; }.detail-layout { grid-template-columns: 1fr; min-height: 0; }.detail-image { min-height: 240px; }.detail-copy { padding: 1.5rem 1.5rem 0; }.detail-copy h2 { font-size: 2rem; }
  /* Keep Add to basket / Pass visible while the product details scroll. */
  .decision-row { position: sticky; bottom: 0; z-index: 4; margin: 1.2rem -1.5rem 0; padding: .9rem 1.5rem 1.2rem; background: white; box-shadow: 0 -12px 18px -14px rgba(32,32,55,.35); }
  .showroom-stage { aspect-ratio: 1 / 1; --item-size: clamp(48px, 14%, 96px); border-radius: 24px; }.room-toolbar { flex-direction: column; align-items: stretch; }.room-controls .secondary-button { flex: 1; }
  .room-window { width: 26%; }.room-bubble { font-size: .74rem; }.room-pip { width: calc(var(--item-size) * .8); }
  .jar-card { grid-template-columns: 90px 1fr; gap: 1rem; padding: 1.2rem; }.jar-visual { width: 90px; }.decor-panel { grid-column: 1 / -1; }.upgrade-card, footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 430px) {
  .brand strong { font-size: 1.05rem; }.brand-mark { width: 38px; height: 38px; border-radius: 12px; }.level-chip { display: none; }.main-nav { width: calc(100% - 1.5rem); justify-content: space-between; }.nav-button { padding-inline: .7rem; font-size: .78rem; }
  .theme-banner { padding: 1rem; }.theme-picks { grid-template-columns: 1fr; }.new-picks { grid-template-columns: repeat(2, 1fr); }
  .theme-pick { grid-template-columns: 64px 1fr; grid-template-rows: auto; align-items: center; }
  .theme-pick-art { aspect-ratio: 1; }
  .decor-choices { grid-template-columns: 1fr; }.jar-dialog, .haggle-dialog, .unbox-dialog { padding: 1.5rem; }
  .room-controls .secondary-button { padding-inline: .45rem; font-size: .8rem; white-space: nowrap; }
  .survey-dialog { padding: 1.5rem; }.survey-scale { grid-template-columns: 1fr; gap: .35rem; }.survey-actions button { flex: 1; }#survey-send { flex-basis: 100%; }
  .totals-dialog { padding: 1.5rem; }.totals-actions { grid-template-columns: 1fr; }
  .snapshot-dialog { padding: 1.5rem; }.snapshot-actions button { flex: 1; }
  .detective-dialog { padding: 1.5rem; }.verdict-row { grid-template-columns: 1fr; }
  .unbox-stage { height: 250px; }.unbox-product { width: 160px; bottom: 50px; }.unbox-box { width: 136px; height: 108px; }.unbox-body { height: 82px; }.unbox-lid { height: 30px; }
  .unbox-actions { grid-template-columns: 1fr; }.unbox-dialog h2 { font-size: 1.5rem; }.npc-avatar { width: 54px; height: 54px; font-size: .78rem; }
  .rarity { top: .5rem; left: .5rem; padding: .22rem .42rem; font-size: .58rem; }.owned-tag, .basket-tag { top: auto; right: .5rem; bottom: .5rem; padding: .22rem .42rem; font-size: .56rem; }.format-tag { display: none; }
  .basket-chip strong{display:none}.product-grid { gap: .65rem; }.product-copy { padding: .75rem; }.product-copy h3 { font-size: 1.02rem; }.price strong { font-size: 1rem; }.discount { display: none; }.basket-actions,.pip-dialog form{grid-template-columns:1fr}.pip-card{grid-template-columns:80px 1fr}.basket-dialog,.pip-dialog,.quest-dialog{padding:1.5rem}.discovery-strip>button{flex-basis:100%}
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  /* Keep Cloudroom reactions readable without the motion: bubbles stay put, particles and flashes are skipped. */
  .room-bubble { animation: none !important; }.room-particle, .room-flash, .room-polaroid { display: none; }
  .room-pip, .pip-body, .room-plant, .room-lights i, .room-wallpaper, .room-window span { animation: none !important; }
  .theme-weather, .room-weather { display: none; }
  .unbox-confetti { display: none; }.think-thumb { animation: none !important; }.unbox-stage[data-state="closed"] .unbox-box { animation: none !important; }
}

/* Sparks while haggling (renderHaggleWallet in app.js). */
.haggle-wallet { display: block; margin-top: .45rem; color: var(--ink); font-weight: 700; }
.haggle-wallet.over { color: #9a5a00; }

/* Shop layout, 25 September 2026: a shorter story-deal banner, clearer discovery buttons, and no empty saved shelf. */
.flash-zone { min-height: 240px; }
.flash-copy { padding-top: clamp(1.4rem, 3vw, 2.2rem) !important; padding-bottom: clamp(1.4rem, 3vw, 2.2rem) !important; }
.flash-copy h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); margin-top: .6rem; }
.flash-copy p { margin: .6rem 0; }
.flash-visual { min-height: 240px; }
.saved-shelf[hidden] { display: none; }
.discovery-button { display: grid; gap: .1rem; text-align: left; min-height: 56px; }
.discovery-button small { font-weight: 600; opacity: .8; font-size: .72rem; }
.discovery-strip { flex-wrap: wrap; margin-top: 1rem; }

/* ── Discovery you can see into: taste shelf, "Why this?", Pip prompts, Think Tank notes ── */
.taste-shelf { border-color: #d8ecf6; background: linear-gradient(115deg, #f6fcff, #fbf9ff); }
.saved-shelf-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.taste-why { color: #4f4a86; }
.why-link { justify-self: start; padding: .1rem 0; border: 0; background: none; color: #5d3fbd; font: inherit; font-size: .76rem; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.why-link:hover, .why-link:focus-visible { color: var(--ink); }
.product-copy .why-link { margin: 0 0 .1rem; }
.why-row { margin: -.4rem 0 .6rem; }
.why-dialog { width: min(520px, calc(100% - 2rem)); padding: 2.2rem 2rem 1.8rem; }
.why-dialog h2 { margin: .2rem 0 .8rem; }
.why-dialog h3 { margin: 1.1rem 0 .3rem; font-size: .82rem; color: var(--muted); }
.why-list { margin: 0 0 .8rem; padding-left: 1.2rem; }
.why-list li + li { margin-top: .5rem; }
.why-list .why-order { color: var(--muted); }
.why-note { margin: 0 0 1rem; color: var(--muted); font-size: .82rem; }
.taste-switch { display: flex; align-items: center; gap: .55rem; margin: 1rem 0 .4rem; font-weight: 700; font-size: .9rem; }
.taste-switch input { width: 1.15rem; height: 1.15rem; accent-color: var(--violet); }
.taste-list { display: grid; gap: .35rem; margin: 0 0 .4rem; padding: 0; list-style: none; }
.taste-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .7rem; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 10px; background: white; }
.taste-list li.is-less { opacity: .55; }
.taste-name { font-weight: 700; text-transform: capitalize; }
.taste-dots { color: var(--violet); letter-spacing: .1em; font-size: .8rem; }
.link-button { padding: 0; border: 0; background: none; color: #5d3fbd; font: inherit; font-size: .78rem; font-weight: 700; text-decoration: underline; cursor: pointer; }
#taste-body { margin-bottom: 1rem; }
.footer-actions .footer-link { display: inline-block; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: white; color: inherit; font-size: .75rem; font-weight: 700; text-decoration: none; }
.fiction-notice a { color: inherit; font-weight: 700; }

.pip-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .7rem; }
.pip-chips span { color: var(--muted); font-size: .76rem; font-weight: 700; }
.chip-button { padding: .35rem .7rem; border: 1px solid #d9d1ef; border-radius: 99px; background: #faf8ff; color: #4a3a8a; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.chip-button:hover, .chip-button:focus-visible { background: #efe9ff; }
.pip-why { display: block; margin: .25rem 0 .5rem; color: #4f4a86; font-size: .78rem; }
.pip-note { margin: 0 0 .6rem; color: var(--muted); font-size: .78rem; }

.think-why { margin-top: .5rem; }
.think-reasons { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; }
.think-reason { padding: .25rem .6rem; border: 1px solid #d9d1ef; border-radius: 99px; background: white; color: #4a3a8a; font: inherit; font-size: .72rem; font-weight: 700; cursor: pointer; }
.think-reason.is-chosen { color: white; background: var(--violet); border-color: var(--violet); }
.think-thought { display: flex; gap: .55rem; align-items: flex-start; margin: .5rem 0 0; padding: .55rem .65rem; border-radius: 12px; background: #f4f0ff; color: var(--ink); font-size: .82rem; }
.think-thought .pip-avatar { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 9px; font-size: .78rem; }
@media (max-width: 560px) { .taste-shelf .saved-shelf-head { flex-direction: column; } .why-dialog { padding: 2rem 1.3rem 1.4rem; } }

/* ── How it works page ── */
.how-main { width: min(1080px, 100%); margin: 0 auto; padding: 2rem clamp(1rem, 4vw, 2rem) 3rem; }
.how-hero { padding: clamp(1.5rem, 4vw, 2.6rem); border-radius: 28px; background: linear-gradient(120deg, #fff4f0, #f4f0ff 60%, #eefbff); }
.how-hero h1 { max-width: 20ch; margin: .5rem 0 .8rem; font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.05; }
.how-hero p { max-width: 62ch; color: var(--muted); }
.how-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; margin: 1.4rem 0 0; padding: 0; list-style: none; counter-reset: how; }
.how-steps li { position: relative; padding: .9rem 1rem .9rem 3rem; border-radius: 16px; background: white; box-shadow: 0 6px 16px rgba(56,48,98,.06); counter-increment: how; }
.how-steps li::before { content: counter(how); position: absolute; left: .9rem; top: .85rem; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; color: white; background: var(--violet); font: 800 .85rem "Outfit"; }
.how-section { margin-top: 2.2rem; }
.how-section > h2 { margin-bottom: 1rem; }
.how-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.how-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 20px; background: white; }
.how-card h3 { margin: 0; font-size: 1.15rem; }
.how-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.how-card .how-real { color: var(--ink); }
.how-card .how-try { margin-top: auto; padding-top: .3rem; color: #5d3fbd; font-weight: 700; text-decoration: none; }
.how-card .how-try:hover, .how-card .how-try:focus-visible { text-decoration: underline; }
.how-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 1.4rem; border-radius: 22px; background: var(--cloud); }
.how-split ul { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.how-split li + li { margin-top: .35rem; }
.how-split p { color: var(--muted); }
.how-page .main-nav .nav-button { text-decoration: none; }
@media (max-width: 720px) { .how-split { grid-template-columns: 1fr; } }
.how-page a.secondary-button, .footer-actions a.footer-link { text-decoration: none; }
.share-label { display: block; margin: .9rem 0 .3rem; color: var(--muted); font-size: .78rem; font-weight: 700; }
.share-input { width: 100%; min-height: 44px; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: .85rem; color: var(--ink); background: white; }
.share-input[readonly] { background: var(--cloud); }
.share-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 .3rem; }
.share-status { min-height: 1.2rem; margin: 0 0 .6rem; color: #2f7d5b; font-size: .82rem; font-weight: 700; }
.shared-items { display: grid; gap: .6rem; max-height: 46vh; margin-top: .8rem; overflow: auto; }
.shared-actions { display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: center; }
@media (max-width: 560px) { .saved-shelf-head { flex-direction: column; } }

/* ── Why this price, Will I still use this, reading settings ── */
.detail-more { margin: .5rem 0; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: #fbfaff; }
.detail-more > summary { cursor: pointer; font-size: .85rem; font-weight: 700; color: #4a3a8a; }
.detail-more[open] > summary { margin-bottom: .6rem; }
.price-bar { display: flex; height: 14px; overflow: hidden; border-radius: 99px; background: var(--line); }
.price-bar span { display: block; height: 100%; }
.pp-0 { background: #7c5cff; } .pp-1 { background: #24a5c4; } .pp-2 { background: #f0a020; } .pp-3 { background: #3fa778; } .pp-4 { background: #e2566a; }
.price-list { display: grid; gap: .3rem; margin: .7rem 0 .4rem; padding: 0; list-style: none; }
.price-list li { display: grid; grid-template-columns: .8rem minmax(0, 1fr) auto 2.6rem; align-items: center; gap: .5rem; font-size: .82rem; }
.price-list i { width: .8rem; height: .8rem; border-radius: 4px; }
.price-list small { color: var(--muted); text-align: right; }
.use-ask { margin: 0 0 .4rem; font-size: .85rem; }
.use-result { min-height: 1.2rem; margin: .6rem 0 0; font-size: .85rem; }
.a11y-group { margin: 1rem 0 0; padding: 0; border: 0; }
.a11y-group legend { margin-bottom: .35rem; padding: 0; font-weight: 800; }
.a11y-group label { display: inline-flex; align-items: center; gap: .4rem; margin: 0 1rem .3rem 0; font-size: .9rem; }
.a11y-group input { width: 1.1rem; height: 1.1rem; accent-color: var(--violet); }
#a11y-reset { margin-top: 1.2rem; }

html[data-text="large"] { font-size: 112.5%; }
html[data-text="larger"] { font-size: 125%; }
html[data-contrast="high"] { --ink: #000; --muted: #34344a; --line: #6b6b85; }
html[data-contrast="high"] a { text-decoration: underline; }
html[data-contrast="high"] button, html[data-contrast="high"] .secondary-button { border-color: #34344a; }
html[data-contrast="high"] .product-card, html[data-contrast="high"] .saved-item, html[data-contrast="high"] .how-card { border: 1px solid #34344a; }
html[data-contrast="high"] .eyebrow { color: #8a1f2a; }
/* The same movement rules as prefers-reduced-motion, switched on by the reading settings. */
html[data-motion="reduce"] *, html[data-motion="reduce"] *::before, html[data-motion="reduce"] *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
html[data-motion="reduce"] .room-bubble { animation: none !important; }
html[data-motion="reduce"] .room-particle, html[data-motion="reduce"] .room-flash, html[data-motion="reduce"] .room-polaroid { display: none; }
html[data-motion="reduce"] .room-pip, html[data-motion="reduce"] .pip-body, html[data-motion="reduce"] .room-plant, html[data-motion="reduce"] .room-lights i, html[data-motion="reduce"] .room-wallpaper, html[data-motion="reduce"] .room-window span { animation: none !important; }
html[data-motion="reduce"] .theme-weather, html[data-motion="reduce"] .room-weather, html[data-motion="reduce"] .unbox-confetti { display: none; }
html[data-motion="reduce"] .think-thumb, html[data-motion="reduce"] .unbox-stage[data-state="closed"] .unbox-box { animation: none !important; }

/* Larger text needs more room than the wide top bar has: the menu drops to its own row instead of pushing the page sideways. */
@media (min-width: 1101px) {
  html[data-text="large"] .topbar, html[data-text="larger"] .topbar { grid-template-columns: minmax(0, 1fr) auto; row-gap: .5rem; }
  html[data-text="large"] .main-nav, html[data-text="larger"] .main-nav { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  html[data-text="large"] .fiction-notice, html[data-text="larger"] .fiction-notice { position: static; }
}

/* On phones the floating menu can't fit five buttons at larger text, so it wraps to two rows and the page leaves room under it. */
@media (max-width: 1100px) {
  html[data-text="large"] .main-nav, html[data-text="larger"] .main-nav { flex-wrap: wrap; justify-content: center; border-radius: 22px; }
  html[data-text="large"] .nav-button, html[data-text="larger"] .nav-button { padding-inline: .6rem; }
  html[data-text="large"] body, html[data-text="larger"] body { padding-bottom: 8.5rem; }
  html[data-text="large"] .toast, html[data-text="larger"] .toast { bottom: 8.5rem; }
}
html[data-text="large"] .dept-name, html[data-text="larger"] .dept-name { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: break-word; }
html[data-text="large"] .dept-tile, html[data-text="larger"] .dept-tile { min-height: 3.6rem; }

/* ── Two finds, one verdict ── */
.saved-head-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.compare-dialog { width: min(820px, calc(100% - 2rem)); max-height: min(90vh, 900px); padding: 2rem; overflow: auto; }
.compare-dialog h2 { margin: .2rem 0 .8rem; }
.cmp-picks { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.cmp-picks label { display: grid; gap: .3rem; color: var(--muted); font-size: .78rem; font-weight: 700; }
.cmp-picks input { min-height: 44px; padding: .5rem .75rem; border: 1px solid var(--line); border-radius: 12px; font: inherit; color: var(--ink); background: white; }
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.cmp-card { padding: 1rem; border: 1px solid var(--line); border-radius: 18px; background: white; }
.cmp-card h3 { margin: .6rem 0 .1rem; font-size: 1.1rem; }
.cmp-sub { margin: 0 0 .5rem; color: var(--muted); font-size: .78rem; }
.cmp-thumb { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: 12px; background-repeat: no-repeat; cursor: pointer; }
.cmp-facts { display: grid; gap: .1rem; margin: 0; }
.cmp-facts dt { margin-top: .5rem; color: #5d3fbd; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cmp-facts dd { margin: 0; font-size: .86rem; }
.cmp-verdict { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: 18px; background: #f4f0ff; }
.cmp-verdict h3 { margin: .2rem 0 .3rem; font-size: 1.4rem; }
.cmp-verdict p { margin: 0 0 .4rem; }
.cmp-other { color: var(--muted); }
.think-reason.is-chosen, .chip-button.is-chosen { color: white; background: var(--violet); border-color: var(--violet); }
@media (max-width: 640px) { .cmp-picks, .cmp-grid { grid-template-columns: 1fr; } .compare-dialog { padding: 1.4rem 1rem; } }

/* ── Build an occasion, gift mode ── */
.discovery-strip { flex-wrap: wrap; }
.discovery-strip > .discovery-button { flex: 1 1 170px; }
.gift-pill { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 1rem; padding: .6rem .9rem; border: 1px solid #f3c6d8; border-radius: 14px; background: #fff3f8; color: #6b2746; font-size: .84rem; font-weight: 700; }
.gift-pill[hidden] { display: none; }
.occasion-dialog { width: min(860px, calc(100% - 2rem)); max-height: min(92vh, 940px); padding: 2rem; overflow: auto; }
.occasion-dialog h2 { margin: .2rem 0 .8rem; }
.occ-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.occ-head h3 { margin: 0; font-size: 1.3rem; }
.occ-head p { margin: .2rem 0 0; color: var(--muted); font-size: .88rem; }
.occ-budget { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; }
.occ-budget input { width: 6.5rem; min-height: 40px; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); }
.occ-meter { height: 12px; margin: .8rem 0 .4rem; overflow: hidden; border-radius: 99px; background: var(--line); }
.occ-meter span { display: block; height: 100%; background: var(--violet); }
.occ-meter span.is-over { background: #d58a1f; }
.occ-total { margin: 0 0 .5rem; color: var(--muted); font-size: .86rem; }
.occ-total strong { color: var(--ink); font-size: 1.1rem; }
.occ-notes { margin: 0 0 .6rem; padding-left: 1.1rem; color: #6b4a00; font-size: .82rem; }
.occ-gift { margin: 0 0 .6rem; padding: .5rem .7rem; border-radius: 10px; background: #fff3f8; font-size: .84rem; }
.occ-tools { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 .8rem; }
.occ-slots { display: grid; gap: .6rem; }
.occ-slot { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: .8rem; align-items: center; padding: .6rem; border: 1px solid var(--line); border-radius: 14px; background: white; }
.occ-slot.is-kept { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet); }
.occ-slot.is-removed { display: flex; justify-content: space-between; align-items: center; opacity: .65; }
.occ-thumb { width: 84px; aspect-ratio: 1; border: 0; border-radius: 10px; background-repeat: no-repeat; cursor: pointer; }
.occ-info { display: grid; gap: .15rem; min-width: 0; }
.occ-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.occ-info small { color: var(--muted); }
.occ-role { color: #5d3fbd; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.occ-empty { margin: .1rem 0 0; color: var(--muted); font-size: .84rem; }
.occ-actions { display: flex; flex-wrap: wrap; gap: .2rem .9rem; align-items: center; }
.link-button:disabled { opacity: .4; cursor: default; text-decoration: none; }
@media (max-width: 560px) { .occasion-dialog { padding: 1.4rem 1rem; } .occ-slot { grid-template-columns: 64px minmax(0, 1fr); } .occ-thumb { width: 64px; } }

/* ── Calm or quick browsing, delivery choice, try it in your space, where it came from ── */
.browse-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; background: white; }
.browse-switch button { padding: .55rem .8rem; border: 0; background: none; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; color: var(--ink); }
.browse-switch button.is-chosen { color: white; background: var(--violet); }
html[data-browse="calm"] .flash-zone, html[data-browse="calm"] .new-shelf, html[data-browse="calm"] .window-shelf { display: none !important; }
html[data-browse="calm"] .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
html[data-browse="calm"] .product-image { aspect-ratio: 1 / .75; }
html[data-browse="calm"] .product-copy { padding: 1.3rem; }
html[data-browse="calm"] .product-copy h3 { font-size: 1.4rem; }
html[data-browse="calm"] .product-card:hover { transform: none; }
@media (max-width: 720px) { html[data-browse="calm"] .product-grid { grid-template-columns: 1fr; } }
html[data-browse="quick"] .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
html[data-browse="quick"] .product-card { border-radius: 14px; }
html[data-browse="quick"] .product-image { aspect-ratio: 1 / .9; }
html[data-browse="quick"] .product-copy { padding: .55rem .6rem .7rem; }
html[data-browse="quick"] .product-copy h3 { margin: .1rem 0 .3rem; font-size: .92rem; line-height: 1.2; }
html[data-browse="quick"] .brand-name, html[data-browse="quick"] .price small, html[data-browse="quick"] .why-link, html[data-browse="quick"] .format-tag { display: none; }
html[data-browse="quick"] .price strong { font-size: 1rem; }
html[data-browse="quick"] .save-toggle, html[data-browse="quick"] .consider-button { padding: .3rem .4rem; font-size: .72rem; }
html[data-browse="quick"] .rarity { top: .4rem; left: .4rem; padding: .2rem .4rem; font-size: .6rem; }

.delivery-choice { margin: .8rem 0; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 14px; background: #fbfaff; }
.delivery-choice[hidden] { display: none; }
.delivery-choice legend { padding: 0 .3rem; color: #5d3fbd; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.delivery-choice label { display: flex; align-items: flex-start; gap: .5rem; margin: .25rem 0; font-size: .86rem; }
.delivery-choice input { margin-top: .2rem; accent-color: var(--violet); }
.delivery-choice small { display: block; margin-top: .4rem; color: var(--muted); font-size: .76rem; }
.receipt-delivery { margin: .5rem 0 0; color: var(--muted); font-size: .78rem; }

.origin-steps { display: grid; gap: .5rem; margin: 0 0 .5rem; padding: 0; list-style: none; }
.origin-steps li { display: grid; grid-template-columns: 5.2rem minmax(0, 1fr); gap: .6rem; font-size: .86rem; }
.origin-steps strong { color: #5d3fbd; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

.space-dialog { width: min(720px, calc(100% - 2rem)); max-height: min(94vh, 960px); padding: 1.6rem 1.6rem 1.4rem; overflow: auto; }
.space-dialog h2 { margin: .2rem 0 .6rem; }
.space-note { margin: 0 0 .8rem; color: var(--muted); font-size: .86rem; }
.space-stage { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 62vh; overflow: hidden; border-radius: 16px; background: #22223a; touch-action: none; user-select: none; cursor: grab; }
.space-stage video, .space-stage #space-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.space-stage .space-item { position: absolute; z-index: 2; height: auto; transform: translate(-50%, -50%) scaleX(var(--flip, 1)); filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35)); pointer-events: none; }
.space-stage:not(.has-source) .space-item { opacity: .35; }
.space-empty { position: absolute; inset: auto 0 12% 0; z-index: 1; padding: 0 1rem; color: #c9c9e0; font-size: .86rem; text-align: center; }
.space-stage.has-source .space-empty { display: none; }
.space-stage:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.space-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: .7rem; }
.space-controls label { display: flex; align-items: center; gap: .5rem; flex: 1 1 200px; font-weight: 700; font-size: .85rem; }
.space-controls input[type=range] { flex: 1; accent-color: var(--violet); }
.space-file { cursor: pointer; }
@media (max-width: 560px) { .space-dialog { padding: 1.3rem .9rem; } .browse-switch { align-self: flex-start; } }

/* The "Not sure what fits?" intro keeps a readable width now the row holds four buttons; below 1240px the intro takes its own line above the buttons. */
@media (min-width: 1101px) and (max-width: 1239px) { .discovery-strip > div { flex: 1 1 100%; } }
@media (min-width: 1240px) { .discovery-strip > div { flex: 1 1 260px; min-width: 260px; } }

/* An Exit button at the bottom of every pop-up, always in reach however far the pop-up scrolls. */
.dialog-exit { position: sticky; bottom: 0; z-index: 6; display: flex; justify-content: center; padding: .9rem 1rem 1rem; background: linear-gradient(to top, #fff 72%, rgba(255, 255, 255, 0)); }
.dialog-exit button { min-width: 9rem; min-height: 44px; }

.space-stage video.is-mirrored { transform: scaleX(-1); }

/* ── Vibes, the style quiz, price history, find passports ── */
.vibe-block { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; margin: .2rem 0 1rem; }
.vibe-label { color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.vibe-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.vibe-chip .chip-count { margin-left: .25rem; color: var(--muted); font-size: .72rem; }
.vibe-chip.is-chosen .chip-count { color: rgba(255, 255, 255, .85); }
.quiz-invite { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0 0 1rem; padding: .8rem 1rem; border: 1px solid #d9d1ef; border-radius: 14px; background: #faf8ff; font-size: .88rem; }
.quiz-invite[hidden] { display: none; }
.quiz-invite > span { flex: 1 1 260px; }
.taste-choice { display: inline-flex; gap: .3rem; }
.quiz-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: .6rem 0 .8rem; }
.quiz-choice { display: grid; gap: .2rem; justify-items: center; padding: .7rem; border: 2px solid var(--line); border-radius: 18px; background: white; cursor: pointer; font: inherit; color: var(--ink); }
.quiz-choice:hover, .quiz-choice:focus-visible { border-color: var(--violet); }
.quiz-choice small { color: var(--muted); }
.quiz-photo { width: 100%; aspect-ratio: 1; border-radius: 12px; background-repeat: no-repeat; background-position: center; background-size: contain; background-color: #f4f1fb; }
.price-chart { width: 100%; max-width: 360px; height: auto; margin: .2rem 0 .3rem; }
.price-history-line { margin: 0 0 .4rem; font-size: .84rem; }
.passport-shelf { margin: 1.4rem 0; padding: 1.2rem 1.3rem; border: 1px solid #e4dcff; border-radius: 20px; background: linear-gradient(115deg, #fbf9ff, #f5fcff); }
.passport-shelf h2 { margin: .2rem 0 .3rem; }
.passport-shelf p { margin: 0 0 .8rem; color: var(--muted); font-size: .86rem; }
.passport-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: .6rem; }
.passport-card { display: grid; gap: .1rem; justify-items: center; padding: .6rem; border: 1px solid var(--line); border-radius: 14px; background: white; cursor: pointer; font: inherit; color: var(--ink); text-align: center; }
.passport-card:hover, .passport-card:focus-visible { border-color: var(--violet); }
.passport-card strong { font-size: .8rem; line-height: 1.2; }
.passport-card small { color: #5d3fbd; font-weight: 700; }
.passport-thumb, .passport-photo { display: block; width: 100%; aspect-ratio: 1; border-radius: 10px; background-repeat: no-repeat; background-position: center; background-size: contain; background-color: #f4f1fb; }
.passport-top { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 1rem; align-items: start; margin-bottom: .6rem; }
.passport-facts { display: grid; gap: .05rem; margin: 0; }
.passport-facts dt { margin-top: .4rem; color: #5d3fbd; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.passport-facts dd { margin: 0; font-size: .88rem; }
.passport-facts small { color: var(--muted); }
.passport-care { margin: 0 0 .6rem; padding-left: 1.1rem; font-size: .88rem; }
.passport-steps { display: grid; gap: .45rem; margin: 0 0 .5rem; padding: 0; list-style: none; }
.passport-steps li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: .6rem; font-size: .86rem; }
.passport-steps strong { color: #5d3fbd; }
@media (max-width: 560px) { .quiz-pair { grid-template-columns: 1fr 1fr; gap: .5rem; } .passport-top { grid-template-columns: 1fr; } .passport-steps li { grid-template-columns: 1fr; gap: 0; } }

/* "New in the shop" can't be wider than the screen: a column may shrink below its longest word (long names such as
   "Brambleweave Scarf" used to push the grid about 27px past the edge on a 375px phone, depending on the day's mix). */
.new-picks { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .new-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .new-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.theme-pick { min-width: 0; }
.theme-pick strong, .theme-pick small, .theme-pick-foot { overflow-wrap: anywhere; }

/* Wave 6: discovery dial, keep three, remix, time machine, My shelf */
.dial { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .2rem 0 .9rem; }
.dial-step { display: grid; gap: .1rem; text-align: left; padding: .5rem .8rem; border: 2px solid var(--line); border-radius: 14px; background: white; cursor: pointer; font: inherit; color: var(--ink); min-width: 0; }
.dial-step small { color: var(--muted); font-size: .72rem; }
.dial-step.is-chosen { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet); }
.dial-step:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.keep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: .6rem; margin: .6rem 0 .9rem; }
.keep-card { position: relative; display: grid; gap: .15rem; justify-items: center; padding: .6rem; border: 2px solid var(--line); border-radius: 16px; background: white; cursor: pointer; font: inherit; color: var(--ink); text-align: center; min-width: 0; }
.keep-card strong { font-size: .8rem; line-height: 1.2; overflow-wrap: anywhere; }
.keep-card small { color: var(--muted); }
.keep-card.is-kept { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet); background: #faf7ff; }
.keep-card:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.keep-photo { width: 100%; aspect-ratio: 1; border-radius: 10px; background-repeat: no-repeat; }
.keep-badge { position: absolute; top: .4rem; right: .4rem; padding: .1rem .5rem; border-radius: 99px; background: var(--violet); color: white; font-size: .68rem; font-weight: 800; }
.keep-count { margin: 0 0 .2rem; color: var(--muted); }
.keep-reading { margin: 0 0 .6rem; padding-left: 1.1rem; }
.occ-remix { align-items: center; padding: .5rem .6rem; border-radius: 12px; background: #f6f2ff; }
.occ-remix-label { font-size: .78rem; font-weight: 700; color: #5d3fbd; margin-right: .3rem; }
.era-slider { margin: .6rem 0 .8rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 14px; background: white; }
.era-slider input[type=range] { width: 100%; min-height: 32px; accent-color: var(--violet); }
.era-ends { display: flex; justify-content: space-between; gap: 1rem; }
.era-ends span { display: grid; gap: .1rem; min-width: 0; }
.era-ends span:last-child { text-align: right; }
.era-ends small { color: var(--muted); font-size: .72rem; }
.era-position { margin: .2rem 0 0; color: var(--muted); font-size: .84rem; }
.era-tag { display: inline-block; margin-left: .3rem; padding: .05rem .5rem; border-radius: 99px; font-size: .65rem; letter-spacing: .04em; vertical-align: middle; }
.era-tag.is-faithful { background: #fff1d6; color: #7a4b00; }
.era-tag.is-today { background: #e3f4f6; color: #0b5560; }
.era-tag.is-either { background: #eee; color: #444; }
.ms-list { margin: 0 0 .6rem; padding-left: 1.1rem; display: grid; gap: .35rem; font-size: .9rem; }
.ms-list .link-button { font-size: inherit; }
@media (max-width: 560px) { .dial-step { flex: 1 1 100%; } .era-ends { flex-direction: column; gap: .3rem; } .era-ends span:last-child { text-align: left; } }

/* Wave 7: beautiful accidents, weekend generator, two futures */
.accident-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: .6rem 0 .9rem; }
.weekend-controls { display: grid; gap: .6rem; margin-bottom: .8rem; }
.weekend-steps { margin: 0 0 .6rem; padding-left: 1.2rem; display: grid; gap: .4rem; }
.futures-dialog { width: min(980px, calc(100vw - 1.5rem)); }
.future-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: .8rem 0; }
.future-col { display: grid; gap: .5rem; align-content: start; padding: .9rem; border: 1px solid var(--line); border-radius: 18px; background: white; min-width: 0; }
.future-col h3 { margin: 0; }
.future-col p { margin: 0; color: var(--muted); font-size: .88rem; }
.future-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: .35rem; }
.future-thumb { aspect-ratio: 1; border: 0; border-radius: 10px; background-repeat: no-repeat; cursor: pointer; }
.future-names { margin: 0; padding-left: 1.1rem; font-size: .84rem; display: grid; gap: .1rem; overflow-wrap: anywhere; }
.future-names small { color: var(--muted); }
.future-meters { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .35rem .8rem; margin: 0; align-items: center; font-size: .84rem; }
.future-meters dt { color: var(--muted); }
.future-meters dd { margin: 0; display: flex; align-items: center; gap: .5rem; min-width: 0; }
.future-bar { flex: 1 1 60px; height: 10px; overflow: hidden; border-radius: 99px; background: var(--line); }
.future-bar > span { display: block; height: 100%; background: var(--violet); }
.future-bar > span.is-colour { background: linear-gradient(90deg, #9ad0d6, #f08a5d); }
@media (max-width: 700px) { .future-cols { grid-template-columns: 1fr; } .accident-trio { gap: .4rem; } }

/* Wave 8: moving between finds, invented countries and sets, arrives by */
.product-nav { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: 0 2.6rem .8rem 0; padding: .7rem .25rem .5rem; background: var(--paper); }
.product-nav[hidden] { display: none; }
.product-nav .secondary-button { min-height: 44px; padding: .4rem .9rem; }
.product-nav-mid { display: grid; text-align: center; min-width: 0; }
.product-nav-mid small { color: var(--muted); font-size: .7rem; }
#product-detail.slide-next { animation: productSlideNext .22s ease-out; }
#product-detail.slide-prev { animation: productSlidePrev .22s ease-out; }
@keyframes productSlideNext { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes productSlidePrev { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
html[data-motion="reduce"] #product-detail.slide-next, html[data-motion="reduce"] #product-detail.slide-prev { animation: none; }
.flag { width: 36px; height: 24px; border-radius: 3px; flex: none; vertical-align: middle; }
.country-chip { display: inline-flex; align-items: center; gap: .4rem; }
.country-chip .flag { width: 24px; height: 16px; }
.country-line { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; margin: .2rem 0 .4rem; font-size: .88rem; }
.country-sets { color: var(--muted); }
.country-head { display: flex; gap: 1rem; align-items: center; margin-bottom: .6rem; }
.country-head .flag { width: 84px; height: 56px; }
.country-facts { display: grid; grid-template-columns: auto 1fr; gap: .1rem .8rem; margin: 0; font-size: .88rem; }
.country-facts dt { color: var(--muted); }
.country-facts dd { margin: 0; }
.set-list { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .5rem; }
.set-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) auto; align-items: center; gap: .7rem; font-size: .88rem; }
.set-title { text-align: left; font-weight: 700; overflow-wrap: anywhere; }
.set-meter { height: 8px; overflow: hidden; border-radius: 99px; background: var(--line); }
.set-meter > span { display: block; height: 100%; background: var(--violet); }
.set-count { color: var(--muted); white-space: nowrap; }
.sets-shelf { margin-top: 1rem; }
.catalog-arrives select { max-width: 100%; }
.arrive-note { margin: -.4rem 0 .8rem; }
@media (max-width: 560px) { .product-nav { margin-right: 2.4rem; } .product-nav .secondary-button { padding: .4rem .6rem; } .product-nav-mid small { display: none; } .set-row { grid-template-columns: 1fr auto; } .set-meter { grid-column: 1 / -1; order: 3; } }

/* Wave 9: keep my game safe */
.save-block { margin: 0 0 1rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: white; }
.save-block h3 { margin: 0 0 .4rem; font-size: 1rem; }
.save-block p { margin: 0 0 .6rem; font-size: .9rem; }
.save-status { padding: .5rem .7rem; border-radius: 10px; background: #f3f7f4; }
.save-status.is-ok { background: #eef8f1; }
.save-status.is-warn { background: #fff3dc; color: #6b4a00; }
.save-flash { margin: 0 0 .8rem; padding: .6rem .8rem; border-radius: 10px; background: #f2edff; font-weight: 600; }
.save-phrase { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0; }
.save-phrase span { padding: .5rem .8rem; border-radius: 12px; background: #f2edff; font: 700 1.1rem ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.save-compare { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: .6rem 0 .9rem; }
.save-compare > div { padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 14px; background: white; }
.save-compare p { margin: .2rem 0 0; font-size: .9rem; }
.save-actions { flex-direction: column; align-items: stretch; }
#save-join-input { display: block; width: 100%; min-height: 84px; box-sizing: border-box; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 1.05rem; resize: vertical; }
[data-open-save].needs-you { outline: 2px solid #d58a1f; outline-offset: 2px; }
.save-card { margin-bottom: 1rem; }
@media (max-width: 560px) { .save-compare { grid-template-columns: 1fr; } }

/* Wave 10: making saving obvious */
.save-chip { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 15px; background: white; color: var(--ink); font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; white-space: nowrap; }
.save-chip:hover, .save-chip:focus-visible { border-color: var(--violet); }
.save-chip-dot { width: 10px; height: 10px; border-radius: 50%; background: #b9bccb; flex: none; }
.save-chip[data-status="saved"] .save-chip-dot { background: #2f9e62; }
.save-chip[data-status="unsaved"] { border-color: #e0a528; background: #fff8e6; }
.save-chip[data-status="unsaved"] .save-chip-dot { background: #e0a528; }
.save-chip[data-status="attention"] { border-color: #d58a1f; background: #fff3dc; }
.save-chip[data-status="attention"] .save-chip-dot { background: #d58a1f; animation: saveDotPulse 1.6s ease-in-out infinite; }
@keyframes saveDotPulse { 50% { transform: scale(1.5); opacity: .55; } }
html[data-motion="reduce"] .save-chip-dot { animation: none !important; }
.save-banner { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0; padding: .7rem 1rem; background: #fff1cf; border-bottom: 1px solid #f0d58a; color: #4a3a05; font-size: .92rem; }
.save-banner[hidden] { display: none; }
.save-banner[data-status="attention"] { background: #fde7c3; }
.save-banner-icon { font-size: 1.3rem; }
.save-banner-text { flex: 1 1 320px; min-width: 0; }
.save-banner .primary-button { min-height: 44px; }
.save-progress-card { grid-column: 1 / -1; border-color: #f0d58a; background: #fffaf0; }
.pilot-load { display: block; margin: .6rem auto 0; text-align: center; }
@media (max-width: 700px) { .save-chip { min-height: 40px; min-width: 44px; justify-content: center; padding: .3rem .5rem; gap: .3rem; } .save-chip-text { display: none; } .save-chip::after { content: "💾"; font-size: 1.05rem; } .save-banner { padding: .6rem .8rem; } }
.is-armed { background: #fff3dc !important; border-color: #d58a1f !important; color: #6b4a00 !important; }

/* Wave 12: colour search, zoom, size helper, more like this */
.colour-row { align-items: center; }
.swatch { width: 32px; height: 32px; padding: 0; border: 3px solid white; border-radius: 50%; background: var(--swatch, #ddd); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch.swatch-neutral { background: linear-gradient(135deg, #f1ece3 50%, #bdb6aa 50%); }
.swatch:hover, .swatch:focus-visible { box-shadow: 0 0 0 2px var(--violet); }
.swatch.is-chosen { box-shadow: 0 0 0 3px var(--violet); transform: scale(1.12); }
.swatch-custom { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--muted); }
.swatch-custom input { width: 40px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: white; cursor: pointer; }
.colour-note { flex-basis: 100%; }
.similar-why { color: #5d3fbd; font-size: .72rem; }
.size-line { margin: .3rem 0 .6rem; }
.fit-dialog form { display: grid; gap: .7rem; margin: .8rem 0; }
.fit-dialog form label { display: grid; gap: .25rem; font-size: .88rem; font-weight: 600; }
.fit-dialog form label.check-row { display: flex; font-weight: 500; }
.fit-dialog select, .fit-dialog input[type=number] { min-height: 44px; padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: white; color: var(--ink); }
.fit-answer { display: flex; align-items: baseline; gap: .8rem; margin: .8rem 0 .3rem; }
.fit-size { font-size: 2rem; color: #5d3fbd; }
.fit-chart { width: 100%; border-collapse: collapse; margin-top: .5rem; font-size: .86rem; }
.fit-chart th, .fit-chart td { padding: .3rem .6rem; text-align: left; border-bottom: 1px solid var(--line); }
.fit-chart tr.is-chosen { background: #f2edff; font-weight: 700; }
.zoom-dialog { width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; border-radius: 0; background: #14131f; color: white; overflow: hidden; }
.zoom-dialog[open] { display: flex; flex-direction: column; }
.zoom-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .6rem 3.4rem .6rem 1rem; }
.zoom-bar > strong { flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.zoom-tools { display: inline-flex; align-items: center; gap: .4rem; }
.zoom-tools .secondary-button { min-width: 44px; min-height: 44px; padding: .3rem .7rem; }
#zoom-level { min-width: 3.2rem; text-align: center; font-variant-numeric: tabular-nums; }
.zoom-dialog .dialog-close { color: white; }
.zoom-dialog .secondary-button { color: var(--ink); }
.zoom-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; touch-action: none; cursor: zoom-in; user-select: none; -webkit-user-select: none; }
.zoom-stage.is-zoomed { cursor: grab; }
.zoom-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transform-origin: center; filter: var(--finish-tint, none); -webkit-user-drag: none; pointer-events: none; }
.zoom-hint { margin: 0; padding: .4rem 1rem; text-align: center; font-size: .78rem; color: #c7c4d8; }
.zoom-dialog .dialog-exit { background: #14131f; padding: .4rem 0 .8rem; }
#product-dialog .detail-image { cursor: zoom-in; }
@media (max-width: 560px) { .zoom-hint { display: none; } .swatch { width: 36px; height: 36px; } }

/* Wave 13: finds first, explain the loop, calmer phone nav, and hidden means hidden */
/* A class that sets display (like .vibe-block) used to override the hidden attribute, so the empty "invented countries" heading showed. */
[hidden] { display: none !important; }
.shop-explainer { max-width: 34rem; margin: .6rem 0 .9rem; color: var(--muted); font-size: 1.05rem; line-height: 1.45; }
.intro-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; }
.intro-cta .primary-button, .intro-cta .secondary-button { min-height: 46px; }
.catalog-toolbar, .explore-more { scroll-margin-top: 6.5rem; }
.filter-more { margin: 0 0 1rem; }
.filter-more > summary { cursor: pointer; padding: .5rem 0; color: #5d3fbd; font-weight: 700; font-size: .92rem; }
.filter-more[open] > summary { margin-bottom: .3rem; }
.explore-more { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.explore-head { margin-bottom: 1rem; }
.explore-head h2 { margin: .2rem 0 .3rem; }
.explore-head p { margin: 0; color: var(--muted); }
.nav-more { display: none; }
.more-menu { position: fixed; z-index: 41; left: 50%; bottom: 5.4rem; transform: translateX(-50%); display: grid; gap: .15rem; width: min(300px, calc(100% - 1.5rem)); padding: .5rem; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); }
.more-menu .nav-button { width: 100%; min-height: 48px; text-align: left; text-decoration: none; color: var(--ink); display: flex; align-items: center; }
@media (max-width: 700px) {
  .main-nav.has-more .nav-button[data-view="progress"], .main-nav.has-more .staff-link { display: none; }
  .main-nav.has-more .nav-more { display: inline-flex; align-items: center; }
  .main-nav.has-more { justify-content: space-around; }
}
@media (min-width: 701px) { .more-menu { display: none !important; } }
/* The department tiles fold on wide screens too (twelve show, the rest open with the button), so the finds start higher up. */
#filter-row.is-folded .dept-extra { display: none; }
.dept-more { display: block; grid-column: 1 / -1; }
/* The longer nav label ("Run the store") must not wrap into three lines on tablets: keep nav labels on one line and tighten the top bar. */
.nav-button { white-space: nowrap; }
@media (max-width: 1400px) and (min-width: 701px) { .nav-button { padding-inline: .7rem; font-size: .9rem; } .save-chip { min-width: 44px; justify-content: center; padding: .35rem .6rem; } .save-chip-text { display: none; } .save-chip::after { content: "💾"; font-size: 1.05rem; } .level-chip small { display: none; } }

/* Wave 15: a lighter welcome, and the phrase check */
.pilot-default-note { margin: .6rem 0 0; font-size: .9rem; }
.pilot-defaults { margin: .6rem 0 0; }
.pilot-defaults > summary { cursor: pointer; padding: .5rem 0; color: #5d3fbd; font-weight: 700; font-size: .92rem; }
.save-verify { margin: .6rem 0 .8rem; }
.save-verify > summary { cursor: pointer; padding: .4rem 0; color: #5d3fbd; font-weight: 700; font-size: .9rem; }
.save-verify textarea { display: block; width: 100%; min-height: 84px; box-sizing: border-box; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 1rem; resize: vertical; }
.save-verify .share-status.is-ok { color: #1f7a45; font-weight: 700; }
.export-note { margin: .3rem 0 .6rem; }

/* Contact form */
.contact-form label { display: block; margin: .85rem 0 .3rem; font-weight: 600; }
.contact-form label.check-row { display: flex; font-weight: 400; margin-top: .7rem; }
.contact-form select, .contact-form textarea, .contact-form input[type="email"] { display: block; width: 100%; box-sizing: border-box; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 12px; font: inherit; color: inherit; background: #fff; }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .share-status.is-ok { color: #1f7a45; font-weight: 700; }
.contact-form .share-status.is-bad { color: #9c2e3c; font-weight: 700; }
