/* FastGame — Sunny Cartoon Arcade Design System (Desktop / Tablet / Mobile + RTL) */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@600;700&family=Nunito:wght@600;700;800;900&display=swap');

:root {
  --bg: #eef6ff;
  --bg-dot: #d6e8ff;
  --surface: #ffffff;
  --surface-soft: #fff9eb;
  --ink: #1e293b;
  --ink-muted: #475569;
  --border: #1e293b;
  --primary: #ff6b00;
  --primary-dark: #c2410c;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --purple: #7c3aed;
  --green: #10b981;
  --yellow: #facc15;
  --pink: #ec4899;
  --radius-sm: 14px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 0 var(--border);
  --shadow: 0 6px 0 var(--border);
  --shadow-lg: 0 8px 0 var(--border);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(var(--bg-dot) 2px, transparent 2px);
  background-size: 26px 26px;
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
}

h1, h2, h3, h4, .brand-text, .btn, .badge-sticker {
  font-family: 'Fredoka', 'Nunito', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 18px; }

/* ─── Cartoon Top Navbar ─── */
.navbar {
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(90deg, #2563eb 0%, #4f46e5 55%, #7c3aed 100%);
  border-bottom: 3px solid var(--border);
  box-shadow: 0 4px 0 rgba(30, 41, 59, 0.16);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 0; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 700; font-size: 1.38rem;
  letter-spacing: 0.01em; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}
.brand-logo {
  width: 42px; height: 42px; border-radius: 13px; object-fit: cover;
  border: 2.5px solid #fff; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.28);
}
.nav-search-wrap {
  flex: 1 1 240px; max-width: 420px; position: relative;
}
.nav-search {
  width: 100%; padding: 10px 16px 10px 40px;
  border-radius: 999px; border: 2.5px solid var(--border);
  background: #fff; color: var(--ink);
  font-size: 0.95rem; font-weight: 700;
  box-shadow: 0 3px 0 var(--border);
  outline: none; transition: transform 0.12s ease;
}
.nav-search:focus { transform: translateY(-1px); background: #fffbeb; }
.nav-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-size: 1rem; pointer-events: none;
}
html[dir="rtl"] .nav-search { padding: 10px 40px 10px 16px; }
html[dir="rtl"] .nav-search-icon { left: auto; right: 14px; }

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

.lang-select {
  background: #fff; color: var(--ink);
  border: 2.5px solid var(--border); border-radius: 999px;
  padding: 8px 14px; font-size: 0.88rem; font-weight: 800;
  cursor: pointer; box-shadow: 0 3px 0 var(--border);
}

/* ─── Tactile 3D Cartoon Jelly Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 20px; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; cursor: pointer;
  border: 2.5px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.12s ease;
  user-select: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--border); filter: brightness(1.04); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--border); }
.btn-sm { padding: 8px 15px; font-size: 0.88rem; }
.btn-lg { padding: 14px 28px; font-size: 1.12rem; }
.btn-orange { background: linear-gradient(180deg, #ff8a00 0%, #ff5e00 100%); color: #fff; }
.btn-yellow { background: linear-gradient(180deg, #fde047 0%, #facc15 100%); color: var(--ink); }
.btn-green { background: linear-gradient(180deg, #34d399 0%, #10b981 100%); color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-purple { background: linear-gradient(180deg, #a78bfa 0%, #7c3aed 100%); color: #fff; }

/* ─── Category Cartoon Pill Bar (Horizontal Scroll on Mobile) ─── */
.cat-bar-wrap {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 2.5px solid var(--border);
  padding: 10px 0;
}
.cat-bar {
  display: flex; align-items: center; gap: 8px;
  overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  background: #fff; color: var(--ink);
  border: 2.5px solid var(--border); box-shadow: 0 3px 0 var(--border);
  font-weight: 800; font-size: 0.88rem; cursor: pointer;
  white-space: nowrap; transition: transform 0.1s ease, background 0.12s ease;
}
.cat-pill:hover { transform: translateY(-2px); background: #fef9c3; }
.cat-pill.active {
  background: var(--yellow); color: var(--ink);
  transform: translateY(-1px);
}
.cat-count {
  background: rgba(30, 41, 59, 0.1); padding: 1px 7px;
  border-radius: 999px; font-size: 0.76rem; font-weight: 900;
}

/* ─── Compact Joyful Cartoon Hero Banner (Keeps Games Above the Fold!) ─── */
.hero-banner {
  margin: 18px 0 22px;
  background: linear-gradient(135deg, #38bdf8 0%, #6366f1 52%, #ec4899 100%);
  border: 3px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px 26px; color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; position: relative; overflow: hidden;
}
.hero-copy { max-width: 680px; position: relative; z-index: 2; }
.hero-pill {
  display: inline-block; background: var(--yellow); color: var(--ink);
  border: 2px solid var(--border); border-radius: 999px;
  padding: 4px 13px; font-size: 0.82rem; font-weight: 900;
  margin-bottom: 10px; box-shadow: 0 3px 0 var(--border);
}
.hero-banner h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  line-height: 1.18; margin-bottom: 8px;
  text-shadow: 0 3px 0 rgba(30, 41, 59, 0.32);
}
.hero-banner p {
  font-size: 0.98rem; font-weight: 700; opacity: 0.96;
  margin-bottom: 16px; max-width: 600px;
}
.hero-cta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-mascot {
  display: flex; align-items: center; gap: 14px; position: relative; z-index: 2;
}
.hero-mascot img {
  width: 104px; height: 104px; border-radius: 26px;
  border: 3px solid #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.25);
  transform: rotate(-4deg); transition: transform 0.2s ease;
}
.hero-mascot img:hover { transform: rotate(4deg) scale(1.06); }

/* ─── Section Headers ─── */
.section-block { margin: 28px 0; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  display: inline-flex; align-items: center; gap: 8px;
}

/* ─── Featured Bento Grid & 150-Game Cartoon Card Wall ─── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 14px;
}

.game-tile {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 2.5px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden; position: relative; color: var(--ink);
  transition: transform 0.15s cubic-bezier(.34,1.56,.64,1), box-shadow 0.15s ease;
}
.game-tile:hover {
  transform: translateY(-5px) scale(1.015);
  box-shadow: 0 9px 0 var(--border);
}
.game-tile:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--border);
}

.tile-thumb {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: #dbeafe; border-bottom: 2.5px solid var(--border);
}
.tile-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.22s ease;
}
.game-tile:hover .tile-thumb img { transform: scale(1.07); }

.badge-sticker {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  padding: 2px 9px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.03em;
  border: 2px solid var(--border); box-shadow: 0 2px 0 var(--border);
}
html[dir="rtl"] .badge-sticker { left: auto; right: 8px; }
.badge-hot { background: #ef4444; color: #fff; }
.badge-new { background: #10b981; color: #fff; }

.badge-lvl {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  padding: 2px 8px; border-radius: 999px;
  background: var(--yellow); color: var(--ink);
  font-size: 0.7rem; font-weight: 900;
  border: 2px solid var(--border);
}
html[dir="rtl"] .badge-lvl { right: auto; left: 8px; }

.play-overlay {
  position: absolute; inset: 0;
  background: rgba(30, 41, 59, 0.22);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.16s ease;
}
.game-tile:hover .play-overlay { opacity: 1; }
.play-pill {
  background: var(--yellow); color: var(--ink);
  border: 2.5px solid var(--border); border-radius: 999px;
  padding: 6px 16px; font-weight: 900; font-size: 0.9rem;
  box-shadow: 0 4px 0 var(--border);
}

.tile-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tile-cat {
  font-size: 0.72rem; font-weight: 900; color: var(--purple);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.tile-title {
  font-size: 0.98rem; font-weight: 800; line-height: 1.25; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.tile-desc {
  font-size: 0.8rem; font-weight: 600; color: var(--ink-muted); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ─── Cartoon Feature & FAQ Cards ─── */
.section-sub {
  color: var(--ink-muted); font-weight: 700; font-size: 0.96rem;
  margin-top: -10px; margin-bottom: 18px;
}
.why-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.cartoon-card {
  background: var(--surface); border: 2.5px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 20px; display: flex; flex-direction: column; gap: 8px;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.cartoon-card:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--border); }
.why-card-1 { background: linear-gradient(180deg, #fffbeb 0%, #ffffff 55%); }
.why-card-2 { background: linear-gradient(180deg, #fdf2f8 0%, #ffffff 55%); }
.why-card-3 { background: linear-gradient(180deg, #eff6ff 0%, #ffffff 55%); }
.why-card-4 { background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 55%); }
.why-card-5 { background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 55%); }
.why-card-6 { background: linear-gradient(180deg, #fff7ed 0%, #ffffff 55%); }
.why-tag {
  align-self: flex-start; padding: 3px 10px; border-radius: 999px;
  background: var(--yellow); color: var(--ink);
  border: 2px solid var(--border); font-size: 0.72rem; font-weight: 900;
  letter-spacing: 0.03em;
}
.cartoon-card h3 { font-size: 1.14rem; color: var(--ink); }
.cartoon-card p { color: var(--ink-muted); font-size: 0.92rem; font-weight: 600; line-height: 1.55; }

.faq-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px; align-items: start;
}
.faq-item {
  background: var(--surface); border: 2.5px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: 0 4px 0 var(--border);
  padding: 15px 18px; transition: background 0.15s ease;
}
.faq-item[open] { background: #fffbeb; }
.faq-item summary {
  font-weight: 800; font-size: 0.98rem; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q-wrap { display: inline-flex; align-items: center; gap: 9px; }
.faq-q-badge {
  flex: 0 0 auto; padding: 2px 8px; border-radius: 999px;
  background: var(--blue); color: #fff; border: 2px solid var(--border);
  font-size: 0.74rem; font-weight: 900;
}
.faq-toggle {
  flex: 0 0 26px; height: 26px; border-radius: 50%;
  background: var(--yellow); border: 2px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.95rem; transition: transform 0.18s ease;
}
.faq-item[open] .faq-toggle { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq-item p {
  margin-top: 10px; padding-top: 10px; border-top: 2px dashed #e2e8f0;
  color: var(--ink-muted); font-weight: 600; font-size: 0.92rem; line-height: 1.6;
}

/* ─── Dedicated Game SEO Landing Page: Instant Play Stage ─── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 16px 0 12px; font-size: 0.9rem; font-weight: 800; color: var(--ink-muted);
}
.breadcrumb a { color: var(--blue); }

.stage-shell {
  background: #0f172a;
  border: 3px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; margin-bottom: 16px;
}
.stage-viewport {
  position: relative; width: 100%; height: min(74vh, 660px); min-height: 440px;
  background: radial-gradient(circle at center, #1e3a8a, #0f172a);
  display: flex; align-items: center; justify-content: center;
}
.stage-viewport iframe {
  width: 100%; height: 100%; border: 0; display: block;
}
.stage-splash {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 24px; text-align: center; color: #fff;
  background: linear-gradient(135deg, rgba(37,99,235,0.88), rgba(124,58,237,0.92));
}
.stage-splash img {
  width: 170px; height: 128px; object-fit: cover; border-radius: 20px;
  border: 3px solid #fff; box-shadow: 0 8px 0 rgba(0, 0, 0, 0.32);
}
.stage-splash h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); text-shadow: 0 3px 0 rgba(0,0,0,0.3); }
.stage-splash p { max-width: 520px; font-weight: 700; opacity: 0.95; }

.stage-toolbar {
  background: var(--surface); border-top: 3px solid var(--border);
  padding: 12px 18px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.stage-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stage-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.game-info-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; margin: 20px 0 28px;
}
.rules-list { list-style: none; display: grid; gap: 10px; margin-top: 10px; }
.rules-list li {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--surface-soft); border: 2px solid var(--border);
  border-radius: 14px; padding: 10px 14px; font-weight: 700;
}
.rule-num {
  flex: 0 0 26px; height: 26px; border-radius: 50%;
  background: var(--yellow); border: 2px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.85rem;
}

/* ─── Footer ─── */
.footer {
  margin-top: 48px; background: var(--surface);
  border-top: 3px solid var(--border); padding: 28px 0;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
}
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 800; }
.operator-bar {
  margin-top: 14px; padding-top: 14px;
  border-top: 2px dashed #cbd5e1;
  color: var(--ink-muted); font-size: 0.85rem; font-weight: 700; text-align: center;
}

.empty-state {
  text-align: center; padding: 36px 20px; background: var(--surface);
  border: 2.5px dashed var(--border); border-radius: var(--radius);
  font-weight: 800; color: var(--ink-muted); display: none;
}

/* ─── Legal Pages ─── */
.legal-card {
  max-width: 860px; margin: 28px auto;
  background: var(--surface); border: 3px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 28px 32px;
}
.legal-card h1 { font-size: 1.9rem; margin-bottom: 12px; }
.legal-card h2 { font-size: 1.25rem; margin: 20px 0 8px; }
.legal-card p, .legal-card li { color: var(--ink-muted); font-weight: 600; margin-bottom: 8px; }
.legal-card ul { padding-left: 20px; }

/* ─── Sunny Cartoon Download Page ─── */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.dl-card {
  background: var(--surface);
  border: 3px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dl-card-head {
  padding: 18px 20px;
  border-bottom: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dl-card-head.dl-android { background: #DCFCE7; }
.dl-card-head.dl-macos { background: #EDE9FE; }
.dl-card-head.dl-ios { background: #DBEAFE; }
.dl-card-head.dl-windows { background: #FEF9C3; }
.dl-card-head.dl-h5 { background: #FCE7F3; }
.dl-card.dl-wide { grid-column: 1 / -1; }
.dl-platform-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dl-platform-icon {
  width: 44px; height: 44px;
  border-radius: 14px;
  background: #fff;
  border: 2.5px solid var(--border);
  box-shadow: 0 3px 0 var(--border);
  display: grid; place-items: center;
  font-size: 1.45rem;
}
.dl-platform-title h2 { font-size: 1.25rem; margin: 0; }
.dl-req { font-size: 0.78rem; font-weight: 800; color: var(--ink-muted); margin-top: 2px; }
.dl-status {
  padding: 4px 10px;
  border-radius: 999px;
  border: 2px solid var(--border);
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}
.dl-status.ready { background: #22C55E; color: #fff; }
.dl-status.soon { background: #FACC15; color: var(--border); }
.dl-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.dl-desc { color: var(--ink-muted); font-weight: 600; font-size: 0.94rem; margin: 0; }
.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}
.dl-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

/* ─── Responsive (Tablet & Mobile H5) ─── */
html, body { overflow-x: hidden; }
@media (max-width: 900px) {
  .game-info-grid, .dl-grid, .dl-trust-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-list { grid-template-columns: 1fr; }
  .hero-mascot { display: none; }
}
@media (max-width: 768px) {
  .nav-btn-random, .nav-btn-play { display: none; }
  .nav-inner { padding: 8px 0; gap: 8px; }
  .nav-actions { gap: 6px; flex-wrap: nowrap; }
  .nav-btn-download { padding: 6px 10px; font-size: 0.78rem; }
  .lang-select { padding: 6px 8px; font-size: 0.78rem; max-width: 118px; }
  .nav-search-wrap { order: 3; flex: 1 1 100%; max-width: 100%; }
  .nav-search { padding: 8px 14px 8px 34px; font-size: 0.88rem; }
  .nav-search-icon { left: 12px; font-size: 0.9rem; }
  html[dir="rtl"] .nav-search { padding: 8px 34px 8px 14px; }
  html[dir="rtl"] .nav-search-icon { left: auto; right: 12px; }
}
@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
  .container { padding: 0 12px; }
  .brand { font-size: 1.08rem; gap: 7px; }
  .brand-logo { width: 32px; height: 32px; border-radius: 10px; }
  .cat-bar-wrap { padding: 7px 0; }
  .cat-bar { gap: 6px; -webkit-overflow-scrolling: touch; }
  .cat-pill { padding: 5px 10px; font-size: 0.8rem; }
  .hero-banner { margin-top: 12px; padding: 14px; border-radius: 18px; }
  .hero-badge { font-size: 0.72rem; padding: 4px 10px; }
  .hero-banner h1 { font-size: 1.32rem; line-height: 1.22; margin: 8px 0 6px; }
  .hero-banner p { font-size: 0.84rem; line-height: 1.4; margin-bottom: 12px; }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hero-actions .btn-lg { padding: 9px 10px; font-size: 0.84rem; width: 100%; }
  .section-block { margin-top: 18px; }
  .section-head h2 { font-size: 1.15rem; }
  .bento-grid, .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .tile-body { padding: 8px 9px 10px; }
  .tile-title { font-size: 0.88rem; }
  .tile-desc { display: none; }
  .stage-viewport { height: 70vh; min-height: 440px; }
  .stage-toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
  .stage-actions { display: flex; gap: 8px; }
  .stage-actions .btn { flex: 1; }
  .dl-card-head { flex-direction: column; align-items: flex-start; padding: 14px; }
  .dl-card-body { padding: 14px; }
  .dl-actions .btn { flex: 1 1 auto; }
  .legal-card { padding: 18px 16px; }
  .legal-card h1 { font-size: 1.45rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}

.sort-pills { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ─── Sunny Cartoon 3D Game Loading Overlay ─── */
.stage-viewport { position: relative; }
.stage-loader {
  position: absolute; inset: 0; z-index: 25;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 35%, #4f46e5 0%, #312e81 62%, #1e1b4b 100%);
  transition: opacity 0.28s ease;
}
.stage-loader.is-done { opacity: 0; pointer-events: none; }
.loader-card {
  width: min(360px, 92%);
  background: #ffffff;
  border: 3px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 8px 0 var(--border);
  padding: 22px 22px 20px;
  text-align: center;
}
.loader-cover {
  border-radius: 16px;
  border: 2.5px solid var(--border);
  box-shadow: 0 4px 0 var(--border);
  margin: 0 auto 12px;
  animation: fgBounce 1.2s ease-in-out infinite;
}
.loader-title {
  font-family: 'Fredoka', 'Nunito', 'PingFang SC', sans-serif;
  font-size: 1.15rem; font-weight: 900; color: var(--ink);
  margin-bottom: 12px;
}
.loader-bar-track {
  width: 100%; height: 22px;
  background: #e0f2fe;
  border: 2.5px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.14);
}
.loader-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: repeating-linear-gradient(
    -45deg,
    #facc15,
    #facc15 12px,
    #f97316 12px,
    #f97316 24px
  );
  background-size: 34px 34px;
  animation: fgStripes 0.7s linear infinite;
  transition: width 0.18s ease-out;
}
.loader-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 9px; font-size: 0.86rem; font-weight: 800; color: var(--ink-muted);
}
.loader-pct {
  color: var(--ink); font-weight: 900;
  background: #fef08a; padding: 2px 9px;
  border-radius: 999px; border: 1.8px solid var(--border);
}
@keyframes fgBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes fgStripes {
  from { background-position: 0 0; }
  to { background-position: 34px 0; }
}
