/* ============ Rack & Sole — virtual store ============ */
:root {
  --ink: #1b1712;
  --ink-2: #5c5248;
  --muted: #8c8176;
  --wall: #ece5d9;
  --wall-2: #e2d9ca;
  --floor: #b9ab97;
  --floor-2: #8f8170;
  --paper: #fbf8f3;
  --line: rgba(27, 23, 18, .12);
  --accent: #b5532c;
  --metal: linear-gradient(180deg, #8a8580 0%, #e9e6e1 35%, #6d6863 70%, #3f3b37 100%);
  --wood: linear-gradient(180deg, #f4efe7 0%, #ddd3c4 60%, #b7aa96 100%);
  --radius: 18px;
  --shadow: 0 30px 80px -20px rgba(40, 28, 15, .35);
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --floor-h: 17vh;
  --dock-h: 64px;
  --k: .098; /* item scale: design px -> vh */
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wordmark {
  font-family: var(--sans);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: .06em;
  font-size: 15px;
  white-space: nowrap;
}
.wordmark i { font-family: var(--serif); font-weight: 400; font-style: italic; font-stretch: 100%; letter-spacing: 0; font-size: 1.25em; padding: 0 .08em; }
.wordmark--lg { font-size: clamp(26px, 5vw, 44px); }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) clamp(16px, 3vw, 32px) 14px;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.bag-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(251, 248, 243, .75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  transition: transform .2s;
}
.bag-btn:hover { transform: scale(1.06); }
.bag-btn__count {
  position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--ink); color: var(--paper);
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
  transform: scale(0); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.bag-btn__count.is-on { transform: scale(1); }
.bag-btn.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.18); } 60% { transform: scale(.95); } }

/* ---------- the store room ---------- */
.store {
  position: fixed; inset: 0;
  /* wall plaster + spotlight + floor */
  background:
    radial-gradient(ellipse 55% 60% at 50% 18%, rgba(255, 250, 238, .95), rgba(255, 250, 238, 0) 70%),
    linear-gradient(180deg, var(--wall) 0%, var(--wall-2) calc(100% - var(--floor-h)), transparent calc(100% - var(--floor-h))),
    linear-gradient(180deg, var(--floor) 0%, var(--floor-2) 100%);
  overflow: hidden;
}
/* plaster grain */
.store::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .5 0 0 0 0 .44 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* baseboard + floor sheen */
.store::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: var(--floor-h); height: 10px; pointer-events: none;
  background: linear-gradient(180deg, #f6f1e8, #cfc4b3);
  box-shadow: 0 8px 30px rgba(60, 40, 20, .25);
}

.walls { position: absolute; inset: 0; }
.wall {
  position: absolute; inset: 0;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
  cursor: grab;
  transition: transform .9s cubic-bezier(.65, 0, .25, 1), opacity .9s ease, filter .9s ease;
  touch-action: pan-x;
}
.wall::-webkit-scrollbar { display: none; }
.wall.is-dragging { cursor: grabbing; scroll-behavior: auto; }
.wall.is-left { transform: translateX(-35%) scale(.9); opacity: 0; filter: blur(4px); pointer-events: none; }
.wall.is-right { transform: translateX(35%) scale(.9); opacity: 0; filter: blur(4px); pointer-events: none; }
.wall__track {
  position: relative;
  display: flex; align-items: flex-start; justify-content: center;
  gap: clamp(36px, 6vw, 110px);
  min-width: 100%; width: max-content; height: 100%;
  padding: 0 clamp(40px, 8vw, 140px);
}
.wall__sign {
  position: absolute; left: 50%; top: max(10.5vh, 72px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  pointer-events: none; user-select: none; text-align: center;
}
.wall__sign img { width: clamp(46px, 7vh, 64px); height: auto; }
.wall__sign .wordmark { font-size: clamp(22px, 3.4vh, 32px); }
.wall__sign small { font-size: 10px; letter-spacing: .5em; text-transform: uppercase; color: var(--ink-2); padding-left: .5em; }
.wall__title {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(44px, 9vh, 92px); line-height: .9; color: var(--ink); opacity: .9;
}

/* fixtures sit in the wall zone, above the floor */
.fixture { position: relative; flex: none; margin-top: 30vh; }

/* -- hanging rail -- */
.rail { display: flex; align-items: flex-start; gap: clamp(2px, .6vw, 10px); padding: 0 34px; }
.rail::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 9px; border-radius: 6px;
  background: var(--metal); box-shadow: 0 10px 18px -6px rgba(40, 28, 15, .45);
  z-index: 0;
}
.rail::after {
  /* wall brackets */
  content: ''; position: absolute; top: -26px; left: 10px; right: 10px; height: 34px; pointer-events: none;
  background:
    linear-gradient(90deg, #4a4540, #8d8781) left / 6px 100% no-repeat,
    linear-gradient(90deg, #4a4540, #8d8781) right / 6px 100% no-repeat;
}
/* each photo's own hanger hook sits over the bar */
.rail .item { margin-top: -3px; z-index: 1; }

/* -- floating shelves -- */
.shelf { display: flex; flex-direction: column; gap: 4.5vh; margin-top: 27vh; }
.shelf__row {
  position: relative; display: flex; align-items: flex-end; justify-content: center; gap: clamp(14px, 2.4vw, 34px);
  padding: 0 22px 0; min-width: 200px;
}
.shelf__row::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px; border-radius: 3px;
  background: var(--wood);
  box-shadow: 0 18px 24px -12px rgba(40, 28, 15, .55);
}

/* -- wall pegs -- */
.pegs { display: flex; align-items: flex-start; gap: clamp(30px, 5vw, 80px); margin-top: 29vh; }
/* handles, lace loops and caps hang straight off the peg */
.pegs .item::before {
  content: ''; position: absolute; top: 2px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f1ece5, #6f6962 70%); box-shadow: 0 4px 6px rgba(0, 0, 0, .3);
  z-index: 2;
}

/* ---------- items ---------- */
.item {
  position: relative; display: flex; flex-direction: column; align-items: center;
  transform-origin: 50% 0;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.item__img {
  height: calc(var(--h) * var(--k) * 1vh);
  width: auto; max-width: none;
  filter: drop-shadow(12px 22px 16px rgba(60, 40, 20, .28));
  user-select: none; -webkit-user-drag: none; pointer-events: none;
  transition: filter .3s, transform .4s cubic-bezier(.3, 1.4, .5, 1);
}
.shelf .item { transform-origin: 50% 100%; }
.item:hover, .item:focus-visible { z-index: 5; }
.item:hover .item__img, .item:focus-visible .item__img { filter: drop-shadow(16px 30px 22px rgba(60, 40, 20, .34)) brightness(1.04); }
.shelf .item:hover .item__img { transform: translateY(-8px) rotate(-2deg); }
.item.is-new { animation: dropin .8s cubic-bezier(.3, 1.3, .5, 1) both; animation-delay: calc(var(--i) * 70ms + 200ms); }
@keyframes dropin { from { opacity: 0; transform: translateY(-30px) rotate(-6deg); } }

/* price tag hanging off the item */
.tag {
  position: absolute; top: 18%; left: calc(50% + 18px);
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 6px 9px 7px; border-radius: 4px 4px 4px 4px;
  background: var(--paper); box-shadow: 0 6px 14px rgba(40, 28, 15, .18);
  font-size: 10.5px; line-height: 1.25; white-space: nowrap; text-align: left;
  transform: rotate(4deg) scale(.92); transform-origin: 0 0;
  opacity: 0; transition: opacity .25s, transform .3s cubic-bezier(.3, 1.6, .5, 1);
  pointer-events: none; z-index: 4;
}
.tag::before { content: ''; position: absolute; left: -16px; top: 9px; width: 18px; border-top: 1px dashed #8a7d70; transform: rotate(-12deg); transform-origin: right; }
.tag b { font-weight: 700; font-size: 11px; }
.tag span { color: var(--ink-2); }
.shelf .tag { top: auto; bottom: 100%; left: 50%; transform: translate(-50%, -4px) scale(.92); }
.shelf .tag::before { display: none; }
.item:hover .tag, .item:focus-visible .tag { opacity: 1; transform: rotate(0) scale(1); }
.shelf .item:hover .tag, .shelf .item:focus-visible .tag { transform: translate(-50%, -14px) scale(1); }
@media (hover: none) {
  /* no hover on touch: show a small label under each item instead */
  .item { z-index: 1; }
  .shelf { gap: 8vh; }
  .tag, .item:hover .tag, .item:focus-visible .tag {
    opacity: 1; top: 100%; left: 50%; align-items: center; text-align: center;
    transform: translate(-50%, 6px) scale(.86); transform-origin: 50% 0;
    max-width: 130px; white-space: normal;
  }
  .tag::before { display: none; }
  .shelf .tag, .shelf .item:hover .tag, .shelf .item:focus-visible .tag { top: auto; bottom: 100%; transform: translate(-50%, -6px) scale(.86); transform-origin: 50% 100%; }
}

/* walk arrows */
.walk {
  position: absolute; top: 50%; z-index: 5; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(251, 248, 243, .8); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px -8px rgba(40, 28, 15, .3);
  transition: opacity .3s, transform .2s;
}
.walk:hover { transform: scale(1.08); }
.walk--l { left: clamp(10px, 2vw, 24px); }
.walk--r { right: clamp(10px, 2vw, 24px); }
.walk.is-off { opacity: 0; pointer-events: none; }

.hint {
  position: absolute; left: 50%; bottom: calc(var(--floor-h) - 34px); transform: translateX(-50%);
  margin: 0; padding: 6px 12px; border-radius: 20px;
  font-size: 11.5px; letter-spacing: .02em; color: var(--paper); background: rgba(27, 23, 18, .55);
  white-space: nowrap; pointer-events: none; transition: opacity .6s;
}
.hint.is-off { opacity: 0; }

/* ---------- bottom dock (like the reference) ---------- */
.dock {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30;
  max-width: calc(100vw - 32px);
}
.dock__inner {
  display: flex; gap: 2px; padding: 5px; border-radius: 999px; overflow-x: auto; scrollbar-width: none;
  background: rgba(251, 248, 243, .82); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 30px -12px rgba(40, 28, 15, .35);
}
.dock__inner::-webkit-scrollbar { display: none; }
.dock button {
  position: relative; flex: none; padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--ink-2);
  transition: color .25s, background .25s;
}
.dock button:hover { color: var(--ink); }
.dock button[aria-current="true"] { background: var(--ink); color: var(--paper); }

.credit {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 14px); z-index: 20;
  font-size: 11px; color: var(--paper); text-decoration: none; opacity: .85;
}
.credit:hover { opacity: 1; text-decoration: underline; }

/* ---------- entrance doors ---------- */
.entrance { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; perspective: 1400px; }
.door {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .25) 55%, rgba(255, 255, 255, 0) 70%),
    rgba(220, 212, 200, .72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 14px solid #2a2622;
  transition: transform 1.3s cubic-bezier(.7, 0, .2, 1);
}
.door--l { left: 0; border-right-width: 7px; }
.door--r { right: 0; border-left-width: 7px; }
.door__handle { position: absolute; top: 64%; width: 10px; height: 130px; border-radius: 6px; background: var(--metal); box-shadow: 0 6px 12px rgba(0, 0, 0, .3); }
.door--l .door__handle { right: 22px; }
.door--r .door__handle { left: 22px; }
.entrance__sign { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 0 16px; transition: opacity .5s, transform .8s; }
.entrance__sign img { width: 64px; height: 64px; }
.entrance__hint { margin: 6px 0 0; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); }
.entrance.is-open .door--l { transform: translateX(-100%); }
.entrance.is-open .door--r { transform: translateX(100%); }
.entrance.is-open .entrance__sign { opacity: 0; transform: scale(1.15); }
.entrance.is-gone { display: none; }

/* ---------- product modal ---------- */
.modal, .drawer { position: fixed; inset: 0; z-index: 60; }
.modal__scrim { position: absolute; inset: 0; background: rgba(27, 23, 18, .4); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .3s ease both; }
@keyframes fade { from { opacity: 0; } }
.modal { display: grid; place-items: center; padding: 16px; }
.pm {
  position: relative; display: grid; grid-template-columns: 1.05fr 1fr;
  width: min(980px, 100%); max-height: calc(100dvh - 32px); overflow: hidden;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  animation: pop .45s cubic-bezier(.2, 1.2, .4, 1) both;
}
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.pm__close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(27, 23, 18, .06); transition: background .2s; }
.icon-btn:hover { background: rgba(27, 23, 18, .12); }
.pm__stage {
  position: relative; display: grid; place-items: center; padding: 48px 32px; min-height: 420px;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, #fffaf0, var(--wall-2));
  overflow: hidden;
}
.pm__stage::after { content: ''; position: absolute; left: 15%; right: 15%; bottom: 36px; height: 18px; border-radius: 50%; background: rgba(60, 40, 20, .18); filter: blur(10px); }
.pm__stage img { position: relative; z-index: 1; max-height: min(64vh, calc(100dvh - 128px)); max-width: 100%; object-fit: contain; filter: drop-shadow(10px 22px 18px rgba(60, 40, 20, .25)); transition: transform .5s; cursor: zoom-in; }
.pm__stage.is-zoom img { transform: scale(1.6); cursor: zoom-out; }
.pm__info { padding: 40px 36px 32px; overflow-y: auto; }
.eyebrow { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.pm__name { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.02; }
.pm__color { margin: 8px 0 0; color: var(--ink-2); }
.pm__price { margin: 16px 0 0; font-size: 22px; font-weight: 700; letter-spacing: .01em; }
.pm__desc { margin: 14px 0 0; color: var(--ink-2); line-height: 1.6; }
.pm__sizes { margin-top: 24px; }
.pm__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pm__err { font-size: 12.5px; color: var(--accent); font-weight: 600; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.size {
  min-width: 52px; height: 44px; padding: 0 14px; border-radius: 10px;
  border: 1.5px solid var(--line); font-weight: 600; font-size: 14px;
  transition: border-color .2s, background .2s, color .2s;
}
.size:hover { border-color: var(--ink); }
.size[aria-checked="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pm__buy { display: flex; gap: 12px; margin-top: 24px; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; height: 52px; }
.qty button { width: 42px; height: 100%; font-size: 18px; border-radius: 12px; }
.qty button:hover { background: rgba(27, 23, 18, .06); }
.qty output { min-width: 26px; text-align: center; font-weight: 700; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none;
  transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:active { transform: scale(.98); }
.btn--dark { background: var(--ink); color: var(--paper); flex: 1; box-shadow: 0 10px 22px -10px rgba(27, 23, 18, .6); }
.btn--dark:hover { background: #000; }
.btn--ghost { border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--block { width: 100%; }
.pm__perks { list-style: none; margin: 26px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 13px; color: var(--ink-2); }
.pm__perks li { display: flex; gap: 10px; align-items: center; }
.pm__perks li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- bag drawer ---------- */
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(430px, 100%);
  display: flex; flex-direction: column; background: var(--paper); box-shadow: var(--shadow);
  animation: slidein .45s cubic-bezier(.2, 1, .3, 1) both;
}
@keyframes slidein { from { transform: translateX(100%); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 14px 24px; }
.drawer__head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 32px; }
.ship { margin: 0 24px 6px; font-size: 13px; color: var(--ink-2); }
.ship__bar { height: 5px; margin-top: 8px; border-radius: 3px; background: rgba(27, 23, 18, .08); overflow: hidden; }
.ship__bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .5s; }
.lines { list-style: none; margin: 0; padding: 8px 24px; flex: 1; overflow-y: auto; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); animation: fade .3s; }
.line__img { width: 76px; height: 92px; border-radius: 10px; background: radial-gradient(circle at 50% 35%, #fffaf0, var(--wall-2)); display: grid; place-items: center; padding: 6px; }
.line__img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.line__name { margin: 2px 0 0; font-weight: 700; font-size: 14px; line-height: 1.3; }
.line__meta { margin: 4px 0 10px; font-size: 12.5px; color: var(--muted); }
.line .qty { height: 36px; border-radius: 9px; width: max-content; }
.line .qty button { width: 32px; font-size: 16px; border-radius: 9px; }
.line__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.line__price { font-weight: 700; font-size: 14px; white-space: nowrap; }
.line__rm { font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.line__rm:hover { color: var(--accent); }
.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--ink-2); padding: 24px; text-align: center; }
.empty img { opacity: .35; }
.empty p { margin: 0; font-family: var(--serif); font-size: 24px; color: var(--ink); }
.drawer__foot { padding: 18px 24px max(22px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.totals { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.totals strong { font-size: 20px; }
.muted { margin: 6px 0 16px; font-size: 12.5px; color: var(--muted); }

/* ---------- demo notice ---------- */
.notice {
  position: relative; width: min(460px, 100%); padding: 34px 30px 28px; text-align: center;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
  animation: pop .45s cubic-bezier(.2, 1.2, .4, 1) both;
  display: flex; flex-direction: column; align-items: center;
}
.notice h2 { margin: 14px 0 8px; font-family: var(--serif); font-weight: 400; font-size: 32px; }
.notice p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.notice__actions { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 22px; }
.notice__actions .btn { flex: none; }

/* ---------- toast + fly-to-bag ---------- */
.toast {
  position: fixed; left: 50%; top: 76px; z-index: 80; transform: translate(-50%, -20px);
  padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-size: 13.5px; font-weight: 600; white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s cubic-bezier(.3, 1.4, .5, 1);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.fly { position: fixed; z-index: 90; pointer-events: none; object-fit: contain; transition: transform .75s cubic-bezier(.6, -.2, .7, 1), opacity .75s; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  :root { --floor-h: 15vh; --k: .09; }
  .brand .wordmark { font-size: 13px; }
  .fixture { margin-top: 31vh; }
  .wall__track { justify-content: flex-start; }
  .credit { bottom: auto; top: calc(max(14px, env(safe-area-inset-top)) + 54px); right: 16px; color: var(--ink-2); }
  .hint { bottom: calc(var(--floor-h) + 14px); }
  .walk { display: none; }
  .dock button { padding: 9px 12px; font-size: 12.5px; }
  .wall__sign { top: 13vh; }
  .modal { padding: 0; align-items: end; }
  .pm { grid-template-columns: 1fr; max-height: 94dvh; border-radius: var(--radius) var(--radius) 0 0; overflow-y: auto; animation-name: rise; }
  @keyframes rise { from { transform: translateY(40px); opacity: 0; } }
  .pm__stage { min-height: 0; height: 40vh; padding: 28px 20px; }
  .pm__stage img { max-height: calc(40vh - 56px); }
  .pm__info { padding: 22px 20px max(24px, env(safe-area-inset-bottom)); overflow: visible; }
  .notice { margin: 0 16px 16px; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .wall__sign { top: 64px; }
  .wall__sign img { display: none; }
  .dock button { padding: 7px 14px; }
}

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