:root {
  --paper: #f4efe4;
  --paper-2: #ebe2d1;
  --card: #fffdf7;
  --ink: #24221d;
  --muted: #756e62;
  --faint: #a0988a;
  --gold: #9a7540;
  --gold-dark: #70512a;
  --red: #a43b31;
  --red-dark: #7f2923;
  --green: #567057;
  --line: rgba(66, 53, 34, .14);
  --line-strong: rgba(112, 81, 42, .28);
  --shadow: 0 10px 30px rgba(45, 34, 20, .09);
  --shadow-soft: 0 4px 16px rgba(45, 34, 20, .06);
  --radius: 18px;
  --radius-sm: 12px;
  --shell: 680px;
  --header: 62px;
  --tabs: 72px;
  --serif: "Songti SC", "STSong", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { background: #d8d0c2; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: #d8d0c2;
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { min-height: 44px; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(164, 59, 49, .18);
  outline-offset: 2px;
}

.app-shell {
  width: min(100%, var(--shell));
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  background:
    radial-gradient(circle at 88% 4%, rgba(154,117,64,.08), transparent 22rem),
    repeating-linear-gradient(0deg, rgba(72,57,36,.018) 0, rgba(72,57,36,.018) 1px, transparent 1px, transparent 6px),
    var(--paper);
  box-shadow: 0 0 50px rgba(39, 30, 19, .14);
}

.app-header {
  height: var(--header);
  padding: 0 15px;
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(244,239,228,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.1);
}
.brand {
  padding: 0;
  border: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.brand > span:last-child { display: grid; line-height: 1.15; }
.brand strong { font: 700 17px/1.2 var(--serif); letter-spacing: .08em; }
.brand small { margin-top: 3px; color: var(--faint); font-size: 9px; letter-spacing: .08em; }
.brand-seal {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff8ea;
  background: var(--red);
  border: 1px solid var(--red-dark);
  border-radius: 8px 5px 9px 6px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.12);
  font: 700 18px/1 var(--serif);
}
.record-entry {
  padding: 0 13px;
  color: var(--gold-dark);
  background: rgba(255,253,247,.62);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
}

#app-main { min-height: calc(100vh - var(--header)); padding: 14px 14px calc(var(--tabs) + 34px); }
#app-main:focus { outline: none; }
.page { animation: page-in .25s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(5px); } }
.eyebrow { margin: 0 0 6px; color: var(--red); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.page-title { margin: 0; font: 700 27px/1.25 var(--serif); letter-spacing: .05em; }
.page-subtitle { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.section { margin-top: 34px; }
.section-heading { margin-bottom: 14px; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.section-heading h2 { margin: 0; font: 700 22px/1.3 var(--serif); letter-spacing: .05em; }
.section-heading small { color: var(--faint); font-size: 10px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,247,.82); box-shadow: var(--shadow-soft); }
.primary, .secondary, .ghost {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
}
.primary { color: #fff9ed; background: var(--red); border: 1px solid var(--red-dark); box-shadow: 0 8px 18px rgba(127,41,35,.2); }
.primary:hover { background: var(--red-dark); }
.secondary { color: var(--ink); background: var(--card); border: 1px solid var(--line-strong); }
.ghost { color: var(--gold-dark); background: transparent; border: 1px solid var(--line); }
.primary:disabled, .secondary:disabled { opacity: .54; cursor: not-allowed; box-shadow: none; }
.wide { width: 100%; }

/* 首页 */
.hero {
  min-height: 430px;
  padding: 34px 24px 26px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #f7ead1;
  border: 1px solid rgba(186,151,91,.28);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 28%, rgba(196,156,88,.20), transparent 11rem),
    linear-gradient(155deg, #27231b 0%, #171510 68%, #2f2416 100%);
  box-shadow: 0 18px 42px rgba(34,27,18,.18);
}
.hero::before, .hero::after { content: ""; position: absolute; border: 1px solid rgba(199,163,97,.14); border-radius: 50%; }
.hero::before { width: 250px; height: 250px; left: calc(50% - 125px); top: 35px; box-shadow: 0 0 0 18px rgba(199,163,97,.025), 0 0 0 38px rgba(199,163,97,.018); }
.hero::after { width: 86px; height: 86px; left: calc(50% - 43px); top: 117px; }
.hero-emblem { width: 64px; height: 64px; position: absolute; left: calc(50% - 32px); top: 128px; display: grid; place-items: center; color: #d5b36e; font: 700 35px/1 var(--serif); }
.hero-copy { position: relative; z-index: 2; text-align: center; }
.hero h1 { margin: 0; font: 700 42px/1.15 var(--serif); letter-spacing: .15em; text-indent: .15em; }
.hero-slogan { margin: 7px 0 0; color: #d6ba82; font: 600 16px/1.5 var(--serif); letter-spacing: .08em; }
.hero-desc { max-width: 430px; margin: 11px auto 0; color: rgba(247,234,209,.67); font-size: 11px; }
.hero-actions { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.hero .secondary { color: #e2c895; border-color: rgba(218,184,120,.35); background: rgba(255,255,255,.03); }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.service-tile {
  min-height: 132px;
  padding: 13px 9px 11px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  display: grid;
  align-content: start;
  justify-items: start;
  color: var(--ink);
  background: rgba(255,253,247,.75);
  box-shadow: var(--shadow-soft);
  text-align: left;
  cursor: pointer;
}
.service-tile::after { content: ""; position: absolute; right: -24px; bottom: -28px; width: 70px; height: 70px; border: 1px solid var(--line); border-radius: 50%; }
.tile-icon { width: 34px; height: 34px; margin-bottom: 10px; display: grid; place-items: center; color: var(--red); border: 1px solid rgba(164,59,49,.28); border-radius: 50%; background: var(--card); font: 700 15px/1 var(--serif); }
.service-tile strong { font: 700 14px/1.3 var(--serif); }
.service-tile small { margin-top: 4px; color: var(--faint); font-size: 9px; line-height: 1.5; }
.service-tile em { margin-top: 8px; color: var(--gold-dark); font-size: 9px; font-style: normal; }
.service-tile.coming { background: rgba(232,224,209,.55); box-shadow: none; }
.service-tile.coming em { padding: 1px 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

.reason-list { display: grid; gap: 9px; }
.reason { padding: 16px; display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; }
.reason > span { width: 36px; height: 36px; display: grid; place-items: center; color: var(--red); border: 1px solid rgba(164,59,49,.3); border-radius: 50%; font: 700 14px/1 var(--serif); }
.reason h3 { margin: 0 0 4px; font: 700 15px/1.35 var(--serif); }
.reason p { margin: 0; color: var(--muted); font-size: 11px; }

.books { padding: 3px 1px 10px; display: flex; gap: 9px; overflow-x: auto; scrollbar-width: thin; }
.book { flex: 0 0 104px; height: 154px; padding: 14px 9px; border-radius: 5px 12px 12px 5px; display: flex; flex-direction: column; align-items: center; color: #f5e9d2; box-shadow: inset 6px 0 rgba(0,0,0,.12), 0 7px 16px rgba(39,29,18,.13); }
.book span { opacity: .64; font-size: 8px; letter-spacing: .18em; }
.book strong { margin: 10px 0 auto; writing-mode: vertical-rl; font: 700 16px/1.35 var(--serif); letter-spacing: .09em; }
.book small { font-size: 8px; opacity: .62; }
.book.red { background: #73352f; }.book.ink { background: #2d302c; }.book.gold { background: #75603a; }.book.blue { background: #3d5052; }

.incense-card { padding: 22px 18px 18px; text-align: center; background: linear-gradient(180deg, rgba(255,253,247,.9), rgba(232,224,209,.55)); }
.incense-stage { height: 180px; position: relative; display: grid; place-items: end center; }
.incense-burner { width: 114px; height: 46px; position: relative; z-index: 2; border-radius: 10px 10px 42px 42px; background: linear-gradient(90deg,#5c3326,#8b5540 50%,#4b291f); box-shadow: 0 9px 15px rgba(49,31,22,.18); }
.incense-burner::before { content: "静"; position: absolute; inset: 10px 0 auto; color: #d4b477; font: 700 16px/1 var(--serif); }
.incense-stick { width: 4px; height: 100px; position: absolute; left: calc(50% - 2px); bottom: 34px; border-radius: 3px; background: #8f442c; transform-origin: bottom; transition: opacity .25s; }
.incense-stick::before { content: ""; width: 8px; height: 8px; position: absolute; left: -2px; top: -3px; border-radius: 50%; background: #d16239; box-shadow: 0 0 10px 3px rgba(209,98,57,.4); }
.smoke { width: 24px; height: 75px; position: absolute; left: calc(50% - 12px); bottom: 135px; opacity: 0; }
.smoke::before, .smoke::after { content: ""; position: absolute; inset: 0; border-left: 2px solid rgba(112,105,93,.34); border-radius: 50%; animation: smoke 3.3s ease-in-out infinite; }
.smoke::after { animation-delay: 1.2s; transform: scale(.75); }
.incense-stage.lit .smoke { opacity: 1; }
@keyframes smoke { 0% { transform: translate(0,18px) scale(.55); opacity: 0; } 30% { opacity: .75; } 100% { transform: translate(8px,-18px) scale(1.15); opacity: 0; } }
.incense-card h3 { margin: 14px 0 5px; font: 700 19px/1.35 var(--serif); }
.incense-card p { margin: 0 0 14px; color: var(--muted); font-size: 11px; }

.share-card { padding: 20px 17px; text-align: center; }
.share-card h3 { margin: 0 0 6px; font: 700 18px/1.35 var(--serif); }
.share-card p { margin: 0 0 14px; color: var(--muted); font-size: 11px; }
.site-footer { margin-top: 34px; padding: 26px 8px 8px; border-top: 1px solid var(--line); text-align: center; }
.footer-seal { width: 44px; height: 44px; margin: 0 auto 12px; display: grid; place-items: center; color: #fff8e9; background: var(--red); border-radius: 8px 5px 9px 6px; font: 700 12px/1 var(--serif); }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px; }
.footer-links button { padding: 0 9px; border: 0; color: var(--gold-dark); background: transparent; cursor: pointer; font-size: 10px; }
.site-footer p { margin: 10px auto; color: var(--muted); font-size: 9px; }
.site-footer small { color: var(--faint); font-size: 9px; }

/* 分组入口页 */
.hub-hero { padding: 24px 19px; position: relative; overflow: hidden; }
.hub-hero::after { content: attr(data-mark); position: absolute; right: 17px; top: 8px; color: rgba(154,117,64,.09); font: 700 88px/1 var(--serif); }
.hub-list { margin-top: 16px; display: grid; gap: 10px; }
.hub-entry { min-height: 106px; padding: 16px; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; color: var(--ink); text-align: left; cursor: pointer; }
.hub-entry > span:first-child { width: 42px; height: 42px; display: grid; place-items: center; color: #fff6e7; background: var(--red); border-radius: 13px; font: 700 17px/1 var(--serif); }
.hub-entry h3 { margin: 0 0 3px; font: 700 16px/1.35 var(--serif); }.hub-entry p { margin: 0; color: var(--muted); font-size: 10px; }.hub-entry > span:last-child { color: var(--gold); font-size: 20px; }

/* 独立功能流程 */
.flow-header { margin-bottom: 14px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; text-align: center; }
.back { width: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: rgba(255,253,247,.66); cursor: pointer; font-size: 24px; }
.flow-header h1 { margin: 0; font: 700 21px/1.3 var(--serif); }.flow-header small { color: var(--muted); font-size: 9px; }
.points-chip { min-width: 44px; padding: 0 7px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--red); background: var(--card); cursor: pointer; font-size: 10px; }
.ritual-intro { padding: 20px 18px; text-align: center; }
.ritual-symbol { width: 56px; height: 56px; margin: 0 auto 10px; display: grid; place-items: center; color: #f6e7ca; background: #27231c; border: 2px solid #b18b4b; border-radius: 50%; font: 700 24px/1 var(--serif); }
.ritual-intro h2 { margin: 0 0 5px; font: 700 19px/1.35 var(--serif); }.ritual-intro p { margin: 0; color: var(--muted); font-size: 11px; }
.step-card { margin-top: 12px; padding: 17px; }
.step-heading { margin-bottom: 13px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.step-heading span { color: var(--red); font-size: 9px; font-weight: 700; letter-spacing: .13em; }.step-heading h2 { margin: 0; font: 700 17px/1.35 var(--serif); }

.masters { display: grid; gap: 8px; }
.master-card { min-height: 112px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; display: grid; grid-template-columns: 42px 1fr; gap: 11px; color: var(--ink); background: rgba(244,239,228,.55); text-align: left; cursor: pointer; }
.master-card > span { width: 40px; height: 40px; display: grid; place-items: center; color: #fff7e9; background: var(--gold); border-radius: 50%; font: 700 15px/1 var(--serif); }
.master-card strong { display: block; font: 700 14px/1.35 var(--serif); }.master-card b { display: block; margin-top: 2px; color: var(--red); font-size: 10px; }.master-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.master-card.selected { border-color: var(--red); background: rgba(164,59,49,.055); box-shadow: inset 0 0 0 1px rgba(164,59,49,.09); }.master-card.selected > span { background: var(--red); }

.field-stack { display: grid; gap: 12px; }.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.field { display: grid; gap: 6px; }.field label, .field-label { color: var(--muted); font-size: 10px; font-weight: 700; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: 11px; color: var(--ink); background: var(--card); outline: 0; }
.field textarea { min-height: 132px; resize: vertical; line-height: 1.7; }.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.privacy-note { margin: 0; padding: 10px 11px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 10px; background: rgba(235,226,209,.45); font-size: 9px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }.tag { min-height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--gold-dark); background: transparent; cursor: pointer; font-size: 10px; }

.coin-stage { padding: 17px 12px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 13px; background: rgba(235,226,209,.38); }
.coins { min-height: 65px; display: flex; justify-content: center; align-items: center; gap: 14px; }
.coin { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; color: #684b20; background: radial-gradient(circle,#efcc79 0 50%,#aa7b2c 53% 60%,#dfb65d 63%); box-shadow: 0 6px 12px rgba(84,57,18,.2); font: 700 13px/1 var(--serif); }
.coin.flipping { animation: coin-flip .62s ease; } @keyframes coin-flip { 50% { transform: translateY(-15px) rotateY(540deg) scale(.84); } }
.hexagram { width: 128px; min-height: 95px; margin: 12px auto; display: flex; flex-direction: column-reverse; justify-content: center; gap: 7px; }
.yao { height: 6px; border-radius: 4px; background: rgba(36,34,29,.10); }.yao.yang { background: var(--ink); }.yao.yin { background: linear-gradient(90deg,var(--ink) 0 42%,transparent 42% 58%,var(--ink) 58%); }
.gua-name { min-height: 24px; color: var(--red); font: 700 14px/1.5 var(--serif); }

.qian-stage { padding: 26px 12px 18px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 13px; background: rgba(235,226,209,.38); }
.qian-tube { width: 76px; height: 102px; margin: 18px auto 15px; position: relative; color: #efd19a; border-radius: 7px 7px 26px 26px; background: linear-gradient(90deg,#65251f,#a33d31 50%,#64221e); box-shadow: inset 0 -10px 16px rgba(0,0,0,.2); }
.qian-tube::before { content: "签"; position: absolute; inset: 27px 0 auto; font: 700 27px/1 var(--serif); }.qian-tube::after { content: ""; width: 8px; height: 64px; position: absolute; left: 34px; top: -40px; background: #a6783b; box-shadow: -18px 7px #c08f49, 17px 5px #8f642f, -8px -4px #d0a359, 9px -2px #b7823e; }
.qian-stage.shaking .qian-tube { animation: qian-shake .5s ease 2; } @keyframes qian-shake { 25% { transform: translateX(-5px) rotate(-5deg); } 75% { transform: translateX(5px) rotate(5deg); } }
.qian-preview { margin-top: 13px; padding: 13px; border-radius: 11px; background: var(--card); border: 1px solid var(--line); }.qian-preview strong { display: block; color: var(--red); font: 700 16px/1.4 var(--serif); }.qian-preview p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.flow-submit { margin-top: 14px; }

/* 独立结果页 */
.result-hero { padding: 25px 18px; text-align: center; background: linear-gradient(150deg,#29251e,#171510); color: #f4e5c8; border-color: rgba(177,139,75,.3); }
.result-mark { width: 58px; height: 58px; margin: 0 auto 11px; display: grid; place-items: center; border: 1px solid #b18b4b; border-radius: 50%; color: #d5b370; font: 700 23px/1 var(--serif); }.result-hero h1 { margin: 0; font: 700 23px/1.4 var(--serif); }.result-hero p { margin: 5px 0 0; color: rgba(244,229,200,.62); font-size: 10px; }
.result-summary { margin-top: 12px; padding: 15px; }.result-summary small { color: var(--faint); font-size: 9px; }.result-summary p { margin: 5px 0 0; color: var(--muted); font-size: 11px; white-space: pre-wrap; }
.result-sections { margin-top: 12px; display: grid; gap: 9px; }.result-card { padding: 17px; }.result-card h2 { margin: 0 0 8px; color: var(--red); font: 700 16px/1.35 var(--serif); }.result-card .result-text { color: var(--ink); font-size: 12px; line-height: 1.9; white-space: pre-wrap; word-break: break-word; }.result-card.featured { border-color: rgba(164,59,49,.25); background: linear-gradient(145deg,rgba(255,253,247,.95),rgba(244,231,214,.85)); }
.result-actions { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

/* 我的 / 更多 */
.profile-head { padding: 22px 18px; display: grid; grid-template-columns: 58px 1fr; gap: 13px; align-items: center; }.avatar { width: 56px; height: 56px; display: grid; place-items: center; color: #fff4e4; background: var(--red); border-radius: 50%; font: 700 20px/1 var(--serif); }.profile-head h1 { margin: 0; font: 700 20px/1.35 var(--serif); }.profile-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; word-break: break-all; }
.balance-card { margin-top: 11px; padding: 19px; color: #f4e6ca; background: linear-gradient(145deg,#2d281f,#191711); border-color: rgba(177,139,75,.3); }.balance-card span { color: rgba(244,230,202,.62); font-size: 10px; }.balance-card strong { display: block; margin: 4px 0 13px; font: 700 34px/1.2 var(--serif); }.balance-card .primary { width: 100%; }
.menu-list { margin-top: 12px; overflow: hidden; }.menu-item { width: 100%; min-height: 58px; padding: 0 14px; border: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }.menu-item:last-child { border-bottom: 0; }.menu-item > span:first-child { width: 30px; height: 30px; display: grid; place-items: center; color: var(--red); border: 1px solid var(--line); border-radius: 9px; font: 700 12px/1 var(--serif); }.menu-item strong { font-size: 12px; }.menu-item small { color: var(--faint); font-size: 9px; }.empty-card { margin-top: 12px; padding: 25px 18px; text-align: center; }.empty-card span { display: block; color: var(--gold); font: 700 28px/1 var(--serif); }.empty-card h3 { margin: 11px 0 5px; font: 700 16px/1.35 var(--serif); }.empty-card p { margin: 0; color: var(--muted); font-size: 10px; }

/* 底栏 */
.tab-bar {
  width: min(100%, var(--shell));
  height: calc(var(--tabs) + env(safe-area-inset-bottom));
  padding: 6px 8px max(6px, env(safe-area-inset-bottom));
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(6,1fr);
  border-top: 1px solid var(--line-strong);
  background: rgba(255,253,247,.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 -8px 24px rgba(45,34,20,.08);
}
.tab-bar button { min-width: 0; min-height: 56px; padding: 3px 1px; border: 0; border-radius: 12px; display: grid; place-items: center; align-content: center; gap: 1px; color: var(--faint); background: transparent; cursor: pointer; }.tab-bar span { font: 700 17px/1.2 var(--serif); }.tab-bar small { font-size: 9px; }.tab-bar button.active { color: var(--red); background: rgba(164,59,49,.065); }

/* 弹窗与充值 */
.modal-backdrop { position: fixed; inset: 0; z-index: 200; padding: 14px; display: flex; align-items: flex-end; justify-content: center; background: rgba(27,24,19,.62); backdrop-filter: blur(6px); }
.sheet { width: min(100%, 520px); max-height: 88vh; padding: 22px 18px max(20px,env(safe-area-inset-bottom)); position: relative; overflow-y: auto; border: 1px solid var(--line-strong); border-radius: 24px 24px 14px 14px; color: var(--ink); background: var(--card); box-shadow: 0 20px 60px rgba(31,24,16,.28); }.sheet::before { content: ""; width: 40px; height: 4px; margin: -8px auto 14px; display: block; border-radius: 9px; background: var(--line-strong); }.sheet-close { width: 44px; position: absolute; right: 11px; top: 10px; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 22px; }.sheet h2 { margin: 0 42px 6px 0; font: 700 21px/1.35 var(--serif); }.sheet > p { margin: 0 0 16px; color: var(--muted); font-size: 10px; }
.package-list { display: grid; gap: 8px; }.package { min-height: 60px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ink); background: var(--paper); cursor: pointer; text-align: left; }.package strong { font: 700 14px/1.35 var(--serif); }.package small { display: block; color: var(--muted); font-size: 9px; }.package b { color: var(--red); font-size: 14px; }
.order-box { margin-top: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }.order-box p { margin: 3px 0; color: var(--muted); font-size: 10px; word-break: break-all; }.qr-wrap { margin: 10px auto; padding: 10px; width: fit-content; border: 1px solid var(--line); border-radius: 10px; background: #fff; }.qr-wrap img { display: block; width: 190px; height: 190px; object-fit: contain; }.proof-row { margin-top: 10px; display: grid; gap: 8px; }.proof-row input { width: 100%; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 10px; }.contact-line { margin-top: 12px; text-align: center; }.contact-line button { border: 0; color: var(--gold-dark); background: transparent; cursor: pointer; font-size: 10px; }
.history-list { display: grid; gap: 10px; }.history-entry { width: 100%; padding: 14px; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; color: var(--ink); text-align: left; cursor: pointer; }.history-entry > span { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--red); font: 700 18px/1 var(--serif); }.history-entry h3 { margin: 0 0 4px; font: 700 14px/1.35 var(--serif); }.history-entry p { margin: 0; color: var(--muted); font-size: 9px; }.history-entry b { color: var(--gold-dark); font-size: 10px; }
.experience-status { margin-top: 12px; padding: 17px; }.experience-status h3,.experience-status strong { color: var(--red); font: 700 16px/1.5 var(--serif); }.experience-status p { color: var(--muted); line-height: 1.8; }
.info-content h3 { margin: 18px 0 5px; font: 700 15px/1.35 var(--serif); }.info-content p, .info-content li { color: var(--muted); font-size: 11px; }
.toast { max-width: calc(100% - 28px); padding: 11px 15px; position: fixed; z-index: 300; left: 50%; bottom: calc(var(--tabs) + 16px); transform: translate(-50%,12px); opacity: 0; pointer-events: none; color: #fff8eb; border: 1px solid rgba(255,255,255,.13); border-radius: 11px; background: rgba(36,33,27,.94); box-shadow: var(--shadow); text-align: center; font-size: 11px; transition: .22s ease; }.toast.show { opacity: 1; transform: translate(-50%,0); }

@media (min-width: 681px) {
  body { padding: 18px 0; }
  .app-shell { min-height: calc(100vh - 36px); border: 1px solid rgba(66,53,34,.16); border-radius: 24px 24px 0 0; overflow: clip; }
  .app-header { border-radius: 24px 24px 0 0; }
  .tab-bar { bottom: 18px; border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: 0 10px 35px rgba(45,34,20,.16); }
}
@media (max-width: 430px) {
  .brand small { display: none; }
  #app-main { padding-inline: 12px; }
  .hero { min-height: 420px; padding-inline: 18px; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 36px; }
  .service-tile { min-height: 129px; padding-inline: 7px; }
  .tab-bar small { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.text-button { min-height: 42px; border: 0; color: var(--gold-dark); background: transparent; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.auth-sheet { max-width: 520px; }
.history-open { min-width: 0; border: 0; padding: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.history-actions { display: flex; gap: 6px; margin-left: auto; }
.history-actions button { min-height: 36px; border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; color: var(--gold-dark); background: var(--paper); cursor: pointer; }
