/* ===== 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-color: #0a0118;
  background-image:
    radial-gradient(circle at 20% 0%, rgba(255,43,214,.12), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(0,240,255,.10), transparent 45%),
    repeating-linear-gradient(0deg, rgba(0,240,255,.05) 0px, rgba(0,240,255,.05) 1px, transparent 1px, transparent 24px),
    repeating-linear-gradient(90deg, rgba(255,43,214,.04) 0px, rgba(255,43,214,.04) 1px, transparent 1px, transparent 24px);
  background-attachment: fixed;
  color: #f0eafc;
  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: #0d0221; border-bottom: 1px solid #2a1240;
  box-shadow: 0 1px 12px rgba(255,43,214,.15);
}
.topbar-logo { font-size: 18px; font-weight: 700; letter-spacing: .03em; text-shadow: 0 0 10px rgba(0,240,255,.6); }
.cat-tab.active {
  background: linear-gradient(135deg, #ff2bd6, #7a1bff);
  color: #fff;
  box-shadow: 0 0 14px rgba(255,43,214,.6);
  border-color: transparent;
}
/* ===== Search ===== */
.search-bar-wrap {
  position: sticky; top: 60px; z-index: 30;
  display: flex; gap: 8px; padding: 10px 16px;
  background: #0a0118; border-bottom: 1px solid #2a1240;
}
.search-input {
  flex: 1; padding: 9px 14px; border-radius: 10px; border: 1px solid rgba(0,240,255,.3);
  background: #14082a; color: #f0eafc; font-size: 14px;
}
/* ===== 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 #2a1240; border-top-color: #ff2bd6;
  box-shadow: 0 0 12px rgba(255,43,214,.5);
  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; letter-spacing: .04em; }
.sec-more { font-size: 12px; color: #00f0ff; font-weight: 600; }
.sec-cnt { font-size: 13px; color: #a08fc0; }
/* ===== Featured ===== */
.featured-sec { padding: 12px 16px 0; }
.feat-badge {
  align-self: flex-start; font-size: 10px; font-weight: 700; letter-spacing: .04em;
  background: linear-gradient(135deg, #ff2bd6, #7a1bff); color: #fff; padding: 3px 8px; border-radius: 6px; text-transform: uppercase;
  box-shadow: 0 0 10px rgba(255,43,214,.5);
}
.feat-title { font-size: 18px; font-weight: 800; letter-spacing: .02em; }
.feat-desc { font-size: 12px; color: #c3b6dd; overflow: hidden; }
/* ===== Rank list (Action) ===== */
.rank-list { padding: 0 16px; display: flex; flex-direction: column; gap: 16px; }
.ritem { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.rnum { width: 20px; text-align: center; font-size: 15px; font-weight: 800; color: #5b4a80; flex-shrink: 0; }
.rnum.rn-1 { color: #ff2bd6; text-shadow: 0 0 8px rgba(255,43,214,.7); }
.rnum.rn-2 { color: #ff8ae8; }
.rnum.rn-3 { color: #00f0ff; text-shadow: 0 0 8px rgba(0,240,255,.7); }
.rthumb { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex-shrink: 0; border: 1px solid rgba(0,240,255,.25); }
.rbody { flex: 1; min-width: 0; }
.rname { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rtag { font-size: 11px; color: #a08fc0; }
.rdesc { font-size: 11px; color: #a08fc0; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rplay { color: #ff2bd6; font-size: 13px; flex-shrink: 0; text-shadow: 0 0 8px rgba(255,43,214,.6); }
/* ===== 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; border: 1px solid rgba(0,240,255,.2); }
.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: #c3b6dd;
  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: 12px; overflow: hidden; border: 1px solid rgba(255,43,214,.2); }
.twcard-img img, .tgcard-img img { aspect-ratio: 1/1; }
.twcard-nm, .tgcard-nm {
  font-size: 11px; margin-top: 5px; text-align: center; color: #c3b6dd;
  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: 14px; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(255,43,214,.3);
  box-shadow: 0 0 16px rgba(255,43,214,.2);
}
.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(10,1,24,.9));
}
.spot-badge, .adv-badge {
  font-size: 10px; font-weight: 700; background: linear-gradient(135deg, #00f0ff, #2b6bff); color: #0a0118;
  padding: 3px 8px; border-radius: 6px; text-transform: uppercase;
  box-shadow: 0 0 10px rgba(0,240,255,.5);
}
.spot-name, .adv-name { font-size: 15px; font-weight: 700; color: #fff; margin-top: 6px; }
.spot-desc { font-size: 11px; color: #d9c9f0; 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: #170a2b; color: #00f0ff;
  font-size: 13px; font-weight: 600; border: 1px solid rgba(0,240,255,.4);
  box-shadow: 0 0 10px rgba(0,240,255,.25);
}
/* ===== Filter header ===== */
.filter-hdr { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.filter-back { font-size: 13px; color: #00f0ff; font-weight: 600; }
.filter-title { flex: 1; font-size: 16px; font-weight: 700; letter-spacing: .03em; }
.filter-cnt { font-size: 12px; color: #a08fc0; }
.empty-msg { text-align: center; padding: 60px 0; color: #a08fc0; font-size: 13px; }
/* ===== Footer ===== */
.site-footer { display: flex; justify-content: center; gap: 10px; padding: 24px 16px; font-size: 12px; color: #7a6a9c; }
/* ===== Back to top ===== */
.totop-btn {
  position: fixed; right: 16px; bottom: 20px; z-index: 50;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #ff2bd6, #00f0ff); color: #0a0118; font-size: 16px;
  box-shadow: 0 4px 18px rgba(255,43,214,.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: #c3b6dd; }
.twcard-desc, .tgcard-desc { font-size: 10px; color: #d9c9f0; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ===== Theme 13: Emerald Forest ===== */
body { background: linear-gradient(160deg, #0b2e1f, #05170f); color: #eaf5ee; }
.topbar { background: #0d3a26; border-bottom: 1px solid #1c5a3d; display: flex; align-items: center; gap: 10px; }
.topbar-logo { color: #d4af37; flex: 1; text-align: center; }
.hamburger-btn { width: 36px; height: 36px; border-radius: 8px; background: #124a32; color: #d4af37; display: flex; align-items: center; justify-content: center; }
.hamburger-menu { position: sticky; top: 52px; z-index: 45; background: #0d3a26; border-bottom: 2px solid #d4af37; display: flex; flex-direction: column; padding: 6px 0; }
.hamburger-item { padding: 12px 20px; text-align: left; font-size: 14px; color: #cfe6d8; border-bottom: 1px solid rgba(212,175,55,.15); }
.hamburger-item.active { color: #d4af37; font-weight: 700; background: rgba(212,175,55,.08); }
.hamburger-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 44; }
.search-bar-wrap { background: transparent; border-bottom: 1px solid #1c5a3d; padding: 10px 16px; }
.search-input { width: 100%; border-radius: 10px; border: 1px solid #1c5a3d; background: #124a32; color: #eaf5ee; }
.sec-label { color: #eaf5ee; }
.sec-more { color: #d4af37; }
.feat-badge, .spot-badge, .adv-badge, .banner-badge { background: #d4af37; color: #0b2e1f; }
.totop-btn { background: #d4af37; color: #0b2e1f; }
.htcard, .hsmcard-img, .rthumb, .pzcard-img, .kcard-img, .agcard-img, .gcard-img, .twcard-img, .tgcard-img { border-radius: 12px !important; }
/* ===== Extra module families (avatarRow / zig-list / masonry-grid / banner-single / mag-list / stack-row) ===== */
.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: #a8ccb8; }
.mag-list { display: flex; flex-direction: column; gap: 0; padding: 0 16px; }
.mag-row { display: flex; gap: 12px; cursor: pointer; padding: 12px 0; border-bottom: 1px solid rgba(128,128,128,.2); }
.mag-row:last-child { border-bottom: none; }
.mag-img { width: 60px; height: 60px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.mag-img img { width: 100%; height: 100%; object-fit: cover; }
.mag-body { flex: 1; min-width: 0; }
.mag-nm { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.mag-desc { font-size: 11px; color: #a8ccb8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ===== Featured + Hot Games (site 13) ===== */

.leaf-feat { position: relative; border-radius: 24px; overflow: hidden; display: flex; cursor: pointer; border: 2px solid #d4af37; }
.leaf-feat-img { width: 42%; flex-shrink: 0; aspect-ratio: 4/5; }
.leaf-feat-img img { width: 100%; height: 100%; object-fit: cover; }
.leaf-feat-body { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 6px; background: #0d3a26; }
.leaf-feat-badge { align-self: flex-start; font-size: 10px; font-weight: 700; background: #d4af37; color: #0b2e1f; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; }
.leaf-feat-title { font-size: 17px; font-weight: 800; color: #eaf5ee; }
.leaf-feat-desc { font-size: 12px; color: #a8ccb8; }
.gold-timeline { position: relative; padding: 8px 16px 8px 40px; }
.gold-timeline::before { content: ''; position: absolute; left: 20px; top: 4px; bottom: 4px; width: 2px; background: #d4af37; }
.gtl-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 0; cursor: pointer; }
.gtl-item::before { content: '🍃'; position: absolute; left: -28px; font-size: 12px; }
.gtl-img { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.gtl-nm { font-size: 13px; font-weight: 700; color: #eaf5ee; }
/* ===== Spotlight Picks restyle (site 13) ===== */

.leaf-scroll-list { display: flex; flex-direction: column; gap: 12px; padding: 0 16px; }
.leaf-scroll-item { cursor: pointer; padding-bottom: 10px; border-bottom: 1px solid #d4af37; }
.leaf-scroll-item:last-child { border-bottom: none; }
.leaf-scroll-bullet { margin-right: 6px; }
.leaf-scroll-name { font-size: 14px; font-weight: 700; color: #eaf5ee; }
.leaf-scroll-cat { font-size: 11px; color: #d4af37; margin-left: 6px; }
.leaf-scroll-desc { font-size: 12px; color: #a8ccb8; margin-top: 3px; }
/* ===== Remove flex from nav/search (site 13) ===== */
.search-bar-wrap { display: block !important; }
.hamburger-menu { display: block; }
.hamburger-item { display: block !important; width: 100%; text-align: left; }
/* ===== Fix: hamburger menu as floating overlay, not pushing content (site 13) ===== */
.hamburger-menu {
  position: fixed !important; top: 52px; left: 0; right: 0; bottom: auto;
  max-height: 70vh; overflow-y: auto;
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
}
/* ===== Module diversify: replace zig-list (site 13) ===== */

.vinyl-row { display: flex; gap: 16px; padding: 12px 20px; overflow-x: auto; }
.vinyl-item { flex-shrink: 0; width: 76px; text-align: center; cursor: pointer; }
.vinyl-disc { width: 76px; height: 76px; border-radius: 50%; background: #0b2e1f; box-shadow: 0 0 0 3px #1c5a3d, 0 0 0 6px #0b2e1f, 0 0 0 9px #d4af37; display: flex; align-items: center; justify-content: center; }
.vinyl-disc-img { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; border: 2px solid #d4af37; }
.vinyl-nm { font-size: 10px; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

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