@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700;900&display=swap');

:root {
  --gold: #f7e4bd;
  --gold-muted: #caa76b;
  --red: #650a0b;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f8f8f6;
  color: var(--gold);
  font-family: 'Noto Serif SC', 'Songti SC', 'STSong', serif;
}

.lottery-screen {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  /* 设计图包含完整边框，拉伸到视口可保证 PC 与大屏都不出现白边或裁切 */
  background: url('images/bg.png') center / 100% 100% no-repeat;
  isolation: isolate;
}

.hero {
  position: absolute;
  top: 6.2%;
  left: 50%;
  width: 54%;
  transform: translateX(-50%);
  text-align: center;
}

.eyebrow { margin: 0 0 0.4em; font-size: clamp(16px, 3.1vh, 30px); letter-spacing: .45em; text-indent: .45em; }
h1 { margin: 0; font-size: clamp(44px, 10vh, 94px); line-height: 1.1; font-weight: 900; letter-spacing: .12em; text-indent: .12em; text-shadow: 0 2px 1px #72200f; }
.prize-pill { display: inline-flex; align-items: center; gap: 1.1em; margin-top: 1.5%; padding: .25em 1.25em .34em; border-radius: 999px; color: #7b2d18; background: linear-gradient(#fff1cf, #eacb91); font-size: clamp(14px, 2.7vh, 26px); font-weight: 600; letter-spacing: .15em; }
.prize-pill span { font-size: .8em; }
.draw-count { margin: 1.2% 0 .7%; font-size: clamp(16px, 3vh, 28px); letter-spacing: .18em; }
.draw-count strong { font-size: 1.15em; }
.draw-status { display: flex; align-items: center; justify-content: center; gap: 1.5em; font-size: clamp(18px, 3.2vh, 30px); letter-spacing: .2em; }
.draw-status span { white-space: nowrap; }
.draw-status i, .footer .sync i { width: .38em; height: .38em; display: block; transform: rotate(45deg); border: 1px solid var(--gold); }
.draw-status i:first-child { width: 4em; height: 1px; transform: none; border: 0; background: linear-gradient(90deg, transparent, var(--gold)); }
.draw-status i:last-child { width: 4em; height: 1px; transform: none; border: 0; background: linear-gradient(90deg, var(--gold), transparent); }

.winners { position: absolute; top: clamp(40%, 45vh, 46%); left: 50%; display: flex; gap: 1.05%; width: min(49%, 900px); transform: translateX(-50%); }
.winner-card { position: relative; flex: 1; aspect-ratio: 1226 / 1283; display: grid; place-items: center; align-content: center; background: url('images/number_bg.png') center / 100% 100% no-repeat; }
.number { width: 100%; height: 1em; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(54px, 6.7vw, 122px); line-height: 1; font-weight: 900; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.045em; text-align: center; color: #fff0d0; }
.card-label { margin-top: 8%; font-size: clamp(15px, 1.4vw, 25px); letter-spacing: .13em; }
.dots { display: flex; gap: .75em; margin-top: 10%; }
.dots b { width: .65em; height: .65em; border-radius: 50%; background: #9d6550; }
.dots b.active { background: #fff0d0; box-shadow: 0 0 7px #fff0d0; }
.winner-card.is-spinning .number { animation: none; opacity: 1; transform: none; }

.bottom-message { display: none; }
.bottom-message::before, .bottom-message::after { content: ''; display: inline-block; width: 3.2em; height: 1px; margin: 0 .7em .3em; background: linear-gradient(90deg, transparent, var(--gold)); }
.bottom-message::after { background: linear-gradient(90deg, var(--gold), transparent); }

.footer { position: absolute; bottom: 1%; left: 5%; right: 5%; display: flex; justify-content: space-between; align-items: center; font-size: clamp(13px, 1.1vw, 20px); letter-spacing: .08em; }
.footer strong { font-size: 1.25em; font-weight: 400; }
.sync { display: flex; align-items: center; gap: 1.2em; font-size: .78em; }
.footer-date { font-size: .9em; letter-spacing: .08em; }
.sync i:first-child { margin-left: 0; }
.sync i:last-child { margin-right: 0; }
.screen-action { position: absolute; inset: 0; z-index: 2; cursor: pointer; border: 0; background: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 800px) {
  .lottery-screen { min-height: 100svh; }
  .hero { top: 7%; width: 90%; }
  .winners { top: 32%; width: 88%; gap: 2%; }
  .winner-card { border-radius: 6px; }
  .bottom-message { bottom: 14%; font-size: 13px; }
  .bottom-message::before, .bottom-message::after { width: 1.3em; margin: 0 .25em .25em; }
  .footer { left: 4%; right: 4%; font-size: 11px; }
  .footer .sync { position: absolute; left: 50%; transform: translateX(-50%); }
}
