.page-background {
  background-image: url("/images/snake11.png");
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  width: 100vw;
  min-height: 100vh;

  display: flex;
  justify-content: center;
}

.stake-page {
  margin: 0 auto; /* 水平居中 */
  padding: 0;
  width: 95vw; /* ✅ 视口宽度的 90% */
  padding: 40px 20px;
  min-height: 100vh; /* ✅ 更安全适配所有屏幕 */

  color: #ffc400;
  font-family: "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stake-title {
  font-size: 36px;
  font-weight: 800;
  margin: 32px auto;
  color: #ffc400;
  text-shadow: 0 0 10px rgba(255, 196, 0, 0.5);
  text-align: center;
}

.card-container {
  background: rgba(95, 17, 17, 0.8);
  border: 1px solid #ffc400;
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 0 20px rgba(255, 196, 0, 0.2);
}

.data-box {
  margin-bottom: 24px;
}

.data-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  padding: 8px 0;
  color: #eee;
  border-bottom: 1px dashed #ffc400;
}

.input-box {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.input-box input {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid #ffc400;
  color: #fff8e1;
  text-align: center;
  font-family: monospace;
  box-shadow: 0 0 8px rgba(255, 196, 0, 0.2);
  transition: border-color 0.3s ease;
}

.input-box input:focus {
  outline: none;
  border-color: #ffeb3b;
}

.adjust-btn {
  position: absolute;
  background: transparent;
  border: none;
  color: #ffc400;
  font-size: 22px;
  cursor: pointer;
  width: 36px;
  height: 100%;
  top: 0;
}

.adjust-btn:first-child {
  left: 10px;
}

.adjust-btn:last-child {
  right: 10px;
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-group button {
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  background: linear-gradient(160deg, #ffc400, #c77e00);
  color: #1b0c04;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 196, 0, 0.3);
}

.btn-group button:hover {
  background: linear-gradient(90deg, #ffc400, #ffdb4d);
  box-shadow: 0 0 18px rgba(255, 196, 0, 0.5);
  transform: translateY(-2px);
}

.rule-box {
  background: rgba(0, 0, 0, 0.35);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 196, 0, 0.3);
}

.rule-box h2 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #ffdd55;
  text-align: center;
}

.rule-box ul {
  list-style: disc inside;
  font-size: 14px;
  color: #ccc;
  padding-left: 12px;
}

.rule-box li {
  margin-bottom: 6px;
}

