/* ===== Base / Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Verdana', 'Tahoma', sans-serif;
  background: #170f16;
  color: #f5f2f5;
  line-height: 1.4;
  padding-bottom: 24px;
  overflow-x: hidden;
}
[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: #1f141d; border-bottom: 1px solid #2f222d;
}
.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: #291e27; color: #f5f2f5;
}
/* ===== Category Tabs ===== */
.cat-tabs {
  position: sticky; top: 60px; z-index: 30;
  background: #170f16; border-bottom: 1px solid #291e27;
  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: #261a24; color: #c6b6c5; font-size: 13px; font-weight: 600;
}
.cat-tab.active { background: #ff5bd8; color: #ffffff; }
/* ===== Search ===== */
.search-bar-wrap {
  position: sticky; top: 60px; z-index: 30;
  display: flex; gap: 8px; padding: 10px 16px;
  background: #170f16; border-bottom: 1px solid #291e27;
}
.search-input {
  flex: 1; padding: 9px 14px; border-radius: 10px; border: none;
  background: #261a24; color: #f5f2f5; font-size: 14px;
}
.search-cancel { font-size: 14px; color: #ff5bd8; 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 #362634; border-top-color: #ff5bd8;
  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: #a38aa0; font-weight: 600; }
.sec-cnt { font-size: 13px; color: #a38aa0; }
/* ===== 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: #d6c8d4;
  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: #261a24; color: #f5f2f5;
  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: #a38aa0; font-weight: 600; }
.filter-title { flex: 1; font-size: 16px; font-weight: 700; }
.filter-cnt { font-size: 12px; color: #a38aa0; }
.empty-msg { text-align: center; padding: 60px 0; color: #a38aa0; font-size: 13px; }
/* ===== Footer ===== */
.site-footer { display: flex; justify-content: center; gap: 10px; padding: 24px 16px; font-size: 12px; color: #806b7d; }
/* ===== Back to top ===== */
.totop-btn {
  position: fixed; right: 16px; bottom: 20px; z-index: 50;
  width: 40px; height: 40px; border-radius: 50%;
  background: #ff5bd8; 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 #291e27; }
.ts-item:last-child { border-bottom: none; }
.ts-name { font-size: 14px; font-weight: 700; margin-right: 8px; }
.ts-cat { font-size: 11px; color: #ff5bd8; font-weight: 600; }
.ts-desc { font-size: 12px; color: #bba7b8; margin-top: 4px; }
/* ===================================================
   Theme 10: Desert Western — override block
   =================================================== */
body { background: radial-gradient(ellipse 60% 30% at 50% 0%, rgba(193,68,14,.12), transparent 60%), linear-gradient(160deg, #e8fbe6, #a8e0a0); color: #1d4a13; }
.topbar { background: #edffec; border-bottom: 1px solid #84d473; }
.topbar-logo { color: #4fc10e; }
.topbar-search-btn { background: #edffec; color: #4fc10e; border: 1px solid #84d473; }
.cat-tabs, .search-bar-wrap { background: transparent; border-bottom: 1px solid #84d473; }
.cat-tab { flex-shrink: 0; padding: 7px 16px; border-radius: 10px; background: #edffec; color: #3b8a2b; font-size: 13px; font-weight: 700; border: 2px dashed #84d473; }
.cat-tab.active { background: #4fc10e; color: #edffec; border-style: solid; border-color: #4fc10e; }
.search-input { flex: 1; padding: 9px 14px; border-radius: 10px; border: 2px dashed #84d473; background: #edffec; color: #1d4a13; font-size: 14px; }
.search-cancel { color: #4fc10e; }
.sec-label { color: #1d4a13; }
.sec-more { color: #4fc10e; }
.totop-btn { background: #4fc10e; color: #edffec; }
.htcard, .hsmcard-img, .rthumb, .pzcard-img, .kcard-img, .agcard-img, .gcard-img, .twcard-img, .tgcard-img { border-radius: 18px !important; }
/* Spotlight Picks restyle: Desert Western */
.ts-item { border: none; border-bottom: 2px dashed #84d473; padding-bottom: 12px; }
.ts-item::before { content: '➤ '; color: #4fc10e; }
.ts-name { color: #1d4a13; }
.ts-cat { color: #4fc10e; }
.ts-desc { color: #3b8a2b; }
.poster-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 16px; }
.poster-item { text-align: center; cursor: pointer; }
.poster-img { border-radius: 10px; overflow: hidden; border: 2px dashed #84d473; padding: 3px; background: #edffec; aspect-ratio: 1/1; }
.poster-nm { font-size: 10px; margin-top: 4px; color: #3b8a2b; 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 #4fc10e; margin: 0 auto; }
.medal-ribbon { display: inline-block; margin-top: -8px; background: #4fc10e; color: #edffec; 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: #1d4a13; 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 #4fc10e; 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: #1d4a13; }
.quote-text { font-size: 12px; font-style: italic; color: #84d473; margin-top: 3px; }
.ledger-table { display: flex; flex-direction: column; margin: 0 16px; border: 1px solid #84d473; border-radius: 4px; overflow: hidden; }
.ledger-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid #84d473; cursor: pointer; }
.ledger-row:last-child { border-bottom: none; }
.ledger-idx { width: 20px; font-size: 12px; font-weight: 800; color: #4fc10e; }
.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: #1d4a13; }
.ledger-cat { font-size: 11px; color: #4fc10e; }
.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 #4fc10e; }
.envelope-icon { width: 82px; height: 66px; border-radius: 0 0 8px 8px; overflow: hidden; border: 2px solid #4fc10e; border-top: none; }
.envelope-nm { font-size: 10px; margin-top: 4px; color: #1d4a13; 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: #4fc10e; color: #edffec; 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: #7de078; }
.colorblock-nm { font-size: 10px; margin-top: 4px; color: #1d4a13; 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: #4fc10e; color: #edffec; 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: #4fc10e; color: #edffec; 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 #4fc10e; }
.folder-nm { font-size: 10px; margin-top: 4px; color: #1d4a13; 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 #4fc10e; 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: #1d4a13; 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 10) ===== */

.board-top { display: flex; gap: 14px; padding: 10px 16px; overflow-x: auto; background: #84d473; border-radius: 10px; margin: 0 16px; }
.board-top-card { flex-shrink: 0; width: 118px; background: #edffec; border: 2px dashed #4fc10e; border-radius: 8px; padding: 6px; transform: rotate(-2deg); cursor: pointer; }
.board-top-card:nth-child(even) { transform: rotate(2deg); }
.board-top-img { border-radius: 4px; overflow: hidden; aspect-ratio: 1/1; }
.board-top-img img { width: 100%; height: 100%; object-fit: cover; }
.board-top-nm { font-size: 12px; font-weight: 800; color: #1d4a13; margin-top: 5px; text-align: center; }
.board-top-desc { font-size: 10px; color: #3b8a2b; margin-top: 2px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* ===== Nav restyle: dropdown + quick chips (site 10) ===== */
.cat-more-btn { background: #4fc10e !important; color: #edffec !important; border: none !important; font-weight: 700; }
.cat-more-dropdown {
  display: flex; flex-direction: column; padding: 6px 16px 10px; background: #edffec;
  border-bottom: 2px dashed #84d473;
}
.cat-more-item {
  text-align: left; padding: 10px 8px; font-size: 13px; color: #1d4a13;
  border-bottom: 1px dashed #84d473;
}
.cat-more-item:last-child { border-bottom: none; }
.cat-more-item.active { color: #4fc10e; font-weight: 800; }

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