:root {
  --ink: #141414;
  --ink-2: #4b463f;
  --muted: #8b8478;
  --paper: #ffffff;
  --bg: #faf8f4;
  --cream: #f3ede2;
  --cream-2: #ece4d5;
  --line: #e9e2d6;
  --accent: #1f5c46;
  --hot: #b4472a;
  --radius: 18px;
  --shadow-sm: 0 2px 10px rgba(20, 20, 20, 0.05);
  --shadow-lg: 0 18px 48px rgba(20, 20, 20, 0.16);
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", -apple-system,
    BlinkMacSystemFont, "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; }
h1, h2, h3, h4, p { margin: 0; }

.shell { width: min(1120px, 100%); margin: 0 auto; padding: 0 18px; }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: saturate(1.3) blur(14px);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid rgba(20, 20, 20, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-cn { font-size: 21px; font-weight: 700; letter-spacing: 0.06em; }
.brand-en { font-size: 9px; font-weight: 600; letter-spacing: 0.3em; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.text-btn {
  font-size: 13px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: #fff;
  padding: 7px 13px;
  border-radius: 999px;
  transition: 0.18s;
}
.text-btn:hover { border-color: var(--ink); color: var(--ink); }

.notice-bar { background: var(--ink); color: #f6f2e9; }
.notice-bar .shell {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 18px;
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: 0.02em;
}
.notice-dot {
  width: 5px;
  height: 5px;
  margin-top: 6px;
  border-radius: 50%;
  background: #f0d9b8;
  flex: 0 0 auto;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  margin: 18px 0 4px;
  padding: 26px 22px;
  border-radius: 26px;
  background:
    radial-gradient(120% 120% at 100% 0%, #fbf7ee 0%, #f2ebdc 55%, #ece2ce 100%);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -80px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  filter: blur(2px);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; }
.hero-kicker {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: #91846f;
  margin-bottom: 12px;
}
.hero h1 { font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.hero-sub { margin-top: 12px; font-size: 12.5px; line-height: 1.75; color: #6f6658; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-pill {
  font-size: 11.5px;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 20, 20, 0.06);
  backdrop-filter: blur(4px);
}
.hero-art { display: none; align-self: flex-end; width: 160px; flex: 0 0 auto; position: relative; z-index: 1; }
.hero-art svg { width: 100%; height: auto; }

@media (min-width: 560px) {
  .hero { padding: 32px 30px; }
  .hero h1 { font-size: 40px; }
  .hero-sub { font-size: 13px; }
  .hero-art { display: block; }
}
@media (min-width: 900px) {
  .hero { padding: 44px 46px; border-radius: 30px; }
  .hero h1 { font-size: 52px; }
  .hero-art { width: 230px; }
  .hero-sub { font-size: 14px; }
  .hero-kicker { font-size: 10.5px; }
}

/* ---------------- Toolbar ---------------- */

.sticky-tools {
  position: sticky;
  top: 58px;
  z-index: 40;
  background: var(--bg);
  padding: 14px 0 6px;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: 0.18s;
}
.search:focus-within { border-color: var(--ink); box-shadow: 0 2px 14px rgba(20, 20, 20, 0.06); }
.search svg { width: 16px; height: 16px; flex: 0 0 auto; stroke: var(--muted); }
.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
}
.search input::placeholder { color: #b3ab9d; }

.cat-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 6px;
  scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  color: var(--ink-2);
  transition: 0.18s;
}
.chip:hover { border-color: #c9c0b0; }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------------- Grid ---------------- */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 18px 0 12px;
}
.section-head h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.section-head span { font-size: 11px; letter-spacing: 0.16em; color: var(--muted); }

.item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 140px;
}
@media (min-width: 620px) { .item-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 940px) { .item-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }

.item-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.item-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(20, 20, 20, 0.08); }
.item-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.item-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--cream);
  overflow: hidden;
}
.item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.item-card:hover .item-thumb img { transform: scale(1.035); }
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.86);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}
.badge.new { background: rgba(31, 92, 70, 0.92); }
.item-card.soldout .item-thumb img { opacity: 0.35; filter: grayscale(0.6); }
.soldout-tag {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.soldout-tag span {
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-2);
  font-size: 12px;
  border: 1px solid var(--line);
}
.item-card.soldout { cursor: not-allowed; }
.item-card.soldout:hover { transform: none; box-shadow: none; }
.item-card.soldout .add-btn { background: #dcd5c8; }

.item-body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 12px 12px 13px; }
.item-name { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.item-en { font-size: 8.5px; font-weight: 600; letter-spacing: 0.16em; color: #b9b1a3; }
.item-desc {
  font-size: 11.5px;
  line-height: 1.55;
  color: #8a8276;
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}
.item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 9px;
}
.price { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.price small { font-size: 10px; font-weight: 400; color: var(--muted); margin-left: 2px; letter-spacing: 0; }
.add-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  transition: 0.18s;
}
.item-card:hover .add-btn { transform: scale(1.08); }

.site-note {
  padding: 4px 0 40px;
  text-align: center;
  font-size: 11px;
  color: #b3ab9d;
  letter-spacing: 0.02em;
}

.empty-state {
  padding: 60px 20px 100px;
  text-align: center;
  color: var(--muted);
}
.empty-state h2 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.empty-state p { font-size: 13px; line-height: 1.7; margin-bottom: 18px; }

/* ---------------- Cart bar ---------------- */

.cart-bar {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 60;
  width: min(680px, calc(100% - 28px));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 40px rgba(20, 20, 20, 0.3);
  opacity: 0;
  transform: translate(-50%, 18px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.3, 0.8, 0.3, 1);
}
.cart-bar.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.cart-thumb { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; background: #2a2a2a; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cart-name {
  font-size: 12px;
  color: #e9e4d9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-total { font-size: 13px; font-weight: 600; }
.cart-clear {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  font-size: 14px;
  line-height: 1;
}
.cart-clear:hover { background: rgba(255, 255, 255, 0.22); }
.checkout-btn {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 11px 20px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: 0.18s;
}
.checkout-btn:hover { background: #f1eadf; }

/* ---------------- Sheet ---------------- */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(20, 20, 20, 0.34);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.sheet-backdrop.open { opacity: 1; }
.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 91;
  width: min(560px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 26px 26px 0 0;
  transform: translate(-50%, 102%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: var(--shadow-lg);
}
.sheet.open { transform: translate(-50%, 0); }
.sheet-grab {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: #e4dccd;
  margin: 10px auto 0;
}
.sheet-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
}
.sheet-head { display: flex; gap: 14px; padding: 18px 20px 8px; }
.sheet-head img { width: 86px; height: 86px; border-radius: 16px; object-fit: cover; flex: 0 0 auto; background: var(--cream); }
.sheet-head h2 { font-size: 19px; font-weight: 700; }
.sheet-desc { margin-top: 6px; font-size: 12px; line-height: 1.6; color: #8a8276; }
.sheet-meta { margin-top: 7px; font-size: 9.5px; letter-spacing: 0.14em; color: #b9b1a3; font-weight: 600; }
.sheet-body { overflow-y: auto; padding: 4px 20px 12px; -webkit-overflow-scrolling: touch; }
.opt { padding-top: 16px; }
.opt h4 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.opt-hint { font-size: 11px; font-weight: 400; color: var(--muted); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fbf9f5;
  font-size: 13px;
  color: var(--ink-2);
  transition: 0.16s;
}
.pill small { font-size: 10px; color: var(--muted); }
.pill:hover { border-color: #c9c0b0; }
.pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill.active small { color: rgba(255, 255, 255, 0.65); }

.topping-list { display: grid; gap: 8px; }
.topping {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: #fbf9f5;
  font-size: 13px;
  color: var(--ink-2);
  transition: 0.16s;
}
.topping:hover { border-color: #c9c0b0; }
.topping-price { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.topping.active { border-color: var(--ink); background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.topping.active .topping-name::after {
  content: "✓";
  margin-left: 8px;
  font-size: 11px;
  color: var(--ink);
}

.sheet-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fff;
}
.sheet-price { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.sheet-price small { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.sheet-add { flex: 1; max-width: 260px; margin-left: auto; padding: 14px 18px; font-size: 14.5px; }

/* ---------------- Buttons ---------------- */

.primary-btn {
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: 0.18s;
}
.primary-btn:hover:not(:disabled) { background: #2c2c2c; }
.primary-btn:disabled { background: #d9d2c5; cursor: not-allowed; }
.primary-btn.small { padding: 10px 18px; font-size: 13.5px; }
.ghost-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 13.5px;
  transition: 0.18s;
}
.ghost-btn:hover { border-color: var(--ink); color: var(--ink); }

/* ---------------- Pages ---------------- */

.page { max-width: 660px; margin: 0 auto; padding: 18px 0 150px; }
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 6px 0;
  font-size: 13px;
  color: var(--muted);
}
.back-btn:hover { color: var(--ink); }
.page h1 { font-size: 27px; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 6px; }
.page-sub { font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }

.order-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.order-card img { width: 78px; height: 78px; border-radius: 14px; object-fit: cover; background: var(--cream); flex: 0 0 auto; }
.order-main { flex: 1; min-width: 0; }
.order-main h3 { font-size: 15.5px; font-weight: 600; }
.order-spec { font-size: 12px; color: #8a8276; margin-top: 4px; line-height: 1.5; }
.order-price { font-size: 17px; font-weight: 700; flex: 0 0 auto; }

.form-block { margin-top: 22px; }
.form-block > label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.label-note { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.name-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 520px) { .name-grid { grid-template-columns: repeat(4, 1fr); } }
.name-chip {
  position: relative;
  padding: 11px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: 0.16s;
}
.name-chip:hover { border-color: #c9c0b0; }
.name-chip.selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.name-chip.done::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.name-chip.selected.done::after { background: #8fd3ae; }
.field-hint { margin-top: 10px; font-size: 11.5px; line-height: 1.65; color: var(--muted); }

.price-note {
  margin: 12px 2px 0;
  font-size: 11.5px;
  line-height: 1.65;
  text-align: center;
  color: var(--muted);
}

.warn-note {
  margin-top: 12px;
  padding: 10px 13px;
  border-radius: 12px;
  border: 1px solid #efdcc4;
  background: #fdf5e9;
  color: #8a5a2b;
  font-size: 12.5px;
  line-height: 1.6;
}

textarea {
  width: 100%;
  min-height: 88px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: 0.16s;
}
textarea:focus { border-color: var(--ink); }

.summary-block {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  font-size: 13px;
  color: var(--ink-2);
}
.summary-block .row { display: flex; justify-content: space-between; padding: 6px 0; }
.summary-block .total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.submit-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.submit-bar .inner {
  max-width: 660px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.submit-total { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.submit-total small { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.submit-bar .primary-btn { flex: 1; max-width: 280px; margin-left: auto; padding: 14px 20px; }

/* ---------------- Success / ticket ---------------- */

.success-wrap { max-width: 560px; margin: 0 auto; padding: 26px 0 80px; text-align: center; }
.success-mark {
  width: 74px;
  height: 74px;
  margin: 6px auto 18px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  animation: pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.success-mark svg { width: 36px; height: 36px; }
.success-mark path {
  fill: none;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw 0.5s 0.16s forwards ease-out;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0.7); opacity: 0; } }
.success-wrap h1 { font-size: 25px; font-weight: 700; }
.success-wrap > p { margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.6; }

.ticket {
  margin-top: 22px;
  padding: 18px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}
.ticket-head { display: flex; align-items: flex-start; gap: 14px; }
.ticket-head img { width: 74px; height: 74px; flex: 0 0 auto; border-radius: 14px; object-fit: cover; background: var(--cream); }
.ticket-info { flex: 1; min-width: 0; }
.ticket-info h3 { font-size: 16px; font-weight: 600; }
.ticket-info p { margin-top: 4px; font-size: 12px; color: #8a8276; line-height: 1.5; }
.ticket-price { font-size: 18px; font-weight: 700; flex: 0 0 auto; }
.ticket-meta {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
}
.ticket-meta div { display: flex; justify-content: space-between; gap: 14px; }
.ticket-meta span { color: var(--muted); }
.ticket-meta b { font-weight: 500; text-align: right; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.ticket-note {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fbf8f2;
  border: 1px solid #f0e8da;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.success-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}
.success-tip { margin-top: 18px !important; font-size: 11.5px !important; color: #b3ab9d !important; }
.link-btn {
  border: 0;
  background: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
  text-decoration: underline;
  font-family: inherit;
}
.link-btn:hover { color: var(--ink); }

/* ---------------- Toast & modal ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(90px + env(safe-area-inset-bottom));
  z-index: 120;
  transform: translate(-50%, 12px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.92);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: 0.22s ease;
  max-width: calc(100% - 40px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 20, 20, 0.4);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modal-backdrop.open { opacity: 1; }
.modal {
  width: min(400px, 100%);
  padding: 22px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateY(8px);
  transition: transform 0.2s ease;
}
.modal-backdrop.open .modal { transform: none; }
.modal h3 { font-size: 17px; font-weight: 700; }
.modal p { margin-top: 8px; font-size: 13px; line-height: 1.7; color: #6f6658; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
