/* WishBell — dark Christmas theme, mobile-first */
:root {
  --bg: #0f1014;
  --bg-soft: #171821;
  --card: #1e2030;
  --card-hover: #262a3f;
  --line: #2e3147;
  --text: #eef0f6;
  --muted: #9aa0b4;
  --red: #e05252;
  --red-soft: #ff6b6b;
  --green: #4ade80;
  --gold: #f7d794;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans", "Malgun Gothic", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text);
  min-height: 100vh; line-height: 1.6;
  overflow-x: hidden;
}

/* snowfall (pure CSS, GPU-friendly) */
.snow { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.snow i {
  position: absolute; top: -3vh; display: block;
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.75); opacity: .5;
  animation: fall linear infinite;
}
@keyframes fall {
  to { transform: translateY(105vh) translateX(4vw); opacity: .15; }
}

.wrap { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; padding: 0 16px 64px; }

/* header */
header.site { padding: 20px 0 8px; text-align: center; }
.logo { font-size: 22px; font-weight: 800; letter-spacing: .3px; text-decoration: none; color: var(--text); }
.logo .bell { color: var(--red-soft); }
.langs { display: flex; gap: 8px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.langs a {
  font-size: 13px; color: var(--muted); text-decoration: none;
  padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px;
  transition: color .15s, border-color .15s;
}
.langs a.on, .langs a:hover { color: var(--text); border-color: var(--red-soft); }

/* hero */
.hero { text-align: center; padding: 26px 0 18px; }
.hero h1 {
  font-size: clamp(26px, 6.5vw, 36px); font-weight: 800; line-height: 1.25;
  background: linear-gradient(120deg, #fff 30%, var(--gold) 60%, var(--red-soft));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { color: var(--muted); margin-top: 10px; font-size: 15px; }

/* search */
.search-box { position: relative; margin: 18px 0 12px; }
.search-box input {
  width: 100%; padding: 13px 44px 13px 44px;
  background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 15px; outline: none; transition: border-color .15s;
}
.search-box input:focus { border-color: var(--red-soft); }
.search-box .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; }
.search-box .dice { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: none; background: none; color: var(--gold); font-size: 18px; cursor: pointer; padding: 8px; }

/* category chips */
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cats::-webkit-scrollbar { display: none; }
.cats button {
  flex: 0 0 auto; font-size: 13.5px; white-space: nowrap;
  color: var(--muted); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px; cursor: pointer; transition: all .15s;
}
.cats button.on { color: #fff; background: var(--red); border-color: var(--red); }
.cats button:hover { color: var(--text); border-color: var(--red-soft); }

/* wish grid */
.grid { display: grid; gap: 12px; }
.wish-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 16px 12px;
  transition: background .15s, border-color .15s, transform .15s;
}
.wish-card:hover { background: var(--card-hover); border-color: #3d4160; transform: translateY(-1px); }
.wish-card .cat {
  display: inline-block; font-size: 11px; letter-spacing: .5px;
  color: var(--gold); background: rgba(247,215,148,.08);
  border: 1px solid rgba(247,215,148,.25);
  padding: 2px 9px; border-radius: 999px; margin-bottom: 8px;
}
.wish-card .txt { font-size: 15.5px; margin-bottom: 10px; word-break: break-word; }
.wish-card .copy {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted); background: none;
  border: 1px solid var(--line); border-radius: 9px;
  padding: 6px 12px; cursor: pointer; transition: all .15s;
}
.wish-card .copy:hover { color: var(--text); border-color: var(--red-soft); }
.wish-card .copy.done { color: var(--green); border-color: var(--green); }

/* ad slot + promo card */
.slot { margin: 14px 0; }
.slot.ad-slot { min-height: 0; }
.slot.ad-slot[data-loaded="1"] { border-radius: var(--radius); overflow: hidden; }
.ad-label { display: block; font-size: 10px; color: #565b70; text-align: center; letter-spacing: 1px; margin-bottom: 4px; }
.slot.promo {
  display: block; text-decoration: none;
  background: linear-gradient(135deg, rgba(224,82,82,.12), rgba(74,222,128,.08));
  border: 1px dashed rgba(224,82,82,.45);
  border-radius: var(--radius); padding: 16px;
}
.slot.promo .t { font-weight: 700; font-size: 15px; color: var(--text); }
.slot.promo .x { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.slot.promo .go { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--red-soft); font-weight: 600; }
.slot[hidden] { display: none; }

/* CTA banner */
.cta {
  margin: 30px 0 10px; text-align: center;
  background: linear-gradient(135deg, #1a2d1f, #1e2030);
  border: 1px solid rgba(74,222,128,.3);
  border-radius: 18px; padding: 24px 20px;
}
.cta h2 { font-size: 19px; }
.cta p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.cta a {
  display: inline-block; margin-top: 14px;
  background: var(--green); color: #06220f;
  font-weight: 700; font-size: 15px; text-decoration: none;
  padding: 12px 26px; border-radius: 999px;
  transition: filter .15s;
}
.cta a:hover { filter: brightness(1.1); }

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

footer.site { margin-top: 36px; text-align: center; color: #565b70; font-size: 12.5px; }
footer.site a { color: var(--muted); text-decoration: none; }

@media (min-width: 640px) {
  .grid { grid-template-columns: 1fr; }
}
