.actionbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(132px + env(safe-area-inset-bottom));
  z-index: 8;
  padding: 0 16px;
  background: none;
  pointer-events: none;
}
.actionbar > * {
  pointer-events: auto;
}

/* 第 1 轮阶段提示「必发招｜可休」 */
.actionbar__phase {
  width: fit-content;
  margin: 0 auto 8px;
  padding: 3px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffe6a3;
  background: rgba(12, 14, 26, 0.62);
  border: 1px solid rgba(255, 214, 130, 0.4);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* ===== 下注面板 ===== */
.betpanel {
  max-width: 380px;
  margin: 0 auto 7px;
  padding: 6px 10px 7px;
  background: rgba(12, 14, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  backdrop-filter: blur(6px);
}
.betpanel--off {
  opacity: 0.42;
}

.betpanel__chips {
  display: flex;
  gap: 7px;
  margin-bottom: 7px;
}
.chipbtn {
  flex: 1;
  padding: 5px 0;
  font-size: 11px;
  font-weight: 800;
  color: #2a1c08;
  background: linear-gradient(180deg, #f0dba0, #d8b85e 58%, #b58f30);
  border: none;
  border-radius: 9px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), 0 2px 5px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.08s ease;
}
.chipbtn:active {
  transform: translateY(1px);
  filter: brightness(1.08);
}
.chipbtn:disabled {
  cursor: not-allowed;
}

/* 滑条行 */
.betpanel__slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stepper {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(244, 210, 122, 0.35);
  background: rgba(30, 26, 16, 0.8);
  color: #f4d27a;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.stepper:active {
  background: rgba(50, 42, 22, 0.9);
}
.stepper:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.slider-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff5d6, #e6bd52 62%, #a87c1c);
  box-shadow: 0 0 0 4px rgba(244, 210, 122, 0.22), 0 2px 4px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff5d6, #e6bd52 62%, #a87c1c);
  box-shadow: 0 0 0 4px rgba(244, 210, 122, 0.22), 0 2px 4px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
.slider:disabled {
  opacity: 0.5;
}
.slider__bubble {
  position: absolute;
  top: -26px;
  transform: translateX(-50%);
  min-width: 30px;
  padding: 2px 7px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  color: #2a1c08;
  background: linear-gradient(180deg, #ffe9a8, #f0c45a);
  border-radius: 7px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.slider__bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #f0c45a;
}

/* ===== 立体大圆操作按钮（参考官方）===== */
.actionbar__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 380px;
  margin: 0 auto;
}

.pbtn {
  position: relative;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  /* 外圈金属环 + 立体投影 */
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.55),
    inset 0 -6px 10px rgba(0, 0, 0, 0.42),
    0 0 0 2px rgba(0, 0, 0, 0.22),
    0 0 0 4px rgba(255, 255, 255, 0.14),
    0 6px 14px rgba(0, 0, 0, 0.6);
  transition: transform 0.08s ease, filter 0.08s ease;
}
/* 顶部玻璃高光 */
.pbtn::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 10%;
  right: 10%;
  height: 42%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.pbtn:active {
  transform: translateY(2px) scale(0.96);
  filter: brightness(1.08);
}

.pbtn__main {
  font-size: 21px;
  font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.pbtn__sub {
  font-size: 10px;
  font-weight: 700;
  opacity: 0.95;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.pbtn--fold {
  color: #2a2f44;
  background: radial-gradient(circle at 50% 32%, #cdd2e4, #9aa1bd 56%, #6b7191);
}
.pbtn--fold .pbtn__main,
.pbtn--fold .pbtn__sub {
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.45);
}
.pbtn--rest {
  background: radial-gradient(circle at 50% 32%, #5fb4ef, #2f7fd1 56%, #1a539a);
}
.pbtn--call {
  background: radial-gradient(circle at 50% 32%, #6fd698, #2aa75c 56%, #136636);
}
.pbtn--knock {
  background: radial-gradient(circle at 50% 32%, #ef8b8b, #d23a3a 56%, #931d1d);
}

/* 大按钮容器 + 上滑下注轨道 */
.raise-ctrl {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.raise-track {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 12;
}
.raise-track__top {
  margin-bottom: 6px;
  padding: 6px 12px;
  text-align: center;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffe7a6, #e3aa3a);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}
.raise-track__top--max {
  background: linear-gradient(180deg, #ff8f6e, #d23a3a);
}
.raise-track__amt {
  display: block;
  font-size: 19px;
  font-weight: 900;
  color: #3a2708;
  line-height: 1.1;
}
.raise-track__top--max .raise-track__amt {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.raise-track__hint {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  font-weight: 700;
  color: #6b4a10;
}
.raise-track__top--max .raise-track__hint {
  color: rgba(255, 255, 255, 0.9);
}
.raise-track__bar {
  position: relative;
  width: 14px;
  height: 170px;
  border-radius: 8px;
  background: rgba(8, 12, 10, 0.78);
  box-shadow: inset 0 0 0 1px rgba(244, 210, 122, 0.45), inset 0 2px 6px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.raise-track__fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, #fff3c8, #e3aa3a);
  border-radius: 8px;
}
.raise-track__fill--max {
  background: linear-gradient(180deg, #ff8f6e, #d23a3a);
}

/* 主操作：大（更大更亮）*/
.pbtn--raise {
  touch-action: none;
  width: 72px;
  height: 72px;
  color: #3a2708;
  background: radial-gradient(circle at 50% 30%, #fff3cd, #f0c14e 55%, #b27d1b);
  box-shadow:
    inset 0 2px 3px rgba(255, 252, 235, 0.85),
    inset 0 -6px 10px rgba(120, 80, 0, 0.4),
    0 0 0 2px rgba(255, 224, 150, 0.7),
    0 0 18px rgba(240, 193, 78, 0.55),
    0 6px 14px rgba(0, 0, 0, 0.6);
}
.pbtn--raise .pbtn__main {
  font-size: 25px;
  text-shadow: 0 1px 1px rgba(255, 244, 210, 0.7);
}
/* 轮到本人时主操作呼吸光圈，吸引注意 */
.pbtn--raise:not(:disabled) {
  animation: raisePulse 1.5s ease-in-out infinite;
}
@keyframes raisePulse {
  0%, 100% {
    box-shadow:
      inset 0 2px 3px rgba(255, 252, 235, 0.85),
      inset 0 -6px 10px rgba(120, 80, 0, 0.4),
      0 0 0 2px rgba(255, 224, 150, 0.7),
      0 0 14px rgba(240, 193, 78, 0.45),
      0 6px 14px rgba(0, 0, 0, 0.6);
  }
  50% {
    box-shadow:
      inset 0 2px 3px rgba(255, 252, 235, 0.85),
      inset 0 -6px 10px rgba(120, 80, 0, 0.4),
      0 0 0 2px rgba(255, 235, 180, 0.95),
      0 0 26px rgba(255, 210, 90, 0.85),
      0 6px 14px rgba(0, 0, 0, 0.6);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pbtn--raise:not(:disabled) {
    animation: none;
  }
}

.pbtn:disabled {
  cursor: not-allowed;
  filter: grayscale(0.85) brightness(0.55);
}
.pbtn:disabled::before {
  opacity: 0.15;
}
