:root {
  --bg: #09090b;
  --surface: rgba(18, 18, 20, 0.85);
  --border: #27272a;
  --text-main: #f4f4f5;
  --text-sub: #a1a1aa;
  --font-stack: 'Inter', 'Noto Sans TC', system-ui, sans-serif;
}

* { box-sizing: border-box; outline: none; }

body {
  margin: 0;
  height: 100dvh;
  background-color: var(--bg);
  /* 回到第一版的經典網點背景 */
  background-image: radial-gradient(#27272a 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text-main);
  font-family: var(--font-stack);
  display: grid;
  place-items: center;
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* === 背景掉落物樣式 === */
.coins { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.coin {
  position: absolute;
  top: -140px;
  will-change: transform, opacity;
  opacity: 0;
  filter: grayscale(0.3) brightness(0.8); 
}
@keyframes fall {
  0% { transform: translate3d(var(--x,0), -140px, 0) rotate(var(--r,0)); opacity: 0; }
  10% { opacity: var(--op, 0.3); }
  90% { opacity: var(--op, 0.3); }
  100% { transform: translate3d(var(--x,0), calc(100vh + 140px), 0) rotate(calc(var(--r,0) + 45deg)); opacity: 0; }
}

/* === 主要容器 === */
.container {
  width: 100%;
  max-width: 480px;
  padding: 24px;
  position: relative;
  z-index: 10;
  animation: fadeIn 0.8s ease-out;
}

.content {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Logo 發光設定 - 呼吸燈效果 */
.logo-wrap { margin-bottom: 24px; }
.logo {
  width: 80px;
  height: auto;
  animation: logo-breathe 3s ease-in-out infinite;
}

@keyframes logo-breathe {
  0% { filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15)); }
  50% { filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.5)); }
  100% { filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15)); }
}

h1 {
  margin: 0 0 12px 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-main);
}

.desc {
  margin: 0;
  color: var(--text-sub);
  font-size: 15px;
  font-weight: 400;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 32px 0;
  width: 100%;
}

.status-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Discord 按鈕 */
.btn-discord {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 24px;
  background-color: var(--text-main);
  color: var(--bg);
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.btn-discord:hover {
  background-color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}
.btn-discord svg { width: 20px; height: 20px; }

/* 倒數計時區塊 */
.countdown-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.countdown-wrap {
  display: flex;
  gap: 8px;
  font-family: 'Inter', monospace;
  font-size: 13px;
  color: var(--text-sub);
  background: rgba(0,0,0,0.2);
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
}
.cd-val { color: var(--text-main); font-weight: 600; }

.status-badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 100px;
  background: #27272a;
  color: #d4d4d8;
  border: 1px solid #3f3f46;
  letter-spacing: 0.05em;
}

footer {
  position: fixed;
  bottom: 24px;
  font-size: 12px;
  color: #52525b;
  letter-spacing: 0.02em;
}

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