/* FortuneBell — dark new-year theme, mobile-first */
:root {
  --bg: #0d0e14; --card: #171923; --line: #2a2d3e;
  --text: #f2f3f8; --muted: #9aa0b4;
  --gold: #F7C948; --red: #e05252; --green: #4ade80;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans", "Malgun Gothic", "PingFang SC", sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #1c1e33, var(--bg));
  color: var(--text); min-height: 100vh; line-height: 1.6; overflow-x: hidden;
}
.wrap { max-width: 560px; margin: 0 auto; padding: 0 18px 70px; position: relative; z-index: 2; }

header.site { padding: 22px 0 6px; text-align: center; }
.logo { font-size: 20px; font-weight: 800; color: var(--text); text-decoration: none; }
.logo span { color: var(--gold); }
.langs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.langs a { font-size: 12px; color: var(--muted); text-decoration: none; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }
.langs a.on, .langs a:hover { color: var(--text); border-color: var(--gold); }

.hero { text-align: center; padding: 26px 0 14px; }
.hero h1 { font-size: clamp(25px, 6.4vw, 34px); font-weight: 800; line-height: 1.3;
  background: linear-gradient(120deg, #fff 35%, var(--gold) 70%, #FF8A65);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--muted); margin-top: 8px; font-size: 14.5px; }

.stage { text-align: center; }
#drawBtn {
  margin: 22px 0 10px; padding: 16px 44px; font-size: 17px; font-weight: 800;
  color: #16120a; background: linear-gradient(135deg, var(--gold), #FFB300);
  border: none; border-radius: 999px; cursor: pointer; transition: transform .15s, filter .15s;
}
#drawBtn:hover { filter: brightness(1.08); transform: translateY(-1px); }
#drawBtn:active { transform: scale(.97); }
#again { color: var(--muted); font-size: 13px; }

.cardWrap { position: relative; margin-top: 14px; }
#card { width: 100%; max-width: 360px; height: auto; border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.12); }
.resSummary { text-align: left; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 18px; margin-top: 14px; }
.resSummary p { font-size: 14.5px; margin-bottom: 8px; }
.resSummary b { color: var(--gold); }

.shareBox { margin-top: 18px; }
.shareBox h3 { font-size: 15px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
#shareBar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
#shareBar a { font-size: 13.5px; color: var(--text); text-decoration: none;
  padding: 9px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
#shareBar a:hover { border-color: var(--gold); }
#copyLink { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 700;
  color: #16120a; background: var(--green); padding: 10px 24px; border-radius: 999px;
  cursor: pointer; border: none; }

.slot { margin: 26px 0; }
.slot.promo { display: block; text-decoration: none; background: var(--card);
  border: 1px dashed rgba(224,82,82,.4); border-radius: 14px; padding: 15px 17px; }
.slot.promo .t { font-weight: 700; font-size: 15px; }
.slot.promo .x { font-size: 13px; color: var(--muted); margin-top: 3px; }
.slot.promo .go { display: inline-block; margin-top: 8px; color: var(--red); font-weight: 700; font-size: 13px; }

#again { text-align: center; display: block; margin: 4px auto 0; }

.toast { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(16px);
  background: var(--green); color: #06220f; font-size: 14px; font-weight: 700;
  padding: 10px 22px; border-radius: 999px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 99; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

footer.site { margin-top: 40px; text-align: center; color: #565b70; font-size: 12px; }
[hidden] { display: none !important; }
