/* 快捷操作浮层：脱离桌布/提示框，固定浮在手牌上方 */
.quick-action-layer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(84px + var(--safe-bottom));
  z-index: 115;
  display: flex;
  justify-content: center;
  padding: 0 12px;
  pointer-events: none;
}

.quick-action-layer.is-claim {
  justify-content: flex-end;
  padding-right: 2%;
}

.quick-action-layer > * {
  pointer-events: auto;
}

#app.force-landscape .quick-action-layer {
  bottom: 62px;
}

@media (orientation: landscape) and (max-height: 560px) {
  .quick-action-layer {
    bottom: 62px;
  }
}

/* 定缺快捷条：位于自己手牌正上方，不遮挡手牌 */
.void-quick-pick {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  min-height: 66px;
  padding: 5px 11px;
  border-radius: 18px;
  border: 1px solid rgba(231, 209, 154, 0.32);
  background:
    radial-gradient(circle at 20% 0%, rgba(198, 162, 92, 0.14), transparent 60%),
    rgba(5, 27, 20, 0.94);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
  animation: void-quick-in 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes void-quick-in {
  from {
    opacity: 0;
    transform: translateY(7px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.void-quick-label {
  flex: 0 0 auto;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(246, 237, 219, 0.48);
}

.void-quick-options {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.void-quick-option {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 56px;
  height: 56px;
  min-width: 56px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(231, 209, 154, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(246, 237, 219, 0.85);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.025),
    0 3px 8px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.14s ease,
    border-color 0.14s ease,
    background 0.14s ease;
}

.void-quick-option:hover {
  transform: translateY(-1px);
  border-color: rgba(231, 209, 154, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.void-quick-option b {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
}

.void-quick-option small {
  font-family: var(--font-num);
  font-size: 8px;
  color: rgba(246, 237, 219, 0.46);
}

.void-quick-option.suit-0 b {
  color: #f0b0a4;
}
.void-quick-option.suit-1 b {
  color: #a9d6b8;
}
.void-quick-option.suit-2 b {
  color: #a9c6e4;
}

.void-quick-option.suit-0 {
  background: rgba(183, 66, 52, 0.1);
}
.void-quick-option.suit-1 {
  background: rgba(47, 118, 96, 0.1);
}
.void-quick-option.suit-2 {
  background: rgba(43, 93, 134, 0.1);
}

.void-quick-option.is-recommended {
  border-color: rgba(231, 209, 154, 0.68);
  box-shadow:
    inset 0 0 0 3px rgba(231, 209, 154, 0.08),
    0 0 16px rgba(198, 162, 92, 0.16);
}

.void-quick-timer {
  flex: 0 0 auto;
  min-width: 29px;
  text-align: center;
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 700;
  color: var(--gold-light);
}

#app.force-landscape .void-quick-pick {
  min-height: 50px;
  padding: 3px 8px;
  gap: 7px;
}

#app.force-landscape .void-quick-option {
  width: 46px;
  height: 46px;
  min-width: 46px;
}

#app.force-landscape .void-quick-option b {
  font-size: 17px;
}

#app.force-landscape .void-quick-option small {
  font-size: 7px;
}

#app.force-landscape .void-quick-label {
  font-size: 7px;
}

#app.force-landscape .void-quick-timer {
  font-size: 8px;
}

@media (max-width: 360px) {
  .void-quick-option {
    width: 46px;
    height: 46px;
    min-width: 46px;
  }

  .void-quick-option b {
    font-size: 17px;
  }

  .void-quick-pick {
    gap: 6px;
    padding: 4px 8px;
  }
}

/* 定缺：点击即选，不出现二次确认 */
.void-picker-layer {
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 16px 20px;
  background: rgba(3, 14, 10, 0.38);
}

.void-picker {
  width: min(560px, 92%);
  padding: 20px 22px 16px;
  border-radius: 22px;
  border: 1px solid rgba(231, 209, 154, 0.28);
  background:
    radial-gradient(circle at 15% 0%, rgba(198, 162, 92, 0.13), transparent 38%),
    linear-gradient(150deg, rgba(11, 42, 33, 0.98), rgba(5, 24, 18, 0.99));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: var(--paper);
  text-align: center;
  pointer-events: auto;
}

.void-picker h2 {
  margin: 5px 0 4px;
  font-family: var(--font-serif);
  font-size: clamp(25px, 3.4vw, 34px);
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.06em;
}

.void-picker > p {
  margin: 0 auto;
  max-width: 420px;
  font-size: 10px;
  line-height: 1.7;
  color: rgba(246, 237, 219, 0.6);
}

.void-picker-options {
  display: flex;
  gap: 10px;
  margin: 16px 0 10px;
}

.void-pick-option {
  position: relative;
  flex: 1;
  min-height: 116px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 8px;
  border-radius: 16px;
  border: 1px solid rgba(231, 209, 154, 0.2);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(246, 237, 219, 0.86);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.void-pick-option:hover {
  transform: translateY(-2px);
  border-color: rgba(231, 209, 154, 0.55);
  background: rgba(255, 255, 255, 0.07);
}

.void-pick-option:active {
  transform: translateY(0) scale(0.985);
}

.void-pick-suit {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
}

.void-pick-count {
  font-family: var(--font-num);
  font-size: 11px;
  color: rgba(246, 237, 219, 0.58);
}

.void-pick-option.suit-0 .void-pick-suit {
  color: #f0b0a4;
}
.void-pick-option.suit-1 .void-pick-suit {
  color: #a9d6b8;
}
.void-pick-option.suit-2 .void-pick-suit {
  color: #a9c6e4;
}

.void-pick-option.suit-0 {
  border-color: rgba(183, 66, 52, 0.28);
  background: rgba(183, 66, 52, 0.08);
}
.void-pick-option.suit-1 {
  border-color: rgba(47, 118, 96, 0.28);
  background: rgba(47, 118, 96, 0.08);
}
.void-pick-option.suit-2 {
  border-color: rgba(43, 93, 134, 0.28);
  background: rgba(43, 93, 134, 0.08);
}

.void-pick-option.is-recommended {
  border-color: rgba(231, 209, 154, 0.68);
  box-shadow: inset 0 0 0 1px rgba(231, 209, 154, 0.12);
}

.void-pick-badge {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--gold);
  color: #29331f;
  font-size: 7px;
  font-weight: 700;
  white-space: nowrap;
}

.void-pick-timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(231, 209, 154, 0.28);
  background: rgba(198, 162, 92, 0.1);
  color: var(--gold-light);
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
}

.void-pick-note {
  margin-top: 8px !important;
  font-size: 8px !important;
  color: rgba(246, 237, 219, 0.38) !important;
}

/* 碰杠胡：弹出选择，包含“过” */
.claim-picker-layer {
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(3, 14, 10, 0.46);
}

.claim-picker {
  width: min(540px, 92%);
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(231, 209, 154, 0.3);
  background:
    radial-gradient(circle at 10% 0%, rgba(198, 162, 92, 0.14), transparent 40%),
    linear-gradient(150deg, rgba(11, 42, 33, 0.99), rgba(5, 24, 18, 1));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
  color: var(--paper);
}

.claim-picker-head {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.claim-picker-head .tile {
  width: 32px;
  flex: 0 0 auto;
  filter: none;
}

.claim-picker-head h2 {
  margin: 2px 0 0;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--gold-light);
}

.claim-picker-head .eyebrow {
  font-size: 8px;
  color: rgba(246, 237, 219, 0.52);
}

.claim-picker-timer {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(231, 209, 154, 0.28);
  color: var(--gold-light);
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
}

.claim-picker-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.claim-choice {
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(231, 209, 154, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.claim-choice.btn-hu {
  color: #ffe3d8;
  background: linear-gradient(135deg, rgba(183, 66, 52, 0.92), rgba(132, 42, 33, 0.96));
  border-color: rgba(255, 203, 187, 0.4);
}

.claim-choice.btn-gang,
.claim-choice.btn-peng {
  color: var(--gold-light);
  background: rgba(198, 162, 92, 0.14);
}

.claim-choice.btn-pass {
  color: rgba(246, 237, 219, 0.68);
  background: rgba(255, 255, 255, 0.04);
}

.claim-choice .fan-badge {
  font-family: var(--font-num);
  font-size: 8px;
  padding: 1px 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
}

@media (max-height: 560px) and (orientation: landscape) {
  .void-picker {
    padding: 10px 18px 10px;
  }

  .void-picker h2 {
    margin: 2px 0;
    font-size: 22px;
  }

  .void-picker > p {
    font-size: 8px;
    line-height: 1.5;
  }

  .void-picker-options {
    margin: 8px 0 6px;
  }

  .void-pick-option {
    min-height: 76px;
    padding: 6px;
    border-radius: 12px;
  }

  .void-pick-suit {
    font-size: 30px;
  }

  .void-pick-count {
    font-size: 9px;
  }

  .void-pick-timer {
    height: 22px;
    font-size: 10px;
  }

  .void-pick-note {
    display: none;
  }

  .claim-picker {
    padding: 10px 14px;
    width: min(620px, 92%);
  }

  .claim-picker-head .tile {
    width: 24px;
  }

  .claim-picker-head h2 {
    font-size: 18px;
  }

  .claim-picker-actions {
    margin-top: 8px;
    gap: 6px;
  }

  .claim-choice {
    height: 34px;
    font-size: 12px;
    border-radius: 9px;
  }
}
