/* ===== 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: radial-gradient(ellipse at 20% 0%, #4a1a6b 0%, #1b0b34 55%, #1b0b34 100%),
    linear-gradient(160deg, #1b0b34 0%, #4a1a6b 55%, #7a2a8a 100%);
  background-attachment: fixed;
  color: #f6ecff;
  line-height: 1.4;
  padding-bottom: 24px;
  overflow-x: hidden;
  position: relative;
}
/* Pure-CSS starfield overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 10% 15%, rgba(255,255,255,.9) 0, transparent 100%),
    radial-gradient(2px 2px at 82% 8%, rgba(255,255,255,.8) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 45% 32%, rgba(255,255,255,.7) 0, transparent 100%),
    radial-gradient(2px 2px at 65% 60%, rgba(255,255,255,.85) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 25% 75%, rgba(255,255,255,.6) 0, transparent 100%),
    radial-gradient(2px 2px at 92% 45%, rgba(255,255,255,.75) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 5% 90%, rgba(255,255,255,.6) 0, transparent 100%),
    radial-gradient(2px 2px at 55% 12%, rgba(255,95,176,.8) 0, transparent 100%),
    radial-gradient(1.5px 1.5px at 35% 55%, rgba(242,193,78,.8) 0, transparent 100%),
    radial-gradient(2px 2px at 78% 82%, rgba(255,95,176,.7) 0, transparent 100%),
    repeating-radial-gradient(circle at 15% 40%, rgba(255,255,255,.5) 0px, transparent 1px 90px),
    repeating-radial-gradient(circle at 70% 70%, rgba(255,255,255,.4) 0px, transparent 1px 120px);
  background-repeat: repeat;
  background-size: 100% 100%;
  opacity: .9;
}
[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: rgba(27,11,52,.85); border-bottom: 1px solid rgba(255,95,176,.35);
  backdrop-filter: blur(6px);
}
.topbar-logo { font-size: 18px; font-weight: 700; color: #f2c14e; text-shadow: 0 0 10px rgba(242,193,78,.5); }
.topbar-search-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #7a2a8a, #4a1a6b); color: #ffe9fb;
  box-shadow: 0 0 12px rgba(255,95,176,.35);
}
/* ===== Category Tabs ===== */
.cat-tabs {
  position: sticky; top: 60px; z-index: 30;
  background: rgba(27,11,52,.9); border-bottom: 1px solid rgba(255,95,176,.25);
  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: rgba(122,42,138,.45); color: #e3c9f5; font-size: 13px; font-weight: 600;
  border: 1px solid rgba(255,95,176,.2);
}
.cat-tab.active {
  background: linear-gradient(135deg, #ff5fb0, #f2c14e); color: #1b0b34;
  box-shadow: 0 0 16px rgba(255,95,176,.5);
}
/* ===== Search ===== */
.search-bar-wrap {
  position: sticky; top: 60px; z-index: 30;
  display: flex; gap: 8px; padding: 10px 16px;
  background: rgba(27,11,52,.9); border-bottom: 1px solid rgba(255,95,176,.25);
}
.search-input {
  flex: 1; padding: 9px 14px; border-radius: 16px; border: 1px solid rgba(255,95,176,.3);
  background: rgba(122,42,138,.35); color: #f6ecff; font-size: 14px;
}
.search-cancel { font-size: 14px; color: #ff5fb0; 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 rgba(255,95,176,.25); border-top-color: #f2c14e;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 16px rgba(255,95,176,.35);
}
@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; color: #ffe9fb; text-shadow: 0 0 8px rgba(255,95,176,.4); }
.sec-more { font-size: 12px; color: #f2c14e; font-weight: 600; }
.sec-cnt { font-size: 13px; color: #e3c9f5; }
/* ===== 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 0 12px rgba(255,95,176,.25); border: 1px solid rgba(255,95,176,.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: #e3c9f5;
  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: linear-gradient(135deg, #7a2a8a, #4a1a6b); color: #ffe9fb;
  font-size: 13px; font-weight: 600; box-shadow: 0 0 14px rgba(255,95,176,.3); border: 1px solid rgba(255,95,176,.3);
}
/* ===== Filter header ===== */
.filter-hdr { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.filter-back { font-size: 13px; color: #f2c14e; font-weight: 600; }
.filter-title { flex: 1; font-size: 16px; font-weight: 700; color: #ffe9fb; }
.filter-cnt { font-size: 12px; color: #e3c9f5; }
.empty-msg { text-align: center; padding: 60px 0; color: #e3c9f5; font-size: 13px; }
/* ===== Footer ===== */
.site-footer { display: flex; justify-content: center; gap: 10px; padding: 24px 16px; font-size: 12px; color: #c9a8de; }
/* ===== 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, #ff5fb0, #f2c14e); color: #1b0b34; font-size: 16px;
  box-shadow: 0 0 16px rgba(255,95,176,.35);
}
/* ===== 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: #e3c9f5; }
.masonry-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 64px; gap: 8px; padding: 0 16px; }
.masonry-item { border-radius: 12px; overflow: hidden; cursor: pointer; position: relative; }
.masonry-item img { width: 100%; height: 100%; object-fit: cover; }
.masonry-item:nth-child(3n+1) { grid-row: span 2; }
.masonry-nm { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; font-size: 10px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.75)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.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; background: linear-gradient(135deg, #ff5fb0, #f2c14e); color: #1b0b34; text-transform: uppercase; }
.banner-title { font-size: 16px; font-weight: 800; color: #fff; }
.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: #e3c9f5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stack-row { display: flex; padding: 20px 30px 12px; justify-content: center; }
.stack-card { width: 88px; aspect-ratio: 1/1; border-radius: 14px; overflow: hidden; margin-left: -22px; box-shadow: 0 6px 14px rgba(0,0,0,.4); cursor: pointer; }
.stack-card:first-child { margin-left: 0; }
.stack-card:nth-child(1) { transform: rotate(-8deg); }
.stack-card:nth-child(2) { transform: rotate(4deg); }
.stack-card:nth-child(3) { transform: rotate(-3deg); }
.stack-card:nth-child(4) { transform: rotate(7deg); }
.stack-card:nth-child(5) { transform: rotate(-5deg); }
.stack-card img { width: 100%; height: 100%; object-fit: cover; }
/* Podium ranking (1st big center, 2nd/3rd smaller sides) */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding: 10px 16px; }
.podium-item { cursor: pointer; text-align: center; }
.podium-item.p1 { width: 110px; order: 2; }
.podium-item.p2 { width: 82px; order: 1; }
.podium-item.p3 { width: 82px; order: 3; }
.podium-img { border-radius: 12px; overflow: hidden; aspect-ratio: 1/1; }
.podium-nm { font-size: 11px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Rotated polaroid photo stack */
.polaroid-row { display: flex; gap: 20px; padding: 14px 20px 18px; overflow-x: auto; }
.polaroid { flex-shrink: 0; width: 90px; background: #fff; padding: 6px 6px 18px; border-radius: 4px; box-shadow: 0 4px 10px rgba(0,0,0,.35); cursor: pointer; }
.polaroid:nth-child(odd) { transform: rotate(-4deg); }
.polaroid:nth-child(even) { transform: rotate(4deg); }
.polaroid-img { aspect-ratio: 1/1; overflow: hidden; }
.polaroid-nm { font-size: 9px; text-align: center; color: #222; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Speech-bubble cards */
.bubble-wrap { display: flex; gap: 12px; padding: 10px 16px 16px; flex-wrap: wrap; }
.bubble-card { position: relative; flex: 1 1 26%; min-width: 80px; border-radius: 14px; padding: 8px; text-align: center; cursor: pointer; background: rgba(255,255,255,.06); }
.bubble-card::after { content: ''; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); border-width: 8px 6px 0; border-style: solid; border-color: rgba(255,255,255,.06) transparent transparent; }
.bubble-img { border-radius: 10px; overflow: hidden; aspect-ratio: 1/1; }
.bubble-nm { font-size: 10px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Diagonal-clip split feature */
.feat-split2 { display: flex; border-radius: 16px; overflow: hidden; cursor: pointer; background: rgba(255,255,255,.04); min-height: 150px; }
.feat-split2-body { flex: 1; padding: 16px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.feat-split2-badge { align-self: flex-start; font-size: 10px; font-weight: 700; background: #f2c14e; color: #222; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; }
.feat-split2-title { font-size: 18px; font-weight: 800; }
.feat-split2-desc { font-size: 12px; opacity: .75; }
.feat-split2-img { width: 46%; clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%); flex-shrink: 0; }
.feat-split2-img img { width: 100%; height: 100%; object-fit: cover; }
/* Hot: 2-col masonry */
.hotmason { columns: 2; column-gap: 8px; padding: 0 16px; }
.hotmason-item { break-inside: avoid; margin-bottom: 8px; border-radius: 12px; overflow: hidden; position: relative; cursor: pointer; }
.hotmason-img { aspect-ratio: 1/1; }
.hotmason-img img { width: 100%; height: 100%; object-fit: cover; }
.hotmason-nm { position: absolute; left: 0; right: 0; bottom: 0; padding: 5px; font-size: 10px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zig-desc { font-size: 11px; color: #e3c9f5; margin-top: 3px; }
.banner-desc { font-size: 12px; color: #e8e8e8; margin-top: 4px; }
/* ===== Spotlight Picks (starlist) ===== */
.star-list { display: flex; flex-direction: column; gap: 14px; padding: 0 16px; }
.star-item { cursor: pointer; padding-bottom: 12px; border-bottom: 1px solid rgba(255,95,176,.2); }
.star-item:last-child { border-bottom: none; }
.star-bullet { color: #f2c14e; margin-right: 6px; text-shadow: 0 0 6px rgba(242,193,78,.6); }
.star-name { font-size: 14px; font-weight: 700; background: linear-gradient(135deg, #ff5fb0, #f2c14e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.star-cat { font-size: 11px; color: #e3c9f5; margin-left: 8px; }
.star-desc { font-size: 12px; color: #d9c2ee; margin-top: 4px; margin-left: 20px; opacity: .85; }

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