/* ===== 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; 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: #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); }
.topbar-search-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #1a0b30; color: #00f0ff;
  border: 1px solid rgba(0,240,255,.4);
  box-shadow: 0 0 10px rgba(0,240,255,.3);
}
/* ===== Category Tabs ===== */
.cat-tabs {
  position: static; top: 60px; z-index: 30;
  background: #0a0118; border-bottom: 1px solid #2a1240;
  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: #170a2b; color: #b6a8d6; font-size: 13px; font-weight: 600;
  border: 1px solid rgba(255,43,214,.25);
}
.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: static; 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-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); }
/* ===== Puzzle horizontal scroll ===== */
.puzzle-scroll { display: flex; gap: 10px; padding: 0 16px; overflow-x: auto; }
.pzcard { flex-shrink: 0; width: 92px; cursor: pointer; }
.pzcard-img { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,43,214,.2); }
.pzcard-img img { aspect-ratio: 1/1; }
.pzcard-nm { font-size: 11px; margin-top: 5px; text-align: center; color: #c3b6dd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ===== 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; }
.adv-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; }
}
.twcard-desc, .tgcard-desc { font-size: 10px; color: #d9c9f0; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ===== Theme 14: Noir Monochrome ===== */
body { background: #0a0a0a; color: #e5e5e5; }
.topbar { background: #000; border-bottom: 2px solid #e11d2e; }
.topbar-logo { color: #fff; letter-spacing: .05em; }
.topbar-search-btn { background: #1a1a1a; color: #e11d2e; }
.cat-tabs { background: #0a0a0a; border-bottom: 1px solid #2a2a2a; }
.cat-tab { background: #1a1a1a; color: #999; border-radius: 999px; border: 1px solid #2a2a2a; }
.cat-tab.active { background: #e11d2e; color: #fff; border-color: #e11d2e; }
.search-bar-wrap { display: flex; justify-content: center; padding: 12px 16px; background: #0a0a0a; border-bottom: 1px solid #2a2a2a; }
.search-input { width: 180px; text-align: center; border-radius: 999px; border: 1px solid #2a2a2a; background: #1a1a1a; color: #e5e5e5; }
.sec-label { color: #fff; }
.sec-more { color: #e11d2e; }
.feat-badge, .spot-badge, .adv-badge, .banner-badge { background: #e11d2e; color: #fff; }
.totop-btn { background: #e11d2e; color: #fff; }
.htcard, .hsmcard-img, .rthumb, .pzcard-img, .kcard-img, .agcard-img, .gcard-img, .twcard-img, .tgcard-img { border-radius: 4px !important; filter: grayscale(.15); }
.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: #e11d2e; }
.zig-desc { font-size: 11px; color: #999999; margin-top: 3px; }
.banner-single { position: relative; border-radius: 16px; overflow: hidden; margin: 0 16px; aspect-ratio: 16/8; cursor: pointer; }
.banner-single img { width: 100%; height: 100%; object-fit: cover; }
.banner-ovl { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; background: linear-gradient(transparent, rgba(0,0,0,.78)); }
.banner-badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 6px; margin-bottom: 4px; text-transform: uppercase; }
.banner-title { font-size: 16px; font-weight: 800; color: #fff; }
.banner-desc { font-size: 12px; color: #eee; margin-top: 4px; }
/* ===== Featured + Hot Games (site 14) ===== */

.noir-feat { position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 16/9; cursor: pointer; }
.noir-feat img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3); }
.noir-feat-ribbon { position: absolute; top: 14px; right: -30px; background: #e11d2e; color: #fff; font-size: 11px; font-weight: 800; padding: 4px 40px; transform: rotate(35deg); text-transform: uppercase; }
.noir-feat-ovl { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; background: linear-gradient(transparent, rgba(0,0,0,.9)); }
.noir-feat-title { font-size: 18px; font-weight: 800; color: #fff; }
.noir-feat-desc { font-size: 12px; color: #bbb; margin-top: 4px; }
.lean-list { display: flex; flex-direction: column; padding: 0 16px; }
.lean-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 2px solid #e11d2e; cursor: pointer; }
.lean-idx { font-size: 13px; font-weight: 800; color: #e11d2e; width: 20px; }
.lean-img { width: 40px; height: 40px; border-radius: 4px; overflow: hidden; flex-shrink: 0; filter: grayscale(.2); }
.lean-nm { flex: 1; font-size: 13px; color: #e5e5e5; }
/* ===== Spotlight Picks restyle (site 14) ===== */

.receipt-list { display: flex; flex-direction: column; gap: 0; padding: 12px 16px; margin: 0 16px; background: #111; border: 1px dashed #333; }
.receipt-item { cursor: pointer; padding: 10px 0; border-bottom: 1px dotted #444; }
.receipt-item:last-child { border-bottom: none; }
.receipt-name { font-size: 13px; font-weight: 700; color: #fff; letter-spacing: .02em; }
.receipt-cat { font-size: 10px; color: #e11d2e; margin-left: 8px; text-transform: uppercase; border: 1px solid #e11d2e; padding: 1px 5px; }
.receipt-desc { font-size: 11px; color: #888; margin-top: 3px; }
/* ===== Remove flex from nav/search (site 14) ===== */
.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: center; }
/* ===== Nav restyle: underline tabs (site 14) ===== */
.cat-tab { background: transparent !important; border: none !important; border-radius: 0 !important; padding: 6px 2px !important; margin-right: 20px !important; position: relative; color: #999 !important; }
.cat-tab.active { color: #fff !important; border-color: transparent !important; }
.cat-tab.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 3px; background: #e11d2e;
}

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