/* soigiā · dark glass: a near-black display lit from the top, three glass elevations, one lit yellow tag for the best price. */

/* Beau Sans is the only typeface: Regular, Medium, Bold, subset to Vietnamese + Latin (see fonts/README). The fallback face
   is Arial resized to Beau Sans's width and line metrics, so the swap does not move the layout. */
@font-face { font-family: "Beau Sans"; font-weight: 400; font-display: swap; src: url(fonts/beau-sans/beau-sans-regular.woff2) format("woff2"); }
@font-face { font-family: "Beau Sans"; font-weight: 500; font-display: swap; src: url(fonts/beau-sans/beau-sans-medium.woff2) format("woff2"); }
@font-face { font-family: "Beau Sans"; font-weight: 700; font-display: swap; src: url(fonts/beau-sans/beau-sans-bold.woff2) format("woff2"); }
@font-face { font-family: "Beau Sans Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 104.2%; ascent-override: 108.8%; descent-override: 35.2%; line-gap-override: 0%; }

/* Weights: 400 text, 500 emphasis (labels, buttons, brands), 700 headlines and the best price. Hex first for browsers without OKLCH. */
:root {
  --bg: #0b0d12; --bg: oklch(0.155 0.012 265);           /* the display glass, lit from the top */
  --s1: #13161c; --s1: oklch(0.195 0.013 265);           /* elevation 1: panels, rail */
  --s2: #1a1d24; --s2: oklch(0.225 0.014 265);           /* elevation 2: strips, tags, tiles */
  --s3: #22262e; --s3: oklch(0.265 0.015 265);           /* elevation 3: hover, popover */
  --ink: #f1f2f5; --ink: oklch(0.96 0.004 265);
  --muted: #a6abb6; --muted: oklch(0.74 0.014 265);      /* ≥ 7:1 on every surface */
  --dim: #9a9fa9; --dim: oklch(0.7 0.014 265);           /* ≥ 5.7:1 on s3, legible in daylight */
  --hair: rgb(255 255 255 / .08);
  --hi: rgb(255 255 255 / .07);                          /* the specular top edge of each glass surface */
  --edge: #6b707a; --edge: oklch(0.53 0.012 265);        /* form fields and buttons: ≥ 3:1 on every surface */
  --yellow: #fbd530; --yellow: oklch(0.88 0.17 95);      /* the best price only */
  --blue: #8fc2f0; --blue: oklch(0.8 0.08 240);          /* "shops agree" mark, focus */
  --coral: #f2786d; --coral: oklch(0.72 0.15 27);        /* shops disagree, errors */
  --amber: #f0a660; --amber: oklch(0.79 0.12 62);        /* data older than 36 h */
  --violet: #c4a8f5; --violet: oklch(0.8 0.1 300);       /* gift mark */
  --focus: #9fd0ff; --focus: oklch(0.84 0.09 240);
  --shop-w: 88px;
  --glass: linear-gradient(180deg, var(--s2), var(--s1));
  --glass-hi: linear-gradient(180deg, var(--s3), var(--s2));
  --lift: 0 1px 2px rgb(0 0 0 / .35), 0 12px 28px -16px rgb(0 0 0 / .8);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
  scrollbar-color: oklch(0.38 0.012 265) transparent;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; } /* no background here: the body's light and grain propagate to the whole canvas */
body {
  margin: 0; color: var(--ink); font: 400 15px/1.45 "Beau Sans", "Beau Sans Fallback", sans-serif;
  /* the light sits behind the content, top centre; the grain dithers the dark gradient so it does not band */
  background: url(grain.svg), radial-gradient(90rem 38rem at 50% -14rem, oklch(0.3 0.045 262), transparent 70%), var(--bg);
  background-repeat: repeat, no-repeat, no-repeat;
}
::selection { background: oklch(0.45 0.1 250); color: #fff; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select, textarea, kbd, code, pre, samp { font: inherit; color: inherit; } /* no UA monospace or system font anywhere */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.nav a:focus-visible, .chips :focus-visible { outline-offset: -3px; } /* inside a scroller the ring would be clipped */
.chip[aria-pressed="true"]:focus-visible, .chip[aria-current]:focus-visible, .btn.primary:focus-visible { outline: 2px solid var(--bg); outline-offset: -5px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 10; padding: 10px 14px; background: var(--s3); border: 1px solid var(--edge); border-radius: 10px; }
.skip:focus { top: 8px; }
.num, .code, .price, .c .v, .total > b, .picked b, .filter-btn b, .disc, .qty input { font-variant-numeric: tabular-nums; } /* prices align digit for digit */
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- header */

.top { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; padding: 8px 16px 0; border-bottom: 1px solid var(--hair); background: linear-gradient(180deg, rgb(255 255 255 / .035), transparent); }
.logo { display: flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.logo img { display: block; height: 24px; width: auto; }
/* the wordmark is live text in the UI face; the mark beside it is the wolf */
.word { font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.logo .word { font-size: 19px; }
.nav { display: flex; gap: 2px; order: 3; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; width: calc(100% + 32px); }
.nav a, .toplink { display: flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; white-space: nowrap; font-weight: 500; color: var(--muted); transition: color .15s; }
.nav a[aria-current], .toplink[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.nav a:hover, .toplink:hover { color: var(--ink); }
.nav a { justify-content: center; min-width: 44px; } /* "PC" is a 44px target too */
.top-end { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0 4px; min-width: 0; margin-left: auto; } /* wraps at 200% zoom */
.age { order: 4; width: 100%; padding: 2px 0 6px; font-size: 12px; color: var(--muted); }
.picked b { margin-left: 6px; padding: 0 7px; border-radius: 999px; background: rgb(255 255 255 / .1); color: var(--ink); }

/* ---------------------------------------------------------------- hero: landing only, collapses on the first choice */

.hero { display: grid; grid-template-rows: 1fr; }
.hero.gone { grid-template-rows: 0fr; opacity: 0; visibility: hidden; }
.hero-clip { min-height: 0; overflow: hidden; }
.hero-in { display: grid; gap: 24px; padding: 36px 16px 28px; }
.hero-copy { display: grid; gap: 14px; align-content: center; }
.hero-brand { display: flex; align-items: center; gap: 14px; }
.hero-mark { display: block; width: auto; height: 44px; }
.hero-brand .word { font-size: 40px; letter-spacing: -0.035em; }
.hero-line { max-width: 22ch; font-size: 26px; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; text-wrap: balance; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: 10px; } /* two across on a phone, one at 200% zoom */
.tile {
  --r: 16px;
  display: grid; align-content: start; gap: 6px; min-height: 96px; min-width: 0; overflow-wrap: anywhere; padding: 14px; text-align: left; text-decoration: none; cursor: pointer;
  background: var(--glass); border: 1px solid rgb(255 255 255 / .06); border-radius: var(--r); background-clip: padding-box;
  box-shadow: inset 0 1px 0 var(--hi), var(--lift);
}
.tile:hover { background: var(--glass-hi); background-clip: padding-box; }
.tile-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; }
.tile-h b { font-size: 16px; font-weight: 500; line-height: 1.25; }
.tile-n { font-size: 12px; color: var(--muted); white-space: nowrap; }
.tile-note { font-size: 12px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------------------------------------------------------------- shared bits */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px;
  background: var(--glass); border: 1px solid var(--edge); border-radius: 10px; background-clip: padding-box;
  box-shadow: inset 0 1px 0 var(--hi); text-decoration: none; font-weight: 500; cursor: pointer; transition: border-color .15s;
}
.btn:hover { border-color: var(--muted); background: var(--glass-hi); background-clip: padding-box; }
.btn.primary { background: linear-gradient(180deg, #fff, oklch(0.88 0.006 265)); border-color: transparent; color: var(--bg); box-shadow: inset 0 1px 0 #fff, var(--lift); }
.btn.ghost { border-color: transparent; background: none; box-shadow: none; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; background: rgb(255 255 255 / .04); border: 1px solid var(--edge); border-radius: 999px; white-space: nowrap; text-decoration: none; font-weight: 500; font-size: 14px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.chip:hover { border-color: var(--muted); background-color: rgb(255 255 255 / .08); }
.chip[aria-pressed="true"], .chip[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip-x { flex: none; display: inline-flex; }
.chip-x .chip { border-radius: 999px 0 0 999px; font-weight: 400; }
.chip-x button { min-width: 44px; background: rgb(255 255 255 / .04); border: 1px solid var(--edge); border-left: 0; border-radius: 0 999px 999px 0; cursor: pointer; font-size: 18px; color: var(--muted); }
.chip-x button:hover { color: var(--ink); }
.chip-x .x, .q-clear .x { display: block; width: 14px; height: 14px; margin: auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.note, .hint { font-size: 14px; color: var(--muted); }
.title { font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
.state {
  display: grid; justify-items: start; gap: 12px; max-width: 34rem; margin: 24px 0; padding: 22px;
  background: var(--glass); border: 1px solid rgb(255 255 255 / .06); border-radius: 16px; background-clip: padding-box; box-shadow: inset 0 1px 0 var(--hi), var(--lift);
}
.pre-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; }
.detail summary { display: inline-flex; align-items: center; min-height: 32px; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; list-style: none; }
.detail summary::-webkit-details-marker { display: none; }
.detail summary::after { content: ""; width: 6px; height: 6px; margin: 0 0 3px 9px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; rotate: 45deg; }
.detail[open] { flex-basis: 100%; }
.detail[open] summary::after { rotate: 225deg; margin-bottom: -2px; }
.tips { display: flex; flex-wrap: wrap; gap: 8px; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; font-size: 13px; color: var(--muted); }
.legend b { font-weight: 400; color: var(--ink); }
.legend b.mk { margin: 0; font-size: inherit; }
.gift-key { display: inline-flex; align-items: center; gap: 5px; }
.gift-key svg, .gift svg { width: 15px; height: 15px; fill: none; stroke: var(--violet); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.gift-note { color: var(--ink); }
.more-shops { margin-left: auto; color: var(--ink); }
.mk { margin-left: 3px; font-size: 13px; }
.mk .dot { display: inline-block; width: .62em; height: .62em; border: 1.5px solid currentColor; border-radius: 50%; vertical-align: .02em; }
.mk.maker .dot, .mk.model .dot { background: currentColor; }
.mk.shops .dot { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.word .mac { position: relative; }
.word .mac::after { content: ""; position: absolute; left: .1em; right: .08em; top: .36em; height: .085em; background: currentColor; } /* ā: Beau Sans has no macron */
.mk.maker, .mk.model { color: var(--ink); }
.mk.shops { color: var(--blue); }
.mk.one { color: var(--muted); }
.mk.conflict, .legend .mk.conflict { color: var(--coral); font-weight: 500; }
.unk { color: var(--muted); }
.old { color: var(--amber); }
.bad { color: var(--coral); }

/* gift mark: a real button, 44px on touch; the lines open in one shared popover */
.gift { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; border: 0; border-radius: 10px; cursor: pointer; }
.gift svg { width: 18px; height: 18px; }
.gift:hover, .gift[aria-expanded="true"] { background: rgb(196 168 245 / .14); }
.gift-pop {
  position: fixed; inset: auto; margin: 0; width: max-content; max-width: min(320px, calc(100vw - 16px)); padding: 14px 16px;
  color: var(--ink); background: rgb(34 38 46 / .9); border: 1px solid rgb(255 255 255 / .1); border-radius: 14px; background-clip: padding-box;
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 20px 44px -14px rgb(0 0 0 / .8);
}
.gift-h { font-size: 14px; font-weight: 500; }
.gift-lines { margin: 8px 0 0; padding-left: 18px; font-size: 14px; line-height: 1.45; }
.gift-lines li + li { margin-top: 4px; }
.gift-lines li::marker { color: var(--violet); }
.gift-price { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hair); font-size: 14px; }
/* no popover API: the same lines open in place, under the mark */
.gift-inline { flex-basis: 100%; min-width: 0; margin: 4px 0 8px; padding: 12px 14px; color: var(--ink); text-align: left; white-space: normal; background: var(--glass-hi); border: 1px solid rgb(255 255 255 / .1); border-radius: 12px; background-clip: padding-box; box-shadow: inset 0 1px 0 var(--hi); }
.c, .buy { flex-wrap: wrap; }

/* ---------------------------------------------------------------- layout */

.head { display: contents; }
main { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 32px; }
main:focus { outline: none; }
.bar {
  position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 -16px; padding: 8px 16px 12px;
  background: rgb(11 13 18 / .74); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid var(--hair);
}
.search { position: relative; display: flex; align-items: center; order: -1; flex: 1 1 100%; min-width: 0; }
.search > svg { position: absolute; left: 12px; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; pointer-events: none; }
.search input { width: 100%; min-height: 44px; padding: 0 44px 0 38px; background: oklch(0.14 0.012 265); border: 1px solid var(--edge); border-radius: 10px;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / .5); font-size: 16px; color: var(--ink); }
.search input::-webkit-search-cancel-button { display: none; }
.q-key { position: absolute; right: 10px; display: none; min-width: 22px; padding: 1px 6px; font-size: 12px; line-height: 1.4; text-align: center; color: var(--muted); border: 1px solid var(--edge); border-radius: 6px; pointer-events: none; }
.q-clear { position: absolute; right: 0; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; border: 0; border-radius: 10px; color: var(--muted); cursor: pointer; }
.q-clear:hover { color: var(--ink); }
.q-clear[hidden] { display: none; }
.opts .search { order: 0; }
.opts li.grp { position: sticky; top: 0; z-index: 1; padding: 10px 12px 6px; font-size: 13px; font-weight: 500; color: var(--amber); background: oklch(0.2 0.012 265); border-bottom: 1px solid var(--hair); }
.o-note { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.opts li.none { padding: 12px; font-size: 14px; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 8px; width: 100%; font-size: 13px; color: var(--muted); }
.qty input { width: 4.5rem; min-height: 40px; padding: 0 8px; background: oklch(0.14 0.012 265); border: 1px solid var(--edge); border-radius: 10px; font-size: 16px; color: var(--ink); text-align: center; }
.toplink .wide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bar-picked { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
/* a shared comparison link: says whose list this is, and offers to keep it */
.shared-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--hair), inset 0 1px 0 var(--hi); font-size: 14px; }
.shared-bar p { margin: 0 auto 0 0; color: var(--muted); }
.count { order: 3; flex-basis: 100%; min-width: 0; font-size: 13px; color: var(--muted); }
.filter-btn { white-space: nowrap; }
.filter-btn b { font-weight: 400; color: var(--muted); }
.sort { display: flex; align-items: center; gap: 6px; margin-left: auto; font-size: 14px; color: var(--muted); white-space: nowrap; flex: none; }
.sort span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
select, input[type=number], input:not([type]) {
  min-height: 44px; padding: 0 10px; background: oklch(0.14 0.012 265); border: 1px solid var(--edge); border-radius: 10px;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / .5); font-size: 16px; /* 16px: no iOS focus zoom */
}
select:hover, input:hover { border-color: var(--muted); }
::placeholder { color: var(--dim); opacity: 1; }
select { max-width: 100%; }

/* filters: a bottom-sheet dialog on phone, a plain rail on desktop; the one form moves between them */
.rail { display: none; }
.sheet {
  width: 100%; max-width: none; max-height: 88dvh; margin: auto 0 0; padding: 0; border: 0; border-radius: 20px 20px 0 0; color: var(--ink);
  background: linear-gradient(180deg, var(--s2), var(--s1) 12rem); box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 -20px 40px -20px rgb(0 0 0 / .8);
  overflow-y: auto; overscroll-behavior: contain;
}
.sheet::backdrop { background: rgb(0 0 0 / .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; background: rgb(26 29 36 / .82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--hair); }
.sheet-head h2, .rail-title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
form { display: grid; gap: 18px; padding: 14px 16px 20px; }
.fields { display: grid; gap: 18px; }
.f { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.f > label, .f legend { font-size: 13px; font-weight: 500; padding: 0; color: var(--muted); }
.f legend { margin-bottom: 6px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair input, .pair select, .f > input, .f > select { width: 100%; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0 20px; }
.checks label, .f.check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; }
.f.check { font-weight: 400; color: var(--ink); }
.checks .n, .f.check .n { margin-left: auto; padding-left: 4px; font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; } /* how many products have the option */
.checks label.zero, .f.check.zero, .checks label.zero .n, .f.check.zero .n { color: var(--dim); } /* ticked, but nothing left with it */
input[type=checkbox] { width: 18px; height: 18px; margin: 0; accent-color: var(--focus); }
.f.save { padding-top: 16px; border-top: 1px solid var(--hair); }
.see { position: sticky; bottom: 12px; }

/* ---------------------------------------------------------------- tag (phone first): a glass card with a lit price */

.rows { min-width: 0; }
.tag.head-row { display: none; }
.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.tag {
  --row: var(--glass);
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "id id" "best pick" "more more" "shops shops"; align-content: start;
  background: var(--row); border: 1px solid rgb(255 255 255 / .06); border-radius: 16px; background-clip: padding-box; box-shadow: inset 0 1px 0 var(--hi), var(--lift);
}
.tag .id { grid-area: id; display: grid; gap: 4px; padding: 14px 14px 8px; min-width: 0; }
/* line 1: brand then model, the row's strongest text; line 2: the maker's code (data) */
.name { font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.name .brand { font-weight: 500; color: var(--ink); }                 /* the brand leads: ink, semibold */
.name .model { color: oklch(0.86 0.01 265); }                         /* the model follows in a softer tone, regular weight */
.o-name .brand { font-weight: 500; }
.name .by, .o-name .by { font-weight: 400; color: var(--muted); } /* "PC của Phong Vũ", "Máy lắp sẵn": who built it, not a maker */
.more-opts { justify-self: start; margin-top: 4px; min-height: 44px; }
.code-line { display: flex; align-items: baseline; gap: 4px 8px; min-width: 0; }
.code { min-width: 0; font-size: 13px; font-feature-settings: "ss01"; letter-spacing: .02em; /* ss01: serifed I, so I and l differ in codes */ color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; }
.nocode { font-size: 12px; color: var(--muted); }
.code-line.none, .mk.sure { display: none; }
.tag.open .code-line.none { display: flex; }
.tag.open .mk.sure { display: inline; }
/* maker images sit on a white tile: they are shot on #fff, and multiply would blacken them on this dark ground */
.pimg { display: grid; place-items: center; width: 56px; aspect-ratio: 1; overflow: hidden; background: #fff; border-radius: 10px; }
.pimg img { width: 100%; height: 100%; padding: 4px; object-fit: contain; }
.id.with-img { grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; }
.id.with-img > :not(.pimg) { grid-column: 2; }
.id.with-img > .pimg { grid-row: 1 / span 4; align-self: start; }
.pimg.open-only { display: none; width: 160px; margin-bottom: 4px; }
.tag.open .pimg.open-only { display: grid; }
.pimg.slot-img { width: 72px; }
.part .id.with-img { grid-template-columns: 72px minmax(0, 1fr); }
.tray { font-size: 13px; color: var(--muted); }
.bare { font-size: 13px; font-weight: 500; color: var(--amber); }
/* Apple rows: the colour each shop's price is for and the other colours it sells; an opened row only */
.colors { display: none; margin: 2px 0 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.4; color: var(--muted); }
.tag.open .colors { display: grid; gap: 2px; }
.spec { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: 14px; }
.spec > span { display: inline-flex; align-items: baseline; white-space: nowrap; }
/* 200% zoom on a phone: the list photo goes and a value wraps, so the row never scrolls sideways */
@media (max-width: 239px) {
  .spec > span { white-space: normal; overflow-wrap: anywhere; }
  .tag .id.with-img { grid-template-columns: minmax(0, 1fr); }
  .tag .id.with-img > :not(.pimg) { grid-column: auto; }
  .pimg.thumb { display: none; }
}
.best { grid-area: best; display: flex; flex-wrap: wrap; align-items: center; gap: 5px 10px; padding: 4px 14px 12px; }
.best-p { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px; max-width: 100%; }
/* the signature: a price tag lit from inside the glass */
.price {
  position: relative; display: inline-block; padding: 4px 12px; border-radius: 8px; color: #111; font-size: 18px; font-weight: 700; text-decoration: none; line-height: 1.3;
  background: var(--yellow); background: linear-gradient(180deg, oklch(0.93 0.14 97), var(--yellow) 55%, oklch(0.84 0.17 90));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), 0 0 0 1px rgb(251 213 48 / .35), 0 4px 14px -8px rgb(251 213 48 / .35); /* a short glow: the shop and discount lines under it stay ≥ 4.5:1 */
}
.price::after { content: ""; position: absolute; inset: -8px -4px; } /* 44px tap target without a taller tag */
.price:hover { text-decoration: underline; text-underline-offset: 3px; }
/* the one-shop view's price where it is not the cheapest: outlined, never lit */
.price.here { color: var(--ink); background: var(--s3); box-shadow: inset 0 0 0 1px var(--edge); }
.at { font-size: 13px; font-weight: 500; }
.disc { font-weight: 400; color: var(--muted); }
.odd { width: 100%; font-size: 12px; color: var(--amber); }
.c.odd-c s { color: var(--muted); text-decoration-thickness: 1.5px; }
.c.odd-c a { flex-wrap: wrap; row-gap: 0; padding-block: 4px; }
.c.odd-c .odd { display: block; text-align: right; font-size: 12px; line-height: 1.3; font-weight: 400; white-space: normal; }
.pick { grid-area: pick; align-self: center; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; font-size: 14px; color: var(--muted); cursor: pointer; }
.more { grid-area: more; justify-self: stretch; min-height: 44px; padding: 0 14px; text-align: left; background: none; border: 0; border-top: 1px dashed rgb(255 255 255 / .14); font-size: 14px; font-weight: 500; cursor: pointer; }
.more::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 9px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; rotate: 45deg; }
.more[aria-expanded="true"]::after { rotate: -135deg; margin-bottom: -1px; }
.more-d { display: none; } /* the desktop strip's name for the same button */
.tag > .shops { grid-area: shops; display: none; margin: 0; padding: 0 14px 8px; list-style: none; }
.tag.open > .shops { display: block; } /* child only: a spec mark is also class "shops" */
.c { display: flex; align-items: center; border-top: 1px solid var(--hair); }
.c.none, .c.shown { display: none; } /* the shown price already sits in the tag above */
.c a { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; font-size: 14px; }
.c a:hover .v { text-decoration: underline; text-underline-offset: 3px; }
.c i { font-style: normal; font-size: 12px; }
.c.off a { color: var(--dim); }
.more-rows { justify-self: center; margin-top: 14px; }

/* ---------------------------------------------------------------- builder, status */

.slots { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.slot { min-width: 0; overflow-wrap: anywhere; display: grid; gap: 10px; padding: 14px 16px; background: var(--glass); border: 1px solid rgb(255 255 255 / .06); border-radius: 16px; background-clip: padding-box; box-shadow: inset 0 1px 0 var(--hi), var(--lift); }
.slot-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.slot-h h3 { font-size: 15px; font-weight: 500; }
.slot:not(.done) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.slot:not(.done) > .opts, .slot:not(.done) > .empty { flex-basis: 100%; }
.ref { font-size: 13px; color: var(--muted); }
.slot > .btn { justify-self: start; }
.slot > .btn .n { font-weight: 400; color: var(--muted); }
.slot > .btn.primary .n { color: inherit; opacity: .75; }
.part { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.part .id { display: grid; gap: 2px; min-width: 0; }
.buy { display: flex; align-items: flex-start; gap: 2px; }
.buy > a.num { display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; }
.part .num { display: grid; justify-items: end; font-weight: 500; text-decoration: none; }
.part .num:hover { text-decoration: underline; text-underline-offset: 3px; }
.empty { color: var(--muted); }
.opts { display: grid; gap: 6px; }
.opts ul { margin: 0; padding: 0; list-style: none; max-height: 24rem; overflow-y: auto; background: oklch(0.17 0.012 265); border: 1px solid var(--hair); border-radius: 12px; }
.opts button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; width: 100%; min-height: 44px; padding: 6px 12px; background: none; border: 0; border-bottom: 1px solid var(--hair); text-align: left; cursor: pointer; font-size: 14px; }
.opts li:last-child button { border-bottom: 0; }
.opts button:hover { background: rgb(255 255 255 / .05); }
.opts button[aria-pressed="true"] { font-weight: 500; background: rgb(255 255 255 / .09); }
.opts .num { text-align: right; }
.opts .at { grid-column: 2; text-align: right; font-weight: 400; color: var(--muted); }
.opts i { font-style: normal; color: var(--muted); }
.total {
  position: sticky; bottom: 0; left: 0; z-index: 4; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 10px -16px -32px; padding: 14px 16px;
  background: rgb(19 22 28 / .8); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-top: 1px solid rgb(255 255 255 / .12);
}
.total > b { font-size: 22px; font-weight: 700; }
.psu { font-size: 14px; color: var(--muted); }
.csv-row { margin-top: 12px; }
/* one-shop quote reminder: calm, never yellow, never an alert */
.quote { display: grid; gap: 10px; margin: 12px 0 0; padding: 16px 18px; background: var(--glass); border: 1px solid rgb(255 255 255 / .1); border-radius: 16px; background-clip: padding-box; box-shadow: inset 0 1px 0 var(--hi); }
.quote h3 { font-size: 15px; font-weight: 500; }
.quote p { max-width: 75ch; font-size: 14px; }
.q-miss, .q-biz { color: var(--muted); }
.q-deal { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.q-deal > svg, .deal svg, .deal-key svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.q-deal > svg { margin-top: 3px; }
.q-deal ul { margin: 2px 0 0; padding-left: 18px; }
.q-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.q-at { font-size: 14px; color: var(--ink); }
.deal { display: inline-flex; vertical-align: -2px; margin-right: 5px; }
.buy .deal { align-self: center; margin: 0 0 0 6px; }
.deal-key { display: none; align-items: center; gap: 5px; }
.legend.build .deal-key { display: inline-flex; }
.warn { width: 100%; font-size: 14px; color: var(--amber); }
.warn b { color: var(--ink); }
.status-wrap { overflow-x: auto; background: var(--s1); border: 1px solid rgb(255 255 255 / .06); border-radius: 16px; box-shadow: inset 0 1px 0 var(--hi); }
.status { border-collapse: collapse; font-size: 13px; white-space: nowrap; }
.status th, .status td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--hair); vertical-align: top; }
.status td span { display: block; }
.status td span.bad { max-width: 16rem; white-space: normal; }
.status tr > :first-child { position: sticky; left: 0; background: var(--s1); box-shadow: inset -1px 0 var(--hair); } /* the shop stays beside its cells */
.status thead th { font-weight: 500; color: var(--muted); }
.status th .src { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted); } /* the shop sends its own feed */
.status th a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; margin-block: -9px; } /* a 44px target inside the row's padding */

/* ---------------------------------------------------------------- footer, "Dành cho shop" reading page */

.foot { padding: 12px 16px 16px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--muted); }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-underline-offset: 3px; }
.foot p { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.read .top-end { margin-left: auto; }
main.doc { display: block; max-width: 44rem; margin: 0 auto; padding: 32px 16px 64px; }
.doc > * + * { margin-top: 12px; }
.doc .title { font-size: 30px; }
.doc .lede { font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.doc h2 { margin-top: 44px; font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.doc h3 { margin-top: 28px; font-size: 15px; font-weight: 500; }
.doc p, .doc li { max-width: 65ch; line-height: 1.6; text-wrap: pretty; }
.doc ul { padding-left: 20px; }
.doc li + li { margin-top: 6px; }
.doc li::marker { color: var(--muted); }
.doc a:not(.btn) { text-underline-offset: 3px; }
.doc .note { line-height: 1.55; }
.doc code { padding: 1px 6px; border-radius: 6px; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px var(--hair); font-feature-settings: "ss01"; letter-spacing: .02em; white-space: nowrap; }
.doc-table { overflow-x: auto; background: var(--s1); border: 1px solid rgb(255 255 255 / .06); border-radius: 16px; background-clip: padding-box; box-shadow: inset 0 1px 0 var(--hi); }
.doc-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc-table th, .doc-table td { padding: 10px 14px; text-align: left; vertical-align: top; line-height: 1.5; }
.doc-table tr + tr > * { border-top: 1px solid var(--hair); }
.doc-table thead th { font-size: 13px; font-weight: 500; color: var(--muted); }
.doc-table tbody th { font-weight: 500; white-space: nowrap; font-feature-settings: "ss01"; letter-spacing: .02em; }
/* 200% zoom on a phone: each column name sits above what it means, no sideways scroller */
@media (max-width: 240px) {
  .doc-table { overflow-x: visible; }
  .doc-table table, .doc-table tbody, .doc-table tr, .doc-table th, .doc-table td { display: block; }
  .doc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .doc-table tbody th { padding-bottom: 0; }
  .doc-table td { padding-top: 2px; overflow-wrap: anywhere; }
  .doc-table tr + tr > td { border-top: 0; }
  .doc-table code { white-space: normal; }
}
.doc .cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); gap: 6px 16px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; }
.doc .cats li { margin: 0; }
.cats span { color: var(--muted); }
.doc .btn { margin-top: 16px; }
.contact { margin-top: 48px; padding: 16px 18px; background: var(--glass); border: 1px solid rgb(255 255 255 / .06); border-radius: 16px; background-clip: padding-box; box-shadow: inset 0 1px 0 var(--hi), var(--lift); }
.contact p + p { margin-top: 6px; }
.contact b { font-weight: 500; }
.contact a { text-underline-offset: 3px; }
.doc code.ua { white-space: normal; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; } /* the full User-Agent wraps on a phone */

/* ---------------------------------------------------------------- desktop: rail + fixed shop columns */

@media (min-width: 1024px) {
  body { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; height: 100vh; height: 100dvh; overflow: hidden; }
  body.read { display: block; height: auto; overflow: visible; } /* the shop page reads top to bottom */
  .foot { padding: 0 24px; font-size: 12px; }
  .foot a { min-height: 32px; }
  main.doc { padding: 56px 24px 96px; }
  .doc .title { font-size: 36px; letter-spacing: -0.02em; }
  .top { flex-wrap: nowrap; padding: 4px 24px; }
  .nav { order: 0; width: auto; margin: 0; padding: 0; }
  .age { order: 1; width: auto; padding: 0; margin-left: auto; font-size: 13px; }
  .top-end { order: 2; margin-left: 0; }
  .count { order: 0; flex-basis: auto; font-size: 14px; }
  .toplink .wide { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .toplink .narrow { display: none; }
  .qty input { min-height: 32px; width: 3.75rem; font-size: 13px; }
  .bar .search { flex: 0 1 26rem; order: 0; }
  .search input { min-height: 40px; font-size: 14px; }
  .q-clear { height: 40px; }
  .search input:placeholder-shown ~ .q-key { display: block; }
  .sort span { position: static; width: auto; height: auto; clip-path: none; }
  .tag.head-row { display: grid; }
  .nav a, .toplink, .logo { min-height: 52px; }

  .hero-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; max-width: 1440px; margin: 0 auto; padding: 44px 32px 36px; }
  .hero-brand { gap: 18px; }
  .hero-mark { height: 64px; }
  .hero-brand .word { font-size: 60px; }
  .hero-line { font-size: 36px; line-height: 1.15; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .tile { min-height: 104px; padding: 16px 18px; }
  .tile-note { -webkit-line-clamp: 3; }

  .shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 0; }
  .shell.norail { grid-template-columns: minmax(0, 1fr); }
  .rail { position: relative; display: block; overflow-y: auto; background: linear-gradient(180deg, rgb(255 255 255 / .03), transparent 16rem); border-right: 1px solid var(--hair); }
  .rail-title { padding: 16px 16px 0; }
  .see, .filter-btn { display: none; }
  .btn, .chip, select, input[type=number], input:not([type]) { min-height: 36px; font-size: 14px; }
  .chip-x button { min-width: 32px; }
  .checks label, .f.check { min-height: 30px; }
  .f.save .pair { grid-template-columns: 1fr; }
  main { min-height: 0; gap: 10px; padding: 16px 20px 0; }
  .head { display: grid; gap: 10px; }
  .chips { flex-wrap: wrap; margin: 0; padding: 0; }
  .bar { position: static; margin: 0; padding: 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  /* one scroller both ways: the head row sticks to its top, the pinned columns to its left; focus scrolls cells clear of both */
  .pane { flex: 1; min-height: 0; overflow: auto; margin: 0 -20px; padding: 0 20px 24px; scroll-padding: 44px 0 0 calc(40px + var(--id-w) + 172px); } /* cue() sets the measured values */
  .total { margin: 10px -20px 0; padding: 14px 20px; }
  .pane:has(.total) { padding-bottom: 0; }

  /* one glass strip per product, 60-95px tall; every shop keeps its column, and the shops scroll under the pinned three */
  .shell { --id-w: 320px; }
  /* the strip reaches into the pane's left padding and the pick column pins at -20px, so no scrolled cell shows left of it */
  .rows { --cols: 60px minmax(var(--id-w), 1fr) 172px repeat(var(--n), var(--shop-w)); min-width: calc(60px + var(--id-w) + 172px + var(--n) * var(--shop-w)); margin-left: -20px; }
  .list { grid-template-columns: minmax(0, 1fr); gap: 4px; padding-top: 4px; }
  .tag { display: grid; grid-template-columns: var(--cols); grid-template-areas: none; align-items: stretch; border: 0; border-radius: 12px; box-shadow: inset 0 1px 0 var(--hi), 0 1px 2px rgb(0 0 0 / .4); transition: box-shadow .18s var(--ease); }
  /* hover lifts the strip: brighter glass and a deeper shadow, no transform (it would re-layer the pinned cells) */
  .tag:hover { --row: var(--glass-hi); z-index: 1; box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 10px 24px -10px rgb(0 0 0 / .9); }
  .tag > .id, .tag > .best, .tag > .pick { grid-area: auto; }
  /* the pinned cells repaint the strip's own glass, opaque, so scrolled shop cells never show through */
  .tag > .pick { position: sticky; left: -20px; z-index: 1; padding: 0 0 0 32px; background: var(--row); border-radius: 12px 0 0 12px; box-shadow: inset 0 1px 0 var(--hi); align-self: stretch; }
  /* the phone's "N shop khác" button opens the strip too: a chevron under the pick box, pinned with it; the strip gets a
     second grid row for it, and every other cell spans both rows, so the price grid does not move */
  .list .tag > .pick, .list .tag > .id, .list .tag > .best, .list .tag .c { grid-row: 1 / span 2; }
  .list .tag > .pick { grid-column: 1; }
  .list .tag > .id { grid-column: 2; }
  .list .tag > .best { grid-column: 3; }
  .list .tag:has(> .more) > .pick { grid-row: 1; min-height: 32px; align-items: flex-end; padding-bottom: 2px; border-radius: 12px 0 0 0; }
  .tag > .more { display: flex; align-items: flex-start; grid-area: 2 / 1; position: sticky; left: -20px; z-index: 1; min-height: 28px; padding: 2px 0 0 33px; background: var(--row); border: 0; border-radius: 0 0 0 12px; }
  .tag > .more::after { margin: 5px 0 0 2px; width: 7px; height: 7px; }
  .tag > .more[aria-expanded="true"]::after { margin-top: 9px; }
  .tag > .more:hover::after { border-color: var(--ink); }
  .more-t { display: none; }
  .more-d { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .tag.open .colors li + li { display: list-item; }
  .tag.open .colors li { white-space: normal; }
  .pick-t { display: none; }
  .pimg.thumb { width: 48px; }
  .tag .id.with-img { grid-template-columns: 48px minmax(0, 1fr); column-gap: 12px; }
  .tag .id { position: sticky; left: 40px; z-index: 1; padding: 8px 12px 8px 4px; background: var(--row); box-shadow: inset 0 1px 0 var(--hi); gap: 1px; align-content: center; line-height: 1.3; }
  .code-line { gap: 0 8px; }
  .name { font-size: 14px; }
  .code { font-size: 12px; }
  .nocode { font-size: 12px; }
  .spec { gap: 0 8px; font-size: 12px; color: oklch(0.88 0.008 265); } /* wraps rather than hide screen, weight or GPU */
  /* a strip cannot open: its first colour line (the shown price's shop) shows, the others sit in their shop cells */
  .colors { display: block; font-size: 12px; }
  .colors li { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .colors li + li { display: none; }
  .best { position: sticky; left: calc(40px + var(--id-w)); z-index: 1; flex-direction: column; flex-wrap: nowrap; align-items: flex-start; justify-content: center; gap: 5px; padding: 8px 10px; background: var(--row); box-shadow: inset 0 1px 0 var(--hi), inset -1px 0 0 var(--hair), 10px 0 14px -10px rgb(0 0 0 / .7); }
  .price { font-size: 15px; padding: 2px 9px; border-radius: 6px; }
  .price::after { content: none; }
  .gift { width: 26px; height: 26px; border-radius: 7px; }
  .gift svg { width: 15px; height: 15px; }
  .at { font-size: 12px; }
  .odd { width: auto; font-size: 12px; }
  .tag > .shops, .tag.open > .shops { display: contents; }
  .c, .c.none, .c.shown { position: relative; display: flex; align-items: center; justify-content: flex-end; border-top: 0; box-shadow: inset 1px 0 0 var(--hair); }
  .c a { justify-content: flex-end; width: 100%; height: 100%; min-height: 0; padding: 0 5px; border: 0; font-size: 12px; }
  .c .gift { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; }
  .c .gift svg { width: 13px; height: 13px; }
  .c .gift-inline { position: absolute; top: calc(100% - 4px); right: 2px; z-index: 3; width: 16rem; margin: 0; box-shadow: inset 0 1px 0 var(--hi), 0 20px 44px -14px rgb(0 0 0 / .8); }
  .c:has(.gift-inline) { z-index: 3; }
  .c .s { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* the cheapest cell repeats the lit tag in miniature */
  .c.low a { color: var(--yellow); }
  .c.low .v { padding: 2px 5px; font-weight: 500; letter-spacing: -0.03em; background: rgb(251 213 48 / .1); border-radius: 5px; box-shadow: inset 0 0 0 1px rgb(251 213 48 / .28); }
  .c.here .v { padding: 2px 5px; font-weight: 500; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--edge); }
  .tag.head-row { position: sticky; top: 0; z-index: 2; background: var(--bg); border-radius: 0; box-shadow: 0 1px 0 rgb(255 255 255 / .14); font-size: 12px; transition: none; }
  .head-row > *, .head-row .c { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 8px 4px; color: var(--muted); font-weight: 500; background: var(--bg); }
  .head-row > :first-child { position: sticky; left: -20px; z-index: 1; }
  .head-row > .h1 { position: sticky; left: 40px; z-index: 1; }
  .head-row > .h1 + .h { position: sticky; left: calc(40px + var(--id-w)); z-index: 1; box-shadow: inset -1px 0 0 var(--hair); }
  .head-row .c { align-items: flex-end; padding: 8px 5px; box-shadow: inset 1px 0 0 var(--hair); }
  .head-row .c b { color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* one-line head: scroll-padding-top matches it */
  .head-row .c span { font-weight: 400; font-size: 12px; text-align: right; } /* "lỗi, giá 01/12" wraps inside its 88px column */
  .head-row .c span.old, .head-row .c span.bad { font-weight: 500; }
  .more-rows { position: sticky; left: 0; display: flex; margin: 14px 0 0; } /* stays in view when the shops are scrolled right */
  .slots, .pane > .state, .slots ~ .quote { max-width: 60rem; }
}

/* ---------------------------------------------------------------- motion: short and only where state changes */

@media (prefers-reduced-motion: no-preference) {
  .hero.ready { transition: grid-template-rows .34s var(--ease), opacity .22s ease-out, visibility 0s; }
  .hero.ready.gone { transition: grid-template-rows .34s var(--ease), opacity .18s ease-out, visibility 0s .34s; }
  .tile { transition: translate .2s var(--ease), box-shadow .2s var(--ease); }
  .tile:hover { translate: 0 -2px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .1), 0 2px 4px rgb(0 0 0 / .35), 0 18px 34px -16px rgb(0 0 0 / .9); }
  .tile:active { translate: 0; }
  .sheet[open] { animation: rise .32s var(--ease); }
  .sheet[open]::backdrop { animation: fade .25s ease-out; }
  .gift-pop { transition: opacity .16s ease-out, translate .16s var(--ease), display .16s allow-discrete, overlay .16s allow-discrete; }
  .gift-pop:not(:popover-open) { opacity: 0; translate: 0 -4px; }
  @starting-style { .gift-pop:popover-open { opacity: 0; translate: 0 -4px; } }
}
@keyframes rise { from { translate: 0 100%; } }
@keyframes fade { from { opacity: 0; } }
