/* DealScout, December 2026. One stylesheet, no web fonts, no framework. */
:root {
  --paper: #f5f4f0;
  --surface: #fff;
  --sunk: #ecebe6;
  --ink: #15171a;
  --ink-2: #3a4048;
  --muted: #5a6069;
  --line: #e2e0da;
  --line-2: #cdcac2;
  --brand: #c2410c;
  --brand-ink: #9a3412;
  --brand-tint: #fdeee4;
  --tag: #ffd43b;
  --tag-ink: #1d1700;
  --save: #0b7a47;
  --hot: #b4231a;
  --note: #fff6d1;
  --r: 10px;
  --r-sm: 6px;
  --top-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
a { color: var(--brand-ink); text-underline-offset: 2px; }
a:hover { color: var(--brand); }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -48px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: var(--r-sm); z-index: 200; }
.skip:focus { top: 8px; color: #fff; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
  font-weight: 650; font-size: 15px; line-height: 1; padding: 11px 16px;
  border-radius: 8px; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.btn-sm { font-size: 14px; padding: 8px 12px; }
.btn-lg { font-size: 16px; padding: 14px 20px; }
.btn-quiet { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-quiet:hover { background: var(--sunk); color: var(--ink); border-color: var(--line-2); }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in { height: var(--top-h); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); flex: none; }
.logo:hover { color: var(--ink); }
.logo-word { font-size: 20px; font-weight: 750; letter-spacing: -0.02em; }
.logo-word b { color: var(--brand); font-weight: 750; }
.search { position: relative; flex: 1; max-width: 520px; }
.search input {
  width: 100%; height: 42px; padding: 0 14px 0 40px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--paper); font-size: 15px;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { background: var(--surface); outline: 3px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.search-ico { position: absolute; left: 13px; top: 12px; color: var(--muted); pointer-events: none; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--sunk); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brand-ink); background: var(--brand-tint); }

/* ---- intro + page heads ---- */
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-top: 32px; padding-bottom: 24px; }
.intro h1 { font-size: 32px; font-weight: 780; letter-spacing: -0.025em; max-width: 18ch; }
.lede { color: var(--ink-2); font-size: 17px; margin-top: 8px; max-width: 62ch; }
.stats { display: flex; gap: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); flex: none; }
.stats div { padding: 12px 20px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats dt { font-size: 13px; color: var(--muted); }
.stats dd { margin: 2px 0 0; font-size: 20px; font-weight: 750; font-variant-numeric: tabular-nums; }
.stats dd a { color: var(--ink); text-decoration-thickness: 1px; }
.page-head { padding-top: 28px; padding-bottom: 20px; }
.page-head h1 { font-size: 32px; font-weight: 780; letter-spacing: -0.025em; }
.crumb { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.crumb a { color: var(--muted); }
.byline { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* ---- layout ---- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; padding-bottom: 48px; }

/* ---- toolbar ---- */
.toolbar {
  position: sticky; top: var(--top-h); z-index: 20; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px; padding: 12px 0; background: var(--paper);
}
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; background: var(--sunk); padding: 3px; border-radius: 9px; }
.seg button {
  border: 0; background: transparent; padding: 7px 12px; border-radius: 7px; font-size: 14px;
  font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.seg button:hover { color: var(--ink); background: rgba(255, 255, 255, .55); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 20, 20, .12); }
.seg a { padding: 7px 12px; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.seg a:hover { color: var(--ink); background: rgba(255, 255, 255, .55); }
.seg a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(20, 20, 20, .12); }
.seg .n { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; margin-left: 2px; }
.seg-spacer { flex: 1; }
.tools { display: flex; gap: 12px; }
.sel { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sel select {
  height: 36px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface);
  padding: 0 30px 0 10px; font-size: 14px; color: var(--ink); appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235a6069' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.result-line { font-size: 14px; color: var(--muted); min-height: 20px; margin: 0 0 8px; }

/* ---- deal grid + cards ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 16px; }
.deal {
  position: relative; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.deal:hover { border-color: var(--line-2); box-shadow: 0 4px 14px rgba(20, 20, 20, .07); }
.deal-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 18px; background: #fff; text-decoration: none; color: var(--ink); }
.deal-img img { width: 100%; height: 100%; object-fit: contain; }
.noimg { font-size: 13px; color: var(--muted); }
.tag {
  position: absolute; top: 10px; left: 10px; background: var(--tag); color: var(--tag-ink);
  font-weight: 800; font-size: 15px; line-height: 1; padding: 6px 8px 6px 10px;
  border-radius: 3px 5px 5px 3px; font-variant-numeric: tabular-nums;
  clip-path: polygon(6px 0, 100% 0, 100% 100%, 6px 100%, 0 50%);
}
.is-hot .tag { background: var(--hot); color: #fff; }
.no-hot .is-hot .tag { background: var(--tag); color: var(--tag-ink); }
.deal-media { position: relative; }
.badge {
  position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-size: 12px; font-weight: 750; line-height: 1; padding: 5px 8px; border-radius: 5px;
  background: var(--bb); color: var(--bf); box-shadow: 0 1px 2px rgba(0, 0, 0, .18); letter-spacing: .01em;
}
.eyebrow { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.kind-compare .eyebrow { color: var(--save); }
.kind-eu .eyebrow { color: #1d4ed8; }
.ref { font-size: 14px; color: var(--ink-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.ref a { color: var(--ink-2); font-weight: 650; }
.note-s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.deal-body { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.deal-title { font-size: 14px; font-weight: 500; line-height: 1.4; min-height: 2.8em; }
.deal-title a { color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deal-title a:hover { text-decoration: underline; }
.deal-price { margin-top: 10px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.amt { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.amt .cur { font-size: 15px; vertical-align: 6px; margin-right: 1px; }
.amt .pence { font-size: 15px; }
.was { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.save { font-size: 14px; font-weight: 650; color: var(--save); margin-top: 2px; }
.deal-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; }
.ago { font-size: 13px; color: var(--muted); white-space: nowrap; }
.compact .grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.compact .deal-img { padding: 10px; }
.compact .amt { font-size: 20px; }
.grid-wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ---- price comparison tile (shop offers without a product photo) ---- */
.deal-img.is-tile { padding: 14px; background: var(--paper); }
.cmp { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.cmp-shop {
  align-self: flex-start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 15px; font-weight: 800; letter-spacing: -0.01em; padding: 7px 10px; border-radius: 7px;
  background: var(--bb); color: var(--bf); margin-bottom: 6px;
}
.cmp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; font-size: 12px; color: var(--ink-2); }
.cmp-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cmp-p { font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
.cmp-track { grid-column: 1 / -1; height: 10px; background: var(--sunk); border-radius: 5px; overflow: hidden; }
.cmp-bar { display: block; height: 100%; border-radius: 5px; background: var(--bb); }
.cmp-bar.is-amz { background: #8a8f98; }
.w-5{width:5%}.w-10{width:10%}.w-15{width:15%}.w-20{width:20%}.w-25{width:25%}.w-30{width:30%}.w-35{width:35%}
.w-40{width:40%}.w-45{width:45%}.w-50{width:50%}.w-55{width:55%}.w-60{width:60%}.w-65{width:65%}.w-70{width:70%}
.w-75{width:75%}.w-80{width:80%}.w-85{width:85%}.w-90{width:90%}.w-95{width:95%}.w-100{width:100%}

/* ---- shop chips + picker ---- */
.shopbar { display: flex; align-items: flex-start; gap: 8px; margin: 2px 0 10px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); font-size: 13px; font-weight: 600;
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip .n { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-on .n { color: #c9ccd1; }
.chip .x { margin-left: 2px; }
.dot { width: 10px; height: 10px; border-radius: 3px; flex: none; background: var(--bb); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.picker { position: relative; flex: none; }
.picker > summary { list-style: none; }
.picker > summary::-webkit-details-marker { display: none; }
.picker[open] > summary { border-color: var(--ink); }
.picker-panel {
  position: absolute; right: 0; top: 40px; z-index: 30; width: min(360px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: 0 12px 32px rgba(20, 20, 20, .16); padding: 12px;
}
.picker-find { width: 100%; height: 38px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 10px; margin-bottom: 8px; background: var(--paper); }
.picker-list { border: 0; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.picker-item { display: flex; align-items: center; gap: 8px; padding: 7px 4px; border-radius: 6px; font-size: 14px; cursor: pointer; }
.picker-item:hover { background: var(--sunk); }
.picker-item input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; margin: 0; }
.picker-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-item .n { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.picker-foot { display: flex; justify-content: space-between; gap: 8px; padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--line); }
.result-line a { margin-left: 6px; font-weight: 600; }
.more-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 24px 0 8px; }
.more-wrap .more { min-width: 200px; }
.more-count { width: 100%; text-align: center; font-size: 13px; color: var(--muted); }
.kinds { margin: 10px 0 12px; }
.kinds div + div { margin-top: 10px; }
.kinds dt { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.kinds dd { margin: 2px 0 0 18px; font-size: 14px; color: var(--ink-2); }
.k-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.k-compare { background: var(--save); } .k-drop { background: var(--brand); } .k-eu { background: #1d4ed8; }

/* ---- shop pages ---- */
.store-title { display: flex; align-items: center; gap: 18px; }
.brand-tile {
  flex: none; width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  padding: 4px; font-size: 14px; font-weight: 800; line-height: 1; text-align: center; overflow: hidden;
  background: var(--bb); color: var(--bf); letter-spacing: -0.02em; white-space: nowrap;
}
.brand-tile.bt-1 { font-size: 17px; } .brand-tile.bt-2 { font-size: 13px; } .brand-tile.bt-3 { font-size: 11px; letter-spacing: -0.03em; }
.store-title .brand-tile { width: 76px; height: 76px; border-radius: 16px; }
.store-title .bt-1 { font-size: 24px; } .store-title .bt-2 { font-size: 18px; } .store-title .bt-3 { font-size: 15px; }
.block-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.block-top .block-h { margin: 0; }
.find-shop { height: 38px; width: min(280px, 50%); border: 1px solid var(--line-2); border-radius: 8px; padding: 0 12px; background: var(--surface); }

/* ---- shop colours: .b-<slug> sets --bb (background) and --bf (text). Text contrast is 4.5:1 or more. ---- */
.b-p0{--bb:#334155;--bf:#fff}.b-p1{--bb:#3f3f46;--bf:#fff}.b-p2{--bb:#57534e;--bf:#fff}.b-p3{--bb:#1e3a8a;--bf:#fff}
.b-p4{--bb:#14532d;--bf:#fff}.b-p5{--bb:#7c2d12;--bf:#fff}.b-p6{--bb:#4c1d95;--bf:#fff}.b-p7{--bb:#831843;--bf:#fff}
.b-amazon-uk{--bb:#232f3e;--bf:#ff9900}.b-amazon-de{--bb:#232f3e;--bf:#fff}.b-amazon-fr{--bb:#232f3e;--bf:#fff}
.b-amazon-it{--bb:#232f3e;--bf:#fff}.b-amazon-es{--bb:#232f3e;--bf:#fff}
.b-notino{--bb:#000;--bf:#fff}.b-hamleys{--bb:#c8102e;--bf:#fff}.b-argos{--bb:#c8191b;--bf:#fff}
.b-the-entertainer{--bb:#d10019;--bf:#fff}.b-smyths-toys{--bb:#00449e;--bf:#fff}.b-b-and-q{--bb:#f37021;--bf:#111}
.b-sainsburys{--bb:#f06c00;--bf:#111}.b-boots{--bb:#05054b;--bf:#fff}.b-superdrug{--bb:#b80063;--bf:#fff}
.b-lookfantastic{--bb:#111;--bf:#fff}.b-allbeauty{--bb:#222;--bf:#fff}.b-very{--bb:#1d1d1b;--bf:#fff}
.b-iherb{--bb:#3d7a00;--bf:#fff}.b-john-lewis{--bb:#000;--bf:#fff}.b-currys{--bb:#4c12a1;--bf:#fff}
.b-ryman{--bb:#c4161c;--bf:#fff}.b-staples{--bb:#c00;--bf:#fff}.b-viking{--bb:#b5121b;--bf:#fff}
.b-uk-office-direct{--bb:#00539b;--bf:#fff}.b-euroffice{--bb:#0a5ea8;--bf:#fff}.b-ypo{--bb:#00205b;--bf:#fff}
.b-cartridge-people{--bb:#c8102e;--bf:#fff}.b-screwfix{--bb:#00539f;--bf:#fff}.b-toolstation{--bb:#003f7d;--bf:#fff}
.b-sports-direct{--bb:#002f6c;--bf:#fff}.b-hughes{--bb:#1a1a5e;--bf:#fff}.b-pets-at-home{--bb:#00703c;--bf:#fff}
.b-wilko{--bb:#b5121b;--bf:#fff}.b-tk-maxx{--bb:#c8102e;--bf:#fff}.b-the-range{--bb:#6b2c91;--bf:#fff}
.b-home-bargains{--bb:#d0021b;--bf:#fff}.b-savers{--bb:#a3005a;--bf:#fff}.b-asda{--bb:#78be20;--bf:#111}
.b-george-at-asda{--bb:#78be20;--bf:#111}.b-tesco{--bb:#00539f;--bf:#fff}.b-robert-dyas{--bb:#003b5c;--bf:#fff}
.b-decathlon{--bb:#006fa6;--bf:#fff}.b-jd-sports{--bb:#000;--bf:#fff}.b-adidas{--bb:#000;--bf:#fff}
.b-cult-beauty{--bb:#000;--bf:#fff}.b-halfords{--bb:#b83c12;--bf:#fff}.b-hmv{--bb:#a8005f;--bf:#fff}
.b-disney-store{--bb:#113ccf;--bf:#fff}.b-salon-services{--bb:#4b1e5a;--bf:#fff}.b-funko{--bb:#0a2240;--bf:#fff}
.b-perfumes-club{--bb:#000;--bf:#fff}.b-debenhams{--bb:#002855;--bf:#fff}.b-zooplus{--bb:#0b6e35;--bf:#fff}
.b-makeup-uk{--bb:#000;--bf:#fff}.b-cosmetis{--bb:#2d2d2d;--bf:#fff}.b-my-origines{--bb:#5b2a86;--bf:#fff}
.b-bitiba{--bb:#0b6e35;--bf:#fff}.b-power-tool-mate{--bb:#e30613;--bf:#fff}.b-star-action-figures{--bb:#1f2a44;--bf:#fff}
.b-tonies{--bb:#d1001f;--bf:#fff}.b-crocs{--bb:#3a6e19;--bf:#fff}
.b-holland-and-barrett{--bb:#00573f;--bf:#fff}.b-lloyds-pharmacy{--bb:#00664f;--bf:#fff}.b-nisbets{--bb:#00205b;--bf:#fff}

/* ---- empty ---- */
.empty { text-align: center; padding: 56px 24px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty h3 { font-size: 18px; }
.empty p { color: var(--muted); margin-top: 6px; }
.empty-line { color: var(--muted); padding: 24px 0; }

/* ---- rail ---- */
.rail { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--top-h) + 16px); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.panel-plain { background: transparent; }
.panel h2 { font-size: 16px; font-weight: 700; }
.panel-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.panel-h a { font-size: 14px; font-weight: 600; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li + li { border-top: 1px solid var(--line); }
.mini-list a { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; text-decoration: none; color: var(--ink); }
.mini-list img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 6px; }
.mini-t { font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-t small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.mini-list a:hover .mini-t { text-decoration: underline; }
.pill { font-size: 12px; font-weight: 700; padding: 4px 7px; border-radius: 5px; background: var(--tag); color: var(--tag-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill-multibuy { background: var(--brand-tint); color: var(--brand-ink); }
.steps { margin: 10px 0 12px; padding-left: 20px; font-size: 14px; color: var(--ink-2); }
.steps li + li { margin-top: 6px; }
.link-arrow { font-size: 14px; font-weight: 600; }

/* ---- coupons: tickets ---- */
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr)); gap: 14px; }
.ticket {
  position: relative; display: grid; grid-template-columns: 128px 0 minmax(0, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.ticket:hover { border-color: var(--line-2); }
.stub {
  display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 14px 16px;
  background: var(--tag); color: var(--tag-ink); border-radius: var(--r) 0 0 var(--r);
}
.kind-multibuy .stub { background: var(--brand-tint); color: var(--brand-ink); }
.kind-deal .stub { background: var(--hot); color: #fff; }
.kind-code .stub { background: var(--ink); color: #fff; }
.stub-val { font-size: 21px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.stub-kind { font-size: 12px; font-weight: 650; }
.tear { position: relative; border-left: 2px dashed var(--line-2); }
.tear::before, .tear::after {
  content: ""; position: absolute; left: -10px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line);
}
.tear::before { top: -10px; clip-path: inset(50% 0 0 0); }
.tear::after { bottom: -10px; clip-path: inset(0 0 50% 0); }
.t-main { display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 18px; min-width: 0; }
.t-img { width: 72px; height: 72px; object-fit: contain; flex: none; background: #fff; }
.t-text { flex: 1; min-width: 0; }
.t-title { font-size: 15px; font-weight: 600; line-height: 1.35; }
.t-title a { color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.t-title a:hover { text-decoration: underline; }
.t-detail { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.t-meta { font-size: 13px; color: var(--muted); margin-top: 4px; font-variant-numeric: tabular-nums; }
.t-main .btn { flex: none; }
.code-box { display: flex; flex-direction: column; align-items: stretch; gap: 8px; flex: none; }
.code { font-family: var(--mono); font-size: 16px; font-weight: 700; text-align: center; padding: 8px 12px; border: 2px dashed var(--line-2); border-radius: 8px; background: var(--paper); letter-spacing: .04em; }
.btn.is-done { background: var(--save); border-color: var(--save); }
.howto { margin: 40px 0 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.howto h2 { font-size: 20px; }
.howto dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 32px; margin: 16px 0; }
.howto dt { font-weight: 700; }
.howto dd { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.fine { font-size: 13px; color: var(--muted); margin: 16px 0 32px; max-width: 80ch; }
.block { margin-bottom: 28px; }
.block-h { font-size: 18px; margin-bottom: 12px; }

/* ---- stores ---- */
.stores { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 12px; }
.store a { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); height: 100%; }
.store a:hover { border-color: var(--line-2); box-shadow: 0 4px 14px rgba(20, 20, 20, .07); }
.store-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.store-name { font-weight: 700; font-size: 17px; }
.store-blurb { font-size: 14px; color: var(--ink-2); }
.store-live { font-size: 13px; font-weight: 650; color: var(--save); margin-top: 4px; }
.chev { color: var(--muted); flex: none; }

/* ---- guides + articles ---- */
.guide-list { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 12px; }
.guide { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.guide:hover { border-color: var(--line-2); }
.guide:hover .guide-title { text-decoration: underline; }
.guide-tag { font-size: 13px; color: var(--muted); font-weight: 600; }
.guide-title { font-size: 19px; font-weight: 700; line-height: 1.3; }
.guide-sum { font-size: 15px; color: var(--ink-2); }
.guide-list-sm .guide { padding: 14px 16px; }
.guide-list-sm .guide-title { font-size: 16px; }
.article { max-width: 760px; }
.disclose { font-size: 13px; color: var(--muted); padding: 10px 14px; background: var(--sunk); border-radius: 8px; margin-bottom: 24px; }
.prose { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: 23px; color: var(--ink); margin-top: 36px; }
.prose h3 { font-size: 18px; color: var(--ink); margin-top: 26px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--ink); }
.prose .note { background: var(--note); border-radius: 8px; padding: 16px 18px; font-size: 16px; color: var(--ink); }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--sunk); padding: 1px 5px; border-radius: 4px; }
.more { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.more h2 { font-size: 18px; margin-bottom: 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: 13px; color: var(--muted); font-weight: 650; }

/* ---- forms ---- */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.field + .field { margin-top: 18px; }
.field label { display: block; font-weight: 650; font-size: 15px; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface);
  padding: 11px 12px; font-size: 16px;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.err { font-size: 14px; color: var(--hot); font-weight: 600; margin-top: 6px; }
.err:empty { display: none; }
.has-err input, .has-err select, .has-err textarea { border-color: var(--hot); }
.form-alert { background: #fdecea; color: #7f1d1d; padding: 12px 14px; border-radius: 8px; margin-bottom: 18px; font-weight: 600; font-size: 15px; }
.form .btn { margin-top: 22px; }
.form .fine { margin-bottom: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.done { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.done h2 { font-size: 20px; }
.done p { color: var(--ink-2); margin: 8px 0 18px; }
.faq { margin: 40px 0 56px; }
.faq h2 { font-size: 20px; margin-bottom: 8px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 650; cursor: pointer; }
.faq details p { color: var(--ink-2); margin-top: 8px; }

/* ---- settings + private ---- */
.settings { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 24px 16px; margin-bottom: 48px; }
.settings h2 { font-size: 16px; margin: 16px 0 4px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.set-row p { font-size: 14px; color: var(--muted); margin-top: 2px; }
.set-input { height: 38px; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 10px; background: var(--surface); }
.set-check { width: 22px; height: 22px; accent-color: var(--brand); flex: none; }
.saved { font-size: 14px; color: var(--save); min-height: 20px; margin-top: 10px; }
.quiet-link { color: var(--muted); font-size: 14px; margin-left: 4px; white-space: nowrap; }
.priv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.priv-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.priv-asin { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.priv-price { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.priv-row .ago { margin-left: auto; }

/* ---- 404 ---- */
.nf { padding-top: 72px; padding-bottom: 96px; max-width: 760px; }
.nf-code { font-size: 15px; font-weight: 800; color: var(--brand-ink); }
.nf h1 { font-size: 36px; margin-top: 4px; }
.nf-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---- admin ---- */
.admin { padding-bottom: 56px; }
.admin h2 { font-size: 18px; margin: 28px 0 10px; }
.msg { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 8px; font-size: 14px; }
.msg-body { white-space: pre-wrap; margin-top: 6px; color: var(--ink-2); }

/* ---- footer ---- */
.foot { background: var(--surface); border-top: 1px solid var(--line); margin-top: 24px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 28px; }
.foot-brand p { color: var(--muted); font-size: 14px; margin-top: 10px; max-width: 40ch; }
.foot-col h2 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.foot-col a { display: block; color: var(--ink-2); text-decoration: none; font-size: 14px; padding: 4px 0; }
.foot-col a:hover { color: var(--brand-ink); text-decoration: underline; }
.foot-legal { border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 28px; font-size: 13px; color: var(--muted); }
.foot-legal p + p { margin-top: 8px; }
.foot-legal a { color: var(--muted); }

/* ---- cookie notice ---- */
.notice {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 90;
  width: min(560px, calc(100% - 24px)); display: flex; align-items: center; gap: 14px;
  background: var(--ink); color: #f3f3f1; border-radius: var(--r); padding: 12px 14px 12px 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .22); font-size: 14px;
}
.notice[hidden] { display: none; }
.notice a { color: #fff; }
.notice .btn { background: #fff; color: var(--ink); border-color: #fff; flex: none; }
.notice .btn:hover { background: var(--sunk); border-color: var(--sunk); }

/* ---- mobile tab bar ---- */
.tabbar { display: none; }

/* ---- responsive ---- */
@media (max-width: 1040px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .intro { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  :root { --top-h: 112px; }
  .wrap { padding: 0 16px; }
  .top-in { flex-wrap: wrap; height: auto; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .nav { display: none; }
  .intro { padding-top: 20px; padding-bottom: 12px; gap: 16px; }
  .intro h1, .page-head h1 { font-size: 26px; }
  .lede { font-size: 16px; }
  .stats { width: 100%; }
  .stats div { flex: 1; padding: 10px 12px; }
  .stats dt { font-size: 12px; }
  .stats dd { font-size: 16px; }
  .toolbar { position: static; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 0; }
  .toolbar > * { max-width: 100%; min-width: 0; }
  .sel { flex: 1; min-width: 0; }
  .sel select { flex: 1; min-width: 0; width: 100%; }
  .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .tools { justify-content: space-between; }
  .grid, .grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .deal-img { padding: 10px; }
  .deal-body { padding: 10px 10px 12px; }
  .amt { font-size: 20px; }
  .deal-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .deal-foot .btn { width: 100%; }
  .tag { font-size: 13px; }
  .badge { left: 6px; bottom: 6px; font-size: 11px; padding: 4px 6px; }
  .deal-img.is-tile { padding: 40px 10px 10px; }
  .cmp { gap: 7px; }
  .cmp-shop { font-size: 13px; padding: 5px 8px; margin-bottom: 2px; }
  .shopbar { flex-direction: column; align-items: stretch; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
  .chips::-webkit-scrollbar { display: none; }
  .picker > summary { width: 100%; justify-content: center; }
  .picker-panel { position: static; width: auto; margin-top: 8px; }
  .store-title { gap: 12px; align-items: flex-start; }
  .store-title .brand-tile { width: 56px; height: 56px; border-radius: 12px; }
  .store-title .bt-1 { font-size: 18px; } .store-title .bt-2 { font-size: 13px; } .store-title .bt-3 { font-size: 11px; }
  .block-top { flex-direction: column; align-items: stretch; }
  .find-shop { width: 100%; }
  .ticket { grid-template-columns: minmax(0, 1fr); }
  .stub { flex-direction: row; align-items: baseline; justify-content: space-between; padding: 10px 14px; border-radius: var(--r) var(--r) 0 0; }
  .stub-val { font-size: 18px; }
  .tear { border-left: 0; border-top: 2px dashed var(--line-2); height: 0; }
  .tear::before { left: -10px; top: -10px; clip-path: inset(0 0 0 50%); }
  .tear::after { left: auto; right: -10px; top: -10px; bottom: auto; clip-path: inset(0 50% 0 0); }
  .t-main { flex-wrap: wrap; padding: 12px 12px 12px 14px; gap: 10px; }
  .t-img { width: 56px; height: 56px; }
  .t-text { flex-basis: calc(100% - 66px); }
  .t-main .btn, .code-box { flex-basis: 100%; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .foot-brand { grid-column: 1 / -1; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; }
  .tabbar a[aria-current="page"] { color: var(--brand-ink); }
  .notice { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .form { padding: 18px; }
  .set-row { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
