/* MUSH LUV — storefront styles */
:root {
  --twilight: #140926;
  --plum: #220E3B;
  --magenta: #FF2A85;
  --uv: #9D4EDD;
  --coral: #FF6B35;
  --cyan: #00F5D4;
  --yellow: #FEE440;
  --white: #FFFFFF;
  --ink: #0B0514;
  --cream: #FFF4E0;
  --mist: #CDBFE6;
  --display: "Dela Gothic One", "Arial Black", "Hiragino Kaku Gothic ProN", "Yu Gothic", Impact, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --border: 2px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--twilight);
  color: var(--white);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
.sr-defs { position: absolute; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 8px 12px; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------- Ticker ---------- */
.ticker { background: var(--cyan); color: var(--ink); border-bottom: var(--border); overflow: hidden; height: 30px; display: flex; align-items: center; }
.ticker-track { display: flex; flex: none; white-space: nowrap; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; animation: ticker 36s linear infinite; will-change: transform; }
.ticker-track span { padding: 0 18px; display: inline-flex; align-items: center; gap: 18px; }
.ticker-track span::after { content: "♥"; color: var(--magenta); font-size: 13px; margin-left: 18px; }
@keyframes ticker { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  min-height: var(--nav-h); padding: 8px var(--gutter);
  background: rgba(20, 9, 38, .94);
  border-bottom: 2px solid var(--ink);
  box-shadow: 0 2px 0 rgba(255, 42, 133, .55);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { width: 38px; height: 36px; flex: none; transition: transform .2s; }
.brand:hover .brand-icon { transform: rotate(-8deg) scale(1.08); }
.brand-word { font-family: var(--display); font-size: 20px; letter-spacing: .02em; line-height: 1; }
.brand-kana { font-size: 10px; color: var(--cyan); letter-spacing: .1em; align-self: flex-end; padding-bottom: 2px; }
.nav-links { display: flex; justify-content: center; gap: clamp(12px, 2.4vw, 32px); }
.nav-links a { text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .14em; padding: 8px 2px; position: relative; white-space: nowrap; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .18s ease-out; }
.nav-links a:hover::after, .nav-links a.is-on::after { transform: scaleX(1); }
.bag-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--ink); border: var(--border); box-shadow: 3px 3px 0 var(--magenta);
  padding: 7px 12px; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  transition: transform .12s, box-shadow .12s;
}
.bag-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--cyan); }
.bag-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--magenta); }
.bag-count { background: var(--ink); color: var(--yellow); min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 11px; font-size: 11px; letter-spacing: 0; }
.bag-count.bump { animation: bump .35s ease-out; }
@keyframes bump { 40% { transform: scale(1.45); background: var(--magenta); color: #fff; } }

@media (max-width: 820px) {
  .nav { grid-template-columns: 1fr auto; row-gap: 2px; padding-bottom: 0; }
  .brand { grid-column: 1; grid-row: 1; }
  .bag-btn { grid-column: 2; grid-row: 1; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; gap: 20px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding: 10px 2px 12px; font-size: 11px; }
  :root { --nav-h: 96px; }
  .brand-kana { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: var(--border); box-shadow: 4px 4px 0 var(--ink);
  padding: 13px 20px; min-height: 46px;
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-decoration: none; color: var(--ink);
  background: var(--white);
  transition: transform .12s ease-out, box-shadow .12s ease-out, background-color .12s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-yellow { background: var(--yellow); }
.btn-cyan { background: var(--cyan); }
.btn-ink { background: var(--ink); color: var(--white); box-shadow: 4px 4px 0 var(--magenta); }
.btn-ink:hover { box-shadow: 6px 6px 0 var(--magenta); background: #1d0f33; }
.btn-ink:active { box-shadow: 1px 1px 0 var(--magenta); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: var(--border); isolation: isolate; }
.sky {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, #140926 0%, #2A0F52 18%, #6A2BB8 40%, #C63AA6 58%, #FF2A85 72%, #FF6B35 90%, #FFB25E 100%);
}
.sun { position: absolute; left: 50%; bottom: -34vmin; width: 90vmin; height: 90vmin; border-radius: 50%; transform: translateX(-10%); background: radial-gradient(circle, rgba(254, 228, 64, .55) 0%, rgba(255, 107, 53, .35) 38%, rgba(255, 42, 133, 0) 68%); }
.cloud { position: absolute; fill: #3B1670; opacity: .55; will-change: transform; animation: drift 60s linear infinite alternate; }
.cloud.c1 { width: 340px; top: 12%; left: -4%; }
.cloud.c2 { width: 240px; top: 30%; left: 38%; opacity: .4; fill: #7A2FB0; animation-duration: 80s; animation-direction: alternate-reverse; }
.cloud.c3 { width: 420px; top: 52%; left: 58%; fill: #A22C8E; opacity: .5; animation-duration: 70s; }
.cloud.c4 { width: 300px; top: 66%; left: 6%; fill: #D8407C; opacity: .45; animation-duration: 90s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translate3d(-30px, 0, 0); } to { transform: translate3d(60px, 0, 0); } }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(60px, 11vw, 120px); fill: var(--ink); stroke: var(--ink); }

.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 24px;
  max-width: 1320px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(84px, 12vw, 150px);
  min-height: min(86vh, 800px);
}
.drop-tag { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--yellow); padding: 7px 12px; font-size: 12px; font-weight: 700; letter-spacing: .16em; border: 2px solid var(--yellow); }
.drop-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.hero-title { font-family: var(--display); font-weight: 400; line-height: .86; letter-spacing: -.01em; font-size: clamp(4.4rem, 15.5vw, 12.5rem); margin: 18px 0 6px; color: var(--white); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 7px 7px 0 var(--ink); }
.hero-title span { display: block; }
.hero-title span:last-child { color: var(--yellow); margin-left: .5em; }
.hero-kana { font-family: var(--display); font-size: clamp(1rem, 2.4vw, 1.6rem); color: var(--cyan); letter-spacing: .3em; text-shadow: 2px 2px 0 var(--ink); margin-top: 14px; }
.hero-line { max-width: 44ch; margin-top: 14px; font-size: 15px; font-weight: 500; color: #fff; text-shadow: 0 1px 0 rgba(11, 5, 20, .6); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.hero-copy > * { animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }
.hero-copy > :nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } }

.hero-stage { position: relative; display: grid; place-items: center; align-self: end; }
.mushy-btn { background: none; border: 0; padding: 0; display: block; width: min(100%, 400px); -webkit-tap-highlight-color: transparent; }
.mushy-btn:focus-visible { outline-offset: 8px; }
.mushy-float { display: block; animation: bob 3.6s ease-in-out infinite; will-change: transform; }
.mushy-svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(8px 10px 0 rgba(11, 5, 20, .55)); will-change: transform; transform-origin: 50% 100%; }
@keyframes bob { 50% { transform: translate3d(0, -12px, 0) rotate(-1.5deg); } }
.trail { position: absolute; left: 50%; bottom: -40%; width: 46%; height: 150%; transform: translateX(-50%) scaleY(0); transform-origin: 50% 0; opacity: 0; pointer-events: none; background: linear-gradient(180deg, rgba(254, 228, 64, .9), rgba(255, 42, 133, .7) 35%, rgba(157, 78, 221, 0) 100%); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.tap-hint { position: absolute; right: 0; bottom: 6%; font-size: 10px; font-weight: 700; letter-spacing: .18em; background: var(--white); color: var(--ink); border: var(--border); padding: 4px 8px; transform: rotate(6deg); box-shadow: 3px 3px 0 var(--ink); pointer-events: none; }

.fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.fx-heart { position: absolute; left: 0; top: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px; will-change: transform, opacity; opacity: 0; }
.fx-heart::before { content: ""; position: absolute; inset: -60%; border-radius: 50%; background: radial-gradient(circle, var(--c) 0%, transparent 62%); opacity: .5; }
.fx-heart svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.fx-flash { position: absolute; left: 0; top: 0; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; background: radial-gradient(circle, #fff 0%, var(--yellow) 30%, rgba(255, 42, 133, 0) 70%); opacity: 0; will-change: transform, opacity; }

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 0; padding-top: 22px; }
  .hero-stage { order: -1; }
  .mushy-btn { width: min(58vw, 250px); }
  .hero-title { -webkit-text-stroke-width: 2px; text-shadow: 5px 5px 0 var(--ink); font-size: clamp(4.2rem, 23vw, 8rem); margin-top: 14px; }
  .tap-hint { right: 4%; }
  .btn { padding: 12px 16px; }
}

/* ---------- Sections ---------- */
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .2em; color: var(--cyan); }
h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5.4vw, 4rem); line-height: 1; letter-spacing: -.005em; margin-top: 8px; }

.shop {
  padding: clamp(40px, 7vw, 88px) var(--gutter);
  background: radial-gradient(rgba(157, 78, 221, .22) 1.2px, transparent 1.4px) 0 0 / 18px 18px, var(--plum);
  border-bottom: var(--border);
}
.shop-head { max-width: 1320px; margin: 0 auto 28px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab { background: transparent; color: var(--white); border: 2px solid var(--white); padding: 9px 14px; font-size: 12px; font-weight: 700; letter-spacing: .14em; min-height: 42px; transition: background-color .12s, color .12s, transform .12s; }
.tab:hover { background: rgba(255, 255, 255, .12); }
.tab[aria-pressed="true"] { background: var(--yellow); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.tab-n { opacity: .65; font-weight: 500; margin-left: 4px; }

.grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
@media (max-width: 600px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 380px) { .grid { grid-template-columns: 1fr; } }

.card { background: var(--white); color: var(--ink); border: var(--border); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .16s ease-out, box-shadow .16s ease-out; animation: cardIn .35s cubic-bezier(.2, .8, .2, 1) both; }
.card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--cyan), 9px 9px 0 2px var(--ink); }
@keyframes cardIn { from { opacity: 0; transform: translate3d(0, 14px, 0); } }
.card-art { position: relative; display: block; width: 100%; padding: 0; border: 0; border-bottom: var(--border); background: none; aspect-ratio: 1; overflow: hidden; }
.card-art svg.art, .card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease-out; }
.card:hover .card-art svg.art, .card:hover .card-art img { transform: scale(1.04) rotate(-1deg); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--ink); color: var(--yellow); font-size: 10px; font-weight: 700; letter-spacing: .14em; padding: 4px 7px; transform: rotate(-3deg); }
.sku { position: absolute; top: 10px; right: 10px; background: var(--white); border: var(--border); font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 2px 6px; }
.quick { position: absolute; left: 50%; bottom: 10px; transform: translate(-50%, 8px); opacity: 0; background: var(--white); border: var(--border); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; padding: 5px 10px; box-shadow: 3px 3px 0 var(--ink); transition: opacity .15s, transform .15s; white-space: nowrap; }
.card-art:hover .quick, .card-art:focus-visible .quick { opacity: 1; transform: translate(-50%, 0); }

.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card h3 { font-family: var(--display); font-weight: 400; font-size: 15.5px; line-height: 1.2; }
.price { font-weight: 700; font-size: 15px; background: var(--yellow); border: var(--border); padding: 1px 7px; flex: none; }
.specs { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; margin: 0; padding: 0; }
.specs li { font-size: 10.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; border: 1.5px dashed var(--ink); padding: 2px 6px; }
.sizes { display: flex; flex-wrap: wrap; gap: 5px; }
.size { min-width: 36px; height: 34px; padding: 0 6px; background: var(--white); border: var(--border); font-size: 11.5px; font-weight: 700; transition: background-color .1s, color .1s, transform .1s; }
.size:hover { background: var(--cyan); }
.size[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }
.size.os { min-width: 0; padding: 0 10px; cursor: default; background: #F1ECF9; }
.sizes.nudge { animation: nudge .4s; }
@keyframes nudge { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.card-actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.card-actions .btn { width: 100%; min-height: 42px; padding: 10px 12px; font-size: 12px; }
.pod { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: .14em; color: #4A3C63; }
.pod::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); border: 1.5px solid var(--ink); }
.pod.live::before { background: var(--magenta); }
.empty { grid-column: 1 / -1; border: 2px dashed var(--mist); padding: 28px; text-align: center; color: var(--mist); }

@media (max-width: 600px) {
  .card-body { padding: 10px; gap: 8px; }
  .card h3 { font-size: 13px; }
  .card-top { flex-direction: column; gap: 6px; }
  .sizes { gap: 4px; flex-wrap: nowrap; }
  .card .size { min-width: 0; flex: 1 1 0; height: 32px; font-size: 10.5px; padding: 0 2px; }
  .card .size.os { flex: 0 0 auto; padding: 0 10px; }
  .sku { display: none; }
  .specs li:nth-child(n+2) { display: none; }
  .card { box-shadow: 4px 4px 0 var(--ink); }
}

/* ---------- Lookbook / About ---------- */
.lookbook { padding: clamp(40px, 7vw, 88px) var(--gutter); max-width: 1416px; margin: 0 auto; }
.look-head { margin-bottom: 28px; }
.looks { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(12px, 2vw, 24px); }
.look { position: relative; border: var(--border); box-shadow: 6px 6px 0 var(--magenta); overflow: hidden; aspect-ratio: 4 / 5; margin: 0; }
.look:nth-child(2) { margin-top: 36px; box-shadow: 6px 6px 0 var(--cyan); }
.look:nth-child(3) { box-shadow: 6px 6px 0 var(--yellow); }
.look svg { width: 100%; height: 100%; }
.look figcaption { position: absolute; left: 10px; bottom: 10px; right: 10px; display: flex; justify-content: space-between; gap: 8px; background: var(--white); color: var(--ink); border: var(--border); padding: 5px 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; }
@media (max-width: 760px) {
  .looks { grid-template-columns: 1fr 1fr; }
  .look:first-child { grid-column: 1 / -1; aspect-ratio: 5 / 4; }
  .look:nth-child(2) { margin-top: 0; }
  .look figcaption span:last-child { display: none; }
}

.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 72px); margin-top: clamp(40px, 6vw, 72px); align-items: start; }
.about-lead { font-family: var(--display); font-size: clamp(1.25rem, 2.6vw, 1.9rem); line-height: 1.25; color: var(--yellow); }
.about-copy p + p { margin-top: 16px; color: var(--mist); max-width: 60ch; }
.manifest { background: var(--white); color: var(--ink); border: var(--border); box-shadow: 6px 6px 0 var(--uv); font-size: 12.5px; }
.manifest div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-bottom: 1.5px dashed var(--ink); }
.manifest div:last-child { border-bottom: 0; }
.manifest dt { letter-spacing: .16em; color: #4A3C63; }
.manifest dd { font-weight: 700; text-align: right; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.foot { border-top: 2px solid var(--magenta); background: var(--ink); padding: 32px var(--gutter) 40px; display: grid; gap: 14px; grid-template-columns: auto 1fr auto; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand svg { width: 52px; height: 50px; }
.foot-word { font-family: var(--display); font-size: 22px; line-height: 1; }
.foot-kana { color: var(--cyan); font-size: 11px; letter-spacing: .2em; margin-top: 4px; }
.foot-note { color: var(--mist); font-size: 12px; max-width: 52ch; justify-self: center; }
.foot-legal { color: var(--mist); font-size: 11px; letter-spacing: .08em; }
@media (max-width: 820px) { .foot { grid-template-columns: 1fr; } .foot-note { justify-self: start; } }

/* ---------- Dialogs ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(11, 5, 20, .72); animation: fade .2s ease-out; }
@keyframes fade { from { opacity: 0; } }
.x { width: 40px; height: 40px; background: var(--white); border: var(--border); font-size: 16px; font-weight: 700; display: grid; place-items: center; box-shadow: 3px 3px 0 var(--ink); transition: transform .1s, background-color .1s; }
.x:hover { background: var(--magenta); color: #fff; }
.x:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.qv { width: min(980px, calc(100vw - 24px)); margin: auto; }
.qv[open] { animation: pop .22s cubic-bezier(.2, .9, .3, 1.15); }
@keyframes pop { from { opacity: 0; transform: translate3d(0, 20px, 0) scale(.97); } }
.qv-inner { background: var(--white); border: var(--border); box-shadow: 8px 8px 0 var(--magenta); display: grid; grid-template-columns: 1fr 1fr; max-height: calc(100dvh - 32px); overflow: auto; position: relative; }
.qv-art { border-right: var(--border); position: relative; min-height: 320px; }
.qv-art svg.art, .qv-art img { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; }
.qv-info { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.qv-info .x { position: absolute; top: 12px; right: 12px; z-index: 2; }
.qv-meta { font-size: 11px; font-weight: 700; letter-spacing: .16em; color: #4A3C63; padding-right: 52px; }
.qv-info h2 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.1; margin: 0; }
.qv-price { font-size: 20px; font-weight: 700; }
.qv-desc { font-size: 14px; }
.qv-label { font-size: 11px; font-weight: 700; letter-spacing: .16em; margin-bottom: 6px; }
.qv-details { margin: 0; padding-left: 18px; font-size: 12.5px; }
.qv-details li { margin: 2px 0; }
.chart { width: 100%; border-collapse: collapse; font-size: 12px; text-align: center; }
.chart th, .chart td { border: 1.5px solid var(--ink); padding: 5px 4px; }
.chart th { background: var(--ink); color: var(--yellow); font-weight: 700; letter-spacing: .08em; }
.chart tr.sel td { background: var(--yellow); font-weight: 700; }
.chart-note { font-size: 11px; color: #4A3C63; margin-top: 6px; }
.qv-buttons { display: grid; gap: 10px; margin-top: 4px; }
.qv-status { font-size: 11px; color: #4A3C63; }
@media (max-width: 720px) {
  .qv-inner { display: block; }
  .qv-art { border-right: 0; border-bottom: var(--border); aspect-ratio: 4 / 3; min-height: 0; }
  .qv-info { padding: 16px; }
}

.bag { margin: 0 0 0 auto; height: 100dvh; width: min(440px, 100vw); }
.bag[open] { animation: slide .26s cubic-bezier(.2, .8, .2, 1); }
@keyframes slide { from { transform: translate3d(100%, 0, 0); } }
.bag-inner { height: 100%; background: var(--white); border-left: var(--border); display: grid; grid-template-rows: auto 1fr auto; }
.bag-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: var(--border); background: var(--yellow); }
.bag-head h2 { font-size: 22px; margin: 0; }
.bag-items { overflow: auto; padding: 4px 18px; }
.bag-empty { text-align: center; padding: 48px 12px; }
.bag-empty svg { width: 120px; margin: 0 auto 14px; }
.bag-empty p { font-weight: 700; }
.bag-empty small { display: block; color: #4A3C63; margin: 6px 0 18px; font-size: 12.5px; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1.5px dashed var(--ink); align-items: start; }
.line-art { width: 76px; height: 76px; border: var(--border); overflow: hidden; }
.line-art svg, .line-art img { width: 100%; height: 100%; object-fit: cover; }
.line-name { font-family: var(--display); font-size: 13px; line-height: 1.2; }
.line-meta { font-size: 11px; color: #4A3C63; letter-spacing: .06em; margin-top: 3px; }
.qty { display: inline-flex; align-items: center; border: var(--border); margin-top: 8px; }
.qty button { width: 32px; height: 30px; background: var(--white); border: 0; font-weight: 700; font-size: 15px; }
.qty button:hover { background: var(--cyan); }
.qty span { min-width: 30px; text-align: center; font-weight: 700; font-size: 13px; border-left: var(--border); border-right: var(--border); line-height: 30px; }
.line-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.line-price { font-weight: 700; }
.remove { background: none; border: 0; padding: 4px 0; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-decoration: underline; color: #4A3C63; }
.remove:hover { color: var(--magenta); }
.bag-foot { border-top: var(--border); padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); background: #F6F1FF; }
.subtotal { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; letter-spacing: .12em; font-size: 13px; }
.subtotal strong { font-size: 22px; letter-spacing: 0; }
.bag-fine { font-size: 11px; color: #4A3C63; margin: 4px 0 12px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 2147483647; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--white); border: 2px solid var(--cyan); box-shadow: 4px 4px 0 var(--magenta); padding: 10px 16px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; max-width: calc(100vw - 32px); text-align: center; transition: transform .2s ease-out, opacity .2s ease-out; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
