/* Card Restock Tracker — plain and literal.
   White page, the retailers' own product photos, a status anyone reads in one second
   (green = in stock, red = sold out, grey = not checked yet), one yellow button for alerts. */

@font-face { font-family: "Barlow Condensed"; src: url(/fonts/bc-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/bc-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/b-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(/fonts/b-600.woff2) format("woff2"); font-weight: 600 800; font-display: swap; }

:root {
  --ink: #15192b;          /* text */
  --soft: #5b6178;         /* secondary text */
  --rule: #e3e5ec;         /* borders */
  --tint: #f4f5f9;         /* photo backdrop, table heads */
  --navy: #20306e;         /* links, header mark */
  --yellow: #ffd23f;       /* the one call to action */
  --yellow-ink: #3a2c00;
  --in: #0f8a43; --in-bg: #e3f6ea;
  --out: #c42b2b; --out-bg: #fbe7e7;
  --unk: #6c7189; --unk-bg: #eef0f5;
  --r: 12px;
  --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 17px/1.55 var(--body); }
img { max-width: 100%; }
a { color: var(--navy); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-bottom: 48px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0 0 .4em; letter-spacing: -.005em; }
h1 { font-weight: 800; font-size: clamp(32px, 5vw, 48px); }
h2 { font-weight: 800; font-size: clamp(24px, 3.2vw, 30px); }
section { margin: 44px 0; }
p { margin: 0 0 .8em; }
.lede { font-size: 19px; max-width: 70ch; }
.lede strong { font-weight: 600; }
.sub, .asof, .fine, .more, .crumbs { color: var(--soft); font-size: 15px; }
.fine { font-size: 14px; }
.empty { color: var(--soft); background: var(--tint); border-radius: var(--r); padding: 16px 18px; }
.crumbs { margin: 18px 0 0; }
.answer { padding-top: 28px; }
.hide-sm { }
@media (max-width: 640px) { .hide-sm { display: none; } body { font-size: 16px; } .lede { font-size: 17px; } }

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--rule); background: #fff; position: sticky; top: 0; z-index: 10; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; color: var(--navy); flex: none; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-word { font: 800 21px/1 var(--head); }
.brand-tag { font-size: 13px; color: var(--soft); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { text-decoration: none; color: var(--ink); padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.site-nav a:hover { background: var(--tint); }
.site-nav a[aria-current="page"] { color: var(--navy); background: var(--tint); }
.site-nav a.cta { background: var(--yellow); color: var(--yellow-ink); padding: 9px 14px; }
.site-nav a.cta:hover { background: #ffc61a; }
.site-nav .short { display: none; }
@media (max-width: 820px) { .site-nav .long { display: none; } .site-nav .short { display: inline; } .brand-tag { display: none; } }
@media (max-width: 420px) { .brand-word { font-size: 18px; } .site-nav a { padding: 8px 7px; font-size: 14px; } }

/* ---------- buttons ---------- */
.btn { display: inline-block; font: 700 17px/1.2 var(--body); text-decoration: none; text-align: center; cursor: pointer;
  background: var(--yellow); color: var(--yellow-ink); border: 0; border-radius: 10px; padding: 13px 22px; }
.btn:hover { background: #ffc61a; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.ghost { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn.ghost:hover { background: var(--tint); }
.btn.small { font-size: 15px; padding: 8px 14px; border-radius: 8px; }
button.link { background: none; border: 0; padding: 0; color: var(--navy); font: inherit; text-decoration: underline; cursor: pointer; }
.buy { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- status chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; line-height: 1; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip.in { color: var(--in); background: var(--in-bg); }
.chip.out { color: var(--out); background: var(--out-bg); }
.chip.unknown { color: var(--unk); background: var(--unk-bg); }
.qty { font-size: 13px; color: var(--soft); margin-left: 6px; }

/* ---------- product photo grid ---------- */
.products { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.product { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; background: #fff; transition: border-color .15s, box-shadow .15s; }
.product:hover { border-color: #c9ccd8; box-shadow: 0 6px 18px rgba(21, 25, 43, .08); }
.ph { display: grid; place-items: center; aspect-ratio: 1; background: var(--tint); padding: 14px; }
.ph img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ph-empty { width: 46%; aspect-ratio: 5 / 7; border-radius: 8px; border: 2px dashed #c9ccd8; }
.pname { font-weight: 600; line-height: 1.3; padding: 12px 14px 8px; flex: 1; }
.pstatus { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 14px 6px; }
.where { font-size: 13px; color: var(--soft); }
.pmeta { padding: 0 14px 14px; font-size: 14px; color: var(--soft); }
.pmeta strong { color: var(--ink); font-size: 16px; }
@media (max-width: 480px) { .products { grid-template-columns: 1fr 1fr; gap: 10px; } .pname { font-size: 15px; padding: 10px 10px 6px; } .pstatus, .pmeta { padding-left: 10px; padding-right: 10px; } }

/* ---------- product page hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.hero-photo { margin: 28px 0 0; background: var(--tint); border-radius: var(--r); padding: 20px; aspect-ratio: 1; display: grid; place-items: center; }
.hero-photo img { max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; gap: 0; } .hero-photo { order: -1; max-width: 300px; margin-top: 16px; } }

/* ---------- alert box ---------- */
.alert-box { display: flex; gap: 20px; align-items: flex-start; background: #fff8dc; border: 1.5px solid #f3dc8a; border-radius: var(--r); padding: 22px 24px; margin: 28px 0; }
.alert-box h2 { font-size: 26px; margin-bottom: .3em; }
.alert-box p:last-child { margin-bottom: 0; }
.bell { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; }
.bell svg { width: 30px; height: 30px; fill: var(--yellow-ink); }
@media (max-width: 520px) { .alert-box { flex-direction: column; gap: 12px; padding: 18px; } }

/* ---------- lists of places ---------- */
.rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.row { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 12px 16px; border-top: 1px solid var(--rule); align-items: center; }
.row:first-child { border-top: 0; }
.row .name { font-weight: 600; }
.row .meta { grid-column: 1; font-size: 14px; color: var(--soft); }
.row .side { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
.row.is-in { background: #f6fcf8; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: 14px; color: var(--soft); font-weight: 600; background: var(--tint); }

/* ---------- comparison tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: var(--r); }
table.compare { min-width: 860px; font-size: 14px; }
table.compare th[scope=row] { background: var(--tint); white-space: nowrap; }
table.compare td:nth-child(2) { background: #fff8dc; }
.picks { padding-left: 20px; } .picks li { margin: 8px 0; max-width: 75ch; }

/* ---------- city / retailer / set grids ---------- */
.cities { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
@media (max-width: 480px) { .cities { grid-template-columns: 1fr 1fr; gap: 8px; } .cities a { padding: 10px 12px; } table { font-size: 14px; } th, td { padding: 8px 6px; } }
.cities a { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; height: 100%; }
.cities a:hover { border-color: var(--navy); }
.cities strong { display: block; }
.cities span { font-size: 14px; color: var(--soft); }
details > summary { cursor: pointer; font-weight: 600; color: var(--navy); margin-bottom: 12px; }

/* ---------- restock-hour chart ---------- */
.chart { margin: 0; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding-bottom: 2px; border-bottom: 1px solid var(--rule); }
.bars span { flex: 1; background: #c5cbe3; border-radius: 3px 3px 0 0; min-height: 2px; }
.bars span.peak { background: var(--navy); }
.axis { display: flex; justify-content: space-between; font-size: 13px; color: var(--soft); margin-top: 4px; }
.chart figcaption { margin-top: 8px; font-size: 15px; color: var(--soft); }

/* ---------- FAQ + facts ---------- */
.faq details { border-top: 1px solid var(--rule); padding: 14px 0; }
.faq summary { color: var(--ink); font-size: 18px; margin-bottom: 6px; }
.faq p { max-width: 72ch; color: #2d3248; }
.facts-block { background: var(--tint); border-radius: var(--r); padding: 22px 24px; }
.facts-block dl { margin: 0; display: grid; gap: 12px 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.facts-block dt { font-weight: 700; }
.facts-block dd { margin: 0; color: #2d3248; font-size: 15px; }

/* ---------- Japan: lottery calendar ---------- */
.lots { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.lot { display: grid; grid-template-columns: 170px 1fr auto; gap: 16px; padding: 14px 16px; border-top: 1px solid var(--rule); align-items: center; }
.lot:first-child { border-top: 0; }
.lot.open { background: #f6fcf8; }
.lot.closed { color: var(--soft); }
.lot-when { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font-size: 14px; }
.lot-main { display: flex; flex-direction: column; gap: 4px; }
.lot-shop { font-size: 14px; font-weight: 600; }
.lot-title { font-weight: 600; }
.lot-conds { display: flex; flex-wrap: wrap; gap: 6px; }
.lot-conds span { font-size: 13px; background: var(--tint); border-radius: 6px; padding: 2px 8px; }
@media (max-width: 640px) { .lot { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- forms (alert funnel, sign-in, account) ---------- */
.funnel, .account { max-width: 620px; padding-top: 28px; }
.account { max-width: 820px; }
.steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 22px; counter-reset: s; }
.steps li { flex: 1; font-size: 14px; color: var(--soft); border-top: 4px solid var(--rule); padding-top: 6px; }
.steps li.done { border-color: var(--in); }
.steps li.now { border-color: var(--yellow); color: var(--ink); font-weight: 600; }
.step h2 { font-size: 26px; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
input[type=email], input[type=text], input[type=url], input[inputmode], input[type=datetime-local], select {
  width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid #c9ccd8; border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(32, 48, 110, .15); }
fieldset { border: 0; padding: 0; margin: 14px 0 0; }
legend { font-weight: 600; margin-bottom: 4px; }
label.radio { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-weight: 400; margin: 10px 0; }
label.radio input { transform: translateY(1px); }
label.radio .fine { flex-basis: 100%; padding-left: 24px; }
label.plan { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; border: 1.5px solid var(--rule); border-radius: 10px; padding: 14px; }
label.plan:has(input:checked) { border-color: var(--navy); background: #f7f8fc; }
form .btn { margin-top: 18px; }
.funnel > .btn.ghost { margin-bottom: 6px; }
.err { color: var(--out); font-weight: 600; min-height: 1em; margin-top: 10px; }
.ok, .note { background: var(--in-bg); color: #0b5a2d; border-radius: 10px; padding: 12px 16px; }
dialog { border: 0; border-radius: var(--r); padding: 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); max-width: 420px; }
.prose { max-width: 72ch; padding-top: 28px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--rule); background: var(--tint); padding: 28px 0 40px; font-size: 14px; color: var(--soft); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.site-foot a { color: var(--ink); }
.countries span { font-weight: 600; color: var(--ink); }
.countries a[aria-current] { font-weight: 700; text-decoration: none; }
.countries small { color: var(--soft); }

/* ---------- owner pages ---------- */
body.owner main.wrap { padding-top: 10px; }
body.owner textarea { width: 100%; font: 13px/1.5 ui-monospace, monospace; padding: 10px; border: 1px solid var(--rule); border-radius: 8px; background: #fff; color: var(--ink); }
.owner-form { display: grid; gap: 0 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: end; background: var(--tint); padding: 8px 18px 18px; border-radius: var(--r); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
