:root {
  --bg: #faf8f3;
  --surface: #ffffff;
  --ink: #18181b;
  --ink-muted: #5a5751;
  --line: #e7e2d8;
  --mint: #4fb286;
  --mint-dark: #2c7f5a;
  --coral: #ef476f;
  --orange: #ff8a3d;
  --amber: #ffd166;
  --sky: #4ea8de;
  --purple: #7c5cff;
  --radius-xl: 26px;
  --radius-lg: 20px;
  --shadow-card: 0 14px 36px rgba(24, 24, 27, 0.07);
  --shadow-hover: 0 22px 46px rgba(24, 24, 27, 0.13);
  --font-display: 'Zen Maru Gothic', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
  --font-body: 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(circle at 10% 8%, rgba(79, 178, 134, 0.15), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(255, 138, 61, 0.14), transparent 34%),
    radial-gradient(circle at 50% 88%, rgba(239, 71, 111, 0.1), transparent 42%),
    radial-gradient(rgba(24, 24, 27, 0.065) 1.2px, transparent 1.2px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 26px 26px;
}

.container {
  width: min(1160px, 100% - 32px);
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

/* ==================== 好友踢館戰帖橫幅 ==================== */
.challenge-banner {
  background: linear-gradient(95deg, #ef476f, #ff8a3d);
  color: #fff;
  padding: 10px 0;
  box-shadow: 0 6px 20px rgba(239, 71, 111, 0.3);
}

.challenge-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.challenge-banner-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 800;
}

.challenge-badge {
  background: rgba(24, 24, 27, 0.28);
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.8rem;
}

.challenge-cta {
  text-decoration: none;
  background: #fff;
  color: #c92a4f;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.88rem;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.14s;
}

.challenge-cta:hover {
  transform: scale(1.04);
}

/* ==================== 頂部導覽列 ==================== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 25;
  background: rgba(250, 248, 243, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px solid rgba(231, 226, 216, 0.9);
}

.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.brand-at {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(24, 24, 27, 0.18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 900;
}

.brand-text span {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.14s, color 0.14s;
}

.nav-links a:hover {
  background: #efeae0;
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.streak-pill {
  background: #fff3dd;
  color: #b55400;
  border: 1.5px solid #ffd485;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
}

.share-pill {
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.84rem;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.14s;
}

.share-pill:hover {
  transform: translateY(-2px);
}

/* ==================== Hero 與即時數據戰報 ==================== */
.hero {
  display: grid;
  grid-template-columns: 1.18fr 0.96fr;
  gap: 28px;
  align-items: center;
  padding: 36px 0 24px;
}

.hero-eyebrow {
  display: inline-block;
  background: #fff3d6;
  color: #9e5900;
  border: 1.5px solid #ffd882;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.1vw, 3.1rem);
  font-weight: 900;
  line-height: 1.16;
  margin-bottom: 12px;
}

.hero-title span {
  background: linear-gradient(120deg, var(--coral), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  color: var(--ink-muted);
  font-size: 0.96rem;
  max-width: 560px;
  margin-bottom: 16px;
}

.playability-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.ease-pill {
  background: #fff;
  border: 1.5px solid #e4ddd0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink);
  box-shadow: 0 3px 10px rgba(24, 24, 27, 0.04);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.btn-hero-primary,
.btn-hero-secondary {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.98rem;
  padding: 13px 22px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: transform 0.14s, filter 0.14s;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--mint), var(--mint-dark));
  color: #fff;
  box-shadow: 0 6px 0 #1f6043, 0 12px 26px rgba(79, 178, 134, 0.28);
}

.btn-hero-secondary {
  background: #fff;
  color: var(--ink);
  border: 2.5px solid var(--ink);
  box-shadow: 0 5px 0 rgba(24, 24, 27, 0.15);
}

.btn-hero-primary:hover,
.btn-hero-secondary:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

/* Cloudflare D1 即時戰報卡 */
.live-telemetry-card {
  background: var(--surface);
  border: 2.5px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.telemetry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 900;
  color: var(--mint-dark);
  background: #e7f7ef;
  padding: 4px 12px;
  border-radius: 999px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(79, 178, 134, 0.25);
  animation: pulseDot 1.5s infinite;
}

.telemetry-source {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--ink-muted);
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.metric-tile {
  background: #f8f5ef;
  border: 1.5px solid #ede7dc;
  border-radius: 16px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.metric-icon {
  font-size: 1.1rem;
  line-height: 1;
  margin-bottom: 2px;
}

.metric-tile strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--ink);
}

.metric-tile small {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.dual-index-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  background: #fcfaf6;
  border: 1.5px solid #eee8dd;
  border-radius: 16px;
}

.index-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.index-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.83rem;
}

.index-meta small {
  font-size: 0.73rem;
  color: var(--ink-muted);
  font-weight: 700;
}

.index-score {
  font-family: var(--font-display);
  font-weight: 900;
}

.index-score.hot { color: #d63259; }
.index-score.easy { color: var(--mint-dark); }

.index-track {
  width: 100%;
  height: 9px;
  background: #e9e3d9;
  border-radius: 999px;
  overflow: hidden;
}

.index-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.45s ease;
}

.index-fill.hot {
  background: linear-gradient(90deg, #ff8a3d, #ef476f);
}

.index-fill.easy {
  background: linear-gradient(90deg, #4ea8de, #4fb286);
}

.quick-rate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--ink-muted);
}

.quick-rate-btns {
  display: flex;
  gap: 6px;
}

.micro-vote-btn {
  border: 1.5px solid transparent;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.12s, filter 0.12s;
}

.micro-vote-btn.hot {
  background: #ffe8ee;
  color: #c92a4f;
  border-color: #f9b8c8;
}

.micro-vote-btn.easy {
  background: #e5f6ee;
  color: var(--mint-dark);
  border-color: #a8dfc4;
}

.micro-vote-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.micro-vote-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* ==================== 上癮性留存面板（頭銜 XP + 每日任務） ==================== */
.retention-strip {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 18px;
  margin-bottom: 34px;
}

.profile-rank-box,
.missions-box {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.rank-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.rank-avatar {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: #fff5db;
  border: 2px solid #ffd67a;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
}

.rank-info {
  flex: 1;
  line-height: 1.2;
}

.rank-label {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.rank-info strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 900;
}

.xp-pill {
  background: var(--ink);
  color: #ffd166;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 999px;
}

.xp-track {
  height: 10px;
  background: #ece6dc;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.xp-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffb703, #ff8a3d, #ef476f);
  transition: width 0.35s ease;
}

.rank-sub-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.missions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.missions-tag {
  font-size: 0.76rem;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef8f2;
  color: var(--mint-dark);
}

.missions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mission-item {
  background: #f9f6f0;
  border: 1.5px solid #eae4d9;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}

.mission-item.done {
  background: #eaf8f0;
  border-color: #9ddbb9;
}

.mission-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 900;
}

.mission-xp {
  color: #b55400;
  background: #fff1cf;
  padding: 1px 7px;
  border-radius: 999px;
}

.mission-item.done .mission-xp {
  background: var(--mint);
  color: #fff;
}

.mission-text {
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.35;
}

/* ==================== 區塊標題 ==================== */
.section-block {
  margin-bottom: 38px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.section-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--mint-dark);
  margin-bottom: 2px;
}

.section-title,
.panel-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.2;
}

.panel-title {
  font-size: 1.32rem;
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.84rem;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ==================== 遊戲展示卡片 ==================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 22px;
}

.game-card {
  background: var(--surface);
  border: 2.5px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--mint);
}

.card-cover {
  position: relative;
  height: 210px;
  overflow: hidden;
  border-bottom: 2px solid var(--line);
}

.card-cover svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cover-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.game-num-pill {
  background: rgba(24, 24, 27, 0.9);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 4px 11px;
  border-radius: 999px;
}

.game-hot-pill {
  background: linear-gradient(135deg, var(--coral), var(--orange));
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 900;
  padding: 4px 11px;
  border-radius: 999px;
}

.cover-viral-strip {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: rgba(24, 24, 27, 0.8);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 900;
  line-height: 1.25;
}

.card-subtitle {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--mint-dark);
}

.card-desc {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* 3 秒上手微圖解 */
.easy-steps-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.easy-step-chip {
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 10px;
  background: #edf8f2;
  color: var(--mint-dark);
  border: 1px solid #ccebd9;
}

/* 卡片即時數據條 */
.card-live-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #faf7f2;
  border: 1.5px solid #ece6dc;
  border-radius: 14px;
  padding: 9px 10px;
  text-align: center;
}

.card-live-stats div {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.card-live-stats strong {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 900;
}

.card-live-stats small {
  font-size: 0.7rem;
  color: var(--ink-muted);
  font-weight: 700;
}

.source-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.77rem;
  color: var(--ink-muted);
}

.source-box a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.source-box a:hover {
  text-decoration: underline;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.btn-play {
  flex: 1.3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--mint), var(--mint-dark));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.96rem;
  padding: 11px 14px;
  border-radius: 14px;
  box-shadow: 0 5px 0 #1f6043;
  transition: transform 0.12s;
}

.btn-play:hover {
  transform: translateY(-2px);
}

.btn-challenge-card {
  flex: 0.9;
  border: 2px solid #ffb3c4;
  background: #fff0f4;
  color: #c92a4f;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  padding: 10px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.12s, background 0.14s;
}

.btn-challenge-card:hover {
  transform: translateY(-2px);
  background: #ffe1e9;
}

/* 敬請期待預告卡 */
.coming-card {
  background: rgba(255, 255, 255, 0.78);
  border: 2.5px dashed #cfc7ba;
  border-radius: var(--radius-xl);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  min-height: 440px;
}

.coming-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: #f4efe6;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
}

.coming-pill {
  background: #f3efe7;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 5px 13px;
  border-radius: 999px;
}

.coming-cta {
  text-decoration: none;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: 999px;
  margin-top: 4px;
}

/* ==================== 病毒工作室 × 全球英雄榜 ==================== */
.dual-board-section {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 22px;
  margin-bottom: 34px;
}

.panel-card {
  background: var(--surface);
  border: 2.5px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.panel-desc {
  font-size: 0.86rem;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.viral-chip {
  background: #ffe8ee;
  color: #c92a4f;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.viral-chip.mint {
  background: #e7f7ef;
  color: var(--mint-dark);
}

.game-pill-mini {
  background: #f4efe6;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 4px 11px;
  border-radius: 999px;
}

.studio-form-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
  margin-bottom: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink);
}

.field input,
.field select {
  width: 100%;
  padding: 9px 12px;
  border-radius: 12px;
  border: 2px solid #e3ddd2;
  background: #fcfaf6;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.14s;
}

.field input:focus,
.field select:focus {
  border-color: var(--ink);
  background: #fff;
}

.post-preview-box {
  background: #18181b;
  color: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.post-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 800;
  color: #a1a1aa;
  margin-bottom: 8px;
}

.score-tag {
  background: rgba(255, 209, 102, 0.18);
  color: #ffd166;
  padding: 2px 9px;
  border-radius: 999px;
}

#viral-post-preview {
  width: 100%;
  resize: none;
  border: none;
  background: transparent;
  color: #f4f4f5;
  font-family: var(--font-body);
  font-size: 0.86rem;
  line-height: 1.55;
  outline: none;
}

.viral-btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-threads-intent,
.btn-copy-viral {
  flex: 1;
  min-width: 170px;
  border: none;
  padding: 11px 16px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.12s;
}

.btn-threads-intent {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 5px 0 #09090b;
}

.btn-copy-viral {
  background: #fff2da;
  color: #a65200;
  border: 2px solid #ffd166;
}

.btn-threads-intent:hover,
.btn-copy-viral:hover {
  transform: translateY(-2px);
}

/* 全球英雄榜 */
.leaderboard-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  min-height: 225px;
}

.lb-row {
  display: grid;
  grid-template-columns: 34px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 14px;
  background: #f9f6f0;
  border: 1.5px solid #ede7dc;
}

.lb-row.top1 { background: #fff8e1; border-color: #ffd670; }
.lb-row.top2 { background: #f4f6f9; border-color: #d6dde6; }
.lb-row.top3 { background: #fdf1e8; border-color: #f2c4a2; }

.lb-pos {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 900;
  text-align: center;
}

.lb-user {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.lb-user strong {
  font-size: 0.9rem;
}

.lb-user small {
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.lb-rank-badge {
  background: #ffe8ee;
  color: #c92a4f;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 999px;
}

.lb-score {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 900;
}

.lb-empty {
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.88rem;
  padding: 40px 14px;
  background: #faf7f2;
  border-radius: 16px;
  border: 1.5px dashed #dfd8cc;
}

.lb-submit-box {
  background: #f4fbf7;
  border: 1.5px solid #bfe7d3;
  border-radius: 16px;
  padding: 12px;
}

.lb-submit-info {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--mint-dark);
  margin-bottom: 8px;
}

.lb-submit-row {
  display: flex;
  gap: 8px;
}

.lb-submit-row input {
  flex: 1;
  padding: 8px 11px;
  border-radius: 11px;
  border: 2px solid #cbe8d9;
  font-family: var(--font-body);
  font-size: 0.86rem;
}

.btn-submit-score {
  border: none;
  background: var(--mint);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 11px;
  cursor: pointer;
}

.btn-submit-score:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ==================== 爆紅影片許願投票池 ==================== */
.wish-section {
  margin-bottom: 48px;
}

.wish-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.wish-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wish-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #faf7f2;
  border: 1.5px solid #eae4d9;
}

.wish-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.wish-main strong {
  font-size: 0.92rem;
  line-height: 1.35;
}

.wish-meta {
  font-size: 0.74rem;
  color: var(--ink-muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.wish-meta a {
  color: var(--mint-dark);
  font-weight: 800;
  text-decoration: none;
}

.btn-wish-vote {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 2px solid #e3ddd2;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.86rem;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.14s, background 0.14s;
}

.btn-wish-vote:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--coral);
  background: #fff1f5;
  color: #c92a4f;
}

.btn-wish-vote.voted {
  background: #ffe8ee;
  border-color: #f7a7bc;
  color: #c92a4f;
}

.wish-form {
  background: #fcfaf6;
  border: 2px solid #ebe5da;
  border-radius: 20px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.wish-form h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
}

.wish-form p {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: -4px;
}

.btn-wish-submit {
  border: none;
  background: linear-gradient(135deg, var(--coral), var(--orange));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.92rem;
  padding: 11px 16px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 5px 0 #b8294d;
  transition: transform 0.12s;
}

.btn-wish-submit:hover {
  transform: translateY(-2px);
}

/* ==================== 頁尾與 Toast ==================== */
.site-footer {
  border-top: 1.5px solid var(--line);
  padding: 24px 0 36px;
  text-align: center;
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hub-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  z-index: 50;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.28); opacity: 0.72; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero,
  .retention-strip,
  .dual-board-section,
  .wish-layout {
    grid-template-columns: 1fr;
  }
  .missions-grid {
    grid-template-columns: 1fr;
  }
  .studio-form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
  .streak-pill {
    display: none;
  }
}
