/* =====================================================================
   THEME: Japanese Zen / Wabi-Sabi — 侘寂
   Palette: washi-paper cream, ink-black, muted red (shu-iro) accent.
   Minimalist ma (negative space), thin brushstroke borders, subtle
   bamboo / wave line motifs. Pure CSS — no images / external fonts / JS.
   ===================================================================== */
:root {
  --washi: #f3ecdd;
  --washi-2: #ece2cc;
  --ink: #2b2723;
  --ink-soft: #4a453e;
  --ink-faint: #8a8275;
  --shu: #a13d2e;
  --shu-deep: #7c2c20;
  --gold: #b8965a;
  --line: rgba(43,39,35,.22);
  --line-soft: rgba(43,39,35,.12);
  --panel: rgba(255,253,246,.55);
  --font-serif: 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse at 15% 0%, rgba(184,150,90,.10), transparent 55%),
    radial-gradient(ellipse at 100% 30%, rgba(161,61,46,.06), transparent 50%),
    var(--washi);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.5;
  padding-bottom: 24px;
  overflow-x: hidden;
  position: relative;
}
/* washi paper fiber texture, pure CSS */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    repeating-linear-gradient(115deg, rgba(43,39,35,.025) 0px, transparent 1.5px, transparent 4px),
    repeating-linear-gradient(25deg, rgba(43,39,35,.02) 0px, transparent 1px, transparent 5px);
  opacity: .9;
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 10% 14%, rgba(43,39,35,.18) 0, transparent 100%),
    radial-gradient(1px 1px at 78% 8%, rgba(43,39,35,.14) 0, transparent 100%),
    radial-gradient(1px 1px at 44% 30%, rgba(43,39,35,.16) 0, transparent 100%),
    radial-gradient(1px 1px at 62% 58%, rgba(161,61,46,.10) 0, transparent 100%),
    radial-gradient(1px 1px at 24% 70%, rgba(43,39,35,.14) 0, transparent 100%),
    radial-gradient(1px 1px at 92% 44%, rgba(184,150,90,.16) 0, transparent 100%),
    radial-gradient(1px 1px at 14% 90%, rgba(43,39,35,.12) 0, transparent 100%),
    radial-gradient(1px 1px at 70% 84%, rgba(43,39,35,.12) 0, transparent 100%);
  opacity: .7;
}
[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; filter: saturate(.92) contrast(1.02); }
::-webkit-scrollbar { display: none; }

/* ===== Top Bar ===== */
.topbar {
  position: static; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(243,236,221,.97), rgba(243,236,221,.9));
  border-bottom: 1px solid var(--line);
  position: relative;
}
.topbar::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--shu) 15%, var(--shu) 85%, transparent);
  opacity: .55;
}
.topbar-logo {
  font-family: var(--font-serif); font-size: 19px; font-weight: 600; letter-spacing: .06em;
  color: var(--ink);
}
.topbar-search-btn {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: transparent; color: var(--shu);
  border: 1px solid var(--line);
}
/* ===== Category Tabs ===== */
.cat-tabs {
  position: static; top: 60px; z-index: 30;
  background: rgba(243,236,221,.94); border-bottom: 1px solid var(--line-soft);
  overflow-x: auto; white-space: nowrap;
}
.cat-tabs-inner { display: inline-flex; gap: 6px; padding: 12px 20px; }
.cat-tab {
  flex-shrink: 0; padding: 7px 16px; border-radius: 999px;
  background: transparent; color: var(--ink-soft); font-size: 12.5px; font-weight: 600;
  font-family: var(--font-body);
  border: 1px solid var(--line);
}
.cat-tab.active {
  background: var(--shu); color: var(--washi);
  border-color: var(--shu);
}
/* ===== Search ===== */
.search-bar-wrap {
  position: static; top: 60px; z-index: 30;
  display: flex; gap: 10px; padding: 12px 20px;
  background: rgba(243,236,221,.94); border-bottom: 1px solid var(--line-soft);
}
.search-input {
  flex: 1; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); font-size: 14px; font-family: var(--font-body);
}
.search-input::placeholder { color: var(--ink-faint); }
.search-cancel { font-size: 13px; color: var(--shu); font-weight: 600; padding: 0 4px; }
/* ===== Loading ===== */
.loading-full { display: flex; align-items: center; justify-content: center; padding: 90px 0; }
.loading-ring {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--shu);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* ===== Section spacing ===== */
section[class$="-sec"] { margin-bottom: 36px; }
/* ===== Section Header ===== */
.sec-hd { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 12px; position: relative; }
.sec-label {
  font-size: 15px; font-weight: 600; color: var(--ink); font-family: var(--font-serif);
  letter-spacing: .05em;
  padding-left: 14px; position: relative;
}
/* thin brushstroke tick before every section label */
.sec-label::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 8px; height: 2px; background: var(--shu); border-radius: 2px;
}
.sec-label::after {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%) rotate(60deg);
  width: 8px; height: 1px; background: var(--gold); border-radius: 2px; opacity: .8;
}
.sec-more { font-size: 11px; color: var(--shu); font-weight: 600; letter-spacing: .04em; }
.sec-cnt { font-size: 12px; color: var(--ink-faint); }
/* ===== Featured ===== */
.featured-sec { padding: 16px 20px 0; }

/* ===== Generic responsive icon grid (Tatami grid) ===== */
.all-grid, .games-grid, .channel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 20px 8px;
}
@media (min-width: 480px) {
  .all-grid, .games-grid, .channel-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 860px) {
  .all-grid, .games-grid, .channel-grid { grid-template-columns: repeat(8, 1fr); }
}
.agcard, .gcard, .channel-card { cursor: pointer; min-width: 0; }
.agcard-img, .gcard-img {
  aspect-ratio: 1/1 !important; width: 100%; height: auto; overflow: hidden;
  border-radius: 3px; border: 1px solid var(--line); position: relative;
  background: var(--panel);
}
.agcard-img img, .gcard-img img, .channel-img img { width: 100%; height: 100%; object-fit: cover; }
.agcard-nm, .gcard-nm, .channel-nm {
  font-size: 11px; margin-top: 6px; text-align: center; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Channel Grid — torii-gate circular portals */
.channel-img {
  aspect-ratio: 1/1 !important; width: 100%; height: auto; overflow: hidden;
  border-radius: 50%; border: 2px solid var(--shu); position: relative;
  background: var(--panel);
}
.channel-ch {
  position: absolute; top: -2px; left: 50%; transform: translateX(-50%); font-size: 8px; font-weight: 700; color: var(--washi);
  background: var(--shu); padding: 1px 6px; border-radius: 999px; letter-spacing: .04em;
}
/* ===== Load more ===== */
.more-wrap, .loadmore-wrap { display: flex; justify-content: center; padding: 18px; }
.more-btn, .loadmore-btn {
  padding: 10px 26px; border-radius: 999px; background: transparent; color: var(--shu);
  font-size: 12.5px; font-weight: 600; border: 1px solid var(--shu); letter-spacing: .04em;
}
/* ===== Filter header ===== */
.filter-hdr { display: flex; align-items: center; gap: 12px; padding: 16px 20px; }
.filter-back { font-size: 12px; color: var(--shu); font-weight: 600; }
.filter-title { flex: 1; font-size: 15px; font-weight: 600; color: var(--ink); font-family: var(--font-serif); }
.filter-cnt { font-size: 12px; color: var(--ink-faint); }
.empty-msg { text-align: center; padding: 70px 0; color: var(--ink-faint); font-size: 13px; font-family: var(--font-serif); }
/* ===== Footer ===== */
.site-footer { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 30px 20px; font-size: 12px; color: var(--ink-faint); border-top: 1px solid var(--line-soft); margin-top: 10px; }
/* ===== Back to top ===== */
.totop-btn {
  position: fixed; right: 18px; bottom: 22px; z-index: 50;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--shu); color: var(--washi); font-size: 15px; font-weight: 600;
  border: 1px solid var(--shu-deep);
  box-shadow: 0 3px 8px rgba(43,39,35,.25);
}

/* =====================================================================
   14 SECTION LAYOUTS — each a distinct zen motif
   ===================================================================== */

/* Hero — scroll-painting hero with vertical text accent */
.feat-split2 { display: flex; border-radius: 4px; overflow: hidden; cursor: pointer; background: var(--panel); min-height: 156px; border: 1px solid var(--line); position: relative; }
.feat-split2::before {
  content: ""; position: absolute; inset: 5px; border: 1px solid var(--line-soft); pointer-events: none; z-index: 2;
}
.feat-split2-body { flex: 1; min-width: 0; padding: 20px 18px; display: flex; flex-direction: column; justify-content: center; gap: 8px; position: relative; }
.feat-split2-body::before {
  content: "禅"; position: absolute; right: 6px; top: 4px; font-family: var(--font-serif);
  font-size: 46px; color: var(--ink); opacity: .05; writing-mode: vertical-rl;
}
.feat-split2-badge { align-self: flex-start; font-size: 10px; font-weight: 700; background: var(--shu); color: var(--washi); padding: 4px 10px; border-radius: 2px; letter-spacing: .08em; text-transform: uppercase; }
.feat-split2-title { font-size: 19px; font-weight: 600; font-family: var(--font-serif); color: var(--ink); }
.feat-split2-desc { font-size: 12px; color: var(--ink-soft); }
.feat-split2-img { width: 42%; flex-shrink: 0; position: relative; }
.feat-split2-img::after { content: ""; position: absolute; inset: 0; box-shadow: inset 6px 0 10px -6px rgba(43,39,35,.35); }
.feat-split2-img img { width: 100%; height: 100%; object-fit: cover; }

/* 1) Hot Games — stepping-stone row (1 large stone + 4 smaller stones) */
.hotmason { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; padding: 0 20px; }
.hotmason-item { min-width: 0; border-radius: 50% / 18%; overflow: hidden; position: relative; cursor: pointer; border: 2px solid var(--washi); box-shadow: 0 2px 6px rgba(43,39,35,.18); background: var(--panel); }
.hotmason-item:first-child { grid-row: span 2; border-radius: 12px; }
.hotmason-img { aspect-ratio: 1/1; }
.hotmason-img img { width: 100%; height: 100%; object-fit: cover; }
.hotmason-nm {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px; font-size: 10px; color: var(--washi);
  background: linear-gradient(transparent, rgba(43,39,35,.75)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hotmason-rec {
  position: absolute; top: 6px; left: 6px; display: flex; align-items: center; gap: 3px;
  font-size: 9px; font-weight: 700; color: var(--washi); text-transform: uppercase; letter-spacing: .05em;
  background: var(--shu); padding: 1px 6px; border-radius: 999px;
}
.hotmason-rec::before { content: '●'; font-size: 6px; }

/* 2) Spotlight Picks — haiku-style minimal list */
.star-list { display: flex; flex-direction: column; gap: 0; padding: 0 20px; }
.star-item { cursor: pointer; padding: 16px 0; border-bottom: 1px solid var(--line-soft); min-width: 0; position: relative; }
.star-item:last-child { border-bottom: none; }
.star-bullet { color: var(--shu); margin-right: 8px; font-family: var(--font-serif); }
.star-name { font-size: 15px; font-weight: 600; color: var(--ink); font-family: var(--font-serif); }
.star-cat { font-size: 10px; color: var(--gold); margin-left: 10px; letter-spacing: .05em; text-transform: uppercase; }
.star-desc { font-size: 12px; color: var(--ink-faint); margin-top: 6px; margin-left: 20px; font-style: italic; }

/* 3) New Releases — tatami-mat horizontal scroll */
.tape-row { display: flex; gap: 12px; padding: 6px 20px 16px; overflow-x: auto; }
.tape-card { flex: 0 0 120px; width: 120px; min-width: 0; border-radius: 3px; overflow: hidden; border: 1px solid var(--line); cursor: pointer; background: var(--panel); position: relative; }
.tape-card::before { content: ""; position: absolute; inset: 0; border: 1px solid var(--gold); opacity: .25; pointer-events: none; z-index: 1; }
.tape-img { aspect-ratio: 4/3; position: relative; }
.tape-img img { width: 100%; height: 100%; object-fit: cover; }
.tape-badge {
  position: absolute; top: 5px; right: 5px; font-size: 8px; font-weight: 700; color: var(--washi);
  background: var(--shu); padding: 2px 6px; border-radius: 2px; letter-spacing: .04em;
}
.tape-nm { font-size: 11px; padding: 7px 8px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 4) Browse Channels — torii-gate circular grid, shared .channel-grid/.channel-card above */

/* 5) Action — dojo-ranking podium */
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 12px; padding: 14px 20px 6px; }
.podium-item { cursor: pointer; text-align: center; min-width: 0; }
.podium-item.p1 { width: 116px; order: 2; }
.podium-item.p2 { width: 86px; order: 1; }
.podium-item.p3 { width: 86px; order: 3; }
.podium-img { border-radius: 4px; overflow: hidden; aspect-ratio: 1/1; border: 2px solid var(--ink); position: relative; }
.podium-item.p1 .podium-img { border-color: var(--shu); }
.podium-rank {
  position: absolute; top: 4px; left: 4px; font-size: 10px; font-weight: 700; color: var(--washi);
  background: var(--ink); padding: 0 6px; border-radius: 2px;
}
.podium-item.p1 .podium-rank { background: var(--shu); }
.podium-nm { font-size: 11px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-soft); }
.podium-item::after { content: ""; display: block; height: 4px; margin-top: 8px; background: linear-gradient(90deg, transparent, var(--line), transparent); }

/* 6) Puzzle — origami-fold row */
.polaroid-row { display: flex; gap: 20px; padding: 16px 24px 20px; overflow-x: auto; }
.polaroid { flex: 0 0 94px; width: 94px; background: var(--panel); padding: 6px 6px 14px; border-radius: 2px; border: 1px solid var(--line); cursor: pointer; position: relative; }
.polaroid::before { content: ""; position: absolute; top: 0; right: 0; width: 0; height: 0; border-style: solid; border-width: 0 14px 14px 0; border-color: transparent var(--washi-2) transparent transparent; }
.polaroid:nth-child(odd) { transform: rotate(-3deg); }
.polaroid:nth-child(even) { transform: rotate(3deg); }
.polaroid-img { aspect-ratio: 1/1; overflow: hidden; }
.polaroid-nm { font-size: 9px; text-align: center; color: var(--ink-soft); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 7) Kids — lantern bubbles */
.bubble-wrap { display: flex; gap: 14px; padding: 12px 20px 18px; flex-wrap: wrap; }
.bubble-card { position: relative; flex: 1 1 26%; min-width: 80px; border-radius: 50%; padding: 10px; text-align: center; cursor: pointer; background: var(--panel); border: 1px solid var(--gold); }
.bubble-img { border-radius: 50%; overflow: hidden; aspect-ratio: 1/1; }
.bubble-nm { font-size: 10px; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-soft); }

/* 8) Sports — koi-pond zigzag */
.zig-list { display: flex; flex-direction: column; gap: 14px; padding: 0 20px; }
.zig-row { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.zig-row.rev { flex-direction: row-reverse; }
.zig-img { width: 70px; height: 70px; border-radius: 50% 50% 50% 4%; overflow: hidden; flex-shrink: 0; border: 1px solid var(--line); }
.zig-img img { width: 100%; height: 100%; object-fit: cover; }
.zig-body { flex: 1; min-width: 0; }
.zig-row.rev .zig-body { text-align: right; }
.zig-nm { font-size: 14px; font-weight: 600; font-family: var(--font-serif); color: var(--ink); }
.zig-tag { font-size: 10px; color: var(--shu); text-transform: uppercase; letter-spacing: .04em; }
.zig-desc { font-size: 11px; color: var(--ink-faint); margin-top: 4px; }

/* 9) Adventure — zen-garden masonry */
.masonry-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 64px; gap: 10px; padding: 0 20px; }
.masonry-item { min-width: 0; border-radius: 3px; overflow: hidden; cursor: pointer; position: relative; border: 1px solid var(--line); }
.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: 5px 7px; font-size: 10px; color: var(--washi); background: linear-gradient(transparent, rgba(43,39,35,.75)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 10) Racing — bullet-train banner */
.banner-single { position: relative; border-radius: 4px; overflow: hidden; margin: 0 20px; aspect-ratio: 16/8; cursor: pointer; border: 1px solid var(--line); }
.banner-single::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--shu), var(--gold)); z-index: 2; }
.banner-single img { width: 100%; height: 100%; object-fit: cover; }
.banner-ovl { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; background: linear-gradient(transparent, rgba(43,39,35,.88)); }
.banner-badge { display: inline-block; font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 2px; margin-bottom: 5px; background: var(--shu); color: var(--washi); text-transform: uppercase; letter-spacing: .05em; }
.banner-title { font-size: 17px; font-weight: 600; color: var(--washi); font-family: var(--font-serif); }
.banner-desc { font-size: 12px; color: var(--washi-2); margin-top: 5px; }

/* 11) Girl — kimono-pattern list */
.mag-list { display: flex; flex-direction: column; gap: 0; padding: 0 20px; }
.mag-row { display: flex; gap: 14px; cursor: pointer; padding: 14px 0; border-bottom: 1px dashed var(--line); position: relative; }
.mag-row:last-child { border-bottom: none; }
.mag-img { width: 60px; height: 60px; border-radius: 6px; overflow: hidden; flex-shrink: 0; border: 1px solid var(--gold); }
.mag-img img { width: 100%; height: 100%; object-fit: cover; }
.mag-body { flex: 1; min-width: 0; }
.mag-nm { font-size: 14px; font-weight: 600; margin-bottom: 3px; font-family: var(--font-serif); color: var(--ink); }
.mag-desc { font-size: 11px; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 12) Arcade — bamboo-stack */
.stack-row { display: flex; padding: 22px 30px 14px; justify-content: center; gap: 0; }
.stack-card { width: 86px; aspect-ratio: 1/2.4; border-radius: 40px; overflow: hidden; margin-left: -14px; box-shadow: 0 4px 10px rgba(43,39,35,.25); cursor: pointer; border: 2px solid var(--washi); min-width: 0; background: var(--panel); }
.stack-card:first-child { margin-left: 0; }
.stack-card img { width: 100%; height: 100%; object-fit: cover; }

/* All Games — tatami grid, shared .all-grid above */
