/* 退出本局投票 */
.quit-button {
  color: rgba(255, 190, 175, 0.82);
}

.quit-vote-layer {
  z-index: 150;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(3, 13, 10, 0.52);
}

.quit-vote-card {
  width: min(460px, 92%);
  padding: 20px 20px 16px;
  border-radius: 22px;
  border: 1px solid rgba(231, 209, 154, 0.3);
  background:
    radial-gradient(circle at 50% 0%, rgba(198, 162, 92, 0.13), transparent 45%),
    linear-gradient(150deg, rgba(11, 42, 33, 0.99), rgba(5, 24, 18, 1));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  color: var(--paper);
  text-align: center;
}

.quit-vote-card h2 {
  margin: 5px 0 6px;
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.05em;
}

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

.quit-vote-stats {
  display: flex;
  gap: 10px;
  margin: 14px 0 10px;
}

.quit-vote-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 66px;
  border-radius: 13px;
  border: 1px solid rgba(126, 181, 137, 0.28);
  background: rgba(47, 118, 96, 0.12);
}

.quit-vote-stat.is-no {
  border-color: rgba(183, 66, 52, 0.28);
  background: rgba(183, 66, 52, 0.1);
}

.quit-vote-stat span {
  font-size: 8px;
  color: rgba(246, 237, 219, 0.48);
}

.quit-vote-stat b {
  margin-top: 4px;
  font-family: var(--font-num);
  font-size: 23px;
  line-height: 1;
  color: #cae8bf;
}

.quit-vote-stat.is-no b {
  color: #f0b0a4;
}

.quit-vote-stat b small {
  font-size: 12px;
  opacity: 0.55;
}

.quit-vote-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.quit-vote-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #78b68b, #e1c37b);
  transition: width 0.25s ease;
}

.quit-vote-need {
  margin: 7px 0 0 !important;
  font-size: 9px !important;
  color: rgba(231, 209, 154, 0.7) !important;
}

.quit-vote-actions {
  display: flex;
  gap: 9px;
  margin-top: 14px;
}

.quit-vote-actions .btn {
  flex: 1;
  min-height: 42px;
  font-size: 13px;
}

.quit-vote-actions .quit-vote-yes {
  background: linear-gradient(135deg, #b54a3c, #8d2f26);
  color: #fff1e9;
}

.quit-vote-actions .quit-vote-no {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(246, 237, 219, 0.72);
}

.quit-vote-status {
  flex: 1;
  padding: 12px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(246, 237, 219, 0.7);
  font-size: 10px;
  line-height: 1.6;
}

.quit-vote-expiry {
  display: block;
  margin-top: 9px;
  font-size: 8px;
  color: rgba(246, 237, 219, 0.34);
}

@media (max-height: 560px) and (orientation: landscape) {
  .quit-vote-card {
    padding: 11px 16px 10px;
    width: min(500px, 88%);
  }

  .quit-vote-card h2 {
    margin: 2px 0;
    font-size: 20px;
  }

  .quit-vote-card > p {
    font-size: 8px;
    line-height: 1.5;
  }

  .quit-vote-stats {
    margin: 7px 0 6px;
  }

  .quit-vote-stat {
    min-height: 48px;
  }

  .quit-vote-stat b {
    font-size: 18px;
  }

  .quit-vote-actions {
    margin-top: 8px;
  }

  .quit-vote-actions .btn {
    min-height: 32px;
    font-size: 11px;
  }

  .quit-vote-expiry {
    margin-top: 5px;
  }
}
