/* Ororo_X app UI. Black and white like the poster, built for thumbs. One stylesheet. */
@property --tr { syntax: '<number>'; inherits: true; initial-value: 122; }
@property --tg { syntax: '<number>'; inherits: true; initial-value: 92; }
@property --tb { syntax: '<number>'; inherits: true; initial-value: 255; }
:root {
  --bg: #0b0a09; --s1: #141210; --s2: #1c1a17; --s3: #272420;
  --line: rgba(255, 255, 255, .06); --line2: rgba(255, 255, 255, .14);
  --text: #f5f2ec; --mut: #a29d95;
  --ok: #7fdca0; --warn: #ffbd5c; --bad: #ff6b6b;
  --r1: 16px; --r2: 24px; --r3: 34px; --pad: 18px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --script: 'Caveat', 'Segoe Script', 'Bradley Hand', cursive;
  --tab: 86px;
  --sb: env(safe-area-inset-bottom, 0px); --st: env(safe-area-inset-top, 0px);
  --appbar: calc(60px + var(--st));
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.4, .5, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; overscroll-behavior-y: contain; }
body { background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; touch-action: manipulation; overscroll-behavior-y: contain; }
body.lock { overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 8px; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
s { color: var(--mut); font-weight: 400; margin-left: 6px; font-size: .88em; }
.sp { flex: 1; }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico.wa { stroke: none; fill: currentColor; }

/* ---------- shell ---------- */
#view { min-height: 100svh; overflow-x: clip; }
.screen { padding-bottom: calc(var(--tab) + var(--sb) + 28px); animation: inFade .28s var(--ease) both; }
#view[data-dir='fwd'] .screen { animation-name: inR; animation-duration: .34s; }
#view[data-dir='back'] .screen { animation-name: inL; animation-duration: .3s; }
#view[data-dir='none'] .screen { animation: none; }
body.nobar .screen { padding-bottom: calc(110px + var(--sb)); }
@keyframes inFade { from { opacity: 0; } }
@keyframes inR { from { opacity: .3; transform: translateX(34px); } }
@keyframes inL { from { opacity: .3; transform: translateX(-24px); } }

.appbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 4px; min-height: var(--appbar); padding: var(--st) calc(var(--pad) - 6px) 0; background: rgba(11, 10, 9, .66); -webkit-backdrop-filter: blur(26px) saturate(1.6); backdrop-filter: blur(26px) saturate(1.6); border-bottom: 1px solid transparent; transition: border-color .2s; }
body.scrolled .appbar { border-bottom-color: var(--line); }
.appbar .t { position: absolute; left: 50%; bottom: 17px; transform: translateX(-50%); font: 600 17px/1 var(--font); opacity: 0; transition: opacity .2s; pointer-events: none; }
body.scrolled .appbar .t, .appbar .t.on { opacity: 1; }
.brand { display: flex; align-items: center; gap: 5px; padding-left: 6px; min-height: 44px; }
.brand .shell { height: 30px; width: auto; }
.brand .wm { font: 700 22px/1 var(--font); letter-spacing: -.02em; padding-bottom: 2px; }
.ib { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; transition: background .15s, transform .12s; }
.ib:active { background: var(--s3); transform: scale(.92); }
.dot { position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #fff; color: #000; font: 700 11px/18px var(--font); text-align: center; }
.lt { font: 800 36px/1.05 var(--font); letter-spacing: -.045em; padding: 6px var(--pad) 14px; }

/* ---------- controls ---------- */
.btn { min-height: 52px; padding: 0 24px; border-radius: 999px; background: var(--text); color: #0b0a09; font: 700 16px var(--font); display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .12s, opacity .2s, background .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn.sec { background: var(--s3); color: #fff; }
.btn.line { background: transparent; color: #fff; border: 1.5px solid var(--line2); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn .ico { width: 22px; height: 22px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--s2); font: 500 14px var(--font); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: background .15s, color .15s, transform .12s; }
.chip:active { transform: scale(.96); }
.chip.on { background: var(--text); color: #0b0a09; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 6px var(--pad); scrollbar-width: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; padding: 0; }
.chips::-webkit-scrollbar, .rail::-webkit-scrollbar, .hero::-webkit-scrollbar, .catcard::-webkit-scrollbar { display: none; }
.chips.sticky { position: sticky; top: var(--appbar); z-index: 20; background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.searchfield { margin: 4px var(--pad) 0; height: 50px; border-radius: 16px; background: var(--s2); display: flex; align-items: center; gap: 10px; padding: 0 16px; color: var(--mut); transition: transform .12s; }
.searchfield:active { transform: scale(.985); }
.sh { display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); margin: 30px 0 12px; }
.sh h2 { font-size: 20px; }
.sh a { min-height: 44px; display: flex; align-items: center; color: var(--mut); font: 500 14px var(--font); }

/* ---------- product cards ---------- */
.rail { display: flex; gap: 12px; overflow-x: auto; padding: 0 var(--pad) 4px; scroll-snap-type: x proximity; scroll-padding-left: var(--pad); scrollbar-width: none; }
.rail .pc { flex: 0 0 156px; scroll-snap-align: start; }
.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 12px; padding: 0 var(--pad); }
.pc { position: relative; display: flex; flex-direction: column; gap: 10px; transition: transform .12s; }
.pc:active { transform: scale(.98); }
.pc .full { position: absolute; inset: 0; z-index: 2; border-radius: var(--r2); }
.pc .pic { position: relative; aspect-ratio: 1; border-radius: var(--r2); background: radial-gradient(90% 80% at 70% 15%, var(--s3), var(--s1)); overflow: hidden; }
.pc .pic > img.ph { width: 100%; height: 100%; object-fit: cover; }
.pc .tag { position: absolute; left: 10px; top: 12px; padding: 1px 9px; border-radius: 999px; background: rgba(0, 0, 0, .7); border: 1px solid var(--line2); font: 500 11px/20px var(--font); }
.pc .tag.out { color: var(--mut); }
.pc .heart { position: absolute; z-index: 3; top: 2px; right: 2px; width: 44px; height: 44px; display: grid; place-items: center; }
.pc .heart i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .25s var(--spring); }
.pc .heart .ico { width: 18px; height: 18px; }
.heart[aria-pressed='true'] .ico { fill: #fff; }
.heart[aria-pressed='true'] i { transform: scale(1.12); }
.pc .add { position: absolute; z-index: 3; right: 8px; bottom: 8px; width: 44px; height: 44px; border-radius: 50%; background: var(--text); color: #0b0a09; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .55); transition: transform .12s; }
.pc .add:active { transform: scale(.88); }
.pc .add:disabled { opacity: .35; }
.pc .info { padding: 0 4px; display: flex; flex-direction: column; gap: 1px; }
.pc .name { font: 500 14px/1.3 var(--font); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { font: 600 15px var(--font); font-variant-numeric: tabular-nums; }
.low { font: 500 12px var(--font); color: var(--warn); }
.art { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(75% 75% at 70% 20%, rgba(255, 255, 255, .1), transparent 72%); }
.art img.a3 { width: 66%; height: auto; object-fit: contain; filter: drop-shadow(0 16px 14px rgba(0, 0, 0, .45)); }
.sk { background: linear-gradient(90deg, var(--s1) 25%, var(--s2) 50%, var(--s1) 75%); background-size: 200% 100%; animation: sh 1.3s infinite; border-radius: var(--r2); }
@keyframes sh { to { background-position: -200% 0; } }
.sk.card { aspect-ratio: .8; }

/* ---------- empty / error ---------- */
.empty { text-align: center; padding: 56px 28px; color: var(--mut); }
.empty .i3 { width: 112px; height: 112px; margin: 0 auto 14px; object-fit: contain; }
.empty h2 { color: #fff; font-size: 21px; margin-bottom: 6px; }
.empty .btn { margin-top: 22px; }

/* ---------- dock: floating glass with 3D icons ---------- */
.tabbar { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(10px + var(--sb)); max-width: 440px; margin: 0 auto; height: 72px; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; border-radius: 34px; background: rgba(30, 27, 24, .58); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8); box-shadow: 0 22px 46px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 0 0 1px rgba(255, 255, 255, .05); transition: transform .5s var(--ease), opacity .3s; }
body.nobar .tabbar { transform: translateY(140%); opacity: 0; pointer-events: none; }
.tabbar .pill { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 5); border-radius: 28px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .6s var(--spring), opacity .3s; opacity: var(--po, 1); }
.tabbar a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; color: var(--mut); font: 700 10px/1 var(--font); transition: color .3s; }
.tabbar a img { width: 34px; height: 34px; object-fit: contain; filter: saturate(.75) brightness(.85) drop-shadow(0 4px 6px rgba(0, 0, 0, .4)); transition: transform .55s var(--spring), filter .35s; }
.tabbar a[aria-current='page'] { color: var(--text); }
.tabbar a[aria-current='page'] img { transform: translateY(-4px) scale(1.2); filter: saturate(1.1) drop-shadow(0 9px 10px rgba(0, 0, 0, .55)); }
.tabbar a:active img { transform: scale(.86); }
.tabbar a span { white-space: nowrap; }
@media (max-width: 349px) { .tabbar a { font-size: 9px; } .tabbar a img { width: 30px; height: 30px; } }

/* ---------- snackbar, sheets, pull to refresh ---------- */
#snack { position: fixed; z-index: 90; left: 50%; bottom: calc(var(--tab) + var(--sb) + 14px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; width: max-content; max-width: calc(100% - 28px); display: flex; align-items: center; gap: 14px; padding: 6px 8px 6px 18px; min-height: 48px; background: #fff; color: #000; border-radius: 999px; font: 500 14px var(--font); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); transition: opacity .2s, transform .3s var(--spring); }
body.nobar #snack { bottom: calc(96px + var(--sb)); }
#snack.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#snack button { min-height: 36px; padding: 0 14px; border-radius: 999px; background: #000; color: #fff; font: 600 13px var(--font); }
#sheet-root .sheet-back { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .62); opacity: 0; transition: opacity .28s; }
#sheet-root.open .sheet-back { opacity: 1; }
#sheet-root .sheet { position: fixed; z-index: 81; left: 0; right: 0; bottom: 0; max-height: 88svh; overflow-y: auto; padding: 8px var(--pad) calc(20px + var(--sb)); background: var(--s1); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r3) var(--r3) 0 0; transform: translateY(100%); transition: transform .36s var(--ease); }
#sheet-root.open .sheet { transform: translateY(0); }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line2); margin: 6px auto 16px; }
.sheet h3 { font-size: 20px; margin-bottom: 14px; }
.sheet h4 { font: 500 13px var(--font); color: var(--mut); margin: 20px 0 10px; }
.opt { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-top: 1px solid var(--line); font-weight: 500; width: 100%; text-align: left; }
.opt:first-of-type { border-top: 0; }
.opt .ico { width: 22px; height: 22px; opacity: 0; }
.opt[aria-checked='true'] .ico { opacity: 1; }
.switchrow { display: flex; align-items: center; justify-content: space-between; min-height: 56px; margin-top: 8px; }
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 16px; background: var(--s3); transition: background .2s; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .25s var(--spring); }
.switch input:checked + i { background: #fff; }
.switch input:checked + i::after { transform: translateX(20px); background: #000; }
.sheet-actions { display: flex; gap: 10px; margin-top: 22px; }
.sheet-actions .btn { flex: 1; }
#ptr { position: fixed; z-index: 85; top: calc(var(--st) + 8px); left: 50%; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; background: var(--s3); display: grid; place-items: center; opacity: 0; transform: translateY(-60px); pointer-events: none; }
#ptr .ico { width: 20px; height: 20px; }
#ptr.spin .ico { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- shop / search ---------- */
.count { padding: 6px var(--pad) 14px; color: var(--mut); font-size: 13px; }
.appbar.search { padding-right: var(--pad); }
.sf { flex: 1; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 6px 0 14px; border-radius: 14px; background: var(--s2); color: var(--mut); }
.sf input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: #fff; font-size: 16px; }
.sf input::-webkit-search-cancel-button { display: none; }
.sf .clr { width: 40px; height: 44px; flex: none; display: grid; place-items: center; }
.sec-t { display: flex; align-items: center; justify-content: space-between; padding: 22px var(--pad) 8px; font: 600 15px var(--font); }
.sec-t button { color: var(--mut); font: 500 13px var(--font); min-height: 44px; }
.rrow { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 0 var(--pad); text-align: left; transition: background .12s; }
.rrow:active { background: var(--s2); }
.rrow .ico { color: var(--mut); width: 20px; height: 20px; }
.rrow span { flex: 1; }
.res { display: flex; align-items: center; gap: 14px; padding: 10px var(--pad); position: relative; }
.res .full { position: absolute; inset: 0; }
.res .th { width: 64px; height: 64px; border-radius: var(--r1); background: var(--s1); border: 1px solid var(--line); overflow: hidden; flex: none; }
.res .th img.ph { width: 100%; height: 100%; object-fit: cover; }
.res .meta { flex: 1; min-width: 0; }
.res .meta b { display: block; font: 500 14px/1.3 var(--font); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res .add { position: relative; z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; flex: none; }

/* ---------- product page ---------- */
.pdp-top { position: absolute; z-index: 10; top: calc(var(--st) + 8px); left: 12px; right: 12px; display: flex; gap: 8px; align-items: center; }
.gb { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 20, 22, .6); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: transform .12s; }
.gb:active { transform: scale(.9); }
.gb[aria-pressed='true'] .ico { fill: #fff; }
.pdp-hero { position: relative; padding-top: calc(var(--st) + 4px); }
.pdp-sheet { position: relative; z-index: 2; margin-top: -30px; padding: 24px var(--pad) 20px; background: var(--bg); border-radius: var(--r3) var(--r3) 0 0; border-top: 1px solid var(--line); }
.pdp-sheet .kicker { color: var(--mut); font-size: 13px; }
.pdp-sheet h1 { font-size: 26px; letter-spacing: -.03em; margin: 2px 0 10px; }
.pricing { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; }
.pricing .price { font-size: 28px; }
.pricing .off { padding: 0 10px; border-radius: 999px; background: var(--s3); font: 600 12px/24px var(--font); margin-left: 6px; }
.stock { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font: 500 14px var(--font); color: var(--ok); }
.stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock.low { color: var(--warn); } .stock.out { color: var(--bad); }
.desc { color: #d6d6da; margin-top: 14px; max-width: 62ch; }
.group { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; margin: 18px 0 0; }
.group > * + * { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 16px; width: 100%; text-align: left; font-weight: 500; }
a.row:active, button.row:active { background: var(--s2); }
.row .ico { color: #fff; }
.row small { display: block; color: var(--mut); font-weight: 400; font-size: 13px; }
.row .chev { margin-left: auto; width: 18px; height: 18px; color: var(--mut); }
.row.spec { justify-content: space-between; min-height: 48px; font-weight: 400; }
.row.spec span { color: var(--mut); }
.row.spec b { font-weight: 500; text-align: right; }
.row > span.grow { flex: 1; min-width: 0; }
.actionbar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 10px var(--pad) calc(10px + var(--sb)); background: rgba(8, 8, 9, .82); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5); border-top: 1px solid var(--line); }
.actionbar .btn { flex: 1; min-width: 0; padding: 0 14px; font-size: 15px; }
.actionbar .stepper button { width: 40px; height: 44px; }
.waicon { width: 48px !important; height: 48px !important; }
.sm { display: none; }
@media (max-width: 379px) { .lg { display: none; } .sm { display: inline; } }
.stepper { display: inline-flex; align-items: center; background: var(--s2); border-radius: 999px; flex: none; }
.stepper button { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; transition: background .12s; }
.stepper button:active { background: var(--s3); }
.stepper output { min-width: 22px; text-align: center; font-weight: 600; }
.waicon { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line2); }
.waicon .ico { width: 26px; height: 26px; }

/* viewer (3D) inside the product hero */
.viewer { --W: min(62vw, 300px); position: relative; height: min(96vw, 460px); display: grid; place-items: center; perspective: 1100px; overflow: hidden; background: radial-gradient(80% 70% at 50% 42%, rgba(255, 255, 255, .09), transparent 72%), var(--s1); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; padding-bottom: 20px; }
.viewer.grab { cursor: grabbing; }
.vglow { position: absolute; width: 70%; aspect-ratio: 1; left: 15%; top: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 65%); pointer-events: none; }
.vstage { position: relative; width: var(--W); aspect-ratio: 1; transform-style: preserve-3d; will-change: transform; margin-bottom: 18px; }
.vface { position: absolute; inset: 0; border-radius: 20px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: var(--s2); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.vface img.ph { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.vface .art { background: none; }
.vface.front { transform: translateZ(16px); }
.vface.back { transform: rotateY(180deg) translateZ(16px); }
.vlayer { position: absolute; inset: 0; border-radius: 20px; background: #1a1a1a; border: 1px solid rgba(255, 255, 255, .22); }
.vshadow { position: absolute; bottom: 12%; left: 50%; width: 52%; height: 22px; translate: -50% 0; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255, 255, 255, .22), transparent 70%); filter: blur(6px); pointer-events: none; }
.vhint { position: absolute; bottom: 38px; left: 50%; translate: -50% 0; padding: 5px 14px; border-radius: 999px; background: rgba(0, 0, 0, .7); color: #ddd; font: 500 12px var(--font); pointer-events: none; transition: opacity .4s; }
.viewer.used .vhint { opacity: 0; }

/* ---------- cart ---------- */
.swipe { position: relative; margin: 0 var(--pad) 10px; border-radius: var(--r2); overflow: hidden; }
.swdel { position: absolute; right: 0; top: 0; bottom: 0; width: 96px; background: var(--bad); opacity: 0; transition: opacity .15s; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #fff; font: 600 12px var(--font); }
.swipe.active .swdel { opacity: 1; }
.line { position: relative; display: flex; gap: 14px; padding: 12px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r2); transform: translateX(var(--x, 0)); transition: transform .28s var(--ease); touch-action: pan-y; }
.line.drag { transition: none; }
.line .lp { width: 84px; height: 84px; border-radius: var(--r1); background: var(--s2); overflow: hidden; flex: none; }
.line .lp img.ph { width: 100%; height: 100%; object-fit: cover; }
.line .lb { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.line .name { font: 500 14px/1.3 var(--font); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line .r { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.line .stepper button { width: 40px; height: 40px; }
.meter-box { margin: 4px var(--pad) 16px; padding: 14px 16px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r2); }
.meter-box p { font: 500 13px var(--font); margin-bottom: 10px; }
.meter { height: 6px; border-radius: 3px; background: var(--s3); overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--p, 0%); background: #fff; border-radius: 3px; transition: width .6s var(--ease); }
.summary { margin: 8px var(--pad) 0; padding: 6px 18px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r2); }
.summary div { display: flex; justify-content: space-between; padding: 8px 0; color: var(--mut); }
.summary div.total { color: #fff; font: 600 18px var(--font); border-top: 1px solid var(--line); margin-top: 4px; padding-top: 14px; }

/* ---------- checkout / done ---------- */
.stack { display: grid; gap: 4px; padding: 0 var(--pad); }
.card-s { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r2); padding: 18px; margin-top: 12px; }
.card-s h3 { font-size: 16px; margin-bottom: 14px; }
.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font: 500 13px var(--font); color: var(--mut); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 13px 16px; background: var(--s2); border: 1.5px solid transparent; border-radius: var(--r1); outline: 0; font-size: 16px; transition: border-color .15s; }
.field textarea { min-height: 92px; resize: none; }
.field input:focus, .field textarea:focus { border-color: #fff; }
.field.bad input, .field.bad textarea { border-color: var(--bad); }
.field .em { display: none; color: var(--bad); font-size: 13px; margin-top: 6px; }
.field.bad .em { display: block; }
.pay { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r1); background: var(--s2); border: 1.5px solid #fff; }
.pay i { width: 22px; height: 22px; border-radius: 50%; border: 6px solid #fff; flex: none; }
.pay small { display: block; color: var(--mut); }
.mini { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; color: #d6d6da; }
.mini span:last-child { color: #fff; white-space: nowrap; }
.done { text-align: center; padding: 56px var(--pad) 0; }
.tick { width: 96px; height: 96px; margin: 0 auto 22px; }
.tick circle { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 289; stroke-dashoffset: 289; animation: draw .7s var(--ease) .1s forwards; }
.tick path { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .45s var(--ease) .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h1 { font-size: 28px; letter-spacing: -.03em; }
.code { display: inline-flex; align-items: center; gap: 10px; margin: 16px 0 6px; padding: 8px 8px 8px 20px; border-radius: 999px; background: var(--s2); font: 600 20px var(--font); letter-spacing: .08em; }
.code button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--s3); }
.steps { text-align: left; margin: 28px 0 0; }
.steps .row { align-items: flex-start; padding: 14px 16px; }
.steps .n { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: #000; font: 700 13px/28px var(--font); text-align: center; flex: none; }
.done .btns { display: grid; gap: 10px; margin-top: 26px; }

/* ---------- more ---------- */
.me { display: flex; align-items: center; gap: 14px; margin: 4px var(--pad) 0; padding: 18px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r2); }
.me img { height: 48px; width: auto; }
.me b { font: 600 18px var(--font); display: block; }
.me small { color: var(--mut); letter-spacing: .16em; text-transform: uppercase; font-size: 10px; }
.mgroup { margin: 18px var(--pad) 0; }
.mgroup > h4 { font: 500 12px var(--font); color: var(--mut); margin: 0 6px 8px; letter-spacing: .06em; text-transform: uppercase; }
.mgroup .group { margin: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 16px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--mut); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--mut); padding: 0 16px 16px; }
.ver { text-align: center; color: var(--mut); font-size: 12px; margin: 26px 0 0; }

/* ---------- intro (letterbox + lockup) ---------- */
.splash { position: fixed; inset: 0; z-index: 100; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; animation: splash-out .45s ease 1.9s forwards; cursor: pointer; }
.splash.out { opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; animation: none; }
.no-intro .splash { display: none; }
.splash .lb { position: absolute; left: 0; right: 0; height: 50%; background: #000; z-index: 3; pointer-events: none; animation: lb-open 1.9s cubic-bezier(.65, 0, .25, 1) forwards; }
.splash .lb.top { top: 0; } .splash .lb.bot { bottom: 0; }
@keyframes lb-open { 0% { height: 50%; } 26% { height: 13%; } 82% { height: 13%; } 100% { height: 0; } }
.splash .flare { position: absolute; left: 0; right: 0; top: 50%; height: 2px; z-index: 2; background: linear-gradient(90deg, transparent, #fff 50%, transparent); box-shadow: 0 0 24px 4px rgba(255, 255, 255, .4); transform: scaleX(0); opacity: 0; animation: flare .9s var(--ease) .1s forwards; }
@keyframes flare { 0% { transform: scaleX(0); opacity: 1; } 55% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.splash .lockup { display: flex; align-items: center; gap: 8px; }
.splash .mark { width: min(22vw, 92px); height: auto; opacity: 0; transform: scale(.85); filter: blur(8px); animation: mark-in .8s var(--ease) .1s forwards; }
.splash .word { font: 700 clamp(46px, 15vw, 84px)/1 var(--font); letter-spacing: -.02em; padding-bottom: 6px; clip-path: inset(0 100% 0 0); animation: wipe .6s cubic-bezier(.6, 0, .2, 1) .55s forwards; }
.splash .tag { letter-spacing: .34em; text-transform: uppercase; font-size: 12px; color: #d0d0d0; opacity: 0; animation: fade .5s ease 1s forwards; }
@keyframes mark-in { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes fade { to { opacity: 1; } }
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }

/* ---------- larger screens: keep the phone layout centred ---------- */
@media (min-width: 700px) {
  #view, .tabbar, .actionbar { max-width: 520px; margin-left: auto; margin-right: auto; }
  .tabbar, .actionbar { left: 50%; right: auto; width: 520px; transform: translateX(-50%); }
  body.nobar .tabbar { transform: translate(-50%, 110%); }
  body { background: #060606; }
  #view { background: var(--bg); min-height: 100vh; box-shadow: 0 0 0 1px var(--line); }
  .appbar { max-width: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .splash { display: none; }
  .tick circle, .tick path { stroke-dashoffset: 0; }
}

/* ---------- top bar (root screens) ---------- */
.appbar .brand { gap: 6px; }
.appbar .ib { width: 44px; height: 44px; }
.appbar .ib .ico { width: 23px; height: 23px; stroke-width: 1.6; }
.cartdot { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--text); color: #0b0a09; font: 800 11px/18px var(--font); text-align: center; }
.cartdot.bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.5); } }
@media (max-width: 339px) { .brand .wm { display: none; } }

/* ---------- the stage ---------- */
.stage { position: relative; height: clamp(430px, 62svh, 640px); overflow: hidden; perspective: 900px; transition: --tr .9s ease, --tg .9s ease, --tb .9s ease; --sp: 0; touch-action: pan-y; }
.stage .spot { position: absolute; inset: -6% -24% 0; background: radial-gradient(56% 52% at 60% 50%, rgb(var(--tr) var(--tg) var(--tb) / .34), rgb(var(--tr) var(--tg) var(--tb) / .1) 46%, transparent 74%); opacity: calc(1 - var(--sp) * .7); pointer-events: none; }
.stage .plinth { position: absolute; left: 50%; bottom: 8%; width: min(86vw, 360px); aspect-ratio: 1; transform: translateX(-50%) rotateX(72deg); transform-style: preserve-3d; opacity: calc(1 - var(--sp)); pointer-events: none; }
.plinth i { position: absolute; border-radius: 50%; }
.plinth i:nth-child(1) { inset: 0; border: 1px solid rgba(255, 255, 255, .09); }
.plinth i:nth-child(2) { inset: 13%; border: 1px solid rgba(255, 255, 255, .06); }
.plinth i:nth-child(3) { inset: 26%; background: radial-gradient(circle, rgb(var(--tr) var(--tg) var(--tb) / .38), transparent 68%); }
.stage .wtitle { position: absolute; z-index: 1; left: var(--pad); top: 4%; font: 800 clamp(58px, 21vw, 104px)/.86 var(--font); letter-spacing: -.06em; color: var(--text); text-wrap: balance; opacity: calc(1 - var(--sp) * 1.4); transform: translateY(calc(var(--sp) * -24px)); pointer-events: none; }
.wtitle .ch { display: inline-block; animation: rise .9s var(--ease) both; animation-delay: calc(var(--i) * 45ms + var(--d, 0ms)); }
@keyframes rise { from { opacity: 0; transform: translateY(70%) rotate(5deg); filter: blur(8px); } }
.stage .objwrap { position: absolute; z-index: 2; left: 50%; top: 15%; width: min(60vw, 270px); aspect-ratio: 1; transform: translate(-50%, calc(var(--sp) * -30px)) scale(calc(1 - var(--sp) * .42)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease); will-change: transform; pointer-events: none; }
.stage.touching .objwrap { transition: transform .08s linear; }
.objwrap img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 28px 26px rgba(0, 0, 0, .55)); animation: bob 6.5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(1.5deg); } }
.objwrap.in { animation: objIn 1s var(--spring) both; }
.objwrap.out { animation: objOut .5s var(--ease) both; z-index: 1; }
@keyframes objIn { from { opacity: 0; transform: translate(-50%, 46px) scale(.55) rotate(-16deg); filter: blur(14px); } }
@keyframes objOut { to { opacity: 0; transform: translate(-50%, -30px) scale(1.15) rotate(10deg); filter: blur(14px); } }
.stage .objshadow { position: absolute; z-index: 1; left: 50%; bottom: 17%; width: min(34vw, 150px); height: 20px; margin-left: calc(min(34vw, 150px) / -2); border-radius: 50%; background: radial-gradient(rgba(0, 0, 0, .6), transparent 70%); filter: blur(7px); animation: shadow 6.5s ease-in-out infinite; opacity: calc(1 - var(--sp)); }
@keyframes shadow { 50% { transform: scale(.78); opacity: .55; } }
.stage .sat { position: absolute; z-index: 2; left: 0; top: 0; width: 46px; height: 46px; margin: -23px 0 0 -23px; display: grid; place-items: center; will-change: transform; opacity: calc(1 - var(--sp)); }
.sat img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .5)); pointer-events: none; }
.stage .info { position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: 6px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; opacity: calc(1 - var(--sp) * 1.5); }
.stage .wline { color: var(--mut); font-size: 14px; max-width: 21ch; margin-bottom: 12px; }
.stage .wcta { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--text); color: #0b0a09; font: 800 15px var(--font); transition: transform .15s; }
.stage .wcta:active { transform: scale(.96); }
.wdots { display: flex; gap: 8px; padding-bottom: 18px; }
.wdots button { width: 26px; height: 26px; display: grid; place-items: center; }
.wdots button::before { content: ''; width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .25); transition: width .5s var(--spring), background .3s; }
.wdots button.on::before { width: 24px; background: var(--text); }

/* ---------- shelf, poster, footer note ---------- */
.shelf-h { display: flex; align-items: baseline; justify-content: space-between; padding: 26px var(--pad) 14px; }
.shelf-h h2 { font: 800 24px/1 var(--font); letter-spacing: -.04em; }
.shelf-h a { color: var(--mut); font: 600 14px var(--font); min-height: 44px; display: flex; align-items: center; }
.shelf { transition: opacity .3s, transform .5s var(--ease); }
.shelf.swap { opacity: 0; transform: translateY(8px); }
.poster-card { position: relative; display: block; margin: 34px var(--pad) 0; border-radius: var(--r3); overflow: hidden; aspect-ratio: 606 / 556; background: var(--s1); box-shadow: 0 24px 50px rgba(0, 0, 0, .45); }
.poster-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster-card::after { content: ''; position: absolute; inset: auto 0 0 0; height: 42%; background: linear-gradient(transparent, rgba(11, 10, 9, .88)); }
.poster-card .btn { position: absolute; z-index: 1; left: 18px; bottom: 18px; }
.poster-card.plain { aspect-ratio: auto; min-height: 190px; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.poster-card.plain h2 { font-size: 26px; max-width: 12ch; }
.note { margin: 30px var(--pad) 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--mut); font-size: 13px; }
.note .wa { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--s2); color: var(--text); font: 700 14px var(--font); }
.note .wa .ico { width: 22px; height: 22px; }

/* ---------- a world page (Gaming, Accessories, Devices, Gadgets) ---------- */
.gstage { position: relative; height: clamp(250px, 36svh, 330px); overflow: hidden; perspective: 900px; transition: --tr .9s ease, --tg .9s ease, --tb .9s ease; }
.gstage .spot { position: absolute; inset: -10% -20% 0; background: radial-gradient(54% 60% at 74% 48%, rgb(var(--tr) var(--tg) var(--tb) / .34), transparent 72%); pointer-events: none; }
.gstage .wtitle { position: absolute; z-index: 1; left: var(--pad); top: 10%; font: 800 clamp(48px, 16.5vw, 84px)/.88 var(--font); letter-spacing: -.055em; }
.gstage .gobj { position: absolute; z-index: 2; right: 4%; top: 12%; width: min(46vw, 210px); aspect-ratio: 1; animation: objIn 1s var(--spring) both; }
.gstage .gobj img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 22px 20px rgba(0, 0, 0, .55)); animation: bob 6.5s ease-in-out infinite; }
.gstage .gline { position: absolute; z-index: 1; left: var(--pad); bottom: 18px; color: var(--mut); font-size: 14px; max-width: 20ch; }
.bar-tools { display: flex; align-items: center; justify-content: space-between; padding: 4px var(--pad) 12px; color: var(--mut); font-size: 13px; }
.bar-tools button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--s2); color: var(--text); font: 700 14px var(--font); }
.bar-tools .ico { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) {
  .objwrap img, .gobj img, .objshadow { animation: none !important; }
}

/* ---------- stage geometry: everything is placed from the plinth centre (66% of the stage height) ---------- */
.stage .wtitle, .gstage .wtitle { font-weight: 800; letter-spacing: -.06em; line-height: .88; font-family: var(--font); }
.stage .wtitle { font-size: min(clamp(52px, 21vw, 104px), calc((min(100vw, 520px) - 36px) / (var(--len, 6) * .56))); }
.gstage .wtitle { font-size: min(clamp(46px, 16.5vw, 84px), calc((min(100vw, 520px) * .62) / (var(--len, 6) * .56))); }
.stage .plinth { top: calc(66% - min(43vw, 180px)); bottom: auto; }
.stage .objwrap { top: calc(64% - min(60vw, 270px)); }
.stage .objshadow { top: calc(66% - 8px); bottom: auto; }
.stage .objwrap, .stage .objwrap img { -webkit-user-drag: none; user-select: none; }
@media (min-width: 700px) { .stage .plinth { top: calc(66% - 180px); } .stage .objwrap { top: calc(64% - 270px); } }

.gstage .gobj { top: 25%; right: 5%; width: min(42vw, 190px); }
.gstage .gline { max-width: 17ch; }

.wdots button { width: 28px; height: 44px; }
.sf .clr { min-width: 44px; width: 44px; }
