:root {
  --red: #d1263c;
  --red-deep: #8c0f1f;
  --red-dark: #5f0814;
  --gold: #f6c96b;
  --gold-soft: #ffe6b8;
  --cream: #fff8f1;
  --card: #ffffff;
  --ink: #2b1a13;
  --muted: #8d7466;
  --line: #f0ddd0;
  --green: #1f9d63;
  --shadow: 0 14px 40px rgba(95, 8, 20, 0.1);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 50% -140px, rgba(209, 38, 60, 0.16), transparent 60%),
    linear-gradient(180deg, #fff3e7 0%, var(--cream) 45%, #fffaf5 100%);
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.page {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--cream);
  box-shadow: 0 0 80px rgba(80, 20, 10, 0.08);
  position: relative;
  overflow: clip;
}

/* ---------------- top bar ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 248, 241, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(240, 221, 208, 0.7);
}
.topbar-back {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: -4px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
}
.brand { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--red), var(--red-deep));
  color: var(--gold-soft);
  font-weight: 800;
  font-size: 16px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 6px 14px rgba(140, 15, 31, 0.24);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.18; min-width: 0; }
.brand-text strong { font-size: 14px; letter-spacing: 0.2px; white-space: nowrap; }
.brand-text small { font-size: 10.5px; color: var(--muted); letter-spacing: 1.6px; }
.topbar-tag {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff1e2;
  color: var(--red);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}
.topbar-tag i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(209, 38, 60, 0.45);
  animation: live 2s infinite;
}
@keyframes live {
  70% { box-shadow: 0 0 0 6px rgba(209, 38, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(209, 38, 60, 0); }
}

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  padding: 26px 18px 40px;
  overflow: hidden;
  background:
    radial-gradient(560px 300px at 82% -10%, rgba(246, 201, 107, 0.35), transparent 65%),
    radial-gradient(420px 280px at 0% 110%, rgba(255, 138, 100, 0.28), transparent 60%),
    linear-gradient(150deg, #a5122a 0%, var(--red-deep) 52%, #6d0a19 100%);
  color: #fff;
  border-radius: 0 0 30px 30px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 231, 186, 0.22) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.hero-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-year {
  position: absolute;
  right: -12px;
  top: 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 118px;
  font-weight: 800;
  letter-spacing: -6px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 230, 184, 0.16);
  transform: rotate(-4deg);
  white-space: nowrap;
}
.spark {
  position: absolute;
  width: 7px; height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.8;
  animation: twinkle 3.2s ease-in-out infinite;
}
.spark.s1 { left: 8%; top: 26%; }
.spark.s2 { right: 12%; top: 54%; width: 5px; height: 5px; animation-delay: 1.1s; }
.spark.s3 { left: 22%; bottom: 18%; width: 4px; height: 4px; animation-delay: 2s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: rotate(45deg) scale(0.7); }
  50% { opacity: 0.95; transform: rotate(45deg) scale(1.15); }
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 230, 184, 0.45);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.07);
}
.hero h1 {
  margin: 14px 0 8px;
  font-size: clamp(34px, 9.6vw, 46px);
  line-height: 1.14;
  letter-spacing: 1px;
  font-weight: 800;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
  position: relative;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 8px;
  background: rgba(246, 201, 107, 0.22);
  border-radius: 99px;
}
.hero-sub { margin: 0 0 18px; color: rgba(255, 240, 228, 0.8); font-size: 13px; }
.hero-price {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 13px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 230, 184, 0.22);
}
.price-label {
  font-size: 11px;
  color: var(--gold-soft);
  border: 1px solid rgba(246, 201, 107, 0.5);
  padding: 2px 6px;
  border-radius: 6px;
  margin-bottom: 5px;
}
.price-main { display: inline-flex; align-items: baseline; color: var(--gold); line-height: 1; }
.price-main small { font-size: 13px; margin: 0 2px; color: var(--gold-soft); }
.price-main strong { font-size: 38px; font-weight: 800; letter-spacing: -1px; }
.price-note { margin-left: auto; margin-bottom: 4px; font-size: 11px; color: rgba(255, 240, 228, 0.72); }
.hero-actions { display: grid; grid-template-columns: 1.35fr 1fr; gap: 9px; margin-top: 14px; }
.hero-trust {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 230, 184, 0.24);
  color: rgba(255, 240, 228, 0.72);
  font-size: 11px;
}
.hero-trust b { color: var(--gold); font-size: 15px; font-weight: 700; margin-right: 2px; }

.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.975); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn-block { display: block; width: 100%; padding: 14px 18px; }
.btn-gold {
  color: #6d1018;
  background: linear-gradient(160deg, #ffe6b0 0%, var(--gold) 55%, #e9ac46 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn-ghost {
  color: var(--gold-soft);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 230, 184, 0.35);
}
.btn-primary {
  color: #fff;
  background: linear-gradient(160deg, #e03146 0%, var(--red) 45%, #a3122a 100%);
  box-shadow: 0 10px 22px rgba(209, 38, 60, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:disabled { box-shadow: none; }

/* ---------------- sections ---------------- */
.section { padding: 24px 16px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 19px; letter-spacing: 0.3px; }
.section-head p { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); }
.link-btn { border: 0; background: none; color: var(--red); font-size: 12px; padding: 4px; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 0; }
.steps li {
  position: relative;
  padding: 14px 10px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(95, 8, 20, 0.04);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fdeceb;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}
.steps strong { display: block; font-size: 13px; }
.steps p { margin: 4px 0 0; color: var(--muted); font-size: 10.5px; line-height: 1.45; }

/* ---------------- open groups ---------------- */
.open-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.open-list::-webkit-scrollbar { display: none; }
.open-card {
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  padding: 13px;
  box-shadow: 0 8px 24px rgba(95, 8, 20, 0.06);
  display: flex;
  flex-direction: column;
  gap: 11px;
  text-align: left;
  min-width: 0;
}
.open-top { display: flex; align-items: center; gap: 9px; }
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  background: linear-gradient(145deg, #f08a5d, #d1263c);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.open-name { min-width: 0; }
.open-name strong { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.open-name span { font-size: 10.5px; color: var(--muted); }
.remain-badge {
  margin-left: auto;
  flex: none;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fdeceb;
  color: var(--red);
  font-size: 10.5px;
  font-weight: 700;
}
.open-bottom { display: flex; align-items: center; gap: 8px; }
.mini-dots { display: flex; gap: 3px; }
.mini-dot {
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 1.5px solid #f2d8cc;
  background: #fff9f4;
  display: grid;
  place-items: center;
  font-size: 8px;
  color: var(--muted);
}
.mini-dot.on { background: linear-gradient(145deg, #f7a97f, #d1263c); border-color: transparent; color: #fff; }
.open-time { font-size: 10.5px; color: var(--muted); margin-left: auto; }
.open-go {
  flex: none;
  border: 0;
  border-radius: 999px;
  padding: 7px 11px;
  background: #fff1e2;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
}
.open-empty {
  border: 1px dashed #e8cdbd;
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.55);
  grid-column: 1 / -1;
}
.skeleton-card {
  height: 112px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(100deg, #fff 20%, #fff5ed 40%, #fff 60%);
  background-size: 220% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { background-position: -220% 0; } }

/* ---------------- create form ---------------- */
.create-card {
  border-radius: var(--radius);
  padding: 18px 16px 16px;
  background:
    radial-gradient(300px 160px at 100% 0%, rgba(246, 201, 107, 0.16), transparent 70%),
    var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.create-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.create-head h2 { margin: 0; font-size: 20px; }
.create-head p { margin: 3px 0 0; font-size: 11.5px; color: var(--muted); }
.create-stamp {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px dashed #e0a23c;
  color: #b06f14;
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  transform: rotate(8deg);
  background: #fff8e8;
}
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; color: #5f4436; }
.field input {
  width: 100%;
  height: 48px;
  border: 1.5px solid #ecd7c9;
  border-radius: 12px;
  background: #fffdfb;
  padding: 0 13px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
}
.field input::placeholder { color: #c2aa9b; font-size: 13px; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; letter-spacing: 3px; font-variant-numeric: tabular-nums; }
.code-row input::placeholder { letter-spacing: 0; }
.code-btn {
  flex: none;
  min-width: 104px;
  height: 48px;
  padding: 0 12px;
  border: 1.5px solid #eccfb8;
  border-radius: 12px;
  background: #fff3e6;
  color: #a2541e;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: opacity 0.15s ease, background 0.15s ease;
}
.code-btn:active { background: #ffe8d2; }
.code-btn:disabled { opacity: 0.55; cursor: default; }

.field input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(209, 38, 60, 0.1);
  background: #fff;
}
.form-hint { margin: -2px 0 12px; color: var(--muted); font-size: 10.5px; }
.form-error {
  margin: 0 0 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #fdecea;
  color: #b01f31;
  font-size: 12px;
  line-height: 1.45;
}
.form-error a { text-decoration: underline; font-weight: 700; }
.privacy { margin: 10px 2px 0; font-size: 10px; color: #a88d7d; text-align: center; }

/* ---------------- rules ---------------- */
.rules-section { padding-bottom: 8px; }
.rule-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rule-list li {
  display: flex;
  gap: 9px;
  font-size: 11.5px;
  color: #6f5748;
  line-height: 1.55;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.rule-list span { flex: none; color: #cf8d52; font-weight: 700; font-family: Georgia, serif; font-size: 11px; }

/* ---------------- group view ---------------- */
.group-top { padding: 16px 16px 0; }
.status-banner {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 16px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(240px 120px at 100% 0%, rgba(246, 201, 107, 0.4), transparent 70%),
    linear-gradient(140deg, #b21b31, #7c0c1b);
  box-shadow: 0 12px 30px rgba(124, 12, 27, 0.22);
}
.status-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 230, 184, 0.4);
  font-size: 20px;
}
.status-banner h1 { margin: 0; font-size: 21px; line-height: 1.25; }
.status-banner p { margin: 3px 0 0; font-size: 11.5px; color: rgba(255, 240, 228, 0.78); }
[data-status="full"] .status-banner {
  background:
    radial-gradient(240px 120px at 100% 0%, rgba(255, 255, 255, 0.3), transparent 70%),
    linear-gradient(140deg, #2aa46b, #157a4a);
  box-shadow: 0 12px 30px rgba(21, 122, 74, 0.22);
}
[data-status="expired"] .status-banner {
  background: linear-gradient(140deg, #9b8a80, #6f5c51);
  box-shadow: 0 12px 30px rgba(111, 92, 81, 0.18);
}

.product-card {
  display: flex;
  margin-top: 12px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(95, 8, 20, 0.05);
}
.product-art {
  position: relative;
  flex: none;
  width: 96px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(90px 70px at 70% 20%, rgba(246, 201, 107, 0.45), transparent 70%),
    linear-gradient(150deg, #c11c34, #7b0d1b);
  color: var(--gold);
  overflow: hidden;
}
.product-art-year {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 800;
  transform: rotate(-8deg);
  letter-spacing: -1px;
}
.product-art-tag {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 99px;
  border: 1px solid rgba(246, 201, 107, 0.5);
  color: var(--gold-soft);
  white-space: nowrap;
}
.product-body { padding: 12px 13px; min-width: 0; flex: 1; }
.product-body h2 { margin: 0; font-size: 15px; }
.product-body p { margin: 2px 0 8px; font-size: 11px; color: var(--muted); }
.product-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.product-price { color: var(--red); font-weight: 800; font-size: 20px; line-height: 1; }
.product-price small { font-size: 10px; font-weight: 500; margin: 0 1px; }
.product-code { font-size: 10px; color: var(--muted); white-space: nowrap; }
.product-code b { color: var(--ink); letter-spacing: 1.4px; font-size: 11px; }

.member-card, .share-card, .join-card, .again-card {
  margin-top: 12px;
  padding: 16px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(95, 8, 20, 0.05);
}
.member-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.member-head h2 { margin: 0; font-size: 14px; }
.member-head b { color: var(--red); font-size: 13px; margin-left: 3px; }
.member-left { font-size: 11px; color: var(--red); background: #fdeceb; padding: 3px 8px; border-radius: 99px; }
.member-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 15px 0 13px; }
.member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
  position: relative;
}
.member .avatar { width: 50px; height: 50px; font-size: 17px; }
.member:nth-child(2) .avatar { background: linear-gradient(145deg, #f0b45d, #d67a2f); }
.member:nth-child(3) .avatar { background: linear-gradient(145deg, #78b9e6, #3f7fbf); }
.member:nth-child(4) .avatar { background: linear-gradient(145deg, #9d8bea, #6552c7); }
.member-name {
  width: 100%;
  text-align: center;
  font-size: 10.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #5f4436;
}
.member-role { font-size: 8.5px; color: #b06f14; background: #fff2d8; border-radius: 99px; padding: 1px 5px; }
.member.member-empty .avatar {
  background: #fffaf5;
  border: 1.5px dashed #e4c9b9;
  color: #c9ad9b;
  font-size: 22px;
  font-weight: 400;
  box-shadow: none;
}
.member.member-empty .member-name { color: #bba18f; }
.member-me .avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--red); }
.progress { height: 6px; border-radius: 99px; background: #f7e8de; overflow: hidden; }
.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ef7a58, var(--red));
  transition: width 0.5s ease;
  width: 0;
}
.progress[data-count="1"] span { width: 25%; }
.progress[data-count="2"] span { width: 50%; }
.progress[data-count="3"] span { width: 75%; }
.progress[data-count="4"] span { width: 100%; background: linear-gradient(90deg, #52c58d, #1f9d63); }

.countdown-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 15px;
  border-radius: 14px;
  background: #fff4e6;
  border: 1px solid #f6dcbc;
}
.countdown-label { font-size: 11px; color: #8a6540; }
.countdown {
  font-family: "SF Mono", "DIN Alternate", Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 19px;
  letter-spacing: 1px;
  color: #b3541a;
  margin-left: auto;
}
.countdown-tip { font-size: 9.5px; color: #ad8a67; }
[data-status="full"] .countdown-card { background: #eaf7f0; border-color: #bfe6d2; }
[data-status="full"] .countdown-label, [data-status="full"] .countdown, [data-status="full"] .countdown-tip { color: var(--green); }
[data-status="expired"] .countdown-card { background: #f4efeb; border-color: #e2d6cd; }
[data-status="expired"] .countdown-label, [data-status="expired"] .countdown, [data-status="expired"] .countdown-tip { color: #8a766a; }

.share-head h2, .join-head h2, .again-card h2 { margin: 0; font-size: 15px; }
.share-head p, .join-head p { margin: 3px 0 12px; font-size: 11px; color: var(--muted); }
.share-link { display: flex; gap: 7px; margin-bottom: 10px; }
.share-link input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 1px solid #ecd7c9;
  border-radius: 10px;
  background: #fffaf6;
  padding: 0 10px;
  font-size: 11px;
  color: #7a5f4e;
  outline: none;
}
.copy-btn {
  flex: none;
  border: 1px solid #eccfb8;
  background: #fff3e6;
  color: #a2541e;
  border-radius: 10px;
  padding: 0 13px;
  font-size: 12px;
  font-weight: 600;
}
.join-card { border-color: #f0d5c4; }
.join-head { margin-bottom: 12px; }
.join-card .field:last-of-type { margin-bottom: 12px; }

.again-card { text-align: center; padding: 20px 16px; }
.again-card h2 { font-size: 16px; }
.group-note { margin: 14px 4px 0; font-size: 10px; color: #aa9181; text-align: center; }

/* ---------------- footer ---------------- */
.footer { padding: 34px 16px 30px; text-align: center; color: #a98d7d; }
.footer p { margin: 0; font-size: 11px; }
.footer strong { color: #7a5c4a; letter-spacing: 0.5px; }
.footer-sub { margin-top: 4px !important; font-size: 9.5px; color: #bca393; letter-spacing: 0.6px; }

/* ---------------- modal ---------------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; align-items: end; justify-items: center; }
.modal-mask { position: absolute; inset: 0; background: rgba(43, 26, 19, 0.55); backdrop-filter: blur(3px); animation: fade 0.2s ease; }
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  overflow-y: auto;
  background: #fffdfb;
  border-radius: 22px 22px 0 0;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 -18px 50px rgba(43, 26, 19, 0.2);
  animation: slideup 0.26s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.modal-panel h2 { margin: 0 0 4px; font-size: 19px; }
.modal-panel > p { margin: 0 0 16px; color: var(--muted); font-size: 11.5px; }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}
.modal-rules { margin: 14px 0 0; padding-left: 18px; color: #6f5748; font-size: 12px; line-height: 1.7; }
.modal-rules li { margin-bottom: 8px; }
.modal-foot { margin: 14px 0 0 !important; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 10px !important; }
@keyframes fade { from { opacity: 0; } }
@keyframes slideup { from { transform: translateY(30px); opacity: 0.4; } }

/* ---------------- share guide / toast ---------------- */
.share-guide {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(20, 10, 6, 0.84);
  color: #fff;
  animation: fade 0.2s ease;
}
.share-guide-inner { position: absolute; top: 14px; right: 20px; text-align: right; max-width: 250px; }
.share-arrow { display: inline-block; font-size: 40px; color: var(--gold); transform: rotate(-8deg); margin-right: 10px; }
.share-guide p { margin: 8px 0 0; font-size: 15px; line-height: 1.6; }
.share-guide b { color: var(--gold); }
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 100;
  transform: translate(-50%, 20px);
  max-width: 80vw;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(43, 26, 19, 0.92);
  color: #fff;
  font-size: 12.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- responsive ---------------- */
@media (min-width: 640px) {
  body { padding: 22px 0 40px; }
  .page { min-height: auto; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 80px rgba(80, 20, 10, 0.14); }
  .topbar { border-radius: 26px 26px 0 0; }
  .hero { padding-inline: 26px; }
  .section { padding-inline: 24px; }
  .steps { gap: 12px; }
  .open-list { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, 1fr); overflow: visible; }
  .open-card { min-width: 0; }
  .footer { padding-bottom: 24px; }
}
@media (max-width: 370px) {
  .hero h1 { font-size: 32px; }
  .price-main strong { font-size: 33px; }
  .hero-actions { grid-template-columns: 1fr; }
  .hero-trust { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* utilities */
.no-scroll { overflow: hidden; }
.copy-proxy {
  position: fixed;
  left: -9999px;
  top: 0;
  opacity: 0;
  width: 1px;
  height: 1px;
  border: 0;
  padding: 0;
}
