:root {
  --bg: #0f1115;
  --bg-soft: #171a21;
  --card: #1e222b;
  --text: #eceef2;
  --text-dim: #9aa1ad;
  --accent: #ff6b57;
  --accent2: #ffb347;
  --gold: #f5c451;
  --silver: #c8ced8;
  --bronze: #cd8b5a;
  --line: #2a2f3a;
  --radius: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(15, 17, 21, 0.82);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 32px; width: 32px; object-fit: cover; border-radius: 8px; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.main-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  font-size: 14px; color: var(--text-dim); padding: 6px 11px; border-radius: 20px;
  white-space: nowrap; transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--text); background: rgba(255,255,255,.07); }
.header-cta {
  font-size: 14px; white-space: nowrap; flex-shrink: 0;
  padding: 8px 18px; border-radius: 22px; color: #1a1207; font-weight: 700;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  transition: transform .2s, box-shadow .2s;
}
.header-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,107,87,.35); }

/* Hero */
.hero { padding: 56px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -120px; right: -100px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255,107,87,.22), transparent 68%);
  border-radius: 50%; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; position: relative; }
.hero-tag {
  display: inline-block; font-size: 13px; color: var(--accent2);
  border: 1px solid rgba(255,179,71,.4); border-radius: 20px; padding: 4px 14px; margin-bottom: 18px;
}
.hero h1 {
  font-size: 30px; line-height: 1.3; font-weight: 800; letter-spacing: .5px; margin-bottom: 16px;
}
.hero h1 span {
  background: linear-gradient(100deg, var(--accent2), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc { color: var(--text-dim); font-size: 15px; margin-bottom: 26px; max-width: 520px; }
.dl-group { display: flex; flex-wrap: wrap; gap: 14px; }
.dl-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 24px; border-radius: 14px; font-size: 15px; font-weight: 700;
  transition: transform .22s, box-shadow .22s, background .22s;
}
.dl-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.dl-btn.android { background: #2f7a4d; color: #fff; }
.dl-btn.android:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(47,122,77,.4); }
.dl-btn.ios {
  background: linear-gradient(135deg, var(--accent2), var(--accent)); color: #1a1207;
}
.dl-btn.ios:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255,107,87,.4); }
.hero-note { margin-top: 14px; font-size: 12.5px; color: #6f7784; }

.hero-visual { position: relative; display: flex; justify-content: center; gap: 12px; }
.hero-shot {
  width: 46%; border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  transform: perspective(900px) rotateY(-6deg);
  transition: transform .4s;
}
.hero-shot:nth-child(2) { transform: perspective(900px) rotateY(6deg) translateY(22px); }
.hero-shot:hover { transform: perspective(900px) rotateY(0) translateY(0); }
.hero-shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 9/14; }

/* Section common */
.section { padding: 52px 0; }
.section-head { margin-bottom: 28px; }
.section-head h2 {
  font-size: 24px; font-weight: 800; letter-spacing: .4px;
  background: linear-gradient(100deg, #fff, var(--accent2) 60%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
.section-head p { color: var(--text-dim); font-size: 14px; margin-top: 6px; }
.reveal { opacity: 1; transform: translateY(0); transition: transform .6s ease, opacity .6s ease; }
.reveal.pre { opacity: .01; transform: translateY(28px); }

/* Rankings */
.rank-cols { display: grid; grid-template-columns: 1fr; gap: 22px; }
.rank-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; }
.rank-panel h3 { font-size: 17px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.rank-panel h3 em { font-style: normal; font-size: 12px; color: var(--accent2); border: 1px solid rgba(255,179,71,.35); border-radius: 10px; padding: 1px 8px; }
.rank-list { list-style: none; }
.rank-item {
  display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px dashed rgba(255,255,255,.06);
  transition: background .2s, padding-left .2s;
}
.rank-item:last-child { border-bottom: none; }
.rank-item:hover { background: rgba(255,255,255,.04); padding-left: 6px; }
.rank-no {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; background: #2b303b; color: var(--silver);
}
.rank-no.top1 { background: linear-gradient(135deg, #f7d774, #d4a017); color: #3a2a00; }
.rank-no.top2 { background: linear-gradient(135deg, #e3e8ef, #9aa4b2); color: #2a2f3a; }
.rank-no.top3 { background: linear-gradient(135deg, #e0a578, #b06a34); color: #2e1804; }
.rank-title { flex: 1; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-heat { font-size: 12.5px; color: var(--text-dim); display: flex; align-items: center; gap: 3px; }
.rank-heat .fire { color: var(--accent); }
.rank-trend { font-size: 12px; width: 14px; text-align: center; }
.rank-trend.up { color: #ff7a5c; }
.rank-trend.down { color: #5fb584; }

/* Recommend cards */
.rec-scroll { display: flex; gap: 16px; overflow-x: auto; padding: 6px 2px 16px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rec-scroll::-webkit-scrollbar { height: 6px; }
.rec-scroll::-webkit-scrollbar-thumb { background: #333a46; border-radius: 6px; }
.rec-card {
  flex: 0 0 62%; max-width: 240px; scroll-snap-align: start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s, border-color .3s, box-shadow .3s;
}
.rec-card:hover { transform: translateY(-5px); border-color: rgba(255,107,87,.5); box-shadow: 0 14px 30px rgba(0,0,0,.4); }
.rec-thumb { position: relative; }
.rec-thumb img { width: 100%; aspect-ratio: 9/13; object-fit: cover; }
.rec-match {
  position: absolute; left: 8px; top: 8px; font-size: 11.5px; font-weight: 700;
  background: rgba(255,107,87,.92); color: #1a1207; padding: 2px 9px; border-radius: 12px;
}
.rec-body { padding: 11px 12px 14px; }
.rec-body strong { display: block; font-size: 14.5px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-body span { font-size: 12px; color: var(--text-dim); }
.scroll-hint { font-size: 12.5px; color: #6f7784; }

/* Category wall */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-tile {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px;
  transition: transform .25s, border-color .25s, background .25s;
}
.cat-tile:hover { transform: translateY(-3px); border-color: rgba(255,179,71,.45); background: #1c202a; }
.cat-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  background: linear-gradient(135deg, rgba(255,179,71,.22), rgba(255,107,87,.22));
}
.cat-tile strong { display: block; font-size: 14.5px; }
.cat-tile small { font-size: 12px; color: var(--text-dim); }

/* Finished picks */
.pick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.pick-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s, border-color .3s;
}
.pick-card:hover { transform: translateY(-4px); border-color: rgba(245,196,81,.45); }
.pick-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.pick-info { padding: 12px; }
.pick-info strong { font-size: 14.5px; display: block; margin-bottom: 6px; }
.pick-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.badge-score { font-size: 11.5px; font-weight: 700; color: #2b1d00; background: linear-gradient(135deg, #f7d774, #d4a017); padding: 1px 9px; border-radius: 10px; }
.badge-full { font-size: 11.5px; color: var(--accent2); border: 1px solid rgba(255,179,71,.4); padding: 1px 9px; border-radius: 10px; }

/* Welfare bar */
.welfare {
  background: linear-gradient(120deg, rgba(255,107,87,.16), rgba(255,179,71,.12));
  border: 1px solid rgba(255,107,87,.35); border-radius: 20px;
  padding: 22px 20px; display: flex; flex-direction: column; gap: 16px;
  align-items: flex-start;
}
.welfare-text strong { font-size: 18px; display: block; margin-bottom: 4px; }
.welfare-text span { font-size: 13.5px; color: #ffd7a8; }
.countdown-box { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-dim); }
.countdown { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 20px; color: var(--accent2); letter-spacing: 1px; }
.welfare-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-signin {
  padding: 11px 26px; border-radius: 12px; font-weight: 700; font-size: 14.5px;
  background: linear-gradient(135deg, var(--accent2), var(--accent)); color: #1a1207;
  transition: transform .2s, box-shadow .2s;
}
.btn-signin:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(255,107,87,.35); }
.signin-panel {
  display: none; width: 100%; background: #14171d; border: 1px solid var(--line);
  border-radius: 14px; padding: 16px;
}
.signin-panel.open { display: block; animation: fadeUp .3s ease; }
.signin-panel p { font-size: 13px; color: var(--text-dim); margin-bottom: 10px; }
.signin-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.day-cell {
  text-align: center; font-size: 12px; padding: 8px 4px; border-radius: 10px;
  background: #1c202a; border: 1px solid var(--line); color: var(--text-dim);
}
.day-cell.done { border-color: rgba(95,181,132,.5); color: #7fd6a5; background: rgba(95,181,132,.1); }
@keyframes fadeUp { from { opacity: .01; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Calendar */
.week-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 12px; }
.day-col { flex: 0 0 148px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px; }
.day-col h4 { font-size: 14px; margin-bottom: 4px; color: var(--accent2); }
.day-col ul { list-style: none; font-size: 12.5px; color: var(--text-dim); }
.day-col li { padding: 5px 0; border-bottom: 1px dashed rgba(255,255,255,.06); }
.day-col li:last-child { border-bottom: none; }
.sub-btn {
  margin-top: 9px; width: 100%; padding: 6px; border-radius: 8px; font-size: 12px;
  background: #2a2f3a; color: var(--text-dim); transition: background .25s, color .25s;
}
.sub-btn.on { background: rgba(95,181,132,.18); color: #7fd6a5; }

/* Stars */
.star-scroll { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; }
.star-card { flex: 0 0 132px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 10px; }
.star-avatar {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 9px;
  background: linear-gradient(135deg, #3a4152, #232833);
  display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--accent2); font-weight: 800;
}
.star-card strong { display: block; font-size: 14px; }
.star-card small { font-size: 11.5px; color: var(--text-dim); display: block; margin-bottom: 8px; }
.follow-btn { font-size: 12px; padding: 4px 14px; border-radius: 12px; background: #2a2f3a; color: var(--text-dim); transition: background .25s, color .25s; }
.follow-btn.on { background: rgba(255,107,87,.2); color: var(--accent); }

/* Meme wall */
.meme-wall { columns: 2; column-gap: 14px; }
.meme-card {
  break-inside: avoid; margin-bottom: 14px; border-radius: 14px; overflow: hidden;
  position: relative; border: 1px solid var(--line); background: var(--card);
  transition: transform .3s;
}
.meme-card:hover { transform: scale(1.02); }
.meme-card img { width: 100%; object-fit: cover; }
.meme-quote {
  padding: 10px 12px; font-size: 13px; color: var(--text);
}
.meme-src {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px;
  font-size: 11.5px; color: #fff; text-align: right;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
  opacity: 1; transition: opacity .3s;
}

/* Upcoming */
.upcoming-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.up-card { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.up-card img { width: 110px; aspect-ratio: 3/4; object-fit: cover; flex-shrink: 0; }
.up-body { padding: 14px 14px 14px 0; display: flex; flex-direction: column; justify-content: center; }
.up-body strong { font-size: 15px; margin-bottom: 5px; }
.up-body small { font-size: 12.5px; color: var(--text-dim); margin-bottom: 9px; display: block; }
.reserve-btn { align-self: flex-start; font-size: 12.5px; padding: 6px 16px; border-radius: 12px; background: #2a2f3a; color: var(--text-dim); transition: background .25s, color .25s; }
.reserve-btn.on { background: rgba(255,107,87,.2); color: var(--accent); }

/* Reviews */
.review-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.review-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.review-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.review-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #3a4152, #232833);
  display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--accent2); font-weight: 800;
}
.review-top strong { font-size: 14px; display: block; }
.stars { font-size: 12px; color: var(--gold); letter-spacing: 1px; }
.review-body { font-size: 13.5px; color: #c3c8d2; }
.review-foot { margin-top: 12px; font-size: 12px; color: var(--text-dim); display: flex; justify-content: space-between; align-items: center; }
.like-btn { background: none; color: var(--text-dim); font-size: 12px; transition: color .2s; }
.like-btn:hover { color: var(--accent); }
.write-entry {
  display: inline-block; margin-top: 18px; padding: 10px 24px; border-radius: 12px;
  border: 1px dashed rgba(255,179,71,.45); color: var(--accent2); font-size: 14px;
  transition: background .25s;
}
.write-entry:hover { background: rgba(255,179,71,.08); }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; }
.stat-num { font-size: 26px; font-weight: 800; color: var(--accent2); line-height: 1.2; }
.stat-card span { font-size: 12.5px; color: var(--text-dim); }

/* FAQ */
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; color: var(--text);
  padding: 15px 18px; font-size: 14.5px; display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.faq-q::after { content: "＋"; color: var(--accent2); font-size: 16px; transition: transform .3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 18px 16px; font-size: 13.5px; color: var(--text-dim); }

/* Modal */
.modal-mask {
  display: none; position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.66); align-items: center; justify-content: center; padding: 20px;
}
.modal-mask.open { display: flex; }
.modal-box {
  width: 100%; max-width: 400px; background: #1b1f27; border: 1px solid var(--line);
  border-radius: 18px; padding: 24px 22px;
  animation: fadeUp .28s ease;
}
.modal-box h3 { font-size: 16px; margin-bottom: 10px; }
.modal-box p { font-size: 13.5px; color: var(--text-dim); margin-bottom: 14px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input {
  flex: 1; min-width: 0; background: #12151b; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; color: var(--text); font-size: 12.5px;
}
.copy-row button {
  padding: 0 16px; border-radius: 10px; font-size: 13px; font-weight: 700;
  background: linear-gradient(135deg, var(--accent2), var(--accent)); color: #1a1207;
}
.modal-close { display: block; margin: 16px auto 0; background: none; color: var(--text-dim); font-size: 13px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0 40px; margin-top: 20px; }
.footer-search { margin-bottom: 22px; }
.footer-search h4 { font-size: 13px; color: var(--text-dim); margin-bottom: 10px; font-weight: 500; }
.search-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.search-tags a { font-size: 12px; color: #6f7784; border: 1px solid var(--line); border-radius: 14px; padding: 3px 11px; transition: color .2s, border-color .2s; }
.search-tags a:hover { color: var(--accent2); border-color: rgba(255,179,71,.4); }
.footer-meta { font-size: 12px; color: #5c6470; line-height: 1.9; }
.footer-meta a { color: #5c6470; }
.footer-meta a:hover { color: var(--text-dim); }
.footer-meta .update-time { display: block; }

@media (min-width: 768px) {
  .hero h1 { font-size: 40px; }
  .rank-cols { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .pick-grid { grid-template-columns: repeat(3, 1fr); }
  .welfare { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .upcoming-grid { grid-template-columns: 1fr 1fr; }
  .review-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .meme-wall { columns: 3; }
  .rec-card { flex: 0 0 30%; }
  .signin-days { grid-template-columns: repeat(7, 1fr); }
}

@media (min-width: 1024px) {
  .header-inner { height: 70px; }
  .hero { padding: 76px 0 56px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 50px; }
  .hero h1 { font-size: 46px; }
  .hero-desc { font-size: 16px; }
  .section { padding: 66px 0; }
  .section-head h2 { font-size: 28px; }
  .rec-card { flex: 0 0 23%; }
  .main-nav a { font-size: 14.5px; }
  .meme-wall { columns: 4; }
}