/* ===== Base / Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Arial Rounded MT Bold', 'Verdana', sans-serif;
  background: #f7f9fa;
  background-image:
    linear-gradient(135deg, rgba(255,107,53,.10) 0%, rgba(255,107,53,0) 40%),
    linear-gradient(315deg, rgba(26,43,76,.06) 0%, rgba(26,43,76,0) 45%);
  background-repeat: no-repeat;
  background-size: 100% 340px, 100% 340px;
  background-position: top right, top left;
  color: #1a3c4c;
  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: #ffffff; border-bottom: 1px solid #e4eaec;
}
.topbar-logo { font-size: 18px; font-weight: 800; color: #1a3c4c; }
.topbar-search-btn {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: #f1f5f6; color: #1a3c4c; border: 1px solid #e4eaec;
}
/* ===== Category Tabs ===== */
.cat-tabs {
  position: static; top: 60px; z-index: 30;
  background: #f7f9fa; border-bottom: 1px solid #e4eaec;
  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: 2px;
  background: #ffffff; color: #4a6270; font-size: 12px; font-weight: 800;
  border: 2px solid #e4eaec; text-transform: uppercase; letter-spacing: .03em;
}
.cat-tab.active { background: #1a3c4c; color: #ffffff; border-color: #1a3c4c; }
/* ===== Search ===== */
.search-bar-wrap {
  position: static; top: 60px; z-index: 30;
  display: flex; gap: 8px; padding: 10px 16px;
  background: #f7f9fa; border-bottom: 1px solid #e4eaec;
}
.search-input {
  flex: 1; padding: 9px 14px; border-radius: 2px; border: 2px solid #1a3c4c;
  background: #ffffff; color: #1a3c4c; font-size: 14px;
}
.search-cancel { font-size: 14px; color: #ff3542; font-weight: 700; 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 #e4eaec; border-top-color: #ff3542;
  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: 800; color: #1a3c4c; }
.sec-more { font-size: 12px; color: #ff3542; font-weight: 700; }
.sec-cnt { font-size: 13px; color: #6b7e88; }
/* ===== 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: 8px; overflow: hidden; border: 1px solid #e4eaec; }
.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: #4a6270;
  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: 8px; background: #ffffff; color: #1a3c4c;
  font-size: 13px; font-weight: 700; border: 1px solid #d7dfe3;
}
/* ===== Filter header ===== */
.filter-hdr { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.filter-back { font-size: 13px; color: #6b7e88; font-weight: 600; }
.filter-title { flex: 1; font-size: 16px; font-weight: 800; color: #1a3c4c; }
.filter-cnt { font-size: 12px; color: #6b7e88; }
.empty-msg { text-align: center; padding: 60px 0; color: #6b7e88; font-size: 13px; }
/* ===== Footer ===== */
.site-footer { display: flex; justify-content: center; gap: 10px; padding: 24px 16px; font-size: 12px; color: #889aa3; }
/* ===== Back to top ===== */
.totop-btn {
  position: fixed; right: 16px; bottom: 20px; z-index: 50;
  width: 40px; height: 40px; border-radius: 8px;
  background: #ff3542; color: #ffffff; font-size: 16px;
  box-shadow: 0 4px 14px rgba(26,43,76,.2);
}
/* ===== 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: #4a6270; }
.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-row.rev .zig-body { text-align: right; }
.zig-nm { font-size: 14px; font-weight: 700; }
.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: #ff3542; color: #ffffff; text-transform: uppercase; }
.banner-title { font-size: 16px; font-weight: 800; color: #ffffff; }
.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: #6b7e88; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Full-bleed edge-to-edge horizontal scroll */
.bleed-scroll { display: flex; gap: 0; overflow-x: auto; }
.bleedcard { flex-shrink: 0; width: 78vw; max-width: 320px; aspect-ratio: 16/9; position: relative; cursor: pointer; }
.bleedcard img { width: 100%; height: 100%; object-fit: cover; }
.bleedcard-nm { position: absolute; left: 10px; bottom: 8px; color: #ffffff; font-weight: 700; font-size: 14px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
/* Diagonal staggered zigzag row */
.zigzag-row { display: flex; gap: 14px; padding: 22px 20px 6px; overflow-x: auto; }
.zigcard { flex-shrink: 0; width: 84px; cursor: pointer; text-align: center; }
.zigcard:nth-child(even) { transform: translateY(18px); }
.zig-img { border-radius: 10px; overflow: hidden; aspect-ratio: 1/1; }
.zig-nm { font-size: 10px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Ribbon-corner tiles */
.ribbon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 16px; }
.ribbon-tile { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 1/1; cursor: pointer; }
.ribbon-tile img { width: 100%; height: 100%; object-fit: cover; }
.ribbon-corner { position: absolute; top: 8px; left: -24px; width: 90px; text-align: center; font-size: 9px; font-weight: 700; color: #ffffff; padding: 2px 0; transform: rotate(-45deg); background: rgba(0,0,0,.55); white-space: nowrap; overflow: hidden; }
/* Diagonal ribbon panel feature */
.feat-diag { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 21/9; cursor: pointer; }
.feat-diag img { width: 100%; height: 100%; object-fit: cover; }
.feat-diag-panel { position: absolute; left: 0; top: 0; bottom: 0; width: 62%; clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%); background: rgba(10,10,20,.72); padding: 16px 30px 16px 16px; display: flex; flex-direction: column; justify-content: center; }
.feat-diag-badge { font-size: 10px; font-weight: 700; background: #ff3542; color: #ffffff; padding: 3px 8px; border-radius: 6px; align-self: flex-start; text-transform: uppercase; }
.feat-diag-title { font-size: 17px; font-weight: 800; color: #ffffff; margin-top: 6px; }
.feat-diag-desc { font-size: 11px; color: #dddddd; margin-top: 4px; }
/* Hot: wrapping pill cards */
.hotpill-wrap { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px; }
.hotpill { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.06); border-radius: 999px; padding: 5px 12px 5px 5px; cursor: pointer; }
.hotpill-img { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.hotpill-nm { font-size: 11px; font-weight: 600; white-space: nowrap; }
.banner-desc { font-size: 12px; color: #e8e8e8; margin-top: 4px; }
/* ===== Spotlight Picks (stat table) ===== */
.stat-table { display: flex; flex-direction: column; margin: 0 16px; border: 1px solid #e4eaec; border-radius: 4px; overflow: hidden; }
.stat-row { display: grid; grid-template-columns: 1fr 90px; align-items: center; padding: 10px 12px; border-bottom: 1px solid #e4eaec; cursor: pointer; }
.stat-row:last-child { border-bottom: none; }
.stat-row-hd { background: #1a3c4c; cursor: default; }
.stat-row-hd .stat-col-nm, .stat-row-hd .stat-col-cat { color: #ffffff; font-weight: 800; font-size: 11px; text-transform: uppercase; }
.stat-col-nm { font-size: 13px; font-weight: 700; color: #1a3c4c; }
.stat-col-cat { font-size: 12px; color: #ff3542; font-weight: 700; text-align: right; }
.stat-col-desc { grid-column: 1 / -1; font-size: 12px; color: #6b7e88; margin-top: 3px; }
/* ===== Module diversify: replace zig-list (site 5) ===== */

.comic-panel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 16px; }
.comic-panel-item { border: 3px solid #1a3c4c; border-radius: 4px; overflow: hidden; position: relative; cursor: pointer; background: #ffffff; }
.comic-panel-img { aspect-ratio: 1/1; }
.comic-panel-nm { font-size: 11px; font-weight: 800; padding: 4px; text-align: center; background: #ffffff; color: #1a3c4c; border-top: 3px solid #1a3c4c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

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