/* 约克学联春晚：观众 / 评委 / 统计
   配色：中国红 #D93B48、朱红 #BF1506、橘 #F28B30、金 #EACD76、粉 #F2B5A7 */
:root {
  --red: #d93b48;
  --red-ink: #b3202e;
  --cinnabar: #bf1506;
  --orange: #f28b30;
  --gold: #eacd76;
  --gold-deep: #be8a2f;
  --pink: #f2b5a7;

  --bg: #fbe8e1;
  --card: #fffaf7;
  --raised: #fbe4dc;
  --line: rgba(150, 40, 30, 0.12);
  --line2: rgba(150, 40, 30, 0.22);
  --tx: #3d1411;
  --tx2: #74403a;
  --tx3: #94635c;
  --ok: #23885a;
  --bad: #c42b2b;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { background-size: 180px 120px; background-repeat: repeat; }
.art { display: block; }
body {
  margin: 0; background: var(--bg); color: var(--tx);
  font: 15px/22px var(--sans); -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.ic { flex: none; display: block; }
:focus-visible { outline: 2px solid var(--red-ink); outline-offset: 2px; border-radius: 6px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--tx3); }
.sec { color: var(--tx2); }
.hidden { display: none !important; }

/* ---------- shell ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 16px;
  background: var(--red); color: #fff;
}
.top .mark { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; text-decoration: none; }
.top .mark img { height: 28px; width: auto; }
.top .mark span { font: 600 15px/20px var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 160ms var(--ease); }
.top .mark.home span { opacity: 0; }
.lang {
  display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 8px;
  color: #fff; font-size: 13px; text-decoration: none;
}
main { padding: 0 16px 8px; max-width: 560px; margin: 0 auto; }
#credit { padding: 0 16px calc(88px + var(--safe-b)); max-width: 560px; margin: 0 auto; }
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 4px 8px calc(4px + var(--safe-b));
  background: rgba(255, 250, 247, 0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.tabs a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 0 6px; text-decoration: none; color: var(--tx3); font-size: 11px; line-height: 14px;
  transition: color 160ms var(--ease);
}
.tabs a.on { color: var(--red-ink); font-weight: 500; }

/* ---------- type ---------- */
.h1 { font: 600 30px/1.18 var(--serif); margin: 0; letter-spacing: 0.01em; text-wrap: balance; }
.h2 { font: 600 20px/28px var(--serif); margin: 0; }
.page-head { padding: 24px 0 16px; position: relative; }
.page-head > .h1, .page-head > p { position: relative; z-index: 1; }
.page-head > p { max-width: 70%; }
.head-art { position: absolute; top: 0; right: -16px; bottom: 0; width: 170px; pointer-events: none; }
.head-art > span { position: absolute; }
.ha-fc { top: -4px; right: 30px; }
.ha-fan { right: 56px; bottom: 6px; transform: rotate(-8deg); }
.ha-plum { right: 0; top: 10px; transform: scaleX(-1); }
.ha-ingot { right: 74px; bottom: 14px; }
.ha-env { right: 24px; top: 14px; transform: rotate(10deg); }
.ha-coin { right: 120px; top: 22px; }
.ha-knot { right: 16px; top: -40px; }
.ha-fu { right: 16px; top: -8px; }
.center-card { position: relative; }
.center-card .head-art { right: 0; top: -20px; }
.page-head .h1 { color: var(--red-ink); }
.page-head p { margin: 6px 0 0; color: var(--tx2); font-size: 14px; line-height: 20px; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--line2); color: var(--tx);
  font-size: 15px; font-weight: 500; text-decoration: none;
  transition: background-color 160ms var(--ease), transform 120ms var(--ease), opacity 160ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--red-ink); border-color: transparent; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn.gold { background: var(--gold); border-color: transparent; color: #5a1a0e; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn.block { width: 100%; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--tx2); }
.btn.danger { color: var(--bad); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13px; color: var(--tx2); margin-bottom: 6px; }
.input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line2); color: var(--tx);
  font-size: 17px; outline: none; transition: border-color 160ms var(--ease);
}
.input:focus { border-color: var(--red); }
.input.big { height: 56px; font: 500 24px/1 var(--mono); letter-spacing: 0.06em; text-align: center; }
.note { font-size: 13px; line-height: 20px; color: var(--tx3); }
.alert {
  display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px;
  background: #fde0dc; border: 1px solid rgba(196, 43, 43, 0.3);
  color: #8f1d1d; font-size: 14px; line-height: 20px; margin-bottom: 16px;
}
.alert.info { background: var(--card); border-color: var(--line2); color: var(--tx2); }
.alert .ic { margin-top: 1px; }

/* ---------- list rows ---------- */
.group { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.row {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px;
  text-decoration: none; color: var(--tx); width: 100%; background: none; border: 0; text-align: left;
}
.row + .row { border-top: 1px solid var(--line); }
.row .ic { color: var(--tx3); }
.row .body { flex: 1; min-width: 0; }
.row .t { font-size: 16px; line-height: 22px; font-weight: 500; }
.row .s { font-size: 13px; line-height: 18px; color: var(--tx3); margin-top: 2px; }
.row .lead { width: 40px; height: 40px; border-radius: 12px; background: var(--red); display: grid; place-items: center; flex: none; }
.row .lead .ic { color: #fff; }
.row:nth-child(2) .lead { background: var(--orange); }
.row:nth-child(3) .lead { background: var(--cinnabar); }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 3px; background: var(--tx3); margin-right: 6px; vertical-align: 2px; }
.dot.live { background: var(--ok); }
.dot.gold { background: var(--orange); }

/* ---------- home hero ---------- */
.hero {
  position: relative; margin: 0 -16px; padding: 12px 16px 56px; overflow: hidden; min-height: 330px;
  background: var(--red); color: #fff; border-radius: 0 0 28px 28px;
}
.hero .bg { position: absolute; inset: 0; z-index: 0; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(217, 59, 72, 0.2) 0%, rgba(217, 59, 72, 0.85) 70%, #d93b48 100%); }
.hero > *:not(.bg):not(.deco-hero):not(.hero-bg) { position: relative; z-index: 2; }
/* 首页主视觉的插画：灯笼、烟花、祥云和生肖 */
.deco-hero { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.deco-hero > span { position: absolute; }
.d-fw { top: 18px; right: 150px; opacity: 0.7; }
.d-l1 { top: -6px; right: 82px; }
.d-l2 { top: -14px; right: 4px; }
.d-cloud { right: -8px; bottom: 30px; }
.d-goat { right: 6px; bottom: 44px; }
.hero .icon { width: 64px; height: 64px; margin: 8px 0 16px; object-fit: contain; }
.hero .h1 { font-weight: 900; font-size: 36px; line-height: 1.2; max-width: 62%; }
.hero .h1 span:nth-child(2) { color: var(--gold); font-family: var(--serif); }
.hero .sub { margin-top: 10px; color: var(--gold); font-size: 15px; line-height: 20px; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 16px; color: rgba(255, 255, 255, 0.9); font-size: 13px; }
.hero .meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero .intro { margin: 16px 0 0; color: rgba(255, 255, 255, 0.92); font-size: 14px; line-height: 22px; white-space: pre-line; }
.seal {
  width: 52px; height: 52px; margin: 8px 0 16px; border-radius: 10px;
  border: 1.5px solid var(--gold); color: var(--gold);
  display: grid; place-items: center; font: 900 24px/1 var(--serif);
}
.home-ticket { margin-top: -24px; position: relative; z-index: 3; }
.home-sec { margin-top: 20px; }
.home-sec > .label { font-size: 13px; color: var(--tx3); margin: 0 0 8px 4px; }
.sponsors { margin-top: 24px; padding: 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 20px; }
.sponsors .item { display: flex; align-items: center; gap: 16px; }
.sponsors .item .who { font-size: 12px; color: var(--tx3); width: 40px; flex: none; }
.sponsors .item img { max-height: 64px; max-width: 200px; object-fit: contain; }
.sponsors .item .name { font-size: 14px; color: var(--tx); font-weight: 500; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; scroll-snap-align: start; background: var(--card); }

/* 呈现署名：Genting Hays */
.credit { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 32px; font-size: 12px; line-height: 16px; color: var(--tx2); text-align: center; }
.credit img { height: 18px; width: 18px; object-fit: contain; }
.credit.big { justify-content: flex-start; gap: 14px; margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--red); color: #fff; font-size: 15px; line-height: 22px; text-align: left; }
.credit.big img { height: 44px; width: 44px; }
.credit.big small { display: block; font-size: 12px; line-height: 16px; color: var(--gold); margin-bottom: 2px; }

/* ---------- ticket (the moment) ---------- */
.ticket {
  --n: 10px;
  position: relative; display: grid; grid-template-columns: 1fr 88px;
  color: #fff3df; border-radius: 14px; isolation: isolate;
  -webkit-mask: radial-gradient(circle var(--n) at calc(100% - 88px) 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--n) at calc(100% - 88px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--n) at calc(100% - 88px) 0, #0000 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--n) at calc(100% - 88px) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.ticket::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(120% 100% at 0% 0%, #d42a1a, #bf1506 55%, #a51205);
}
.ticket .main { padding: 16px 16px 16px 20px; min-width: 0; position: relative; }
.ticket .main::after { content: ""; position: absolute; inset: 6px 0 6px 6px; border: 1px solid rgba(234, 205, 118, 0.55); border-right: 0; border-radius: 9px 0 0 9px; pointer-events: none; }
.ticket .stub {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background-image: linear-gradient(rgba(234, 205, 118, 0.7) 50%, transparent 50%);
  background-size: 1px 8px; background-repeat: repeat-y; background-position: left 0 top 14px;
  font-size: 11px; line-height: 14px; color: rgba(255, 243, 223, 0.8); text-align: center; padding: 12px 8px;
}
.ticket .stub::after { content: ""; position: absolute; inset: 6px 6px 6px 0; border: 1px solid rgba(234, 205, 118, 0.55); border-left: 0; border-radius: 0 9px 9px 0; pointer-events: none; }
.ticket .stub b { font: 900 22px/1 var(--serif); color: var(--gold); writing-mode: vertical-rl; letter-spacing: 0.2em; }
.ticket .k { font-size: 12px; line-height: 16px; color: rgba(255, 243, 223, 0.85); }
.ticket .no {
  font: 500 46px/1 var(--mono); letter-spacing: 0.04em; color: var(--gold); margin: 8px 0 10px;
  text-shadow: 0 1px 0 rgba(90, 10, 0, 0.5); font-variant-numeric: tabular-nums;
}
.ticket .foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: rgba(255, 243, 223, 0.85); }
.ticket .foot .num { color: #fff3df; }
.ticket.blank { color: var(--tx); }
.ticket.blank::before { background: var(--card); }
.ticket.blank .main::after, .ticket.blank .stub::after { border-color: rgba(217, 59, 72, 0.4); }
.ticket.blank .stub { background-image: linear-gradient(rgba(217, 59, 72, 0.5) 50%, transparent 50%); color: var(--tx3); }
.ticket.blank .stub b { color: var(--red); }
.ticket.blank .k { color: var(--red-ink); }
.ticket.blank .t { font: 600 19px/26px var(--serif); margin: 8px 0 4px; }
.ticket.blank .s { font-size: 13px; line-height: 20px; color: var(--tx2); margin-bottom: 14px; }

/* ---------- program ---------- */
.prog { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 16px; margin-bottom: 8px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.prog .idx { width: 32px; height: 32px; border-radius: 16px; background: var(--red); color: #fff; display: grid; place-items: center; font: 500 13px/1 var(--mono); font-variant-numeric: tabular-nums; }
.prog .kind { font-size: 12px; line-height: 16px; color: var(--red-ink); margin-bottom: 4px; }
.prog .t { font: 600 18px/24px var(--serif); }
.prog .p { font-size: 14px; line-height: 20px; color: var(--tx2); margin-top: 4px; }
.prog .n { font-size: 13px; line-height: 20px; color: var(--tx3); margin-top: 8px; white-space: pre-line; }
.prog img { margin-top: 12px; border-radius: 10px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- singers / vote ---------- */
.status-line { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 14px; color: var(--tx2); margin-bottom: 16px; }
.status-line .ic { color: var(--ok); }
.singers { display: grid; gap: 8px; }
.singer {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line);
  text-align: left; width: 100%; color: var(--tx);
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.singer .ph { width: 56px; height: 56px; border-radius: 10px; background: var(--raised); display: grid; place-items: center; font: 600 20px/1 var(--serif); color: var(--red-ink); overflow: hidden; }
.singer .ph img { width: 100%; height: 100%; object-fit: cover; }
.singer .nm { font-size: 16px; line-height: 22px; font-weight: 500; }
.singer .nm .num { color: var(--tx3); font-size: 13px; margin-right: 6px; font-weight: 400; }
.singer .sg { font-size: 13px; line-height: 18px; color: var(--tx3); margin-top: 2px; }
.singer .pick { width: 24px; height: 24px; border-radius: 12px; border: 1.5px solid var(--line2); display: grid; place-items: center; color: #fff; }
.singer.sel { border-color: var(--red); background: #fff; box-shadow: 0 0 0 1px var(--red); }
.singer.sel .pick { background: var(--red); border-color: var(--red); }
.singer.mine { border-color: var(--red); }
.singer .rk { font: 500 13px/1 var(--mono); color: var(--tx3); }
.singer .badge { color: var(--red-ink); }
.dock { position: fixed; left: 0; right: 0; bottom: calc(64px + var(--safe-b)); z-index: 15; padding: 12px 16px; background: linear-gradient(180deg, rgba(251, 232, 225, 0), #fbe8e1 30%); }
.dock .btn { max-width: 528px; margin: 0 auto; display: flex; }

/* ---------- lottery ---------- */
.round { padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); margin-bottom: 12px; }
.round .hd { display: flex; align-items: flex-start; gap: 12px; }
.round .hd .body { flex: 1; min-width: 0; }
.round .tt { font: 600 17px/24px var(--serif); color: var(--red-ink); }
.round .pz { font-size: 14px; line-height: 20px; color: var(--tx); margin-top: 2px; }
.round .st { font-size: 12px; line-height: 16px; color: var(--tx3); white-space: nowrap; margin-top: 4px; }
.round .pimg { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--raised); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  --n: 5px;
  position: relative; display: inline-flex; align-items: center; height: 34px; padding: 0 14px;
  font: 500 16px/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0.04em;
  color: var(--red-ink); background: var(--raised);
  -webkit-mask: radial-gradient(circle var(--n) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--n) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle var(--n) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--n) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  border-radius: 4px;
}
.chip.mine { background: var(--cinnabar); color: var(--gold); }
.chip.void { color: var(--tx3); text-decoration: line-through; }
.pending { margin-top: 12px; font-size: 13px; color: var(--tx3); }
.sticky-ticket { margin: 0 0 20px; }

/* ---------- sheet / toast ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(60, 10, 8, 0.4); opacity: 0; transition: opacity 220ms var(--ease); }
.scrim.in { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-width: 560px; margin: 0 auto;
  background: var(--card); border-radius: 20px 20px 0 0;
  padding: 20px 20px calc(20px + var(--safe-b)); transform: translateY(16px); opacity: 0;
  transition: transform 320ms var(--ease), opacity 220ms var(--ease);
  max-height: 88dvh; overflow: auto;
}
.sheet.in { transform: none; opacity: 1; }
.sheet .grab { width: 36px; height: 4px; border-radius: 2px; background: var(--line2); margin: -8px auto 16px; }
.sheet .h2 { margin-bottom: 8px; }
.sheet p { color: var(--tx2); margin: 0 0 20px; font-size: 14px; line-height: 22px; }
.sheet .acts { display: grid; gap: 8px; }
.toast {
  position: fixed; left: 50%; top: calc(64px + env(safe-area-inset-top, 0px)); z-index: 60; transform: translate(-50%, -8px);
  padding: 10px 16px; border-radius: 10px; background: var(--tx); color: #fff; font-size: 14px; font-weight: 500;
  opacity: 0; transition: opacity 180ms var(--ease), transform 180ms var(--ease); pointer-events: none; max-width: calc(100% - 32px);
  box-shadow: 0 8px 24px rgba(60, 10, 8, 0.18);
}
.toast.in { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); }

/* 中奖全屏 */
.win { position: fixed; inset: 0; z-index: 70; background: var(--red); color: #fff; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; padding: 24px 20px calc(24px + var(--safe-b)); opacity: 0; transition: opacity 260ms var(--ease); overflow: hidden; }
.win.in { opacity: 1; }
.deco-win { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.deco-win > span { position: absolute; }
.w-fw1 { top: 24px; left: -20px; opacity: 0.8; }
.w-fw2 { top: 110px; left: 96px; opacity: 0.6; }
.w-l1 { top: -8px; right: 74px; }
.w-l2 { top: -14px; right: 0; }
.w-goat { right: -6px; bottom: calc(96px + var(--safe-b)); }
.w-ingot { left: 16px; bottom: calc(108px + var(--safe-b)); }
.w-coin1 { left: 104px; bottom: calc(112px + var(--safe-b)); }
.w-coin2 { left: 136px; bottom: calc(136px + var(--safe-b)); }
.w-env { left: 156px; bottom: calc(100px + var(--safe-b)); transform: rotate(12deg); }
.win > *:not(.deco-win) { position: relative; z-index: 2; }
.win .k { color: var(--gold); font-size: 15px; margin-bottom: 8px; }
.win .h1 { font-size: 40px; font-weight: 900; margin-bottom: 8px; }
.win .pz { color: rgba(255, 255, 255, 0.92); font-size: 17px; line-height: 26px; margin-bottom: 28px; }
.win .ticket { transform: translateY(12px) rotate(-2deg); opacity: 0; transition: transform 500ms var(--ease) 120ms, opacity 400ms var(--ease) 120ms; }
.win.in .ticket { transform: rotate(-2deg); opacity: 1; }
.win .how { color: rgba(255, 255, 255, 0.92); font-size: 14px; line-height: 22px; margin: 28px 0 20px; }

/* ---------- judge ---------- */
.jcard { padding: 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); margin-bottom: 10px; }
.jcard .top2 { display: flex; align-items: center; gap: 12px; }
.jcard .ph { width: 44px; height: 44px; border-radius: 10px; background: var(--raised); overflow: hidden; display: grid; place-items: center; font: 600 17px/1 var(--serif); color: var(--red-ink); flex: none; }
.jcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.jcard .body { flex: 1; min-width: 0; }
.jcard .state { font-size: 12px; color: var(--tx3); }
.jcard .state.ok { color: var(--ok); }
.scorer { display: grid; grid-template-columns: 44px 1fr 44px; gap: 10px; align-items: center; margin-top: 12px; }
.scorer .pm { height: 44px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); display: grid; place-items: center; color: var(--tx); }
.scorer .val { height: 44px; border-radius: 10px; border: 1px solid var(--line2); background: #fff; text-align: center; font: 500 22px/1 var(--mono); color: var(--tx); width: 100%; outline: none; }
.scorer .val.set { border-color: var(--red); color: var(--red-ink); }
.scale { display: flex; gap: 6px; overflow-x: auto; margin-top: 10px; scrollbar-width: none; }
.scale::-webkit-scrollbar { display: none; }
.scale button { flex: none; min-width: 36px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--tx2); font: 500 14px/1 var(--mono); }
.scale button.on { background: var(--red-ink); color: #fff; border-color: transparent; }
.progress { height: 4px; border-radius: 2px; background: var(--raised); overflow: hidden; margin-top: 10px; }
.progress i { display: block; height: 100%; background: var(--red); border-radius: 2px; transition: width 300ms var(--ease); }

/* ---------- stat ---------- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; gap: 3px; border-radius: 10px; background: var(--raised); margin-bottom: 16px; }
.seg button { height: 36px; border-radius: 8px; border: 0; background: transparent; color: var(--tx2); font-size: 14px; }
.seg button.on { background: #fff; color: var(--red-ink); font-weight: 500; box-shadow: 0 1px 2px rgba(60, 10, 8, 0.08); }
.rank { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; color: var(--tx); }
.rank .r { font: 500 15px/1 var(--mono); color: var(--tx3); text-align: right; }
.rank.top .r { color: var(--red-ink); }
.rank .nm { font-size: 15px; line-height: 20px; font-weight: 500; }
.rank .mt { font-size: 12px; line-height: 16px; color: var(--tx3); margin-top: 3px; }
.rank .sc { font: 500 20px/1 var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.rank.top .sc { color: var(--red-ink); }
.rank .sc small { display: block; font: 400 11px/14px var(--sans); color: var(--tx3); margin-top: 4px; }
.cut { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--red-ink); padding: 10px 0 2px; }
.cut::before, .cut::after { content: ""; flex: 1; height: 1px; background: rgba(217, 59, 72, 0.4); }
.detail { padding: 4px 0 12px 40px; display: grid; gap: 4px; font-size: 13px; color: var(--tx2); border-bottom: 1px solid var(--line); }
.detail div { display: flex; justify-content: space-between; gap: 12px; }
.detail .num { color: var(--tx); }
.formula { font-size: 12px; line-height: 18px; color: var(--tx3); margin: 12px 0 0; }
.wrow { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.wrow .no { font: 500 18px/1 var(--mono); letter-spacing: 0.04em; color: var(--red-ink); }
.wrow .tk { font-size: 12px; color: var(--tx3); }
.wrow.void .no { color: var(--tx3); text-decoration: line-through; }
.wrow .acts { display: flex; gap: 6px; }
.found { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }

.center-card { max-width: 400px; margin: 40px auto 0; }
.center-card .h1 { font-size: 26px; margin-bottom: 8px; color: var(--red-ink); }
.center-card > p { color: var(--tx2); margin: 0 0 24px; font-size: 14px; line-height: 22px; }
.pick-list { display: grid; gap: 8px; margin-bottom: 16px; }
.pick-list button { height: 48px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); text-align: left; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; color: var(--tx); }
.pick-list button.on { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); color: var(--red-ink); }
.empty { text-align: center; padding: 48px 16px; color: var(--tx3); font-size: 14px; line-height: 22px; }
.empty .ic { margin: 0 auto 12px; color: var(--red); }
.empty .art { margin: 0 auto 12px; }
.empty p { margin: 0; }
.art-box { display: grid; place-items: center; background: var(--raised); }
.loading { padding: 48px 0; text-align: center; color: var(--tx3); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
@media (min-width: 600px) {
  .h1 { font-size: 36px; }
  .hero .h1 { font-size: 44px; }
}
:lang(en) .hero .h1 { font-size: 32px; }

/* ---------- 海报式主视觉（方案二） ---------- */
.hero.poster {
  text-align: center; padding: 48px 16px 64px; min-height: 0;
  background: linear-gradient(125deg, #e0402f 0%, #cf2424 45%, #bb141c 100%);
}
.hero.poster > *:not(.bg):not(.hero-bg) { position: relative; z-index: 2; }
.top { background: linear-gradient(125deg, #e0402f 0%, #d42b27 100%); }
.hero-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-bg > * { position: absolute; }
.hb-orb { right: -60px; top: 40px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255, 170, 130, 0.35), rgba(255, 120, 90, 0.08)); }
.hb-r1 { left: -60px; top: -30px; width: 170px; opacity: 0.45; transform: rotate(180deg); }
.hb-r2 { right: -40px; bottom: -4px; width: 160px; opacity: 0.4; }
.hb-ln { left: 14px; top: 0; width: 66px; opacity: 0.85; }
.art.dim { opacity: 0.55; filter: brightness(0.82); }
.hb-s1 { left: -4px; top: 150px; width: 44px; opacity: 0.75; }
.hb-s2 { right: -2px; top: 230px; width: 44px; opacity: 0.75; }
.hero.poster .zodiac { display: flex; justify-content: center; margin: 0 0 -4px -24px; }
.hero.poster .year { font: 900 60px/1 var(--serif); color: #f4d28f; letter-spacing: 0.04em; font-variant-numeric: lining-nums; }
.hero.poster .h1 { max-width: none; font-size: 26px; font-weight: 900; margin-top: 12px; }
.hero.poster .sub { color: #f4d28f; }
.hero.poster .meta { justify-content: center; }
.hero.poster .intro { text-align: center; }
:lang(en) .hero.poster .h1 { font-size: 24px; }

/* 主办 / 赞助：小 logo + 名字，横向排 */
.sponsors { display: grid; gap: 0; padding: 4px 16px; }
.sponsors .sg { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 12px 0; }
.sponsors .sg + .sg { border-top: 1px solid var(--line); }
.sponsors .who { font-size: 12px; line-height: 16px; color: var(--tx3); }
.sps { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.sp { display: flex; align-items: center; gap: 8px; min-height: 24px; font-size: 13px; line-height: 18px; color: var(--tx2); }
.sp img { height: 22px; width: auto; max-width: 64px; object-fit: contain; flex: none; }

/* 中奖全屏同样用海报背景 */
.win { background: linear-gradient(125deg, #e0402f 0%, #cf2424 45%, #bb141c 100%); text-align: center; }
.win > *:not(.hero-bg) { position: relative; z-index: 2; }
.win .zodiac { display: flex; justify-content: center; margin: 0 0 8px -20px; }
.win .ticket { text-align: left; }

:lang(en) .ticket .stub b { writing-mode: horizontal-tb; font-size: 15px; letter-spacing: 0.08em; }

/* ---------- 封面：欢迎 + 选择语言 ---------- */
.cover {
  position: fixed; inset: 0; z-index: 80; overflow-y: auto; color: #fff; text-align: center;
  background: linear-gradient(125deg, #e0402f 0%, #cf2424 45%, #bb141c 100%);
  display: flex; flex-direction: column; justify-content: center; padding: 40px 24px calc(28px + var(--safe-b));
  transition: opacity 320ms var(--ease);
}
.cover.out { opacity: 0; pointer-events: none; }
.cover > *:not(.hero-bg) { position: relative; z-index: 2; }
.cover .zodiac { display: flex; justify-content: center; margin: 0 0 -4px -24px; }
.cover .year { font: 900 64px/1 var(--serif); color: #f4d28f; letter-spacing: 0.04em; }
.cover .wel { margin-top: 20px; font: 900 22px/1.4 var(--serif); text-wrap: balance; }
.cover .wel-en { margin-top: 6px; font-size: 15px; line-height: 22px; color: rgba(255, 255, 255, 0.88); text-wrap: balance; }
.cover .ask { margin: 32px 0 12px; font-size: 14px; line-height: 20px; color: #f4d28f; }
.cover .langs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 360px; width: 100%; margin: 0 auto; }
.cover .langs .btn { height: 52px; font-size: 17px; }
.cover .langs .btn.ghost { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.4); color: #fff; }
.cover .cv-credit { margin-top: 36px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, 0.85); }
.cover .cv-credit img { width: 22px; height: 22px; }

.zodiac.full { margin-left: 0 !important; margin-bottom: 4px !important; }
.hero.poster .zodiac.full { margin-top: -8px !important; }
