/* 2026 海南省大学男子足球联赛 · 竞猜互动 H5 */
:root {
  --primary: #3498db;
  --primary-d: #1f78c1;
  --primary-l: #eaf4fc;
  --text: #1f2d3d;
  --text-2: #5b6b7b;
  --muted: #98a6b5;
  --line: #e8eef4;
  --gold: #f5a623;
  --green: #27ae60;
  --red: #e74c3c;
  --orange: #f2994a;
  --tabbar-h: 58px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: #2f8fd3;
}
body.noscroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; padding: 0; color: inherit; cursor: pointer; }
input { font: inherit; }
img { max-width: 100%; display: block; }

.app {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(180deg, #3498db 0%, #3498db 60%, #2f8ad0 100%);
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px);
  overflow-x: hidden;
}
.view { min-height: calc(100vh - 120px); }

/* ---------- 通用块 ---------- */
.kv { position: relative; }
.kv img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.htitle { margin: 14px 16px 4px; text-align: center; color: #fff; font-size: 21px; font-weight: 700; letter-spacing: 1px; text-shadow: 0 2px 6px rgba(0, 60, 120, .25); }
.hsub { margin: 0 16px 6px; text-align: center; color: rgba(255, 255, 255, .85); font-size: 13px; }

.panel {
  margin: 12px;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .14);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 18px rgba(10, 70, 130, .12);
}
.card {
  margin: 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 6px 18px rgba(10, 70, 130, .14);
}
.card-h {
  background: rgba(255, 255, 255, .18);
  color: #fff;
  text-align: center;
  padding: 11px 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
}
.card-b { background: #fff; padding: 14px; color: var(--text); }
.card-b.flush { padding: 0; }

.stats3 { display: flex; text-align: center; padding: 14px 6px; }
.stats3 > div { flex: 1; }
.stats3 b { display: block; font-size: 24px; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; }
.stats3 span { font-size: 13px; opacity: .9; }

.cd-title { text-align: center; font-size: 15px; margin-bottom: 10px; }
.cd-title::before, .cd-title::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px rgba(255, 255, 255, .8); vertical-align: middle; margin: 0 10px; }
.cd { display: flex; justify-content: center; align-items: center; gap: 8px; }
.cd .u { width: 52px; padding: 6px 0; border: 1px solid rgba(255, 255, 255, .7); border-radius: 8px; text-align: center; background: rgba(255, 255, 255, .08); }
.cd .u b { display: block; font-size: 20px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cd .u i { font-style: normal; font-size: 12px; opacity: .9; }
.cd .sep { font-weight: 700; opacity: .9; }
.cd-end { text-align: center; font-size: 18px; font-weight: 600; }

.notice { display: flex; align-items: center; margin: 10px 12px 0; padding: 7px 12px; border-radius: 20px; background: rgba(255, 255, 255, .92); color: var(--primary-d); font-size: 13px; overflow: hidden; }
.notice i { font-style: normal; margin-right: 6px; flex: none; }
.marquee { flex: 1; overflow: hidden; white-space: nowrap; }
.marquee span { display: inline-block; padding-left: 100%; animation: marquee 16s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- 首页入口 ---------- */
body.is-home { background: #edf5fa; }
.is-home .app { background: #f0f6fa; padding-bottom: env(safe-area-inset-bottom); }
.is-home .view { min-height: 0; }
.home-banner { background: #3894cb; }
.home-banner img { width: 100%; height: auto; }
.home-entry-section { padding: 24px 16px 12px; }
.home-entry-section h1 { margin: 0 0 22px; text-align: center; color: #173f59; font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.home-entries { display: grid; grid-template-columns: 1fr; gap: 16px; }
.home-entry { display: flex; align-items: center; gap: 16px; min-height: 98px; padding: 20px; background: #fff; border: 1px solid #dce7ee; border-radius: 22px; box-shadow: 0 8px 24px rgba(24, 68, 98, .07); transition: transform .18s, box-shadow .18s; }
.home-entry:active { transform: scale(.98); }
.home-entry:focus-visible { outline: 3px solid var(--primary-d); outline-offset: 4px; }
.entry-icon { position: relative; display: flex; align-items: center; justify-content: center; flex: none; width: 54px; height: 54px; border-radius: 16px; color: #fff; font-size: 27px; font-family: "Songti SC", "STSong", "SimSun", serif; }
.entry-icon::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255, 255, 255, .5); }
.home-entry-vote .entry-icon { background: linear-gradient(135deg, #d2ae5b, #ad8034); box-shadow: 0 5px 12px rgba(173, 128, 52, .15); }
.home-entry-guess .entry-icon { background: linear-gradient(135deg, #3498db, #1f78c1); box-shadow: 0 5px 12px rgba(31, 120, 193, .15); }
.entry-copy { flex: 1; min-width: 0; }
.entry-copy b { display: block; color: #173f59; font-size: 23px; font-weight: 700; line-height: 1.3; }
.entry-copy > span { display: block; margin-top: 5px; color: #7b8f9e; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.entry-arrow { flex: none; width: 20px; height: 20px; fill: none; stroke: #91a7b6; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.is-home .credit { padding: 20px 0 22px; }
.is-home .credit a { color: #8b9eaa; }
@media (hover: hover) {
  .home-entry:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(24, 68, 98, .12); }
}
@media (prefers-reduced-motion: reduce) {
  .home-entry { transition: none; }
  .home-entry:hover, .home-entry:active { transform: none; }
  .marquee span { animation: none; padding-left: 0; white-space: normal; }
}

.rules { margin: 0; font-size: 14px; line-height: 1.85; color: #333; }
.fold { max-height: 176px; overflow: hidden; position: relative; }
.fold::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.fold.open { max-height: none; }
.fold.open::after { display: none; }
.fold-btn { display: block; width: 100%; text-align: center; color: var(--primary); font-size: 13px; padding-top: 8px; }
.rules-mini { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 14px 14px; padding: 0 0 12px; border-bottom: 1px solid rgba(255,255,255,.3); }
.rules-mini span { color: #fff; font-size: 12px; line-height: 1.8; }
.rules-mini span::before { content: "·"; margin-right: 5px; opacity: .8; }
.rules-mini p { flex-basis: 100%; margin: 2px 0 0; color: #fff; font-size: 12px; line-height: 1.7; }

/* ---------- 页面头 ---------- */
.ptop { padding: 16px 12px 6px; text-align: center; color: #fff; background: radial-gradient(ellipse at 50% -40%, rgba(255, 255, 255, .35), transparent 70%); }
.ptop img { width: 86%; max-width: 420px; margin: 0 auto 8px; filter: drop-shadow(0 3px 6px rgba(0, 50, 110, .25)); }
.ptop h1 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: 2px; }

.subtabs { display: flex; margin: 8px 12px 12px; background: rgba(255, 255, 255, .18); border-radius: 22px; padding: 3px; border: 1px solid rgba(255, 255, 255, .4); }
.subtabs a, .subtabs button { flex: 1; text-align: center; padding: 7px 0; border-radius: 20px; color: #fff; font-size: 15px; font-weight: 500; }
.subtabs .on { background: #fff; color: var(--primary); font-weight: 600; box-shadow: 0 2px 8px rgba(0, 60, 120, .15); }

.chips { display: flex; gap: 8px; margin: 0 12px 10px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; padding: 5px 13px; border-radius: 16px; font-size: 13px; color: #fff; background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .35); }
.chips button.on { background: #fff; color: var(--primary); border-color: #fff; font-weight: 600; }
.chips .gap { flex: none; width: 1px; background: rgba(255, 255, 255, .35); margin: 4px 2px; }

.divtabs { display: flex; border-bottom: 1px solid var(--line); background: #fff; }
.divtabs button { flex: 1; padding: 11px 0; font-size: 15px; color: var(--text-2); position: relative; }
.divtabs button.on { color: var(--primary); font-weight: 600; }
.divtabs button.on::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 28px; height: 3px; margin-left: -14px; border-radius: 3px; background: var(--primary); }

.loading, .empty { text-align: center; color: var(--muted); padding: 28px 12px; font-size: 13px; }
.panel .empty, .panel .loading { color: rgba(255, 255, 255, .85); }

/* ---------- 球队徽标 ---------- */
.tl { position: relative; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; flex: none; background: #f1f5f9; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 40, 90, .15); }
.tl img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.tl-txt { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: -.5px; line-height: 1; white-space: nowrap; }
.tl.sm { width: 26px; height: 26px; font-size: 10px; border-width: 1px; }
.tl.lg { width: 56px; height: 56px; font-size: 17px; }

/* ---------- 赛程 ---------- */
.rnd { padding: 4px 12px 8px; }
.rnd + .rnd { border-top: 8px solid #f4f7fa; }
.rnd-h { display: flex; justify-content: space-between; align-items: center; padding: 10px 2px 6px; }
.rnd-h b { font-size: 15px; color: var(--primary-d); }
.rnd-h b::before { content: ""; display: inline-block; width: 4px; height: 14px; border-radius: 2px; background: var(--primary); margin-right: 7px; vertical-align: -2px; }
.rnd-h span { font-size: 13px; color: var(--text-2); }
.sm { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.sm:last-child { border-bottom: 0; }
.sm-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.vs { display: flex; align-items: center; }
.vs .tm { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.vs .tm.r { flex-direction: row-reverse; text-align: right; }
.vs .tm .nm { font-size: 14px; font-weight: 600; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vs .tm.tbd .nm { color: var(--muted); font-weight: 500; }
.vs .mid { flex: none; width: 82px; text-align: center; }
.vs .mid .score { font-size: 22px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.vs .mid .time { font-size: 17px; font-weight: 700; color: var(--primary-d); }
.vs .mid small { display: block; font-size: 11px; color: var(--muted); }
.sm-venue { margin-top: 6px; font-size: 12px; color: var(--text-2); }
.sm-venue em { font-style: normal; color: var(--muted); }

.badge { display: inline-block; font-size: 11px; line-height: 1; padding: 4px 7px; border-radius: 10px; font-weight: 500; white-space: nowrap; }
.b-open { background: #e7f7ee; color: var(--green); }
.b-live { background: #fdecea; color: var(--red); }
.b-live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: 4px; vertical-align: 1px; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.b-wait { background: #eef3f8; color: var(--text-2); }
.b-end { background: #f1f1f1; color: #888; }
.b-soon { background: #fff4e5; color: var(--orange); }
.b-blue { background: var(--primary-l); color: var(--primary); }

/* ---------- 竞猜卡片 ---------- */
.mlist { padding: 0 12px; }
.mlist .panel { margin: 0 0 12px; }
.mcard { background: #fff; border-radius: 14px; margin-bottom: 12px; box-shadow: 0 6px 16px rgba(10, 70, 130, .12); overflow: hidden; }
.mc-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 0; font-size: 12px; color: var(--muted); }
.mc-body { padding: 12px 14px 10px; }
.mc-body .vs .tm { flex-direction: column; gap: 6px; text-align: center; }
.mc-body .vs .tm.r { flex-direction: column; text-align: center; }
.mc-body .vs .tm .nm { font-size: 14px; }
.mc-body .vs .mid { width: 96px; }
.mc-info { font-size: 12px; color: var(--text-2); text-align: center; margin-top: 8px; }
.mc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: #f8fbfe; border-top: 1px solid var(--line); min-height: 52px; }
.mc-foot .l { font-size: 12.5px; color: var(--text-2); }
.mc-foot .l b { color: var(--red); font-variant-numeric: tabular-nums; }
.mc-foot .pts { color: var(--orange); font-weight: 600; }
.mine { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text); }
.mine b { color: var(--primary-d); font-size: 15px; }
.lock { display: inline-flex; align-items: center; font-size: 11px; color: var(--muted); }
.hit { color: #fff; background: var(--green); padding: 3px 9px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.miss { color: #888; background: #eee; padding: 3px 9px; border-radius: 12px; font-size: 12px; }

.btn-primary { display: inline-block; background: linear-gradient(135deg, #47a8ea, #2584cc); color: #fff; font-weight: 600; font-size: 14px; padding: 8px 18px; border-radius: 20px; box-shadow: 0 4px 10px rgba(36, 132, 204, .3); text-align: center; }
.btn-primary:active { transform: scale(.97); }
.btn-primary[disabled] { background: #c5d3df; box-shadow: none; }
.btn-primary.block { display: block; width: 100%; padding: 12px; font-size: 16px; border-radius: 24px; }
.btn-ghost { display: inline-block; padding: 8px 18px; border-radius: 20px; border: 1px solid var(--line); color: var(--text-2); font-size: 14px; }
.btn-white { display: block; margin: 14px 12px; padding: 12px; text-align: center; border-radius: 26px; background: #fff; color: var(--primary); font-size: 17px; font-weight: 600; box-shadow: 0 6px 16px rgba(10, 70, 130, .2); }

.dist { padding: 0 14px 12px; }
.dist-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: #eef2f6; }
.dist-bar i { display: block; height: 100%; }
.dist-bar .h { background: var(--primary); }
.dist-bar .d { background: #b8c4cf; }
.dist-bar .a { background: var(--orange); }
.dist-lab { display: flex; justify-content: space-between; margin-top: 5px; font-size: 11px; color: var(--text-2); }
.dist-lab .h { color: var(--primary); }
.dist-lab .a { color: var(--orange); }

.mybar { display: flex; align-items: center; margin: 0 12px 12px; padding: 12px 14px; background: #fff; border-radius: 14px; box-shadow: 0 6px 16px rgba(10, 70, 130, .12); }
.mybar > div { flex: 1; text-align: center; }
.mybar b { display: block; font-size: 20px; color: var(--primary-d); line-height: 1.2; font-variant-numeric: tabular-nums; }
.mybar span { font-size: 12px; color: var(--muted); }
.mybar .split { flex: none; width: 1px; height: 28px; background: var(--line); }
.join { display: flex; align-items: center; justify-content: space-between; margin: 0 12px 12px; padding: 12px 14px; background: #fff; border-radius: 14px; box-shadow: 0 6px 16px rgba(10, 70, 130, .12); font-size: 13px; color: var(--text-2); }

/* ---------- 冠军竞猜 ---------- */
.c-info { text-align: center; }
.c-info .t { font-size: 13px; opacity: .9; }
.c-info .big { font-size: 18px; font-weight: 600; margin: 4px 0 2px; }
.c-info .big b { font-variant-numeric: tabular-nums; }
.champ-banner { margin: 12px 14px 0; padding: 12px; border-radius: 12px; background: linear-gradient(135deg, #fff6df, #ffe9b3); color: #8a5a00; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.champ-banner b { font-size: 16px; color: #6b4300; }
.mypick { margin: 12px 14px 0; padding: 10px 12px; border-radius: 12px; background: var(--primary-l); color: var(--primary-d); font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.tgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 14px; }
.tcard { position: relative; border: 2px solid var(--line); border-radius: 12px; padding: 12px 8px 10px; text-align: center; background: #fff; transition: border-color .15s, background .15s; }
.tcard .tl { margin: 0 auto 6px; }
.tcard .nm { font-size: 13.5px; font-weight: 600; line-height: 1.35; min-height: 36px; display: flex; align-items: center; justify-content: center; }
.tcard.sel { border-color: var(--primary); background: var(--primary-l); }
.tcard.sel::after { content: "✓"; position: absolute; right: 6px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; line-height: 20px; }
.tcard.mine-pick { border-color: var(--gold); background: #fffaf0; }
.tcard.is-champ { border-color: var(--gold); }
.tcard .crown { position: absolute; left: 6px; top: 4px; font-size: 18px; }
.tcard .tag { position: absolute; right: 0; top: 0; background: var(--gold); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 0 10px 0 8px; }
.tcard .pct { margin-top: 6px; }
.tcard .pct .bar { height: 5px; border-radius: 3px; background: #eef2f6; overflow: hidden; }
.tcard .pct .bar i { display: block; height: 100%; background: linear-gradient(90deg, #6bbcf2, var(--primary)); }
.tcard .pct small { display: block; margin-top: 3px; font-size: 11px; color: var(--text-2); }
.c-submit { padding: 0 14px 16px; }

.winners { list-style: none; margin: 0; padding: 0; }
.winners li { display: flex; align-items: center; justify-content: space-between; padding: 10px 2px; border-bottom: 1px dashed var(--line); font-size: 14px; }
.winners li:last-child { border-bottom: 0; }
.winners .no { width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; margin-right: 8px; }

/* ---------- 数据 ---------- */
.prog { display: flex; gap: 10px; padding: 12px 14px 4px; }
.prog > div { flex: 1; background: #f6f9fc; border-radius: 10px; padding: 8px 6px; text-align: center; }
.prog b { display: block; font-size: 18px; color: var(--primary-d); line-height: 1.25; font-variant-numeric: tabular-nums; }
.prog span { font-size: 11.5px; color: var(--muted); }
.sec-t { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 14px 6px; font-size: 15px; font-weight: 600; }
.sec-t small { font-weight: 400; font-size: 12px; color: var(--muted); }
.st-wrap { padding: 0 8px 4px; overflow-x: auto; }
table.st { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
table.st th { font-weight: 500; color: var(--muted); font-size: 12px; padding: 7px 3px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
table.st td { padding: 8px 3px; text-align: center; border-bottom: 1px solid #f2f5f8; white-space: nowrap; }
table.st td.team { text-align: left; white-space: normal; }
table.st td.team div { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; line-height: 1.25; }
table.st th.team { text-align: left; }
table.st td.pts { font-weight: 800; color: var(--primary-d); font-size: 15px; }
table.st .rk { display: inline-flex; width: 20px; height: 20px; border-radius: 6px; align-items: center; justify-content: center; font-size: 12px; background: #eef2f6; color: var(--text-2); }
table.st tr.q .rk { background: var(--primary); color: #fff; }
.legend { padding: 4px 14px 10px; font-size: 11.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--primary); margin-right: 4px; vertical-align: -1px; }
.form { display: flex; gap: 2px; margin: 3px 0 0 32px; }
.form i { width: 14px; height: 14px; border-radius: 3px; font-style: normal; font-size: 9px; line-height: 14px; color: #fff; }
.form .W { background: var(--green); }
.form .D { background: #aab6c2; }
.form .L { background: var(--red); }
.mini-m { margin: 0 14px; }

/* ---------- 排行 ---------- */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; padding: 18px 12px 6px; color: #fff; }
.podium .p { flex: 1; max-width: 120px; text-align: center; }
.podium .av { width: 54px; height: 54px; margin: 0 auto 6px; border-radius: 50%; background: rgba(255, 255, 255, .25); border: 2px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; position: relative; }
.podium .p1 .av { width: 66px; height: 66px; font-size: 24px; border-color: #ffd36b; }
.podium .av em { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 18px; }
.podium .nm { font-size: 13px; font-weight: 600; margin-top: 6px; }
.podium .pt { font-size: 12px; opacity: .9; }
.podium .stand { margin-top: 6px; border-radius: 8px 8px 0 0; background: rgba(255, 255, 255, .22); font-weight: 800; font-size: 18px; }
.podium .p1 .stand { height: 56px; line-height: 56px; background: linear-gradient(180deg, rgba(255, 214, 107, .95), rgba(245, 166, 35, .85)); }
.podium .p2 .stand { height: 42px; line-height: 42px; }
.podium .p3 .stand { height: 32px; line-height: 32px; }
.rlist { list-style: none; margin: 0; padding: 0; }
.rlist li { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid #f2f5f8; }
.rlist .no { width: 26px; text-align: center; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.rlist .no.t1 { color: #e6a700; }
.rlist .no.t2 { color: #8c9aa8; }
.rlist .no.t3 { color: #c07a3d; }
.rlist .who { flex: 1; min-width: 0; }
.rlist .who b { font-size: 14px; }
.rlist .who small { display: block; font-size: 11.5px; color: var(--muted); }
.rlist .gift { font-size: 10px; color: #b7791f; background: #fff4dc; padding: 2px 6px; border-radius: 8px; margin-left: 6px; font-weight: 500; }
.rlist .sc { text-align: right; }
.rlist .sc b { font-size: 17px; color: var(--primary-d); font-variant-numeric: tabular-nums; }
.rlist .sc small { display: block; font-size: 11px; color: var(--muted); }
.rlist li.me { background: var(--primary-l); }
.myrank { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 6px); margin: 0 12px 12px; padding: 11px 14px; border-radius: 14px; background: #fff; display: flex; align-items: center; gap: 10px; box-shadow: 0 -2px 18px rgba(10, 70, 130, .2); z-index: 5; }
.myrank .r { font-size: 22px; font-weight: 800; color: var(--primary-d); min-width: 44px; text-align: center; }
.myrank .r small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.myrank .i { flex: 1; font-size: 13px; color: var(--text-2); }
.myrank .i b { color: var(--text); }

/* ---------- 我的 ---------- */
.profile { display: flex; align-items: center; gap: 12px; padding: 18px 16px; color: #fff; }
.profile .av { width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; box-shadow: 0 4px 12px rgba(0, 50, 110, .2); }
.profile b { font-size: 18px; display: block; }
.profile span { font-size: 13px; opacity: .9; }
.lucky { margin: 0 12px 12px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, #fff6df, #ffe3a1); color: #7a4b00; font-size: 14px; font-weight: 600; text-align: center; }
.hist li { list-style: none; padding: 11px 14px; border-bottom: 1px solid #f2f5f8; }
.hist { margin: 0; padding: 0; }
.hist .t { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.hist .m { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; gap: 8px; }
.hist .m .vs-t { font-size: 14px; font-weight: 600; flex: 1; min-width: 0; }
.hist .m .g { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.hist .m .g b { color: var(--primary-d); }
.linkbtn { display: block; text-align: center; color: rgba(255, 255, 255, .9); font-size: 13px; padding: 10px; margin: 0 auto; }

/* ---------- 弹层 ---------- */
.modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100; display: none; }
.modal.show { display: block; }
.modal .mask { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(10, 25, 45, .55); animation: fade .2s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: 640px; margin: 0 auto; background: #fff; border-radius: 18px 18px 0 0; padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); animation: up .25s ease-out; max-height: 88vh; overflow-y: auto; }
.sheet.dialog { left: 50%; right: auto; bottom: auto; top: 50%; width: 82%; max-width: 340px; transform: translate(-50%, -50%); border-radius: 16px; padding: 22px 18px 16px; animation: pop .2s ease-out; text-align: center; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%); } }
.sh-h { position: relative; text-align: center; font-size: 17px; font-weight: 600; padding-bottom: 4px; }
.sh-h .x { position: absolute; right: -4px; top: -6px; width: 32px; height: 32px; font-size: 24px; color: var(--muted); line-height: 1; }
.sh-sub { text-align: center; color: var(--text-2); font-size: 12.5px; margin: 2px 0 12px; }
.sh-tip { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 12px 0 14px; text-align: center; }
.sh-tip b { color: var(--red); font-weight: 500; }
.gm-vs { display: flex; align-items: flex-start; justify-content: center; gap: 6px; padding: 8px 0; }
.gm-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gm-col .nm { font-size: 14px; font-weight: 600; text-align: center; min-height: 38px; line-height: 1.35; display: flex; align-items: center; }
.gm-col small { font-size: 11px; color: var(--muted); }
.gm-colon { font-size: 28px; font-weight: 800; color: var(--text-2); padding-top: 128px; }
.step { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.step button { width: 38px; height: 46px; font-size: 22px; color: var(--primary); background: #f5f9fd; }
.step input { width: 50px; height: 46px; border: 0; text-align: center; font-size: 26px; font-weight: 800; color: var(--text); -moz-appearance: textfield; }
.step input::-webkit-outer-spin-button, .step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.res-opts { display: flex; gap: 8px; padding: 6px 0; }
.res-opts button { flex: 1; border: 2px solid var(--line); border-radius: 12px; padding: 12px 4px; font-size: 14px; font-weight: 600; }
.res-opts button small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.res-opts button.on { border-color: var(--primary); background: var(--primary-l); color: var(--primary-d); }
.cf-vs { font-size: 15px; font-weight: 600; margin: 4px 0 10px; line-height: 1.6; }
.cf-vs b { font-size: 22px; color: var(--primary-d); margin: 0 6px; }
.dialog p { color: var(--text-2); font-size: 13.5px; margin: 0 0 16px; line-height: 1.7; }
.dialog .t { font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.dialog .btns { display: flex; gap: 10px; }
.dialog .btns > * { flex: 1; padding: 10px; }
.fi { display: block; margin-bottom: 12px; }
.fi span { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 5px; }
.fi input { width: 100%; height: 44px; border: 1px solid #dfe7ef; border-radius: 10px; padding: 0 12px; font-size: 16px; outline: none; background: #fafcfe; }
.fi input:focus { border-color: var(--primary); background: #fff; }

.toast { position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 200; max-width: 78%; background: rgba(20, 30, 45, .86); color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 14px; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.toast.show { opacity: 1; }

/* ---------- 底部 ---------- */
.credit { text-align: center; padding: 18px 0 10px; }
.credit a { color: rgba(255, 255, 255, .72); font-size: 11px; letter-spacing: .5px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; max-width: 640px; margin: 0 auto; display: flex; background: #fff; border-top: 1px solid #eef1f4; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 14px rgba(0, 40, 90, .08); }
.tabbar[hidden], .is-home .tabbar { display: none; }
.tabbar a { flex: 1; height: var(--tabbar-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #a3b1bf; font-size: 11.5px; }
.tabbar svg { width: 23px; height: 23px; fill: currentColor; stroke: currentColor; stroke-width: 0; }
.tabbar svg circle[fill="none"] { stroke-width: 2.2; }
.tabbar a.on { color: var(--primary); font-weight: 600; }

@media (min-width: 641px) {
  body { background: #2a7fbf; }
  .app { box-shadow: 0 0 40px rgba(0, 0, 0, .15); }
}
@media (max-width: 350px) {
  .vs .mid { width: 66px; }
  .cd .u { width: 46px; }
  .home-entry { padding: 16px; gap: 12px; }
  .entry-icon { width: 48px; height: 48px; font-size: 24px; }
  .entry-copy b { font-size: 21px; }
}

/* Schedule images and win/draw/loss selection */
.schedule-entry { display:flex; align-items:center; justify-content:space-between; gap:12px; width:calc(100% - 24px); margin:0 12px 14px; padding:14px 16px; background:#fff; color:var(--primary-d); border-radius:12px; font-size:15px; font-weight:600; box-shadow:0 3px 12px rgba(22,74,115,.08); }
.schedule-entry span { font-size:12px; font-weight:400; }
.home-schedule { width:100%; margin:18px 0 0; background:transparent; border:1px solid #c8dce9; box-shadow:none; }
.schedule-image { margin-top:18px; }
.schedule-image h2 { font-size:16px; margin:0 0 10px; }
.schedule-image img { width:100%; height:auto; display:block; border-radius:8px; }
.schedule-image .empty { background:#f4f8fc; border-radius:8px; padding:30px 12px; }
.res-opts button { min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:8px; }
.res-opts button > span:not(.tl):not(.draw-icon) { min-height:40px; display:flex; align-items:center; overflow-wrap:anywhere; }
.res-opts .draw-icon { height:48px; width:48px; display:flex; align-items:center; justify-content:center; color:#8296a8; font-size:30px; background:#f0f5f9; border-radius:50%; }
.res-opts button small { margin-top:auto; }
.res-opts button:focus-visible, .schedule-entry:focus-visible { outline:3px solid #ffc64b; outline-offset:3px; }
