:root{
  --card: rgba(255,255,255,0.35);
  --border: rgba(255,255,255,0.45);
  --text: #0b1220;
  --muted: rgba(11,18,32,0.65);
  --shadow: rgba(0,0,0,0.18); /* ✅補上，避免 var(--shadow) 無效 */
}

*{ box-sizing: border-box; }

body{ /* ✅ .body 改成 body */
  margin:0;
  min-height:100vh;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow:hidden;
}

/* 背景圖（由 JS 動態塞） */
.bg{
  position: fixed;
  inset: 0;
  background: center / cover no-repeat;
  filter: blur(2px);
  transform: scale(1.05);
}

/* ✅ 白玻璃風格：用亮色遮罩，而不是黑色壓暗 */
.overlay{
  position: fixed;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.25),
    rgba(255,255,255,0.08)
  );
}

.wrap{
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 22px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
}

/* ---------- 上方 ---------- */
.top{
  display:flex;
  align-items:center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 60px var(--shadow);
}

.avatar{
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.18);
}

.headline{
  font-size: 22px;
  font-weight: 900;
}

.subline{
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 中間 ---------- */
.mid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-content: center;
}

@media (max-width: 720px){
  body{ overflow:auto; }
  .mid{ grid-template-columns: 1fr; }
}

.panel{
  padding: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 60px var(--shadow);
}

.label{
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 1px;
}

.status{
  margin-top: 10px;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900;
}

.timer{
  margin-top: 10px;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 900;
  letter-spacing: 1px;
}

.desc{
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- 下方 ---------- */
.bottom{
  display:flex;
  justify-content:center;
}

.link{
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.22); /* ✅白玻璃按鈕更亮 */
  color: var(--text);
  text-decoration:none;
  backdrop-filter: blur(12px);
}

.link:hover{
  background: rgba(255,255,255,0.30);
}
