/* ===== Base / Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: #100f17;
  color: #f2f2f5;
  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: #16141f; border-bottom: 1px solid #24222f;
}
.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: #201e29; color: #f2f2f5;
}
/* ===== Category Tabs ===== */
.cat-tabs {
  position: static; top: 60px; z-index: 30;
  background: #100f17; border-bottom: 1px solid #201e29;
  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: #1c1a26; color: #b7b6c6; font-size: 13px; font-weight: 600;
}
.cat-tab.active { background: #825bff; color: #ffffff; }
/* ===== Search ===== */
.search-bar-wrap {
  position: static; top: 60px; z-index: 30;
  display: flex; gap: 8px; padding: 10px 16px;
  background: #100f17; border-bottom: 1px solid #201e29;
}
.search-input {
  flex: 1; padding: 9px 14px; border-radius: 10px; border: none;
  background: #1c1a26; color: #f2f2f5; font-size: 14px;
}
.search-cancel { font-size: 14px; color: #825bff; 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 #282636; border-top-color: #825bff;
  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: #8d8aa3; font-weight: 600; }
.sec-cnt { font-size: 13px; color: #8d8aa3; }
/* ===== 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: #cac8d6;
  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: #1c1a26; color: #f2f2f5;
  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: #8d8aa3; font-weight: 600; }
.filter-title { flex: 1; font-size: 16px; font-weight: 700; }
.filter-cnt { font-size: 12px; color: #8d8aa3; }
.empty-msg { text-align: center; padding: 60px 0; color: #8d8aa3; font-size: 13px; }
/* ===== Footer ===== */
.site-footer { display: flex; justify-content: center; gap: 10px; padding: 24px 16px; font-size: 12px; color: #6e6b80; }
/* ===== Back to top ===== */
.totop-btn {
  position: fixed; right: 16px; bottom: 20px; z-index: 50;
  width: 40px; height: 40px; border-radius: 50%;
  background: #825bff; color: #ffffff; 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 #201e29; }
.ts-item:last-child { border-bottom: none; }
.ts-name { font-size: 14px; font-weight: 700; margin-right: 8px; }
.ts-cat { font-size: 11px; color: #825bff; font-weight: 600; }
.ts-desc { font-size: 12px; color: #aaa7bb; margin-top: 4px; }
/* ===================================================
   Theme 7: Ocean Aqua — override block
   =================================================== */
body { background: radial-gradient(ellipse 70% 50% at 20% 0%, #003ab6 0%, transparent 55%), radial-gradient(ellipse 60% 40% at 90% 100%, #006cd8 0%, transparent 60%), linear-gradient(160deg, #20035e, #010526); color: #eaf1fb; }
.topbar { background: #010526; border-bottom: 1px solid #02205c; }
.topbar-logo { color: #006cd8; }
.topbar-search-btn { background: #010526; color: #006cd8; border: 1px solid #02205c; }
.cat-tabs, .search-bar-wrap { background: transparent; border-bottom: 1px solid #02205c; }
.cat-tab { flex-shrink: 0; padding: 8px 18px; border-radius: 999px; background: rgba(0,180,216,.12); color: #90c0ef; font-size: 13px; font-weight: 600; border: 1px solid rgba(0,180,216,.3); }
.cat-tab.active { background: #006cd8; color: #010526; box-shadow: 0 0 12px rgba(0,180,216,.5); }
.search-input { flex: 1; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(0,180,216,.4); background: #01173a; color: #eaf1fb; font-size: 14px; }
.search-cancel { color: #006cd8; }
.sec-label { color: #eaf1fb; }
.sec-more { color: #006cd8; }
.totop-btn { background: #006cd8; color: #010526; }
.htcard, .hsmcard-img, .rthumb, .pzcard-img, .kcard-img, .agcard-img, .gcard-img, .twcard-img, .tgcard-img { border-radius: 50% !important; }
/* Spotlight Picks restyle: Ocean */
.ts-item { border-bottom: 1px solid #02205c; padding-bottom: 12px; }
.ts-item::before { content: '🌊 '; }
.ts-name { color: #eaf1fb; }
.ts-cat { color: #006cd8; }
.ts-desc { color: #90c0ef; opacity: .8; }
.bubble-cluster { display: flex; align-items: flex-end; gap: 0; padding: 16px 20px 20px; overflow-x: auto; }
.bubble-item { flex-shrink: 0; width: 70px; margin-left: -14px; text-align: center; cursor: pointer; }
.bubble-item:first-child { margin-left: 0; }
.bubble-item:nth-child(odd) { transform: translateY(-14px); }
.bubble-img { width: 70px; height: 70px; border-radius: 50%; overflow: hidden; border: 2px solid #006cd8; box-shadow: 0 0 12px rgba(0,180,216,.3); }
.bubble-nm { font-size: 10px; margin-top: 4px; color: #90c0ef; 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 #006cd8; margin: 0 auto; }
.medal-ribbon { display: inline-block; margin-top: -8px; background: #006cd8; color: #010526; 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: #eaf1fb; 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 #006cd8; 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: #eaf1fb; }
.quote-text { font-size: 12px; font-style: italic; color: #02205c; margin-top: 3px; }
.ledger-table { display: flex; flex-direction: column; margin: 0 16px; border: 1px solid #02205c; border-radius: 4px; overflow: hidden; }
.ledger-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid #02205c; cursor: pointer; }
.ledger-row:last-child { border-bottom: none; }
.ledger-idx { width: 20px; font-size: 12px; font-weight: 800; color: #006cd8; }
.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: #eaf1fb; }
.ledger-cat { font-size: 11px; color: #006cd8; }
.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 #006cd8; }
.envelope-icon { width: 82px; height: 66px; border-radius: 0 0 8px 8px; overflow: hidden; border: 2px solid #006cd8; border-top: none; }
.envelope-nm { font-size: 10px; margin-top: 4px; color: #eaf1fb; 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: #006cd8; color: #010526; 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: #02205c; }
.colorblock-nm { font-size: 10px; margin-top: 4px; color: #eaf1fb; 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: #006cd8; color: #010526; 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: #006cd8; color: #010526; 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 #006cd8; }
.folder-nm { font-size: 10px; margin-top: 4px; color: #eaf1fb; 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 #006cd8; 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: #eaf1fb; 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 7) ===== */

.wave-top { display: flex; gap: 12px; padding: 8px 16px; overflow-x: auto; }
.wave-top-card { flex-shrink: 0; width: 150px; position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4/5; cursor: pointer; }
.wave-top-card img { width: 100%; height: 100%; object-fit: cover; }
.wave-top-ovl { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px; background: linear-gradient(transparent, rgba(1,17,38,.85)); }
.wave-top-badge { display: inline-block; font-size: 9px; font-weight: 700; background: #006cd8; color: #010526; padding: 2px 7px; border-radius: 999px; text-transform: uppercase; }
.wave-top-nm { font-size: 13px; font-weight: 800; color: #ffffff; margin-top: 4px; }
.wave-top-desc { font-size: 10px; color: #cde0f7; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ===== Nav restyle: wavy underline tabs (site 7) ===== */
.cat-tabs-inner { gap: 20px; padding: 10px 16px 0; }
.cat-tab { background: transparent !important; border: none !important; box-shadow: none !important; padding: 6px 2px 12px !important; color: #90c0ef; position: relative; }
.cat-tab.active { color: #006cd8 !important; font-weight: 800; }
.cat-tab.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: #006cd8;
  border-radius: 0 0 8px 8px / 0 0 14px 14px;
  box-shadow: 0 0 8px rgba(0,180,216,.6);
}

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