/* 分牌覆盖层：暗色遮罩盖住下半台面，居中分牌操作（对照官方分牌界面） */
.splitview-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 16px calc(20px + env(safe-area-inset-bottom));
  background: linear-gradient(
    180deg,
    rgba(4, 8, 6, 0.35) 0%,
    rgba(4, 8, 6, 0.62) 34%,
    rgba(4, 8, 6, 0.86) 100%
  );
  backdrop-filter: blur(2px);
  animation: splitFade 0.22s ease both;
}
@keyframes splitFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 倒计时条 */
.splitview__timer {
  width: 190px;
  height: 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.splitview__timer-bar {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #36d27a, #8ff0b0);
  box-shadow: 0 0 8px rgba(80, 230, 140, 0.7);
  transition: width 0.25s linear;
}

/* 倍数选择 */
.splitview__mults {
  display: flex;
  gap: 14px;
}
.splitview__mult {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: radial-gradient(circle at 50% 32%, #3a4660, #232c40 60%, #161c2b);
  color: #cfd8ea;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
  transition: transform 0.1s ease;
}
.splitview__mult:active {
  transform: scale(0.94);
}
.splitview__mult.is-on {
  border-color: #ffd968;
  background: radial-gradient(circle at 50% 30%, #fff3cd, #f0c14e 55%, #b27d1b);
  color: #4a3208;
  box-shadow: 0 0 14px rgba(255, 210, 110, 0.7), 0 3px 8px rgba(0, 0, 0, 0.45);
}
.splitview__mult-main {
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
}
.splitview__mult-sub {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.85;
}

/* 头/尾墩牌型名 */
.splitview__dun-label {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #ffe9a8;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* 一墩两张牌 */
.splitview__dun {
  display: flex;
  gap: 12px;
}
.splitview__card {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 6px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.splitview__card.is-sel {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(255, 200, 80, 0.55);
}
.splitview__card.is-sel :is(.pcard) {
  outline: 2px solid #ffd968;
  outline-offset: 1px;
}

/* 操作区：丢 / 确定分牌 / 倍数 */
.splitview__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 2px 0;
}
.splitview__rbtn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.4);
  transition: transform 0.1s ease;
}
.splitview__rbtn:active {
  transform: scale(0.94);
}
.splitview__rbtn-main {
  font-size: 20px;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.splitview__rbtn-sub {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.9;
}
.splitview__rbtn--fold {
  background: radial-gradient(circle at 50% 32%, #ef8b8b, #d23a3a 56%, #931d1d);
}
.splitview__rbtn--mult {
  background: radial-gradient(circle at 50% 32%, #f7b35a, #e07a1e 58%, #b4540f);
  cursor: default;
}

/* 确定分牌：中央大按钮 */
.splitview__confirm {
  min-width: 130px;
  padding: 14px 22px;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #053445;
  background: radial-gradient(circle at 50% 28%, #aef0ff, #44c2e6 52%, #1b86b4);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: transform 0.1s ease;
}
.splitview__confirm:active {
  transform: translateY(1px) scale(0.98);
}
