/* 圣诞过桥 — 右侧栏小框（黑白灰外壳，画布内保留原作配色） */
.ls-widget-santa-bridge .ls-widget-body {
  padding: 0;
}

.ls-santa-bridge-header {
  gap: 8px;
}

.ls-santa-bridge-mycredit {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  padding: 2px 8px;
  line-height: 1.4;
  white-space: nowrap;
}

.ls-santa-bridge-wrap {
  padding: 0 !important;
}

.ls-santa-bridge {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: 0;
  background: #111;
  cursor: grab;
  user-select: none;
  touch-action: none;
  color: #fff;
}

.ls-santa-bridge:active {
  cursor: grabbing;
}

.ls-santa-bridge canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ls-santa-bridge-ui {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 2;
}

.ls-santa-bridge-score {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  text-shadow: 1px 1px 0 #07133a, 2px 2px 0 #07133a;
  line-height: 1;
}

.ls-santa-bridge-intro,
.ls-santa-bridge-perfect {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: 86%;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  transition: opacity 0.6s;
}

.ls-santa-bridge-perfect {
  top: 28%;
  opacity: 0;
  font-weight: 700;
  font-size: 14px;
}

.ls-santa-bridge-countdown {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%) scale(0.85);
  z-index: 4;
  min-width: 72px;
  text-align: center;
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 0 #111, 0 4px 12px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.ls-santa-bridge-countdown.is-show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.ls-santa-bridge-countdown.is-go {
  font-size: 42px;
  letter-spacing: 0.08em;
}

.ls-santa-bridge-restart {
  position: absolute;
  left: 50%;
  top: 55%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 0;
  background: #111;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: none;
  pointer-events: auto;
  box-shadow: 0 0 0 2px #fff;
}

.ls-santa-bridge-restart:hover {
  background: #000;
}

.ls-santa-bridge-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  z-index: 3;
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.ls-santa-bridge-flake {
  position: absolute;
  color: #fff;
  top: -10%;
  z-index: 1;
  pointer-events: none;
  animation-name: ls-santa-fall, ls-santa-shake;
  animation-duration: 10s, 3s;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
}

.ls-santa-bridge-meta {
  border-top: 1px solid #e5e5e5;
  background: #fff;
  color: #111;
  padding: 10px 12px 12px;
  border-radius: 0 0 12px 12px;
}

.ls-santa-bridge-cost {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.4;
}

.ls-santa-bridge-rank-hd {
  font-size: 13px;
  font-weight: 700;
  color: #111;
  margin-bottom: 6px;
}

.ls-santa-bridge-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 168px;
  overflow-y: auto;
}

.ls-santa-bridge-rank-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 12px;
  color: #333;
}

.ls-santa-bridge-rank-list li:last-child {
  border-bottom: 0;
}

.ls-santa-bridge-rank-no {
  width: 18px;
  flex: 0 0 18px;
  text-align: center;
  font-weight: 700;
  color: #999;
}

.ls-santa-bridge-rank-list li.is-top .ls-santa-bridge-rank-no {
  color: #111;
}

.ls-santa-bridge-rank-av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
  flex: 0 0 22px;
}

.ls-santa-bridge-rank-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #222;
}

.ls-santa-bridge-rank-score {
  flex: 0 0 auto;
  font-weight: 700;
  color: #111;
}

.ls-santa-bridge-rank-empty {
  font-size: 12px;
  color: #999;
  padding: 6px 0;
}

@keyframes ls-santa-fall {
  0% { top: -10%; }
  100% { top: 110%; }
}

@keyframes ls-santa-shake {
  0% { transform: translateX(0); }
  50% { transform: translateX(24px); }
  100% { transform: translateX(0); }
}
