/* ============================================================
   Poki Five Funs — Global Stylesheet
   Mobile-first · max-width 480px · AdSense compliant
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif; line-height: 1.5; color: #2d2d44; background: #FFF5F8; min-height: 100vh; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }
canvas { display: block; }

/* ---------- Design Tokens ---------- */
:root {
  --color-primary: #FF6B9D;       /* 粉 */
  --color-primary-2: #6C5CE7;     /* 紫 */
  --color-accent: #FFD93D;        /* 黄 */
  --color-bg: #FFF5F8;
  --color-bg-2: #F0F4FF;
  --color-card: #FFFFFF;
  --color-text: #2d2d44;
  --color-text-2: #6b6b85;
  --color-border: #f0e6ee;
  --color-success: #2ed573;
  --color-warning: #ffa502;
  --shadow-sm: 0 2px 8px rgba(255,107,157,0.10);
  --shadow-md: 0 6px 18px rgba(108,92,231,0.15);
  --shadow-lg: 0 12px 32px rgba(255,107,157,0.20);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --nav-h: 64px;
  --max-w: 480px;
}

/* ---------- Layout Shell ---------- */
.app {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--color-bg);
  position: relative;
  padding-bottom: calc(var(--nav-h) + 24px);
  box-shadow: 0 0 60px rgba(108,92,231,0.08);
}

/* ---------- Top Bar ---------- */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-2) 100%);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(108,92,231,0.25);
}
.top-bar .logo {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Fredoka One', system-ui, sans-serif;
  font-size: 20px;
  letter-spacing: 0.5px;
}
.top-bar .logo-mark {
  width: 32px; height: 32px; border-radius: 10px;
  background: #fff; color: var(--color-primary);
  display: grid; place-items: center;
  font-size: 18px;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.06);
}
.top-bar .top-actions { display: flex; gap: 12px; align-items: center; }
.top-bar .icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.18);
  transition: transform .2s, background .2s;
}
.top-bar .icon-btn:hover { background: rgba(255,255,255,0.30); transform: scale(1.06); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 32px 20px 36px;
  background: linear-gradient(160deg, #FF6B9D 0%, #FF8DC7 35%, #6C5CE7 100%);
  color: #fff;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.10);
  animation: floatY 6s ease-in-out infinite;
}
.hero::before { width: 120px; height: 120px; top: -40px; right: -30px; }
.hero::after  { width: 80px;  height: 80px;  bottom: -20px; left: 20px; animation-delay: -3s; }
.hero-eyebrow { font-size: 12px; font-weight: 700; opacity: 0.92; letter-spacing: 1.5px; text-transform: uppercase; }
.hero h1 {
  font-family: 'Fredoka One', system-ui, sans-serif;
  font-size: 32px; line-height: 1.15;
  margin: 6px 0 10px;
  text-shadow: 0 3px 0 rgba(0,0,0,0.10);
}
.hero p { font-size: 14px; opacity: 0.95; max-width: 320px; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; padding: 12px 22px;
  background: #fff; color: var(--color-primary);
  border-radius: var(--radius-pill);
  font-weight: 800; font-size: 14px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  transition: transform .2s, box-shadow .2s;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,0.22); }

@keyframes floatY {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-14px) scale(1.04); }
}

/* ---------- Section ---------- */
.section { padding: 24px 16px 8px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Fredoka One', system-ui, sans-serif;
  font-size: 18px; color: var(--color-text);
  display: flex; align-items: center; gap: 8px;
}
.section-title::before {
  content: ""; width: 6px; height: 22px; border-radius: 4px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-primary-2));
}
.section-link { font-size: 12px; color: var(--color-primary-2); font-weight: 700; }

/* ---------- Game Grid (2 columns) ---------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.game-card {
  background: var(--color-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
  position: relative;
  border: 2px solid transparent;
}
.game-card:hover, .game-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
  outline: none;
}
.game-card .thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  font-size: 56px;
  background: var(--color-bg-2);
  overflow: hidden;
}
.game-card .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.04));
}
.game-card .featured-badge {
  position: absolute; top: 8px; left: 8px;
  background: linear-gradient(135deg, #FFD93D, #FF8C42);
  color: #fff; font-size: 10px; font-weight: 800;
  padding: 2px 8px; border-radius: var(--radius-pill);
  text-transform: uppercase; letter-spacing: 0.5px;
  z-index: 1;
}
.game-card .play-overlay {
  position: absolute; right: 8px; bottom: 8px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-primary);
  color: #fff; display: grid; place-items: center;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(255,107,157,0.40);
  z-index: 1;
  transition: transform .2s;
}
.game-card:hover .play-overlay { transform: scale(1.12) rotate(8deg); }
.game-card .meta {
  padding: 10px 12px 12px;
  flex: 1; display: flex; flex-direction: column; gap: 4px;
}
.game-card .name {
  font-weight: 800; font-size: 13px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.game-card .sub {
  font-size: 11px; color: var(--color-text-2);
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.game-card .star { color: #FFB300; }

/* Horizontal scroll list */
.game-row {
  display: flex; gap: 12px;
  overflow-x: auto; padding: 4px 16px 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.game-row::-webkit-scrollbar { display: none; }
.game-row .game-card {
  min-width: 160px; max-width: 160px;
  scroll-snap-align: start;
}
.game-row .game-card .thumb { aspect-ratio: 1 / 1; font-size: 44px; }

/* ---------- Category Pills ---------- */
.pill-row {
  display: flex; gap: 8px; padding: 4px 16px 12px;
  overflow-x: auto; scrollbar-width: none;
}
.pill-row::-webkit-scrollbar { display: none; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: var(--color-card);
  font-size: 12px; font-weight: 700; color: var(--color-text);
  white-space: nowrap;
  border: 2px solid var(--color-border);
  transition: all .2s;
}
.pill.is-active {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
  color: #fff; border-color: transparent;
  box-shadow: var(--shadow-sm);
}
.pill:hover { transform: translateY(-1px); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.6; }

/* ---------- Star Rating ---------- */
.stars { display: inline-flex; align-items: center; gap: 2px; color: #FFB300; font-size: 12px; }
.stars .empty { color: #e2d8e0; }
.stars-text { font-size: 12px; color: var(--color-text-2); margin-left: 4px; }

/* ---------- Search Bar (list page) ---------- */
.search-wrap {
  padding: 12px 16px;
  background: var(--color-card);
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--color-border);
}
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--color-bg-2);
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: border-color .2s, background .2s;
}
.search:focus-within { border-color: var(--color-primary-2); background: #fff; }
.search input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 14px; color: var(--color-text);
}
.search input::placeholder { color: var(--color-text-2); }
.search-icon { color: var(--color-text-2); font-size: 16px; }

.list-toolbar {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 8px 16px 12px;
  font-size: 12px; color: var(--color-text-2);
}
.list-toolbar select {
  padding: 6px 10px; border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: #fff; font-size: 12px; color: var(--color-text);
  outline: none;
}

.no-results {
  padding: 60px 20px; text-align: center; color: var(--color-text-2);
  font-size: 14px;
}
.no-results .emoji { font-size: 48px; margin-bottom: 12px; display: block; }

/* ---------- Ad Slot (通用容器) ---------- */
.ad-slot {
  margin: 16px auto;
  padding: 0;
  display: flex; justify-content: center;
  background: repeating-linear-gradient(45deg, #faf6fb, #faf6fb 8px, #f5eef5 8px, #f5eef5 16px);
  border-radius: var(--radius-md);
  min-height: 60px;
  align-items: center;
}
.ad-slot::before {
  content: "AD"; color: #c5b6c8; font-size: 10px; letter-spacing: 1.5px;
  font-weight: 800;
}
.ad-slot > div[id^="div-gpt-ad"] { background: #fff; border-radius: 8px; }

/* ---------- Detail Page ---------- */
.detail-hero {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid; place-items: center;
  font-size: 96px;
  border-radius: 0 0 32px 32px;
  overflow: hidden;
}
.detail-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.20));
}
.detail-title-row {
  padding: 18px 16px 6px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 8px;
}
.detail-title-row h1 {
  font-family: 'Fredoka One', system-ui, sans-serif;
  font-size: 22px; line-height: 1.2; color: var(--color-text);
}
.detail-sub { font-size: 13px; color: var(--color-text-2); padding: 0 16px; }
.detail-actions { display: flex; gap: 10px; padding: 16px; }
.btn-play {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
  color: #fff; font-weight: 800; font-size: 16px;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 18px rgba(255,107,157,0.35);
  transition: transform .2s, box-shadow .2s;
}
.btn-play:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(255,107,157,0.45); }
.btn-like {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--color-card);
  display: grid; place-items: center;
  font-size: 22px;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--color-border);
  transition: all .2s;
}
.btn-like:hover, .btn-like.is-liked {
  background: #FFE0EC; border-color: var(--color-primary); color: var(--color-primary);
}

.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 12px 16px; gap: 8px;
  background: var(--color-card); margin: 8px 16px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.stat {
  text-align: center; padding: 8px 4px;
}
.stat-value { font-family: 'Fredoka One', system-ui, sans-serif; font-size: 18px; color: var(--color-text); }
.stat-label { font-size: 11px; color: var(--color-text-2); text-transform: uppercase; letter-spacing: 0.5px; }

.info-block {
  margin: 16px; padding: 16px;
  background: var(--color-card); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.info-block h2 {
  font-family: 'Fredoka One', system-ui, sans-serif;
  font-size: 16px; color: var(--color-text);
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.info-block p { font-size: 14px; color: var(--color-text-2); line-height: 1.6; }
.info-block ol, .info-block ul { padding-left: 18px; }
.info-block li {
  font-size: 14px; color: var(--color-text-2);
  margin: 6px 0; padding-left: 4px;
}
.info-block li::marker { color: var(--color-primary); }

.tag-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 16px;
}
.tag {
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: var(--color-bg-2); color: var(--color-text-2);
  font-size: 11px; font-weight: 700;
}
.tag.is-primary { background: #FFE0EC; color: var(--color-primary); }

/* ---------- Comments ---------- */
.comments { margin: 16px; }
.comment {
  display: flex; gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}
.comment:last-child { border-bottom: none; }
.comment-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-bg-2);
  display: grid; place-items: center; font-size: 20px;
  flex-shrink: 0;
}
.comment-body { flex: 1; }
.comment-head { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.comment-name { font-weight: 800; color: var(--color-text); }
.comment-date { color: var(--color-text-2); }
.comment-stars { font-size: 11px; }
.comment-text { font-size: 13px; color: var(--color-text-2); margin-top: 4px; line-height: 1.5; }

/* ---------- Bottom Nav ---------- */
.bottom-nav {
  position: fixed;
  left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: var(--max-w);
  background: #fff;
  border-top: 1px solid var(--color-border);
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: var(--nav-h);
  z-index: 25;
  box-shadow: 0 -4px 16px rgba(108,92,231,0.10);
}
.bottom-nav .nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  color: var(--color-text-2);
  font-size: 11px; font-weight: 700;
  position: relative;
  transition: color .2s;
}
.bottom-nav .nav-item .nav-ico { font-size: 22px; line-height: 1; }
.bottom-nav .nav-item.is-active { color: var(--color-primary); }
.bottom-nav .nav-item.is-active::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-2));
}

/* ---------- Play Page ---------- */
.play-shell {
  max-width: var(--max-w);
  margin: 0 auto;
  background: #000;
  min-height: 100vh;
  position: relative;
  display: flex; flex-direction: column;
}
.play-frame {
  position: relative;
  flex: 1; width: 100%;
  background: linear-gradient(135deg, #1a0033, #2d1b4e);
  overflow: hidden;
}
.play-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0;
  background: transparent;
}
.play-top {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; z-index: 10;
  background: linear-gradient(180deg, rgba(0,0,0,0.45), transparent);
  color: #fff;
}
.play-top .back-btn, .play-top .info-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  color: #fff; font-size: 18px;
  transition: background .2s;
}
.play-top .back-btn:hover, .play-top .info-btn:hover { background: rgba(255,255,255,0.25); }
.play-top .game-label {
  font-family: 'Fredoka One', system-ui, sans-serif; font-size: 14px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  max-width: 60%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.play-bottom-ad {
  background: #000; min-height: 60px;
  display: flex; justify-content: center; align-items: center;
}
.play-loading {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, #1a0033, #2d1b4e);
}
.play-loading.hide { display: none; }
.play-loading .ball {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
  animation: ballPulse 1.2s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(255,107,157,0.6);
}
.play-loading p { margin-top: 16px; font-size: 14px; opacity: 0.8; }
@keyframes ballPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.20); }
}

/* ---------- Privacy / Terms / Contact ---------- */
.legal {
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--color-bg);
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + 24px);
}
.legal-header {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
  color: #fff; padding: 24px 16px 20px;
}
.legal-header h1 {
  font-family: 'Fredoka One', system-ui, sans-serif;
  font-size: 22px; line-height: 1.2;
}
.legal-header p { font-size: 12px; opacity: 0.85; margin-top: 4px; }
.legal-body {
  padding: 16px; font-size: 14px; line-height: 1.7;
  color: var(--color-text-2);
}
.legal-body h2 {
  font-family: 'Fredoka One', system-ui, sans-serif;
  font-size: 16px; color: var(--color-text);
  margin: 18px 0 8px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin-bottom: 10px; }
.legal-body ul, .legal-body ol { padding-left: 18px; margin-bottom: 10px; }
.legal-body li { margin: 4px 0; }
.legal-body a { color: var(--color-primary); text-decoration: underline; }

/* ---------- Contact form ---------- */
.contact-form {
  margin: 16px; padding: 16px;
  background: var(--color-card); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 12px;
}
.contact-form label { font-size: 12px; font-weight: 800; color: var(--color-text); }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--color-bg);
  color: var(--color-text);
  outline: none;
  transition: border-color .2s, background .2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--color-primary-2);
  background: #fff;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .btn-submit {
  padding: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
  color: #fff; font-weight: 800; font-size: 15px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 14px rgba(255,107,157,0.35);
  transition: transform .2s;
}
.contact-form .btn-submit:hover { transform: translateY(-2px); }
.contact-info {
  margin: 16px; padding: 14px;
  background: var(--color-card); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-size: 13px; color: var(--color-text-2);
}
.contact-info .row { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.contact-info .row .ic { font-size: 16px; }

/* ---------- 404 page ---------- */
.error-shell {
  max-width: var(--max-w);
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(160deg, #FF6B9D 0%, #6C5CE7 100%);
  color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 24px; text-align: center;
}
.error-shell .big {
  font-family: 'Fredoka One', system-ui, sans-serif;
  font-size: 120px; line-height: 1;
  text-shadow: 0 6px 0 rgba(0,0,0,0.10);
}
.error-shell .sub { font-size: 18px; margin-top: 8px; font-weight: 700; }
.error-shell p { margin: 8px 0 24px; opacity: 0.9; font-size: 14px; }
.error-shell .btn-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 24px;
  background: #fff; color: var(--color-primary);
  border-radius: var(--radius-pill);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  transition: transform .2s;
}
.error-shell .btn-back:hover { transform: translateY(-2px); }

/* ---------- Loading overlay ---------- */
.loading-overlay {
  position: fixed; inset: 0;
  background: linear-gradient(160deg, #FF6B9D 0%, #6C5CE7 100%);
  display: grid; place-items: center; z-index: 99;
  transition: opacity .4s, visibility .4s;
}
.loading-overlay.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-overlay .core {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: #fff;
}
.loading-overlay .ball {
  width: 56px; height: 56px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 30px rgba(255,255,255,0.5);
  animation: ballPulse 1.2s ease-in-out infinite;
}
.loading-overlay .text {
  font-family: 'Fredoka One', system-ui, sans-serif;
  font-size: 18px; letter-spacing: 1px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px);
  transform: translateX(-50%) translateY(20px);
  background: rgba(45,45,68,0.95); color: #fff;
  padding: 10px 18px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 700;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 50;
  max-width: 90%;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Breadcrumb (detail page) ---------- */
.crumbs {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px 0;
  font-size: 12px; color: var(--color-text-2);
  flex-wrap: wrap;
}
.crumbs a { color: var(--color-primary-2); font-weight: 700; }
.crumbs .sep { opacity: 0.5; }
.crumbs .cur { color: var(--color-text); font-weight: 800; }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .5s ease-out both; }
.fade-up.d1 { animation-delay: .05s; }
.fade-up.d2 { animation-delay: .10s; }
.fade-up.d3 { animation-delay: .15s; }
.fade-up.d4 { animation-delay: .20s; }
.fade-up.d5 { animation-delay: .25s; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-3px); }
  40%, 80% { transform: translateX(3px); }
}
.shake { animation: shake .4s ease-in-out; }

/* ---------- Footer (in app shell, above bottom nav) ---------- */
.site-footer {
  padding: 24px 16px 16px;
  text-align: center;
  font-size: 12px; color: var(--color-text-2);
  border-top: 1px solid var(--color-border);
  margin: 16px 16px 0;
}
.site-footer a { color: var(--color-primary-2); font-weight: 700; }
.site-footer .links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 6px; }
.site-footer .copy { opacity: 0.7; margin-top: 4px; }

/* ---------- Responsive (PC 端) ---------- */
@media (min-width: 600px) {
  body { background: linear-gradient(135deg, #f5e8f1 0%, #e8e6f7 100%); padding: 16px 0; }
  .app, .play-shell, .legal, .error-shell { box-shadow: 0 12px 60px rgba(108,92,231,0.20); border-radius: 24px; }
  .bottom-nav { border-radius: 0 0 24px 24px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
