:root {
  --bg: #f5faff;
  --bg-deep: #edf7ff;
  --card: rgba(255, 255, 255, .94);
  --ink: #18283b;
  --muted: #8a9aaa;
  --subtle: #b1bdc8;
  --line: #e8f0f7;
  --blue: #398ff4;
  --blue-strong: #1975e8;
  --blue-soft: #eaf5ff;
  --mint: #4fc8b3;
  --orange: #f2a44a;
  --shadow: 0 12px 32px rgba(62, 135, 195, .09);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { min-height: 100%; margin: 0; color: var(--ink); background: radial-gradient(circle at 50% -10%, #fff 0 22%, transparent 50%), var(--bg); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { border: 0; cursor: pointer; }
button:active:not(.draw-core) { transform: translateY(1px); }
img { max-width: 100%; }
[hidden] { display: none !important; }

.app-shell { width: min(100%, 430px); min-height: 100dvh; margin: 0 auto; overflow: hidden; position: relative; background: linear-gradient(180deg, #fafdff 0%, #f4faff 58%, #eef8ff 100%); }
.preview-note { padding: 8px 16px; color: #527694; background: #e8f6ff; font-size: 11px; text-align: center; }
.service-banner { display: flex; align-items: center; gap: 7px; padding: 8px 16px; color: #a97824; background: #fff8e8; font-size: 11px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #f2b34d; }

.topbar { height: 74px; padding: 17px 18px 8px; display: flex; align-items: center; justify-content: space-between; }
.brand, .message-entry { display: inline-flex; align-items: center; background: transparent; color: var(--ink); }
.brand { gap: 10px; text-align: left; }
.brand-mark { width: 31px; height: 31px; display: grid; place-items: center; border: 2px solid #1f78dc; border-radius: 50%; color: #1f78dc; background: #edf6ff; box-shadow: inset 0 0 0 3px white; font-size: 13px; font-weight: 800; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 13px; letter-spacing: .1px; }
.brand-copy small { color: #8497a6; font-size: 9px; }
.message-entry { gap: 7px; color: #566676; font-size: 11px; }
.message-entry i { width: 5px; height: 5px; border-radius: 50%; background: #35bb91; }
.mini-avatar, .profile-avatar { display: grid; place-items: center; border-radius: 50%; color: white; background: linear-gradient(145deg, #1e5e9d, #55a6e9); font-weight: 800; }
.mini-avatar { width: 25px; height: 25px; border: 2px solid white; box-shadow: 0 3px 8px #75a5c855; font-size: 11px; }

.views { padding: 0 18px 92px; }
.app-shell.is-subview .topbar { display: none; }
.view { display: none; min-height: calc(100dvh - 74px); padding-bottom: 14px; }
.view.is-active { display: block; animation: rise .22s ease-out; }
@keyframes rise { from { opacity: .2; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.page-heading { min-height: 75px; display: flex; align-items: flex-start; justify-content: space-between; padding: 7px 2px 14px; }
.page-heading h1 { margin: 2px 0 0; color: #13283e; font-size: 28px; line-height: 1.08; letter-spacing: -1.2px; }
.kicker { margin: 0; color: #9aabba; font-size: 10px; letter-spacing: .4px; }
.text-button { display: inline-flex; align-items: center; gap: 3px; padding: 5px 0; color: var(--blue-strong); background: transparent; font-size: 11px; }
.text-button span, .live-tag span, .activity-rule-line button span { font-size: 18px; line-height: 10px; }

/* 抽奖首页 */
.draw-stage-card { position: relative; min-height: 380px; padding: 6px 0 14px; overflow: hidden; border: 1px solid #e5f3ff; border-radius: 28px; background: linear-gradient(180deg, #f5fbff, #eaf6ff); box-shadow: var(--shadow); }
.draw-stage-glow { position: absolute; top: 34px; left: 50%; width: 285px; height: 285px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.96) 0 42%, rgba(205,234,255,.4) 70%, rgba(164,215,255,0) 72%); }
.draw-stage { width: 292px; height: 292px; position: relative; margin: 7px auto 0; }
.draw-orbit { position: absolute; inset: 22px; border: 1px solid #c4e3ff; border-radius: 50%; box-shadow: 0 0 0 12px #ffffff55, inset 0 0 23px #b8deff77; }
.orbit-two { inset: 42px; border-color: #dceeff; box-shadow: none; }
.draw-grid { position: absolute; inset: 0; z-index: 2; }
.draw-prize { width: 88px; min-height: 86px; position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 7px 5px 6px; border: 1px solid #ecf2f7; border-radius: 14px; background: rgba(255,255,255,.97); box-shadow: 0 9px 17px rgba(77, 141, 187, .12); text-align: center; }
.draw-prize:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.draw-prize:nth-child(2) { top: 50%; right: 0; transform: translateY(-50%); }
.draw-prize:nth-child(3) { bottom: 0; left: 50%; transform: translateX(-50%); }
.draw-prize:nth-child(4) { top: 50%; left: 0; transform: translateY(-50%); }
.draw-prize img { width: 48px; height: 44px; object-fit: contain; }
.draw-prize small { max-width: 78px; overflow: hidden; color: #2a4054; font-size: 9px; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.draw-core { width: 108px; height: 108px; position: absolute; z-index: 3; top: 50%; left: 50%; display: grid; place-items: center; align-content: center; gap: 4px; padding: 0; transform: translate(-50%, -50%); border: 5px solid #c9e8ff; border-radius: 50%; color: white; background: linear-gradient(145deg, #66b5f5, #2583e9); box-shadow: 0 8px 20px rgba(39, 126, 225, .3), inset 0 1px 1px #ffffff88; transition: box-shadow .2s, filter .2s; }
.draw-core:active { transform: translate(-50%, -50%) scale(.97); }
.draw-core:disabled { cursor: wait; filter: saturate(.85); }
.draw-core strong { font-size: 20px; line-height: 1.12; letter-spacing: 1px; }
.draw-core small { font-size: 8px; opacity: .9; }
.draw-core small b { color: #fff; }
.draw-stage-card.spinning .draw-grid { animation: prize-spin 1.15s cubic-bezier(.15,.72,.2,1); }
.draw-stage-card.spinning .draw-orbit { animation: orbit-pulse 1.15s ease-in-out; }
@keyframes prize-spin { 0% { transform: rotate(0deg); } 22% { transform: rotate(170deg); } 56% { transform: rotate(470deg); } 82% { transform: rotate(650deg); } 100% { transform: rotate(720deg); } }
@keyframes orbit-pulse { 0%,100% { opacity: 1; transform: scale(1); } 45% { opacity: .62; transform: scale(1.06); } }
.draw-summary { position: relative; z-index: 2; display: flex; justify-content: center; align-items: baseline; gap: 7px; color: #8197a8; font-size: 11px; }
.draw-summary strong { color: #277dd7; font-size: 16px; }
.draw-tip { padding: 15px 6px 16px; text-align: center; }
.tip-icon { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 4px; border-radius: 7px; color: white; background: #65b2f1; font-size: 11px; vertical-align: middle; }
.draw-tip p { display: inline; color: #748a9b; font-size: 10px; }
.draw-tip em { color: var(--blue); font-style: normal; font-weight: 800; }
.draw-tip button { display: block; margin: 7px auto 0; color: var(--blue-strong); background: transparent; font-size: 11px; font-weight: 800; }

.section-card, .invite-code-card, .share-card, .profile-card, .menu-card, .form-card, .success-card, .inventory-card, .list-card, .ranking-card { border: 1px solid rgba(228, 239, 247, .94); border-radius: 17px; background: var(--card); box-shadow: 0 8px 24px rgba(83, 137, 177, .055); }
.section-card { margin-top: 10px; padding: 15px 12px 13px; }
.section-head { display: flex; align-items: center; justify-content: space-between; }
.section-head h2 { margin: 0; color: #213649; font-size: 14px; letter-spacing: -.2px; }
.live-tag { display: inline-flex; align-items: center; gap: 2px; padding: 3px 6px; border-radius: 8px; color: #32b878; background: #effcf5; font-size: 9px; }
.stock-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 11px; }
.stock-item { min-width: 0; display: grid; grid-template-columns: 43px minmax(0, 1fr); align-items: center; gap: 7px; padding: 8px; border: 1px solid #edf2f6; border-radius: 11px; background: #fff; }
.stock-item img { width: 43px; height: 43px; object-fit: contain; }
.stock-info { min-width: 0; }
.stock-info strong, .stock-info small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stock-info strong { color: #304457; font-size: 10px; }
.stock-info small { margin-top: 5px; color: #738797; font-size: 9px; }
.stock-info small b { color: #18b978; font-size: 12px; }
.stock-dot { width: 6px; height: 6px; align-self: end; margin-bottom: 3px; border-radius: 50%; background: #2ac17e; }
.stock-empty, .empty-state { padding: 24px 10px; color: #a3b1bd; font-size: 11px; text-align: center; }
.wide { width: 100%; }
.outline-button, .primary-button { height: 42px; border-radius: 13px; font-size: 12px; font-weight: 800; }
.outline-button { color: var(--blue-strong); border: 1px solid #a9d3ff; background: #f7fcff; }
.stock-preview .outline-button { height: 34px; margin-top: 11px; font-size: 10px; }
.primary-button { color: white; background: linear-gradient(100deg, #56aafa, #2585ed); box-shadow: 0 9px 16px rgba(44, 137, 237, .18); }
.link-button { height: 34px; color: var(--blue-strong); background: transparent; font-size: 11px; }

/* 邀请页 */
.invite-heading { position: relative; min-height: 174px; padding-top: 12px; overflow: hidden; }
.invite-heading h1 { font-size: 26px; line-height: 1.2; }
.heading-desc { margin: 16px 0 0; color: #8093a1; font-size: 10px; line-height: 1.8; }
.invite-illustration { width: 138px; height: 142px; position: absolute; right: -4px; bottom: 0; overflow: hidden; }
.invite-illustration::after { content: ""; position: absolute; right: 2px; bottom: -18px; width: 142px; height: 68px; border-radius: 50%; background: #d9edff; }
.person { position: absolute; z-index: 2; bottom: 21px; display: block; width: 48px; height: 78px; border-radius: 25px 25px 12px 12px; background: linear-gradient(160deg, #3d9af1 0 46%, #dceeff 47%); box-shadow: -5px 8px 0 #b8dcff; }
.person::before { content: ""; position: absolute; top: -21px; left: 8px; width: 33px; height: 33px; border: 3px solid #f3c5a3; border-radius: 50%; background: #2b4156; }
.person::after { content: ""; position: absolute; top: 12px; left: 2px; width: 16px; height: 31px; border-radius: 14px; background: #fff; transform: rotate(-18deg); }
.person-blue { right: 62px; transform: rotate(-4deg); }
.person-pink { right: 18px; bottom: 16px; height: 71px; background: linear-gradient(160deg, #f1a6af 0 46%, #fff1f3 47%); transform: rotate(4deg); }
.person-pink::before { background: #6a493e; }
.spark { position: absolute; z-index: 1; display: block; width: 7px; height: 7px; border-radius: 50%; background: #75c9ff; }
.spark-a { top: 24px; right: 35px; }.spark-b { top: 54px; right: 4px; background: #aedfff; }
.invite-code-card { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; }
.invite-code-card span { display: block; color: #5b9ee7; font-size: 10px; font-weight: 800; }.invite-code-card strong { display: block; margin-top: 4px; color: #1b72d8; font-size: 22px; letter-spacing: 1.4px; }
.copy-button { padding: 9px 16px; border: 1px solid #dceeff; border-radius: 10px; color: var(--blue-strong); background: #f0f8ff; font-size: 11px; font-weight: 800; }
.share-card { margin-top: 9px; padding: 13px 14px; }
.share-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.share-actions button { display: grid; justify-items: center; gap: 5px; color: #65798a; background: transparent; font-size: 9px; }.share-actions b { font-weight: 500; }
.share-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: white; font-size: 16px; }.wechat { background: #50c776; }.friend { background: #f9a23b; }.qq { background: #42c7ec; }.link { background: #9274f6; }
.invite-progress { padding: 15px 0 15px; border-bottom: 1px solid var(--line); }.invite-progress .section-head span { color: #8093a2; font-size: 10px; }.invite-progress p { margin: 9px 0 16px; color: #8495a2; font-size: 10px; }.invite-progress em { color: #397fc4; font-style: normal; font-weight: 800; }
.progress-track { height: 4px; position: relative; margin: 0 10px; border-radius: 2px; background: #e5eff8; }.progress-track i { display: block; width: 12%; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #55aaf7, #2a84eb); }.progress-dot { width: 11px; height: 11px; position: absolute; top: 50%; border: 3px solid #e1effc; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); }.progress-dot::after { content: ""; width: 5px; height: 5px; position: absolute; top: 50%; left: 50%; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); }.dot-one { left: 0; border-color: #2d8bef; background: #2d8bef; }.dot-two { left: 33%; }.dot-three { left: 66%; }.dot-four { left: 100%; }.progress-labels { display: flex; justify-content: space-between; margin: 8px 0 0; color: #9ba9b3; font-size: 8px; }.activity-rule-line { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; }.activity-rule-line h2 { margin: 0 0 6px; font-size: 13px; }.activity-rule-line p { margin: 0; color: #9aaab6; font-size: 9px; }.activity-rule-line button { display: inline-flex; align-items: center; gap: 2px; color: var(--blue-strong); background: transparent; font-size: 9px; }
.leaderboard-preview { margin-top: 10px; }.empty-leader { padding: 15px 0 3px; color: #a2afb9; font-size: 10px; }

/* 我的 */
.profile-card { margin-top: 8px; padding: 16px 14px 12px; }.profile-main { display: flex; align-items: center; gap: 10px; }.profile-avatar { width: 46px; height: 46px; border: 3px solid #e2f2ff; font-size: 18px; }.profile-main h1 { margin: 0; font-size: 16px; }.profile-main p { margin: 5px 0 0; color: #8b9aa6; font-size: 9px; }.verified-badge { margin-left: auto; padding: 4px 7px; border: 1px solid #b9efd5; border-radius: 8px; color: #2fb67b; background: #f2fff8; font-size: 9px; }.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 17px; border-top: 1px solid var(--line); padding-top: 12px; text-align: center; }.profile-stats div + div { border-left: 1px solid var(--line); }.profile-stats strong, .profile-stats span { display: block; }.profile-stats strong { font-size: 16px; }.profile-stats span { margin-top: 4px; color: #8c9ba7; font-size: 9px; }.menu-card { margin-top: 11px; overflow: hidden; padding: 0 14px; }.menu-card button { min-height: 45px; display: flex; align-items: center; gap: 10px; width: 100%; border-bottom: 1px solid #edf2f5; color: #314355; background: transparent; text-align: left; }.menu-card button:last-child { border-bottom: 0; }.menu-card b { font-size: 11px; font-weight: 700; }.menu-card i { margin-left: auto; color: #a8b6c1; font-size: 17px; font-style: normal; }.menu-icon { width: 20px; color: #4d6275; font-size: 16px; text-align: center; }.menu-card em { margin-left: auto; padding: 3px 6px; border: 1px solid #b9efd5; border-radius: 8px; color: #32b878; font-size: 8px; font-style: normal; }.menu-card em + i { margin-left: 2px; }.order-card { margin-top: 10px; }.order-card .section-head { margin-bottom: 9px; }.order-empty, .order-item { padding: 11px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdff; }.order-empty { color: #9aa9b4; font-size: 10px; text-align: center; }.order-empty button { margin-left: 8px; color: var(--blue); background: transparent; font-size: 10px; }.order-top { display: flex; align-items: center; justify-content: space-between; }.order-top b { font-size: 11px; }.status-chip { padding: 4px 7px; border-radius: 7px; font-size: 9px; }.status-chip.pending { color: #d88e29; background: #fff6e6; }.status-chip.valid { color: #22ad74; background: #effcf5; }.status-chip.invalid { color: #ef6c6c; background: #fff0f0; }.order-meta { display: flex; gap: 25px; margin-top: 9px; }.order-meta span, .order-meta strong { display: block; }.order-meta span { color: #9daab5; font-size: 8px; }.order-meta strong { margin-top: 3px; font-size: 10px; }.order-tip { margin: 9px 0 0; color: #8c9aa7; font-size: 9px; line-height: 1.6; }

/* 子页面、表单和列表 */
.subview { padding: 1px 0 20px; }.subpage-head { height: 53px; display: grid; grid-template-columns: 34px 1fr 70px; align-items: center; margin: 0 -2px 9px; }.subpage-head h1 { margin: 0; font-size: 16px; text-align: center; }.subpage-head > span { justify-self: end; }.back-button { width: 30px; height: 30px; color: #25394b; background: transparent; font-size: 29px; font-weight: 300; line-height: 24px; }.stepper { display: flex; align-items: flex-start; padding: 2px 13px 16px; }.step { display: grid; justify-items: center; gap: 5px; min-width: 54px; color: #9dacb9; font-size: 9px; }.step b { width: 14px; height: 14px; display: grid; place-items: center; border-radius: 50%; color: #b8c7d2; background: #e4eef7; font-size: 8px; }.step.active { color: var(--blue-strong); }.step.active b { color: white; background: var(--blue); }.stepper > i { flex: 1; height: 1px; margin: 7px 3px 0; background: #d9e8f4; }.form-card { padding: 14px 13px 16px; }.form-lead { margin: 0 0 16px; color: #8999a6; font-size: 10px; }.auto-bind { display: flex; align-items: center; gap: 8px; margin: -3px 0 14px; padding: 9px; border: 1px solid #c9ebdb; border-radius: 10px; color: #29a971; background: #f0fff7; }.auto-bind > span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; color: white; background: #53c994; font-size: 12px; }.auto-bind b, .auto-bind small { display: block; }.auto-bind b { font-size: 10px; }.auto-bind small { margin-top: 3px; color: #75a48c; font-size: 9px; }.form-card label { display: block; margin-top: 14px; color: #2f4152; font-size: 11px; font-weight: 800; }.form-card input { display: block; width: 100%; height: 44px; margin-top: 7px; padding: 0 13px; border: 1px solid #e0eaf1; border-radius: 10px; outline: 0; color: var(--ink); background: #fbfdff; font-size: 12px; }.form-card input:focus { border-color: #81bff8; box-shadow: 0 0 0 3px #dff1ff; }.form-card input::placeholder { color: #b2bec8; }.privacy-copy { margin: 15px 0 14px; color: #a1aeb8; font-size: 9px; }.success-card { min-height: 480px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 24px; text-align: center; }.success-art { width: 112px; height: 112px; display: grid; place-items: center; margin-bottom: 25px; border-radius: 32px; background: radial-gradient(circle at 50% 43%, #fff 0 22%, #bedfff 23% 29%, transparent 30%), linear-gradient(145deg, #eff8ff, #d5ecff); box-shadow: 0 14px 28px #9dcef733; }.success-art span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: white; background: #4ecdb3; box-shadow: 0 9px 15px #4ecdb355; font-size: 27px; }.success-card h1 { margin: 0; color: var(--blue-strong); font-size: 20px; }.success-card p { margin: 11px 0 22px; color: #8396a5; font-size: 10px; line-height: 1.8; }.success-card .link-button { margin-top: 5px; }.inventory-card { padding: 10px; }.inventory-card > p { margin: 18px 0 7px; color: #a4b0b9; font-size: 10px; text-align: center; }.inventory-row { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 74px; padding: 8px; border-bottom: 1px solid #edf2f5; }.inventory-row:last-child { border-bottom: 0; }.inventory-row img { width: 48px; height: 48px; object-fit: contain; }.inventory-info strong, .inventory-info small { display: block; }.inventory-info strong { font-size: 11px; }.inventory-info small { margin-top: 7px; color: #8d9da8; font-size: 9px; }.inventory-info small b { color: #21b679; font-size: 13px; }.inventory-side { min-width: 50px; text-align: right; }.inventory-side strong, .inventory-side small { display: block; }.inventory-side strong { color: #20ae74; font-size: 11px; }.inventory-side small { margin-top: 6px; color: #a1adb7; font-size: 8px; }.inventory-progress { height: 4px; margin-top: 8px; border-radius: 4px; background: #ecf2f7; }.inventory-progress i { display: block; height: 100%; border-radius: 4px; background: #4da5f3; }.tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 10px 11px; border-bottom: 1px solid #e8eff5; }.tabs button { height: 34px; position: relative; color: #95a2ad; background: transparent; font-size: 10px; }.tabs button.active { color: var(--blue-strong); font-weight: 800; }.tabs button.active::after { content: ""; position: absolute; bottom: -1px; left: 22%; right: 22%; height: 2px; border-radius: 2px; background: var(--blue); }.list-card { padding: 7px; }.list-row { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 9px; min-height: 70px; padding: 8px; border-bottom: 1px solid #edf2f5; }.list-row:last-child { border-bottom: 0; }.list-row img { width: 44px; height: 44px; object-fit: contain; }.list-row b, .list-row small { display: block; }.list-row b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.list-row small { margin-top: 5px; color: #9aa7b2; font-size: 8px; }.list-status { align-self: start; padding-top: 5px; color: #f0a047; font-size: 9px; }.list-status.claimed, .list-status.won { color: #31b57d; }.list-status.none { color: #9daab5; }.list-row .claim-action { margin-top: 6px; padding: 4px 7px; border-radius: 6px; color: #267fe0; background: #edf7ff; font-size: 8px; }.ranking-card { padding: 14px 10px; }.leaderboard-tabs { grid-template-columns: repeat(2, 1fr); margin: 0 0 13px; background: #fff; border: 1px solid var(--line); border-radius: 9px; }.leaderboard-tabs button.active::after { display: none; }.ranking-top { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; margin-bottom: 12px; }.rank-user { display: grid; justify-items: center; gap: 4px; color: #354658; }.rank-user.featured { transform: translateY(-8px); }.rank-number { color: #9eabb4; font-size: 10px; }.rank-avatar { width: 43px; height: 43px; display: grid; place-items: center; border: 3px solid white; border-radius: 50%; box-shadow: 0 4px 10px #7faaca55; color: white; font-size: 12px; font-weight: 800; }.avatar-gold { background: #e5aa45; }.avatar-blue { background: #478fd1; }.avatar-silver { background: #9daab4; }.rank-user b { font-size: 10px; }.rank-user small { color: #95a3ae; font-size: 8px; }.ranking-card > p { margin: 13px 0 1px; color: #a4b0b9; font-size: 9px; text-align: center; }.rank-line { display: grid; grid-template-columns: 22px 27px 1fr auto; align-items: center; gap: 7px; min-height: 39px; border-top: 1px solid #edf2f5; font-size: 9px; }.rank-line img { width: 24px; height: 24px; border-radius: 50%; background: #dcefff; }.rank-line small { color: #9aa8b3; }

/* 底部导航与弹层 */
.bottom-nav { height: 65px; position: fixed; z-index: 8; bottom: 0; left: 50%; display: grid; grid-template-columns: repeat(3, 1fr); width: min(100%, 430px); padding: 7px 10px env(safe-area-inset-bottom, 0); border-top: 1px solid #e5eef5; background: rgba(255,255,255,.92); box-shadow: 0 -4px 16px rgba(83, 140, 182, .04); backdrop-filter: blur(16px); transform: translateX(-50%); }.app-shell:not(.has-bottom-nav) .bottom-nav { display: none; }.bottom-nav button { position: relative; display: grid; justify-items: center; gap: 3px; color: #9aa8b3; background: transparent; font-size: 9px; }.bottom-nav button span { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 9px; font-size: 18px; }.bottom-nav button b { font-size: 9px; font-weight: 500; }.bottom-nav button.active { color: var(--blue-strong); }.bottom-nav button.active span { color: var(--blue); background: #e9f5ff; }.bottom-nav i { width: 7px; height: 7px; position: absolute; top: 0; right: 28%; border: 2px solid white; border-radius: 50%; background: #ef9d62; }
.modal { position: fixed; z-index: 20; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 0 0 env(safe-area-inset-bottom, 0); background: #173b5266; }.modal[hidden] { display: none; }.modal-sheet { width: min(100%, 430px); position: relative; padding: 26px 21px 26px; border-radius: 24px 24px 0 0; background: white; box-shadow: 0 -10px 35px #1f5d8122; animation: sheet-up .2s ease-out; }.modal-close { width: 27px; height: 27px; position: absolute; top: 14px; right: 15px; border-radius: 50%; color: #8d9eaa; background: #f0f5f8; font-size: 19px; line-height: 20px; }.result-sheet { display: flex; flex-direction: column; align-items: center; padding-top: 30px; text-align: center; }.result-badge { width: 51px; height: 51px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 17px; color: white; background: linear-gradient(145deg, #6abaf6, #2789ed); font-size: 25px; transform: rotate(-7deg); }.modal-sheet h2 { margin: 3px 0 0; font-size: 21px; }.result-sheet img { width: 122px; height: 92px; margin: 10px 0 5px; object-fit: contain; }.result-sheet > strong { font-size: 14px; }.result-sheet > p:not(.kicker) { margin: 8px 0 17px; color: #8a9ba7; font-size: 10px; }.rules-sheet h2 { margin: 3px 0 12px; font-size: 20px; }.rules-sheet ol { margin: 0; padding-left: 18px; color: #687c8b; font-size: 11px; line-height: 1.85; }.rules-sheet li + li { margin-top: 7px; }.toast { max-width: calc(100% - 40px); position: fixed; z-index: 30; bottom: 79px; left: 50%; padding: 10px 14px; border-radius: 10px; color: white; background: #234c65ee; box-shadow: 0 8px 18px #234c6540; opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: .2s; font-size: 10px; text-align: center; }.toast.show { opacity: 1; transform: translate(-50%, 0); }
@keyframes sheet-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (max-width: 360px) {
  .views { padding-right: 13px; padding-left: 13px; }
  .draw-stage { transform: scale(.9); transform-origin: top center; margin-bottom: -25px; }
  .draw-stage-card { min-height: 345px; }
  .page-heading h1 { font-size: 25px; }
}
