/* 多彩赛事大屏渲染（幸运积分池 / 赛事宾果）
   视觉规格：template-lab/games-lucky-pool 与 template-lab/games-bingo（READY_FOR_INTEGRATION）。
   纯 CSS/SVG 渐变氛围，无图片无滤镜，低端电视友好。 */

/* —— 共享基础层 —— */
.game-web-fullscreen { position:fixed; z-index:50; right:18px; top:12px; padding:8px 16px; color:#edcf94; background:#07121ddd; border:1px solid #887044; border-radius:8px; cursor:pointer; opacity:0.35; }
.game-web-fullscreen:hover,.game-web-fullscreen:focus-visible { opacity:1; }
.game-web-fullscreen[hidden] { display:none; }
.game-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f4f6ff;
  box-sizing: border-box;
  overflow: hidden;
}

.game-stage {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.game-screen-lucky-pool {
  background:
    radial-gradient(980px 520px at 50% -10%, rgba(255, 176, 66, 0.16), transparent 62%),
    radial-gradient(720px 460px at 10% 32%, rgba(206, 92, 42, 0.10), transparent 65%),
    radial-gradient(720px 460px at 90% 28%, rgba(206, 92, 42, 0.10), transparent 65%),
    radial-gradient(1300px 720px at 50% 118%, rgba(255, 150, 60, 0.08), transparent 60%),
    linear-gradient(180deg, #0d0805 0%, #130d07 48%, #080503 100%);
}

.game-screen-bingo {
  background:
    radial-gradient(1000px 520px at 50% -12%, rgba(232, 180, 90, 0.12), transparent 62%),
    radial-gradient(760px 480px at 6% 40%, rgba(64, 110, 200, 0.12), transparent 66%),
    radial-gradient(760px 480px at 94% 36%, rgba(64, 110, 200, 0.10), transparent 66%),
    linear-gradient(180deg, #070b15 0%, #0a1120 52%, #05080f 100%);
}

.game-eyebrow {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.35em;
  color: #c8a86a;
  text-transform: uppercase;
}

/* —— 幸运积分池 · 常态 —— */
.glp-stage {
  position: relative;
  gap: 4.2vh;
  padding: 5vh 5vw 4vh;
}

.glp-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 196, 96, 0.10), transparent 58%);
  clip-path: polygon(34% 0, 66% 0, 84% 62%, 16% 62%);
}

.glp-stage > * {
  position: relative;
}

.glp-pill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 10px 28px;
  border: 1px solid rgba(232, 180, 90, 0.5);
  border-radius: 999px;
  background: rgba(24, 16, 8, 0.6);
  box-shadow: 0 0 28px rgba(232, 160, 60, 0.12);
  color: #e8c778;
  font-size: 16px;
  letter-spacing: 0.32em;
  white-space: nowrap;
}

.glp-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd968;
  box-shadow: 0 0 10px rgba(255, 217, 104, 0.9);
  animation: glp-dot 2.4s ease-in-out infinite;
}

@keyframes glp-dot {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.glp-pool {
  text-align: center;
}

.glp-pool small {
  display: block;
  margin-bottom: 1.2vh;
  font-size: 17px;
  letter-spacing: 0.42em;
  color: #c8a86a;
}

.glp-pool strong {
  display: block;
  font-size: clamp(110px, 16.5vh, 198px);
  line-height: 1.06;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #ffd968;
  text-shadow: 0 0 34px rgba(255, 190, 70, 0.38), 0 0 110px rgba(255, 170, 50, 0.22), 0 6px 26px rgba(0, 0, 0, 0.55);
  animation: glp-hero-glow 6s ease-in-out infinite;
}

@keyframes glp-hero-glow {
  0%, 100% { text-shadow: 0 0 34px rgba(255, 190, 70, 0.38), 0 0 110px rgba(255, 170, 50, 0.22), 0 6px 26px rgba(0, 0, 0, 0.55); }
  50% { text-shadow: 0 0 48px rgba(255, 196, 80, 0.55), 0 0 140px rgba(255, 176, 56, 0.3), 0 6px 26px rgba(0, 0, 0, 0.55); }
}

.glp-pool span {
  display: block;
  margin-top: 1.4vh;
  font-size: 15px;
  letter-spacing: 0.55em;
  color: #8d7648;
}

.glp-awards {
  width: 100%;
  max-width: 1680px;
}

.glp-awards-head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  margin-bottom: 2.2vh;
}

.glp-awards-head b {
  font-size: 19px;
  letter-spacing: 0.3em;
  color: #e8c778;
}

.glp-awards-head small {
  font-size: 13px;
  color: #8d7648;
  letter-spacing: 0.1em;
}

.glp-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 14px;
}

.glp-tier {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 20px 15px;
  border: 1px solid rgba(232, 180, 90, 0.22);
  border-top-color: rgba(255, 214, 130, 0.45);
  border-radius: 16px;
  background: linear-gradient(172deg, rgba(40, 29, 15, 0.85), rgba(19, 13, 7, 0.88));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.glp-tier b {
  font-size: 20px;
  color: #f4e6c8;
}

.glp-tier span {
  font-size: 13px;
  color: #a68c5a;
}

.glp-tier strong {
  margin-top: 4px;
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #ffd968;
  text-shadow: 0 0 18px rgba(255, 190, 70, 0.3);
}

.glp-tier strong small {
  margin-left: 3px;
  font-size: 13px;
  font-weight: 400;
  color: #a68c5a;
}

.glp-no-tiers {
  margin: 0;
  font-size: 16px;
  color: #8d7648;
}

.glp-stage .game-foot {
  color: #9c8a68;
  font-size: 16px;
  letter-spacing: 0.08em;
}

/* —— 幸运积分池 · 命中高光（4 秒接管） —— */
.glp-stage.is-moment {
  gap: 4vh;
  text-align: center;
}

.glp-moment-card {
  padding: 4.5vh 6vw;
  border: 1px solid rgba(255, 214, 130, 0.5);
  border-radius: 28px;
  background: linear-gradient(165deg, rgba(64, 44, 16, 0.85), rgba(24, 16, 8, 0.9));
  box-shadow: 0 0 60px rgba(255, 190, 70, 0.18), 0 24px 80px rgba(0, 0, 0, 0.5);
}

.glp-moment-card small {
  display: block;
  font-size: 20px;
  letter-spacing: 0.12em;
  color: #d8c08a;
}

.glp-moment-card strong {
  display: block;
  font-size: clamp(96px, 13vh, 150px);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: #ffd968;
  text-shadow: 0 0 44px rgba(255, 190, 70, 0.5);
}

.glp-moment-card span {
  font-size: 17px;
  color: #b3a78e;
}

.glp-moment-pool {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.1em;
  color: #c8a86a;
}

/* —— 赛事宾果 · 常态 —— */
.gbg-stage {
  gap: 3.4vh;
  padding: 4.5vh 4vw 3.5vh;
}

.gbg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1680px;
}

.gbg-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.gbg-brand-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(232, 180, 90, 0.55);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, rgba(255, 214, 130, 0.22), rgba(20, 14, 6, 0.7));
  box-shadow: 0 0 22px rgba(232, 180, 90, 0.22);
  color: #ffd968;
  font-size: 30px;
}

.gbg-brand h1 {
  margin: 0;
  font-size: 40px;
  letter-spacing: 0.14em;
  color: #f4e6c8;
  text-shadow: 0 0 24px rgba(255, 200, 90, 0.25);
}

.gbg-brand p {
  margin: 2px 0 0;
  font-size: 13px;
  letter-spacing: 0.42em;
  color: #a68c5a;
}

.gbg-head-progress {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 24px;
  border: 1px solid rgba(232, 180, 90, 0.3);
  border-radius: 14px;
  background: rgba(14, 18, 30, 0.72);
}

.gbg-head-progress small {
  font-size: 14px;
  letter-spacing: 0.2em;
  color: #a68c5a;
}

.gbg-head-progress strong {
  font-size: 36px;
  font-variant-numeric: tabular-nums;
  color: #ffd968;
}

.gbg-head-progress strong span {
  font-size: 18px;
  color: #a68c5a;
}

.gbg-main {
  display: grid;
  grid-template-columns: auto minmax(300px, 360px);
  gap: 3.4vw;
  align-items: start;
  justify-content: center;
  width: 100%;
  max-width: 1680px;
}

.gbg-board {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.6vh;
}

.gbg-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(62vh, 640px);
  aspect-ratio: 1 / 1;
}

.gbg-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.gbg-line-glow {
  stroke: rgba(255, 200, 90, 0.28);
  stroke-width: 12;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.gbg-line-core {
  stroke: #ffd968;
  stroke-width: 3.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.gbg-cell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 10px;
  padding: 12px;
  border: 1px solid rgba(120, 150, 220, 0.18);
  border-radius: 18px;
  background: linear-gradient(168deg, rgba(20, 28, 48, 0.82), rgba(10, 14, 26, 0.88));
  text-align: center;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.gbg-cell-index {
  position: absolute;
  top: 10px;
  left: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(200, 168, 106, 0.55);
  font-variant-numeric: tabular-nums;
}

.gbg-cell i {
  font-style: normal;
  font-size: 34px;
  line-height: 1;
}

.gbg-cell b {
  font-size: 21px;
  line-height: 1.3;
  color: #dfe6f5;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gbg-cell-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #7d8cae;
}

.gbg-cell-state em {
  font-style: normal;
}

.gbg-cell.is-done {
  border-color: rgba(255, 214, 130, 0.75);
  background: linear-gradient(168deg, rgba(64, 46, 18, 0.9), rgba(24, 17, 8, 0.92));
  box-shadow: 0 0 26px rgba(255, 200, 90, 0.16), inset 0 0 26px rgba(255, 200, 90, 0.08);
}

.gbg-cell.is-done .gbg-cell-index {
  color: #e8b45a;
}

.gbg-cell.is-done b {
  color: #ffe9b3;
}

.gbg-cell.is-done .gbg-cell-state {
  color: #e8c778;
}

.gbg-cell.is-done .gbg-cell-state em {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #e8b45a;
  color: #241806;
  font-size: 12px;
  font-weight: 700;
}

.gbg-cell.is-line {
  box-shadow: 0 0 36px rgba(255, 200, 90, 0.3), inset 0 0 30px rgba(255, 200, 90, 0.12);
}

.gbg-banner {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #ffd968;
  text-shadow: 0 0 34px rgba(255, 200, 90, 0.45);
  animation: gbg-banner-pulse 2s ease-in-out infinite;
}

.gbg-banner i {
  font-style: normal;
  font-size: 30px;
  color: #e8b45a;
}

@keyframes gbg-banner-pulse {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 1; }
}

/* —— 赛事宾果 · 右侧栏 —— */
.gbg-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gbg-side-card {
  padding: 18px 22px;
  border: 1px solid rgba(120, 150, 220, 0.16);
  border-radius: 16px;
  background: linear-gradient(170deg, rgba(18, 24, 42, 0.78), rgba(9, 12, 22, 0.85));
}

.gbg-side-card h2 {
  margin: 0 0 12px;
  font-size: 15px;
  letter-spacing: 0.24em;
  color: #c8a86a;
}

.gbg-side-progress {
  display: flex;
  gap: 36px;
}

.gbg-side-progress small {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: #8fa0c8;
}

.gbg-side-progress strong {
  font-size: 44px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: #ffd968;
  text-shadow: 0 0 20px rgba(255, 200, 90, 0.3);
}

.gbg-side-progress strong span {
  font-size: 20px;
  color: #a68c5a;
}

.gbg-rules {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #aeb8d8;
}

.gbg-rules li::marker {
  color: #e8b45a;
  font-weight: 700;
}

.gbg-reward {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
}

.gbg-reward + .gbg-reward {
  border-top: 1px solid rgba(120, 150, 220, 0.12);
}

.gbg-reward small {
  flex: none;
  font-size: 13px;
  color: #8fa0c8;
}

.gbg-reward b {
  font-size: 16px;
  color: #ffd968;
  text-align: right;
  overflow-wrap: anywhere;
}

/* —— 赛事宾果 · 最近点亮流水 —— */
.gbg-events {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1680px;
  padding: 12px 20px;
  border: 1px solid rgba(120, 150, 220, 0.14);
  border-radius: 14px;
  background: rgba(10, 14, 26, 0.72);
  font-size: 14px;
}

.gbg-events-title {
  flex: none;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: #a68c5a;
}

.gbg-event {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 214, 130, 0.07);
  color: #aeb8d8;
}

.gbg-event time {
  color: #8fa0c8;
  font-variant-numeric: tabular-nums;
}

.gbg-event b {
  color: #e8c778;
  font-weight: 600;
}

/* —— 赛事宾果 · 高光（4 秒接管） —— */
.gbg-stage.is-moment {
  gap: 4vh;
  text-align: center;
}

.gbg-moment-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 5vh 6vw;
  border: 1px solid rgba(255, 214, 130, 0.55);
  border-radius: 28px;
  background: linear-gradient(165deg, rgba(52, 38, 14, 0.9), rgba(14, 16, 28, 0.92));
  box-shadow: 0 0 60px rgba(255, 200, 90, 0.2), 0 24px 80px rgba(0, 0, 0, 0.5);
}

.gbg-moment-cell i {
  font-style: normal;
  font-size: 84px;
  line-height: 1;
}

.gbg-moment-cell b {
  font-size: 52px;
  color: #ffe9b3;
}

.gbg-moment-cell small {
  font-size: 18px;
  color: #c8a86a;
}

.gbg-moment-progress {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.15em;
  color: #8fa0c8;
}

.gbg-moment-banner {
  font-size: 88px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #ffd968;
  text-shadow: 0 0 50px rgba(255, 200, 90, 0.5);
}

.gbg-moment-reward {
  margin: 0;
  font-size: 28px;
  color: #e8d9ae;
}

/* —— 较矮屏幕收缩 —— */
@media (max-height: 820px) {
  .glp-stage { gap: 3vh; padding: 3.5vh 4vw 3vh; }
  .glp-pool strong { font-size: clamp(88px, 15vh, 150px); }
  .glp-tier { padding: 12px 16px 11px; }
  .glp-tier strong { font-size: 24px; }
  .gbg-stage { gap: 2.4vh; padding: 3vh 3.5vw 2.5vh; }
  .gbg-grid { width: min(58vh, 560px); }
  .gbg-cell { margin: 8px; }
  .gbg-cell b { font-size: 18px; }
  .gbg-brand h1 { font-size: 32px; }
  .gbg-banner { font-size: 34px; }
  .gbg-side-progress strong { font-size: 36px; }
}

/* —— 低端电视：reduced-motion 静止等价 —— */
@media (prefers-reduced-motion: reduce) {
  .glp-pill i, .glp-pool strong, .gbg-banner { animation: none; }
  .gbg-cell { transition: none; }
}

/* 平时角标：计时画面右下角逐玩法进度 */
#games-badge {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

#games-badge .games-badge-item {
  background: rgba(8, 10, 20, 0.82);
  border: 1px solid rgba(255, 214, 120, 0.35);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 15px;
  color: #f4f6ff;
  display: flex;
  gap: 8px;
  align-items: baseline;
}

#games-badge .games-badge-item b {
  color: #ffd968;
  font-weight: 600;
}
