.tab-top {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: calc(18px + var(--safe-top)) 16px 0;
  background: rgba(16, 10, 7, .3);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.tab-top h1 { padding-bottom: 12px; color: #f5ead7; font-size: 22px; font-weight: 700; letter-spacing: 4px; }
.tab-top h1:after {
  content: "";
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 7px;
  background: linear-gradient(90deg, var(--gold), rgba(198, 163, 106, 0));
}

.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 12px 22px -14px rgba(0, 0, 0, .9); }

.state-box {
  display: block;
  width: calc(100% - 32px);
  margin: 18px 16px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
  text-align: center;
}

.empty-state { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 80px 24px 0; color: #5c534a; text-align: center; }
.empty-state p { color: var(--text-3); font-size: 14px; line-height: 1.7; }

.chips { display: flex; gap: 8px; padding-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; height: 30px; padding: 0 14px; border: 1px solid rgba(255, 240, 214, .14); border-radius: 999px; color: #a39889; font-size: 13px; }
.chips button.is-active { border-color: var(--gold-dim); background: rgba(198, 163, 106, .12); color: var(--gold-soft); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.section-head h2 { display: flex; align-items: center; gap: 8px; color: #fff4ef; font-size: 16px; font-weight: 700; letter-spacing: 1px; }
.section-head h2:before { content: ""; flex: none; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }
.section-head small { color: rgba(232, 213, 163, .62); font-size: 11px; letter-spacing: .5px; }

.discover, .discover-top { padding-bottom: 12px; }
.discover-sub { color: var(--text-3); font-size: 12px; letter-spacing: .5px; }
.discover-block { padding: 18px 16px 0; }
.npc-head { display: flex; align-items: center; justify-content: flex-start; gap: 8px; }
.npc-join { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; padding: 5px 8px 5px 12px; border: 1px solid var(--gold-dim); border-radius: 999px; background: rgba(198, 163, 106, .14); color: var(--gold-soft); font-size: 12px; white-space: nowrap; }
.npc-scroll { display: flex; gap: 10px; margin: 0 -16px; padding: 0 16px 4px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.npc-scroll::-webkit-scrollbar { display: none; }
.npc-card { position: relative; flex: none; width: 132px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; scroll-snap-align: start; }
.npc-cover { width: 100%; height: 160px; object-fit: cover; }
.npc-featured { position: absolute; top: 8px; left: 8px; padding: 1px 7px; border-radius: 999px; background: rgba(166, 13, 16, .85); color: #fff4ef; font-size: 10px; line-height: 1.6; }
.npc-body { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px 10px; }
.npc-body b { color: #fff4ef; font-size: 15px; }
.npc-tags { display: flex; flex-wrap: wrap; gap: 4px; min-height: 16px; }
.npc-tags span { padding: 0 6px; border-radius: 999px; background: rgba(198, 163, 106, .14); color: var(--gold-dim); font-size: 10px; line-height: 16px; }
.npc-stat { display: inline-flex; align-items: center; gap: 3px; color: var(--text-3); font-size: 11px; }
.moment-list { display: flex; flex-direction: column; gap: 10px; }
.moment-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; text-align: left; }
.moment-cover { flex: none; width: 96px; height: 68px; border-radius: 8px; background: var(--frame-bg, #1a1410); }
.moment-body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.moment-title { color: #f0e6d8; font-size: 15px; line-height: 1.4; }
.moment-meta { color: var(--text-3); font-size: 12px; }
.moment-arrow { color: var(--text-3); }
.discover-foot { padding: 12px 0 4px; color: var(--text-3); font-size: 12px; text-align: center; }

.orders-list { padding: 12px 16px 0; }
.order { margin-bottom: 10px; overflow: hidden; }
.order-main { display: block; padding: 12px; }
.order-head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.order-store { color: var(--text-2); }
.order-status { flex: none; color: var(--gold-soft); }
.order-body { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.order-cover { flex: none; width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.order-info { flex: 1; min-width: 0; }
.order-summary { color: #f0e6d8; font-size: 14px; line-height: 1.45; }
.order-meta { color: var(--text-3); font-size: 12px; }
.order-amount { flex: none; font-size: 17px; }
.orders-foot { padding: 16px; color: var(--text-3); font-size: 12px; text-align: center; }

.profile { padding: calc(16px + var(--safe-top)) 0 20px; }
.profile-member {
  --frame-color: var(--gold-dim);
  position: relative;
  overflow: hidden;
  margin: 22px 14px 0;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 30%, #2a211a, #120d0a 70%);
  box-shadow: 0 16px 28px -18px rgba(0, 0, 0, .9);
}
.profile-frame-art { display: block; width: 100%; height: auto; }
.profile-member:before, .profile-member:after { display: none; }
.frame-banner {
  position: absolute;
  top: -19px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  padding: 2px 18px 4px;
  border: 2px solid #f0cf8a;
  border-radius: 8px 8px 12px 12px;
  background: linear-gradient(#c4161c, #7c0a0e);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .6), inset 0 1px rgba(255, 225, 160, .6);
  color: #ffe0a0;
  font: 700 17px/1.2 Georgia, "Songti SC", serif;
  letter-spacing: 2px;
  text-shadow: 0 1px 2px #4a0505;
  white-space: nowrap;
}
.frame-corner { position: absolute; z-index: 2; width: 12px; height: 12px; border: 2px solid #f0cf8a; background: #8a1116; transform: rotate(45deg); box-shadow: 0 0 6px rgba(0, 0, 0, .5); }
.frame-corner.c1 { top: -6px; left: -6px; }
.frame-corner.c2 { top: -6px; right: -6px; }
.frame-corner.c3 { bottom: -6px; left: -6px; }
.frame-corner.c4 { bottom: -6px; right: -6px; }
.frame-gift { position: absolute; left: 50%; bottom: -22px; z-index: 2; width: 58px; height: 48px; transform: translateX(-50%); }
.profile-user-row { display: flex; align-items: center; gap: 10px; }
.profile-avatar { position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; padding: 2px; border: 2px solid var(--gold-soft); border-radius: 50%; background: #211b16; color: var(--gold-soft); box-shadow: 0 0 0 3px rgba(138, 17, 22, .85), 0 0 14px rgba(0, 0, 0, .7); }
.profile-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile-avatar:after { content: "Lv.1"; position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%); padding: 1px 7px; border: 1px solid #f0cf8a; border-radius: 4px; background: linear-gradient(#c4161c, #7c0a0e); color: #ffe0a0; font: 700 10px/1.5 Georgia, serif; white-space: nowrap; }
.profile-user-info { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.profile-user-info b { font-size: 16px; font-weight: 600; }
.profile-user-info span { color: #a8a29b; font-size: 12px; line-height: 1.5; }
.profile-badges { display: flex; gap: 6px; }
.lv-badge, .id-badge { padding: 1px 7px; border-radius: 4px; font-size: 11px; line-height: 1.6; }
.lv-badge { border: 1px solid var(--gold-dim); color: var(--gold-soft); }
.id-badge { background: rgba(48, 92, 48, .55); color: #b8e0a8; }
.profile-nick-row { display: flex; align-items: center; gap: 4px; }
.profile-nick-row svg { color: rgba(198, 163, 106, .7); }
.profile-assets { display: flex; margin: 10px 14px 0; padding: 12px 0; border: 1px solid rgba(198, 163, 106, .34); border-radius: 12px; background: linear-gradient(180deg, rgba(255, 232, 196, .09), rgba(255, 232, 196, .03)); }
.profile-stat { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 4px; }
.profile-stat + .profile-stat { border-left: 1px solid #443129; }
.profile-stat b { color: var(--gold-soft); font-size: 17px; font-weight: 600; }
.profile-stat b i { margin-left: 2px; color: #a0a0a0; font-size: 11px; font-style: normal; font-weight: 400; }
.profile-stat span { color: #a0a0a0; font-size: 12px; }
.profile-group { position: relative; margin: 12px 14px 0; padding: 14px 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, rgba(255, 232, 196, .07), rgba(255, 232, 196, .02)); }
.profile-group:before { content: ""; position: absolute; top: -1px; left: 16%; right: 16%; height: 1px; background: linear-gradient(90deg, rgba(198, 163, 106, 0), rgba(229, 195, 157, .75) 50%, rgba(198, 163, 106, 0)); }
.profile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.profile-func { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 98px; padding: 10px 2px 9px; border: 1px solid rgba(255, 240, 214, .06); border-radius: 10px; background: linear-gradient(160deg, rgba(255, 232, 196, .09), rgba(255, 232, 196, .016) 70%); color: var(--gold-soft); }
.profile-func > svg { box-sizing: content-box; padding: 9px; border-radius: 50%; background: radial-gradient(circle at 50% 30%, rgba(229, 195, 157, .26), rgba(198, 163, 106, .04) 72%); box-shadow: inset 0 0 0 1px rgba(198, 163, 106, .38); }
.profile-func b { margin-top: 6px; color: #eee9e2; font-size: 12px; font-weight: 400; }
.profile-func small { margin-top: 2px; color: var(--gold-dim); font: 8px/1.5 Didot, Georgia, serif; letter-spacing: 1.2px; }
.profile-tips { margin: 14px 20px 0; }
.profile-tips h2 { color: #a0a0a0; font-size: 12px; font-weight: 400; }
.profile-tips p { margin-top: 4px; color: #80766a; font-size: 11px; line-height: 1.7; }
.profile-agreements { display: flex; gap: 12px; margin-top: 8px; }
.profile-agreements a { color: var(--gold-dim); }
.profile-logout { margin: 14px 14px 0; }
.profile-logout .btn { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: #d64a4d; font-size: 14px; }
.profile-func-dot { position: absolute; top: 7px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px rgba(7, 6, 5, .86); }

.wallet-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; margin-top: 14px; padding: 20px 18px; border: 1px solid #70553b; border-radius: var(--radius); background: linear-gradient(125deg, #3a2414, #1a100a 60%, #2a0c0c); }
.wallet-card > span { color: var(--text-2); font-size: 13px; }
.wallet-card > b { color: var(--gold-soft); font: 600 34px "DIN Alternate", "Helvetica Neue", Arial, sans-serif; }
.wallet-refresh { position: absolute; top: 14px; right: 14px; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; color: var(--gold-dim); }
.wallet-suit { position: absolute; right: 14px; bottom: -18px; color: rgba(166, 13, 16, .3); font: 96px Georgia, serif; }
.wallet-topup { margin-top: 14px; padding: 14px 16px; }
.wallet-topup h2 { font-size: 15px; }
.wallet-topup p { margin-top: 6px; color: var(--text-2); font-size: 13px; line-height: 1.7; }
.wallet-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.wallet-submit { margin-top: 22px; }
.wallet-mock-hint { margin-top: 10px; color: var(--text-3); font-size: 12px; text-align: center; }
.wallet-option { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 6px 12px; border: 1px solid rgba(232, 213, 163, .22); border-radius: 12px; background: rgba(255, 255, 255, .03); color: var(--text-2); overflow: hidden; }
.wallet-option b { color: var(--gold-soft); font: 600 18px "DIN Alternate", "Helvetica Neue", Arial, sans-serif; }
.wallet-option span { font-size: 11px; }
.wallet-option.is-on { border-color: var(--gold-soft); background: rgba(166, 13, 16, .28); color: #fff4ef; }
.wallet-option-label { position: absolute; top: 0; right: 0; padding: 1px 7px; border-radius: 0 0 0 8px; background: var(--red); color: #fff4ef; font-size: 10px; font-style: normal; }
.wallet-rules { margin-top: 24px; color: var(--text-3); font-size: 12px; line-height: 1.8; }
.wallet-rules h3 { margin: 0 0 4px; color: var(--text-2); font-size: 13px; font-weight: 500; }
.wallet-rules p { margin: 0; }
.wallet-bottom-space { height: 24px; }

.reward-card { margin: 14px 16px 0; padding: 18px 16px; text-align: center; }
.reward-avatar { width: 88px; height: 88px; margin: 0 auto; border: 2px solid var(--gold-dim); border-radius: 50%; }
.reward-level { margin-top: 12px; color: var(--gold-soft); font-size: 20px; }
.reward-progress { height: 6px; margin: 12px 0 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); }
.reward-progress i { display: block; width: 0; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--red), var(--gold-dim)); }
.reward-card p { margin: 4px 0 0; color: var(--text-3); font-size: 12px; }
.reward-section-title { margin: 20px 16px 8px; color: #fff4ef; font-size: 16px; font-weight: 700; }
.reward-section-title small { margin-left: 8px; color: var(--text-3); font-size: 12px; font-weight: 400; }
.level-card { margin: 0 16px 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.level-card h3 { margin: 0 0 10px; color: var(--gold-soft); font-size: 15px; }
.level-card h3 small { margin-left: 8px; color: var(--text-3); font-size: 11px; font-weight: 400; }
.level-reward { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.level-reward:last-child { border-bottom: 0; }
.level-reward img,
.level-reward .thumb { flex: none; width: 48px; height: 36px; border-radius: 6px; object-fit: cover; background: linear-gradient(135deg, #4a2a18, #1a100a); }
.level-reward div { flex: 1; min-width: 0; }
.level-reward b { display: block; color: #f0e6d8; font-size: 14px; font-weight: 500; }
.level-reward small { color: var(--text-3); font-size: 11px; }
.level-reward .btn { flex: none; height: 30px; padding: 0 14px; font-size: 12px; }
.btn-disabled { opacity: .55; }
.reward-foot { padding: 18px 16px; color: var(--gold-soft); font-size: 14px; text-align: center; }

.voucher-tip { margin: 12px 16px 0; color: var(--text-3); font-size: 12px; line-height: 1.6; }
.voucher-card { margin: 14px 16px 0; overflow: hidden; border: 1px solid rgba(198, 163, 106, .35); border-radius: 12px; background: var(--surface); }
.voucher-card img { width: 100%; height: 260px; object-fit: cover; }
.voucher-body { padding: 14px; }
.voucher-body b { color: #f0e6d8; font-size: 16px; }
.voucher-body p { margin-top: 4px; color: var(--text-3); font-size: 12px; }
.voucher-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.voucher-foot span { color: #fff4ef; font-size: 14px; }
.voucher-foot .btn { height: 34px; padding: 0 16px; font-size: 13px; }

.npc-login { position: relative; padding-top: calc(60px + var(--safe-top)); }
.npc-login-bg {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 280px;
  background: url("./assets/home-hero.jpg") center / cover;
  opacity: .28;
  -webkit-mask-image: linear-gradient(#000, transparent);
  mask-image: linear-gradient(#000, transparent);
  pointer-events: none;
}
.npc-login h2 { position: relative; margin: 0; color: var(--gold); font: 700 30px Georgia, serif; letter-spacing: 4px; text-align: center; }
.npc-store { position: relative; margin: 8px 0 0; color: var(--text-2); font-size: 14px; text-align: center; }
.npc-desc { position: relative; margin: 32px 0 18px; color: var(--text-3); font-size: 13px; line-height: 1.8; }
.npc-field { display: flex; align-items: center; gap: 16px; height: 52px; padding: 0 16px; border: 1px solid rgba(198, 163, 106, .26); border-radius: 10px; background: rgba(255, 255, 255, .03); }
.npc-field + .npc-field { margin-top: 12px; }
.npc-field span { flex: none; width: 48px; color: #f5ead7; font-size: 14px; }
.npc-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #f5ead7; font-size: 14px; }
.npc-field input::placeholder { color: #7c7268; }
.npc-login .btn { margin-top: 20px; }
.npc-hint { margin: 16px 0 0; color: var(--text-3); font-size: 13px; }

.gift-intro { margin: 14px 16px 12px; color: var(--text-3); font-size: 12px; line-height: 1.7; }
.gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 16px; }
.gift-card { position: relative; overflow: hidden; border: 1px solid rgba(198, 163, 106, .35); border-radius: 10px; background: linear-gradient(160deg, #2a2119, #15110d); text-align: left; }
.gift-card.is-owned { border-color: var(--gold); }
.gift-art { position: relative; display: grid; place-items: center; height: 148px; margin: 6px; border: 1px solid rgba(198, 163, 106, .4); border-radius: 6px; background: radial-gradient(circle at 50% 45%, rgba(198, 163, 106, .18), rgba(10, 8, 6, .8) 70%); color: rgba(224, 214, 200, .88); font: 700 52px Georgia, serif; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.gift-art:before, .gift-art:after { content: ""; position: absolute; left: 10%; right: 10%; height: 1px; background: rgba(198, 163, 106, .3); }
.gift-art:before { top: 14px; }
.gift-art:after { bottom: 14px; }
.gift-label { padding: 8px 10px 10px; }
.gift-label b { color: #f5ead7; font-size: 13px; }
.gift-label small { display: block; margin-top: 2px; color: var(--text-3); font-size: 11px; }
.gift-level, .gift-state { position: absolute; top: 8px; color: #c9bba7; font-size: 10px; }
.gift-level { left: 10px; }
.gift-state { right: 10px; }
.gift-sheet-body { padding: 16px; }
.gift-sheet-body b { color: #f5ead7; font-size: 15px; }
.gift-sheet-body p { margin: 6px 0 0; color: var(--text-3); font-size: 13px; }
.gift-sheet-actions { display: flex; gap: 10px; margin-top: 16px; }
.gift-sheet-actions .btn { flex: 1; }

.points-hero { position: relative; margin: 14px 16px; padding: 24px 16px 20px; border: 1px solid rgba(198, 163, 106, .42); border-radius: 12px; background: linear-gradient(160deg, #3a2c16, #1a130c 65%, #150e0a); text-align: center; }
.points-hero:before { content: ""; position: absolute; inset: 0; background: repeating-conic-gradient(from 0deg at 50% 35%, rgba(198, 163, 106, .07) 0 6deg, transparent 6deg 12deg); pointer-events: none; }
.points-medal { position: relative; display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto; border: 2px solid var(--gold-dim); border-radius: 50%; background: radial-gradient(circle, #6a522c, #241a0d); color: var(--gold-soft); font-size: 30px; }
.points-score { position: relative; margin: 14px 0 2px; color: #fff4ef; font: 600 34px "DIN Alternate", Arial, sans-serif; }
.points-score small { margin-left: 4px; font-size: 13px; font-weight: 400; }
.points-sub { position: relative; color: var(--text-3); font-size: 12px; }
.points-help { position: absolute; top: 10px; right: 10px; color: var(--gold-dim); font-size: 12px; }
.points-board { margin: 0 16px; padding: 14px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.points-board h2 { display: flex; align-items: center; gap: 6px; margin: 0; color: #fff4ef; font-size: 15px; }
.board-switch { display: flex; padding: 2px; border-radius: 999px; background: rgba(0, 0, 0, .35); }
.board-switch button { padding: 4px 12px; border-radius: 999px; color: var(--text-3); font-size: 12px; }
.board-switch button.is-on { background: var(--gold-dim); color: #1a1410; }
.points-board > p { margin: 8px 0 10px; color: var(--text-3); font-size: 12px; }
.board-me { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 8px; background: rgba(198, 163, 106, .1); color: var(--text-2); font-size: 13px; }
.board-me b { color: #fff4ef; }
.board-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.board-rank { flex: none; width: 22px; color: var(--gold-soft); font-size: 14px; text-align: center; }
.board-avatar { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(198, 163, 106, .4); border-radius: 50%; background: #2a2119; color: var(--gold-soft); font-size: 12px; }
.board-info { flex: 1; min-width: 0; }
.board-info b { display: block; color: #f0e6d8; font-size: 14px; font-weight: 500; }
.board-info small { color: var(--text-3); font-size: 11px; }
.board-score { flex: none; color: var(--gold-soft); font-size: 15px; font-weight: 600; }
.points-eagle .points-hero { border-color: rgba(166, 13, 16, .55); background: linear-gradient(160deg, #3a1512, #1a0d0b 65%, #140908); }

.lottery-ticket { display: flex; justify-content: space-between; align-items: center; margin: 14px 16px 0; padding: 14px 16px; border: 1px dashed rgba(198, 163, 106, .55); border-radius: 10px; background: linear-gradient(120deg, #241335, #150d1c); }
.lottery-ticket span { color: var(--text-3); font-size: 11px; letter-spacing: 2px; }
.lottery-ticket b { display: block; margin-top: 4px; color: #f0e6d8; font-size: 18px; }
.lottery-ticket p { margin: 4px 0 0; color: var(--text-3); font-size: 12px; }
.lottery-count { color: var(--gold-soft); font-size: 30px; text-align: center; }
.lottery-count small { display: block; color: var(--text-3); font-size: 11px; }
.lottery-wheel { position: relative; width: 300px; height: 300px; max-width: 82vw; max-height: 82vw; margin: 26px auto 0; border: 9px solid #b58b4d; border-radius: 50%; background: conic-gradient(#2b1a1a 0 45deg, #231611 45deg 90deg, #3a1a19 90deg 135deg, #1d1512 135deg 180deg, #2b1a1a 180deg 225deg, #231611 225deg 270deg, #3a1a19 270deg 315deg, #1d1512 315deg 360deg); box-shadow: 0 0 0 4px rgba(198, 163, 106, .2), inset 0 0 40px rgba(0, 0, 0, .8); }
.lottery-wheel span { position: absolute; left: 50%; top: 12%; transform: translateX(-50%); color: var(--gold-soft); font: 700 13px Georgia, serif; }
.lottery-pointer { position: absolute; top: -16px; left: 50%; width: 0; height: 0; transform: translateX(-50%); border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 20px solid #c0161b; z-index: 2; }
.lottery-center { position: absolute; inset: 33%; display: grid; place-items: center; border: 4px solid #b58b4d; border-radius: 50%; background: radial-gradient(circle, #3a2414, #150d08); color: var(--gold-soft); font-size: 15px; }
.lottery-tip { margin: 18px 16px 0; color: var(--text-3); font-size: 13px; text-align: center; }
.lottery-ten { display: block; margin: 12px auto 0; }
.lottery-probs { margin: 24px 16px 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.lottery-probs h2 { margin: 0 0 8px; color: #fff4ef; font-size: 15px; }
.prob-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.prob-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(198, 163, 106, .4); border-radius: 8px; background: #2a2119; color: var(--gold-soft); font: 700 18px Georgia, serif; }
.prob-row div { flex: 1; }
.prob-row b { display: block; color: #f0e6d8; font-size: 14px; font-weight: 500; }
.prob-row small { color: var(--text-3); font-size: 11px; }
.prob-row em { color: var(--gold-soft); font-size: 14px; font-style: normal; }

.badges-quit { margin: 14px 16px; padding: 20px 12px; border: 1px solid rgba(198, 163, 106, .28); border-radius: 12px; background: var(--surface); text-align: center; }
.badges-quit b { color: #f0e6d8; font-size: 16px; }
.badges-quit p { margin: 8px 0 0; color: var(--gold-soft); font-size: 13px; }
.badges-quit .reward-progress { margin: 12px 0 6px; }
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 16px 24px; }
.badge-card { padding: 12px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-align: center; }
.badge-emblem { display: grid; place-items: center; width: 72px; height: 72px; max-width: 100%; margin: 0 auto; border: 2px solid rgba(198, 163, 106, .35); border-radius: 12px; color: rgba(214, 204, 190, .7); font: 700 22px Georgia, serif; }
.badge-card b { display: block; margin-top: 8px; color: #f0e6d8; font-size: 13px; font-weight: 500; }
.badge-card small { display: block; margin-top: 2px; color: var(--text-3); font-size: 11px; }

.lucky-panel { margin: 14px 16px; padding: 20px 14px; border: 1px solid rgba(198, 163, 106, .38); border-radius: 12px; background: linear-gradient(160deg, #3a1a16, #1a0f0c 70%); text-align: center; }
.lucky-en { color: var(--gold-dim); font-size: 11px; letter-spacing: 3px; }
.lucky-panel h2 { margin: 8px 0 20px; color: #fff4ef; font-size: 17px; font-weight: 500; }
.lucky-slots { display: flex; justify-content: center; gap: 30px; }
.lucky-slot { display: grid; place-items: center; width: 100px; height: 140px; border: 2px dashed rgba(198, 163, 106, .45); border-radius: 12px; background: radial-gradient(circle at 50% 45%, rgba(120, 20, 18, .3), rgba(10, 7, 6, .8) 75%); color: #8a1b1b; font: 700 40px Georgia, serif; }
.lucky-slot.is-filled { border-style: solid; border-color: var(--gold); box-shadow: 0 0 18px rgba(198, 163, 106, .3); }
.lucky-slot small { margin-top: 6px; color: var(--text-3); font: 12px/1.4 -apple-system, sans-serif; }
.lucky-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 24px; }
.lucky-card { position: relative; display: grid; place-items: center; aspect-ratio: 2 / 3; border: 1px solid rgba(198, 163, 106, .35); border-radius: 8px; background: linear-gradient(160deg, #f6efdf, #d9cdb6); color: #8a1b1b; font: 700 22px Georgia, serif; }
.lucky-card.is-picked { outline: 2px solid var(--gold); outline-offset: 2px; }
.lucky-card i { position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--red); color: #fff; font-size: 10px; line-height: 18px; text-align: center; }
.lucky-warn { margin: 18px 0 0; color: var(--text-3); font-size: 12px; }
.lucky-warn b { color: var(--red-bright); font-weight: 500; }
.lucky-actions { display: flex; gap: 10px; margin-top: 14px; }
.lucky-actions .btn { flex: 1; }
.lucky-rules { margin: 20px 16px 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text-3); font-size: 12px; line-height: 1.8; }
.lucky-rules h2 { margin: 0 0 8px; color: var(--gold-soft); font-size: 14px; text-align: center; }
.lucky-rules p { margin: 0 0 6px; }

.frame-page { padding-bottom: calc(76px + var(--safe-bottom)); }
.frame-preview { margin: 14px 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.frame-art-wrap { position: relative; overflow: hidden; border-radius: 10px; background: radial-gradient(circle at 50% 30%, #2a211a, #120d0a 70%); }
.frame-art { display: block; width: 100%; border-radius: 6px; }
.frame-info-cover {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 25%;
  bottom: 26%;
  display: flex;
  align-items: center;
  gap: 2.5%;
  color: #f0e6d8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .9);
}
.frame-info-cover .cover-avatar { position: relative; flex: none; display: grid; place-items: center; width: 17%; max-width: 76px; aspect-ratio: 1; border: 2px solid #b58b4d; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #35251a, #160f0a); color: #f0cf8a; font-size: clamp(18px, 5vw, 30px); box-shadow: 0 0 0 2px rgba(0, 0, 0, .45), 0 0 12px rgba(0, 0, 0, .55); }
.frame-info-cover .cover-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.frame-info-cover .cover-avatar:after { content: "Lv.1"; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); padding: 0 5px; border: 1px solid #b58b4d; border-radius: 3px; background: #7c0a0e; color: #ffe0a0; font: 700 9px/1.6 Georgia, serif; white-space: nowrap; }
.frame-info-cover .cover-info { flex: 1; min-width: 0; }
.frame-info-cover .cover-badges { display: flex; gap: 5px; }
.frame-info-cover .cover-badges span { padding: 0 5px; border: 1px solid rgba(198, 163, 106, .7); border-radius: 3px; color: #f0cf8a; font-size: clamp(8px, 2.2vw, 11px); line-height: 1.5; white-space: nowrap; }
.frame-info-cover b { display: block; margin-top: 3px; font-size: clamp(12px, 3.5vw, 18px); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame-info-cover small { display: block; color: #c9bba7; font-size: clamp(9px, 2.4vw, 12px); }
.frame-info-cover .cover-progress { display: block; width: 78%; height: 3px; margin-top: 5px; border-radius: 2px; background: rgba(240, 207, 138, .22); }
.frame-info-cover .cover-medal { flex: none; display: grid; place-items: center; width: 16%; max-width: 68px; aspect-ratio: 1; border: 1px dashed rgba(198, 163, 106, .42); border-radius: 50%; color: rgba(198, 163, 106, .48); font-size: clamp(16px, 4.5vw, 26px); }
.frame-thumb.is-image { padding: 0; border: 0; background: #0d0907; box-shadow: none; }
.frame-thumb.is-image:before, .frame-thumb.is-image:after { display: none; }
.frame-thumb-img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 5px; }
.frame-preview-inner { position: relative; display: flex; align-items: center; gap: 12px; padding: 22px 16px; border: 3px solid var(--frame-color, #b58b4d); border-radius: 10px; background: var(--frame-bg, linear-gradient(160deg, #2a2119, #15110e)); box-shadow: 0 0 0 2px rgba(229, 195, 157, .34), inset 0 0 20px rgba(0, 0, 0, .75); }
.frame-preview-inner:before { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(229, 195, 157, .55); border-radius: 6px; pointer-events: none; }
.frame-preview-inner:after { content: ""; position: absolute; inset: -7px; border: 1px solid var(--frame-color, #b58b4d); border-radius: 14px; opacity: .35; pointer-events: none; }
.frame-preview-banner { position: absolute; top: -12px; left: 50%; z-index: 2; transform: translateX(-50%); padding: 1px 12px 2px; border: 1.5px solid #f0cf8a; border-radius: 6px; background: var(--banner-bg, linear-gradient(#c4161c, #7c0a0e)); color: #ffe0a0; font: 700 11px Georgia, "Songti SC", serif; letter-spacing: 1px; white-space: nowrap; }
.frame-preview-gift { position: absolute; left: 50%; bottom: -13px; z-index: 2; width: 28px; height: 24px; transform: translateX(-50%); }
.frame-avatar { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border: 2px solid var(--gold-dim); border-radius: 50%; background: #241a14; color: var(--gold-soft); font-size: 30px; }
.frame-user { flex: 1; min-width: 0; }
.frame-user b { display: block; color: #fff4ef; font-size: 16px; }
.frame-user small { display: block; margin-top: 2px; color: var(--text-3); font-size: 11px; }
.frame-medal { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border: 1px dashed rgba(198, 163, 106, .4); border-radius: 50%; color: rgba(198, 163, 106, .5); font-size: 22px; }
.frame-preview-title { margin: 12px 0 0; color: var(--gold-soft); font-size: 12px; text-align: center; }
.frame-intro { margin: 16px 16px 10px; color: var(--text-3); font-size: 12px; line-height: 1.7; }
.frame-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 16px; }
.frame-item { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-align: left; }
.frame-thumb { position: relative; display: flex; align-items: center; gap: 10px; height: 90px; margin: 8px; padding: 10px; border: 5px solid var(--frame-color); border-radius: 8px; background: var(--frame-bg, #1a1410); }
.frame-thumb .dot { flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(198, 163, 106, .22); }
.frame-thumb .lines { flex: 1; height: 8px; border-radius: 4px; background: rgba(198, 163, 106, .2); box-shadow: 0 16px rgba(198, 163, 106, .2); }
.frame-thumb { box-shadow: inset 0 0 0 2px rgba(229, 195, 157, .38), inset 0 0 16px rgba(0, 0, 0, .7); }
.frame-thumb:before { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(229, 195, 157, .45); border-radius: 4px; pointer-events: none; }
.frame-thumb:after { content: attr(data-title); position: absolute; top: -5px; left: 50%; z-index: 1; transform: translateX(-50%); padding: 0 6px; border: 1px solid #f0cf8a; border-radius: 4px; background: var(--banner-bg, linear-gradient(#c4161c, #7c0a0e)); color: #ffe0a0; font: 700 8px Georgia, "Songti SC", serif; white-space: nowrap; }
.frame-thumb em { position: absolute; top: 2px; right: 4px; z-index: 1; color: #c9bba7; font-size: 10px; font-style: normal; }
.frame-corner-mini { position: absolute; z-index: 1; width: 6px; height: 6px; border: 1px solid #f0cf8a; background: var(--frame-color); transform: rotate(45deg); }
.frame-corner-mini.c1 { top: -3px; left: -3px; }
.frame-corner-mini.c2 { top: -3px; right: -3px; }
.frame-corner-mini.c3 { bottom: -3px; left: -3px; }
.frame-corner-mini.c4 { bottom: -3px; right: -3px; }
.frame-thumb .mini-gift { position: absolute; bottom: -5px; left: 50%; width: 18px; height: 15px; transform: translateX(-50%); background: linear-gradient(#d01c24, #8a1116); border: 1px solid #f0cf8a; border-radius: 2px; }
.frame-item b, .frame-item small { display: block; padding: 0 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.frame-item b { color: #f0e6d8; font-size: 13px; }
.frame-item small { margin: 2px 0 10px; color: var(--text-3); font-size: 11px; }
.frame-bottom { position: fixed; left: 50%; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; max-width: var(--app-max); padding: 12px 16px calc(12px + var(--safe-bottom)); transform: translateX(-50%); background: var(--bar); border-top: 1px solid var(--line); }
.frame-bottom span { min-width: 0; color: #f0e6d8; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.frame-bottom small { display: block; color: var(--text-3); font-size: 11px; }
.frame-bottom .btn { flex: none; height: 40px; padding: 0 18px; font-size: 13px; }

.join-intro { margin: 14px 16px; padding: 18px 16px; border: 1px solid rgba(198, 163, 106, .38); border-radius: 12px; background: linear-gradient(160deg, #2b2119, #17110d); }
.join-intro h2 { margin: 0 0 8px; color: #f0e6d8; font-size: 18px; }
.join-intro p { margin: 0; color: var(--text-3); font-size: 13px; line-height: 1.7; }
.join-title { margin: 20px 16px 10px; color: #f0e6d8; font-size: 15px; font-weight: 600; }
.join-field { display: flex; align-items: center; min-height: 56px; margin: 0 16px 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .02); }
.join-field label { flex: none; width: 64px; color: #f0e6d8; font-size: 14px; }
.join-field input, .join-field textarea { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #f5ead7; font-size: 14px; }
.join-field input::placeholder, .join-field textarea::placeholder { color: #7c7268; }
.join-field.textarea { align-items: flex-start; padding: 12px 14px; }
.join-field textarea { min-height: 88px; resize: none; }
.join-submit { margin: 18px 16px 0; }
.join-note { margin: 10px 16px 24px; color: var(--text-3); font-size: 12px; }

.npc-detail-hero { position: relative; height: 300px; margin: 0 -16px; overflow: hidden; }
.npc-detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.npc-detail-hero:after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 42%, var(--bg)); }
.npc-detail-info { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 1; }
.npc-detail-name { display: flex; align-items: center; gap: 8px; color: #fff4ef; font-size: 26px; font-weight: 700; }
.npc-badge { padding: 2px 6px; border-radius: 4px; background: var(--red); color: #fff; font-size: 11px; font-weight: 400; }
.npc-detail-store { margin-top: 2px; color: var(--text-2); font-size: 12px; }
.npc-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.npc-detail-tags span { padding: 4px 10px; border: 1px solid rgba(198, 163, 106, .35); border-radius: 999px; color: var(--gold-soft); font-size: 12px; }
.npc-stat-row { display: flex; margin-top: 16px; padding: 14px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.npc-stat-item { flex: 1; text-align: center; }
.npc-stat-item + .npc-stat-item { border-left: 1px solid var(--line); }
.npc-stat-item b { display: block; color: var(--gold-soft); font-size: 22px; }
.npc-stat-item small { color: var(--text-3); font-size: 12px; }
.npc-stat-item.is-like b { color: var(--text-3); font-size: 18px; }
.npc-stat-hint { margin: 12px 0 0; color: var(--text-3); font-size: 12px; text-align: center; }
.npc-about { margin-top: 24px; }
.npc-about h2 { display: flex; align-items: baseline; justify-content: space-between; margin: 0; color: #fff4ef; font-size: 16px; }
.npc-about h2 small { color: var(--text-3); font-size: 11px; letter-spacing: 2px; }
.npc-about p { margin: 12px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.9; }
.npc-foot { margin: 22px 0; color: var(--text-3); font-size: 12px; text-align: center; line-height: 1.9; }
.npc-foot a { color: var(--gold-soft); }

.legal { padding: 18px 16px 32px; color: var(--text-2); font-size: 14px; line-height: 1.95; }
.legal-dates { margin-bottom: 18px; color: var(--text-3); font-size: 12px; }
.legal h2 { margin: 24px 0 10px; color: #f5ead7; font-size: 15px; font-weight: 600; }
.legal p { margin: 0 0 10px; }
.legal .legal-intro { margin-bottom: 18px; }
.legal b { color: #f5ead7; font-weight: 500; }

.settings-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 0 18px; }
.settings-avatar { display: grid; place-items: center; width: 84px; height: 84px; border: 2px solid var(--gold-dim); border-radius: 50%; background: #241a14; color: var(--gold-soft); }
.settings-avatar img { width: 100%; height: 100%; border-radius: 50%; }
.settings-hero span { color: var(--text-3); font-size: 12px; }
.settings-field { display: flex; align-items: center; gap: 12px; min-height: 56px; margin-bottom: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.settings-field > b { flex: none; width: 56px; color: #f0e6d8; font-size: 14px; font-weight: 400; }
.settings-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #f5ead7; font-size: 14px; }
.settings-field input::placeholder { color: #7c7268; }
.settings-seg { display: flex; gap: 12px; }
.settings-seg button { padding: 5px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-3); font-size: 13px; }
.settings-seg button.is-on { border-color: var(--gold-dim); background: rgba(198, 163, 106, .16); color: var(--gold-soft); }
.settings-link { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 4px 0; }
.settings-link div { text-align: left; }
.settings-link b { display: block; color: #f0e6d8; font-size: 14px; font-weight: 500; }
.settings-link small { color: var(--text-3); font-size: 11px; }
.settings-link i { color: var(--text-3); }
.settings-save { margin-top: 18px; }

.privacy-group { margin: 0 16px 12px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.privacy-group > b { display: block; padding: 8px 0; color: var(--gold-soft); font-size: 13px; font-weight: 500; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .05); }
.switch-row div { flex: 1; }
.switch-row b { display: block; color: #f0e6d8; font-size: 14px; font-weight: 500; }
.switch-row small { display: block; margin-top: 2px; color: var(--text-3); font-size: 11px; line-height: 1.5; }
.switch { position: relative; flex: none; width: 44px; height: 24px; border-radius: 999px; background: #40382f; transition: background .2s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #d8cbb8; transition: left .2s; }
.switch.is-on { background: var(--red); }
.switch.is-on i { left: 23px; background: #fff; }
.privacy-note { margin: 16px 16px 28px; color: var(--text-3); font-size: 12px; line-height: 1.8; }

.local-orders { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.local-order-card { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.local-order-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.local-order-head b { color: #f5ead7; font-size: 14px; font-weight: 600; }
.local-order-head span { color: var(--gold-soft); font-size: 12px; }
.local-order-amount { margin-top: 8px; color: var(--gold-soft); font-family: "DIN Alternate", "Helvetica Neue", Arial, sans-serif; font-size: 22px; font-weight: 600; }
.local-order-amount:before { content: "¥"; margin-right: 1px; font-size: .7em; }
.local-order-meta { margin-top: 4px; color: var(--text-3); font-size: 12px; }
.local-order-items { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .05); color: var(--text-2); font-size: 12px; line-height: 1.7; }
