* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 0;
  color: #172e48;
  background: #eef5fc;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}
.budget-screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  justify-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: clamp(20px, 4vh, 54px);
  background: linear-gradient(180deg, #60a1eb, #dceaf9 62%, #f2f4f8);
}
.event-banner {
  width: min(100%, 1680px);
  aspect-ratio: 6.3 / 1;
  background: url("./poster.jpg") center top / 100% auto no-repeat;
  -webkit-mask-image: linear-gradient(#000 80%, transparent);
  mask-image: linear-gradient(#000 80%, transparent);
}
.budget-panel {
  align-self: center;
  width: min(calc(100% - 32px), 1200px);
  container-type: inline-size;
  padding: clamp(22px, 5vw, 76px) clamp(15px, 4vw, 56px);
  text-align: center;
  background: #fffaf6;
  border: 1px solid #fff;
  border-radius: clamp(18px, 2.5vw, 40px);
  box-shadow: 0 22px 60px #42638930;
}
h1 {
  margin: 0;
  color: #213953;
  font-size: clamp(22px, 3.3vw, 54px);
  font-weight: 700;
  letter-spacing: .13em;
}
.amount {
  --amount-length: 1;
  margin: .2em 0 0;
  color: #b52c29;
  font: 750 clamp(34px, 10.5vw, 164px) / 1.12 Arial, sans-serif;
  font-size: min(clamp(34px, 10.5vw, 164px), calc(142cqw / var(--amount-length)));
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#status {
  margin: clamp(12px, 2.5vw, 28px) 0 0;
  color: #53677d;
  font-size: clamp(12px, 1.4vw, 21px);
}
#status[data-stale="true"] { color: #965921; }
@media (max-width: 600px) {
  .budget-screen { grid-template-rows: auto auto; align-content: start; gap: 24px; }
  .event-banner { min-height: 50px; }
}
