/* ===== Base / Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Segoe UI Black', 'Arial', sans-serif;
  background-color: #01180a;
  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: #eafcf0;
  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: #02210d; border-bottom: 1px solid #12402a;
  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); }
.topbar-search-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #0b301a; color: #f0ff00;
  border: 1px solid rgba(0,240,255,.4);
  box-shadow: 0 0 10px rgba(0,240,255,.3);
}
/* ===== Category Tabs ===== */
.cat-tabs {
  position: sticky; top: 60px; z-index: 30;
  background: #01180a; border-bottom: 1px solid #12402a;
  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: #0a2b17; color: #a8d6b6; font-size: 13px; font-weight: 600;
  border: 1px solid rgba(255,43,214,.25);
}
.cat-tab.active {
  background: linear-gradient(135deg, #2bd6ff, #1bff7a);
  color: #ffffff;
  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: #01180a; border-bottom: 1px solid #12402a;
}
.search-input {
  flex: 1; padding: 9px 14px; border-radius: 10px; border: 1px solid rgba(0,240,255,.3);
  background: #082a14; color: #eafcf0; 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 #12402a; border-top-color: #2bd6ff;
  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: #f0ff00; font-weight: 600; }
.sec-cnt { font-size: 13px; color: #8fc0a0; }
/* ===== 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, #2bd6ff, #1bff7a); color: #ffffff; 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: #b6ddc3; 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: #4a805b; flex-shrink: 0; }
.rnum.rn-1 { color: #2bd6ff; text-shadow: 0 0 8px rgba(255,43,214,.7); }
.rnum.rn-2 { color: #8ae8ff; }
.rnum.rn-3 { color: #f0ff00; 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: #8fc0a0; }
.rdesc { font-size: 11px; color: #8fc0a0; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rplay { color: #2bd6ff; 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: #b6ddc3;
  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: #b6ddc3;
  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, #f0ff00, #6bff2b); color: #01180a;
  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: #ffffff; margin-top: 6px; }
.spot-desc { font-size: 11px; color: #c9f0d9; 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: #0a2b17; color: #f0ff00;
  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: #f0ff00; font-weight: 600; }
.filter-title { flex: 1; font-size: 16px; font-weight: 700; letter-spacing: .03em; }
.filter-cnt { font-size: 12px; color: #8fc0a0; }
.empty-msg { text-align: center; padding: 60px 0; color: #8fc0a0; font-size: 13px; }
/* ===== Footer ===== */
.site-footer { display: flex; justify-content: center; gap: 10px; padding: 24px 16px; font-size: 12px; color: #6a9c7a; }
/* ===== 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, #2bd6ff, #f0ff00); color: #01180a; 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: #b6ddc3; }
.twcard-desc, .tgcard-desc { font-size: 10px; color: #c9f0d9; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ===== Theme 18: Autumn Rust ===== */
body { background: linear-gradient(160deg, #24163a, #130a1f); color: #e6d3f5; }
.topbar { background: #1a0f2a; border-bottom: 1px solid #42266b; }
.topbar-logo { color: #823ce8; }
.topbar-search-btn { background: #24163a; color: #823ce8; }
.cat-tabs { background: #1a0f2a; border-bottom: 1px solid #42266b; }
.cat-tab { background: #24163a; color: #a878c9; border: 1px solid #42266b; border-radius: 8px; }
.cat-tab.active { background: #823ce8; color: #1a0f2a; }
.search-bar-wrap { display: flex; justify-content: flex-end; padding: 10px 16px; background: #1a0f2a; border-bottom: 1px solid #42266b; }
.search-input { width: 260px; border-radius: 8px; border: 1px solid #42266b; background: #24163a; color: #e6d3f5; }
.sec-label { color: #e6d3f5; }
.sec-more { color: #823ce8; }
.feat-badge, .spot-badge, .adv-badge, .banner-badge { background: #823ce8; color: #1a0f2a; }
.totop-btn { background: #823ce8; color: #1a0f2a; }
.htcard, .hsmcard-img, .rthumb, .pzcard-img, .kcard-img, .agcard-img, .gcard-img, .twcard-img, .tgcard-img { border-radius: 10px !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: #a878c9; }
.zig-list { display: flex; flex-direction: column; gap: 16px; 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: #823ce8; }
.zig-desc { font-size: 11px; color: #a878c9; margin-top: 3px; }
.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: #a878c9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ===== Featured + Hot Games (site 18) ===== */

.rustic-feat { position: relative; border-radius: 4px; overflow: hidden; display: flex; cursor: pointer; border: 3px solid #42266b; clip-path: polygon(0 0, 100% 0, 100% 90%, 92% 100%, 0 100%); }
.rustic-feat-img { width: 40%; flex-shrink: 0; aspect-ratio: 1/1; }
.rustic-feat-img img { width: 100%; height: 100%; object-fit: cover; }
.rustic-feat-body { flex: 1; padding: 12px; background: #1a0f2a; display: flex; flex-direction: column; gap: 5px; }
.rustic-feat-badge { align-self: flex-start; font-size: 10px; font-weight: 700; background: #823ce8; color: #1a0f2a; padding: 3px 8px; border-radius: 4px; }
.rustic-feat-title { font-size: 16px; font-weight: 800; color: #e6d3f5; }
.rustic-feat-desc { font-size: 11px; color: #a878c9; }
.leaf-fall-grid { display: flex; flex-wrap: wrap; gap: 12px; padding: 10px 16px; }
.leaf-fall-item { width: 68px; text-align: center; cursor: pointer; }
.leaf-fall-item:nth-child(odd) { transform: rotate(-5deg); }
.leaf-fall-item:nth-child(even) { transform: rotate(5deg); }
.leaf-fall-img { width: 68px; height: 68px; border-radius: 8px; overflow: hidden; border: 2px solid #42266b; }
.leaf-fall-nm { font-size: 9px; margin-top: 3px; color: #a878c9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ===== Spotlight Picks restyle (site 18) ===== */

.acorn-list { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
.acorn-item { cursor: pointer; padding-bottom: 10px; border-bottom: 2px dashed #42266b; }
.acorn-item:last-child { border-bottom: none; }
.acorn-name { font-size: 14px; font-weight: 700; color: #e6d3f5; }
.acorn-cat { font-size: 11px; color: #823ce8; margin-left: 6px; }
.acorn-desc { font-size: 12px; color: #a878c9; margin-top: 3px; }
/* ===== Remove flex from nav/search (site 18) ===== */
.cat-tabs-inner { display: block !important; white-space: nowrap; }
.cat-tab { display: inline-block !important; margin-right: 8px; }
.search-bar-wrap { display: block !important; text-align: right; }

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