/* ===== Base / Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Copperplate', 'Papyrus', fantasy;
  background-color: #fff0fe;
  background-image:
    radial-gradient(circle at 8% 12%, rgba(255, 179, 198, 0.55) 0, rgba(255, 179, 198, 0) 45%),
    radial-gradient(circle at 92% 18%, rgba(181, 234, 215, 0.55) 0, rgba(181, 234, 215, 0) 45%),
    radial-gradient(circle at 15% 80%, rgba(255, 232, 163, 0.55) 0, rgba(255, 232, 163, 0) 45%),
    radial-gradient(circle at 90% 85%, rgba(255, 179, 198, 0.4) 0, rgba(255, 179, 198, 0) 50%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: #445857;
  font-weight: 500;
  line-height: 1.4;
  padding-bottom: 24px;
  overflow-x: hidden;
}
[v-cloak] { display: none; }
a { color: inherit; text-decoration: none; display: block; }
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: static; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: #fff5fd; border-bottom: 1px solid #ede0ff;
}
.topbar-logo { font-size: 18px; font-weight: 800; color: #be8fff; }
.topbar-search-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #ffa3d9; color: #445857;
}
/* ===== Category Tabs ===== */
.cat-tabs {
  position: static; top: 60px; z-index: 30;
  background: #fff0fe; border-bottom: 1px solid #ede0ff;
  overflow-x: auto; white-space: nowrap;
}
.cat-tabs-inner { display: inline-flex; gap: 8px; padding: 10px 16px; }
.cat-tab {
  flex-shrink: 0; padding: 8px 16px; border-radius: 14px;
  background: #ffffff; color: #7f8f93; font-size: 13px; font-weight: 700;
  box-shadow: 0 2px 6px rgba(255, 179, 198, 0.25);
  border: 2px solid transparent;
}
.cat-tab.active { background: #f6f0ff; color: #8b59d6; border-color: #d3b3ff; box-shadow: 0 3px 10px rgba(255,179,198,.5); }
/* ===== Search ===== */
.search-bar-wrap {
  position: static; top: 60px; z-index: 30;
  display: flex; gap: 8px; padding: 10px 16px;
  background: #fff0fe; border-bottom: 1px solid #ede0ff;
}
.search-input {
  flex: 1; padding: 10px 16px; border-radius: 999px; border: none;
  background: #ffffff; color: #445857; font-size: 14px;
  box-shadow: 0 2px 6px rgba(181, 234, 215, 0.35);
}
.search-cancel { font-size: 14px; color: #be8fff; font-weight: 700; 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 #ede0ff; border-top-color: #d3b3ff;
  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: 800; color: #3e2c5c; }
.sec-more { font-size: 12px; color: #be8fff; font-weight: 700; }
.sec-cnt { font-size: 13px; color: #8fa4a8; }
/* ===== 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: 16px; overflow: hidden; box-shadow: 0 4px 10px rgba(255, 232, 163, 0.4); }
.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: #55576b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* ===== Two / Tri column grids (Sports, Racing, Adventure, Girl) ===== */
.two-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 16px; }
.tri-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 16px; }
.twcard, .tgcard { cursor: pointer; }
.twcard-img, .tgcard-img { border-radius: 16px; overflow: hidden; box-shadow: 0 4px 10px rgba(181, 234, 215, 0.4); }
.twcard-img img, .tgcard-img img { aspect-ratio: 1/1; }
.twcard-nm, .tgcard-nm {
  font-size: 11px; margin-top: 5px; text-align: center; color: #55576b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* ===== Spotlight / Hero cards (Sports, Adventure) ===== */
.spot-card, .adv-hero {
  position: relative; margin: 0 16px 10px; border-radius: 18px; overflow: hidden; cursor: pointer;
  box-shadow: 0 6px 16px rgba(255, 179, 198, 0.3);
}
.spot-card img, .adv-hero img { aspect-ratio: 16/9; }
.spot-ovl, .adv-hero-ovl {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px;
  background: linear-gradient(transparent, rgba(92, 44, 58, .8));
}
.spot-badge, .adv-badge {
  font-size: 10px; font-weight: 700; background: #d3b3ff; color: #3e2c5c;
  padding: 3px 8px; border-radius: 8px; text-transform: uppercase;
}
.spot-name, .adv-name { font-size: 15px; font-weight: 700; color: #ffffff; margin-top: 6px; }
.adv-desc { font-size: 11px; color: #f1e8ff; margin-top: 3px; }
/* ===== Load more ===== */
.more-wrap, .loadmore-wrap { display: flex; justify-content: center; padding: 16px; }
.more-btn, .loadmore-btn {
  padding: 10px 22px; border-radius: 20px; background: #daeab5; color: #515b2f;
  font-size: 13px; font-weight: 700; box-shadow: 0 4px 10px rgba(181, 234, 215, 0.5);
}
/* ===== Filter header ===== */
.filter-hdr { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.filter-back { font-size: 13px; color: #be8fff; font-weight: 700; }
.filter-title { flex: 1; font-size: 16px; font-weight: 800; color: #3e2c5c; }
.filter-cnt { font-size: 12px; color: #8fa4a8; }
.empty-msg { text-align: center; padding: 60px 0; color: #8fa4a8; font-size: 13px; }
/* ===== Footer ===== */
.site-footer { display: flex; justify-content: center; gap: 10px; padding: 24px 16px; font-size: 12px; color: #8d89a8; }
/* ===== Back to top ===== */
.totop-btn {
  position: fixed; right: 16px; bottom: 20px; z-index: 50;
  width: 40px; height: 40px; border-radius: 50%;
  background: #d3b3ff; color: #3e2c5c; font-size: 16px;
  box-shadow: 0 4px 14px rgba(255, 179, 198, 0.5);
}
/* ===== Desktop content width cap ===== */
@media (min-width: 860px) {
  body { max-width: 1080px; margin: 0 auto; }
}
/* ===== Avatar row (overlapping circular cards) ===== */
.avatar-row { display: flex; padding: 6px 20px 8px; overflow-x: auto; }
.avcard { flex-shrink: 0; width: 66px; margin-left: -16px; cursor: pointer; text-align: center; }
.avcard:first-child { margin-left: 0; }
.avcard-img { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.avcard-img img { width: 100%; height: 100%; object-fit: cover; }
.avcard-nm { font-size: 10px; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #55576b; }
/* ===== New structural families (zigzag / masonry / banner / magazine / stack / diagonal) ===== */
.zig-list { display: flex; flex-direction: column; gap: 12px; padding: 0 16px; }
.zig-row { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.zig-row.rev { flex-direction: row-reverse; }
.zig-img { width: 70px; height: 70px; border-radius: 14px; overflow: hidden; flex-shrink: 0; }
.zig-img img { width: 100%; height: 100%; object-fit: cover; }
.zig-body { flex: 1; min-width: 0; }
.zig-row.rev .zig-body { text-align: right; }
.zig-nm { font-size: 14px; font-weight: 700; }
.zig-tag { font-size: 11px; color: #8fa4a8; }
/* Hero + mini circular strip */
.hero-strip-wrap { padding: 0 16px; }
.hero-strip-main { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16/9; cursor: pointer; }
.hero-strip-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-strip-main::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(transparent, rgba(0,0,0,.75)); pointer-events: none; }
.hero-strip-title { position: absolute; left: 10px; bottom: 22px; color: #ffffff; font-weight: 700; font-size: 14px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.hero-strip-desc { position: absolute; left: 10px; bottom: 8px; right: 10px; color: #eef3f5; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-strip { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.mini-strip-item { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; cursor: pointer; }
.mini-strip-item img { width: 100%; height: 100%; object-fit: cover; }
/* Checkerboard alternating rows */
.checker-list { display: flex; flex-direction: column; gap: 18px; padding: 0 16px; }
.checker-row { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.checker-row.rev { flex-direction: row-reverse; }
.checker-img { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.checker-nm { font-size: 13px; font-weight: 600; }
.checker-desc { font-size: 11px; color: #55576b; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Overlapping circular cluster, alternating vertical offset */
.cluster { display: flex; align-items: flex-end; padding: 14px 20px 16px; overflow-x: auto; }
.cluster-item { flex-shrink: 0; width: 56px; margin-left: -12px; cursor: pointer; text-align: center; }
.cluster-item:first-child { margin-left: 0; }
.cluster-item:nth-child(odd) { transform: translateY(-10px); }
.cluster-img { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,.35); }
.cluster-nm { font-size: 9px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Full-bg poster feature */
.poster-full { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16/10; cursor: pointer; }
.poster-full img { width: 100%; height: 100%; object-fit: cover; }
.poster-full-ovl { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.poster-full-badge { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .04em; background: #5bffb8; color: #ffffff; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; margin-bottom: 6px; }
.poster-full-title { font-size: 20px; font-weight: 800; color: #ffffff; }
.poster-full-desc { font-size: 12px; color: #dddddd; margin-top: 4px; }
/* Hot: horizontal scroll with rank badge */
.hotscroll { display: flex; gap: 10px; padding: 0 16px; overflow-x: auto; }
.hotscroll-card { flex-shrink: 0; width: 100px; cursor: pointer; }
.hotscroll-img { border-radius: 12px; overflow: hidden; aspect-ratio: 1/1; position: relative; }
.hotscroll-img img { width: 100%; height: 100%; object-fit: cover; }
.hotscroll-rank { position: absolute; top: 4px; left: 4px; font-size: 11px; font-weight: 800; color: #ffffff; background: rgba(0,0,0,.5); width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.hotscroll-nm { font-size: 11px; margin-top: 5px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.twcard-desc, .tgcard-desc { font-size: 10px; color: #55576b; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zig-desc { font-size: 11px; color: #8fa4a8; margin-top: 3px; }
/* ===== Spotlight Picks (notebook cards) ===== */
.note-list { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
.note-card { cursor: pointer; padding: 12px 14px; border: 2px dashed #e5d1ff; border-radius: 14px; background: #fff9fd; }
.note-tag { display: inline-block; font-size: 10px; font-weight: 700; background: #daeab5; color: #444a2c; padding: 2px 8px; border-radius: 999px; margin-bottom: 6px; }
.note-name { font-size: 14px; font-weight: 800; color: #3e2c5c; }
.note-desc { font-size: 12px; color: #7f8f93; margin-top: 3px; }

/* ===== 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; }
