:root {
  --bg-deep: #0f0c29;
  --bg-mid: #1a1040;
  --gold: #ffb800;
  --gold-light: #ffe566;
  --orange: #ff6b35;
  --coral: #ff4d6d;
  --glass: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --text: #f0f0f5;
  --text-muted: rgba(255, 255, 255, 0.55);
  --card-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  --radius: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-deep);
  min-height: 100vh;
  color: var(--text);
  overflow-x: hidden;
}

/* ── Animated background ── */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(145deg, #0f0c29 0%, #302b63 45%, #24243e 100%);
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.35), transparent);
  top: -100px;
  right: -100px;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.25), transparent);
  bottom: 10%;
  left: -80px;
  animation-delay: -3s;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 77, 109, 0.2), transparent);
  top: 40%;
  right: 10%;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

.sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--gold-light);
  border-radius: 50%;
  animation: twinkle var(--dur, 3s) ease-in-out infinite;
  opacity: 0;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 0.8; transform: scale(1); }
}

/* ── Layout ── */
.page {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.layout-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 240px;
  gap: 18px;
  align-items: start;
}

.side-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 20px;
}

.main-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.main-col .prize-showcase {
  margin-bottom: 0;
  padding: 18px 20px;
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.section-head-row h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
}

.prize-total {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 4px 10px;
  background: rgba(255, 184, 0, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 184, 0, 0.2);
}

.prize-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

/* 奖品横向滚动 */
.prize-marquee {
  position: relative;
  overflow: hidden;
  margin: 0 -4px;
  padding: 4px 0;
}

.prize-marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}

.prize-marquee-fade-left {
  left: 0;
  background: linear-gradient(90deg, rgba(26, 16, 64, 0.95), transparent);
}

.prize-marquee-fade-right {
  right: 0;
  background: linear-gradient(-90deg, rgba(26, 16, 64, 0.95), transparent);
}

.prize-marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: prizeScroll 24s linear infinite;
  padding: 4px 8px;
}

.prize-marquee-track:hover {
  animation-play-state: paused;
}

.prize-marquee-track .prize-item {
  flex: 0 0 200px;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 184, 0, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.prize-marquee-track .prize-item.level-1 {
  border-color: rgba(255, 215, 0, 0.45);
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.15), rgba(255, 107, 53, 0.08));
  box-shadow: 0 0 20px rgba(255, 184, 0, 0.2);
}

.prize-marquee-track .prize-medal {
  width: 40px;
  height: 40px;
  font-size: 1.4rem;
}

.prize-marquee-track .prize-count {
  align-self: flex-end;
  margin-top: auto;
}

@keyframes prizeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.prize-grid .prize-item {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px;
  text-align: left;
}

.prize-grid .prize-medal {
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
}

.prize-grid .prize-count {
  align-self: flex-end;
  margin-top: auto;
}

/* 领取双栏 */
.claim-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.claim-form-side {
  padding: 24px;
  border-right: 1px solid var(--glass-border);
}

.claim-info-side {
  padding: 24px;
  background: rgba(0, 0, 0, 0.15);
}

.step-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  height: 100%;
}

.step-card {
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.step-card span {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 184, 0, 0.2);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.query-layout {
  padding: 24px;
}

.query-form-inline .input-group {
  max-width: 360px;
}

.query-form-inline .btn {
  max-width: 360px;
}

/* 往期记录 */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-period {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
}

.history-period-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.history-period-header:hover {
  background: rgba(255, 184, 0, 0.06);
}

.history-period-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--gold-light);
}

.history-period-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.history-period-toggle {
  color: var(--gold);
  font-size: 0.85rem;
}

.history-period-body {
  display: none;
  padding: 0 16px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.history-period.open .history-period-body {
  display: block;
}

.history-period.open .history-period-toggle {
  transform: rotate(180deg);
}

.mini-history {
  padding: 18px;
}

.mini-history h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.mini-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-history-item {
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  font-size: 0.78rem;
}

.mini-history-item strong {
  color: var(--gold-light);
  display: block;
  margin-bottom: 2px;
}

.mini-history-item span {
  color: var(--text-muted);
}

.muted {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.tabs {
  margin-bottom: 0;
}

.side-col .intro-card,
.side-col .prize-showcase,
.side-col .status-card {
  margin-bottom: 0;
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
}

/* ── Hero ── */
.hero {
  position: relative;
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease both;
}

.hero-inner {
  text-align: center;
  padding: 8px 0 4px;
}

.hero-badge {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold);
  border: 1px solid rgba(255, 184, 0, 0.4);
  background: rgba(255, 184, 0, 0.1);
  margin-bottom: 16px;
}

.hero-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 12px rgba(255, 184, 0, 0.4)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 24px rgba(255, 184, 0, 0.7)); }
}

.hero h1 {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  line-height: 1.3;
}

.subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ── Intro & Prizes ── */
.intro-card, .prize-showcase {
  padding: 20px;
  margin-bottom: 16px;
  animation: fadeUp 0.6s 0.05s ease both;
}

.intro-card h2, .prize-showcase h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gold-light);
}

.intro-text {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 8px;
}

.purpose-text {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-muted);
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  border-left: 3px solid var(--gold);
}

.prize-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prize-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  border: 1px solid rgba(255, 184, 0, 0.15);
}

.prize-item.level-1 { border-color: rgba(255, 215, 0, 0.4); background: rgba(255, 184, 0, 0.08); }
.prize-item.level-2 { border-color: rgba(192, 192, 192, 0.3); }
.prize-item.level-3 { border-color: rgba(205, 127, 50, 0.3); }

.prize-medal {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(255, 184, 0, 0.15);
}

.prize-thumb {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 184, 0, 0.25);
  background: rgba(0, 0, 0, 0.2);
}

.prize-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prize-detail { flex: 1; min-width: 0; }

.prize-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold-light);
}

.prize-reward {
  font-size: 0.88rem;
  color: var(--text);
  margin-top: 2px;
}

.prize-count {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.fairness-box {
  margin: 16px 0;
  padding: 14px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.fairness-box strong { color: #34d399; }

.fairness-seed {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  word-break: break-all;
  font-family: monospace;
  font-size: 0.72rem;
  color: var(--gold-light);
}

/* ── Right sidebar ── */
.rules-card, .timeline-card, .fairness-card {
  padding: 20px;
}

.rules-card h3, .timeline-card h3, .fairness-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.rules-list {
  list-style: none;
}

.rules-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 6px 0;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  gap: 14px;
  padding-bottom: 20px;
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 20px;
  bottom: 0;
  width: 2px;
  background: rgba(255, 184, 0, 0.2);
}

.timeline-dot {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 184, 0, 0.4);
  background: rgba(0, 0, 0, 0.3);
  margin-top: 2px;
}

.timeline-dot.active {
  background: var(--gold);
  border-color: var(--gold-light);
  box-shadow: 0 0 12px rgba(255, 184, 0, 0.5);
}

.timeline-content strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 2px;
}

.timeline-content p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.fairness-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.winner-reward {
  font-size: 0.82rem;
  color: var(--text);
  margin-top: 2px;
}

/* ── Status card ── */
.status-card {
  padding: 20px;
  margin-bottom: 16px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.status-top {
  margin-bottom: 16px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.status-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: blink 1.5s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.status-badge.distribution { background: rgba(52, 211, 153, 0.15); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.3); }
.status-badge.draw_pending { background: rgba(251, 191, 36, 0.15); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.status-badge.announced { background: rgba(96, 165, 250, 0.15); color: #60a5fa; border: 1px solid rgba(96, 165, 250, 0.3); }
.status-badge.closed { background: rgba(248, 113, 113, 0.15); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.3); }

.status-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.stats-row {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
}

.stat-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.stat-body {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.2;
}

.stat-value.small {
  font-size: 1.1rem;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--glass-border);
  margin: 0 8px;
}

.quota-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.quota-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  border-radius: 3px;
  transition: width 0.8s ease;
}

.quota-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: right;
}

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  margin-bottom: 16px;
  animation: fadeUp 0.6s 0.2s ease both;
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 500;
  transition: all 0.25s;
  font-family: inherit;
}

.tab-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.tab.active {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.25), rgba(255, 107, 53, 0.2));
  color: var(--gold-light);
  border: 1px solid rgba(255, 184, 0, 0.3);
  font-weight: 700;
}

.tab:not(.active):hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

/* ── Panels ── */
.panel {
  display: none;
  animation: fadeUp 0.4s ease both;
}

.panel.active {
  display: block;
}

#panel-claim .claim-layout {
  min-height: 260px;
}

#panel-history .form-card,
#panel-results .form-card {
  min-height: 200px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-card, .result-card {
  padding: 28px 24px;
}

.section-head {
  margin-bottom: 24px;
}

.section-head.center {
  text-align: center;
}

.section-head h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.section-head p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Input ── */
.input-group {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group:focus-within {
  border-color: rgba(255, 184, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.1);
}

.input-prefix {
  padding: 0 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  border-right: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  align-self: stretch;
  display: flex;
  align-items: center;
}

.input-group input {
  flex: 1;
  padding: 14px 16px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}

/* ── Rules ── */
.rules {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rules h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.rules ul {
  list-style: none;
}

.rules li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding: 5px 0;
}

.rule-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 184, 0, 0.15);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Buttons ── */
.btn {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.btn.primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--orange) 100%);
  color: #1a0800;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

.btn.primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.55);
}

.btn.primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn.shine {
  position: relative;
  overflow: hidden;
}

.btn.shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine 3s ease infinite;
}

@keyframes shine {
  0% { left: -75%; }
  60%, 100% { left: 125%; }
}

/* ── Success result ── */
.result-card {
  text-align: center;
}

.success-burst {
  font-size: 3rem;
  animation: bounce 0.6s ease;
  margin-bottom: 8px;
}

@keyframes bounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.result-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.result-sub {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.code-display {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 6px;
  padding: 20px 16px;
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.15), rgba(255, 107, 53, 0.1));
  border: 2px solid rgba(255, 184, 0, 0.35);
  border-radius: 16px;
  margin: 12px 0 16px;
  color: var(--gold-light);
  text-shadow: 0 0 20px rgba(255, 184, 0, 0.4);
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 184, 0, 0.2); }
  50% { box-shadow: 0 0 40px rgba(255, 184, 0, 0.45); }
}

.photo-tip {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 20px;
}

.photo-form {
  margin-top: 8px;
}

.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 2px dashed rgba(255, 184, 0, 0.3);
  border-radius: 16px;
  padding: 28px 20px;
  cursor: pointer;
  margin-bottom: 16px;
  transition: border-color 0.2s, background 0.2s;
  background: rgba(0, 0, 0, 0.15);
}

.upload-area:hover {
  border-color: rgba(255, 184, 0, 0.6);
  background: rgba(255, 184, 0, 0.05);
}

.upload-icon {
  font-size: 2rem;
}

#uploadHint {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.upload-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.photo-preview {
  max-width: 100%;
  max-height: 180px;
  border-radius: 12px;
  margin-top: 8px;
  object-fit: cover;
}

/* ── Query table ── */
.table-wrap {
  margin-top: 16px;
  overflow: hidden;
  padding: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

th, td {
  padding: 12px 14px;
  text-align: left;
}

th {
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
}

tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.empty-state {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

/* ── Winners ── */
.results-panel {
  padding: 28px 20px;
}

.winners-list {
  margin-top: 8px;
}

.winner-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s;
}

.winner-item:hover {
  transform: translateX(4px);
  border-color: rgba(255, 184, 0, 0.2);
}

.winner-item.compact {
  padding: 10px 12px;
  margin-bottom: 6px;
}

.winner-item.compact .winner-rank {
  width: 28px;
  height: 28px;
  font-size: 0.78rem;
}

.winner-item.compact .winner-code {
  font-size: 0.88rem;
}

.winner-item:first-child .winner-rank {
  background: linear-gradient(135deg, #ffd700, #ffb800);
  color: #1a0800;
}

.winner-item:nth-child(2) .winner-rank {
  background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
  color: #1a1a1a;
}

.winner-item:nth-child(3) .winner-rank {
  background: linear-gradient(135deg, #cd7f32, #a0522d);
  color: #fff;
}

.winner-rank {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.winner-info {
  flex: 1;
  min-width: 0;
}

.winner-code {
  font-weight: 800;
  font-size: 1rem;
  color: var(--gold-light);
  letter-spacing: 2px;
}

.winner-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.winner-prize {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 184, 0, 0.15);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid rgba(255, 184, 0, 0.25);
}

.results-info {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.waiting-state {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
}

.waiting-state .waiting-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  animation: pulse 2s ease infinite;
}

/* ── Footer ── */
.footer {
  text-align: center;
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(20, 20, 40, 0.95);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 0.9rem;
  z-index: 1000;
  max-width: 90%;
  text-align: center;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.toast:not(.hidden) {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(80, 20, 20, 0.95);
}

.toast.success {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(10, 50, 30, 0.95);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge.win {
  background: rgba(52, 211, 153, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.badge.pending {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hidden {
  display: none !important;
}

/* ── Countdown ── */
.countdown-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
}

.countdown-box { min-width: 140px; }
.countdown-label { font-size: 0.72rem; color: var(--text-muted); }
.countdown-timer {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}
.countdown-target { font-size: 0.7rem; color: var(--text-muted); }

.user-hub { padding: 18px; }
.hub-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.hub-head h3 { font-size: 0.95rem; color: var(--gold-light); }
.hub-level {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 700;
}
.hub-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.hub-badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  background: rgba(255, 184, 0, 0.12);
  border: 1px solid rgba(255, 184, 0, 0.2);
  color: var(--gold-light);
}
.hub-tip {
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 8px 10px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
}

.calendar-card, .tasks-card, .leaderboard-card { padding: 18px; }
.calendar-card h3, .tasks-card h3, .leaderboard-card h3 {
  font-size: 0.92rem;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.week-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-day {
  text-align: center;
  padding: 8px 4px;
  border-radius: 10px;
  background: rgba(0,0,0,0.2);
  border: 1px solid transparent;
  font-size: 0.68rem;
}
.cal-day .cal-label { color: var(--text-muted); margin-bottom: 4px; }
.cal-day .cal-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  margin: 4px auto 0;
}
.cal-day.active .cal-dot { background: var(--gold); box-shadow: 0 0 8px rgba(255,184,0,0.5); }
.cal-day.today { border-color: rgba(255,184,0,0.4); }
.cal-day.sunday { opacity: 0.5; }

.daily-tasks { display: flex; flex-direction: column; gap: 8px; }
.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
  font-size: 0.78rem;
}
.task-item.done { border: 1px solid rgba(52,211,153,0.25); }
.task-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
}
.task-item.done .task-check {
  background: rgba(52,211,153,0.2);
  border-color: #34d399;
  color: #34d399;
}
.task-points {
  margin-left: auto;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.72rem;
}

.leaderboard { display: flex; flex-direction: column; gap: 6px; }
.lb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(0,0,0,0.15);
  border-radius: 8px;
  font-size: 0.78rem;
}
.lb-rank {
  width: 22px; height: 22px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.72rem;
  background: rgba(255,255,255,0.08);
}
.lb-item:nth-child(1) .lb-rank { background: linear-gradient(135deg,#ffd700,#ffb800); color:#1a0800; }
.lb-item:nth-child(2) .lb-rank { background: #aaa; color:#111; }
.lb-item:nth-child(3) .lb-rank { background: #cd7f32; color:#fff; }
.lb-phone { flex: 1; color: var(--text); }
.lb-pts { color: var(--gold); font-weight: 700; }

/* ── Spin Wheel ── */
.spin-layout {
  padding: 36px 24px 32px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,184,0,0.1) 0%, rgba(255,107,53,0.04) 40%, transparent 70%);
  border-radius: var(--radius);
  overflow: hidden;
}

.spin-head h2 {
  font-size: 1.35rem;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 50%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wheel-stage {
  position: relative;
  width: min(420px, 94vw);
  margin: 28px auto 12px;
  padding: 16px 0 8px;
}

.wheel-stage.is-spinning .wheel-aurora {
  animation-duration: 1.2s;
}

.wheel-aurora {
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, rgba(255,107,53,0.15), rgba(255,184,0,0.2), rgba(255,77,109,0.12), rgba(255,107,53,0.15));
  filter: blur(20px);
  animation: auroraSpin 8s linear infinite;
  pointer-events: none;
  opacity: 0.85;
}

@keyframes auroraSpin {
  to { transform: rotate(360deg); }
}

.wheel-glow {
  position: absolute;
  inset: 5% 2% 15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,184,0,0.4) 0%, rgba(255,107,53,0.15) 45%, transparent 72%);
  filter: blur(14px);
  animation: wheelGlowPulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes wheelGlowPulse {
  0%, 100% { opacity: 0.65; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.04); }
}

.wheel-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  border-radius: 50%;
  pointer-events: none;
  border: 2px solid transparent;
}

.wheel-ring-outer {
  width: calc(100% - 8px);
  height: calc(100% - 8px);
  border-color: rgba(255, 230, 102, 0.25);
  animation: ringPulse 2.5s ease-in-out infinite;
}

.wheel-ring-inner {
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  border-color: rgba(255, 107, 53, 0.2);
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; box-shadow: 0 0 30px rgba(255,184,0,0.25); }
}

.wheel-wrap {
  position: relative;
  width: min(400px, 100%);
  max-width: 100%;
  margin: 0 auto;
  z-index: 1;
}

.wheel-sparkle-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 230, 102, 0.2);
  animation: sparkleRing 12s linear infinite;
  pointer-events: none;
}

@keyframes sparkleRing {
  to { transform: rotate(360deg); }
}

.wheel-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.pointer-glow {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,230,102,0.8), transparent 70%);
  filter: blur(4px);
  animation: pointerGlow 1.5s ease-in-out infinite;
}

@keyframes pointerGlow {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

.pointer-pin {
  position: absolute;
  top: 42px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #ffb800);
  border: 2px solid #fff;
  box-shadow: 0 0 16px rgba(255,184,0,0.9);
  z-index: 11;
}

#wheelCanvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow:
    0 0 0 8px rgba(255,184,0,0.2),
    0 0 0 14px rgba(255,107,53,0.1),
    0 24px 60px rgba(0,0,0,0.55),
    inset 0 0 50px rgba(0,0,0,0.12);
  transition: box-shadow 0.3s ease;
}

#wheelCanvas.spinning {
  box-shadow:
    0 0 0 8px rgba(255,184,0,0.45),
    0 0 40px rgba(255,184,0,0.4),
    0 24px 60px rgba(0,0,0,0.55);
}

.wheel-base {
  position: relative;
  width: 75%;
  margin: -4px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wheel-base-top {
  width: 28px;
  height: 12px;
  background: linear-gradient(180deg, #ffe566, #ffb800);
  border-radius: 4px 4px 0 0;
  box-shadow: 0 2px 8px rgba(255,184,0,0.4);
}

.wheel-base-neck {
  width: 18px;
  height: 20px;
  background: linear-gradient(180deg, #ffb800, #cc5500);
}

.wheel-base-plate {
  width: 100%;
  height: 14px;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: linear-gradient(180deg, #ffb800 0%, #994400 100%);
  box-shadow: 0 10px 28px rgba(255,107,53,0.4);
}

.spin-form {
  max-width: 380px;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spin-code-input {
  position: relative;
}

.spin-code-input .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  z-index: 1;
  pointer-events: none;
}

.spin-code-input input {
  padding-left: 44px !important;
  text-align: center;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
}

.btn-spin-go {
  position: relative;
  overflow: hidden;
  padding: 16px 28px;
  font-size: 1.05rem;
  letter-spacing: 2px;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(255, 107, 53, 0.45);
}

.btn-spin-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.35) 50%, transparent 65%);
  transform: translateX(-100%);
  animation: btnShimmer 2.5s ease-in-out infinite;
}

@keyframes btnShimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.spin-result {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
}

.spin-result.spin-win {
  background: linear-gradient(135deg, rgba(255,184,0,0.2), rgba(255,107,53,0.12));
  border-color: rgba(255,184,0,0.35);
  animation: winPop 0.5s ease-out;
}

@keyframes winPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.spin-win {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-light);
  text-shadow: 0 0 20px rgba(255,184,0,0.4);
}

.spin-thanks {
  color: var(--text-muted);
}

.spin-thanks {
  color: var(--text-muted);
}

.claim-success-tip {
  color: var(--text-muted);
  margin: 12px 0 16px;
}

#goSpinBtn {
  margin-top: 8px;
}

/* ── Confetti ── */
.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .layout-grid { grid-template-columns: 220px 1fr; }
  .side-right { display: none; }
  .countdown-strip { flex-direction: column; align-items: stretch; }
  .claim-layout { grid-template-columns: 1fr; }
  .claim-form-side { border-right: none; border-bottom: 1px solid var(--glass-border); }
}

@media (max-width: 768px) {
  .page { padding: 16px 12px 40px; }
  .layout-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .side-col { position: static; width: 100%; }
  .side-left { order: -1; }
  .main-col { order: 0; width: 100%; }
  .side-right { display: flex; order: 2; width: 100%; }
  .prize-grid { grid-template-columns: repeat(2, 1fr); }
  .step-cards { grid-template-columns: 1fr; }
  .wheel-stage {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .wheel-wrap {
    width: min(400px, calc(100vw - 40px));
    max-width: 100%;
    margin: 0 auto;
  }

  .wheel-stage {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .spin-layout { padding-left: 12px; padding-right: 12px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 1.6rem; }
  .code-display { font-size: 1.6rem; letter-spacing: 3px; }
  .tab span:not(.tab-icon) { font-size: 0.7rem; }
}

/* ═══ UI Refresh v2 ═══ */
.hero {
  position: relative;
  padding: 12px 0 8px;
}

.hero-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  position: relative;
}

.hero-icon-wrap::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 184, 0, 0.35);
  animation: spinSlow 20s linear infinite;
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

.hero-icon {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 16px rgba(255, 184, 0, 0.5));
  animation: pulse 3s ease-in-out infinite;
}

.hero h1 {
  font-size: 2.2rem;
  letter-spacing: 1px;
}

.subtitle {
  max-width: 520px;
  margin: 0 auto;
}

.glass {
  background: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.08);
}

.prize-showcase {
  padding: 22px 24px;
  background: linear-gradient(160deg, rgba(255,184,0,0.08) 0%, rgba(255,255,255,0.04) 60%);
}

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-head-row h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-light);
}

.prize-total {
  font-size: 0.75rem;
  color: var(--gold);
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(255, 184, 0, 0.12);
  border: 1px solid rgba(255, 184, 0, 0.25);
}

.prize-grid .prize-item {
  transition: transform 0.25s, box-shadow 0.25s;
}

.prize-grid .prize-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.prize-grid .prize-item.level-1 {
  background: linear-gradient(135deg, rgba(255,215,0,0.15), rgba(255,184,0,0.05));
}

.countdown-strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px 24px;
  margin-bottom: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,107,53,0.12), rgba(255,184,0,0.08));
  border: 1px solid rgba(255, 184, 0, 0.25);
}

.countdown-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,184,0,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.countdown-icon {
  font-size: 2rem;
  filter: drop-shadow(0 0 8px rgba(255,184,0,0.4));
  z-index: 1;
}

.countdown-box {
  text-align: center;
  z-index: 1;
}

.countdown-timer {
  font-size: 1.75rem;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.tabs {
  gap: 4px;
  padding: 5px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  margin-bottom: 18px;
}

.tab {
  border-radius: 12px;
  padding: 12px 8px;
}

.tab.active {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.35), rgba(255, 107, 53, 0.25));
  box-shadow: 0 4px 16px rgba(255, 184, 0, 0.2);
}

.claim-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 280px;
  overflow: hidden;
}

.claim-form-side {
  padding: 28px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.claim-info-side {
  padding: 24px;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
}

.step-card {
  transition: border-color 0.2s, background 0.2s;
}

.step-card:hover {
  border-color: rgba(255, 184, 0, 0.25);
  background: rgba(255, 184, 0, 0.06);
}

.input-group {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group:focus-within {
  border-color: rgba(255, 184, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.12);
}

.btn.primary {
  background: linear-gradient(135deg, #ffb800 0%, #ff6b35 100%);
  border: none;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
}

.btn.primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 107, 53, 0.45);
}

.result-card {
  text-align: center;
  padding: 36px 24px;
  background: linear-gradient(160deg, rgba(52,211,153,0.1), rgba(255,184,0,0.08));
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.success-burst {
  font-size: 3rem;
  margin-bottom: 8px;
  animation: burstPop 0.6s ease both;
}

@keyframes burstPop {
  from { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.2); }
  to { transform: scale(1); opacity: 1; }
}

.code-display {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--gold-light);
  padding: 16px 24px;
  margin: 16px auto;
  max-width: 360px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 14px;
  border: 2px dashed rgba(255, 184, 0, 0.4);
  text-shadow: 0 0 20px rgba(255, 184, 0, 0.3);
}

.spin-layout {
  padding: 32px 24px 28px;
  background: linear-gradient(180deg, rgba(255,184,0,0.06) 0%, transparent 40%);
}

.spin-result {
  border: 1px solid rgba(255, 184, 0, 0.2);
  background: rgba(0, 0, 0, 0.3);
}

.spin-result.spin-win {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.08);
}

.rules-card, .timeline-card, .fairness-card {
  padding: 20px;
}

.rules-list li {
  padding: 8px 0 8px 20px;
  position: relative;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.rules-list li:last-child {
  border-bottom: none;
}

.rules-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.55rem;
  top: 12px;
}

.timeline-item {
  padding-left: 20px;
  border-left: 2px solid rgba(255, 184, 0, 0.3);
  margin-bottom: 14px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(255,184,0,0.6);
}

.winners-list .winner-card {
  transition: transform 0.2s;
}

.winners-list .winner-card:hover {
  transform: translateX(4px);
}

.history-period {
  transition: border-color 0.2s;
}

.history-period:hover {
  border-color: rgba(255, 184, 0, 0.2);
}

.claim-notice {
  margin-bottom: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.35);
  color: #ffb899;
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
}

.channel-badge {
  display: none !important;
}

/* ── v3 polish ── */
.hero-inner::after {
  content: '';
  display: block;
  width: 120px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}

.subtitle {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.prize-item {
  position: relative;
  overflow: hidden;
}

.prize-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: prizeShine 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes prizeShine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.prize-grid .prize-item.level-1 {
  box-shadow: 0 0 24px rgba(255, 184, 0, 0.15);
}

.tabs {
  padding: 6px;
  gap: 6px;
  border-radius: 16px;
}

.tab.active {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.25), rgba(255, 107, 53, 0.2));
  box-shadow: 0 4px 16px rgba(255, 184, 0, 0.15);
}

.public-notice {
  margin: 0 0 16px;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.12), rgba(255, 107, 53, 0.08));
  border: 1px solid rgba(255, 184, 0, 0.25);
  color: var(--gold-light);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}

.results-head h2 {
  background: linear-gradient(135deg, #fff, var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.intro-card, .timeline-card, .fairness-card {
  backdrop-filter: blur(12px);
}

.countdown-strip {
  border: 1px solid rgba(255, 184, 0, 0.2);
  background: linear-gradient(135deg, rgba(255,184,0,0.1), rgba(255,255,255,0.04));
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── 未中奖卡牌弹窗（风格对齐中奖卡） ── */
.lose-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  opacity: 0;
  transition: opacity 0.35s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  pointer-events: none;
}

.lose-modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.lose-modal-overlay.hidden {
  display: none !important;
  pointer-events: none;
}

.lose-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 24, 0.82);
  backdrop-filter: blur(8px);
}

.lose-modal-scene {
  position: relative;
  z-index: 1;
  perspective: 1200px;
  margin-bottom: 16px;
  flex-shrink: 0;
  width: min(360px, 92vw);
}

.lose-modal-card {
  position: relative;
  width: 100%;
  min-height: 420px;
  transform: rotateY(90deg) scale(0.85);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.4s ease;
}

.lose-modal-overlay.visible .lose-modal-card {
  transform: rotateY(0deg) scale(1);
  opacity: 1;
}

.lose-modal-border {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 3px;
  background: linear-gradient(135deg, #7dd3c0, #4f8cff, #7b6cff, #7dd3c0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.lose-modal-shine {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.16) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: cardShine 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

.lose-modal-inner {
  position: relative;
  margin: 3px;
  border-radius: 19px;
  background: linear-gradient(160deg, #16324f 0%, #10263d 45%, #1a3a52 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(22px, 4.5vw, 32px) clamp(16px, 4vw, 24px) clamp(24px, 4.5vw, 32px);
  gap: 4px;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.12);
  min-height: 414px;
  box-sizing: border-box;
}

.lose-modal-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: #7dd3c0;
  margin-bottom: 10px;
}

.lose-modal-icon {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 12px rgba(125, 211, 192, 0.45));
}

.lose-modal-title {
  margin: 0 0 16px;
  font-size: clamp(1.15rem, 4.6vw, 1.45rem);
  font-weight: 900;
  background: linear-gradient(135deg, #fff, #9fe8d8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.35;
}

.lose-modal-body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  text-align: left;
  white-space: pre-wrap;
}

.lose-modal-actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.lose-modal-actions .btn {
  min-width: 140px;
}

/* ── 中奖卡牌弹窗 ── */
.win-card-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  opacity: 0;
  transition: opacity 0.35s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.win-card-overlay.visible {
  opacity: 1;
}

.win-card-overlay.hidden {
  display: none;
}

.win-card-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 5, 20, 0.82);
  backdrop-filter: blur(8px);
}

.win-card-scene {
  position: relative;
  z-index: 1;
  perspective: 1200px;
  margin-bottom: 16px;
  flex-shrink: 0;
  width: min(360px, 92vw);
}

.win-card {
  position: relative;
  width: 100%;
  min-height: 560px;
  height: auto;
  max-height: none;
  transform: rotateY(90deg) scale(0.85);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.4s ease;
}

.win-card-overlay.visible .win-card {
  transform: rotateY(0deg) scale(1);
  opacity: 1;
}

.win-card-border {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 3px;
  background: linear-gradient(135deg, #FFE566, #FFB800, #FF6B35, #FFE566);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: cardBorderGlow 2.5s ease-in-out infinite;
}

@keyframes cardBorderGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.25); }
}

.win-card-shine {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.18) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: cardShine 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes cardShine {
  0%, 100% { transform: translateX(-120%); }
  50% { transform: translateX(120%); }
}

.win-card-inner {
  position: relative;
  margin: 3px;
  border-radius: 19px;
  background: linear-gradient(160deg, #2a1858 0%, #1a1040 45%, #302b63 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(18px, 4vw, 28px) clamp(14px, 3.5vw, 22px) clamp(22px, 4vw, 28px);
  gap: 2px;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.12);
  overflow: visible;
}

.win-card-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: #FFB800;
  margin-bottom: 8px;
}

.win-card-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 12px rgba(255,184,0,0.5));
}

.win-card-title {
  font-size: clamp(1.25rem, 5vw, 1.6rem);
  font-weight: 900;
  background: linear-gradient(135deg, #fff, #FFE566);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.win-card-site {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
}

.win-card-prize {
  width: 100%;
  padding: 18px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,184,0,0.16) 0%, rgba(255,107,53,0.08) 100%);
  border: 1px solid rgba(255,184,0,0.32);
  margin-bottom: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.win-card-level {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: #FF6B35;
  margin-bottom: 6px;
}

.win-card-reward {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

.win-card-verify-wrap {
  width: 100%;
  margin-bottom: 14px;
}

.win-card-verify-hash {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0,0,0,0.38);
  border: 1px solid rgba(52,211,153,0.35);
  font-size: clamp(0.58rem, 2.6vw, 0.68rem);
  line-height: 1.65;
  word-break: break-all;
  text-align: center;
  white-space: pre-line;
  color: #86efac;
  font-family: Consolas, Monaco, monospace;
  letter-spacing: 0.04em;
}

.win-card-code-wrap {
  width: 100%;
  margin-bottom: 12px;
}

.win-card-code-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 6px;
}

.win-card-code {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(0,0,0,0.35);
  border: 1px dashed rgba(255,230,102,0.35);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #FFE566;
}

.win-card-tip {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin: 4px 0 0;
  line-height: 1.5;
}

.win-card-quote {
  width: 100%;
  font-size: clamp(0.84rem, 3.8vw, 0.96rem);
  color: rgba(255, 230, 150, 0.92);
  font-style: italic;
  text-align: center;
  line-height: 1.65;
  padding: 16px 12px 12px;
  margin: 4px 0 0;
  flex-shrink: 0;
  box-sizing: border-box;
}

.win-card-date {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  margin-top: 8px;
  padding-top: 0;
  padding-bottom: 4px;
  flex-shrink: 0;
}

.win-card-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, 92vw);
  flex-shrink: 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.btn-download-card {
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
}

.btn.ghost {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}

.btn.ghost:hover {
  background: rgba(255,255,255,0.12);
}

/* ═══ v4 Premium UI ═══ */
.bg-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(255, 107, 53, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(255, 184, 0, 0.1), transparent),
    radial-gradient(ellipse 50% 30% at 50% 90%, rgba(255, 77, 109, 0.08), transparent);
  pointer-events: none;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  pointer-events: none;
}

body.lang-id {
  font-family: 'Plus Jakarta Sans', 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-badge-row .hero-badge {
  margin-bottom: 0;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.3); }
  50% { box-shadow: 0 0 12px 2px rgba(52, 211, 153, 0.25); }
}

/* Highlight ticker */
.highlight-ticker {
  overflow: hidden;
  padding: 12px 0;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 184, 0, 0.2);
  background: linear-gradient(90deg, rgba(255,184,0,0.06), rgba(255,107,53,0.04), rgba(255,184,0,0.06));
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.highlight-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: highlightScroll 32s linear infinite;
  padding: 0 24px;
}

.highlight-track:hover {
  animation-play-state: paused;
}

.highlight-item {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 230, 150, 0.9);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

@keyframes highlightScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Hero stats bar */
.hero-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 18px 24px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(255,184,0,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255, 184, 0, 0.18);
}

.hero-stat {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 4px 16px;
}

.hero-stat-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 2px 8px rgba(255,184,0,0.3));
}

.hero-stat-val {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.hero-stat-lbl {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.3px;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 14px 18px;
  margin-bottom: 18px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 230, 150, 0.85);
  background: rgba(255, 184, 0, 0.08);
  border: 1px solid rgba(255, 184, 0, 0.2);
  transition: transform 0.2s, border-color 0.2s;
}

.trust-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 184, 0, 0.4);
}

.trust-pill-icon {
  font-size: 0.85rem;
}

/* Features grid */
.features-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.feature-item:hover {
  border-color: rgba(255, 184, 0, 0.25);
  background: rgba(255, 184, 0, 0.05);
  transform: translateX(3px);
}

.feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border-radius: 10px;
  background: rgba(255, 184, 0, 0.12);
  border: 1px solid rgba(255, 184, 0, 0.2);
}

.feature-item strong {
  display: block;
  font-size: 0.82rem;
  color: var(--gold-light);
  margin-bottom: 3px;
}

.feature-item p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Premium card */
.premium-card {
  position: relative;
  overflow: hidden;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 184, 0, 0.4), transparent);
}

.prize-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  padding: 3px 10px;
  border-radius: 6px;
  background: rgba(255, 184, 0, 0.12);
  border: 1px solid rgba(255, 184, 0, 0.25);
  margin-bottom: 6px;
}

.section-head-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Prize spotlight */
.prize-spotlight {
  margin-bottom: 16px;
}

.spotlight-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.35);
  background: linear-gradient(135deg, rgba(255,184,0,0.12), rgba(255,107,53,0.06));
}

.spotlight-aurora {
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, rgba(255,184,0,0.08), rgba(255,107,53,0.12), rgba(255,184,0,0.08));
  animation: auroraSpin 10s linear infinite;
  pointer-events: none;
}

.spotlight-inner {
  position: relative;
  z-index: 1;
  padding: 22px 24px;
  text-align: center;
}

.spotlight-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--gold);
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 184, 0, 0.4);
  background: rgba(0, 0, 0, 0.25);
  margin-bottom: 10px;
}

.spotlight-medal {
  font-size: 2.4rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 16px rgba(255,184,0,0.5));
  animation: pulse 3s ease-in-out infinite;
}

.spotlight-thumb {
  width: 88px;
  height: 88px;
  margin: 0 auto 10px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(255, 184, 0, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.spotlight-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spotlight-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.spotlight-reward {
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.5;
}

.spotlight-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.spotlight-slots {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
}

.spotlight-cta {
  padding: 8px 18px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #1a0800;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.5px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.35);
}

.spotlight-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.45);
}

.prize-tier-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 184, 0, 0.3);
}

/* Spin side panels */
.spin-side-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.spin-side-panels .premium-card {
  padding: 18px 20px;
}

.spin-side-panels h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.how-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.how-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #1a0800;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 2px 8px rgba(255, 184, 0, 0.3);
}

.how-step strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text);
  margin-bottom: 2px;
}

.how-step p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.spin-tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spin-tips-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.spin-tips-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.55rem;
  top: 4px;
}

/* Site footer */
.site-footer {
  margin-top: 28px;
  padding: 24px;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

.footer-logo {
  font-size: 1.1rem;
  color: var(--gold);
  animation: pulse 3s ease-in-out infinite;
}

.footer-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 4px;
}

.footer-badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  color: rgba(255, 230, 150, 0.75);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Layout width upgrade */
.page {
  max-width: 1320px;
}

.layout-grid {
  grid-template-columns: 260px minmax(0, 1fr) 260px;
  gap: 20px;
}

/* Responsive v4 */
@media (max-width: 1024px) {
  .hero-stats-bar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .hero-stat-divider { display: none; }
  .hero-stat {
    flex: 1 1 30%;
    min-width: 100px;
  }
  .spin-side-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-stats-bar {
    padding: 14px 12px;
  }
  .hero-stat-val { font-size: 1.25rem; }
  .trust-strip { gap: 6px; }
  .trust-pill { font-size: 0.68rem; padding: 5px 10px; }
  .spotlight-inner { padding: 18px 16px; }
  .highlight-item { font-size: 0.75rem; }
}

@media (max-width: 480px) {
  .hero-stat {
    flex: 1 1 45%;
  }
  .hero-stat-icon { font-size: 1.3rem; }
}

/* ── Verify hash (fairness) ── */
.verify-hash-panel {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(52, 211, 153, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.verify-hash-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #34d399;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.verify-hash-icon {
  font-size: 0.9rem;
  opacity: 0.9;
}

.verify-hash-value {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(52, 211, 153, 0.35);
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.68rem;
  line-height: 1.5;
  color: #a7f3d0;
  word-break: break-all;
  letter-spacing: 0.5px;
  min-height: 2.8em;
}

.verify-hash-value.hash-ready {
  animation: hashReveal 0.5s ease both;
  border-style: solid;
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.12);
}

@keyframes hashReveal {
  from { opacity: 0.4; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.verify-hash-hint {
  margin-top: 10px;
  font-size: 0.68rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.verify-hash-inline {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.18);
}

.verify-hash-inline.compact {
  margin-top: 6px;
  padding: 6px 8px;
}

.verify-hash-inline-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(52, 211, 153, 0.85);
  margin-bottom: 4px;
}

.verify-hash-inline-value {
  display: block;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 0.62rem;
  color: #a7f3d0;
  word-break: break-all;
  line-height: 1.45;
  letter-spacing: 0.3px;
}

.spin-result .verify-hash-inline {
  margin-top: 12px;
  text-align: left;
}

.fairness-box .verify-hash-inline {
  margin-top: 12px;
}

.win-card-verify-wrap {
  width: 100%;
  margin-bottom: 12px;
}

.win-card-verify-hash {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(52, 211, 153, 0.3);
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: clamp(0.52rem, 2.8vw, 0.62rem);
  line-height: 1.55;
  color: #a7f3d0;
  word-break: break-all;
  text-align: center;
  white-space: pre-line;
  letter-spacing: 0.3px;
}

@media (max-width: 480px) {
  .win-card {
    min-height: 520px;
    max-height: none;
  }

  .win-card-icon {
    font-size: 2.4rem;
  }

  .win-card-level {
    font-size: 1.1rem;
  }

  .win-card-reward {
    font-size: 0.92rem;
  }

  .win-card-code {
    font-size: 1rem;
    letter-spacing: 1px;
  }

  .btn-download-card {
    padding: 12px 16px;
    font-size: 0.95rem;
  }
}
