/* Ridgetop Volleyball Club team store: "Bump, Set, Connect!"
   The club's own motto, played as the store. The RVBC splash is the point of contact. */

:root {
  --royal: #0033a1;
  --royal-2: #1748c4;
  --royal-3: #3a6af0;
  --deep: #001a5c;
  --night: #000e38;
  --red: #cf102d;
  --red-2: #e21b3a;
  --red-deep: #a60b24;
  --paper: #f2f4f9;
  --white: #fff;
  --line: #d9dfeb;
  --ink: #0a1433;
  --ink-2: #26304f;
  --muted: #56617f;
  --hh: 64px;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --display: 'Saira', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Saira', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pop: cubic-bezier(.3, 1.45, .5, 1);
  color-scheme: light;
}
@media (max-width: 767px) { :root { --hh: 58px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hh) + 12px); }
html.lock { overflow: hidden; }
body { margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--paper); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red-2); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.nw { white-space: nowrap; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 10px; }
main:focus { outline: none; }

/* ---------- shared bits ---------- */
.kicker { margin: 0 0 8px; font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ''; width: 22px; height: 3px; background: currentColor; transform: skewX(-24deg); }
.disp { font-family: var(--display); font-stretch: 125%; font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: .92; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 4px; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transform: skewX(-8deg); transition: background .18s, color .18s, transform .18s var(--ease); white-space: nowrap; }
.btn > * { transform: skewX(8deg); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); transform: skewX(-8deg) translateY(-2px); }
.btn-line { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); }
.btn-line:hover { background: #fff; color: var(--royal); }
.btn-ghost-dark { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); min-height: 48px; padding: 0 20px; font-size: 14px; }
.btn-ghost-dark:hover { background: var(--ink); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--royal); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: skewX(-8deg); }
.btn.busy { pointer-events: none; opacity: .75; }
.chip { min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: 4px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: border-color .15s, background .15s, color .15s; }
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[disabled], .chip.na { color: #9aa3ba; background: #f5f6fa; border-style: dashed; text-decoration: line-through; cursor: not-allowed; }
.chip[disabled]:hover { border-color: var(--line); }
.err { color: var(--red-deep); font-weight: 600; font-size: 14px; margin: 10px 0 0; }
.note { color: var(--muted); font-size: 14px; }
.retry { text-decoration: underline; font-weight: 700; min-height: 44px; padding: 0 6px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; height: var(--hh); display: flex; align-items: center; gap: 24px; padding: 0 var(--gut); background: var(--deep); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-height: 44px; flex: none; }
.brand-mark { width: 62px; height: 42px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; flex: 1; min-width: 0; overflow: hidden; }
.nav a, .nav button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-family: var(--display); font-stretch: 100%; font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: rgba(255, 255, 255, .86); white-space: nowrap; border-radius: 4px; }
.nav a:hover, .nav button:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-colls { display: contents; }
@media (max-width: 1279px) { .nav-c { display: none !important; } }
.tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.tool { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 4px; color: #fff; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.tool:hover { background: rgba(255, 255, 255, .1); }
.tool svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; flex: none; }
.bag-btn { padding-right: 16px; }
.count { position: relative; display: grid; place-items: center; width: 40px; height: 27px; margin-left: -2px; }
.count svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--red); stroke: none; transition: transform .3s var(--pop); }
.count b { position: relative; font-family: var(--display); font-stretch: 112%; font-weight: 900; font-size: 13px; color: #fff; line-height: 1; }
.count.zero svg { fill: rgba(255, 255, 255, .18); }
.count.hit svg { animation: count-hit .55s var(--pop); }
.count.hit b { animation: count-num .45s var(--pop); }
@keyframes count-hit { 0% { transform: scale(.4) rotate(-30deg); } 60% { transform: scale(1.35) rotate(8deg); } 100% { transform: none; } }
@keyframes count-num { 0% { transform: translateY(-14px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@media (max-width: 1023px) { .nav { display: none; } }
@media (max-width: 767px) {
  .top { gap: 8px; }
  .brand-mark { width: 54px; height: 37px; }
  .tool-t { display: none; }
  .tool { padding: 0 10px; }
  .bag-btn { padding-right: 8px; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(48% 62% at 70% 50%, #0a2c8c 0%, #061d63 42%, #03113f 72%, #010a2b 100%); min-height: min(calc(100svh - var(--hh)), 900px); display: grid; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.mega { position: absolute; width: 132%; max-width: 1900px; aspect-ratio: 5000 / 3397; left: 66%; top: 50%; translate: -50% -50%; fill: #0d2f93; opacity: .62; rotate: 9deg; transform: translate3d(calc(var(--px, 0) * -22px), calc(var(--py, 0) * -14px), 0); transition: transform .8s var(--ease); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(16px, 3vw, 48px); width: 100%; max-width: var(--max); margin: 0 auto; padding: clamp(36px, 6vh, 80px) var(--gut) clamp(56px, 9vh, 110px); }
.hero-copy { container-type: inline-size; min-width: 0; }
.eyebrow { margin: 0 0 18px; font-family: var(--display); font-stretch: 85%; font-weight: 700; font-size: 15px; letter-spacing: .16em; text-transform: uppercase; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.eyebrow span { display: inline-flex; align-items: center; gap: 12px; color: #9fb7ff; }
.eyebrow span::before { content: ''; width: 18px; height: 3px; background: var(--red); transform: skewX(-24deg); }
.motto { margin: 0; font-family: var(--display); font-stretch: 125%; font-style: italic; font-weight: 900; text-transform: uppercase; line-height: .86; letter-spacing: -.012em; }
.motto .w { display: block; font-size: 15.6cqi; white-space: nowrap; }
.motto .w1, .motto .w2 { color: transparent; -webkit-text-stroke: max(2px, .028em) #fff; paint-order: stroke fill; }
.motto .w3 { color: #fff; text-shadow: .045em .05em 0 var(--red); }
.where { margin: 22px 0 0; font-family: var(--display); font-stretch: 100%; font-weight: 600; font-size: 17px; letter-spacing: .04em; color: #c9d6ff; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-logo { position: relative; width: 100%; max-width: 760px; justify-self: center; aspect-ratio: 5000 / 3397; transform: translate3d(calc(var(--px, 0) * 12px), calc(var(--py, 0) * 9px), 0); transition: transform .6s var(--ease); }
.lg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lg-splash { fill: var(--royal); filter: drop-shadow(0 0 1.5px rgba(150, 180, 255, .7)) drop-shadow(0 18px 40px rgba(0, 8, 40, .5)); }
.lg-ball, .lg-letters, .lg-flag { pointer-events: none; }
.lg[hidden] { display: none; }
/* The club's flag wordmark sits across the splash where the RVBC letters were. */
.lg-flag { inset: auto 0; top: 35%; height: auto; }
.ring { position: absolute; left: 48.16%; top: 52.1%; width: 40.4%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 5px solid rgba(255, 255, 255, .9); opacity: 0; pointer-events: none; }
.shards { position: absolute; inset: 0; pointer-events: none; }
.shard { position: absolute; width: var(--s); height: var(--s); background: var(--c, #fff); clip-path: var(--k, polygon(50% 0, 100% 78%, 12% 100%)); rotate: var(--r); opacity: var(--o, .9); }
.hero-edge { position: absolute; z-index: 3; left: 0; bottom: -1px; width: 100%; height: 46px; fill: var(--paper); pointer-events: none; transform-origin: 50% 100%; }
@media (max-width: 767px) { .hero-edge { height: 26px; } }
.flyball { position: absolute; left: 0; top: 0; width: 64px; height: 64px; z-index: 5; pointer-events: none; opacity: 0; will-change: transform; }
.flyball svg { width: 100%; height: 100%; display: block; }

@media (max-width: 1023px) {
  .hero { min-height: auto; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 28px; padding-bottom: 64px; }
  .hero-logo { order: -1; max-width: 560px; width: 92%; }
  .hero-copy { max-width: 620px; justify-self: center; width: 100%; }
  .hero { background: radial-gradient(80% 42% at 50% 24%, #0a2c8c 0%, #061d63 45%, #03113f 75%, #010a2b 100%); }
  .mega { width: 200%; left: 50%; top: 27%; }
  .hero-logo { width: 92%; }
}
@media (max-width: 767px) {
  .hero-in { padding-top: 18px; padding-bottom: 52px; }
  .hero-logo { width: 100%; }
  .eyebrow { font-size: 13px; margin-bottom: 14px; letter-spacing: .13em; }
  .where { margin-top: 16px; font-size: 15px; }
  .ctas { margin-top: 22px; gap: 10px; }
  .ctas .btn { flex: 1 1 100%; }
  .hero-logo { width: 100%; }
}

/* ---------- intro: bump, set, connect ---------- */
html.intro .motto .w, html.intro .lg, html.intro .shard, html.intro .mega, html.intro .eyebrow, html.intro .where, html.intro .ctas { opacity: 0; }
/* If the script never runs, show the hero at rest after a moment. */
html.intro:not(.go) .motto .w, html.intro:not(.go) .lg, html.intro:not(.go) .shard, html.intro:not(.go) .mega, html.intro:not(.go) .eyebrow, html.intro:not(.go) .where, html.intro:not(.go) .ctas { animation: rt-failsafe .3s 3s both; }
@keyframes rt-failsafe { to { opacity: 1; } }
html.go .motto .w1 { animation: rt-slam .34s var(--pop) .1s both; }
html.go .motto .w2 { animation: rt-slam .34s var(--pop) .78s both; }
html.go .motto .w3 { animation: rt-slam-big .42s var(--pop) 1.16s both; }
html.go .lg-splash { animation: rt-burst .62s cubic-bezier(.15, .9, .3, 1.25) 1.14s both; }
html.go .lg-ball { animation: rt-show .1s linear 1.12s both; }
html.go .lg-letters, html.go .lg-flag { animation: rt-stamp .34s var(--pop) 1.2s both; }
html.go .mega { animation: rt-mega 1s var(--ease) 1.14s both; }
html.go .ring { animation: rt-ring .7s cubic-bezier(.1, .7, .3, 1) 1.14s forwards; }
html.go .shard { animation: rt-shard .8s cubic-bezier(.08, .8, .25, 1) calc(1.14s + var(--d, 0s)) both; }
html.go .hero-logo { animation: rt-shake .34s linear 1.16s; }
html.go .hero-edge { animation: rt-edge .5s var(--pop) 1.16s both; }
@keyframes rt-edge { 0% { transform: scaleY(0); } 100% { transform: none; } }
html.go .eyebrow { animation: rt-rise .5s var(--ease) 1.42s both; }
html.go .where { animation: rt-rise .5s var(--ease) 1.52s both; }
html.go .ctas { animation: rt-rise .5s var(--ease) 1.6s both; }
@keyframes rt-show { from { opacity: 0; } to { opacity: 1; } }
@keyframes rt-slam { 0% { opacity: 0; transform: translateX(-.25em) scale(1.35); } 100% { opacity: 1; transform: none; } }
@keyframes rt-slam-big { 0% { opacity: 0; transform: scale(1.6) translateY(-.1em); } 100% { opacity: 1; transform: none; } }
@keyframes rt-burst { 0% { opacity: 0; transform: scale(.18) rotate(-28deg); } 30% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes rt-stamp { 0% { opacity: 0; transform: scale(1.55); } 100% { opacity: 1; transform: none; } }
@keyframes rt-mega { 0% { opacity: 0; transform: scale(.4) rotate(-14deg); } 100% { opacity: .32; transform: none; } }
@keyframes rt-ring { 0% { opacity: .95; transform: scale(.9); } 100% { opacity: 0; transform: scale(3.4); } }
@keyframes rt-shard { 0% { opacity: 0; transform: translate(var(--fx), var(--fy)) scale(.3); } 25% { opacity: var(--o, .9); } 100% { opacity: var(--o, .9); transform: none; } }
@keyframes rt-shake { 0% { transform: none; } 20% { transform: translate(7px, -5px); } 40% { transform: translate(-6px, 4px); } 60% { transform: translate(4px, 2px); } 80% { transform: translate(-2px, -1px); } 100% { transform: none; } }
@keyframes rt-rise { 0% { opacity: 0; transform: translateY(16px); } 100% { opacity: 1; transform: none; } }

/* ---------- build your set ---------- */
.set { position: relative; background: var(--white); padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); }
.set-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.set-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); align-items: end; gap: 12px 40px; margin-bottom: 36px; }
.set-lede { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.set-head h2 { margin: 0; font-family: var(--display); font-stretch: 125%; font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(36px, 5.6vw, 76px); line-height: .9; letter-spacing: -.01em; color: var(--royal); }
.set-body { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(20px, 3vw, 44px); align-items: start; min-height: 560px; }
.loading-note { grid-column: 1 / -1; color: var(--muted); }

.stage { position: sticky; top: calc(var(--hh) + 16px); isolation: isolate; padding: 22px 0 26px; border-radius: 8px; background: radial-gradient(80% 70% at 50% 50%, #0a2c8c 0%, #041a5a 55%, #020f3a 100%); overflow: hidden; }
.stage-splash { position: absolute; z-index: -1; left: 50%; top: 52%; width: 122%; aspect-ratio: 5000 / 3397; translate: -50% -50%; fill: var(--royal); filter: drop-shadow(0 0 1px rgba(255, 255, 255, .25)); }
.stage .boom { position: absolute; left: 50%; top: 50%; width: 120%; aspect-ratio: 5000 / 3397; fill: var(--red); opacity: 0; pointer-events: none; transform: translate(-50%, -50%); }
.stage .flash { position: absolute; z-index: 4; left: 50%; top: 50%; width: 220px; aspect-ratio: 1; border-radius: 50%; border: 6px solid #fff; opacity: 0; pointer-events: none; transform: translate(-50%, -50%); }
.stage .dropball { position: absolute; z-index: 5; left: 0; top: 0; width: 64px; height: 64px; opacity: 0; pointer-events: none; }
.stage .word { position: absolute; z-index: 6; left: 50%; top: 50%; padding: .08em .42em .1em .32em; background: var(--red); color: #fff; font-family: var(--display); font-stretch: 125%; font-style: italic; font-weight: 900; font-size: clamp(30px, 4.4vw, 54px); text-transform: uppercase; line-height: 1; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, -50%) skewX(-8deg); box-shadow: 0 12px 30px rgba(0, 6, 30, .45); }
.rail-box { position: relative; }
.rail-box + .rail-box { margin-top: 6px; }
.rail-tag { position: absolute; z-index: 3; left: 16px; top: 4px; pointer-events: none; }
.rail-tag b { display: inline-block; font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #fff; background: rgba(0, 10, 40, .55); padding: 5px 9px 4px; border-radius: 3px; }
.rail { display: flex; gap: 16px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px calc(50% - var(--iw) / 2); overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail-box.head { --iw: clamp(118px, 13vw, 168px); }
.rail-box.topp { --iw: clamp(190px, 22vw, 290px); }
.rail-box.bottom { --iw: clamp(156px, 17.5vw, 230px); }
.rail-item { flex: 0 0 var(--iw); scroll-snap-align: center; aspect-ratio: 1; background: #fff; border-radius: 50%; box-shadow: 0 14px 30px rgba(0, 6, 30, .45); overflow: hidden; display: grid; place-items: center; transition: opacity .2s, transform .25s var(--ease); position: relative; }
.rail-box.topp .rail-item, .rail-box.bottom .rail-item { border-radius: 14px; }
.rail-item img { width: 86%; height: 86%; object-fit: contain; }
.rail-box.head .rail-item img { width: 78%; height: 78%; }
.rail-item.far { opacity: .45; transform: scale(.82); }
@media (pointer: coarse) { .rail-item:not(.on) { pointer-events: none; } }
.fresh .rail-box:not(.head) .rail-item img { animation: rail-in .45s var(--pop) both; }
@keyframes rail-in { 0% { opacity: 0; transform: translateY(18px) scale(.86); } 100% { opacity: 1; transform: none; } }
.rail-item.on::after { content: ''; position: absolute; left: 50%; bottom: 8px; width: 26px; height: 4px; margin-left: -13px; background: var(--red); border-radius: 2px; transform: skewX(-24deg); }
.rail-box.off .rail-item { opacity: .3; }
.rail-box.off .rail-item img { filter: grayscale(1); }
.rail-box.off .rail-item.on::after { background: #c4cbdb; }
.rail-arrow { position: absolute; z-index: 3; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--royal); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 6, 30, .4); }
.rail-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; }
.rail-arrow.prev { left: 12px; }
.rail-arrow.next { right: 12px; }
.rail-arrow:hover { background: var(--red); color: #fff; }
.rail-arrow[disabled] { opacity: 0; pointer-events: none; }

.panel { display: grid; gap: 26px; }
.p-step > h3 { margin: 0 0 12px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-family: var(--display); font-stretch: 112%; font-style: italic; font-weight: 900; font-size: 21px; text-transform: uppercase; color: var(--ink); }
.p-step > h3 small { font-style: normal; font-size: 12px; letter-spacing: .14em; color: var(--red); font-stretch: 85%; }
.p-step > h3 span { font-style: normal; font-stretch: 100%; font-weight: 600; font-size: 14px; text-transform: none; color: var(--muted); }
.fits { display: flex; flex-wrap: wrap; gap: 8px; }
.fits .chip { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .03em; padding: 0 18px; min-height: 48px; text-transform: uppercase; }
.pieces { display: grid; gap: 10px; }
.piece { border: 1.5px solid var(--line); border-radius: 6px; padding: 6px 14px 12px 6px; background: #fff; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 6px; }
.piece.off { background: var(--paper); padding-bottom: 6px; }
.piece.off .piece-opts { display: none; }
.piece.off .piece-name, .piece.off .piece-price { color: var(--muted); }
.piece.need { border-color: var(--red); box-shadow: 0 0 0 2px rgba(207, 16, 45, .15); }
.piece-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding-top: 8px; min-height: 44px; }
.piece-opts { grid-column: 2; display: grid; gap: 6px; padding-top: 8px; }
.piece-kind { display: block; font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.piece-name { margin: 0; font-weight: 700; font-size: 16px; line-height: 1.25; }
.piece-name button { text-align: left; text-decoration: underline; text-decoration-color: #c4cbdb; text-underline-offset: 3px; min-height: 44px; display: inline-block; padding: 11px 0 9px; line-height: 1.25; }
.piece-top { padding-top: 2px; }
.piece-kind { margin-bottom: -6px; }
.piece-name button:hover { text-decoration-color: var(--ink); }
.piece-price { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 17px; }
.toggle { display: grid; place-items: center; width: 52px; min-height: 52px; }
.toggle i { width: 40px; height: 24px; border-radius: 12px; background: #c4cbdb; position: relative; transition: background .2s; display: block; }
.toggle i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.toggle[aria-pressed="true"] i { background: var(--royal); }
.toggle[aria-pressed="true"] i::after { transform: translateX(16px); }
.opt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.opt-label { width: 100%; margin: 4px 0 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.opt-label em { font-style: normal; color: var(--ink); }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 10px; border-top: 2px solid var(--ink); margin-bottom: 14px; }
.total span { font-weight: 600; color: var(--muted); }
.total strong { font-family: var(--display); font-stretch: 125%; font-style: italic; font-weight: 900; font-size: 32px; line-height: 1; }
.add-set { width: 100%; min-height: 60px; font-size: 17px; }
@media (min-width: 1024px) {
  .p-step.connect { position: sticky; bottom: 0; z-index: 2; background: #fff; padding: 12px 0 16px; border-top: 2px solid var(--ink); box-shadow: 0 -16px 24px -14px rgba(0, 18, 70, .16); display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px 22px; }
  .p-step.connect > h3, .p-step.connect > .err { grid-column: 1 / -1; margin-bottom: 0; }
  .p-step.connect .total { flex-direction: column; align-items: flex-start; gap: 2px; border-top: 0; padding-top: 0; margin: 0; }
  .p-step.connect .total strong { font-size: 28px; }
}
.p-step .err { margin: -4px 0 12px; }

/* swatches */
.sw { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.sw i { width: 30px; height: 30px; border-radius: 50%; background: var(--c, #ccc); box-shadow: inset 0 0 0 1px rgba(10, 20, 51, .22); display: block; }
.sw[aria-pressed="true"]::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; border: 2.5px solid var(--ink); }
.sw[disabled] { cursor: not-allowed; }
.sw[disabled] i { opacity: .35; }
.sw[disabled]::before { content: ''; position: absolute; width: 32px; height: 2px; background: var(--ink-2); rotate: -45deg; z-index: 1; }
.st { position: relative; width: 48px; height: 48px; border-radius: 50%; padding: 2px; display: grid; place-items: center; }
.st img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.st[aria-pressed="true"] img { box-shadow: 0 0 0 2.5px var(--ink); }

@media (max-width: 1023px) {
  .set-head { grid-template-columns: minmax(0, 1fr); }
  .set-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .stage { position: relative; top: 0; }
  .rail-box.head { --iw: 150px; }
  .rail-box.topp { --iw: 260px; }
  .rail-box.bottom { --iw: 210px; }
}
@media (max-width: 1023px) {
  .panel { display: contents; }
  .panel > .p-step:first-child { order: -1; }
  .set-body { gap: 22px; }
}
@media (max-width: 767px) {
  .set-head { margin-bottom: 22px; }
  .set-lede { font-size: 15px; }
  .stage { margin: 0 calc(var(--gut) * -1); border-radius: 0; }
  .rail-box.head { --iw: 112px; }
  .rail-box.topp { --iw: 200px; }
  .rail-box.bottom { --iw: 160px; }
  .rail { gap: 12px; }
  .rail-arrow.prev { left: 8px; }
  .rail-arrow.next { right: 8px; }
  .panel { gap: 22px; }
}

/* sticky set bar on phones */
.setbar { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--deep); color: #fff; display: flex; align-items: center; gap: 12px; transform: translateY(110%); transition: transform .28s var(--ease); }
.setbar.show { transform: none; }
.setbar > div > span { font-size: 13px; color: #c9d6ff; line-height: 1.2; }
.setbar strong { display: block; font-family: var(--display); font-stretch: 112%; font-weight: 900; font-size: 20px; color: #fff; }
.setbar .btn { margin-left: auto; min-height: 48px; padding: 0 18px; font-size: 14px; }
@media (min-width: 1024px) { .setbar { display: none; } }

/* ---------- shop ---------- */
.shop { background: var(--paper); padding: clamp(56px, 7vw, 96px) 0 18px; }
.shop-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.shop-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.shop-head h2, .shelf-head h2, .view-head h1 { margin: 0; font-family: var(--display); font-stretch: 125%; font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(34px, 5.4vw, 72px); line-height: .9; letter-spacing: -.01em; color: var(--royal); }
.colls { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(158px, 1fr); gap: 14px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: none; padding: 4px 2px 18px; margin: 0 -2px; overscroll-behavior-x: contain; }
.colls::-webkit-scrollbar { display: none; }
.coll { scroll-snap-align: start; position: relative; display: grid; grid-template-rows: auto auto; text-decoration: none; color: var(--ink); background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 0 var(--line); transition: transform .22s var(--ease), box-shadow .22s; min-width: 0; }
.coll:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0, 18, 70, .14); }
.coll-art { position: relative; aspect-ratio: 1 / .86; display: grid; place-items: center; overflow: hidden; background: var(--royal); isolation: isolate; }
.coll-art svg { position: absolute; z-index: -1; width: 150%; aspect-ratio: 5000 / 3397; left: 50%; top: 50%; translate: -50% -50%; fill: var(--royal-2); transition: transform .5s var(--ease); }
.coll:nth-child(3n+2) .coll-art { background: var(--red); }
.coll:nth-child(3n+2) .coll-art svg { fill: #e43350; }
.coll:nth-child(3n) .coll-art { background: var(--deep); }
.coll:nth-child(3n) .coll-art svg { fill: #0d2f86; }
.coll:hover .coll-art svg { transform: scale(1.12) rotate(6deg); }
.coll-art .plate { width: 62%; aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: 0 10px 24px rgba(0, 8, 40, .35); }
.coll-art .plate img { width: 82%; height: 82%; object-fit: contain; }
.coll-t { padding: 12px 14px 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.coll-t b { font-family: var(--display); font-stretch: 112%; font-style: italic; font-weight: 900; font-size: 18px; text-transform: uppercase; line-height: 1.05; }
.coll-t span { font-size: 13px; color: var(--muted); white-space: nowrap; }
@media (max-width: 767px) { .colls { grid-auto-columns: 46%; gap: 10px; margin-right: calc(var(--gut) * -1); padding-right: var(--gut); } .coll-t b { font-size: 15px; } }

.shelf { position: relative; overflow: hidden; isolation: isolate; padding: clamp(40px, 6vw, 80px) 0; }
.shelf-splash { position: absolute; z-index: -1; right: -14%; top: -30%; width: min(1000px, 110%); aspect-ratio: 5000 / 3397; fill: #1546c2; opacity: .45; rotate: 14deg; pointer-events: none; }
.tone-deep .shelf-splash { fill: #0b2878; opacity: .6; rotate: -10deg; left: -18%; right: auto; }
.shelf.tone-paper { background: var(--paper); }
.shelf.tone-white { background: #fff; }
.shelf.tone-royal { background: var(--royal); color: #fff; }
.shelf.tone-deep { background: var(--deep); color: #fff; }
.shelf-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.shelf-head { display: flex; align-items: end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 26px; }
.shelf-head .kicker { margin-bottom: 10px; }
.tone-royal .shelf-head h2, .tone-deep .shelf-head h2 { color: #fff; }
.tone-royal .kicker, .tone-deep .kicker { color: #ff8396; }
.see-all { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--display); font-stretch: 100%; font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid currentColor; }
.see-all svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
@media (max-width: 1023px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; } }

/* tiles */
.tile { position: relative; min-width: 0; display: flex; flex-direction: column; }
.tile[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--d, 0s); }
.tile[data-reveal].in { opacity: 1; transform: none; }
html.still .tile[data-reveal] { opacity: 1; transform: none; transition: none; }
.tile-hit { display: flex; flex-direction: column; text-align: left; width: 100%; color: inherit; }
.tile-plate { position: relative; aspect-ratio: 1; background: #fff; border-radius: 6px; overflow: hidden; display: grid; place-items: center; box-shadow: 0 1px 0 rgba(10, 20, 51, .08); transition: box-shadow .22s, transform .22s var(--ease); }
.tile-plate img { width: 90%; height: 90%; object-fit: contain; transition: transform .35s var(--ease); }
.tile-hit:hover .tile-plate { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(0, 18, 70, .16); }
.tile-hit:hover .tile-plate img { transform: scale(1.04); }
.hitmark { position: absolute; right: 6px; top: 8px; width: 96px; aspect-ratio: 5000 / 3397; display: grid; place-items: center; opacity: 0; transform: scale(.3) rotate(-30deg); transition: opacity .2s, transform .3s var(--pop); }
.hitmark svg { position: absolute; inset: 0; fill: var(--red); }
.hitmark b { position: relative; top: 2%; left: -3%; font-family: var(--display); font-stretch: 112%; font-style: italic; font-weight: 900; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: #fff; }
.tile-hit:hover .hitmark, .tile-hit:focus-visible .hitmark { opacity: 1; transform: none; }
.tile .tag { position: absolute; left: 10px; top: 10px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; }
.tile.sold .tile-plate img { opacity: .55; }
.round .tile-plate { border-radius: 50%; }
.round .tile-plate img { width: 76%; height: 76%; }
.round .tile .tag { left: 50%; translate: -50% 0; top: 14px; }
.round .hitmark { right: 2%; top: 4%; }
.tile-info { padding: 12px 2px 0; display: grid; gap: 2px; }
.t-fit { font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 0; }
.tone-royal .t-fit, .tone-deep .t-fit { color: #ff8396; }
.t-name { margin: 0; font-weight: 600; font-size: 15px; line-height: 1.3; }
.t-price { margin: 2px 0 0; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 16px; }
.t-sw { display: flex; flex-wrap: wrap; gap: 0; margin: 6px -2px 0; }
.t-sw .st { width: 44px; height: 44px; }
.t-sw .st img { width: 34px; height: 34px; }
.tone-royal .st img, .tone-deep .st img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); }
.tone-royal .st[aria-pressed="true"] img, .tone-deep .st[aria-pressed="true"] img { box-shadow: 0 0 0 2.5px #fff; }
.t-more { font-size: 12px; color: var(--muted); align-self: center; padding-left: 4px; }
.tone-royal .t-more, .tone-deep .t-more { color: #c9d6ff; }
.shelf-more { margin-top: 26px; display: flex; justify-content: center; }
.tone-royal .btn-ghost-dark, .tone-deep .btn-ghost-dark { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.tone-royal .btn-ghost-dark:hover, .tone-deep .btn-ghost-dark:hover { background: #fff; color: var(--royal); }

/* collection view */
.view { background: var(--paper); min-height: 70vh; padding: 28px 0 80px; }
.view-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.crumb { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--royal); }
.crumb svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.view-head { display: flex; align-items: end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin: 6px 0 18px; }
.view-head p { margin: 0; color: var(--muted); font-weight: 600; }
.view-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; margin-bottom: 24px; }
.pills { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 2px; margin: 0 -2px; flex: 1 1 auto; min-width: 0; overscroll-behavior-x: contain; }
.pills::-webkit-scrollbar { display: none; }
.pills a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 22px; background: #fff; border: 1.5px solid var(--line); text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; }
.pills a sup { font-size: 11px; color: var(--muted); }
.pills a[aria-current="page"] { background: var(--royal); border-color: var(--royal); color: #fff; }
.pills a[aria-current="page"] sup { color: #c9d6ff; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.sort select { min-height: 44px; border: 1.5px solid var(--line); border-radius: 4px; background: #fff; padding: 0 12px; color: var(--ink); font-weight: 600; }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }
@media (max-width: 767px) { .pills { margin-right: calc(var(--gut) * -1); padding-right: var(--gut); flex-basis: 100%; } }

/* ---------- layers (dialogs) ---------- */
.layer { position: fixed; inset: 0; z-index: 50; }
.layer[hidden] { display: none; }
.scrim { position: absolute; inset: 0; background: rgba(0, 10, 40, .62); opacity: 0; transition: opacity .25s; }
.layer.open .scrim { opacity: 1; }

/* product view */
.pv-card { position: absolute; left: 50%; top: 50%; width: min(1120px, calc(100vw - 48px)); height: min(800px, calc(100vh - 48px)); translate: -50% -50%; background: #fff; border-radius: 8px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-rows: minmax(0, 1fr); overflow: hidden; opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .25s, transform .3s var(--ease); box-shadow: 0 30px 80px rgba(0, 8, 40, .45); }
.pv.open .pv-card { opacity: 1; transform: none; }
.pv-gallery { position: relative; background: #fff; display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; border-right: 1px solid var(--line); }
.pv-main { position: relative; display: grid; place-items: center; min-height: 0; padding: 28px; overflow: hidden; }
.pv-main img { width: 100%; height: 100%; max-height: 640px; object-fit: contain; }
.pv-thumbs { display: flex; gap: 8px; padding: 0 20px 20px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; }
.pv-thumbs::-webkit-scrollbar { display: none; }
.pv-thumbs button { flex: none; width: 64px; height: 64px; border-radius: 6px; border: 1.5px solid var(--line); background: #fff; padding: 4px; }
.pv-thumbs button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pv-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pv-info { overflow-y: auto; overflow-x: hidden; padding: 34px 34px 0; display: flex; flex-direction: column; overscroll-behavior: contain; }
.pv-info > h2, .pv-info > .t-fit { margin-right: 52px; }
.pv-info h2 { margin: 2px 0 6px; font-family: var(--display); font-stretch: 112%; font-style: italic; font-weight: 900; font-size: clamp(26px, 2.6vw, 34px); line-height: 1; text-transform: uppercase; color: var(--ink); }
.pv-price { margin: 4px 0 18px; font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 24px; }
.pv-price s { color: var(--muted); font-weight: 600; font-size: 18px; margin-right: 8px; }
.pv-opts { display: grid; gap: 16px; }
.pv-field { display: grid; gap: 6px; }
.pv-field > p { margin: 0; font-size: 14px; font-weight: 700; }
.pv-field > p em { font-style: normal; font-weight: 600; color: var(--muted); margin-left: 6px; }
.pv-field input, .pv-field select { min-height: 48px; border: 1.5px solid var(--line); border-radius: 4px; padding: 0 14px; background: #fff; font-size: 16px; width: 100%; }
.pv-field input:focus, .pv-field select:focus { border-color: var(--royal); outline: none; box-shadow: 0 0 0 3px rgba(0, 51, 161, .18); }
.pv-buy { position: sticky; bottom: 0; margin: 22px -34px 0; padding: 16px 34px 18px; background: #fff; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; z-index: 2; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 4px; height: 52px; flex: none; }
.qty button { width: 44px; height: 100%; font-size: 20px; font-weight: 700; }
.qty output { min-width: 26px; text-align: center; font-weight: 800; }
.add { position: relative; flex: 1; min-height: 56px; overflow: visible; }
.add.done { background: var(--royal); }
.add .burst { position: absolute; left: 50%; top: 50%; width: 190px; height: auto; aspect-ratio: 5000 / 3397; translate: -50% -50%; fill: #fff; opacity: 0; pointer-events: none; transform: skewX(8deg); }
.add.hit .burst { animation: add-burst .7s cubic-bezier(.15, .9, .3, 1.2); }
@keyframes add-burst { 0% { opacity: .6; transform: skewX(8deg) scale(.15) rotate(-30deg); } 45% { opacity: .32; } 100% { opacity: 0; transform: skewX(8deg) scale(1.25) rotate(10deg); } }
.add .mini { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; opacity: 0; pointer-events: none; transform: skewX(8deg); }
.add.hit .mini { animation: add-ball .3s cubic-bezier(.6, 0, .9, .5); }
@keyframes add-ball { 0% { opacity: 1; transform: skewX(8deg) translate(60px, -44px) rotate(0); } 90% { opacity: 1; } 100% { opacity: 0; transform: skewX(8deg) translate(0, 0) rotate(300deg) scale(.7); } }
.add svg.ok { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; }
.added { margin: 10px 0 0; font-weight: 700; font-size: 14px; color: var(--royal); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.added button { text-decoration: underline; min-height: 44px; font-weight: 800; }
.pv-desc { margin: 22px 0 8px; border-top: 1px solid var(--line); }
.pv-desc summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; font-weight: 800; cursor: pointer; list-style: none; }
.pv-desc summary::-webkit-details-marker { display: none; }
.pv-desc summary::after { content: '+'; font-size: 22px; font-weight: 600; }
.pv-desc[open] summary::after { content: '–'; }
.pv-desc .body { font-size: 14px; color: var(--ink-2); padding-bottom: 18px; overflow-x: auto; }
.pv-desc .body table { border-collapse: collapse; width: 100%; font-size: 13px; }
.pv-desc .body td { border: 1px solid var(--line); padding: 6px 8px !important; text-align: center; }
.pv-desc .body p { margin: 0 0 10px; }
.pack-items { display: grid; gap: 12px; }
.pack-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 10px; border: 1.5px solid var(--line); border-radius: 6px; }
.pack-item b { font-size: 14px; }
.pack-img { width: 64px; height: 64px; border-radius: 6px; background: #fff; display: grid; place-items: center; border: 1px solid var(--line); }
.pack-img img { width: 90%; height: 90%; object-fit: contain; }
.x { position: absolute; right: 12px; top: 12px; z-index: 6; width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0, 18, 70, .2); color: var(--ink); }
.x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.x:hover { background: var(--ink); color: #fff; }
.skel { background: linear-gradient(90deg, #eef1f7, #e3e8f2); border-radius: 6px; }
@media (max-width: 1023px) and (min-width: 768px) {
  .pv-card { width: calc(100vw - 40px); }
  .pv-info { padding: 28px 24px 0; }
  .pv-buy { margin: 22px -24px 0; padding: 14px 24px 16px; }
}
@media (max-width: 767px) {
  .pv-card { left: 0; top: 0; translate: none; width: 100%; height: 100%; max-height: none; border-radius: 0; display: block; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; transform: translateY(40px); }
  .pv-gallery { border-right: 0; display: block; }
  .pv-main { aspect-ratio: 1; padding: 18px; }
  .pv-main img { max-height: none; }
  .pv-thumbs { padding: 0 16px 6px; }
  .pv-info { overflow: visible; padding: 18px 16px 0; }
  .pv-buy { position: sticky; bottom: 0; margin: 20px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 20px rgba(0, 18, 70, .08); }
  .x { position: fixed; right: 10px; top: 10px; }
}

/* bag drawer */
.drawer-card { position: absolute; right: 0; top: 0; bottom: 0; width: min(460px, 100vw); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .32s var(--ease); box-shadow: -20px 0 60px rgba(0, 8, 40, .35); }
.drawer.open .drawer-card { transform: none; }
.bag-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 16px 24px; background: var(--deep); color: #fff; }
.bag-head h2 { margin: 0; font-family: var(--display); font-stretch: 125%; font-style: italic; font-weight: 900; font-size: 26px; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.bag-head .x { position: static; box-shadow: none; }
.bag-lines { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px 24px; overscroll-behavior: contain; }
.line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line.bad { background: #fff3f5; box-shadow: -24px 0 0 #fff3f5, 24px 0 0 #fff3f5; }
.line-img { width: 76px; height: 76px; border-radius: 6px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; overflow: hidden; }
.line-img img { width: 90%; height: 90%; object-fit: contain; }
.line h3 { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.25; }
.line p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.line .qty { height: 48px; margin-top: 8px; }
.line .qty button { width: 44px; font-size: 18px; }
.line-end { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 6px; }
.line-end strong { font-family: var(--display); font-stretch: 112%; font-weight: 800; }
.line-end button { font-size: 13px; font-weight: 700; text-decoration: underline; color: var(--muted); min-height: 44px; padding: 0 2px; }
.bag-foot { padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); border-top: 2px solid var(--ink); display: grid; gap: 12px; }
.bag-sum { display: flex; justify-content: space-between; align-items: baseline; }
.bag-sum span { font-weight: 700; }
.bag-sum strong { font-family: var(--display); font-stretch: 125%; font-style: italic; font-weight: 900; font-size: 28px; }
.bag-foot .note { margin: 0; }
.bag-foot .btn { width: 100%; min-height: 58px; font-size: 16px; }
.bag-empty { padding: 48px 8px; text-align: center; display: grid; justify-items: center; gap: 14px; }
.bag-empty svg { width: 180px; aspect-ratio: 5000 / 3397; }
.bag-empty p { margin: 0; font-weight: 600; color: var(--muted); }

/* finder (search + browse) */
.finder-card { position: absolute; left: 50%; top: 0; width: min(980px, 100vw); max-height: min(88vh, 900px); translate: -50% 0; background: var(--paper); border-radius: 0 0 8px 8px; display: flex; flex-direction: column; transform: translateY(-24px); opacity: 0; transition: transform .28s var(--ease), opacity .2s; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 8, 40, .45); }
.finder.open .finder-card { transform: none; opacity: 1; }
.finder-top { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 20px; background: var(--deep); }
.finder-top label { flex: 1; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 4px; padding: 0 14px; min-height: 52px; }
.finder-top label svg { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.finder-top input { flex: 1; min-width: 0; border: 0; outline: none; font-size: 17px; background: transparent; min-height: 50px; }
.finder-top .x { position: static; box-shadow: none; }
.finder-body { overflow-y: auto; overflow-x: hidden; padding: 20px; overscroll-behavior: contain; }
.finder-body h3 { margin: 0 0 12px; font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.finder-colls { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-bottom: 8px; }
.finder-colls a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 0 16px; background: #fff; border-radius: 4px; text-decoration: none; font-family: var(--display); font-stretch: 112%; font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 16px; border-left: 4px solid var(--royal); }
.finder-colls a span { font-style: normal; font-stretch: 100%; font-weight: 600; font-size: 13px; color: var(--muted); text-transform: none; }
.finder-colls a:hover { border-left-color: var(--red); }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px 12px; }
.res { display: grid; gap: 6px; text-align: left; min-width: 0; }
.res .tile-plate { aspect-ratio: 1; }
.res b { font-weight: 600; font-size: 14px; line-height: 1.25; }
.res span { font-family: var(--display); font-weight: 800; font-size: 14px; }
@media (max-width: 767px) {
  .finder-card { left: 0; translate: none; width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .finder-top { padding: 10px 10px 10px 12px; }
  .results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finder-colls { grid-template-columns: minmax(0, 1fr); }
}

/* toast */
.toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; translate: -50% 0; width: max-content; max-width: calc(100vw - 32px); background: var(--ink); color: #fff; border-radius: 6px; padding: 8px 8px 8px 18px; display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 15px; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .25s, transform .3s var(--ease); box-shadow: 0 16px 40px rgba(0, 8, 40, .4); }
.toast.show { opacity: 1; transform: none; pointer-events: auto; }
.toast button { min-height: 44px; padding: 0 14px; border-radius: 4px; background: var(--red); font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.toast span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767px) { .toast { bottom: calc(16px + env(safe-area-inset-bottom)); } body.has-setbar .toast { bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* ---------- footer ---------- */
.foot { background: var(--night); color: #fff; padding: clamp(56px, 8vw, 100px) 0 36px; position: relative; overflow: hidden; isolation: isolate; }
.foot-splash { position: absolute; z-index: -1; right: -12%; top: -18%; width: min(1100px, 120%); aspect-ratio: 5000 / 3397; fill: #0b2470; opacity: .55; rotate: -8deg; }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); display: grid; gap: 44px; }
.foot-word { width: min(560px, 100%); aspect-ratio: 5000 / 1671; fill: #fff; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 32px; }
.foot h3 { margin: 0 0 10px; font-family: var(--display); font-stretch: 85%; font-weight: 800; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #ff8396; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot li { color: #c9d6ff; font-size: 15px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: none; font-weight: 600; }
.foot a:hover { text-decoration: underline; }
.powered { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 26px; font-size: 13px; color: #c9d6ff; font-weight: 600; letter-spacing: .04em; }
.powered a { min-height: 44px; }
.powered img { width: 150px; height: auto; }
@media (max-width: 767px) { .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 22px; } }

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