/* ===== Base / Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Consolas', 'Lucida Sans Typewriter', monospace;
  background-color: #22121a;
  background-image:
    repeating-linear-gradient(45deg, rgba(242,181,68,0.05) 0, rgba(242,181,68,0.05) 2px, transparent 2px, transparent 8px),
    repeating-linear-gradient(-45deg, rgba(230,67,43,0.04) 0, rgba(230,67,43,0.04) 2px, transparent 2px, transparent 8px);
  color: #f2d8e1;
  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: #2b131e; border-bottom: 3px solid #f24481;
}
.topbar-logo { font-size: 18px; font-weight: 700; letter-spacing: .02em; color: #f24481; text-transform: uppercase; }
.topbar-search-btn {
  width: 36px; height: 36px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  background: #3bd692; color: #22121a; border: 2px solid #f2d8e1;
}
/* ===== Category Tabs ===== */
.cat-tabs {
  position: static; top: 60px; z-index: 30;
  background: #22121a; border-bottom: 3px solid #e62bce;
  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: 3px;
  background: #2b131e; color: #cb91a4; font-size: 13px; font-weight: 700;
  border: 2px solid #4a2434; text-transform: uppercase;
}
.cat-tab.active { background: #e62bce; color: #ffe7ee; border-color: #f24481; }
/* ===== Search ===== */
.search-bar-wrap {
  position: static; top: 60px; z-index: 30;
  display: flex; gap: 8px; padding: 10px 16px;
  background: #22121a; border-bottom: 3px solid #e62bce;
}
.search-input {
  flex: 1; padding: 9px 14px; border-radius: 3px; border: 2px solid #4a2434;
  background: #2b131e; color: #f2d8e1; font-size: 14px;
}
.search-cancel { font-size: 14px; color: #f24481; font-weight: 700; padding: 0 4px; text-transform: uppercase; }
/* ===== 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 #4a2434; border-top-color: #f24481;
  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; text-transform: uppercase; letter-spacing: .03em; color: #f24481; }
.sec-more { font-size: 12px; color: #3bd692; font-weight: 700; text-transform: uppercase; }
.sec-cnt { font-size: 13px; color: #cb91a4; }
/* ===== 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: 3px; overflow: hidden; border: 2px solid #4a2434; }
.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: #cb91a4;
  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: 3px; overflow: hidden; border: 2px solid #4a2434; }
.twcard-img img, .tgcard-img img { aspect-ratio: 1/1; }
.twcard-nm, .tgcard-nm {
  font-size: 11px; margin-top: 5px; text-align: center; color: #cb91a4;
  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: 3px; background: #3bd692; color: #ffe7ee;
  font-size: 13px; font-weight: 700; border: 2px solid #22121a; text-transform: uppercase;
}
/* ===== Filter header ===== */
.filter-hdr { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.filter-back { font-size: 13px; color: #f24481; font-weight: 700; text-transform: uppercase; }
.filter-title { flex: 1; font-size: 16px; font-weight: 800; text-transform: uppercase; }
.filter-cnt { font-size: 12px; color: #cb91a4; }
.empty-msg { text-align: center; padding: 60px 0; color: #cb91a4; font-size: 13px; }
/* ===== Footer ===== */
.site-footer { display: flex; justify-content: center; gap: 10px; padding: 24px 16px; font-size: 12px; color: #8a5769; border-top: 2px solid #4a2434; }
/* ===== Back to top ===== */
.totop-btn {
  position: fixed; right: 16px; bottom: 20px; z-index: 50;
  width: 40px; height: 40px; border-radius: 4px;
  background: #e62bce; color: #ffe7ee; font-size: 16px;
  border: 2px solid #f24481;
  box-shadow: 3px 3px 0 rgba(0,0,0,.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: #cb91a4; }
.zig-row.rev { flex-direction: row-reverse; }
.zig-row.rev .zig-body { text-align: right; }
.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; }
/* Auto-scrolling marquee ticker */
.marquee-wrap { overflow: hidden; padding: 6px 0; }
.marquee-track { display: flex; gap: 14px; width: max-content; padding: 0 16px; animation: marquee-scroll 14s linear infinite; }
.mqcard { flex-shrink: 0; width: 88px; cursor: pointer; text-align: center; }
.mqcard-img { border-radius: 10px; overflow: hidden; aspect-ratio: 1/1; }
.mqcard-nm { font-size: 11px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-30%); } }
/* Stat tiles with big rank number overlay */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 16px; }
.stat-tile { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1/1; cursor: pointer; }
.stat-tile img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.stat-num { position: absolute; top: 6px; left: 8px; font-size: 22px; font-weight: 800; color: #ffffff; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.stat-nm { position: absolute; left: 0; right: 0; bottom: 0; padding: 5px; font-size: 10px; text-align: center; color: #ffffff; background: linear-gradient(transparent, rgba(0,0,0,.7)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Fanned overlapping stack */
.fan-wrap { display: flex; justify-content: center; padding: 16px 16px 22px; position: relative; height: 120px; }
.fancard { position: absolute; width: 80px; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,.35); cursor: pointer; background: #ffffff; transition: transform .2s; }
.fancard-img { aspect-ratio: 1/1; }
.fancard-nm { font-size: 9px; text-align: center; padding: 3px; color: #222222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Vertical stacked feature card */
.feat-stack { border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.04); cursor: pointer; }
.feat-stack-img { aspect-ratio: 16/9; }
.feat-stack-img img { width: 100%; height: 100%; object-fit: cover; }
.feat-stack-body { padding: 14px; text-align: center; }
.feat-stack-badge { display: inline-block; font-size: 10px; font-weight: 700; background: #5bffef; color: #ffffff; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; margin-bottom: 6px; }
.feat-stack-title { font-size: 17px; font-weight: 800; }
.feat-stack-desc { font-size: 12px; opacity: .75; margin-top: 4px; }
.feat-stack-btn { margin-top: 10px; display: inline-block; font-size: 12px; font-weight: 700; background: #ffffff; color: #141f1d; padding: 7px 16px; border-radius: 20px; }
/* Hot: simple vertical list */
.hotlist { display: flex; flex-direction: column; gap: 18px; padding: 0 16px; }
.hotlist-item { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.hotlist-img { width: 48px; height: 48px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.hotlist-body { flex: 1; min-width: 0; }
.hotlist-nm { font-size: 13px; font-weight: 600; }
.hotlist-desc { font-size: 11px; opacity: .6; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hotlist-tag { font-size: 11px; opacity: .6; }
.twcard-desc, .tgcard-desc { font-size: 10px; color: #e4bfca; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ===== Spotlight Picks (ticket stubs) ===== */
.ticket-list { display: flex; flex-direction: column; gap: 12px; padding: 0 16px; }
.ticket-item { cursor: pointer; padding: 12px; border: 2px dashed #4a2434; border-radius: 4px; background: #2b131e; text-transform: uppercase; }
.ticket-num { font-size: 11px; color: #3bd692; font-weight: 700; margin-right: 8px; }
.ticket-name { font-size: 14px; font-weight: 700; color: #f24481; }
.ticket-cat { font-size: 11px; color: #e62bce; margin-left: 8px; }
.ticket-desc { font-size: 11px; color: #cb91a4; margin-top: 4px; text-transform: none; }
/* ===== Module diversify: replace zig-list (site 3) ===== */

.postcard-stack { display: flex; gap: 16px; padding: 14px 20px; overflow-x: auto; }
.postcard-item { flex-shrink: 0; width: 90px; background: #ffecf3; padding: 6px; border-radius: 2px; box-shadow: 0 4px 10px rgba(0,0,0,.3); position: relative; cursor: pointer; }
.postcard-stamp { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(59,127,214,.2); border: 2px dotted #3bd692; }
.postcard-img { aspect-ratio: 1/1; overflow: hidden; border: 1px solid #cccccc; }
.postcard-nm { font-size: 10px; color: #22121a; margin-top: 4px; text-align: center; 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; }
