:root {
    --mint: #e4f6e6;
    --mint-2: #d3efd6;
    --mint-deep: #bfe7c4;
    --blue-1: #4fc3f7;
    --blue-2: #2f9fe0;
    --blue-3: #1f7fc4;
    --yellow: #ffd233;
    --yellow-2: #ffbe28;
    --yellow-deep: #f0a500;
    --green: #38c172;
    --green-2: #27ae60;
    --green-deep: #1e9e54;
    --ink: #21412c;
    --ink-2: #2f5239;
    --muted: #7b9483;
    --line: #e3efe5;
    --card: #ffffff;
    --hero-image: none;
    --card-radius: 18px;
    --shadow-soft: 0 10px 26px rgba(31, 90, 50, .12);
    --shadow-card: 0 8px 20px rgba(31, 90, 50, .10);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--mint);
}

button, input { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.hidden { display: none !important; }

.app-shell {
    width: min(480px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(120% 80% at 50% 0%, #eafaeb 0%, var(--mint) 38%, var(--mint-2) 100%);
}

.page { padding: 0 14px 30px; }

/* ===== 主视觉 ===== */
.hero {
    height: 210px;
    margin: 12px 0 14px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: linear-gradient(180deg, var(--blue-1), var(--blue-2) 70%, var(--blue-3));
}
.hero-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #7fd6f7, #3aa9e6 60%); }
.hero-sea { position: absolute; left: 0; right: 0; bottom: 36px; height: 60px; background: linear-gradient(180deg, #2b97d8, #1f7fc4); opacity: .85; }
.hero-sand {
    position: absolute; left: 0; right: 0; bottom: 0; height: 44px;
    background: linear-gradient(180deg, #ffe7a8, #f6cf78);
    border-radius: 50% 50% 0 0 / 26px 26px 0 0;
}
.deco { position: absolute; z-index: 2; line-height: 1; }
.cloud { width: 56px; height: 18px; background: rgba(255,255,255,.9); border-radius: 999px; box-shadow: 14px 6px 0 -3px rgba(255,255,255,.9), -14px 5px 0 -4px rgba(255,255,255,.9); }
.cloud.c1 { top: 22px; left: 22px; transform: scale(.9); }
.cloud.c2 { top: 40px; right: 26px; transform: scale(.7); }
.palm { font-size: 46px; bottom: 18px; filter: drop-shadow(0 4px 5px rgba(0,0,0,.18)); }
.palm.p1 { left: 6px; }
.palm.p2 { right: 6px; transform: scaleX(-1); }
.ball { font-size: 30px; top: 30px; right: 70px; transform: rotate(12deg); filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); }

.hero-mark { position: relative; z-index: 3; text-align: center; padding: 26px 16px 0; color: #fff; }
.hero-eyebrow {
    margin: 0 0 6px; font-size: 10px; font-weight: 800; letter-spacing: 3px;
    text-transform: uppercase; color: #fff8d8; opacity: .92;
}
.hero-title {
    margin: 0; font-size: 46px; font-weight: 900; letter-spacing: 2px; line-height: 1;
    background: linear-gradient(180deg, #fff6c4 6%, var(--yellow) 55%, var(--yellow-deep) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 3px 0 #1f6fae) drop-shadow(0 6px 10px rgba(0,0,0,.25));
}
.hero-subtitle {
    display: inline-block; margin: 12px 0 0; padding: 5px 14px;
    font-size: 12px; font-weight: 700; color: #fff;
    background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.45); border-radius: 999px;
    backdrop-filter: blur(3px);
}
.hero-time { margin: 9px 0 0; font-size: 12px; font-weight: 700; color: #fff; letter-spacing: 1px; }
.hero-time b { color: var(--yellow); }

.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background-image: var(--hero-image); background-size: cover; background-position: center; }

/* 封面海报①：上传整张图时铺满展示 */
.hero.has-image { height: auto; background: none; }
.hero.has-image::before { display: none; }
.hero-img { display: block; width: 100%; height: auto; }

/* 主画轮播（多图自动切换，淡入淡出） */
.hero-carousel { position: relative; width: 100%; overflow: hidden; }
.hero-carousel .hero-img { opacity: 0; transition: opacity .6s ease; }
.hero-carousel .hero-img.active { opacity: 1; }
.hero-carousel .hero-img:not(:first-child) { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.hero-dots {
    position: absolute; left: 0; right: 0; bottom: 10px; z-index: 4;
    display: flex; justify-content: center; gap: 6px;
}
.hero-dots span {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255, 255, 255, .55); transition: background .3s, width .3s;
}
.hero-dots span.on { width: 16px; border-radius: 4px; background: #fff; }

/* ===== 了解详情按钮（封面图下方） ===== */
.detail-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; margin: 0 0 14px; padding: 12px 16px;
    border-radius: 12px; background: #fff;
    color: var(--green); font-size: 15px; font-weight: 800;
    border: 1px solid rgba(39, 174, 96, .35);
    box-shadow: 0 6px 14px rgba(31, 90, 50, .10);
    text-decoration: none;
}
.detail-btn i { font-style: normal; font-weight: 700; }

/* ===== 门店地址 + 一键导航 ===== */
.store-address { margin: 4px 0 10px; color: var(--ink); font-size: 14px; line-height: 1.55; }
.nav-btn {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 2px; padding: 10px 18px; border: 0; border-radius: 10px;
    background: linear-gradient(135deg, var(--green), var(--green-2));
    color: #fff; font-size: 14px; font-weight: 800;
    box-shadow: 0 6px 14px rgba(39, 174, 96, .3);
}

/* ===== 卡片基础 ===== */
.card {
    background: var(--card);
    border-radius: var(--card-radius);
    margin-bottom: 14px;
    box-shadow: var(--shadow-card);
}

/* ===== 登录卡片 ===== */
.login-card { padding: 16px; }
.lo-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.lo-head strong { font-size: 17px; color: var(--ink); }
.lo-head em { font-style: normal; font-size: 12px; color: var(--muted); }

.wx-btn {
    width: 100%; border: 0; border-radius: 12px;
    padding: 12px 16px;
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(135deg, var(--green), var(--green-2));
    color: #fff; text-align: left;
    box-shadow: 0 8px 18px rgba(39, 174, 96, .32);
}
.wx-ico {
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center; font-size: 20px;
    background: rgba(255,255,255,.22);
}
.wx-text b { display: block; font-size: 16px; font-weight: 800; }
.wx-text i { display: block; font-style: normal; font-size: 11px; opacity: .9; margin-top: 2px; }

.acct-link {
    display: block; width: 100%; margin-top: 12px;
    border: 0; background: transparent; color: var(--muted);
    font-size: 13px; text-align: center;
}

.login-in { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 12px; }
.li-avatar {
    width: 50px; height: 50px; border-radius: 50%;
    display: grid; place-items: center; font-size: 18px; font-weight: 800;
    color: #fff; background: linear-gradient(135deg, var(--green), var(--green-2));
    border: 2px solid #fff; box-shadow: 0 4px 10px rgba(39,174,96,.3);
}
.li-info strong { display: block; font-size: 16px; color: var(--ink); }
.li-info span { font-size: 12px; color: var(--muted); }
.li-points { text-align: center; }
.li-points em { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.li-points strong { font-size: 22px; font-weight: 900; color: var(--yellow-deep); }

/* ===== 赛程标题 ===== */
.matches-head { margin: 18px 2px 12px; }
.mh-eyebrow { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: 3px; color: var(--green-2); }
.mh-title { margin: 2px 0 0; font-size: 22px; font-weight: 900; color: var(--ink); }

/* ===== 日期选择 ===== */
.date-picker {
    width: 100%; border: 0;
    border-radius: 12px; padding: 12px 16px; margin-bottom: 12px;
    display: flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, #fff4cc, #ffe79c);
    color: var(--yellow-deep);
    box-shadow: 0 6px 14px rgba(240,165,0,.2);
}
.dp-ico { font-size: 18px; }
.dp-label { font-size: 14px; font-weight: 700; color: #9a7a1a; }
.date-picker strong { font-size: 18px; font-weight: 900; }
.dp-caret { margin-left: auto; font-size: 14px; }

.date-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; -ms-overflow-style: none; scrollbar-width: none; }
.date-tabs::-webkit-scrollbar { display: none; }
.date-tab {
    flex: 0 0 auto;
    border: 1px solid var(--mint-deep);
    border-radius: 999px; padding: 8px 16px;
    background: #fff; color: var(--ink-2);
    font-size: 13px; font-weight: 700; white-space: nowrap;
}
.date-tab.active {
    background: linear-gradient(135deg, var(--yellow), var(--yellow-2));
    border-color: transparent; color: #6a4a00;
    box-shadow: 0 6px 12px rgba(240,165,0,.3);
}

.date-heading { margin: 6px 2px 12px; font-size: 16px; font-weight: 800; color: var(--ink); }

/* ===== 比赛卡片 ===== */
.match-cards { display: grid; gap: 14px; }
.match-cards.loading { min-height: 140px; place-items: center; color: var(--muted); }

.match-card {
    background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid #eef6ef;
}
.mc-head {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; border-bottom: 1px dashed #ecefed;
}
.mc-label { font-size: 12px; color: var(--muted); }
.mc-time { font-size: 22px; font-weight: 900; color: var(--ink); letter-spacing: 1px; }
.mc-status {
    margin-left: auto; font-size: 12px; font-weight: 800;
    padding: 4px 12px; border-radius: 999px;
}
.mc-status.open { color: var(--green-2); background: #e3f7ea; }
.mc-status.closed { color: #9aa3a0; background: #f0f2f1; }

.mc-coupon {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; background: #fffae9;
}
.mc-coupon > span { font-size: 13px; color: #9a7a1a; }
.mc-coupon > strong { font-size: 18px; font-weight: 900; color: var(--yellow-deep); }
.mc-coupon > em { margin-left: auto; font-style: normal; font-size: 11px; color: #b79a52; }

.mc-teams {
    display: grid; grid-template-columns: 1fr 76px 1fr;
    align-items: stretch; gap: 8px; padding: 16px;
}
.team-cell {
    border: 1.5px solid #eef0ef; border-radius: 12px;
    background: #fff; padding: 12px 6px 10px;
    display: grid; justify-items: center; gap: 6px;
    text-align: center;
}
.team-cell.selected {
    border-color: var(--yellow-2);
    background: linear-gradient(180deg, #fffdf3, #fff6d8);
    box-shadow: 0 4px 12px rgba(240,165,0,.2);
}
.tc-flag { width: 46px; height: 46px; display: grid; place-items: center; }
.tc-flag .flag-img { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.tc-flag .flag-emoji { font-size: 38px; line-height: 1; }
.tc-name { font-size: 15px; font-weight: 800; color: var(--ink); }
.tc-en { font-size: 11px; color: var(--muted); text-transform: capitalize; }
.tc-support {
    margin-top: 2px; min-width: 56px;
    padding: 5px 14px; border-radius: 999px;
    font-size: 13px; font-weight: 800; color: #6a4a00;
    background: linear-gradient(135deg, var(--yellow), var(--yellow-2));
}
.team-cell.selected .tc-support { background: var(--green); color: #fff; }
.team-cell[disabled] { opacity: .55; }
.team-cell[disabled] .tc-support { background: #eceeed; color: #9aa3a0; }

.draw-cell {
    border: 1.5px solid #eef0ef; border-radius: 12px;
    background: #fafbfa;
    display: grid; align-content: center; justify-items: center; gap: 2px;
    padding: 8px 4px;
}
.draw-cell.selected {
    border-color: var(--yellow-2);
    background: linear-gradient(180deg, #fffdf3, #fff6d8);
    box-shadow: 0 4px 12px rgba(240,165,0,.2);
}
.draw-cell .dc-big { font-size: 26px; font-weight: 900; color: var(--yellow-deep); line-height: 1; }
.draw-cell .dc-sub { font-size: 11px; color: var(--muted); }
.draw-cell .tc-support { margin-top: 6px; }
.draw-cell.selected .tc-support { background: var(--green); color: #fff; }
.draw-cell[disabled] { opacity: .55; }

.mc-foot {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-top: 1px solid #f1f4f2;
}
.mc-state { font-size: 13px; color: var(--muted); }
.mc-state.picked { color: var(--green-2); font-weight: 700; }
.mc-state.correct { color: var(--green-2); font-weight: 800; }
.mc-state.wrong { color: #d2705a; font-weight: 700; }
.mc-submit {
    margin-left: auto; border: 0;
    padding: 9px 20px; border-radius: 999px;
    font-size: 14px; font-weight: 800; color: #6a4a00;
    background: linear-gradient(135deg, var(--yellow), var(--yellow-2));
    box-shadow: 0 6px 12px rgba(240,165,0,.28);
}
.mc-submit:disabled, .mc-submit.done {
    background: #eef0ef; color: #9aa3a0; box-shadow: none; cursor: default;
}

/* ===== 我的数据 ===== */
.my-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 12px; }
.my-stats button {
    border: 0; border-radius: 14px; padding: 16px;
    background: #fff; box-shadow: var(--shadow-card);
    display: grid; gap: 4px; text-align: center;
}
.my-stats p { margin: 0; font-size: 13px; color: var(--muted); }
.my-stats strong { font-size: 30px; font-weight: 900; color: var(--yellow-deep); }
.my-stats span { font-size: 12px; color: var(--green-2); font-weight: 700; }

/* ===== 底部装饰 ===== */
.foot-cards { display: flex; align-items: flex-end; justify-content: center; gap: 8px; height: 60px; margin: 10px 0 6px; position: relative; }
.foot-cards i {
    width: 26px; height: 38px; border-radius: 6px;
    transform: rotate(-8deg);
}
.foot-cards i:nth-child(1){ background:#ff8a8a; }
.foot-cards i:nth-child(2){ background:#ffd24d; transform: rotate(-3deg); height: 44px; }
.foot-cards i:nth-child(3){ background:#7ed957; transform: rotate(2deg); height: 48px; }
.foot-cards i:nth-child(4){ background:#5ec5ff; transform: rotate(5deg); height: 44px; }
.foot-cards i:nth-child(5){ background:#c89bff; transform: rotate(9deg); }
.foot-cards b { position: absolute; right: 8px; bottom: 0; font-size: 13px; font-weight: 900; letter-spacing: 2px; color: var(--green-2); opacity: .7; }

.page-footer { text-align: center; color: var(--muted); font-size: 12px; padding: 8px 0 4px; letter-spacing: .5px; }

/* ===== 右侧悬浮页签 ===== */
.side-tabs {
    position: fixed;
    right: calc(50% - min(240px, 50%));
    top: 30%;
    z-index: 25;
    display: grid; gap: 8px;
}
.side-tabs button {
    width: 22px; padding: 12px 4px;
    border: 0; border-radius: 8px 0 0 8px;
    background: linear-gradient(180deg, var(--green), var(--green-2));
    color: #fff; font-size: 12px; font-weight: 700;
    writing-mode: vertical-rl; letter-spacing: 2px;
    box-shadow: -2px 4px 10px rgba(39,174,96,.3);
}

/* ===== 回到顶部 ===== */
.back-top {
    position: fixed;
    right: calc(50% - min(240px, 50%) + 14px);
    bottom: 80px;
    width: 44px; height: 44px;
    border: 0; border-radius: 50%;
    background: #fff; color: var(--green-2);
    font-size: 22px; box-shadow: var(--shadow-soft);
    z-index: 20;
}

/* ===== 弹窗 ===== */
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 60; padding: 18px; }
.modal.show { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 40, 22, .55); backdrop-filter: blur(2px); }
.modal-panel {
    width: min(420px, 100%); max-height: min(86vh, 720px); overflow-y: auto;
    background: #fff; border-radius: 20px; position: relative; z-index: 1;
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.modal-panel.small { padding: 26px; }
.modal-panel h2 { margin: 0; font-size: 21px; color: var(--ink); }
.modal-close {
    width: 40px; height: 40px; border: 0; background: transparent;
    color: #b3c0b6; font-size: 34px; line-height: 1;
    position: absolute; right: 10px; top: 10px; z-index: 2;
}
.muted { color: var(--muted); line-height: 1.6; }

.form-stack { display: grid; gap: 14px; margin-top: 16px; }
.form-stack label { display: grid; gap: 7px; color: var(--ink-2); font-weight: 700; font-size: 14px; }
.form-stack input { width: 100%; border: 1px solid #dde7df; border-radius: 12px; min-height: 48px; padding: 0 14px; }
.form-stack input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(56,193,114,.16); }

.primary-btn {
    min-height: 50px; border: 0; border-radius: 999px;
    padding: 0 20px; font-size: 16px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--green), var(--green-2));
    box-shadow: 0 10px 22px rgba(39,174,96,.3);
}

/* ===== 转盘 ===== */
.draw-dialog { padding: 24px 20px 22px; }
.draw-dialog h2 { padding-right: 46px; }
.draw-dialog .muted { margin-top: 8px; }
.wheel-stage { display: grid; place-items: center; margin: 18px auto 14px; }
.wheel-wrap { width: 290px; height: 290px; position: relative; }
/* 顶部指针（固定不转） */
.wheel-pointer {
    position: absolute; top: -4px; left: 50%; transform: translateX(-50%);
    width: 0; height: 0; z-index: 4;
    border-left: 15px solid transparent; border-right: 15px solid transparent;
    border-top: 26px solid #e2452a;
    filter: drop-shadow(0 3px 3px rgba(0,0,0,.28));
}
.wheel-pointer::after {
    content: ""; position: absolute; left: 50%; top: -34px; transform: translateX(-50%);
    width: 14px; height: 14px; border-radius: 50%; background: #e2452a;
    box-shadow: 0 2px 4px rgba(0,0,0,.25);
}
/* 转盘本体（SVG，旋转） */
.wheel {
    width: 290px; height: 290px; border-radius: 50%;
    position: relative; transform: rotate(0deg);
    transition: transform 4.2s cubic-bezier(.12,.78,.18,1);
    filter: drop-shadow(0 14px 30px rgba(31,90,50,.32));
}
.wheel svg { display: block; width: 100%; height: 100%; }
/* 中心 GO 按钮（固定不转） */
.wheel-hub {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 70px; height: 70px; border-radius: 50%; z-index: 3; pointer-events: none;
    display: grid; place-items: center;
    background: radial-gradient(circle at 35% 30%, #fff, #f5f7f5);
    box-shadow: 0 6px 16px rgba(0,0,0,.22), 0 0 0 5px rgba(255,255,255,.7);
}
.wheel-hub span {
    font-size: 22px; font-weight: 900; letter-spacing: 1px;
    color: var(--green-2);
}
.chance-list { display: grid; gap: 8px; max-height: 116px; overflow-y: auto; margin-bottom: 14px; }
.chance-item {
    border: 1px solid var(--line); border-radius: 12px; padding: 10px;
    display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center;
    color: var(--ink-2); font-size: 14px;
}
.chance-flags { display: inline-flex; gap: 4px; align-items: center; }
.chance-flags .flag-img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.draw-btn { width: 100%; }
.draw-result { margin-top: 14px; }
.result-card {
    border-radius: 14px; background: linear-gradient(135deg, #fff6e2, #fdeecb);
    padding: 15px; color: #7a5212; line-height: 1.7; border: 1px dashed rgba(240,165,0,.6);
}
.result-card strong { font-size: 18px; color: #8a5b12; }

/* ===== 列表弹窗 ===== */
.list-dialog { padding: 24px 20px; }
.list-dialog h2 { padding-right: 46px; margin-bottom: 16px; }
.my-guess-list, .gift-list { display: grid; gap: 10px; }
.guess-item, .gift-item {
    border: 1px solid var(--line); border-radius: 14px; padding: 14px;
    background: linear-gradient(135deg, #fff, #f9fdf9);
}
.guess-item strong, .gift-item strong { display: block; margin-bottom: 6px; color: var(--ink); }
.guess-item p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }

.gift-item header { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.status-badge {
    display: inline-flex; align-items: center; min-height: 24px; padding: 0 12px;
    border-radius: 999px; background: #e3f7ea; color: var(--green-2);
    font-size: 12px; font-weight: 700; white-space: nowrap;
}
.status-badge.redeemed, .status-badge.expired, .status-badge.empty { background: #f0f2f1; color: #9aa3a0; }
.code-line {
    margin-top: 10px; border-radius: 10px;
    background: linear-gradient(135deg, #fff6e2, #fdeecb); color: #8a5b12;
    padding: 11px 13px; font-size: 16px; font-weight: 800;
    display: flex; justify-content: space-between; gap: 8px; border: 1px dashed rgba(240,165,0,.6);
}
.code-line button { border: 0; background: transparent; color: var(--green-2); font-weight: 800; }
.gift-meta { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.list-empty { text-align: center; color: #9aa3a0; padding: 30px 0; }
.list-empty .empty-box { font-size: 60px; filter: grayscale(1); opacity: .35; }

/* ===== 奖品/规则 ===== */
.gift-preview { display: grid; gap: 12px; }
.prize-row {
    display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center;
    padding: 10px; border: 1px solid var(--line); border-radius: 14px;
    background: linear-gradient(135deg, #fbfffb, #f4faf5);
}
.prize-thumb {
    height: 64px; border-radius: 12px; display: grid; place-items: center;
    font-size: 34px; color: var(--c, var(--yellow-deep)); background: #fff;
    border: 1px solid #eef0f0; background-size: cover; background-position: center; overflow: hidden;
}
.prize-row strong { display: block; font-size: 16px; margin-bottom: 4px; color: var(--ink); }
.prize-row p, .rule-block p { margin: 0; color: #5b6b60; font-size: 14px; line-height: 1.7; white-space: pre-line; }
.rule-block { margin-top: 16px; }
.rule-block:first-child { margin-top: 0; }
.rule-block h3 {
    display: inline-block; margin: 0 0 8px; padding: 0 12px; height: 28px; line-height: 28px;
    font-size: 14px; color: var(--green-deep); background: #eaf8ee;
    border-left: 3px solid var(--green); border-radius: 6px;
}
.brand-text { color: var(--green-deep) !important; font-weight: 700; }
.redeem-codes { display: grid; gap: 10px; margin-top: 14px; }

/* ===== Toast ===== */
.toast {
    position: fixed; left: 50%; bottom: 28px;
    transform: translateX(-50%) translateY(16px);
    max-width: min(360px, calc(100% - 36px)); min-height: 42px; padding: 11px 20px;
    display: flex; align-items: center; justify-content: center; border-radius: 999px;
    background: rgba(20, 50, 28, .94); color: #fff; z-index: 80;
    opacity: 0; pointer-events: none; transition: .2s ease; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===== 比赛倒计时 ===== */
.mc-countdown {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px; font-size: 13px; font-weight: 800;
    color: #c0392b; background: #fff3f0;
    border-bottom: 1px dashed #ffe0d8;
}
.mc-countdown.ended { color: #9aa3a0; background: #f3f5f4; }

/* ===== 选择日期下拉 ===== */
.date-picker-wrap { position: relative; }
.date-picker.open .dp-caret { transform: rotate(180deg); }
.date-menu {
    position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px);
    background: #fff; border-radius: 14px; padding: 8px;
    box-shadow: 0 16px 40px rgba(31,90,50,.22); border: 1px solid var(--line);
    max-height: 320px; overflow-y: auto;
    display: grid; gap: 4px;
}
.date-menu-item {
    display: flex; align-items: center; justify-content: space-between;
    border: 0; background: #fff; border-radius: 10px; padding: 11px 14px;
    font-size: 15px; font-weight: 800; color: var(--ink); text-align: left;
}
.date-menu-item:hover { background: #f3faf4; }
.date-menu-item.active { background: #fff6d8; color: #6a4a00; }
.date-menu-item em { font-style: normal; font-size: 12px; font-weight: 700; color: #9aa3a0; }
.date-menu-item em.on { color: var(--green-2); }
.date-menu-item.ended span { color: var(--muted); }
.date-menu-empty { padding: 16px; text-align: center; color: var(--muted); }

/* ===== 大转盘抽奖入口 ===== */
.draw-entry {
    width: 100%; border: 0; border-radius: 16px;
    margin: 16px 0 4px; padding: 14px 16px;
    display: flex; align-items: center; gap: 12px;
    background: linear-gradient(135deg, #fff1c9, #ffd86b);
    box-shadow: 0 8px 20px rgba(240,165,0,.3);
}
.draw-entry .de-ico { font-size: 30px; }
.draw-entry .de-text { flex: 1; text-align: left; }
.draw-entry .de-text b { display: block; font-size: 17px; font-weight: 900; color: #6a4a00; }
.draw-entry .de-text i { display: block; font-style: normal; font-size: 12px; color: #9a7a1a; margin-top: 2px; }
.draw-entry .de-count {
    min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px;
    display: grid; place-items: center; font-size: 16px; font-weight: 900;
    color: #fff; background: #e74c3c;
}
.draw-entry.has-chance { animation: drawPulse 1.6s ease-in-out infinite; }
@keyframes drawPulse {
    0%, 100% { box-shadow: 0 8px 20px rgba(240,165,0,.3); }
    50% { box-shadow: 0 8px 26px rgba(231,76,60,.5); }
}

/* ===== 冠军竞猜 ===== */
.champion-card {
    width: 100%; border: 0; text-align: left;
    margin: 4px 0 16px; padding: 16px;
    border-radius: 18px; color: #fff;
    background: linear-gradient(135deg, #5b3df0, #8a5bff 60%, #b06bff);
    box-shadow: 0 12px 28px rgba(91,61,240,.32);
    position: relative; overflow: hidden;
}
.champion-card::after {
    content: "🏆"; position: absolute; right: -6px; bottom: -16px;
    font-size: 96px; opacity: .16; transform: rotate(-10deg);
}
.champ-head { display: flex; align-items: center; gap: 10px; }
.champ-badge {
    font-size: 12px; font-weight: 900; padding: 4px 10px; border-radius: 999px;
    background: rgba(255,255,255,.22); color: #fff;
}
.champ-title { font-size: 20px; font-weight: 900; letter-spacing: 1px; }
.champ-desc { margin: 10px 0 0; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.92); position: relative; z-index: 1; }
.champ-countdown { margin-top: 10px; font-size: 13px; font-weight: 800; color: #ffe066; }
.champ-countdown.big { margin: 12px 0; font-size: 15px; color: #8a5bff; text-align: center; }
.champ-foot { margin-top: 12px; font-size: 14px; font-weight: 800; color: #fff; position: relative; z-index: 1; }

/* 冠军竞猜弹窗 */
.champ-status { margin: 12px 0; }
.champ-result-banner, .champ-mine-banner, .champ-tip {
    border-radius: 12px; padding: 12px 14px; font-size: 14px; text-align: center;
}
.champ-result-banner { background: #fff6d8; color: #6a4a00; font-weight: 800; }
.champ-result-banner strong { color: #c0392b; }
.champ-mine-banner { background: #eef0ff; color: #5b3df0; font-weight: 700; }
.champ-mine-banner.muted { background: #f3f5f4; color: #9aa3a0; }
.champ-tip { background: #f3faf4; color: var(--green-2); font-weight: 700; }
.champ-teams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 16px; }
.champ-team {
    border: 1.5px solid #e6e3ff; border-radius: 12px; padding: 12px 4px;
    background: #fbfaff; color: var(--ink); font-size: 14px; font-weight: 800;
}
.champ-team.selected { border-color: #8a5bff; background: linear-gradient(180deg,#f3efff,#e9e1ff); color: #5b3df0; box-shadow: 0 4px 12px rgba(138,91,255,.25); }
.champ-team.winner { border-color: var(--yellow-2); background: linear-gradient(180deg,#fffdf3,#fff3c8); color: #6a4a00; }
.champ-team[disabled] { opacity: .6; }

/* ===== 积分排行榜 ===== */
.points-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.ps-tab {
    border: 1px solid var(--line); border-radius: 999px; padding: 10px;
    background: #fff; color: var(--ink-2); font-size: 14px; font-weight: 800;
}
.ps-tab.active {
    background: linear-gradient(135deg, var(--green), var(--green-2));
    color: #fff; border-color: transparent; box-shadow: 0 6px 14px rgba(39,174,96,.3);
}
.points-board { display: grid; gap: 8px; }
.points-row {
    display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px;
    padding: 11px 12px; border-radius: 12px; background: #f9fdf9; border: 1px solid var(--line);
}
.points-row.me { background: #fff6d8; border-color: var(--yellow-2); }
.pr-rank {
    width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
    font-size: 14px; font-weight: 900; color: var(--muted); background: #eef0ef;
}
.pr-rank.top { color: #fff; }
.pr-rank.top1 { background: linear-gradient(135deg,#ffce54,#f0a500); }
.pr-rank.top2 { background: linear-gradient(135deg,#cfd8dc,#9aa3a0); }
.pr-rank.top3 { background: linear-gradient(135deg,#e6a86b,#c8814a); }
.pr-name { font-size: 15px; font-weight: 800; color: var(--ink); overflow: hidden; }
.pr-name em { display: block; font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); }
.pr-points { font-size: 18px; font-weight: 900; color: var(--yellow-deep); }

/* ===== 顶部滚动通知 ===== */
.notice-bar {
    display: flex; align-items: center; gap: 8px;
    margin: 0 0 12px; padding: 9px 12px;
    border-radius: 12px; background: #fff; box-shadow: var(--shadow-card);
    overflow: hidden;
}
.nb-ico { flex: 0 0 auto; font-size: 16px; }
.nb-viewport { flex: 1; overflow: hidden; }
.nb-track {
    display: inline-block; white-space: nowrap; padding-left: 100%;
    font-size: 13px; font-weight: 700; color: var(--ink-2);
    animation: marquee 18s linear infinite;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

/* ===== 中奖结果卡片（带奖品图片） ===== */
.result-card { display: flex; gap: 12px; align-items: center; text-align: left; }
.result-card.miss { background: #f3f5f4; color: #7a7f7c; border-color: #e3e6e4; }
.rc-thumb {
    flex: 0 0 auto; width: 60px; height: 60px; border-radius: 12px;
    background-size: cover; background-position: center; background-color: #fff;
    display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.rc-thumb.emoji { font-size: 30px; }
.rc-info { flex: 1; min-width: 0; }
.rc-code { margin-top: 4px; font-weight: 800; word-break: break-all; }
.rc-tip { margin: 4px 0 0; font-size: 13px; }

/* ===== 积分榜·我的积分卡片 ===== */
.my-points-card {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    margin: 14px 0; padding: 14px; border-radius: 14px; color: #fff;
    background: linear-gradient(135deg, var(--green), var(--green-2));
    box-shadow: 0 8px 20px rgba(39,174,96,.3);
}
.mp-col { text-align: center; }
.mp-col span { display: block; font-size: 12px; opacity: .9; }
.mp-col strong { display: block; font-size: 22px; font-weight: 900; margin-top: 2px; }
.mp-login { grid-column: 1 / -1; text-align: center; font-weight: 700; }
.points-board-title { margin: 6px 0 10px; font-size: 15px; color: var(--ink); }

@media (max-width: 380px) {
    .hero-title { font-size: 40px; }
    .mc-teams { grid-template-columns: 1fr 66px 1fr; }
    .tc-name { font-size: 14px; }
    .my-stats strong { font-size: 26px; }
    .champ-teams { grid-template-columns: repeat(2, 1fr); }
    .wheel-wrap, .wheel { width: 260px; height: 260px; }
}

/* 强制微信登录：非微信环境 / 授权失败拦截层 */
.wx-gate { position: fixed; inset: 0; z-index: 9999; background: rgba(20, 18, 40, .92); display: flex; align-items: center; justify-content: center; padding: 24px; }
.wx-gate-card { background: #fff; border-radius: 18px; padding: 28px 22px; max-width: 340px; width: 100%; text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.wx-gate-img { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; margin: 0 auto 14px; display: block; }
.wx-gate-card h2 { margin: 0 0 10px; font-size: 20px; color: #1f1b3a; }
.wx-gate-card p { margin: 0 0 18px; color: #6b6785; font-size: 14px; line-height: 1.6; }
.wx-gate-btn { display: inline-block; border: 0; border-radius: 999px; background: #07c160; color: #fff; padding: 12px 26px; font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none; }
