/* Shared storefront structure. Catalogue and product layouts have their own files. */
:root {
  --surface:#0c0c0f; --surface-raised:#141419;
  --text:#f4f4f5; --text-muted:#b2b2bc; --text-dim:#84848f;
  --separator:rgb(255 255 255 / .08);
  --control:rgb(255 255 255 / .056); --control-hover:rgb(255 255 255 / .105); --control-selected:rgb(255 255 255 / .155);
  --focus:#e4e4ee; --glass-tint:rgb(255 255 255 / .028);
  --ground:#050507; --panel:var(--surface); --pill:var(--surface); --pill-2:var(--surface-raised); --pill-hi:var(--control-hover);
  --ink:var(--text); --dim:var(--text-muted); --faint:var(--text-dim); --line:var(--separator); --cream:var(--text); --orange:var(--text);
  --lab-ink:var(--text); --lab-mute:var(--text-muted); --blue:var(--focus); --teal:var(--text-muted);
  --ok:#9ac4ac; --bad:#ef9c9c; --warning:#d7bd8b;
  --f-sans:"Onest",system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-mono:"JetBrains Mono",ui-monospace,Consolas,monospace;
  --ease:cubic-bezier(.16,1,.3,1); --pop:cubic-bezier(.34,1.45,.5,1);
  --polish-ease:var(--ease); --polish-muted:var(--text-muted); --polish-line:var(--separator);
  color-scheme:dark;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; background:var(--ground); }
body { margin:0; background:var(--ground); color:var(--text); font:16px/1.5 var(--f-sans); overflow-x:hidden; }
a { color:inherit; text-decoration:none; }
button,input,select,textarea { font:inherit; color:inherit; }
button { cursor:pointer; }
button:disabled { cursor:not-allowed; }
button,.pillbtn { border:0; box-shadow:none; }
img { max-width:100%; }
:focus-visible { outline:2px solid var(--focus); outline-offset:4px; }
[hidden] { display:none!important; }
.mono { font-family:var(--f-mono); }
.num { font-variant-numeric:tabular-nums; }
.sr-only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.skip-link { position:fixed; left:12px; top:-60px; z-index:120; background:var(--text); color:var(--ground); border-radius:12px; padding:10px 16px; }
.skip-link:focus { top:12px; }

/* Shared shell and controls */
.app { position:relative; z-index:1; width:100%; min-height:100dvh; margin:0; background:transparent; }
.main { position:relative; min-width:0; display:flex; flex-direction:column; min-height:100dvh; }
#content { flex:1 0 auto; min-width:0; }
.rail { display:flex; flex-direction:column; align-items:center; gap:6px; z-index:30; }
.rail a,.rail button { position:relative; width:44px; height:44px; border-radius:12px; display:grid; place-items:center; color:var(--text-muted); background:transparent; padding:0; }
.rail a.on { background:var(--control-selected); color:var(--text); }
.rail svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.rail svg .fill { fill:currentColor; stroke:none; }
.rail a>.game-icon { width:24px; height:24px; object-fit:contain; }
.rail .sp { flex:1; }
.rail .me { width:24px; height:24px; border-radius:50%; background:radial-gradient(circle at 50% 35%,var(--text-muted) 0 21%,transparent 22%),radial-gradient(ellipse at 50% 100%,var(--text-muted) 0 44%,transparent 45%); }
.rail .me.has-img { background-size:cover; background-position:center; }
.rail .tip { position:absolute; left:54px; top:50%; transform:translateY(-50%); opacity:0; pointer-events:none; background:var(--surface-raised); color:var(--text); font-size:12px; padding:5px 10px; border-radius:8px; white-space:nowrap; }
.rail a:focus-visible .tip { opacity:1; }
.rail .dot { position:absolute; right:4px; top:4px; min-width:16px; height:16px; border-radius:999px; background:var(--text); color:var(--ground); font:500 10px/16px var(--f-sans); text-align:center; padding:0 4px; }
.store-wordmark { font-weight:500; line-height:44px; }
.hero-copy { min-width:0; }
.pillbtn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:11px 20px; border-radius:16px; background:var(--control); color:var(--text); font-weight:500; white-space:nowrap; transition:background .16s ease,opacity .16s ease; }
.pillbtn.dark { background:var(--control); color:var(--text); }
.pillbtn:disabled,.pillbtn.is-off { opacity:.45; }
.pillbtn svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.pillbtn .cnt { font-size:12px; background:var(--control-selected); border-radius:999px; min-width:22px; height:22px; display:grid; place-items:center; padding:0 6px; }
.pillsel { position:relative; display:inline-flex; align-items:center; border-radius:12px; background:var(--control); }
.pillsel select { appearance:none; background:transparent; border:0; border-radius:inherit; padding:11px 34px 11px 14px; color:var(--text); font-size:13px; cursor:pointer; }
select option { background:var(--surface); color:var(--text); }
.pillsel::after { content:""; position:absolute; right:16px; top:50%; width:6px; height:6px; margin-top:-5px; border-right:1.5px solid var(--text-muted); border-bottom:1.5px solid var(--text-muted); transform:rotate(45deg); pointer-events:none; }
.cbtn { width:44px; height:44px; border-radius:12px; background:var(--control); display:grid; place-items:center; color:var(--text-muted); flex:none; padding:0; }
.cbtn svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.cbtn[aria-pressed="true"] { color:var(--text); background:var(--control-selected); }
.cbtn[aria-pressed="true"] svg { fill:currentColor; }
.back { display:inline-flex; align-items:center; gap:10px; color:var(--text-muted); background:transparent; padding:0; font-size:14px; }
.back svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.back i { width:36px; height:36px; border-radius:12px; display:grid; place-items:center; background:var(--control); }

/* Common content and media */
.grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.grid.wide { grid-column:1/-1; }
.card { position:relative; min-width:0; display:flex; flex-direction:column; isolation:isolate; }
.card .stretch { position:absolute; inset:0; z-index:1; border-radius:inherit; }
.card .stretch:focus-visible { outline-offset:4px; }
.empty { padding:48px 24px; text-align:center; color:var(--text-muted); border-radius:20px; background:var(--surface); display:grid; gap:16px; justify-items:center; grid-column:1/-1; }
.empty b { font-weight:500; color:var(--text); font-size:18px; }
.skel,.lab-skel { min-height:300px; border-radius:20px; background:var(--surface); position:relative; overflow:hidden; }
.skel::after,.lab-skel::after { content:""; position:absolute; inset:0; background:linear-gradient(100deg,transparent 30%,var(--control-hover) 50%,transparent 70%); animation:shimmer 1.6s linear infinite; transform:translateX(-100%); }
@keyframes shimmer { to { transform:translateX(100%); } }
.art { position:absolute; inset:0; display:grid; place-items:center; background:var(--surface-raised); }
.art span { font-size:32px; color:var(--text); letter-spacing:-.04em; }
.ic { width:46px; height:46px; border-radius:12px; display:grid; place-items:center; font-size:12px; font-weight:500; flex:none; background:var(--surface-raised); color:var(--text); }
.ics { display:flex; }
.ic+.ic { margin-left:-12px; }
.sec { margin-top:64px; }
.sh { display:flex; align-items:end; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:22px; }
.sh h2 { font-size:clamp(26px,3vw,36px); font-weight:500; letter-spacing:-.04em; margin:6px 0 0; }
.lbl { font-size:12px; font-weight:400; color:var(--text-dim); }
.ln { display:block; overflow:hidden; padding-bottom:.06em; }
.ln>span { display:block; }
.phead { display:flex; align-items:end; justify-content:space-between; gap:18px; flex-wrap:wrap; margin-bottom:26px; }
.phead h1 { font-size:clamp(34px,4.4vw,56px); font-weight:500; letter-spacing:-.05em; line-height:1.1; margin:10px 0 0; }
.phead p { color:var(--text-muted); margin:12px 0 0; max-width:52ch; }
.phead .acts { display:flex; gap:8px; align-items:center; }
.panel { border-radius:20px; background:var(--surface); padding:24px; }
.panel h3 { margin:0 0 14px; font-weight:500; font-size:20px; letter-spacing:-.03em; }
.panel p { margin:0 0 16px; color:var(--text-muted); }
.pinfo { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:20px; margin-top:20px; }
.feats { display:grid; gap:8px; margin:0; padding:0; list-style:none; }
.feats li { display:flex; align-items:center; gap:14px; padding:12px; border-radius:12px; background:var(--control); color:var(--text-muted); }
.feats li i { width:30px; height:30px; border-radius:10px; display:grid; place-items:center; font-style:normal; font-size:11px; background:var(--control); color:var(--text); flex:none; }
.facts { display:grid; gap:10px; margin-top:20px; font-size:13px; }
.facts div { display:flex; justify-content:space-between; gap:12px; border-top:1px solid var(--separator); padding-top:10px; color:var(--text-muted); }
.facts b { font-weight:400; color:var(--text); text-align:right; }
.viewer { position:relative; aspect-ratio:16/9; border-radius:16px; overflow:hidden; background:var(--surface); }
.viewer img,.viewer video,.viewer iframe { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border:0; }
.viewer .play { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); z-index:2; width:64px; height:64px; border-radius:50%; background:rgb(25 25 29 / .6); color:var(--text); display:grid; place-items:center; backdrop-filter:blur(8px); }
.viewer .play svg { width:22px; height:22px; fill:currentColor; margin-left:3px; }
.thumbs { display:flex; gap:8px; margin-top:10px; overflow-x:auto; padding-bottom:4px; scrollbar-width:thin; }
.thumbs button { flex:none; width:96px; aspect-ratio:16/10; border-radius:10px; overflow:hidden; padding:0; background:var(--surface); position:relative; opacity:.5; }
.thumbs button[aria-pressed="true"] { opacity:1; }
.thumbs img { width:100%; height:100%; object-fit:cover; display:block; }
.thumbs .vid::after { content:"▶"; position:absolute; inset:0; display:grid; place-items:center; color:var(--text); font-size:14px; background:rgb(0 0 0 / .25); }
.modes { display:grid; gap:8px; }
.modes button { display:flex; align-items:center; gap:12px; text-align:left; padding:12px 14px; border-radius:12px; background:var(--control); color:var(--text); }
.modes button[aria-pressed="true"] { background:var(--control-selected); }
.modes button span { font-size:12px; margin-left:auto; white-space:nowrap; }
.modes button em { font-size:10px; font-style:normal; color:var(--text-muted); }
.modes svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.4; flex:none; }
.modes .sub { margin:12px 0 4px; }
.go,.go-alt { border-radius:16px; padding:14px 24px; background:var(--control); color:var(--text); font-weight:500; }
.go:disabled { opacity:.45; }
.go.on { color:var(--ok); }
.tiles { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.tiles button { display:flex; align-items:center; justify-content:space-between; gap:8px; text-align:left; padding:12px; border-radius:10px; background:var(--control); color:var(--text); }
.tiles button[aria-pressed="true"] { background:var(--control-selected); }
.tiles button i { font-size:11px; font-style:normal; color:var(--text-muted); }
.rng { margin-bottom:22px; }
.rng .lbl { display:flex; justify-content:space-between; }
.rng .lbl b { font-weight:400; color:var(--text); }
input[type=range] { appearance:none; width:100%; background:transparent; height:28px; margin:4px 0 0; }
input[type=range]::-webkit-slider-runnable-track { height:3px; border-radius:3px; background:var(--control-selected); }
input[type=range]::-moz-range-track { height:3px; border-radius:3px; background:var(--control-selected); }
input[type=range]::-webkit-slider-thumb { appearance:none; width:18px; height:18px; border-radius:50%; background:var(--text); border:0; margin-top:-7.5px; cursor:pointer; }
input[type=range]::-moz-range-thumb { width:18px; height:18px; border-radius:50%; background:var(--text); border:0; }
.qty { display:flex; align-items:center; border-radius:12px; background:var(--control); margin-top:8px; }
.qty button { width:44px; height:44px; border-radius:12px; background:transparent; font-size:18px; }
.qty input { flex:1; min-width:0; width:100%; height:44px; border:0; background:transparent; text-align:center; appearance:textfield; }
.qty input::-webkit-outer-spin-button,.qty input::-webkit-inner-spin-button { appearance:none; margin:0; }

/* Account, order lists and legal content */
.two { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); gap:20px; }
.list { display:grid; gap:8px; min-width:0; }
.lr { display:grid; grid-template-columns:40px 46px minmax(0,1fr) 96px 64px; gap:14px; align-items:center; padding:14px 18px; border-radius:16px; background:var(--surface); color:var(--text-muted); text-align:left; width:100%; }
.lr b { font-weight:400; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lr .pos { font-size:12px; color:var(--text-dim); text-align:center; }
.lr .ic { width:40px; height:40px; }
.lr .cell { text-align:right; font-size:15px; min-width:0; }
.lr .cell span { display:block; font-size:12px; color:var(--text-dim); }
.lr .cell .v { font-size:14px; color:inherit; white-space:nowrap; }
.step { grid-template-columns:40px minmax(0,1fr) auto; }
.step .why { font-size:12px; color:var(--ok); white-space:nowrap; }
.step small { display:block; color:var(--text-muted); font-size:13px; white-space:normal; }
.order { grid-template-columns:minmax(0,1fr) auto auto; }
.order small { display:block; color:var(--text-muted); font-size:12px; }
.status { font-size:12px; border-radius:8px; padding:4px 10px; white-space:nowrap; color:var(--text-muted); background:var(--control); }
.status.ok { color:var(--ok); }
.status.wait { color:var(--warning); }
.status.bad { color:var(--bad); }
.acct { display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; margin:0 0 20px; padding:24px; border-radius:20px; background:var(--surface); }
.acct-copy { display:grid; gap:6px; max-width:560px; }
.acct-copy h2 { margin:0; }
.acct-copy p { margin:0; color:var(--text-muted); font-size:14px; }
.acct-btns { display:flex; gap:8px; flex-wrap:wrap; }
.acct .pillbtn svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.acct-dc svg circle { fill:currentColor; stroke:none; }
.acct-who { display:flex; align-items:center; gap:16px; min-width:0; }
.acct-who>div { display:grid; gap:4px; min-width:0; }
.acct-who b { font-weight:500; font-size:20px; letter-spacing:-.03em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.acct-who small { display:flex; align-items:center; gap:6px; flex-wrap:wrap; color:var(--text-muted); font-size:13px; }
.acct-ava { width:56px; height:56px; border-radius:50%; flex:none; display:grid; place-items:center; overflow:hidden; font-size:22px; background:var(--surface-raised); color:var(--text); }
.acct-ava img { width:100%; height:100%; object-fit:cover; }
.acct-via { display:inline-grid; place-items:center; width:20px; height:20px; border-radius:50%; background:var(--control); }
.acct-via svg { width:12px; height:12px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.acct-via.dc svg circle { fill:currentColor; stroke:none; }
.doc { max-width:860px; }
.doc-head { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.doc-nav { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0 26px; }
.doc-nav .pillbtn { font-size:13px; padding:10px 16px; }
.doc-lang { display:flex; gap:14px; font-size:13px; }
.doc-lang a[aria-current] { color:var(--text); text-decoration:underline; text-underline-offset:4px; }
.doc .txt a,.co-note a { color:var(--text); text-decoration:underline; text-underline-offset:3px; overflow-wrap:anywhere; }
.doc article { border-radius:20px; background:var(--surface); padding:clamp(22px,3vw,40px); }
.doc h1 { font-size:clamp(30px,3.6vw,48px); font-weight:500; letter-spacing:-.04em; line-height:1.1; margin:10px 0 8px; }
.doc .subt { color:var(--text-muted); font-size:13px; margin:0 0 26px; }
.doc h2 { font-weight:500; font-size:20px; letter-spacing:-.03em; margin:30px 0 10px; }
.doc .txt { color:var(--text-muted); white-space:pre-line; margin:0; overflow-wrap:anywhere; line-height:1.7; }

/* Checkout also serves signed order links. */
.co-grid { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); gap:20px; align-items:start; }
.co-line { display:grid; grid-template-columns:46px minmax(0,1fr) auto; gap:14px; align-items:center; padding:14px; border-radius:12px; background:var(--control); }
.co-line>div:only-child { grid-column:1/-1; }
.co-line b { display:block; font-weight:400; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.co-line small { display:block; color:var(--text-muted); font-size:13px; }
.co-line strong { font-weight:500; font-size:20px; white-space:nowrap; }
.co-lbl { display:block; margin:22px 0 10px; }
.co-curs { display:flex; flex-wrap:wrap; gap:6px; }
.co-curs button { background:var(--control); color:var(--text-muted); border-radius:10px; min-height:40px; padding:8px 14px; font-size:12px; }
.co-curs button[aria-pressed="true"] { background:var(--control-selected); color:var(--text); }
.co-field { display:grid; gap:6px; margin-bottom:12px; }
.co-field span { font-size:13px; color:var(--text-muted); }
.co-field em { font-style:normal; color:var(--text-dim); }
.co-field input,.co-field select { width:100%; background:var(--control); border:0; border-radius:12px; padding:13px 16px; color:var(--text); }
.co-field input::placeholder { color:var(--text-dim); }
.co-note { margin-top:14px; }
.co-note a,.co-result a:not(.pillbtn) { text-decoration:underline; text-underline-offset:3px; }
.co-methods { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:8px; margin-bottom:18px; }
.co-methods button { display:grid; gap:3px; text-align:left; padding:14px 18px; border-radius:14px; background:var(--control); color:var(--text-muted); }
.co-methods button b { font-weight:500; color:var(--text); font-size:14px; }
.co-methods button small { font-size:12px; color:var(--text-muted); }
.co-methods button[aria-checked="true"] { background:var(--control-selected); }
.co-methods button:disabled { opacity:.5; cursor:wait; }
.co-pane { display:grid; gap:14px; align-content:start; overflow-anchor:none; }
.co-pay { overflow-anchor:none; }
.co-step { display:grid; gap:8px; }
.co-copy { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 12px 14px 18px; border-radius:12px; background:var(--control); }
.co-copy b { font-weight:400; font-size:18px; overflow-wrap:anywhere; }
.co-req small { display:block; color:var(--text-muted); font-size:13px; margin-top:2px; }
.co-copy .cbtn { width:38px; height:38px; flex:none; }
.co-file { position:relative; display:grid; place-items:center; min-height:88px; padding:16px; border-radius:12px; background:var(--control); color:var(--text-muted); font-size:13px; text-align:center; cursor:pointer; }
.co-file.has { color:var(--ok); }
.co-file:focus-within { outline:2px solid var(--focus); outline-offset:4px; }
.co-file input { position:absolute; inset:0; opacity:0; cursor:pointer; }
.co-go { justify-self:start; padding:14px 26px; }
.co-err { margin:0; color:var(--bad); font-size:13px; }
.co-muted { margin:0; color:var(--text-muted); font-size:14px; }
.co-qrrow { display:flex; align-items:center; gap:18px; flex-wrap:wrap; margin-top:6px; }
.co-qr { width:150px; height:150px; border-radius:12px; background:white; padding:8px; flex:none; }
.co-qr svg { width:100%; height:100%; display:block; }
.co-qract { display:grid; gap:10px; justify-items:start; }
.co-wait { display:flex; align-items:center; gap:8px; }
.co-dot { width:8px; height:8px; border-radius:50%; background:var(--ok); animation:coPulse 1.4s ease-in-out infinite; }
@keyframes coPulse { 0%,100% { opacity:.3; } 50% { opacity:1; } }
.co-pp { min-height:60px; max-width:380px; }
.co-skel { height:120px; border-radius:12px; background:linear-gradient(100deg,var(--surface) 30%,var(--surface-raised) 50%,var(--surface) 70%); background-size:200% 100%; animation:coSk 1.4s linear infinite; }
@keyframes coSk { to { background-position:-200% 0; } }
.co-result { display:grid; gap:16px; max-width:760px; }
.co-status { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.co-status .status { font-size:13px; padding:6px 14px; }
.co-lines { display:grid; gap:8px; }
.co-total { display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding-top:12px; border-top:1px solid var(--separator); color:var(--text-muted); }
.co-total strong { font-weight:500; font-size:26px; color:var(--text); white-space:nowrap; }
.co-sum .co-total { margin-top:14px; }
.co-multi { grid-column:1/-1; margin:2px 0 0; }
.co-multi a { text-decoration:underline; text-underline-offset:3px; }

/* Cart page and sheet */
.cart-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(300px,380px); gap:20px; align-items:start; }
.cx-list { display:grid; gap:10px; min-width:0; }
.cx { display:grid; grid-template-columns:132px minmax(0,1fr) auto 150px auto; gap:18px; align-items:center; padding:12px 18px 12px 12px; border-radius:20px; background:var(--surface); }
.cx-media { position:relative; display:block; aspect-ratio:16/10; border-radius:12px; overflow:hidden; background:var(--surface-raised); }
.cx-media img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.cx-media .art span { font-size:22px; }
.cx-info { display:grid; gap:4px; min-width:0; justify-items:start; }
.cx-title { font-size:17px; letter-spacing:-.03em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.cx-sub { font-size:12px; color:var(--text-muted); }
.cx-plan { font-size:13px; color:var(--text-muted); margin-top:4px; }
.cx-sel { margin-top:4px; max-width:100%; }
.cx-sel select { max-width:260px; text-overflow:ellipsis; }
.cx-nle { display:inline-flex; align-items:center; gap:8px; border-radius:12px; background:var(--control); padding:4px 14px 4px 4px; }
.cx-nle input { width:74px; height:34px; border:0; border-radius:8px; background:var(--control); text-align:center; appearance:textfield; }
.cx-nle input::-webkit-outer-spin-button,.cx-nle input::-webkit-inner-spin-button { appearance:none; margin:0; }
.cx-nle span { font-size:12px; color:var(--text-muted); }
.cx-sum { display:grid; justify-items:end; gap:2px; text-align:right; }
.cx-sum strong { font-weight:500; font-size:18px; white-space:nowrap; }
.cx-sum small { font-size:12px; color:var(--text-muted); }
.cx-solo { font-size:12px; color:var(--text-muted); text-decoration:underline; text-underline-offset:3px; margin-top:4px; }
.cx-acts { display:flex; gap:6px; }
.cx-acts .cbtn { width:38px; height:38px; }
.cart-sum { position:sticky; top:20px; display:grid; gap:14px; }
.cart-sum h3 { margin:0; }
.cart-sum .facts { margin-top:0; }
.cart-sum .facts div { gap:16px; }
.cx-fl { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cart-go { justify-self:stretch; text-align:center; }
.cart-clear { justify-self:start; }
.cx-count { font-size:.5em; color:var(--text-muted); vertical-align:super; }
dialog.sheet { border:0; background:var(--surface); color:var(--text); border-radius:24px; padding:0; width:min(580px,calc(100vw - 24px)); max-height:min(86vh,820px); overflow:hidden; box-shadow:0 24px 70px rgb(0 0 0 / .3); }
dialog.sheet[open] { display:flex; flex-direction:column; }
dialog.sheet::backdrop { background:rgb(0 0 0 / .55); backdrop-filter:blur(8px); }
.sheet-head { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:24px 24px 14px; }
.sheet-head h2 { margin:0; font-weight:500; font-size:26px; letter-spacing:-.04em; display:flex; gap:12px; align-items:baseline; }
.sheet-head h2 span { font-size:13px; color:var(--text-muted); }
.sheet-body { padding:0 16px; overflow:auto; display:grid; gap:8px; align-content:start; }
.sheet-foot { padding:16px 24px 24px; display:grid; gap:12px; border-top:1px solid var(--separator); margin-top:14px; }
.ci { display:grid; grid-template-columns:46px minmax(0,1fr) auto; gap:14px; align-items:center; padding:12px; border-radius:14px; background:var(--control); }
.ci b { display:block; font-weight:400; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ci small { display:block; color:var(--text-muted); font-size:12px; }
.ci .right { display:grid; justify-items:end; gap:6px; }
.ci .right strong { font-weight:400; font-size:15px; white-space:nowrap; }
.ci-buy { padding:7px 14px; font-size:13px; }
.stepper { display:inline-flex; align-items:center; border-radius:12px; background:var(--control); }
.stepper button { width:34px; height:34px; border-radius:10px; background:transparent; color:var(--text-muted); }
.stepper button:disabled { opacity:.35; }
.stepper span { min-width:28px; text-align:center; font-size:12px; }
.tot { display:flex; justify-content:space-between; align-items:baseline; font-size:15px; color:var(--text-muted); }
.tot strong { font-weight:500; font-size:24px; color:var(--text); }
.note { color:var(--text-muted); font-size:12px; margin:0; line-height:1.65; }
.sheet-foot .btns { display:flex; gap:8px; flex-wrap:wrap; }
.sheet-foot .btns .pillbtn { flex:1; }
.sheet-empty { padding:40px 10px 30px; text-align:center; color:var(--text-muted); display:grid; gap:16px; justify-items:center; }
.toast { position:fixed; left:50%; bottom:calc(24px + env(safe-area-inset-bottom,0px)); transform:translate(-50%,20px); opacity:0; background:var(--surface-raised); color:var(--text); padding:11px 20px; border-radius:14px; transition:opacity .18s ease,transform .18s var(--ease); z-index:130; pointer-events:none; font-size:14px; max-width:calc(100vw - 32px); text-align:center; }
.toast.show { opacity:1; transform:translate(-50%,0); }

.outro { margin-top:64px; display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap; padding-top:30px; }
.outro h3 { font-size:clamp(24px,2.4vw,30px); font-weight:400; letter-spacing:-.03em; margin:0; max-width:29ch; line-height:1.25; }
.outro .row-btns { display:flex; gap:8px; flex-wrap:wrap; }
footer.foot { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; margin-top:30px; color:var(--text-muted); font-size:12px; line-height:1.7; }
footer.foot nav { display:flex; gap:12px 18px; flex-wrap:wrap; }
footer.foot button { background:transparent; padding:0; color:inherit; font-size:inherit; display:inline-flex; gap:6px; align-items:center; }
footer.foot button svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.8; }
footer.foot a,footer.foot button { min-height:44px; display:inline-flex; align-items:center; }

@media (hover:hover) and (pointer:fine) {
  .pillbtn:hover,.pillbtn.dark:hover,.cbtn:hover,.modes button:hover,.tiles button:hover,.co-curs button:hover,.co-methods button:hover,.qty button:hover,.stepper button:hover:not(:disabled) { background:var(--control-hover); color:var(--text); }
  .rail a:hover { background:var(--control-hover); color:var(--text); }
  .rail a:hover .tip { opacity:1; }
  .back:hover,.cx-solo:hover,footer.foot a:hover,footer.foot button:hover { color:var(--text); }
  .thumbs button:hover { opacity:1; }
  .cx-title:hover,.lr.order b a:hover { text-decoration:underline; text-underline-offset:3px; }
}
@media (max-width:1180px) {
  .two,.pinfo { grid-template-columns:minmax(0,1fr); }
  .cx { grid-template-columns:110px minmax(0,1fr) auto; row-gap:10px; }
  .cx-sum { grid-column:2; justify-items:start; text-align:left; }
  .cx-acts { grid-column:3; grid-row:2; justify-self:end; }
}
@media (max-width:1000px) {
  .co-grid,.cart-grid { grid-template-columns:minmax(0,1fr); }
  .cart-sum { position:static; }
}
@media (max-width:820px) {
  .rail { flex-direction:row; }
  .rail .sp,.rail .m-hide,.rail .tip { display:none; }
  .lr { grid-template-columns:30px 40px minmax(0,1fr) auto; padding:12px; }
  .lr .c-hide { display:none; }
  .step { grid-template-columns:30px minmax(0,1fr); }
  .step .why { display:none; }
  .order { grid-template-columns:minmax(0,1fr) auto; row-gap:8px; }
  .order .status { grid-column:1/-1; justify-self:start; }
  .toast { bottom:calc(84px + env(safe-area-inset-bottom,0px)); }
  dialog.sheet { width:100vw; max-width:100vw; max-height:88vh; margin:auto 0 0; border-radius:24px 24px 0 0; }
  .co-methods { grid-template-columns:1fr; }
  .co-qr { width:130px; height:130px; }
  .outro .row-btns { width:100%; }
  .outro .pillbtn { flex:1 1 auto; }
}
@media (max-width:560px) {
  .cx { grid-template-columns:84px minmax(0,1fr) auto; grid-template-areas:'m i i' 'q s a'; gap:12px; padding:12px; border-radius:16px; }
  .cx-media { grid-area:m; width:84px; }
  .cx-info { grid-area:i; }
  .cx-qty { grid-area:q; width:max-content; position:relative; z-index:1; }
  .cx-sum { grid-area:s; grid-column:auto; justify-items:end; text-align:right; }
  .cx-acts { grid-area:a; grid-column:auto; grid-row:auto; }
  .cx-sel select { max-width:100%; }
  .cx-acts .cbtn { width:34px; height:34px; }
  .acct { padding:18px; }
  .acct-btns,.acct-btns .pillbtn,.acct.is-in .pillbtn { width:100%; justify-content:center; }
}
/* Hide the first frame until the entrance controller takes over. */
.arrival-pending .market-shell :is(.locale-tools,.rail,.market-heading,.market-layout,.outro,.foot,.hero-copy,.hero-foot,.hero-showcase) { visibility:hidden; }
body.still *,body.still *::before,body.still *::after { animation:none!important; transition:none!important; }
body.still .card.pre,body.still .rv { opacity:1; transform:none; translate:none; filter:none; }
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none!important; transition:none!important; }
  html { scroll-behavior:auto; }
}
