/* ============================================================
   THEME: Night Market Neon (夜市霓虹)
   Deep indigo night sky + warm lantern-glow neon (coral / gold / teal)
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at 15% 8%, rgba(255,107,53,.14) 0%, transparent 40%),
    radial-gradient(circle at 85% 18%, rgba(8,217,214,.12) 0%, transparent 42%),
    radial-gradient(circle at 50% 90%, rgba(255,46,99,.10) 0%, transparent 45%),
    linear-gradient(160deg, #0a0e27 0%, #161331 45%, #211045 100%);
  background-attachment: fixed;
  color: #fdf3e7;
  line-height: 1.4;
  padding-bottom: 24px;
  overflow-x: hidden;
  position: relative;
}
/* Floating lantern-glow dots */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(3px 3px at 10% 20%, rgba(255,210,63,.9) 0, transparent 100%),
    radial-gradient(2.5px 2.5px at 80% 12%, rgba(255,107,53,.8) 0, transparent 100%),
    radial-gradient(2px 2px at 45% 35%, rgba(8,217,214,.7) 0, transparent 100%),
    radial-gradient(2.5px 2.5px at 65% 65%, rgba(255,46,99,.75) 0, transparent 100%),
    radial-gradient(2px 2px at 25% 78%, rgba(255,210,63,.6) 0, transparent 100%),
    radial-gradient(2.5px 2.5px at 92% 50%, rgba(8,217,214,.65) 0, transparent 100%),
    radial-gradient(2px 2px at 8% 92%, rgba(255,107,53,.55) 0, transparent 100%);
  background-repeat: repeat;
  background-size: 100% 100%;
  opacity: .85;
}
[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(10,14,39,.88); border-bottom: 1px solid rgba(255,210,63,.3);
  backdrop-filter: blur(6px);
}
.topbar-logo { font-size: 18px; font-weight: 800; color: #ffd23f; text-shadow: 0 0 10px rgba(255,107,53,.5); }
.topbar-search-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ff6b35, #ff2e63); color: #fff8ee;
  box-shadow: 0 0 12px rgba(255,107,53,.4);
}

/* ===== Category Tabs ===== */
.cat-tabs {
  position: static; top: 60px; z-index: 30;
  background: rgba(10,14,39,.92); border-bottom: 1px solid rgba(255,210,63,.2);
  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: rgba(33,16,69,.6); color: #d8c9f0; font-size: 13px; font-weight: 600;
  border: 1px solid rgba(255,210,63,.18);
}
.cat-tab.active {
  background: linear-gradient(135deg, #ffd23f, #ff6b35); color: #17102c;
  box-shadow: 0 0 16px rgba(255,107,53,.5);
}

/* ===== Search ===== */
.search-bar-wrap {
  position: static; top: 60px; z-index: 30;
  display: flex; gap: 8px; padding: 10px 16px;
  background: rgba(10,14,39,.92); border-bottom: 1px solid rgba(255,210,63,.2);
}
.search-input {
  flex: 1; padding: 9px 14px; border-radius: 16px; border: 1px solid rgba(255,210,63,.3);
  background: rgba(33,16,69,.5); color: #fdf3e7; font-size: 14px;
}
.search-cancel { font-size: 14px; color: #08d9d6; 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(255,210,63,.25); border-top-color: #ff2e63;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 16px rgba(255,107,53,.35);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Section spacing ===== */
section[class$="-sec"] { margin-bottom: 32px; }
.sec-hd { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 10px; }
.sec-label { font-size: 16px; font-weight: 800; color: #fff3dc; text-shadow: 0 0 8px rgba(255,107,53,.4); }
.sec-more { font-size: 12px; color: #08d9d6; font-weight: 600; }
.sec-cnt { font-size: 13px; color: #cbb9e6; }

/* ===== Featured hero ===== */
.featured-sec { padding: 12px 16px 0; }
.feat-lantern { display: flex; border-radius: 20px; overflow: hidden; cursor: pointer; background: rgba(33,16,69,.5); min-height: 150px; border: 1px solid rgba(255,210,63,.25); box-shadow: 0 0 20px rgba(255,107,53,.18); }
.feat-lantern-body { flex: 1; min-width: 0; padding: 16px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.feat-lantern-badge { align-self: flex-start; font-size: 10px; font-weight: 700; background: linear-gradient(135deg, #ffd23f, #ff6b35); color: #17102c; padding: 3px 8px; border-radius: 6px; text-transform: uppercase; }
.feat-lantern-title { font-size: 18px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feat-lantern-desc { font-size: 12px; opacity: .8; }
.feat-lantern-img { width: 42%; flex-shrink: 0; aspect-ratio: 1/1; align-self: center; margin-right: 12px; border-radius: 16px; overflow: hidden; }
.feat-lantern-img img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Generic responsive icon grid (All Games / filtered) ===== */
.all-grid, .games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 16px 8px;
}
@media (min-width: 480px) {
  .all-grid, .games-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 860px) {
  .all-grid, .games-grid { grid-template-columns: repeat(8, 1fr); }
}
.agcard, .gcard { cursor: pointer; min-width: 0; }
.agcard-img, .gcard-img { border-radius: 16px; overflow: hidden; box-shadow: 0 0 12px rgba(255,107,53,.2); border: 1px solid rgba(255,210,63,.18); aspect-ratio: 1/1 !important; width: 100%; height: auto; }
.agcard-img img, .gcard-img img { width: 100%; height: 100%; object-fit: cover; }
.agcard-nm, .gcard-nm {
  font-size: 11px; margin-top: 5px; text-align: center; color: #d8c9f0;
  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: linear-gradient(135deg, #ff6b35, #ff2e63); color: #fff8ee;
  font-size: 13px; font-weight: 700; box-shadow: 0 0 14px rgba(255,107,53,.35); border: 1px solid rgba(255,210,63,.25);
}

/* ===== Filter header ===== */
.filter-hdr { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.filter-back { font-size: 13px; color: #08d9d6; font-weight: 600; }
.filter-title { flex: 1; font-size: 16px; font-weight: 700; color: #fff3dc; }
.filter-cnt { font-size: 12px; color: #cbb9e6; }
.empty-msg { text-align: center; padding: 60px 0; color: #cbb9e6; font-size: 13px; }

/* ===== Footer ===== */
.site-footer { display: flex; justify-content: center; gap: 10px; padding: 24px 16px; font-size: 12px; color: #b8a4d6; }

/* ===== 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, #ffd23f, #ff2e63); color: #17102c; font-size: 16px;
  box-shadow: 0 0 16px rgba(255,107,53,.4);
}

/* ============================================================
   12 HOME SECTIONS — each a distinct layout family
   ============================================================ */

/* --- Custom 1: Night Market Picks — horizontal lantern-card scroll --- */
.lantern-row { display: flex; gap: 12px; padding: 0 16px 6px; overflow-x: auto; }
.lantern-card { flex-shrink: 0; width: 108px; cursor: pointer; }
.lantern-card-img { width: 100%; aspect-ratio: 3/4; border-radius: 14px 14px 30px 30px; overflow: hidden; border: 1px solid rgba(255,210,63,.3); box-shadow: 0 0 12px rgba(255,107,53,.25); position: relative; }
.lantern-card-img::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(transparent, rgba(10,14,39,.85)); }
.lantern-card-nm { font-size: 11px; margin-top: 6px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff3dc; }

/* --- Action: bold 2-col grid --- */
.bold-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 16px; }
.bold-card { min-width: 0; cursor: pointer; border-radius: 18px; overflow: hidden; background: rgba(33,16,69,.5); border: 1px solid rgba(255,46,99,.3); }
.bold-card-img { aspect-ratio: 16/10; overflow: hidden; }
.bold-card-body { padding: 8px 10px 12px; }
.bold-card-nm { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bold-card-tag { font-size: 10px; color: #08d9d6; margin-top: 2px; }

/* --- Puzzle: ticket-stub horizontal scroll --- */
.ticket-row { display: flex; gap: 14px; padding: 6px 16px 16px; overflow-x: auto; }
.ticket-card { flex-shrink: 0; width: 120px; background: rgba(253,243,231,.06); border-radius: 10px; padding: 6px; cursor: pointer; border: 1px dashed rgba(255,210,63,.4); position: relative; }
.ticket-img { aspect-ratio: 1/1; border-radius: 6px; overflow: hidden; }
.ticket-nm { font-size: 10px; text-align: center; margin-top: 6px; color: #fff3dc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- Custom 2: Stall Rankings — numbered vertical list --- */
.rank-list { display: flex; flex-direction: column; gap: 10px; padding: 0 16px; }
.rank-row { display: flex; align-items: center; gap: 12px; cursor: pointer; min-width: 0; }
.rank-num { flex-shrink: 0; width: 30px; font-size: 20px; font-weight: 900; text-align: center; color: #ff6b35; text-shadow: 0 0 8px rgba(255,107,53,.5); }
.rank-img { flex-shrink: 0; width: 54px; height: 54px; border-radius: 12px; overflow: hidden; }
.rank-body { flex: 1; min-width: 0; }
.rank-nm { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-tag { font-size: 10px; color: #cbb9e6; }

/* --- Adventure: zigzag alternating list --- */
.zig-list { display: flex; flex-direction: column; gap: 12px; padding: 0 16px; }
.zig-row { display: flex; align-items: center; gap: 12px; cursor: pointer; min-width: 0; }
.zig-row.rev { flex-direction: row-reverse; }
.zig-img { width: 68px; height: 68px; border-radius: 14px; overflow: hidden; flex-shrink: 0; }
.zig-body { flex: 1; min-width: 0; }
.zig-row.rev .zig-body { text-align: right; }
.zig-nm { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zig-tag { font-size: 11px; color: #08d9d6; }
.zig-desc { font-size: 11px; color: #cbb9e6; margin-top: 3px; }

/* --- Sports: 3-col grid --- */
.trio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 16px; }
.trio-card { min-width: 0; cursor: pointer; text-align: center; }
.trio-img { aspect-ratio: 1/1; border-radius: 14px; overflow: hidden; border: 1px solid rgba(8,217,214,.3); }
.trio-nm { font-size: 11px; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- Custom 3: Lantern Spotlight — plain text starlist --- */
.spot-list { display: flex; flex-direction: column; gap: 14px; padding: 0 16px; }
.spot-item { cursor: pointer; padding-bottom: 12px; border-bottom: 1px solid rgba(255,210,63,.18); min-width: 0; }
.spot-item:last-child { border-bottom: none; }
.spot-bullet { color: #ffd23f; margin-right: 6px; text-shadow: 0 0 6px rgba(255,107,53,.6); }
.spot-name { font-size: 14px; font-weight: 700; background: linear-gradient(135deg, #ffd23f, #ff2e63); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spot-cat { font-size: 11px; color: #08d9d6; margin-left: 8px; }
.spot-desc { font-size: 12px; color: #d8c9f0; margin-top: 4px; margin-left: 20px; opacity: .85; }

/* --- Racing: single wide banner spotlight --- */
.banner-single { position: relative; border-radius: 18px; overflow: hidden; margin: 0 16px; aspect-ratio: 16/8; cursor: pointer; border: 1px solid rgba(255,210,63,.25); }
.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(10,14,39,.88)); }
.banner-badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 6px; margin-bottom: 4px; background: linear-gradient(135deg, #08d9d6, #ff2e63); color: #17102c; text-transform: uppercase; }
.banner-title { font-size: 16px; font-weight: 800; color: #fff8ee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner-desc { font-size: 12px; color: #ecd9ff; margin-top: 4px; }

/* --- Kids: bubble icon wrap --- */
.bubble-wrap { display: flex; gap: 12px; padding: 10px 16px 4px; flex-wrap: wrap; }
.bubble-card { position: relative; flex: 1 1 26%; min-width: 0; border-radius: 16px; padding: 8px; text-align: center; cursor: pointer; background: rgba(255,255,255,.05); border: 1px solid rgba(255,210,63,.15); }
.bubble-img { border-radius: 12px; overflow: hidden; aspect-ratio: 1/1; }
.bubble-nm { font-size: 10px; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- Girl: magazine row 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 solid rgba(255,255,255,.08); min-width: 0; }
.mag-row:last-child { border-bottom: none; }
.mag-img { width: 58px; height: 58px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.mag-body { flex: 1; min-width: 0; }
.mag-nm { font-size: 14px; font-weight: 700; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mag-desc { font-size: 11px; color: #cbb9e6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- Arcade: overlapping fanned stack --- */
.stack-row { display: flex; padding: 20px 30px 12px; justify-content: center; }
.stack-card { width: 86px; aspect-ratio: 1/1; border-radius: 14px; overflow: hidden; margin-left: -20px; box-shadow: 0 6px 14px rgba(0,0,0,.4); cursor: pointer; border: 2px solid rgba(10,14,39,.9); }
.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); }

/* --- Custom 4: Fresh Arrivals — 2-col overlay grid with badge --- */
.fresh-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 16px; }
.fresh-card { min-width: 0; position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.fresh-card img { width: 100%; height: 100%; object-fit: cover; }
.fresh-ovl { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px; background: linear-gradient(transparent, rgba(10,14,39,.85)); }
.fresh-badge { display: inline-block; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 5px; background: linear-gradient(135deg, #ffd23f, #ff6b35); color: #17102c; margin-bottom: 3px; }
.fresh-nm { font-size: 12px; font-weight: 700; color: #fff8ee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
