/* ============================================================
   2027 新春年会 · 大屏样式
   逻辑分辨率 1920 × 1080，等比缩放
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* 优先用系统里的毛笔类字体；放自备字体见 @font-face */
  --serif: "BrushCN", "STXingkai", "华文行楷", "FZShuTi", "方正舒体", "LiSu", "隶书", "STKaiti", "KaiTi", "楷体", "Songti SC", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Hiragino Sans GB", sans-serif;
  --gold: #E9C07A;
  --gold-hi: #FBEBC4;
  --gold-deep: #A9762F;
  --red: #8E1B22;
  --red-hi: #C0272D;
  --paper: #F6EBD5;
  --ink: #0B0607;
  --glow: rgba(233, 192, 122, .35);
}

html, body {
  width: 100%; height: 100%;
  background: #060405;
  overflow: hidden;
  font-family: var(--sans);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

#viewport {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
}

/* 超宽屏 / 非 16:9 时，把底色与纹理延展到 letterbox 区域，避免出现黑边 */
.bg-fill {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 62% 78% at 50% 40%, #3A1013 0%, #22090C 42%, #100708 72%, #070405 100%);
  z-index: 0;
}
.bg-fill::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='none' stroke='%23E9C07A' stroke-width='1.1' opacity='0.1'%3E%3Cpath d='M30 150c0-14 11-25 25-25 3-16 17-28 34-28 19 0 34 14 36 32 12 1 21 11 21 23 0 13-11 24-24 24H52c-12 0-22-11-22-26z'/%3E%3Cpath d='M150 60c0-10 8-18 18-18 2-11 12-20 24-20 13 0 23 10 25 22 9 1 15 8 15 16 0 9-8 16-17 16h-48c-9 0-17-7-17-16z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 520px 520px;
  opacity: .5;
}

#stage {
  position: relative;
  width: 1920px; height: 1080px;
  flex: 0 0 auto;
  transform-origin: center center;
  overflow: hidden;
  background: #0B0607;
  --accent: var(--gold);
}

/* ---------------------------------------------------------- 背景层 */

.bg-base {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 92% 76% at 50% 34%, #D25560 0%, #B33E48 16%, #8E2C34 34%, #6B2026 54%, #4A161C 74%, #341016 100%);
}

/* 顶部暖金光晕 + 底部反光，让画面通透 */
.bg-glow {
  position: absolute; inset: 0; pointer-events: none;
}
.bg-glow::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 64% 34% at 50% -4%, rgba(255,222,165,.52), transparent 72%),
    radial-gradient(ellipse 40% 48% at 50% 46%, rgba(255,214,165,.2), transparent 72%),
    radial-gradient(ellipse 48% 26% at 82% 6%, rgba(255,190,135,.26), transparent 70%),
    radial-gradient(ellipse 70% 28% at 50% 108%, rgba(255,180,115,.3), transparent 74%);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: .85; }
  50% { opacity: 1; }
}

/* 缓慢扫过的流光 */
.bg-sheen {
  position: absolute; inset: -25%; pointer-events: none;
  background: linear-gradient(112deg,
    transparent 40%,
    rgba(255,224,180,.07) 46%,
    rgba(255,242,214,.13) 50%,
    rgba(255,224,180,.07) 54%,
    transparent 60%);
  animation: sheen 17s ease-in-out infinite;
  mix-blend-mode: screen;
}
@keyframes sheen {
  0%, 100% { transform: translateX(-26%); }
  50% { transform: translateX(26%); }
}

/* 漂浮光斑 */
.bg-bokeh { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bg-bokeh i {
  position: absolute; display: block; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,226,170,.55), rgba(255,200,140,.16) 48%, transparent 70%);
  animation: bokehFloat linear infinite;
  will-change: transform, opacity;
}
@keyframes bokehFloat {
  0%   { transform: translate3d(0, 0, 0) scale(.85); opacity: 0; }
  12%  { opacity: .8; }
  88%  { opacity: .6; }
  100% { transform: translate3d(0, -140px, 0) scale(1.15); opacity: 0; }
}

.bg-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 96% 92% at 50% 46%, transparent 62%, rgba(60,20,24,.14) 84%, rgba(36,12,16,.26) 100%);
  pointer-events: none;
}

.bg-cloud {
  position: absolute; inset: -10%;
  opacity: .75;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='none' stroke='%23F0CD90' stroke-width='1.1' opacity='0.18'%3E%3Cpath d='M30 150c0-14 11-25 25-25 3-16 17-28 34-28 19 0 34 14 36 32 12 1 21 11 21 23 0 13-11 24-24 24H52c-12 0-22-11-22-26z'/%3E%3Cpath d='M150 60c0-10 8-18 18-18 2-11 12-20 24-20 13 0 23 10 25 22 9 1 15 8 15 16 0 9-8 16-17 16h-48c-9 0-17-7-17-16z'/%3E%3Ccircle cx='210' cy='200' r='14'/%3E%3Cpath d='M180 210c10-18 32-18 42 0'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 520px 520px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, #000 20%, transparent 78%);
}

#dust { position: absolute; inset: 0; pointer-events: none; opacity: .8; }

.bg-frame {
  position: absolute; inset: 26px;
  border: 1px solid rgba(240,200,140,.22);
  pointer-events: none;
}
.bg-frame::before, .bg-frame::after {
  content: ""; position: absolute; width: 54px; height: 54px;
  border: 1px solid rgba(233,192,122,.5);
}
.bg-frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.bg-frame::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* ---------------------------------------------------------- 顶栏 */

.topbar {
  position: absolute; top: 56px; left: 76px; right: 76px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 40;
  font-size: 22px; letter-spacing: .08em;
  color: rgba(246,235,213,.6);
}
.brand { display: flex; align-items: center; gap: 16px; }
.brand-logo {
  width: 42px; height: 42px; flex: 0 0 auto;
  background: linear-gradient(168deg, #FBEBC4, #E6BE79 52%, #BE8C42);
  opacity: .92;
}
.brand-text { font-size: 23px; color: rgba(246,235,213,.85); letter-spacing: .18em; }
.topbar-mid { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: #67C08B;
  box-shadow: 0 0 10px rgba(103,192,139,.9);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
.sep { opacity: .3; }
.brand-right .zodiac {
  font-family: var(--serif); font-size: 22px; letter-spacing: .2em;
  color: rgba(233,192,122,.62);
}

/* ---------------------------------------------------------- 场景容器 */

.scene {
  position: absolute; inset: 0;
  padding: 118px 78px 104px;
  z-index: 10;
  opacity: 0; visibility: hidden;
  transform: translateY(16px) scale(.995);
  transition: opacity .65s ease, transform .85s cubic-bezier(.22,.86,.24,1), visibility .65s;
}
.scene.on {
  opacity: 1; visibility: visible; transform: none;
}

/* ---------------------------------------------------------- 待机 */

#s-idle { display: flex; align-items: center; justify-content: center; padding: 0; }

.idle-inner { text-align: center; transform: translateY(-14px); }

.idle-logo {
  width: 96px; height: 96px; margin: 0 auto 30px;
  background: linear-gradient(168deg, #FFF6E0, #E9C07A 45%, #BE8C42);
  filter: drop-shadow(0 8px 30px rgba(233,192,122,.45));
}
.idle-kicker {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  font-size: 21px; letter-spacing: .42em; color: rgba(233,192,122,.72);
  margin-bottom: 34px;
}
.idle-kicker .rule {
  width: 96px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233,192,122,.75), transparent);
}

.idle-title {
  font-family: var(--serif);
  font-size: 188px;
  line-height: 1.02;
  letter-spacing: .1em;
  text-indent: .1em;
  background: linear-gradient(175deg, #FFF8E4 0%, #FCE9BE 22%, #E6BE79 52%, #B8823A 76%, #8A5A1C 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 40px rgba(201,151,63,.35));
  animation: titleIn 1.6s cubic-bezier(.16,.9,.2,1) both;
}
@keyframes titleIn {
  from { opacity: 0; transform: translateY(26px) scale(.97); letter-spacing: .26em; }
  to   { opacity: 1; transform: none; }
}

.idle-en {
  margin-top: 18px;
  font-size: 15px; letter-spacing: .58em; color: rgba(246,235,213,.36);
}
.idle-slogan {
  margin-top: 30px;
  font-family: var(--serif);
  font-size: 34px; letter-spacing: .34em; color: rgba(246,235,213,.86);
}

.idle-qr {
  margin-top: 58px;
  display: inline-flex; align-items: center; gap: 26px;
  padding: 20px 34px 20px 20px;
  background: rgba(24,10,10,.55);
  border: 1px solid rgba(233,192,122,.22);
  backdrop-filter: blur(6px);
}
.qr-box { position: relative; width: 232px; height: 232px; padding: 10px; background: #FDF6E3; }
.qr-box img { width: 100%; height: 100%; display: block; object-fit: contain; }
.qr-corner {
  position: absolute; width: 18px; height: 18px;
  border: 2px solid var(--gold-deep);
}
.qr-corner.tl { top: -5px; left: -5px; border-right: none; border-bottom: none; }
.qr-corner.tr { top: -5px; right: -5px; border-left: none; border-bottom: none; }
.qr-corner.bl { bottom: -5px; left: -5px; border-right: none; border-top: none; }
.qr-corner.br { bottom: -5px; right: -5px; border-left: none; border-top: none; }

.qr-text { text-align: left; display: flex; flex-direction: column; gap: 8px; }
.qr-text strong { font-family: var(--serif); font-size: 38px; color: var(--gold); letter-spacing: .16em; }
.qr-text span { font-size: 18px; color: rgba(246,235,213,.6); letter-spacing: .1em; }
.qr-url { font-size: 15px !important; color: rgba(233,192,122,.42) !important; font-family: monospace; }

.idle-seal {
  position: absolute; right: 84px; bottom: 104px;
  width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 46px; color: #F6EBD5;
  background: rgba(160,26,32,.82);
  border: 3px solid rgba(246,235,213,.55);
  transform: rotate(-6deg);
  opacity: .8;
  letter-spacing: 0;
}

/* ---------------------------------------------------------- 签到墙 */

.signin-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.signin-title .eyebrow {
  font-size: 14px; letter-spacing: .5em; color: rgba(233,192,122,.5);
}
.signin-title h2 {
  font-family: var(--serif); font-size: 62px; font-weight: 400;
  letter-spacing: .1em; margin-top: 8px;
  background: linear-gradient(180deg, #FDF3D6, #D6A75B 62%, #A9762F);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.signin-right { display: flex; align-items: center; gap: 40px; }
.signin-qr { text-align: center; }
.signin-qr img {
  width: 208px; height: 208px; display: block;
  background: #FDF6E3; padding: 9px;
  border: 1px solid rgba(233,192,122,.35);
}
.signin-qr span {
  display: block; margin-top: 12px;
  font-family: var(--serif); font-size: 22px; letter-spacing: .2em;
  color: var(--gold);
}
.signin-stat { text-align: right; }
.signin-stat b {
  font-family: var(--serif); font-size: 76px; color: var(--gold); line-height: 1;
  margin-right: 10px;
}
.signin-stat span { font-size: 17px; color: rgba(246,235,213,.5); letter-spacing: .1em; }

.signin-grid {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 14px 10px;
  align-content: start;
  height: 556px;
  overflow: hidden;
}
.si-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  animation: siIn .7s cubic-bezier(.2,1.3,.4,1) both;
}
@keyframes siIn {
  from { opacity: 0; transform: scale(.4) translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.si-av {
  width: 86px; height: 86px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 34px;
  border: 2px solid rgba(233,192,122,.35);
  box-shadow: 0 6px 22px rgba(0,0,0,.45);
}
.si-name {
  font-size: 13px; color: rgba(246,235,213,.72);
  max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.signin-tip {
  position: absolute; bottom: 64px; left: 0; right: 0; text-align: center;
  font-size: 16px; letter-spacing: .18em; color: rgba(246,235,213,.34);
}

/* ---------------------------------------------------------- 节目 */

#s-program { padding: 128px 90px 118px; display: flex; flex-direction: column; }

.prog-wrap { display: grid; grid-template-columns: 200px 1fr 300px; gap: 40px; flex: 1 1 auto; min-height: 0; }

.prog-no {
  font-family: var(--serif);
  font-size: 176px; line-height: .94;
  color: transparent;
  -webkit-text-stroke: 2px rgba(233,192,122,.3);
  opacity: .85;
  align-self: center;
}

.prog-main { display: flex; flex-direction: column; justify-content: center; padding-bottom: 10px; }
.prog-type {
  display: inline-block; align-self: flex-start;
  font-size: 17px; letter-spacing: .34em; color: var(--gold);
  padding: 8px 18px; border: 1px solid rgba(233,192,122,.35);
  margin-bottom: 30px;
}
.prog-name {
  font-family: var(--serif); font-weight: 400;
  font-size: 112px; line-height: 1.12; letter-spacing: .03em;
  background: linear-gradient(174deg, #FFF9E8 0%, #F7DFAE 34%, #D9A95E 66%, #9E6E2A 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 34px rgba(201,151,63,.28));
}
.prog-tagline {
  margin-top: 20px; font-family: var(--serif);
  font-size: 34px; color: rgba(246,235,213,.78); letter-spacing: .16em;
}
.prog-meta { display: flex; gap: 48px; margin-top: 40px; }
.meta-item { display: flex; flex-direction: column; gap: 8px; }
.meta-item i {
  font-style: normal; font-size: 18px; letter-spacing: .28em;
  color: rgba(233,192,122,.5);
}
.meta-item b { font-size: 27px; font-weight: 400; color: rgba(246,235,213,.92); letter-spacing: .06em; }
.prog-intro {
  margin-top: 38px; max-width: 800px;
  font-size: 19px; line-height: 2.1; color: rgba(246,235,213,.58);
  border-left: 2px solid rgba(233,192,122,.3); padding-left: 24px;
}

.prog-side { display: flex; flex-direction: column; gap: 26px; padding-top: 40px; }
.prog-live {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; letter-spacing: .3em; color: rgba(246,235,213,.6);
}
.prog-live span {
  width: 9px; height: 9px; border-radius: 50%; background: var(--red-hi);
  box-shadow: 0 0 12px var(--red-hi); animation: pulse 1.4s infinite;
}
.prog-list { display: flex; flex-direction: column; gap: 12px; }
.pl-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(233,192,122,.1);
  background: rgba(255,255,255,.015);
  font-size: 15px; color: rgba(246,235,213,.36);
  transition: .4s;
}
.pl-item.active {
  border-color: rgba(233,192,122,.42);
  background: rgba(233,192,122,.07);
  color: rgba(246,235,213,.95);
}
.pl-item.done { color: rgba(246,235,213,.22); }
.pl-item b { font-family: var(--serif); font-size: 17px; color: rgba(233,192,122,.6); min-width: 22px; }
.pl-item.active b { color: var(--gold); }

.prog-foot {
  flex: 0 0 auto; margin-top: 26px;
  padding-top: 22px; border-top: 1px solid rgba(233,192,122,.14);
  font-size: 23px; letter-spacing: .14em; color: rgba(246,235,213,.55);
  display: flex; justify-content: space-between;
}

/* ---------------------------------------------------------- 游戏通用 */

#s-game { padding: 108px 68px 88px; display: flex; flex-direction: column; }

.game-head { display: flex; align-items: flex-start; justify-content: space-between; height: 150px; flex: 0 0 auto; }
.gh-left { display: flex; gap: 28px; align-items: flex-start; }
.gh-no {
  font-family: var(--serif); font-size: 64px; line-height: 1.1;
  color: transparent; -webkit-text-stroke: 2px rgba(233,192,122,.42);
}
.gh-type { font-size: 14px; letter-spacing: .34em; color: rgba(233,192,122,.75); }
.gh-title h2 {
  font-family: var(--serif); font-weight: 400; font-size: 54px;
  letter-spacing: .08em; margin-top: 4px;
  background: linear-gradient(180deg,#FFF6E0,#E6BE79 60%,#B4823B);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gh-title p { margin-top: 8px; font-size: 17px; color: rgba(246,235,213,.5); letter-spacing: .08em; }

.gh-right { display: flex; align-items: center; gap: 22px; }
.timer {
  display: flex; align-items: baseline; gap: 8px;
  padding: 10px 26px; border: 1px solid rgba(233,192,122,.28);
  background: rgba(233,192,122,.05);
}
.timer b { font-family: var(--serif); font-size: 56px; color: var(--gold); line-height: 1; }
.timer em {
  font-style: normal; font-size: 12px; letter-spacing: .2em;
  color: rgba(246,235,213,.45); margin-right: 6px;
}
.timer i { font-style: normal; font-size: 16px; color: rgba(246,235,213,.5); }
.timer.urgent b { color: #F2765F; }

.countdown {
  position: absolute; inset: 0; z-index: 60;
  display: none; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 280px; color: var(--gold);
  background: rgba(10,5,6,.72); backdrop-filter: blur(3px);
  text-shadow: 0 0 80px rgba(233,192,122,.5);
}
.countdown.on { display: flex; }
.countdown span { animation: cdPop 1s cubic-bezier(.2,1.4,.4,1); }
@keyframes cdPop {
  from { opacity: 0; transform: scale(1.9); }
  60%  { opacity: 1; }
  to   { opacity: 1; transform: scale(1); }
}

.game-stage { position: relative; flex: 1 1 auto; margin-top: 8px; }

.gv {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease, visibility .45s;
}
.gv.on { opacity: 1; visibility: visible; }

.game-foot {
  position: relative;
  flex: 0 0 auto; height: 126px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  font-size: 20px; letter-spacing: .12em; color: rgba(246,235,213,.6);
  border-top: 1px solid rgba(233,192,122,.12);
  margin-top: 10px;
}
.game-foot b { color: var(--gold); font-weight: 400; }
.foot-qr { width: 104px; height: 104px; background: #FDF6E3; padding: 6px; display: inline-block; flex: 0 0 auto; }
.foot-qr img { width: 100%; height: 100%; display: block; }
.foot-count { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------------------------------------------------------- 赛跑 */

.race-tracks { display: flex; flex-direction: column; gap: 10px; height: 100%; justify-content: center; }

.lane {
  display: grid; grid-template-columns: 210px 1fr 100px;
  align-items: center; gap: 18px; height: 60px;
}
.lane-info { display: flex; align-items: center; gap: 12px; overflow: hidden; }
.lane-info .av {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 20px;
  border: 1px solid rgba(233,192,122,.4);
}
.lane-info .nm {
  font-size: 17px; color: rgba(246,235,213,.85);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lane-info .rk {
  font-family: var(--serif); font-size: 17px; color: rgba(233,192,122,.55);
  flex: 0 0 auto;
}

.lane-road {
  position: relative; height: 48px;
  background: linear-gradient(90deg, rgba(233,192,122,.05), rgba(233,192,122,.13));
  border: 1px solid rgba(233,192,122,.13);
  border-radius: 27px;
  overflow: hidden;
}
.lane-road::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 38px, rgba(233,192,122,.07) 38px 40px);
}
.runner {
  position: absolute; top: 50%; left: 0;
  width: 48px; height: 48px;
  transition: left .38s cubic-bezier(.25,.9,.3,1);
  transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.runner svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 8px rgba(0,0,0,.5)); }
.runner.lead svg { filter: drop-shadow(0 0 12px rgba(233,192,122,.85)); }

.lane-val {
  font-family: var(--serif); font-size: 26px; color: var(--gold);
  text-align: right;
}

.race-total {
  position: absolute; left: 0; right: 0; top: -34px;
  font-size: 15px; letter-spacing: .2em; color: rgba(246,235,213,.34);
}
.race-finish {
  position: absolute; right: 236px; top: 0; bottom: 0; width: 2px;
  background: repeating-linear-gradient(180deg, rgba(233,192,122,.5) 0 12px, transparent 12px 24px);
}

/* ---------------------------------------------------------- 抢答 */

#gv-quiz { display: flex; flex-direction: column; padding: 0 40px; }

.quiz-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.quiz-progress { display: flex; gap: 8px; }
.qp-dot {
  width: 40px; height: 5px; border-radius: 3px; background: rgba(233,192,122,.16);
  transition: .4s;
}
.qp-dot.done { background: rgba(233,192,122,.55); }
.qp-dot.now { background: var(--gold); box-shadow: 0 0 12px rgba(233,192,122,.7); }

.quiz-clock { position: relative; width: 74px; height: 74px; }
.quiz-clock svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.quiz-clock circle { fill: none; stroke-width: 6; }
.ring-bg { stroke: rgba(233,192,122,.14); }
.ring-fg {
  stroke: var(--gold); stroke-linecap: round;
  stroke-dasharray: 327; stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear, stroke .3s;
}
.quiz-clock b {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 24px; color: var(--gold);
}

.quiz-q {
  font-family: var(--serif); font-size: 56px; font-weight: 400;
  line-height: 1.45; letter-spacing: .04em; color: #FBF1DC;
  min-height: 168px; display: flex; align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(233,192,122,.12);
}

.quiz-opts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-top: 30px;
}
.qopt {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 20px;
  padding: 26px 30px; min-height: 116px;
  border: 1px solid rgba(233,192,122,.18);
  background: rgba(255,255,255,.02);
  transition: .45s;
}
.qopt .key {
  font-family: var(--serif); font-size: 34px; color: var(--gold);
  width: 40px; flex: 0 0 auto;
}
.qopt .txt { font-size: 34px; color: rgba(246,235,213,.9); letter-spacing: .04em; }
.qopt .bar {
  position: absolute; left: 0; bottom: 0; height: 4px; width: 0;
  background: linear-gradient(90deg, rgba(233,192,122,.9), rgba(233,192,122,.3));
  transition: width .5s cubic-bezier(.2,.8,.3,1);
}
.qopt .num {
  position: absolute; right: 24px; bottom: 14px;
  font-family: var(--serif); font-size: 19px; color: rgba(233,192,122,.55);
}
.qopt.right {
  border-color: rgba(233,192,122,.85);
  background: rgba(233,192,122,.12);
  box-shadow: 0 0 40px rgba(233,192,122,.18) inset;
}
.qopt.right .txt { color: var(--gold-hi); }
.qopt.wrong { opacity: .3; }

.quiz-note {
  margin-top: 24px; font-size: 19px; line-height: 1.9;
  color: rgba(246,235,213,.5); letter-spacing: .04em;
  min-height: 34px; opacity: 0; transition: opacity .5s;
}
.quiz-note.on { opacity: 1; }

.quiz-live {
  position: absolute; right: 40px; bottom: 4px;
  font-size: 16px; letter-spacing: .18em;
  color: rgba(246,235,213,.35);
}
.quiz-live b {
  font-family: var(--serif); font-size: 26px; color: var(--gold);
  margin: 0 4px;
}

/* ---------------------------------------------------------- 薅羊毛 */

#gv-tap { display: grid; grid-template-columns: 1fr 380px; gap: 44px; padding: 0 30px; }

.tap-left { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.wool-mountain { position: relative; width: 100%; height: 392px; --pileW: 200px; --pileH: 54px; }
.wool-pile {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: var(--pileW); height: var(--pileH);
  background:
    radial-gradient(circle at 30% 40%, #FFF9EA 0 12px, transparent 13px),
    radial-gradient(circle at 62% 30%, #FFF9EA 0 11px, transparent 12px),
    radial-gradient(circle at 45% 62%, #F6EBD5 0 13px, transparent 14px),
    radial-gradient(circle at 75% 66%, #FFF9EA 0 10px, transparent 11px);
  background-size: 90px 90px;
  background-color: rgba(253,246,227,.92);
  border-radius: 50% 50% 0 0 / 62% 62% 0 0;
  transition: width .55s cubic-bezier(.2,.8,.3,1), height .55s cubic-bezier(.2,.8,.3,1);
  box-shadow: 0 0 60px rgba(253,246,227,.28);
  opacity: .95;
}
.sheep-figure {
  position: absolute; z-index: 2; width: 268px; left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--pileH) - 30px);
  transition: bottom .55s cubic-bezier(.2,.8,.3,1);
}
.sheep-figure svg { width: 100%; display: block; filter: drop-shadow(0 16px 30px rgba(0,0,0,.5)); }

.wool-count { text-align: center; margin-top: 10px; padding-bottom: 6px; }
.wool-count b {
  display: block; font-family: var(--serif); font-size: 62px; color: var(--gold); line-height: 1.05;
}
.wool-count span { font-size: 17px; letter-spacing: .2em; color: rgba(246,235,213,.58); }

.tap-right { display: flex; flex-direction: column; padding-top: 20px; }
.rank-head {
  font-size: 14px; letter-spacing: .34em; color: rgba(233,192,122,.55);
  padding-bottom: 14px; border-bottom: 1px solid rgba(233,192,122,.15);
}
.rank-list { display: flex; flex-direction: column; }
.rank-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 4px; border-bottom: 1px solid rgba(233,192,122,.07);
}
.rank-row .no {
  font-family: var(--serif); font-size: 22px; width: 30px;
  color: rgba(233,192,122,.4);
}
.rank-row.top1 .no { color: #F6D48A; }
.rank-row .av {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 17px;
  border: 1px solid rgba(233,192,122,.3);
}
.rank-row .nm { flex: 1; font-size: 17px; color: rgba(246,235,213,.82); }
.rank-row .vv { font-family: var(--serif); font-size: 22px; color: var(--gold); }

/* ---------------------------------------------------------- 拔河 */

#gv-tug { display: flex; align-items: center; justify-content: center; }
.tug-teams { display: grid; grid-template-columns: 1fr 420px 1fr; align-items: center; width: 100%; gap: 10px; }

.team { text-align: center; }
.team-name {
  font-family: var(--serif); font-size: 34px; letter-spacing: .3em;
  margin-bottom: 6px;
}
.team-red .team-name { color: #E0574F; }
.team-gold .team-name { color: var(--gold); }
.team-score b { font-family: var(--serif); font-size: 76px; line-height: 1.1; }
.team-red .team-score b { color: #F0857B; }
.team-gold .team-score b { color: var(--gold-hi); }
.team-faces {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 22px; max-width: 460px; margin-left: auto; margin-right: auto;
}
.tf-wrap { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 64px; }
.tf {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 21px;
  border: 1px solid rgba(255,255,255,.14);
}
.tf-wrap i { font-style: normal; font-size: 11px; color: rgba(246,235,213,.45); max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tug-center { position: relative; text-align: center; }
.rope-line {
  position: relative; height: 20px; border-radius: 10px;
  background: linear-gradient(90deg, rgba(224,87,79,.55), rgba(233,192,122,.2) 45%, rgba(233,192,122,.2) 55%, rgba(233,192,122,.55));
  box-shadow: 0 0 24px rgba(0,0,0,.5);
}
.rope-knot {
  position: absolute; top: 50%; left: 50%;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--gold-deep);
  transform: translate(-50%,-50%);
  transition: left .5s cubic-bezier(.2,.8,.3,1);
  box-shadow: 0 0 26px rgba(246,235,213,.7);
}
.rope-flag {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  font-size: 17px; letter-spacing: .16em; color: rgba(246,235,213,.85);
  white-space: nowrap;
  padding: 4px 14px; background: rgba(12,6,7,.72);
  border: 1px solid rgba(233,192,122,.22);
}
.tug-vs {
  margin-top: 18px; font-family: var(--serif); font-size: 26px;
  color: rgba(233,192,122,.35); letter-spacing: .1em;
}

/* ---------------------------------------------------------- 抽奖 */

#gv-draw { display: flex; flex-direction: column; padding: 0 20px; }

.draw-prize { text-align: center; margin-bottom: 22px; }
.dp-label { font-size: 17px; letter-spacing: .4em; color: rgba(246,235,213,.35); }
.dp-name {
  font-family: var(--serif); font-size: 56px; font-weight: 400; letter-spacing: .12em;
  background: linear-gradient(180deg,#FFF6E0,#E6BE79 60%,#B4823B);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dp-count { font-size: 16px; letter-spacing: .2em; color: rgba(233,192,122,.6); }

.draw-wall {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 10px; align-content: start;
  height: 430px; overflow: hidden;
}
.dw-cell {
  height: 74px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 1px solid rgba(255,210,160,.22);
  background: rgba(255,220,180,.08);
  transition: .25s;
}
.dw-cell .a {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 15px;
}
.dw-cell .n { font-size: 11px; color: rgba(246,235,213,.62); max-width: 80px; overflow: hidden; white-space: nowrap; }
.dw-cell.hot {
  border-color: var(--gold); background: rgba(233,192,122,.14);
  transform: scale(1.06); box-shadow: 0 0 26px rgba(233,192,122,.35);
}
.dw-cell.win {
  border-color: rgba(233,192,122,.9); background: rgba(233,192,122,.2);
  animation: winPop .6s cubic-bezier(.2,1.5,.4,1);
}
@keyframes winPop { 0% { transform: scale(.8) } 60% { transform: scale(1.12) } 100% { transform: scale(1) } }

.draw-winners {
  position: absolute; inset: -20px; z-index: 30;
  display: none; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 86% 76% at 50% 26%, #D9636C 0%, #B8434E 24%, #93313C 48%, #71242E 72%, #551A24 100%);
  padding: 50px 60px;
  box-shadow: inset 0 0 120px rgba(255,200,150,.18);
}
.draw-winners.on { display: flex; }
.dw-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 12px; width: 158px;
  border: 1px solid rgba(255,220,170,.75);
  background: linear-gradient(180deg, rgba(255,228,180,.34), rgba(255,190,140,.16));
  box-shadow: 0 0 30px rgba(255,195,140,.28), inset 0 0 24px rgba(255,225,180,.16);
  border-radius: 6px;
  animation: winPop .7s cubic-bezier(.2,1.4,.4,1) both;
}
.dw-card .a {
  width: 62px; height: 62px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 26px;
}
.dw-card .n { font-size: 19px; color: var(--paper); }

/* ---------------------------------------------------------- 结算 */

#gv-result { display: flex; flex-direction: column; align-items: center; padding-top: 0; height: 100%; }
.result-head { text-align: center; margin-bottom: 46px; flex: 0 0 auto; }
.result-head span { font-size: 16px; letter-spacing: .5em; color: rgba(233,192,122,.5); }
.result-head h3 {
  font-family: var(--serif); font-size: 46px; font-weight: 400; letter-spacing: .1em;
  line-height: 1.5;
  background: linear-gradient(180deg,#FFF6E0,#E6BE79 60%,#B4823B);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.podium {
  position: relative;
  display: flex; align-items: flex-end; gap: 64px; justify-content: center;
  height: 358px; width: 100%;
  flex: 0 0 auto;
}
.podium::after {
  content: ""; position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%);
  width: 620px; height: 120px;
  background: radial-gradient(ellipse at 50% 100%, rgba(233,192,122,.22), transparent 70%);
  pointer-events: none;
}

.pod {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  animation: podIn .85s cubic-bezier(.2,1.2,.35,1) both;
}
@keyframes podIn {
  from { opacity: 0; transform: translateY(60px) scale(.92); }
  to   { opacity: 1; transform: none; }
}

.pod-glow {
  position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
  width: 190px; height: 190px; border-radius: 50%;
  background: radial-gradient(circle, rgba(233,192,122,.28), transparent 66%);
  opacity: 0; animation: glowIn 1.4s ease .5s forwards;
  pointer-events: none;
}
@keyframes glowIn { to { opacity: 1 } }
.pod.p1 .pod-glow {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(247,214,138,.42), transparent 66%);
}

.pod .cup {
  position: absolute; top: -50px; left: 50%;
  width: 54px; height: 54px; margin-left: -27px;
  filter: drop-shadow(0 0 18px rgba(233,192,122,.75));
  animation: cupIn .9s cubic-bezier(.2,1.5,.4,1) .45s both;
}
@keyframes cupIn {
  from { opacity: 0; transform: translateY(-24px) scale(.4) rotate(-16deg); }
  to   { opacity: 1; transform: none; }
}

.pod .a {
  width: 96px; height: 96px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 44px;
  border: 2px solid rgba(233,192,122,.6);
  box-shadow: 0 0 40px rgba(233,192,122,.25);
  position: relative; z-index: 2;
}
.pod.p1 .a {
  width: 118px; height: 118px; font-size: 48px;
  border-color: rgba(247,214,138,.9);
  box-shadow: 0 0 56px rgba(247,214,138,.55), 0 0 0 6px rgba(233,192,122,.1);
}
.pod.p1 .a::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px solid rgba(233,192,122,.28);
  animation: haloSpin 14s linear infinite;
}
@keyframes haloSpin { to { transform: rotate(360deg) } }

.pod .n {
  font-size: 24px; color: var(--paper); letter-spacing: .04em;
  max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pod.p1 .n { font-size: 28px; color: var(--gold-hi); }
.pod .v { font-family: var(--serif); font-size: 20px; color: rgba(233,192,122,.75); }
.pod.p1 .v { font-size: 24px; color: var(--gold); }

.pod .base {
  width: 168px; position: relative;
  border: 1px solid rgba(233,192,122,.3);
  border-bottom: none;
  background: linear-gradient(180deg, rgba(233,192,122,.22), rgba(233,192,122,.02));
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 18px; overflow: hidden;
}
.pod .base em {
  font-style: normal; font-family: var(--serif); font-size: 46px;
  color: rgba(233,192,122,.62);
}
.pod.p1 .base {
  height: 150px; width: 186px;
  border-color: rgba(233,192,122,.6);
  background: linear-gradient(180deg, rgba(247,214,138,.34), rgba(233,192,122,.04));
  box-shadow: 0 -10px 40px rgba(233,192,122,.18);
}
.pod.p1 .base em { color: var(--gold-hi); font-size: 52px; text-shadow: 0 0 24px rgba(247,214,138,.8); }
.pod.p2 .base { height: 112px; }
.pod.p3 .base { height: 92px; }

.pod-empty {
  font-family: var(--serif); font-size: 34px; color: rgba(246,235,213,.35);
  letter-spacing: .12em; align-self: center;
}

.result-rest {
  margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  max-width: 1400px; flex: 0 1 auto; overflow: hidden;
}
.rr {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 18px; border: 1px solid rgba(233,192,122,.12);
  background: rgba(255,255,255,.015);
  font-size: 16px; color: rgba(246,235,213,.66);
}
.rr b:first-child {
  font-family: var(--serif); font-size: 18px;
  color: rgba(233,192,122,.45); width: 22px;
}
.rr span { min-width: 90px; }
.rr b:last-child { color: var(--gold); font-weight: 400; font-family: var(--serif); font-size: 18px; }

/* ---------------------------------------------------------- 谢幕 */

#s-finale { display: flex; align-items: center; justify-content: center; padding: 0; }
.finale-inner { text-align: center; }
.finale-kicker { font-size: 14px; letter-spacing: .6em; color: rgba(233,192,122,.45); }
.finale-title {
  font-family: var(--serif); font-size: 170px; font-weight: 400; letter-spacing: .14em;
  margin: 24px 0 0; text-indent: .14em;
  background: linear-gradient(178deg, #FFF9E8, #EFD49C 40%, #C08F47 72%, #86601F);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 44px rgba(201,151,63,.3));
}
.finale-slogan { font-family: var(--serif); font-size: 38px; letter-spacing: .3em; color: rgba(246,235,213,.8); margin-top: 20px; }
.finale-line {
  width: 160px; height: 1px; margin: 44px auto;
  background: linear-gradient(90deg, transparent, rgba(233,192,122,.7), transparent);
}
.finale-motto {
  font-family: var(--serif); font-size: 22px; letter-spacing: .34em;
  color: rgba(233,192,122,.72); margin-bottom: 26px;
}
.finale-company { font-size: 18px; letter-spacing: .4em; color: rgba(246,235,213,.4); }

/* ---------------------------------------------------------- 弹幕 */

.danmu-layer {
  position: absolute; left: 0; right: 0; bottom: 96px; height: 210px;
  pointer-events: none; z-index: 35; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.dm {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px 9px 10px;
  background: rgba(20,9,9,.62);
  border: 1px solid rgba(233,192,122,.2);
  border-radius: 30px;
  white-space: nowrap;
  font-size: 20px; color: rgba(246,235,213,.92);
  animation: dmRun linear forwards;
  will-change: transform;
}
.dm .a {
  width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 14px;
}
@keyframes dmRun {
  /* 舞台是 1920 逻辑宽，用 100vw 会因缩放少走一半，必须按舞台宽度算 */
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% - 1920px)); }
}

/* ---------------------------------------------------------- 过场 */

.transition {
  position: absolute; inset: 0; z-index: 90;
  pointer-events: none; opacity: 0;
  background:
    radial-gradient(ellipse 86% 76% at 50% 48%, #C24A52 0%, #9E3840 22%, #7C2A32 44%, #5E1E26 66%, #4A1820 86%, #3C141A 100%);
  transition: opacity .3s;
  box-shadow: inset 0 0 200px rgba(255,200,150,.22), inset 0 0 60px rgba(255,225,180,.16);
}
/* 过场时的金色光晕，避免一黑一闪 */
.transition::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 46% 46% at 50% 50%, rgba(255,228,180,.4), transparent 68%),
    radial-gradient(ellipse 90% 26% at 50% -2%, rgba(255,210,155,.34), transparent 72%),
    radial-gradient(ellipse 90% 26% at 50% 102%, rgba(255,200,140,.3), transparent 72%),
    linear-gradient(0deg, rgba(255,170,120,.14), transparent 26%),
    linear-gradient(180deg, rgba(255,170,120,.12), transparent 24%);
}
.transition.on { opacity: 1; }
.t-sweep {
  position: absolute; top: 0; bottom: 0; width: 72%;
  background: linear-gradient(90deg, transparent, rgba(255,214,150,.42) 42%, rgba(255,248,224,.85) 50%, rgba(255,214,150,.42) 58%, transparent);
  transform: translateX(-120%);
}
.transition.on .t-sweep { animation: sweep .95s cubic-bezier(.4,0,.5,1) forwards; }
@keyframes sweep { to { transform: translateX(240%); } }
.t-seal {
  position: absolute; left: 50%; top: 50%;
  width: 300px; height: 300px; margin: -150px 0 0 -150px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
}
.t-logo {
  width: 100%; height: 100%;
  background: linear-gradient(165deg, #FFF8E4, #F0D595 40%, #D6A75B 68%, #A9762F);
  filter: drop-shadow(0 0 60px rgba(233,192,122,.55));
}
.transition.on .t-seal { animation: logoIn 1s cubic-bezier(.2,.9,.3,1) .05s forwards; }
@keyframes logoIn {
  0%   { opacity: 0; transform: scale(1.9); }
  38%  { opacity: 1; transform: scale(1); }
  78%  { opacity: 1; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.08); }
}

/* ---------------------------------------------------------- 通用小件 */

.hidden { display: none !important; }

/* logo 遮罩：展开写法，简写在部分内核下解析失败 */

.brand-logo {
  -webkit-mask-image: url(/assets/img/logo-mask.png);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url(/assets/img/logo-mask.png);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.idle-logo {
  -webkit-mask-image: url(/assets/img/logo-mask.png);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url(/assets/img/logo-mask.png);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.t-logo {
  -webkit-mask-image: url(/assets/img/logo-mask.png);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url(/assets/img/logo-mask.png);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

/* 羊形头像：SVG 填满圆形容器 */
.av-sheep {
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.av-sheep svg { width: 100%; height: 100%; display: block; }

/* ---------------------------------------------------------- 演出模式 */

.perf {
  position: absolute; inset: 0; z-index: 30;
  opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
  background: #050304;
  overflow: hidden;
}
.perf.on { opacity: 1; visibility: visible; }

.perf video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .92;
}
.perf video[data-src=""] { display: none; }

.perf-mask {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,4,5,.72) 0%, rgba(8,4,5,.12) 32%, rgba(8,4,5,.18) 55%, rgba(8,4,5,.86) 100%);
  pointer-events: none;
}

/* 舞蹈类节目的光束背景（纯 CSS，无需素材） */
.perf-beam {
  position: absolute; inset: -20%; opacity: 0;
  background:
    conic-gradient(from 0deg at 30% 40%, transparent 0deg, rgba(233,192,122,.16) 12deg, transparent 26deg, transparent 120deg, rgba(200,60,60,.14) 140deg, transparent 160deg),
    conic-gradient(from 180deg at 72% 62%, transparent 0deg, rgba(233,192,122,.13) 14deg, transparent 30deg);
  animation: beamSpin 26s linear infinite;
  mix-blend-mode: screen;
  transition: opacity .8s;
}
.perf.beam .perf-beam { opacity: 1; }
@keyframes beamSpin { to { transform: rotate(360deg); } }

/* 歌词 */
.lyrics {
  position: absolute; left: 0; right: 0; bottom: 130px;
  text-align: center; padding: 0 160px;
  display: flex; flex-direction: column; gap: 12px;
  pointer-events: none;
}
.lyric-line {
  font-family: var(--serif);
  font-size: 40px; line-height: 1.4;
  color: rgba(246,235,213,.22);
  letter-spacing: .06em;
  transition: all .45s cubic-bezier(.2,.8,.3,1);
  text-shadow: 0 2px 20px rgba(0,0,0,.8);
}
.lyric-line.active {
  font-size: 62px;
  color: #FFF8E8;
  letter-spacing: .1em;
  text-shadow: 0 0 34px rgba(233,192,122,.85), 0 4px 26px rgba(0,0,0,.9);
  transform: scale(1.02);
}
.lyric-line.near { color: rgba(246,235,213,.62); font-size: 46px; }

.perf-tag {
  position: absolute; left: 76px; top: 118px;
  display: flex; align-items: center; gap: 12px;
  font-size: 16px; letter-spacing: .3em;
  color: rgba(233,192,122,.75);
}
.perf-tag::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--red-hi); box-shadow: 0 0 12px var(--red-hi);
  animation: pulse 1.4s infinite;
}

/* 反向助攻榜（拔河专属，纯活跃气氛） */
.spies { display: none; width: 100%; max-width: 1180px; margin-top: 6px; }
.spies.on { display: block; }
.spy-head {
  text-align: center;
  font-family: var(--serif); font-size: 22px; letter-spacing: .2em;
  color: rgba(240,150,140,.9);
}
.spy-head em {
  display: block; margin-top: 5px;
  font-style: normal; font-family: var(--sans);
  font-size: 13px; letter-spacing: .12em;
  color: rgba(246,235,213,.38);
}
.spy-items {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-top: 12px;
}
.spy {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 13px;
  border: 1px solid rgba(224,87,79,.32);
  background: rgba(224,87,79,.07);
}
.spy b {
  font-family: var(--serif); font-size: 14px;
  color: rgba(240,140,130,.85); min-width: 12px;
}
.spy-av { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(233,192,122,.3); }
.spy span { font-size: 14px; color: rgba(246,235,213,.88); }
.spy i {
  font-style: normal; font-family: var(--serif); font-size: 16px;
  color: #E88C82;
}

/* ?offline 截图模式：关闭动画与过渡 */
.static-shot *, .static-shot *::before, .static-shot *::after {
  animation: none !important;
  transition: none !important;
}
.static-shot .scene { opacity: 1; }
.static-shot .scene:not(.on) { opacity: 0; }

/* 四周内发光，让画面有「被灯打亮」的感觉 */
.bg-edge {
  position: absolute; inset: 0; pointer-events: none;
  box-shadow:
    inset 0 0 220px rgba(255,168,110,.2),
    inset 0 0 70px rgba(255,205,150,.12),
    inset 0 -120px 200px rgba(255,150,95,.14);
}

/* 缓慢下移的光带 */
.bg-scan { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bg-scan::before {
  content: ""; position: absolute; left: -10%; right: -10%; height: 160px;
  background: linear-gradient(180deg, transparent, rgba(255,225,180,.07) 45%, rgba(255,240,205,.1) 50%, rgba(255,225,180,.07) 55%, transparent);
  animation: scanDown 13s linear infinite;
}
@keyframes scanDown {
  from { top: -180px; }
  to   { top: 100%; }
}

/* ---------------------------------------------------------- 额外特效 */

/* 待机页同心涟漪 */
.idle-ripple {
  position: absolute; left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  pointer-events: none; z-index: 0;
}
.idle-ripple i {
  position: absolute; left: 50%; top: 50%;
  width: 360px; height: 360px; margin: -180px 0 0 -180px;
  border: 1px solid rgba(240,200,140,.3);
  border-radius: 50%;
  animation: rippleOut 7.2s ease-out infinite;
}
.idle-ripple i:nth-child(2) { animation-delay: 2.4s; }
.idle-ripple i:nth-child(3) { animation-delay: 4.8s; }
@keyframes rippleOut {
  0%   { transform: scale(.34); opacity: 0; }
  14%  { opacity: .75; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* 标题的呼吸光 */
.idle-title {
  animation: titleGlow 5.5s ease-in-out infinite;
}
@keyframes titleGlow {
  0%, 100% { filter: drop-shadow(0 6px 30px rgba(201,151,63,.34)); }
  50%      { filter: drop-shadow(0 6px 60px rgba(233,192,122,.6)); }
}

/* 签到卡片飞入 */
.si-card.just-in {
  animation: siFlyIn .82s cubic-bezier(.18,1.08,.3,1) both;
}
@keyframes siFlyIn {
  0% {
    opacity: 0;
    transform: translate(var(--fx, 0px), var(--fy, 320px)) scale(.26) rotate(var(--fr, -10deg));
    filter: brightness(2.2);
  }
  55% { opacity: 1; filter: brightness(1.5); }
  100% {
    opacity: 1;
    transform: none;
    filter: brightness(1);
  }
}
.si-card.fresh {
  box-shadow: 0 0 0 2px rgba(247,214,138,.85), 0 0 28px rgba(233,192,122,.7);
  animation: freshPulse 1.6s ease-out .7s;
}
@keyframes freshPulse {
  0%   { box-shadow: 0 0 0 2px rgba(247,214,138,.9), 0 0 34px rgba(233,192,122,.85); }
  100% { box-shadow: 0 0 0 0 rgba(247,214,138,0), 0 0 0 rgba(233,192,122,0); }
}

/* ---------------------------------------------------------- 弹幕抽奖 */
.pick-layer {
  position: absolute; inset: 0; z-index: 85;
  display: none; flex-direction: column; align-items: center;
  padding: 54px 60px 40px;
  background:
    radial-gradient(ellipse 80% 64% at 50% 30%, rgba(150,46,52,.97) 0%, rgba(96,28,34,.98) 38%, rgba(48,14,18,.99) 100%);
  backdrop-filter: blur(2px);
}
.pick-layer.on { display: flex; }

.pick-head {
  font-family: var(--serif); font-size: 44px; letter-spacing: .3em;
  color: var(--gold-hi);
  text-shadow: 0 0 40px rgba(233,192,122,.6);
}
.pick-hint {
  margin-top: 10px; font-size: 16px; letter-spacing: .18em;
  color: rgba(246,235,213,.55);
}

.pick-grid {
  margin-top: 28px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; width: 100%; max-width: 1560px;
  flex: 0 1 auto; overflow: visible; padding: 6px;
}
.pick-item {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px;
  border: 1px solid rgba(233,192,122,.16);
  background: rgba(255,255,255,.03);
  border-radius: 26px;
  font-size: 17px; color: rgba(246,235,213,.72);
  transition: all .18s;
  overflow: hidden;
}
.pick-item .pick-av { width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto; }
.pick-item span {
  flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pick-item em {
  font-style: normal; font-size: 11px; color: rgba(246,235,213,.3);
  flex: 0 0 auto; max-width: 64px; overflow: hidden; text-overflow: ellipsis;
}
/* 高亮用 outline 而不是 border-width —— 边框变粗会改变盒子尺寸，
   整排元素跟着重排，看起来就是「一动一动」 */
.pick-item.on {
  border-color: rgba(247,214,138,.95);
  outline: 3px solid rgba(247,214,138,.6);
  outline-offset: 1px;
  background: rgba(247,214,138,.22);
  color: #FFF8E8;
  box-shadow: 0 0 34px rgba(233,192,122,.6);
}
.pick-item.win {
  border-color: #FFF3D2;
  outline: 4px solid rgba(255,235,180,.8);
  outline-offset: 1px;
  background: rgba(247,214,138,.4);
  box-shadow: 0 0 60px rgba(255,225,160,.95);
}

.pick-result {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: none; flex-direction: column; align-items: center; gap: 18px;
  padding: 44px 70px;
  border: 2px solid rgba(247,214,138,.85);
  border-radius: 10px;
  background: radial-gradient(ellipse at 50% 24%, rgba(226,104,108,.99), rgba(160,52,58,1) 52%, rgba(108,34,40,1));
  box-shadow: 0 0 140px rgba(255,205,150,.6), inset 0 0 80px rgba(255,220,175,.3);
  z-index: 2;
}
.pick-result.on { display: flex; animation: prIn .55s cubic-bezier(.2,1.2,.3,1); }
@keyframes prIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.86); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* 结果出现时把后面的网格压暗 */
.pick-layer.result-on .pick-grid { opacity: .25; filter: blur(2px); }
.pick-layer.result-on .pick-head,
.pick-layer.result-on .pick-hint { opacity: .3; }
.pick-grid { transition: opacity .4s, filter .4s; }
.pick-head, .pick-hint { transition: opacity .4s; }
.pr-a { width: 86px; height: 86px; border-radius: 50%; border: 2px solid rgba(247,214,138,.8); overflow: hidden; }
.pr-a svg { width: 100%; height: 100%; }
.pr-name { font-family: var(--serif); font-size: 38px; color: var(--gold-hi); }
.pr-text {
  max-width: 520px; font-size: 17px; color: rgba(246,235,213,.7);
  border-left: 1px solid rgba(233,192,122,.28); padding-left: 22px;
}

/* 赛跑：冲线的小羊 */
.runner.finish {
  filter: drop-shadow(0 0 18px rgba(247,214,138,1));
  animation: finishPulse 1s ease-in-out infinite;
}
@keyframes finishPulse {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50%      { transform: translateY(-50%) scale(1.12); }
}

/* 底部流动光带，进一步提亮边缘 */
.bg-base::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%;
  background: linear-gradient(0deg, rgba(255,170,120,.16), transparent);
  pointer-events: none;
}

/* 计时器隐藏态 */
.timer.hidden { opacity: 0; visibility: hidden; }

/* 右上角「本局剩余」做得更明确一些 */
.timer {
  display: flex; align-items: baseline; gap: 4px;
}
.timer em {
  font-style: normal; font-size: 13px; letter-spacing: .18em;
  color: rgba(246,235,213,.55);
}

/* 自备毛笔字体：把 ttf/otf 放到 public/fonts/brush-*.ttf 就会自动用上 */
@font-face {
  font-family: 'BrushCN';
  src: url('/fonts/brush-1.ttf') format('truetype'),
       url('/fonts/brush-2.otf') format('opentype');
  font-display: swap;
}

/* ---------------------------------------------------------- AI 猜拳 */
.rps-stage {
  flex: 1 1 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 34px;
}
.rps-bot-wrap { text-align: center; }
.rps-bot {
  font-size: 140px; line-height: 1;
  filter: drop-shadow(0 0 40px rgba(120,190,255,.55));
  animation: botFloat 3.4s ease-in-out infinite;
}
@keyframes botFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.rps-bot-name {
  margin-top: 14px;
  font-family: var(--serif); font-size: 34px; letter-spacing: .2em;
  color: var(--gold-hi);
  text-shadow: 0 0 30px rgba(233,192,122,.6);
}
.rps-bot-say {
  margin-top: 10px; font-size: 18px;
  color: rgba(246,235,213,.6); letter-spacing: .08em;
}

.rps-score { display: flex; gap: 46px; }
.rps-cell { text-align: center; }
.rps-cell b {
  display: block; font-family: var(--serif); font-size: 76px; line-height: 1;
}
.rps-cell span {
  display: block; margin-top: 8px; font-size: 15px;
  letter-spacing: .2em; color: rgba(246,235,213,.5);
}
.rps-cell.win b { color: #7BE0A6; text-shadow: 0 0 30px rgba(123,224,166,.5); }
.rps-cell.draw b { color: var(--gold); }
.rps-cell.lose b { color: #E88C82; text-shadow: 0 0 30px rgba(232,140,130,.45); }

.rps-hint { font-size: 16px; color: rgba(246,235,213,.4); letter-spacing: .14em; }

/* ---------------------------------------------------------- 签到聚光 */
.spot-layer {
  position: absolute; inset: 0; z-index: 62;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.spot {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  animation: spotIn .55s cubic-bezier(.2,1.15,.3,1) both;
}
.spot-av {
  width: 230px; height: 230px; border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(247,214,138,.85);
  box-shadow: 0 0 90px rgba(233,192,122,.75), 0 0 200px rgba(255,190,130,.35);
  background: radial-gradient(circle, rgba(255,225,180,.2), transparent 70%);
}
.spot-av svg { width: 100%; height: 100%; display: block; }
.spot b {
  font-family: var(--serif); font-size: 68px; font-weight: 400;
  letter-spacing: .1em;
  background: linear-gradient(180deg,#FFF6E0,#E6BE79 62%,#B4823B);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgba(233,192,122,.6));
}
.spot span { font-size: 22px; letter-spacing: .2em; color: rgba(246,235,213,.6); }
.spot.out { animation: spotOut .5s ease-in forwards; }

@keyframes spotIn {
  from { opacity: 0; transform: scale(.5); }
  60%  { opacity: 1; transform: scale(1.06); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes spotOut {
  to { opacity: 0; transform: scale(.62) translateY(60px); }
}
