/* ===== Base / Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Cambria', Georgia, serif;
  background:
    radial-gradient(ellipse 60% 40% at 15% 8%, rgba(217,162,75,0.10), transparent 60%),
    radial-gradient(ellipse 50% 35% at 88% 20%, rgba(91,167,90,0.12), transparent 65%),
    radial-gradient(ellipse 70% 45% at 50% 95%, rgba(138,90,59,0.10), transparent 60%),
    linear-gradient(160deg, #192a13, #0f190c);
  color: #f3f2ea;
  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: #1f3116; border-bottom: 1px solid #314624;
}
.topbar-logo { font-size: 18px; font-weight: 700; color: #d94b53; }
.topbar-search-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #2b3d1f; color: #f3f2ea;
}
/* ===== Category Tabs ===== */
.cat-tabs {
  position: static; top: 60px; z-index: 30;
  background: #16240f; border-bottom: 1px solid #2b3d1f;
  overflow-x: auto; white-space: nowrap;
}
.cat-tabs-inner { display: inline-flex; gap: 18px; padding: 10px 16px 0; }
.cat-tab {
  flex-shrink: 0; padding: 7px 2px 10px; border-radius: 0;
  background: transparent; color: #9ba98b; font-size: 13px; font-weight: 600;
  border-bottom: 3px solid transparent;
}
.cat-tab.active { background: transparent; color: #d94b53; border-bottom-color: #d94b53; }
/* ===== Search ===== */
.search-bar-wrap {
  position: static; top: 60px; z-index: 30;
  display: flex; gap: 8px; padding: 10px 16px;
  background: #16240f; border-bottom: 1px solid #2b3d1f;
}
.search-input {
  flex: 1; padding: 9px 14px; border-radius: 4px; border: 1px solid #415a2f;
  background: #283a1c; color: #f3f2ea; font-size: 14px;
}
.search-cancel { font-size: 14px; color: #d94b53; 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 #314624; border-top-color: #d94b53;
  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; color: #e7ccc9; }
.sec-more { font-size: 12px; color: #acae82; font-weight: 600; }
.sec-cnt { font-size: 13px; color: #acae82; }
/* ===== 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: 10px; 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: #d1d0bb;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.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; }
.twcard-img img, .tgcard-img img { aspect-ratio: 1/1; }
.twcard-nm, .tgcard-nm {
  font-size: 11px; margin-top: 5px; text-align: center; color: #d1d0bb;
  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: #283a1c; color: #f3f2ea;
  border: 1px solid #465c34;
  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: #acae82; font-weight: 600; }
.filter-title { flex: 1; font-size: 16px; font-weight: 700; }
.filter-cnt { font-size: 12px; color: #acae82; }
.empty-msg { text-align: center; padding: 60px 0; color: #acae82; font-size: 13px; }
/* ===== Footer ===== */
.site-footer { display: flex; justify-content: center; gap: 10px; padding: 24px 16px; font-size: 12px; color: #868b68; }
/* ===== Back to top ===== */
.totop-btn {
  position: fixed; right: 16px; bottom: 20px; z-index: 50;
  width: 40px; height: 40px; border-radius: 50%;
  background: #d94b53; color: #1e210f; font-size: 16px;
  box-shadow: 0 4px 14px rgba(20,12,4,.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: #d1d0bb; }
/* ===== 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: #acae82; }
.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: #ffffff; 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: #d94b53; color: #1e210f; text-transform: uppercase; }
.banner-title { font-size: 16px; font-weight: 800; color: #ffffff; }
/* Split hero + vertical mini list */
.split-wrap { display: flex; gap: 10px; padding: 0 16px; }
.split-hero { flex: 1.2; border-radius: 14px; overflow: hidden; position: relative; cursor: pointer; aspect-ratio: 3/4; }
.split-hero img { width: 100%; height: 100%; object-fit: cover; }
.split-hero::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(transparent, rgba(0,0,0,.75)); pointer-events: none; }
.split-hero-nm { position: absolute; left: 8px; bottom: 24px; color: #ffffff; font-weight: 700; font-size: 13px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.split-hero-desc { position: absolute; left: 8px; bottom: 8px; right: 8px; color: #f3f2ea; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.split-list { flex: 1; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.split-list-item { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.split-list-img { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.split-list-nm { font-size: 11px; }
/* Hexagon clipped tiles */
.hex-row { display: flex; gap: 16px; padding: 10px 20px; overflow-x: auto; }
.hexcard { flex-shrink: 0; width: 76px; text-align: center; cursor: pointer; }
.hex-img { width: 76px; height: 66px; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); overflow: hidden; }
.hex-img img { width: 100%; height: 100%; object-fit: cover; }
.hex-nm { font-size: 10px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Accordion-style stacked bars */
.bar-list { display: flex; flex-direction: column; gap: 6px; padding: 0 16px; }
.bar-item { display: flex; align-items: center; gap: 10px; padding: 12px 8px; cursor: pointer; border-radius: 8px; }
.bar-item:nth-child(odd) { background: rgba(255,255,255,.05); }
.bar-icon { width: 30px; height: 30px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.bar-body { flex: 1; min-width: 0; }
.bar-nm { font-size: 13px; }
.bar-desc { font-size: 11px; color: #acae82; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-arrow { opacity: .5; }
/* Minimal circular-avatar feature */
.feat-mini { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.04); cursor: pointer; }
.feat-mini-img { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.feat-mini-img img { width: 100%; height: 100%; object-fit: cover; }
.feat-mini-body { flex: 1; min-width: 0; }
.feat-mini-badge { font-size: 9px; font-weight: 700; color: #5bd8ff; text-transform: uppercase; }
.feat-mini-title { font-size: 15px; font-weight: 800; margin-top: 2px; }
.feat-mini-desc { font-size: 11px; opacity: .7; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Hot: 1 big + 4 small mosaic */
.hotmosaic { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; padding: 0 16px; }
.hotmosaic-big { grid-row: span 2; border-radius: 12px; overflow: hidden; position: relative; cursor: pointer; }
.hotmosaic-big img, .hotmosaic-sm img { width: 100%; height: 100%; object-fit: cover; }
.hotmosaic-sm { border-radius: 10px; overflow: hidden; position: relative; cursor: pointer; }
.hotmosaic-nm { position: absolute; left: 0; right: 0; bottom: 0; padding: 5px; font-size: 10px; color: #ffffff; background: linear-gradient(transparent, rgba(0,0,0,.7)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.twcard-desc, .tgcard-desc { font-size: 10px; color: #dfd8c9; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zig-desc { font-size: 11px; color: #dfd8c9; margin-top: 3px; }
.banner-desc { font-size: 12px; color: #e8e8e8; margin-top: 4px; }
/* ===== Spotlight Picks (field journal) ===== */
.journal-list { display: flex; flex-direction: column; gap: 12px; padding: 0 16px; border-left: 2px solid #415a2f; margin-left: 16px; padding-left: 16px; }
.journal-item { cursor: pointer; padding-bottom: 10px; }
.journal-bullet { margin-right: 6px; }
.journal-name { font-size: 14px; font-weight: 700; font-style: italic; color: #e7ccc9; }
.journal-cat { font-size: 12px; color: #acae82; margin-left: 4px; }
.journal-desc { font-size: 12px; color: #d1d0bb; margin-top: 3px; margin-left: 20px; }

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