:root {
  color-scheme: light;
  --bg: radial-gradient(circle at top, #ffe3bf 0%, #fff7ee 38%, #f4eadf 100%);
  --card: rgba(255, 255, 255, 0.92);
  --text: #2f211a;
  --muted: #68554c;
  --accent: #b62b2b;
  --accent-dark: #8b1f1f;
  --line: rgba(182, 43, 43, 0.16);
  --shadow: 0 24px 60px rgba(116, 51, 20, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.hall-page {
  width: min(760px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 24px 0 calc(40px + env(safe-area-inset-bottom, 0px));
}

.hero-card,
.participant-card,
.empty-card,
.section-card,
.modal-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.hero-card,
.participant-card,
.empty-card,
.section-card {
  padding: 24px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-card h1,
.section-card h2,
.empty-card h2,
.modal-panel h3 {
  margin: 0;
}

.hero-desc,
.participant-meta,
.section-caption,
.section-empty,
.message-box,
.empty-card p,
.win-time,
.prize-rule {
  color: var(--muted);
}

.hero-desc,
.empty-card p,
.message-box {
  margin: 12px 0 0;
  line-height: 1.7;
}

.participant-card,
.empty-card,
.section-card {
  margin-top: 18px;
}

.participant-top,
.section-head,
.prize-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.participant-name,
.prize-name,
.win-name {
  font-size: 22px;
  font-weight: 700;
}

.participant-badge {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(182, 43, 43, 0.08);
  color: var(--accent-dark);
  font-size: 13px;
}

.participant-meta {
  margin: 12px 0 0;
}

.secondary-btn,
.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 16px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.secondary-btn {
  background: rgba(182, 43, 43, 0.08);
  color: var(--accent-dark);
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent) 0%, #de6634 100%);
  color: #fff;
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  border: 1px solid rgba(90, 49, 32, 0.12);
}

.danger-btn {
  color: var(--accent-dark);
  border-color: rgba(182, 43, 43, 0.18);
  background: rgba(182, 43, 43, 0.06);
}

.participant-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.prize-list,
.win-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.prize-card,
.win-card {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(90, 49, 32, 0.12);
}

.prize-level {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.prize-name {
  margin-top: 6px;
  font-size: 18px;
}

.prize-side {
  text-align: right;
}

.prize-count {
  font-size: 18px;
  font-weight: 700;
}

.prize-rule,
.win-time {
  margin-top: 6px;
  font-size: 13px;
}

.section-empty {
  margin-top: 16px;
}

.message-box {
  min-height: 24px;
}

.modal {
  position: fixed;
  inset: 0;
}

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(28, 18, 15, 0.48);
}

.modal-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(92vw, 360px);
  transform: translate(-50%, -50%);
  padding: 24px;
}

.modal-panel p {
  margin: 12px 0 0;
  line-height: 1.7;
}

.modal-panel .primary-btn {
  width: 100%;
  margin-top: 16px;
}

.modal-confirm-panel .primary-btn {
  margin-top: 0;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.modal-actions .ghost-btn,
.modal-actions .primary-btn {
  flex: 1;
}

@media (max-width: 640px) {
  .hall-page {
    width: min(100vw - 16px, 760px);
    padding: 16px 0 calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .hero-card,
  .participant-card,
  .empty-card,
  .section-card,
  .modal-panel {
    border-radius: 20px;
  }

  .hero-card,
  .participant-card,
  .empty-card,
  .section-card {
    padding: 18px;
  }

  .participant-top,
  .section-head,
  .prize-card {
    flex-direction: column;
  }

  .participant-badge {
    width: fit-content;
  }

  .prize-side {
    text-align: left;
  }

  .secondary-btn {
    width: 100%;
  }

  .participant-actions,
  .modal-actions {
    flex-direction: column;
  }

  .participant-actions .ghost-btn,
  .modal-actions .ghost-btn,
  .modal-actions .primary-btn {
    width: 100%;
  }
}
