/* =========================================================
   婚礼大屏 · 头像抽奖  设计系统
   深墨底色 + 香槟金细线 + 玻璃拟态 + 细腻颗粒
   ========================================================= */

:root {
  /* 婚礼高级感：深墨紫底 + 香槟金 + 酒红点缀 */
  --ink-0: #07050a;
  --ink-1: #100a12;
  --ink-2: #1a1019;
  --ink-3: #261624;

  --red-1: #b8496a; /* 酒红 */
  --red-2: #8e2440;
  --red-3: #6b1830;
  --red-4: #430e1e;
  --red-glow: rgba(142, 36, 64, 0.4);

  --gold-1: #fbf1da;
  --gold-2: #eeddb2;
  --gold-3: #d6bb86;
  --gold-4: #a3854d;
  --gold-glow: rgba(238, 221, 178, 0.5);

  --rose: #dfb09c; /* 玫瑰金 · 婚礼点缀 */

  --text-1: rgba(252, 248, 242, 0.95);
  --text-2: rgba(248, 240, 232, 0.66);
  --text-3: rgba(244, 236, 228, 0.4);

  --line-1: rgba(238, 221, 178, 0.26);
  --line-2: rgba(238, 221, 178, 0.12);

  --glass: linear-gradient(160deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018));
  --glass-strong: linear-gradient(160deg, rgba(34, 20, 30, 0.91), rgba(10, 7, 12, 0.95));
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.35);

  --serif: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif SC", "KaiTi", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--sans);
  color: var(--text-1);
  background: var(--ink-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

/* 背景层：深空渐变 + 暖金光晕 + 胶片颗粒 */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 78% at 50% 118%, rgba(214, 187, 134, 0.24) 0%, rgba(214, 187, 134, 0) 56%),
    radial-gradient(76% 60% at 50% 44%, rgba(142, 36, 64, 0.3) 0%, rgba(142, 36, 64, 0) 64%),
    radial-gradient(50% 44% at 5% 3%, rgba(223, 176, 156, 0.16) 0%, rgba(223, 176, 156, 0) 62%),
    radial-gradient(52% 44% at 96% 7%, rgba(142, 36, 64, 0.18) 0%, rgba(142, 36, 64, 0) 62%),
    linear-gradient(180deg, #1e1119 0%, var(--ink-2) 34%, var(--ink-1) 66%, var(--ink-0) 100%);
}

.bg::after {
  content: "";
  position: absolute;
  inset: -10%;
  opacity: 0.32;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* 四角细金线，像装裱的画框 */
.frame {
  position: fixed;
  inset: 18px;
  z-index: 1;
  pointer-events: none;
  border: 1px solid var(--line-2);
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 46px;
  height: 46px;
  border: 1px solid var(--gold-3);
  opacity: 0.5;
}

.frame::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.frame::after {
  right: -1px;
  bottom: -1px;
  border-left: 0;
  border-top: 0;
}

/* 新人照片：柔焦做背景，中心留空保证字墙对比度 */
.photo-layer {
  position: fixed;
  inset: -7%;
  z-index: 1;
  pointer-events: none;
  background-position: center 26%;
  background-size: cover;
  filter: blur(66px) saturate(0.85) brightness(0.6);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 2s var(--ease-out);
  mask-image: radial-gradient(
    56% 50% at 50% 46%,
    transparent 0%,
    rgba(0, 0, 0, 0.5) 46%,
    #000 80%
  );
  -webkit-mask-image: radial-gradient(
    56% 50% at 50% 46%,
    transparent 0%,
    rgba(0, 0, 0, 0.5) 46%,
    #000 80%
  );
}

.photo-layer.on {
  opacity: 0.34;
}

/* ================= 喜庆装饰 ================= */

/* 宫灯：两侧悬挂，缓慢摆动 */
.lanterns {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.lantern {
  position: absolute;
  top: 0;
  width: 96px;
  height: 168px;
  transform-origin: 50% 0;
  animation: lanternSway 7s ease-in-out infinite;
  filter: drop-shadow(0 18px 42px rgba(142, 36, 64, 0.34));
}

.lantern.left {
  left: 5.5%;
}

.lantern.right {
  right: 5.5%;
  animation-delay: -3.4s;
  animation-name: lanternSwaySmall;
  transform: scale(0.86);
}

.lantern .cord {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 30px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(240, 217, 154, 0), rgba(240, 217, 154, 0.6));
}

.lantern .body {
  position: absolute;
  left: 50%;
  top: 28px;
  width: 88px;
  height: 72px;
  transform: translateX(-50%);
  border-radius: 50% / 44%;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0 1px, rgba(255, 255, 255, 0.06) 1px 9px),
    radial-gradient(120% 130% at 32% 22%, #d4738c 0%, #b8496a 30%, #8e2440 60%, #64142f 84%, #3d0b1e 100%);
  box-shadow: 0 0 36px rgba(142, 36, 64, 0.42), inset 0 0 24px rgba(0, 0, 0, 0.42);
}

.lantern .body::before,
.lantern .body::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 36px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: linear-gradient(90deg, #a8813c, #fdf0d0 46%, #a8813c);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.lantern .body::before {
  top: -4px;
}

.lantern .body::after {
  bottom: -4px;
}

.lantern .tassel {
  position: absolute;
  left: 50%;
  top: 98px;
  width: 7px;
  height: 46px;
  transform: translateX(-50%);
  border-radius: 0 0 4px 4px;
  background: linear-gradient(180deg, var(--gold-2), var(--red-2) 34%, var(--red-3));
}

.lantern .tassel::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -13px;
  width: 2px;
  height: 16px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #f0d99a, rgba(240, 217, 154, 0.1));
}

@keyframes lanternSway {
  0%,
  100% {
    transform: rotate(-1.7deg);
  }
  50% {
    transform: rotate(1.7deg);
  }
}

@keyframes lanternSwaySmall {
  0%,
  100% {
    transform: rotate(-1.9deg) scale(0.86);
  }
  50% {
    transform: rotate(1.9deg) scale(0.86);
  }
}

/* 囍 印：中式印章 */
.seal {
  position: relative;
  flex: none;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
  color: #ffe9c4;
  background: linear-gradient(150deg, #a8496a, #7d2040 58%, #571530);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(142, 36, 64, 0.4), inset 0 0 0 1px rgba(255, 235, 200, 0.34),
    inset 0 0 14px rgba(0, 0, 0, 0.3);
  transform: rotate(-3deg);
}

.seal::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 233, 196, 0.4);
  border-radius: 8px;
}

/* 顶部中央花饰 */
.ornament {
  position: absolute;
  left: 50%;
  top: 44px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 3;
  pointer-events: none;
}

.ornament i {
  display: block;
  width: clamp(60px, 9vw, 190px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-1));
}

.ornament i:last-child {
  background: linear-gradient(90deg, var(--line-1), transparent);
}

.ornament span {
  font-size: 15px;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--gold-3);
  text-shadow: 0 0 16px rgba(240, 217, 154, 0.5);
}

/* 底部滚动喜报 */
.ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38px;
  overflow: hidden;
  border-top: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(20, 6, 11, 0.2), rgba(10, 3, 5, 0.75));
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  z-index: 4;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 46px;
  height: 100%;
  white-space: nowrap;
  will-change: transform;
  animation: tickerScroll 34s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--text-2);
}

.ticker-item b {
  color: var(--gold-1);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.ticker-item .tcode {
  padding: 2px 10px;
  border: 1px solid var(--line-1);
  border-radius: 999px;
  color: var(--gold-2);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

@keyframes tickerScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ================= 文字与组件 ================= */

.serif {
  font-family: var(--serif);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  color: var(--gold-3);
  opacity: 0.85;
}

.gold-text {
  background: linear-gradient(96deg, var(--gold-1) 4%, #fff8e6 34%, var(--gold-3) 62%, var(--gold-1) 96%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hairline {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-1) 18%, var(--line-1) 82%, transparent);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  min-height: 40px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--gold-2);
  background: var(--glass);
  border: 1px solid var(--line-1);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease),
    background 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  user-select: none;
  white-space: nowrap;
}

.btn:hover {
  color: var(--gold-1);
  border-color: rgba(230, 205, 147, 0.5);
  background: linear-gradient(160deg, rgba(230, 205, 147, 0.18), rgba(230, 205, 147, 0.05));
  box-shadow: 0 8px 28px rgba(211, 176, 114, 0.16);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn:disabled {
  opacity: 0.36;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  color: #1b1408;
  background: linear-gradient(140deg, var(--gold-1) 0%, var(--gold-2) 42%, var(--gold-4) 100%);
  border-color: rgba(255, 246, 226, 0.55);
  font-weight: 600;
  letter-spacing: 0.3em;
  padding: 12px 30px;
  min-height: 48px;
  box-shadow: 0 14px 36px rgba(211, 176, 114, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-primary:hover {
  color: #140f05;
  background: linear-gradient(140deg, #fff5df 0%, var(--gold-1) 45%, var(--gold-3) 100%);
  box-shadow: 0 18px 44px rgba(211, 176, 114, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--text-2);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-2);
  color: var(--gold-2);
}

.btn-icon {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
}

/* 音效尚未开启时呼吸提示 */
.btn-icon.pulse {
  animation: soundPulse 2.6s var(--ease) infinite;
}

@keyframes soundPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(240, 217, 154, 0.42);
    border-color: var(--line-1);
  }
  50% {
    box-shadow: 0 0 0 11px rgba(240, 217, 154, 0);
    border-color: rgba(240, 217, 154, 0.65);
  }
}

.btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ================= 大屏 ================= */

.screen {
  position: relative;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

#stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hud {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px 52px 54px;
  pointer-events: none;
  z-index: 3;
}

.hud-top,
.hud-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  pointer-events: none;
}

.hud-mid {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 0;
  padding: 12px 0;
  pointer-events: none;
}

/* 左右信息面板：宽屏才显示，避免挤压转盘 */
.panel {
  display: none;
  flex-direction: column;
  gap: 14px;
  width: 306px;
  max-height: 100%;
  padding: 20px 20px 18px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(54, 30, 44, 0.52), rgba(10, 7, 12, 0.74));
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 236, 200, 0.07);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

body.has-panels .panel {
  display: flex;
}

body.booted .panel {
  opacity: 1;
  transform: none;
}

body.booted .panel-right {
  transition-delay: 0.12s;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
}

.panel-title {
  font-size: 12px;
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  color: var(--gold-3);
  text-transform: uppercase;
}

.panel-badge {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.panel-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* 签到墙 */
.signup-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.signup-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 11px 8px 8px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
}

.signup-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.signup-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.signup-wish {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--gold-3);
  opacity: 0.9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signup-row.enter {
  animation: rowIn 0.7s var(--ease-out) both;
}

.signup-row.is-new {
  border-color: rgba(240, 217, 154, 0.42);
  background: linear-gradient(100deg, rgba(184, 73, 106, 0.24), rgba(255, 255, 255, 0.04));
  box-shadow: 0 0 22px rgba(142, 36, 64, 0.24);
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.signup-row img,
.signup-row .mono {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-1);
}

.signup-row .sname {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  letter-spacing: 0.06em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signup-row .scode {
  flex: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold-2);
  font-variant-numeric: tabular-nums;
}

.signup-empty {
  padding: 24px 4px;
  text-align: center;
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.14em;
  color: var(--text-3);
}

/* 抽奖进程 */
.round-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.round-card {
  padding: 13px 14px 14px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.032);
  transition: border-color 0.5s var(--ease), background 0.5s var(--ease);
}

.round-card.active {
  border-color: rgba(240, 217, 154, 0.5);
  background: linear-gradient(140deg, rgba(184, 73, 106, 0.22), rgba(255, 255, 255, 0.04));
  box-shadow: 0 0 26px rgba(142, 36, 64, 0.2);
}

.round-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.round-card-name {
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--text-1);
}

.round-card-prize {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold-3);
}

.round-card-count {
  margin-top: 9px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.round-bar {
  margin-top: 9px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.round-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red-1), var(--gold-2));
  box-shadow: 0 0 12px rgba(240, 217, 154, 0.5);
  transition: width 0.9s var(--ease-out);
}

.round-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 11px;
}

.round-dots img,
.round-dots .mono {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-1);
  animation: chipIn 0.6s var(--ease-out) both;
}

.round-dots-empty {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-3);
}

.hud-top {
  align-items: flex-start;
}

.hud-bottom {
  align-items: flex-end;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand-couple {
  font-family: var(--serif);
  font-size: 33px;
  letter-spacing: 0.2em;
  line-height: 1;
}

.brand-invite {
  margin-top: 9px;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--rose);
  opacity: 0.78;
}

.brand-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--text-3);
  text-transform: uppercase;
}

.brand-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-3);
  opacity: 0.7;
}

.hud-top-right {
  display: flex;
  align-items: center;
  gap: 18px;
  pointer-events: auto;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--text-2);
}

.stat-pill strong {
  font-size: 18px;
  font-weight: 600;
  color: var(--gold-1);
  letter-spacing: 0.04em;
}

/* 中央文字层（轮盘内部） */
.center-layer {
  position: absolute;
  left: 50%;
  top: var(--stage-cy, 48%);
  transform: translate(-50%, -50%);
  width: min(62vw, 112vh);
  text-align: center;
  pointer-events: none;
}

.round-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 22px;
  border: 1px solid var(--line-1);
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.5);
  backdrop-filter: blur(14px);
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--gold-2);
  text-indent: 0.4em;
  transition: opacity 0.6s var(--ease);
}

.winner-block {
  margin-top: 26px;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out);
}

.winner-block.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.winner-name {
  font-size: clamp(40px, 7.4vw, 138px);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.06;
  text-indent: 0.1em;
  filter: drop-shadow(0 0 42px rgba(211, 176, 114, 0.4));
  background: linear-gradient(
    100deg,
    var(--gold-3) 0%,
    #fff8e6 18%,
    var(--gold-1) 34%,
    var(--gold-3) 52%,
    #fff8e6 72%,
    var(--gold-2) 100%
  );
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.winner-block.show .winner-name {
  animation: nameRise 1.15s var(--ease-out) both, nameShine 4s linear 0.8s infinite;
}

@keyframes nameRise {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.94);
    letter-spacing: 0.3em;
    filter: blur(12px) drop-shadow(0 0 0 rgba(211, 176, 114, 0));
  }
  100% {
    opacity: 1;
    transform: none;
    letter-spacing: 0.1em;
    filter: blur(0) drop-shadow(0 0 42px rgba(211, 176, 114, 0.4));
  }
}

@keyframes nameShine {
  from {
    background-position: 190% 0;
  }
  to {
    background-position: -90% 0;
  }
}

.winner-block.show .winner-code {
  animation: codePop 0.8s var(--ease-out) 0.35s both;
}

@keyframes codePop {
  0% {
    opacity: 0;
    transform: scale(0.82);
    box-shadow: 0 0 0 rgba(240, 217, 154, 0);
  }
  60% {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 34px rgba(240, 217, 154, 0.55);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.winner-block.show .winner-avatar {
  animation: avatarPop 1s var(--ease-out) both;
}

@keyframes avatarPop {
  0% {
    opacity: 0;
    transform: scale(0.6) rotate(-8deg);
  }
  62% {
    opacity: 1;
    transform: scale(1.08) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* 揭晓瞬间的金光爆闪 */
.screen-flash {
  position: fixed;
  inset: 0;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(
    58% 52% at 50% 47%,
    rgba(255, 250, 235, 0.92) 0%,
    rgba(255, 219, 150, 0.42) 30%,
    rgba(255, 180, 90, 0) 68%
  );
}

.screen-flash.on {
  animation: flashPulse 1.2s var(--ease-out) forwards;
}

@keyframes flashPulse {
  0% {
    opacity: 0;
  }
  7% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
  }
}

.winner-avatar {
  position: relative;
  width: clamp(76px, 11vh, 144px);
  height: clamp(76px, 11vh, 144px);
  margin: 0 auto 22px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(230, 205, 147, 0.45);
  box-shadow: 0 0 0 7px rgba(230, 205, 147, 0.07), 0 0 70px rgba(211, 176, 114, 0.42);
  transform: scale(0.86);
  opacity: 0;
  transition: transform 1s var(--ease-out), opacity 0.8s var(--ease-out);
}

.winner-avatar::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(247, 233, 198, 0.9), rgba(247, 233, 198, 0) 26%, rgba(230, 205, 147, 0.75) 52%, rgba(230, 205, 147, 0) 78%, rgba(247, 233, 198, 0.9));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: spinSlow 9s linear infinite;
  pointer-events: none;
}

.winner-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.winner-block.show .winner-avatar {
  transform: scale(1);
  opacity: 1;
}

.winner-sub {
  margin-top: 13px;
  font-size: 14px;
  letter-spacing: 0.42em;
  color: var(--text-2);
  text-indent: 0.42em;
}

/* 中奖者送上的祝福 */
.winner-wish {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(15px, 1.5vw, 26px);
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  color: var(--rose);
  opacity: 0;
  transition: opacity 1.4s var(--ease-out) 0.5s;
}

.winner-block.show .winner-wish {
  opacity: 0.95;
}

.winner-code {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 8px 26px;
  border: 1px solid var(--line-1);
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: clamp(15px, 1.7vw, 28px);
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  color: var(--gold-2);
  font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.32);
}

.chip-code {
  color: var(--gold-2);
  font-style: normal;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.hint-block {
  position: absolute;
  left: 50%;
  bottom: 78px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--text-3);
  white-space: nowrap;
  transition: opacity 0.6s var(--ease);
}

.key-cap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line-1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold-2);
  font-size: 12px;
  letter-spacing: 0.18em;
}

/* 底部中奖名单 */
.winners {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 46vw;
}

body.has-panels .winners {
  max-width: 38vw;
}

.winner-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.winner-group-label {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 78px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold-3);
}

.winner-group-label small {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-3);
}

.winner-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.winner-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text-1);
  animation: chipIn 0.6s var(--ease-out) both;
}

.winner-chip img,
.winner-chip .mono {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-1);
}

@keyframes chipIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.empty-chips {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-3);
  padding: 8px 2px;
}

/* 右下控制区 */
.controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  pointer-events: auto;
}

.controls-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.controls-note {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-3);
  text-transform: uppercase;
}

/* 抽屉：设置 */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(440px, 92vw);
  height: 100vh;
  height: 100dvh;
  z-index: 40;
  padding: 34px 30px 40px;
  background: var(--glass-strong);
  border-left: 1px solid var(--line-1);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  overflow-y: auto;
  transform: translateX(102%);
  transition: transform 0.55s var(--ease-out);
}

.drawer.open {
  transform: none;
}

.drawer h3 {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.24em;
  font-weight: 400;
  margin-bottom: 6px;
}

.drawer-sub {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-3);
  margin-bottom: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.field label {
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--text-3);
  text-transform: uppercase;
}

.field input,
.field select,
.field-row input {
  padding: 11px 14px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  outline: none;
  width: 100%;
  min-width: 0;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.field input:focus,
.field select:focus,
.field-row input:focus {
  border-color: rgba(230, 205, 147, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr 84px 34px;
  gap: 10px;
  margin-bottom: 12px;
}

.field-row .btn-round-del {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.field-row .btn-round-del:hover:not(:disabled) {
  color: #f0b8ae;
  border-color: rgba(240, 184, 174, 0.5);
  background: rgba(240, 184, 174, 0.08);
}

.field-row .btn-round-del:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.field label span {
  color: var(--gold-2);
  letter-spacing: 0.1em;
}

/* 音量滑杆 */
.field input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-3), rgba(255, 255, 255, 0.14));
  outline: none;
  cursor: pointer;
}

.field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid rgba(255, 246, 226, 0.75);
  background: linear-gradient(150deg, var(--gold-1), var(--gold-3));
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.field input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255, 246, 226, 0.75);
  background: linear-gradient(150deg, var(--gold-1), var(--gold-3));
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.drawer-section {
  margin: 26px 0 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}

.drawer-note {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

.danger {
  color: #f0b8ae;
  border-color: rgba(240, 184, 174, 0.28);
}

.danger:hover {
  color: #ffd9d1;
  border-color: rgba(240, 184, 174, 0.6);
  background: rgba(240, 184, 174, 0.12);
}

/* 弹层：二维码 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 5, 10, 0.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: min(430px, 90vw);
  padding: 38px 34px 30px;
  text-align: center;
  background: var(--glass-strong);
  border: 1px solid var(--line-1);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.5s var(--ease-out);
}

.modal.open .modal-card {
  transform: none;
}

.qr-frame {
  margin: 20px auto 18px;
  padding: 16px;
  width: 268px;
  height: 268px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-frame img,
.qr-frame svg {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-url {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-3);
  word-break: break-all;
}

/* 提示条 */
.toasts {
  position: fixed;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px 10px 12px;
  border: 1px solid var(--line-1);
  border-radius: 999px;
  background: rgba(8, 12, 22, 0.82);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  letter-spacing: 0.14em;
  animation: toastIn 0.6s var(--ease-out) both;
}

.toast.out {
  animation: toastOut 0.5s var(--ease) both;
}

.toast img,
.toast .mono {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-1);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* 全屏提示 */
.fs-hint {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 60;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--text-3);
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.8s var(--ease);
}

.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ================= 手机端 ================= */

.mobile-body {
  overflow-y: auto;
  overflow-x: hidden;
}

.mobile {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 42px 24px 40px;
}

.mobile-head {
  text-align: center;
  margin-bottom: 26px;
}

.mobile-name {
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: 0.24em;
  margin-top: 12px;
}

.mobile-meta {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--text-3);
  text-transform: uppercase;
}

.mobile-invite {
  margin-top: 12px;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--rose);
  opacity: 0.85;
}

/* 新人照片：请柬式圆形小像 */
.mobile-photo {
  width: 78px;
  height: 78px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background-position: center;
  background-size: cover;
  border: 1px solid rgba(238, 221, 178, 0.45);
  box-shadow: 0 0 0 5px rgba(238, 221, 178, 0.08), 0 12px 30px rgba(0, 0, 0, 0.45);
}

/* 祝福语快捷选择 */
.wish-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 20px;
}

.wish-chip {
  padding: 7px 15px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.wish-chip:hover,
.wish-chip.on {
  color: var(--gold-1);
  border-color: rgba(238, 221, 178, 0.5);
  background: linear-gradient(140deg, rgba(184, 73, 106, 0.24), rgba(255, 255, 255, 0.04));
}

.success-wish {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--gold-2);
  line-height: 1.8;
}

.card {
  width: 100%;
  max-width: 420px;
  padding: 30px 24px 26px;
  border: 1px solid var(--line-1);
  border-radius: 24px;
  background: var(--glass);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.avatar-wrap {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 22px;
}

.avatar-wrap .ring {
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  background: conic-gradient(from 140deg, rgba(230, 205, 147, 0.9), rgba(230, 205, 147, 0.08) 32%, rgba(230, 205, 147, 0.85) 58%, rgba(230, 205, 147, 0.1) 82%, rgba(230, 205, 147, 0.9));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.6px));
  animation: spinSlow 14s linear infinite;
}

@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}

.avatar-slot {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(230, 205, 147, 0.22), rgba(255, 255, 255, 0.05));
  border: 1px solid var(--line-1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.avatar-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-slot .placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-3);
  line-height: 1.6;
}

.avatar-slot .placeholder svg {
  width: 26px;
  height: 26px;
  stroke: var(--gold-3);
  fill: none;
  stroke-width: 1.4;
}

.field-mobile {
  margin-bottom: 18px;
}

.field-mobile input {
  width: 100%;
  padding: 15px 18px;
  font-size: 17px;
  text-align: center;
  letter-spacing: 0.1em;
}

.mobile .btn-primary {
  width: 100%;
}

.mobile-note {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  line-height: 1.9;
  color: var(--text-3);
  letter-spacing: 0.06em;
}

.success-card {
  text-align: center;
  padding: 34px 26px 28px;
}

/* 抽奖号码票券 */
.ticket {
  position: relative;
  margin: 24px 0 4px;
  padding: 20px 18px 18px;
  border: 1px solid rgba(230, 205, 147, 0.34);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(230, 205, 147, 0.14), rgba(230, 205, 147, 0.03));
  overflow: hidden;
}

.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--ink-1);
  border: 1px solid rgba(230, 205, 147, 0.3);
}

.ticket::before {
  left: -9px;
}

.ticket::after {
  right: -9px;
}

.ticket-label {
  font-size: 11px;
  letter-spacing: 0.36em;
  text-indent: 0.36em;
  color: var(--text-3);
}

.ticket-code {
  margin: 10px 0 8px;
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  line-height: 1.1;
  background: linear-gradient(96deg, var(--gold-1), #fff8e6 42%, var(--gold-3) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.ticket-hint {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-3);
}

.recover-line {
  margin-top: 16px;
  text-align: center;
}

.link-btn {
  padding: 4px 0;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold-3);
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(230, 205, 147, 0.28);
  cursor: pointer;
}

.link-btn:hover {
  color: var(--gold-1);
}

.recover-box {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.recover-box input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  font-size: 16px;
  letter-spacing: 0.2em;
  text-align: center;
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  outline: none;
}

.recover-box input:focus {
  border-color: rgba(230, 205, 147, 0.5);
}

.success-badge {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 1px solid var(--line-1);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 205, 147, 0.1);
}

.success-badge svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold-2);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-title {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.2em;
}

.success-sub {
  margin-top: 12px;
  font-size: 13px;
  line-height: 2;
  color: var(--text-2);
}

.mini-wall {
  position: relative;
  width: 100%;
  height: 132px;
  margin: 22px 0 6px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: radial-gradient(80% 120% at 50% 120%, rgba(211, 176, 114, 0.16), transparent 70%), rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.mini-wall canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.stack-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.stack-actions .btn {
  flex: 1;
  letter-spacing: 0.1em;
  font-size: 13px;
}

.tip-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-2);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.tip-box .tag {
  flex: none;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(230, 205, 147, 0.14);
  color: var(--gold-2);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.tip-box.warn {
  border-color: rgba(240, 184, 174, 0.4);
  background: rgba(240, 184, 174, 0.08);
  color: #f4c7bf;
}

.tip-box.warn .tag {
  background: rgba(240, 184, 174, 0.18);
  color: #f4c7bf;
}

/* 全局加载遮罩 */
.boot {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  background: var(--ink-0);
  transition: opacity 0.6s var(--ease);
}

.boot .monogram {
  font-family: var(--serif);
  font-size: 34px;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
}

.boot-line {
  width: 160px;
  height: 1px;
  background: var(--line-2);
  overflow: hidden;
}

.boot-line i {
  display: block;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  animation: bootSlide 1.4s var(--ease) infinite;
}

@keyframes bootSlide {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(360%);
  }
}

/* ================= 自适应 ================= */

@media (max-width: 1400px) {
  .hud {
    padding: 34px 40px 30px;
  }

  .brand-couple {
    font-size: 25px;
  }

  .winners {
    max-width: 52vw;
  }
}

@media (max-width: 1024px) {
  .winners {
    max-width: 62vw;
  }

  .winner-name {
    font-size: clamp(40px, 9vw, 92px);
  }
}

@media (max-height: 760px) {
  .hud {
    padding: 26px 32px 24px;
  }

  .winner-name {
    font-size: clamp(44px, 7vw, 110px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .avatar-wrap .ring {
    animation: none;
  }
}
