/* ===== Base / Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0f1117;
  color: #f2f3f5;
  line-height: 1.4;
  padding-bottom: 24px;
  overflow-x: hidden;
}
[v-cloak] { display: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
::-webkit-scrollbar { display: none; }
/* ===== Top Bar ===== */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: #14161f; border-bottom: 1px solid #22242f;
}
.topbar-logo { font-size: 18px; font-weight: 700; }
.topbar-search-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #1e2029; color: #f2f3f5;
}
/* ===== Category Tabs ===== */
.cat-tabs {
  position: sticky; top: 60px; z-index: 30;
  background: #0f1117; border-bottom: 1px solid #1e2029;
  overflow-x: auto; white-space: nowrap;
}
.cat-tabs-inner { display: inline-flex; gap: 8px; padding: 10px 16px; }
.cat-tab {
  flex-shrink: 0; padding: 7px 14px; border-radius: 20px;
  background: #1a1c26; color: #b6bac6; font-size: 13px; font-weight: 600;
}
.cat-tab.active { background: #5b6bff; color: #fff; }
/* ===== Search ===== */
.search-bar-wrap {
  position: sticky; top: 60px; z-index: 30;
  display: flex; gap: 8px; padding: 10px 16px;
  background: #0f1117; border-bottom: 1px solid #1e2029;
}
.search-input {
  flex: 1; padding: 9px 14px; border-radius: 10px; border: none;
  background: #1a1c26; color: #f2f3f5; font-size: 14px;
}
.search-cancel { font-size: 14px; color: #5b6bff; font-weight: 600; padding: 0 4px; }
/* ===== Loading ===== */
.loading-full { display: flex; align-items: center; justify-content: center; padding: 80px 0; }
.loading-ring {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid #262936; border-top-color: #5b6bff;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* ===== Section spacing ===== */
section[class$="-sec"] { margin-bottom: 32px; }
/* ===== Section Header ===== */
.sec-hd { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 10px; }
.sec-label { font-size: 16px; font-weight: 700; }
.sec-more { font-size: 12px; color: #8a8fa3; font-weight: 600; }
.sec-cnt { font-size: 13px; color: #8a8fa3; }
/* ===== Featured ===== */
.featured-sec { padding: 12px 16px 0; }
/* ===== Generic responsive icon grid (8 columns on desktop) ===== */
.kids-grid, .all-grid, .games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 16px 8px;
}
@media (min-width: 480px) {
.kids-grid, .all-grid, .games-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 860px) {
.kids-grid, .all-grid, .games-grid { grid-template-columns: repeat(8, 1fr); }
}
.kcard, .agcard, .gcard { cursor: pointer; min-width: 0; }
.kcard-img, .agcard-img, .gcard-img { border-radius: 12px; overflow: hidden; }
.kcard-img img, .agcard-img img, .gcard-img img { aspect-ratio: 1/1; }
.kcard-nm, .agcard-nm, .gcard-nm {
  font-size: 11px; margin-top: 5px; text-align: center; color: #c8cbd6;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* ===== Load more ===== */
.more-wrap, .loadmore-wrap { display: flex; justify-content: center; padding: 16px; }
.more-btn, .loadmore-btn {
  padding: 10px 22px; border-radius: 20px; background: #1a1c26; color: #f2f3f5;
  font-size: 13px; font-weight: 600;
}
/* ===== Filter header ===== */
.filter-hdr { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.filter-back { font-size: 13px; color: #8a8fa3; font-weight: 600; }
.filter-title { flex: 1; font-size: 16px; font-weight: 700; }
.filter-cnt { font-size: 12px; color: #8a8fa3; }
.empty-msg { text-align: center; padding: 60px 0; color: #8a8fa3; font-size: 13px; }
/* ===== Footer ===== */
.site-footer { display: flex; justify-content: center; gap: 10px; padding: 24px 16px; font-size: 12px; color: #6b6f80; }
/* ===== Back to top ===== */
.totop-btn {
  position: fixed; right: 16px; bottom: 20px; z-index: 50;
  width: 40px; height: 40px; border-radius: 50%;
  background: #5b6bff; color: #fff; font-size: 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
/* ===== Spotlight Picks (plain-text showcase) ===== */
.ts-list { display: flex; flex-direction: column; gap: 14px; padding: 0 16px; }
.ts-item { cursor: pointer; padding-bottom: 12px; border-bottom: 1px solid #1e2029; }
.ts-item:last-child { border-bottom: none; }
.ts-name { font-size: 14px; font-weight: 700; margin-right: 8px; }
.ts-cat { font-size: 11px; color: #5b6bff; font-weight: 600; }
.ts-desc { font-size: 12px; color: #a7abbb; margin-top: 4px; }
/* ===================================================
   Theme 9: Bubblegum Candy — override block
   =================================================== */
body { background: radial-gradient(circle at 15% 10%, #ffd23f 0%, transparent 40%), radial-gradient(circle at 85% 15%, #ff3d81 0%, transparent 45%), radial-gradient(circle at 50% 90%, #a06cd5 0%, transparent 50%), #fff0f6; color: #4a154b; }
.topbar { background: #ffffff; border-bottom: 1px solid #ffd6e8; }
.topbar-logo { color: #ff3d81; }
.topbar-search-btn { background: #ffffff; color: #ff3d81; border: 1px solid #ffd6e8; }
.cat-tabs, .search-bar-wrap { background: transparent; border-bottom: 1px solid #ffd6e8; }
.cat-tab { flex-shrink: 0; padding: 8px 18px; border-radius: 999px; background: #ffffff; color: #a06cd5; font-size: 13px; font-weight: 800; box-shadow: 0 3px 8px rgba(255,61,129,.25); }
.cat-tab.active { background: linear-gradient(135deg, #ff3d81, #ffd23f); color: #fff; }
.search-input { flex: 1; padding: 10px 18px; border-radius: 999px; border: 2px solid #ffd23f; background: #ffffff; color: #4a154b; font-size: 14px; }
.search-cancel { color: #ff3d81; }
.sec-label { color: #4a154b; }
.sec-more { color: #ff3d81; }
.totop-btn { background: #ff3d81; color: #ffffff; }
.htcard, .hsmcard-img, .rthumb, .pzcard-img, .kcard-img, .agcard-img, .gcard-img, .twcard-img, .tgcard-img { border-radius: 0 !important; clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%) !important; }
/* Spotlight Picks restyle: Bubblegum Candy */
.ts-list { gap: 10px; }
.ts-item { border: none; background: #ffffff; padding: 10px 14px; border-radius: 999px; box-shadow: 0 2px 8px rgba(255,61,129,.2); }
.ts-item::before { content: '🍬 '; }
.ts-name { color: #4a154b; }
.ts-cat { color: #ff3d81; font-weight: 800; }
.ts-desc { color: #a06cd5; }
.confetti-scatter { display: flex; flex-wrap: wrap; gap: 14px; padding: 10px 20px; justify-content: center; }
.confetti-item { width: 62px; text-align: center; cursor: pointer; }
.confetti-item:nth-child(odd) { transform: rotate(-6deg); }
.confetti-item:nth-child(even) { transform: rotate(6deg); }
.confetti-img { width: 62px; height: 62px; clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); overflow: hidden; }
.confetti-nm { font-size: 9px; margin-top: 4px; color: #a06cd5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ===== New module structures: medal / quote / ledger / envelope / colorblock / sticker / folder / arcbadge ===== */
.medal-strip { display: flex; gap: 16px; padding: 10px 20px; overflow-x: auto; }
.medal-item { flex-shrink: 0; width: 76px; text-align: center; cursor: pointer; position: relative; }
.medal-badge { width: 68px; height: 68px; border-radius: 50%; overflow: hidden; border: 3px solid #ff3d81; margin: 0 auto; }
.medal-ribbon { display: inline-block; margin-top: -8px; background: #ff3d81; color: #ffffff; font-size: 10px; font-weight: 800; padding: 1px 8px; border-radius: 999px; position: relative; z-index: 1; }
.medal-nm { font-size: 10px; margin-top: 4px; color: #4a154b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quote-block-list { display: flex; flex-direction: column; gap: 12px; padding: 0 16px; }
.quote-block { position: relative; padding: 12px 14px 12px 44px; border-left: 3px solid #ff3d81; cursor: pointer; }
.quote-icon { position: absolute; left: 0; top: 8px; width: 32px; height: 32px; border-radius: 6px; overflow: hidden; }
.quote-nm { font-size: 13px; font-weight: 700; color: #4a154b; }
.quote-text { font-size: 12px; font-style: italic; color: #ffd6e8; margin-top: 3px; }
.ledger-table { display: flex; flex-direction: column; margin: 0 16px; border: 1px solid #ffd6e8; border-radius: 4px; overflow: hidden; }
.ledger-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid #ffd6e8; cursor: pointer; }
.ledger-row:last-child { border-bottom: none; }
.ledger-idx { width: 20px; font-size: 12px; font-weight: 800; color: #ff3d81; }
.ledger-icon { width: 34px; height: 34px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.ledger-nm { flex: 1; font-size: 13px; font-weight: 600; color: #4a154b; }
.ledger-cat { font-size: 11px; color: #ff3d81; }
.envelope-row { display: flex; gap: 14px; padding: 10px 16px; overflow-x: auto; }
.envelope-card { position: relative; flex-shrink: 0; width: 82px; text-align: center; cursor: pointer; padding-top: 14px; }
.envelope-fold { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 20px solid transparent; border-right: 20px solid transparent; border-top: 14px solid #ff3d81; }
.envelope-icon { width: 82px; height: 66px; border-radius: 0 0 8px 8px; overflow: hidden; border: 2px solid #ff3d81; border-top: none; }
.envelope-nm { font-size: 10px; margin-top: 4px; color: #4a154b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.colorblock-row { display: flex; gap: 12px; padding: 10px 16px; overflow-x: auto; }
.colorblock-item { position: relative; flex-shrink: 0; width: 80px; text-align: center; cursor: pointer; }
.colorblock-initial { position: absolute; top: -10px; left: -6px; width: 26px; height: 26px; border-radius: 50%; background: #ff3d81; color: #ffffff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; z-index: 1; }
.colorblock-icon { width: 80px; height: 80px; border-radius: 10px; overflow: hidden; background: #ffd6e8; }
.colorblock-nm { font-size: 10px; margin-top: 4px; color: #4a154b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticker-row { display: flex; gap: 14px; padding: 10px 16px; overflow-x: auto; }
.sticker-item { flex-shrink: 0; width: 74px; text-align: center; cursor: pointer; }
.sticker-img { width: 74px; height: 74px; border-radius: 12px; overflow: hidden; clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
.sticker-label { display: inline-block; margin-top: -10px; background: #ff3d81; color: #ffffff; font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 999px; position: relative; }
.folder-row { display: flex; gap: 14px; padding: 14px 16px 10px; overflow-x: auto; }
.folder-card { position: relative; flex-shrink: 0; width: 80px; text-align: center; cursor: pointer; }
.folder-tab { position: absolute; top: -14px; left: 6px; background: #ff3d81; color: #ffffff; font-size: 8px; font-weight: 700; padding: 2px 8px; border-radius: 4px 4px 0 0; text-transform: uppercase; }
.folder-body { width: 80px; height: 70px; border-radius: 4px 8px 8px 8px; overflow: hidden; border: 2px solid #ff3d81; }
.folder-nm { font-size: 10px; margin-top: 4px; color: #4a154b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arcbadge-row { display: flex; gap: 14px; padding: 10px 16px; overflow-x: auto; }
.arcbadge-item { flex-shrink: 0; width: 74px; text-align: center; cursor: pointer; }
.arcbadge-ring { width: 70px; height: 70px; border-radius: 50%; border: 3px dotted #ff3d81; padding: 4px; margin: 0 auto; }
.arcbadge-img { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.arcbadge-nm { font-size: 10px; margin-top: 4px; color: #4a154b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ===== Icon shape normalized to rounded-square (matches sites 1-6) ===== */
.htcard, .hsmcard-img, .rthumb, .pzcard-img, .kcard-img, .agcard-img, .gcard-img, .twcard-img, .tgcard-img, .avcard-img, .zig-img, .masonry-item, .banner-single, .mag-img, .stack-card, .framed-feat-imgwrap, .bubble-img, .hex-img, .confetti-img, .poster-img, .shard-img, .ember-img {
  border-radius: 12px !important;
  clip-path: none !important;
}
/* ===== TOP multi-game showcase (site 9) ===== */

.shelf-top { display: flex; gap: 10px; padding: 10px 16px; overflow-x: auto; }
.shelf-top-card { flex-shrink: 0; width: 110px; position: relative; border-radius: 16px; overflow: visible; background: #fff; box-shadow: 0 4px 10px rgba(255,61,129,.25); cursor: pointer; }
.shelf-top-ribbon { position: absolute; top: -6px; right: -6px; background: #ffd23f; color: #4a154b; font-size: 9px; font-weight: 800; padding: 3px 7px; border-radius: 999px; z-index: 2; }
.shelf-top-img { border-radius: 16px 16px 0 0; overflow: hidden; aspect-ratio: 1/1; }
.shelf-top-img img { width: 100%; height: 100%; object-fit: cover; }
.shelf-top-nm { font-size: 12px; font-weight: 800; color: #4a154b; padding: 6px 8px 2px; }
.shelf-top-desc { font-size: 10px; color: #a06cd5; padding: 0 8px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ===== Nav restyle: bottom tab bar (site 9) ===== */
body { padding-bottom: 76px; }
.cat-tabs {
  position: fixed !important; top: auto !important; bottom: 0; left: 0; right: 0; z-index: 60;
  background: #fff !important; border-top: 2px solid #ffd23f; border-bottom: none !important;
  box-shadow: 0 -4px 14px rgba(255,61,129,.15);
}
.cat-tabs-inner { display: flex; gap: 4px; padding: 8px 6px; overflow-x: auto; }
.cat-tab {
  flex: 1; flex-shrink: 0; text-align: center; background: transparent !important;
  border: none !important; box-shadow: none !important; padding: 6px 4px !important;
  font-size: 11px; color: #a06cd5;
}
.cat-tab.active { color: #ff3d81 !important; font-weight: 800; transform: translateY(-2px) scale(1.08); transition: transform .15s; }

/* ===== Fix: All Games / filtered / kids grid icons — lock container aspect ratio so size never depends on the source image's native dimensions ===== */
.kcard-img, .agcard-img, .gcard-img { aspect-ratio: 1/1 !important; width: 100%; height: auto; }
.kcard-img img, .agcard-img img, .gcard-img img { width: 100%; height: 100%; object-fit: cover; }
