body {
    
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  background: linear-gradient(135deg, #0f0f0f, #1a0033);
  color: #fff;
  text-align: center;
  overflow-x: hidden;
}
.container { padding: 30px 20px; }
.logo {
  max-width: 250px;
  margin: 20px auto 15px;
  filter: drop-shadow(0 0 8px #0ff);
  display: block;
}
.logo:hover {
  filter: drop-shadow(0 0 12px #ff0);
  transform: scale(1.03);
  transition: 0.3s;
}
.rules-button {
  position: absolute;
  right: 700px;       /* ← 可以调整为 20px, 30px 等 */
  top: -40px;        /* ← 可以往上或往下移动 */
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  background: #333;
  color: #0ff;
  border: 1px solid #0ff;
  cursor: pointer;
}
.record-table {
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  border-collapse: collapse;
  font-size: 14px;
  background: #111;
  border: 2px solid #0ff;
  color: #0ff;
  box-shadow: 0 0 10px #0ff inset;
}
.record-table th, .record-table td {
  border: 1px solid #0ff;
  padding: 8px;
  text-align: center;
}
.record-table th {
  background: #0ff;
  color: #000;
}

.rules-button:hover {
  background: #0ff;
  color: #000;
}
  .roller-wrapper-position {
    position: relative;
  }
.code-input {
  margin: 25px auto;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
input[type="text"] {
  padding: 12px;
  font-size: 18px;
  border-radius: 8px;
  border: none;
  width: 250px;
  background: #111;
  color: #0ff;
  box-shadow: 0 0 8px #0ff;
}
button {
  padding: 12px 30px;
  font-size: 18px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(to right, #f0f, #0ff);
  color: #000;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 15px #0ff;
  transition: transform 0.3s;
}
button:hover { transform: scale(1.05); }
.roller-wrapper {
  height: 200px;
  width: 500px;
  margin: 40px auto;
  overflow: hidden;
  border: 3px solid #0ff;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 0 20px #0ff;
}
.roller {
  display: flex;
  flex-direction: column;
  transform: translateY(0);
}
.roller-item {
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.roller-item img {
  max-height: 100px;
  max-width: 90%;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 6px;
}
.roller-item span {
  color: #0ff;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 0 5px #0ff;
}
.error {
  color: #ff3377;
  font-weight: bold;
  margin-top: 20px;
}
#winDialog::backdrop {
  background: rgba(0, 0, 0, 0.9);
}
.dialog-content {
  padding: 20px;
  background: #111;
  color: #fff;
  border-radius: 12px;
  border: 2px solid #0ff;
  box-shadow: 0 0 20px #0ff, 0 0 60px #f0f inset;
  max-width: 300px;
  animation: neonFlash 2s infinite;
  margin: auto;
}
@keyframes neonFlash {
  0%, 100% { box-shadow: 0 0 20px #0ff, 0 0 60px #f0f inset; }
  50% { box-shadow: 0 0 40px #f0f, 0 0 80px #0ff inset; }
}
.dialog-content img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}
.prize-name {
  font-size: 20px;
  color: #ff0;
  margin-top: 10px;
}
.prize-message {
  margin: 15px 0;
  font-size: 20px;
  color: #0f0;
  word-break: break-word;
  line-height: 1.4;
}
.prize-code {
  margin: 5px 0;
  font-size: 16px;
  color: #ccc;
}
.whatsapp-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: #25D366;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
}
.close-btn {
  margin-top: 10px;
  padding: 6px 20px;
  font-size: 14px;
  border-radius: 8px;
  border: none;
  background: #ffcc00;
  font-weight: bold;
  cursor: pointer;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.social-icons img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 0 15px #00ffff, 0 0 30px #ff00ff;
  transition: transform 0.2s, box-shadow 0.3s;
  background: white;
  padding: 5px;
}

.social-icons img:hover {
  transform: scale(1.15);
  box-shadow: 0 0 20px #ffff00, 0 0 40px #00ffcc;
}

/* logo 增强 hover 效果 */
.logo:hover {
  filter: drop-shadow(0 0 15px #ff0);
  transform: scale(1.05);
  transition: 0.3s;
}
#lang-switch {
  text-align: center;
  margin-top: 15px;
  margin-bottom: 15px;
}

.lang-btn {
  background: transparent;
  border: 2px solid gold;
  color: white;
  padding: 8px 16px;
  margin: 0 5px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-btn:hover {
  background: gold;
  color: black;
  box-shadow: 0 0 8px gold;
}

@media (max-width: 600px) {
  .lang-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .social-icons img {
    width: 36px;
    height: 36px;
    padding: 3px;
  }
}
 @media (max-width: 600px) {
  .rules-button {
    position: absolute;       /* 再声明 */
    right: auto;              /* 关闭默认右侧 */
    left: 285px;               /* 改为靠左 */
    top: -35px;
    transform: none;          /* 清除旋转偏移 */
    font-size: 11px;
    padding: 5px 10px;
  }
}
@media (max-width: 480px) {
  .logo { max-width: 80%; margin-top: 20px; }
  .code-input {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .roller-wrapper {
    width: 90%;
    height: 160px;
  }
  .roller-item { height: 160px; }
  .roller-item img { max-height: 80px; }
  .roller-item span { font-size: 16px; }
  .dialog-content {
    width: 90%;
    font-size: 14px;
    padding: 15px;
  }
  .close-btn, .whatsapp-btn {
    width: 80%;
    font-size: 14px;
  }
  .social-icons img {
    width: 32px;
    height: 32px;
  }
}
