/* =========================================================
   THEME: Explorer's Atlas — aged parchment map / treasure hunt
   ========================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: Georgia, 'Times New Roman', 'Baskerville Old Face', serif;
  background:
    radial-gradient(ellipse at 15% 0%, rgba(184,134,11,.10) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(161,58,44,.08) 0%, transparent 55%),
    repeating-linear-gradient(0deg, rgba(90,60,20,.05) 0px, rgba(90,60,20,.05) 1px, transparent 1px, transparent 26px),
    linear-gradient(160deg, #e9d8b0 0%, #dcc793 45%, #cdb27f 100%);
  background-attachment: fixed;
  color: #3b2a1a;
  line-height: 1.4;
  padding-bottom: 24px;
  overflow-x: hidden;
  position: relative;
}
/* faint compass-rose watermark */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 20%, rgba(59,42,26,.25) 0, transparent 100%),
    radial-gradient(1px 1px at 80% 12%, rgba(59,42,26,.2) 0, transparent 100%),
    radial-gradient(1px 1px at 45% 70%, rgba(59,42,26,.2) 0, transparent 100%),
    radial-gradient(1px 1px at 70% 85%, rgba(59,42,26,.22) 0, transparent 100%),
    radial-gradient(1px 1px at 25% 55%, rgba(59,42,26,.18) 0, transparent 100%);
  opacity: .8;
}
[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: rgba(233,216,176,.9); border-bottom: 2px solid rgba(59,42,26,.35);
  backdrop-filter: blur(4px);
}
.topbar-logo { font-size: 18px; font-weight: 700; color: #a13a2c; letter-spacing: .02em; }
.topbar-search-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #b8860b, #8a6408); color: #fbf1d8;
  box-shadow: 0 2px 8px rgba(59,42,26,.4);
}
/* ===== Category Tabs ===== */
.cat-tabs {
  position: static; top: 60px; z-index: 30;
  background: rgba(233,216,176,.92); border-bottom: 1px solid rgba(59,42,26,.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: 4px;
  background: rgba(205,178,127,.55); color: #4a3520; font-size: 13px; font-weight: 600;
  border: 1px solid rgba(59,42,26,.3);
}
.cat-tab.active {
  background: linear-gradient(135deg, #a13a2c, #7a2a1f); color: #fbf1d8;
  box-shadow: 0 2px 8px rgba(59,42,26,.35);
}
/* ===== Search ===== */
.search-bar-wrap {
  position: static; top: 60px; z-index: 30;
  display: flex; gap: 8px; padding: 10px 16px;
  background: rgba(233,216,176,.92); border-bottom: 1px solid rgba(59,42,26,.25);
}
.search-input {
  flex: 1; padding: 9px 14px; border-radius: 6px; border: 1px solid rgba(59,42,26,.35);
  background: rgba(251,241,216,.7); color: #3b2a1a; font-size: 14px;
}
.search-cancel { font-size: 14px; color: #a13a2c; 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(184,134,11,.25); border-top-color: #a13a2c;
  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: #3b2a1a; }
.sec-more { font-size: 12px; color: #a13a2c; font-weight: 600; }
.sec-cnt { font-size: 13px; color: #6a5335; }
/* ===== Featured ===== */
.featured-sec { padding: 12px 16px 0; }

/* ===== Generic responsive icon grid ===== */
.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; box-shadow: 0 2px 6px rgba(59,42,26,.25); border: 1px solid rgba(59,42,26,.3); 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; }
.kcard-nm, .agcard-nm, .gcard-nm {
  font-size: 11px; margin-top: 5px; text-align: center; color: #4a3520;
  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: 6px; background: linear-gradient(135deg, #b8860b, #8a6408); color: #fbf1d8;
  font-size: 13px; font-weight: 600; box-shadow: 0 2px 8px rgba(59,42,26,.3); border: 1px solid rgba(59,42,26,.3);
}
/* ===== Filter header ===== */
.filter-hdr { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.filter-back { font-size: 13px; color: #a13a2c; font-weight: 600; }
.filter-title { flex: 1; font-size: 16px; font-weight: 700; color: #3b2a1a; }
.filter-cnt { font-size: 12px; color: #6a5335; }
.empty-msg { text-align: center; padding: 60px 0; color: #6a5335; font-size: 13px; }
/* ===== Footer ===== */
.site-footer { display: flex; justify-content: center; gap: 10px; padding: 24px 16px; font-size: 12px; color: #6a5335; }
/* ===== 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, #a13a2c, #7a2a1f); color: #fbf1d8; font-size: 16px;
  box-shadow: 0 3px 10px rgba(59,42,26,.4);
}

/* ===== Featured split card (wanted-poster style) ===== */
.feat-split2 { display: flex; border-radius: 10px; overflow: hidden; cursor: pointer; background: rgba(251,241,216,.55); min-height: 150px; border: 1px solid rgba(59,42,26,.3); box-shadow: 0 3px 10px rgba(59,42,26,.2); }
.feat-split2-body { flex: 1; min-width: 0; 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: #a13a2c; color: #fbf1d8; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; }
.feat-split2-title { font-size: 18px; font-weight: 800; color: #3b2a1a; }
.feat-split2-desc { font-size: 12px; color: #5a4326; }
.feat-split2-img { width: 42%; flex-shrink: 0; aspect-ratio: 4/3; }
.feat-split2-img img { width: 100%; height: 100%; object-fit: cover; }

/* ===== 1. Treasure Trail (compass grid, circular icons) ===== */
.compass-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px; padding: 6px 16px 8px; }
.compass-item { min-width: 0; cursor: pointer; text-align: center; }
.compass-img { border-radius: 50%; overflow: hidden; aspect-ratio: 1/1; border: 3px solid #b8860b; box-shadow: 0 2px 8px rgba(59,42,26,.3); }
.compass-nm { font-size: 11px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #3b2a1a; font-weight: 600; }

/* ===== 2. Expedition Log (text list) ===== */
.star-list { display: flex; flex-direction: column; gap: 14px; padding: 0 16px; }
.star-item { cursor: pointer; padding-bottom: 12px; border-bottom: 1px dashed rgba(59,42,26,.3); }
.star-item:last-child { border-bottom: none; }
.star-bullet { color: #a13a2c; margin-right: 6px; }
.star-name { font-size: 14px; font-weight: 700; color: #3b2a1a; }
.star-cat { font-size: 11px; color: #8a6408; margin-left: 8px; }
.star-desc { font-size: 12px; color: #5a4326; margin-top: 4px; margin-left: 20px; }

/* ===== 3. Cartographer's Picks (horizontal map-stamp scroll) ===== */
.stamp-row { display: flex; gap: 12px; padding: 6px 16px 10px; overflow-x: auto; }
.stamp-card { flex-shrink: 0; width: 118px; background: rgba(251,241,216,.7); border: 1px solid rgba(59,42,26,.3); border-radius: 6px; padding: 6px 6px 8px; cursor: pointer; box-shadow: 0 2px 6px rgba(59,42,26,.2); }
.stamp-img { aspect-ratio: 1/1; overflow: hidden; border-radius: 4px; }
.stamp-nm { font-size: 11px; text-align: center; margin-top: 6px; color: #3b2a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== 4. Base Camp Favorites (asymmetric grid, no column-count) ===== */
.camp-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 92px; gap: 8px; padding: 0 16px; }
.camp-item { min-width: 0; border-radius: 8px; overflow: hidden; cursor: pointer; position: relative; }
.camp-item img { width: 100%; height: 100%; object-fit: cover; }
.camp-item:first-child { grid-row: span 2; }
.camp-nm { position: absolute; left: 0; right: 0; bottom: 0; padding: 5px 7px; font-size: 10px; color: #fbf1d8; background: linear-gradient(transparent, rgba(30,18,8,.8)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== 5. Action Ridge (podium) ===== */
.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: 8px; overflow: hidden; aspect-ratio: 1/1; border: 2px solid #b8860b; }
.podium-nm { font-size: 11px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #3b2a1a; }

/* ===== 6. Puzzle Cove (postcard scroll) ===== */
.polaroid-row { display: flex; gap: 16px; padding: 14px 20px 18px; overflow-x: auto; }
.polaroid { flex-shrink: 0; width: 92px; background: #fbf1d8; padding: 6px 6px 16px; border-radius: 3px; box-shadow: 0 3px 8px rgba(59,42,26,.35); cursor: pointer; border: 1px solid rgba(59,42,26,.25); }
.polaroid-img { aspect-ratio: 1/1; overflow: hidden; }
.polaroid-nm { font-size: 9px; text-align: center; color: #3b2a1a; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== 7. Kids' Camp (sticker grid) ===== */
.bubble-wrap { display: flex; gap: 12px; padding: 10px 16px 16px; flex-wrap: wrap; }
.bubble-card { flex: 1 1 26%; min-width: 80px; border-radius: 8px; padding: 8px; text-align: center; cursor: pointer; background: rgba(251,241,216,.6); border: 1px solid rgba(59,42,26,.25); }
.bubble-img { border-radius: 6px; overflow: hidden; aspect-ratio: 1/1; }
.bubble-nm { font-size: 10px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #3b2a1a; }

/* ===== 8. Sports Bay (trail marker rows) ===== */
.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: 8px; overflow: hidden; flex-shrink: 0; border: 1px solid rgba(59,42,26,.3); }
.zig-body { flex: 1; min-width: 0; }
.zig-row.rev .zig-body { text-align: right; }
.zig-nm { font-size: 14px; font-weight: 700; color: #3b2a1a; }
.zig-tag { font-size: 11px; color: #8a6408; }
.zig-desc { font-size: 11px; color: #5a4326; margin-top: 3px; }

/* ===== 9. Adventure Peaks (grid w/ row-span, NOT masonry columns) ===== */
.masonry-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 64px; gap: 8px; padding: 0 16px; }
.masonry-item { min-width: 0; border-radius: 6px; 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: #fbf1d8; background: linear-gradient(transparent, rgba(30,18,8,.8)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== 10. Racing Trail (route banner) ===== */
.banner-single { position: relative; border-radius: 10px; overflow: hidden; margin: 0 16px; aspect-ratio: 16/8; cursor: pointer; border: 1px solid rgba(59,42,26,.3); }
.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(30,18,8,.85)); }
.banner-badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-bottom: 4px; background: #b8860b; color: #fbf1d8; text-transform: uppercase; }
.banner-title { font-size: 16px; font-weight: 800; color: #fbf1d8; }
.banner-desc { font-size: 12px; color: #f0e6cc; margin-top: 4px; }

/* ===== 11. Garden Journal (magazine list) ===== */
.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 dashed rgba(59,42,26,.3); }
.mag-row:last-child { border-bottom: none; }
.mag-img { width: 60px; height: 60px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.mag-body { flex: 1; min-width: 0; }
.mag-nm { font-size: 14px; font-weight: 700; margin-bottom: 2px; color: #3b2a1a; }
.mag-desc { font-size: 11px; color: #5a4326; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 12. Arcade Outpost (stamp stack) ===== */
.stack-row { display: flex; padding: 20px 30px 12px; justify-content: center; }
.stack-card { width: 88px; aspect-ratio: 1/1; border-radius: 6px; overflow: hidden; margin-left: -22px; box-shadow: 0 3px 8px rgba(59,42,26,.4); cursor: pointer; border: 2px solid #fbf1d8; }
.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; }
