/* 饭点优惠站 — mobile-first, warm, card-based */
:root {
  --paper: #FFF6EC;
  --paper-2: #FBE8D4;
  --ink: #1C140F;
  --ink-soft: #5C4E44;
  --muted: #8A7668;
  --card: #FFFFFF;
  --line: rgba(80, 50, 30, 0.09);
  --shadow: 0 8px 24px rgba(90, 45, 20, 0.08), 0 1px 4px rgba(90, 45, 20, 0.05);
  --shadow-lg: 0 16px 40px rgba(90, 45, 20, 0.14);
  --radius: 22px;
  --radius-sm: 14px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
  --jd: #D4202A;
  --jd-deep: #9E1218;
  --jd-soft: #FFE8E6;
  --meituan: #C99200;
  --meituan-deep: #8A6800;
  --meituan-soft: #FFF4CC;
  --taobao: #E85D12;
  --taobao-deep: #B0420A;
  --taobao-soft: #FFE8DA;
  --travel: #0F8A63;
  --travel-deep: #086448;
  --travel-soft: #DFF6EC;
  --pharmacy: #148A90;
  --pharmacy-deep: #0B5F64;
  --pharmacy-soft: #DCF5F5;
  --other: #6B4BA8;
  --other-deep: #4A3178;
  --other-soft: #EFE7FB;
  --water: #1878B0;
  --water-deep: #0C4F78;
  --water-soft: #DDF1FC;
  --theme: var(--jd);
  --theme-deep: var(--jd-deep);
  --theme-soft: var(--jd-soft);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Noto Sans CJK SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Heiti SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

img { max-width: 100%; display: block; }
img:not([src]) { display: none; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

.bg-deco {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: var(--paper);
  background-image:
    url("../images/illus/pattern.svg"),
    radial-gradient(1200px 600px at 10% -10%, #FFE1C4 0%, transparent 55%),
    radial-gradient(900px 500px at 110% 8%, #FFD5D0 0%, transparent 50%);
  background-size: 120px 120px, auto, auto;
  opacity: 1;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: calc(48px + var(--safe-bot));
}

/* ===== Header ===== */
.topbar {
  padding: calc(16px + var(--safe-top)) 18px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.brand h1 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.brand p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.clock {
  text-align: right;
  flex-shrink: 0;
  background: #fff;
  border-radius: 14px;
  padding: 8px 12px;
  box-shadow: var(--shadow);
  min-width: 92px;
}
.clock .time {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.clock .date {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 2px;
}
.clock .meal {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--jd-soft);
  color: var(--jd-deep);
  border-radius: 999px;
  padding: 1px 7px;
}

.howto {
  margin: 4px 18px 8px;
  background: #fff;
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  box-shadow: var(--shadow);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.howto img { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }

/* ===== Chips nav ===== */
.chips {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 18px 12px;
  background: linear-gradient(to bottom, rgba(255,246,236,0.96) 60%, rgba(255,246,236,0.7));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  border: 0;
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(90,45,20,0.06);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  white-space: nowrap;
}
.chip img { width: 16px; height: 16px; }
.chip.is-on, .chip:active {
  background: var(--ink);
  color: #fff;
}
.chip.theme-jd.is-on { background: var(--jd); }
.chip.theme-meituan.is-on { background: #C99200; color: #1C140F; }
.chip.theme-taobao.is-on { background: var(--taobao); }
.chip.theme-travel.is-on { background: var(--travel); }
.chip.theme-pharmacy.is-on { background: var(--pharmacy); }
.chip.theme-other.is-on { background: var(--other); }
.chip.theme-water.is-on { background: var(--water); }

/* ===== Hero ===== */
.hero {
  margin: 4px 16px 22px;
  border-radius: 28px;
  padding: 20px 18px 16px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: #fff;
  min-height: 200px;
}
.hero.theme-jd {
  background: linear-gradient(155deg, #FF5A4C 0%, #D4202A 48%, #9E1218 100%);
}
.hero.theme-meituan {
  background: linear-gradient(155deg, #FFE36A 0%, #F0C430 45%, #C99200 100%);
  color: #2A1E0A;
}
.hero.theme-taobao {
  background: linear-gradient(155deg, #FF8A4A 0%, #E85D12 50%, #B0420A 100%);
}
.hero.theme-pharmacy {
  background: linear-gradient(155deg, #4FD0C8 0%, #148A90 50%, #0B5F64 100%);
}
.hero.theme-travel {
  background: linear-gradient(155deg, #3ECF96 0%, #0F8A63 55%, #086448 100%);
}
.hero-main { position: relative; z-index: 1; }
.hero-illus {
  position: absolute;
  right: -2px;
  top: 10px;
  width: 104px;
  height: 104px;
  opacity: 0.92;
  pointer-events: none;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.12));
}
.hero-badge,
.hero h2,
.hero .reason { padding-right: 96px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.hero.theme-meituan .hero-badge { background: rgba(80,50,0,0.12); }
.hero h2 {
  margin: 10px 0 4px;
  font-size: 1.48rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
  max-width: 16em;
  position: relative;
}
.hero .reason {
  margin: 0 0 14px;
  font-size: 0.86rem;
  opacity: 0.92;
  max-width: 18em;
  position: relative;
}
.hero .note {
  position: relative;
  font-size: 0.75rem;
  background: rgba(255,255,255,0.18);
  border-radius: 12px;
  padding: 8px 10px;
  margin: 0 0 12px;
  max-width: 22em;
}
.hero.theme-meituan .note { background: rgba(80,50,0,0.1); }

.hero-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-step {
  background: rgba(255,255,255,0.96);
  color: var(--ink);
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-decoration: none;
}
.hero-step .n {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--jd);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hero.theme-meituan .hero-step .n { background: #C99200; color: #1C140F; }
.hero.theme-taobao .hero-step .n { background: var(--taobao); }
.hero.theme-pharmacy .hero-step .n { background: var(--pharmacy); }
.hero-step .hs-body { flex: 1; min-width: 0; }
.hero-step .hs-title {
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-step .hs-hl {
  font-size: 0.72rem;
  color: var(--jd);
  font-weight: 700;
}
.hero.theme-meituan .hero-step .hs-hl { color: #8A6800; }
.hero.theme-taobao .hero-step .hs-hl { color: var(--taobao-deep); }
.hero-step .go {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}

.weekend-hint {
  position: relative;
  margin-top: 12px;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.weekend-hint img { width: 22px; height: 22px; }

/* ===== Eat idea ===== */
.eat-bar {
  margin: 0 16px 22px;
  display: flex;
  gap: 8px;
}
.eat-btn {
  flex: 1;
  border: 0;
  background: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
}
.eat-btn img { width: 28px; height: 28px; }
.eat-btn span { font-weight: 500; color: var(--ink-soft); font-size: 0.8rem; display: block; }

/* ===== Sections ===== */
.section {
  margin: 0 0 28px;
  padding: 0 16px;
  scroll-margin-top: 58px;
}
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  position: relative;
}
.sec-titles { flex: 1; min-width: 0; }
.sec-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--theme);
  margin: 0 0 2px;
}
.sec-head h2 {
  margin: 0;
  font-size: 1.28rem;
  letter-spacing: 0.01em;
}
.sec-intro {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.sec-illus {
  width: 86px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 8px rgba(90,45,20,0.1));
}

.section.theme-jd { --theme: var(--jd); --theme-deep: var(--jd-deep); --theme-soft: var(--jd-soft); }
.section.theme-meituan { --theme: var(--meituan); --theme-deep: var(--meituan-deep); --theme-soft: var(--meituan-soft); }
.section.theme-taobao { --theme: var(--taobao); --theme-deep: var(--taobao-deep); --theme-soft: var(--taobao-soft); }
.section.theme-travel { --theme: var(--travel); --theme-deep: var(--travel-deep); --theme-soft: var(--travel-soft); }
.section.theme-pharmacy { --theme: var(--pharmacy); --theme-deep: var(--pharmacy-deep); --theme-soft: var(--pharmacy-soft); }
.section.theme-other { --theme: var(--other); --theme-deep: var(--other-deep); --theme-soft: var(--other-soft); }
.section.theme-water { --theme: var(--water); --theme-deep: var(--water-deep); --theme-soft: var(--water-soft); }

/* ===== Cards ===== */
.cards { display: flex; flex-direction: column; gap: 12px; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 16px 14px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.6);
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--theme, var(--jd));
  border-radius: 5px 0 0 5px;
}
.card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.card-copy { flex: 1; min-width: 0; }
.card-icon-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.card-icon-row .emoji {
  width: 24px;
  height: 24px;
}
.badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--theme-soft, var(--jd-soft));
  color: var(--theme-deep, var(--jd-deep));
  border-radius: 999px;
  padding: 2px 8px;
}
.badge.hot {
  background: #FFE0C2;
  color: #B0420A;
}
.card h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.amount {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: var(--theme-soft, var(--jd-soft));
  border-radius: 12px;
  padding: 7px 11px 6px;
  margin: 6px 0 8px;
  position: relative;
}
.amount::before, .amount::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.amount::before { left: -5px; }
.amount::after { right: -5px; }
.amount em {
  font-style: normal;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--theme, var(--jd));
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.amount span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--theme-deep, var(--jd-deep));
}

.desc {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.tip {
  margin: 6px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  background: #F7F1EA;
  border-radius: 10px;
  padding: 6px 8px;
}
.steps {
  margin: 8px 0 4px;
  padding: 0;
  list-style: none;
  counter-reset: s;
}
.steps li {
  position: relative;
  padding: 8px 0 8px 32px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
  counter-increment: s;
}
.steps li:first-child { border-top: 0; }
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0; top: 9px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--theme-soft);
  color: var(--theme-deep);
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* thumbs */
.thumb {
  flex-shrink: 0;
  width: 92px;
  height: 92px;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(90,45,20,0.12);
  position: relative;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb.tall {
  width: 100px;
  height: 132px;
}
.thumb .zoom {
  position: absolute;
  right: 4px;
  bottom: 4px;
  background: rgba(28,20,15,0.6);
  color: #fff;
  font-size: 0.6rem;
  padding: 2px 5px;
  border-radius: 6px;
}
.thumbs-row {
  display: flex;
  gap: 8px;
  margin: 8px 0 4px;
}

/* actions */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 auto;
  text-decoration: none;
  color: #fff;
  background: var(--theme, var(--jd));
  box-shadow: 0 4px 0 var(--theme-deep, var(--jd-deep));
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--theme-deep);
}
.btn.secondary {
  background: var(--theme-soft, var(--jd-soft));
  color: var(--theme-deep, var(--jd-deep));
  box-shadow: 0 3px 0 #E4D2C4;
}
.btn.secondary:active { box-shadow: 0 1px 0 #E4D2C4; }
.btn img { width: 16px; height: 16px; }
.action-hint {
  margin: 8px 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.expired-note {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 8px 0;
}

/* ===== Footer ===== */
.site-footer {
  margin: 8px 20px 20px;
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.7;
}
.site-footer a { color: var(--ink-soft); }

/* ===== Toast ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + var(--safe-bot));
  transform: translateX(-50%) translateY(20px);
  z-index: 80;
  background: #1C140F;
  color: #fff;
  border-radius: 16px;
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  max-width: min(420px, calc(100vw - 32px));
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast small {
  display: block;
  font-weight: 500;
  opacity: 0.8;
  margin-top: 2px;
  font-size: 0.75rem;
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(16, 10, 8, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.lightbox.show {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: 100%;
  max-height: 78dvh;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  object-fit: contain;
  background: #1a1a1a;
}
.lightbox .lb-cap {
  color: #F5E6D3;
  font-size: 0.8rem;
  margin-top: 12px;
  text-align: center;
}
.lightbox .lb-close {
  position: absolute;
  top: calc(12px + var(--safe-top));
  right: 16px;
  border: 0;
  background: rgba(255,255,255,0.15);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
}

/* dim card outside best hours */
.card.is-offhours { opacity: 0.85; }
.card.is-offhours .badge.hours { background: #EEE; color: #666; }

/* ===== Tablet portrait (~768–834) ===== */
@media (min-width: 700px) {
  .wrap {
    max-width: 840px;
    padding-bottom: calc(56px + var(--safe-bot));
  }
  .topbar {
    padding: calc(20px + var(--safe-top)) 24px 12px;
  }
  .brand-mark { width: 56px; height: 56px; border-radius: 18px; }
  .brand h1 { font-size: 1.55rem; }
  .brand p { font-size: 0.85rem; }
  .clock { padding: 10px 16px; min-width: 110px; border-radius: 16px; }
  .clock .time { font-size: 1.35rem; }
  .howto { margin: 6px 24px 10px; font-size: 0.84rem; padding: 12px 16px; }
  .chips {
    padding: 10px 24px 14px;
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .chip {
    padding: 10px 16px;
    font-size: 0.88rem;
    min-height: 42px;
  }
  .hero {
    margin: 8px 24px 26px;
    padding: 28px 28px 22px;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 260px;
    border-radius: 32px;
  }
  .hero-main { flex: 1; min-width: 0; }
  .hero-badge,
  .hero h2,
  .hero .reason { padding-right: 0; max-width: none; }
  .hero h2 { font-size: 1.85rem; }
  .hero .reason { font-size: 0.95rem; max-width: 28em; }
  .hero-illus {
    position: static;
    width: 180px;
    height: 180px;
    flex-shrink: 0;
    opacity: 1;
    align-self: center;
  }
  .hero-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
  }
  .hero-step { padding: 14px 14px; }
  .hero-step .hs-title { font-size: 0.95rem; white-space: normal; }
  .eat-bar { margin: 0 24px 26px; }
  .eat-btn { min-height: 56px; padding: 14px 18px; font-size: 0.98rem; border-radius: 18px; }
  .eat-btn img { width: 36px; height: 36px; }
  .section {
    margin: 0 0 36px;
    padding: 0 24px;
    scroll-margin-top: 92px;
  }
  .sec-head h2 { font-size: 1.48rem; }
  .sec-intro { font-size: 0.88rem; }
  .sec-illus { width: 108px; height: 90px; }
  .cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
  }
  .card { padding: 18px 18px 16px; height: 100%; display: flex; flex-direction: column; }
  .card .actions { margin-top: auto; padding-top: 12px; }
  /* long how-to cards (体脂秤 steps, tall QR) take the full row */
  .card:has(.steps),
  .card:has(.thumb.tall) {
    grid-column: 1 / -1;
  }
  .thumb { width: 108px; height: 108px; }
  .thumb.tall { width: 132px; height: 172px; }
  .btn {
    min-height: 48px;
    padding: 12px 16px;
    font-size: 0.9rem;
    border-radius: 14px;
  }
  .amount em { font-size: 1.85rem; }
  .card h3 { font-size: 1.12rem; }
  .desc { font-size: 0.88rem; }
  .site-footer { margin: 12px 28px 28px; font-size: 0.78rem; }
}

/* ===== Tablet landscape / small laptop (~1024–1180+) ===== */
@media (min-width: 1024px) {
  .wrap { max-width: 1120px; }
  .topbar { padding-left: 28px; padding-right: 28px; }
  .howto, .chips { padding-left: 28px; padding-right: 28px; }
  .howto { margin-left: 28px; margin-right: 28px; }
  .hero {
    margin-left: 28px;
    margin-right: 28px;
    padding: 32px 36px 26px;
  }
  .hero h2 { font-size: 2rem; }
  .hero-illus { width: 210px; height: 210px; }
  .hero-steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .eat-bar { margin-left: 28px; margin-right: 28px; }
  .section { padding: 0 28px; }
  .cards {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
  }
  .btn {
    min-height: 52px;
    padding: 14px 18px;
    font-size: 0.95rem;
  }
  .chip { min-height: 44px; padding: 10px 18px; }
  .card { padding: 20px 20px 18px; }
  .amount em { font-size: 2rem; }
}

/* Very wide desktops keep the same 1120 cap — already on .wrap */

