/* YOMO GAME — fresh design (2026 autumn)
   方向性: かわいい × スタイリッシュ × 見やすい × 遊び心
   白基調 / ラベンダー・ミント・淡ピンク・水色 / 濃紺の文字
   WordPress / Cocoon との調整は wp.css 側にまとめています。 */

/* Windows: Yu Gothic Regular renders too thin for body text, so use its Medium weight under an alias. */
@font-face { font-family: "Yomo Yu Gothic"; src: local("Yu Gothic Medium"), local("YuGothic-Medium"); }
@font-face { font-family: "Yomo Yu Gothic"; src: local("Yu Gothic Bold"), local("YuGothic-Bold"); font-weight: bold; }

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1e2448;
  --ink-2: #474d6d;
  --ink-3: #676c8a;
  --line: #e8e5ef;
  --line-2: #d9d4e6;

  --accent: #6450c8;
  --accent-ink: #4c3aa8;

  --lav-50: #f7f4fe;
  --lav-100: #efeafd;
  --lav-200: #e0d8fb;
  --lav-300: #c6b8f5;
  --mint-100: #e3f5ec;
  --mint-200: #c8ecd9;
  --mint-ink: #1d6f50;
  --pink-100: #fdecf2;
  --pink-200: #f9d3e1;
  --pink-ink: #a83563;
  --sky-100: #e5f2fb;
  --sky-200: #c9e4f7;
  --sky-ink: #1f5f8f;
  --star: #f0b93e;

  --radius-s: 12px;
  --radius: 20px;
  --radius-l: 28px;
  --shadow-s: 0 1px 2px rgba(30, 36, 72, .05), 0 2px 8px rgba(30, 36, 72, .04);
  --shadow: 0 2px 4px rgba(30, 36, 72, .04), 0 12px 32px -12px rgba(30, 36, 72, .16);
  --shadow-l: 0 4px 10px rgba(30, 36, 72, .05), 0 28px 60px -24px rgba(60, 44, 140, .28);

  --font-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --font-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yomo Yu Gothic", "Yu Gothic UI", "Noto Sans JP", Meiryo, sans-serif;
  --font-latin: "Outfit", "Zen Maru Gothic", sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-round); font-weight: 700; line-height: 1.4; margin: 0; letter-spacing: .03em; }
p { margin: 0; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

.preview-bar {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 6px 16px; font-size: 12px; color: var(--ink-2);
  background: var(--lav-100); letter-spacing: .08em;
}
.preview-bar b { font-family: var(--font-latin); font-weight: 600; color: var(--accent-ink); }

/* ---------- eyebrow / chips ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-latin); font-size: 12px; font-weight: 600;
  letter-spacing: .18em; color: var(--accent-ink); text-transform: uppercase;
}
.eyebrow::before { content: "✦"; font-size: 11px; color: var(--star); letter-spacing: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.6;
  background: var(--lav-100); color: var(--accent-ink);
}
.chip.dqx, .chip.sky { background: var(--sky-100); color: var(--sky-ink); }
.chip.making, .chip.mint { background: var(--mint-100); color: var(--mint-ink); }
.chip.talk, .chip.pink { background: var(--pink-100); color: var(--pink-ink); }
.chip.lavender { background: var(--lav-100); color: var(--accent-ink); }
.chip.ghost { background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lav-300); flex: none; }
.dot.dqx { background: #7fbde6; } .dot.making { background: #79cfa8; } .dot.talk { background: #ee9fbd; } .dot.all { background: var(--lav-300); }

/* ---------- buttons ---------- */
.ybtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.ybtn.ybtn-primary { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -10px rgba(30, 36, 72, .6); }
.ybtn.ybtn-primary:hover { transform: translateY(-2px); background: #2a3160; }
.ybtn.ybtn-secondary { background: var(--surface); border-color: var(--line-2); }
.ybtn.ybtn-secondary:hover { border-color: var(--accent); color: var(--accent-ink); }
.ybtn .arrow { transition: transform .18s ease; }
.ybtn:hover .arrow { transform: translateX(3px); }
.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 14px; color: var(--accent-ink);
}
.text-link .icon { transition: transform .18s ease; }
.text-link:hover .icon { transform: translateX(3px); }
.pill-link {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-2);
  background: var(--surface); font-size: 14px; font-weight: 700;
  transition: border-color .18s, color .18s;
}
.pill-link:hover { border-color: var(--accent); color: var(--accent-ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 250, 247, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px;
  background: var(--lav-100); color: var(--accent-ink);
  box-shadow: inset 0 0 0 1px rgba(100, 80, 200, .1);
}
.brand-icon .icon { width: 22px; height: 22px; }
.brand-text { display: grid; line-height: 1.05; }
.brand-text b { font-family: var(--font-latin); font-size: 20px; font-weight: 700; letter-spacing: .04em; }
.brand-text b span { font-weight: 400; color: var(--ink-2); }
.brand-text small { font-size: 10px; letter-spacing: .38em; color: var(--ink-3); margin-top: 3px; }
.brand .brand-star { color: var(--star); font-size: 12px; align-self: flex-start; margin-top: 4px; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a {
  position: relative; padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: var(--ink-2);
  transition: background .18s, color .18s;
}
.site-nav a:hover { background: var(--lav-100); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-s); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--accent);
}
.header-actions { display: flex; gap: 8px; }
.icon-button {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .18s, color .18s;
}
.icon-button:hover { border-color: var(--accent); color: var(--accent-ink); }
.menu-toggle { display: none; }

/* ---------- section scaffolding ---------- */
.section { padding-block: clamp(56px, 8vw, 96px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 6px; }
.section-head p.lead { color: var(--ink-2); margin-top: 6px; font-size: 15px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px);
  align-items: center; padding-block: clamp(36px, 6vw, 72px) clamp(40px, 6vw, 64px);
}
.hero::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1) 0; z-index: -1;
  background-image: radial-gradient(rgba(100, 80, 200, .13) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 70% 45%, #000 20%, transparent 75%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-s);
  font-family: var(--font-latin); font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--ink-2);
}
.hero-badge .live { width: 8px; height: 8px; border-radius: 50%; background: #5fcf9c; box-shadow: 0 0 0 4px rgba(95, 207, 156, .2); }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(34px, 4.6vw, 60px); line-height: 1.25; letter-spacing: .04em;
}
.hero h1 .line { display: block; white-space: nowrap; }
.hero-aside {
  display: inline-block; margin-top: 14px;
  font-family: var(--font-round); font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px); color: var(--accent-ink);
  background: linear-gradient(transparent 62%, var(--mint-200) 62%, var(--mint-200) 92%, transparent 92%);
  padding-inline: 2px;
}
.hero-description { margin-top: 18px; color: var(--ink-2); font-size: 16px; line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-author { display: flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 13px; color: var(--ink-3); }
.hero-author img { width: 34px; height: 34px; border-radius: 50%; background: var(--lav-100); border: 2px solid #fff; box-shadow: var(--shadow-s); }
.hero-author b { color: var(--ink); font-weight: 700; }

.hero-stage { position: relative; min-height: 420px; }
.hero-stage .blob {
  position: absolute; inset: 6% 2% 4% 8%; border-radius: 46% 54% 52% 48% / 52% 44% 56% 48%;
  background: var(--lav-100);
}
.hero-stage .blob.b2 { inset: auto -2% -2% auto; width: 38%; height: 42%; background: var(--mint-100); border-radius: 50%; }
.stage-card {
  position: absolute; display: block; background: var(--surface); border-radius: var(--radius-l);
  padding: 10px; box-shadow: var(--shadow-l); transition: transform .3s ease;
}
.stage-card img { border-radius: 20px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.stage-card.is-main { left: 4%; right: 6%; top: 8%; transform: rotate(-2.2deg); z-index: 2; }
.stage-card.is-main:hover { transform: rotate(-1deg) translateY(-4px); }
.stage-card.is-sub { width: 46%; right: -2%; top: -2%; transform: rotate(5deg); z-index: 1; opacity: .96; padding: 7px; }
.stage-card.is-sub img { border-radius: 14px; }
.stage-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 8px 4px; }
.stage-caption small { display: block; font-size: 12px; color: var(--ink-3); }
.stage-caption strong { font-family: var(--font-round); font-size: 17px; }
.circle-arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lav-100); color: var(--accent-ink); flex: none; }
.sticker {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  font-family: var(--font-latin); font-size: 12px; font-weight: 700; letter-spacing: .12em;
  box-shadow: 0 6px 14px -6px rgba(30, 36, 72, .3);
}
.sticker.new { left: 0; top: 2%; background: var(--pink-200); color: var(--pink-ink); transform: rotate(-8deg); }
.sticker.new::before { content: "★"; color: #fff; }
.tool-note {
  position: absolute; z-index: 3; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
  background: var(--surface); border-radius: 18px; box-shadow: var(--shadow);
  transform: rotate(2deg); font-size: 13px; line-height: 1.5;
  transition: transform .2s ease;
}
.tool-note:hover { transform: rotate(0) translateY(-3px); }
.tool-note b { display: block; font-size: 14px; }
.tool-note .tile { width: 40px; height: 40px; }
.twinkle { position: absolute; color: var(--star); z-index: 4; font-size: 18px; animation: twinkle 3.2s ease-in-out infinite; pointer-events: none; }
.twinkle.t1 { left: -2%; bottom: 24%; font-size: 22px; color: var(--lav-300); }
.twinkle.t2 { right: 8%; top: 52%; font-size: 14px; animation-delay: 1.1s; }
.twinkle.t3 { left: 42%; top: -4%; font-size: 12px; animation-delay: 2s; color: #8fd3b3; }
@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.85) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(20deg); } }

/* ---------- tiles (app icon squares) ---------- */
.tile {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 15px;
  background: var(--lav-100); color: var(--accent-ink);
}
.tile.mint { background: var(--mint-100); color: var(--mint-ink); }
.tile.pink { background: var(--pink-100); color: var(--pink-ink); }
.tile.blue, .tile.sky { background: var(--sky-100); color: var(--sky-ink); }
.tile .icon { width: 50%; height: 50%; }

/* ---------- 読む・使う・遊ぶ ---------- */
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.door {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center;
  padding: 22px 22px 20px; border-radius: var(--radius); overflow: hidden;
  background: var(--lav-100); transition: transform .2s ease, box-shadow .2s ease;
}
.door:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.door.mint { background: var(--mint-100); } .door.pink { background: var(--pink-100); }
.door .tile { width: 54px; height: 54px; background: var(--surface); grid-row: span 2; }
.door b { font-family: var(--font-round); font-size: 24px; line-height: 1.2; display: flex; align-items: baseline; gap: 10px; }
.door b small { font-family: var(--font-latin); font-size: 11px; letter-spacing: .16em; color: var(--ink-3); font-weight: 600; }
.door span.desc { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.door .count {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(30, 36, 72, .14);
  font-size: 13px; font-weight: 700; color: var(--ink-2);
}
.door .count .icon { transition: transform .2s ease; }
.door:hover .count .icon { transform: translateX(4px); }
.door .num { font-family: var(--font-latin); font-size: 20px; color: var(--ink); margin-right: 2px; }

/* ---------- ranking (user-specified, keep prominent) ---------- */
.yomo-ranking {
  position: relative; margin-top: 18px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px 22px;
  padding: 20px 26px; border-radius: var(--radius);
  background: #fffdf6;
  border: 2px dashed #f1d48a;
  box-shadow: 0 10px 28px -18px rgba(176, 130, 20, .45);
}
.yomo-ranking::before, .yomo-ranking::after {
  content: ""; position: absolute; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%;
  background: var(--bg); border: 2px dashed #f1d48a;
}
.yomo-ranking::before { left: -11px; clip-path: inset(0 0 0 50%); }
.yomo-ranking::after { right: -11px; clip-path: inset(0 50% 0 0); }
.yomo-ranking img { width: 64px; height: 64px; border-radius: 50%; background: var(--lav-100); border: 3px solid #fff; box-shadow: var(--shadow-s); }
.yomo-ranking .rank-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #8a6510; letter-spacing: .06em; }
.yomo-ranking .rank-label::before { content: "♛"; font-size: 13px; color: var(--star); }
.yomo-ranking strong { display: block; font-family: var(--font-round); font-size: clamp(20px, 2.4vw, 26px); line-height: 1.35; margin-top: 2px; }
.yomo-ranking p { font-size: 13px; color: var(--ink-2); }
.yomo-ranking-button {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 10px 22px -10px rgba(30, 36, 72, .55);
  transition: transform .18s ease, background .18s;
}
.yomo-ranking-button:hover { transform: translateY(-2px); background: #2a3160; }
.yomo-ranking-button .press { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--star); color: var(--ink); font-size: 12px; }

/* ---------- journal ---------- */
.tabs {
  display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s);
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"], .tabs a {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  min-height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: none;
  font-size: 14px; font-weight: 700; color: var(--ink-2); transition: background .18s, color .18s;
}
.tabs [role="tab"]:hover { color: var(--ink); background: var(--lav-50); }
.tabs [aria-selected="true"], .tabs [aria-current="page"] { background: var(--ink); color: #fff; }
.tabs [aria-selected="true"] .dot { box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.journal-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.panel-description { font-size: 14px; color: var(--ink-3); }

.journal-panel { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; }
.journal-panel[hidden] { display: none; }
.post-feature {
  display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius-l);
  overflow: hidden; box-shadow: var(--shadow-s); border: 1px solid var(--line);
  transition: transform .22s ease, box-shadow .22s ease;
}
.post-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-feature .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--lav-100); }
.post-feature .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-feature:hover .thumb img { transform: scale(1.03); }
.post-feature .body { padding: 20px 24px 24px; display: grid; gap: 10px; }
.post-feature h3 { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.55; }
.post-feature p { font-size: 14px; color: var(--ink-2); line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.post-meta time { font-family: var(--font-latin); letter-spacing: .08em; }

.post-list { display: grid; gap: 4px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 10px; }
.post-row {
  display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 10px; border-radius: 16px; transition: background .18s;
}
.post-row:hover { background: var(--lav-50); }
.post-row .thumb { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--lav-100); }
.post-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-row h3 { font-family: var(--font-body); font-size: 14px; font-weight: 700; line-height: 1.6; letter-spacing: .01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.post-row:hover h3 { color: var(--accent-ink); }
.journal-more { margin-top: 6px; padding: 10px 10px 4px; border-top: 1px dashed var(--line-2); display: flex; justify-content: flex-end; }

/* ---------- ad placeholder ---------- */
.yomo-ad {
  margin-top: clamp(48px, 7vw, 80px);
  display: grid; place-items: center; gap: 2px; min-height: 120px; padding: 18px;
  border-radius: var(--radius); border: 1.5px dashed var(--line-2); background: repeating-linear-gradient(-45deg, #fff, #fff 10px, #faf9fc 10px, #faf9fc 20px);
  color: var(--ink-3); text-align: center;
}
.yomo-ad small { font-size: 11px; letter-spacing: .14em; }
.yomo-ad p { font-size: 13px; }

/* ---------- toolbox (home) ---------- */
.toolbox { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: 20px; }
.toolbox-panel {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 14px; padding: 28px;
  border-radius: var(--radius-l); background: var(--ink); color: #fff;
}
.toolbox-panel::after {
  content: "✦"; position: absolute; right: 18px; top: 10px; font-size: 64px; color: rgba(198, 184, 245, .18);
}
.toolbox-panel .big { font-family: var(--font-latin); font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: 0; }
.toolbox-panel .big small { font-size: 14px; letter-spacing: .2em; margin-left: 6px; color: var(--lav-300); }
.toolbox-panel p { color: #d7d9ea; font-size: 14px; }
.cat-links { display: grid; gap: 6px; margin-top: 4px; }
.cat-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .07);
  font-size: 14px; font-weight: 700; transition: background .18s;
}
.cat-links a:hover { background: rgba(255, 255, 255, .16); }
.cat-links a span:last-child { font-family: var(--font-latin); color: var(--lav-300); }
.toolbox-panel .ybtn { margin-top: auto; background: #fff; color: var(--ink); }
.toolbox-panel .ybtn:hover { background: var(--lav-100); }

.tool-mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tool-mini {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-content: start;
  padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.tool-mini:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.tool-mini .tile { width: 56px; height: 56px; border-radius: 18px; grid-row: span 2; }
.tool-mini h3 { font-size: 17px; padding-right: 24px; }
.tool-mini .tool-catch { font-family: var(--font-round); font-weight: 700; font-size: 13px; color: var(--accent-ink); line-height: 1.6; }
.tool-mini .desc { grid-column: 1 / -1; margin-top: 12px; font-size: 14px; color: var(--ink-2); line-height: 1.75; }
.tool-mini .chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tool-mini .open { position: absolute; right: 16px; top: 16px; color: var(--ink-3); }
.tool-mini:hover .open { color: var(--accent-ink); }

/* ---------- games ---------- */
.games { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.game-card {
  display: flex; flex-direction: column; border-radius: var(--radius-l); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s);
  transition: transform .22s ease, box-shadow .22s;
}
.game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.game-card .cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--lav-100); }
.game-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.game-card .cover .chip { position: absolute; left: 14px; top: 14px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); }
.game-card .body { display: grid; gap: 10px; padding: 20px 24px 24px; flex: 1; align-content: start; }
.game-card h3 { font-size: 22px; }
.game-card p { color: var(--ink-2); font-size: 14px; }
.game-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.game-card .no { font-family: var(--font-latin); font-size: 12px; letter-spacing: .16em; color: var(--ink-3); }

/* ---------- bottom bento ---------- */
.bento { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 16px; }
.bento > * { border-radius: var(--radius-l); padding: 26px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.bento h2 { font-size: 21px; }
.bento p { font-size: 14px; color: var(--ink-2); }
.bento .text-link { margin-top: auto; padding-top: 8px; }
.watch-card { background: var(--sky-100); }
.watch-card .play {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: #fff; color: var(--sky-ink);
  box-shadow: var(--shadow-s);
}
.watch-card .eyebrow, .watch-card .text-link { color: var(--sky-ink); }
.lab-card { background: var(--mint-100); }
.lab-card .eyebrow, .lab-card .text-link { color: var(--mint-ink); }
.lab-mark { font-family: ui-monospace, Consolas, monospace; font-size: 28px; font-weight: 700; color: var(--mint-ink); opacity: .7; }
.about-card { background: var(--surface); border: 1px solid var(--line); }
.about-card .who { display: flex; align-items: center; gap: 12px; }
.about-card img { width: 56px; height: 56px; border-radius: 50%; background: var(--lav-100); }
.about-card .who b { font-family: var(--font-round); font-size: 18px; display: block; line-height: 1.3; }
.about-card .who small { font-size: 12px; color: var(--ink-3); }
.about-card .eyebrow { color: var(--pink-ink); }

/* ---------- footer ---------- */
.site-footer { margin-top: clamp(64px, 9vw, 112px); background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; padding-block: 44px 28px; position: relative; }
.footer-inner p { color: var(--ink-2); font-size: 14px; margin-top: 12px; }
.footer-links { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 28px; align-content: start; font-size: 14px; font-weight: 700; }
.footer-links a { color: var(--ink-2); }
.footer-links a:hover { color: var(--accent-ink); }
.footer-base { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.back-top { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lav-100); color: var(--accent-ink); font-weight: 700; }

/* ---------- search dialog / tool dialog ---------- */
dialog {
  border: 0; padding: 0; border-radius: var(--radius-l); background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(30, 36, 72, .45);
  width: min(560px, calc(100% - 32px)); max-height: calc(100% - 48px);
}
dialog::backdrop { background: rgba(30, 36, 72, .32); backdrop-filter: blur(3px); }
dialog[open] { animation: pop .22s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.dialog-inner { padding: 24px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tool-dialog h2 { font-size: 22px; margin: 6px 0 12px; }
.tool-dialog ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tool-dialog li { position: relative; padding: 12px 14px 12px 38px; background: var(--lav-50); border-radius: 14px; font-size: 14px; line-height: 1.75; }
.tool-dialog li::before { content: "✦"; position: absolute; left: 14px; top: 12px; color: var(--accent); font-size: 12px; }
.dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 20px; }
.search-dialog { width: min(640px, calc(100% - 32px)); margin-top: 10vh; }
.search-field { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.search-field input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 17px; background: none; color: var(--ink); min-width: 0; }
.search-results { list-style: none; margin: 0; padding: 8px; max-height: 56vh; overflow: auto; }
.search-results a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; }
.search-results a:hover, .search-results a:focus-visible { background: var(--lav-50); }
.search-results b { font-size: 14px; line-height: 1.6; }
.search-results small { font-size: 12px; color: var(--ink-3); }
.search-empty { padding: 20px; color: var(--ink-3); font-size: 14px; text-align: center; }
kbd { font-family: var(--font-latin); font-size: 11px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink-3); }

/* =========================================================
   Apps (tool gallery)
   ========================================================= */
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: var(--ink-3); }
.breadcrumb a:hover { color: var(--accent-ink); }
.gallery-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end;
  padding-block: clamp(28px, 5vw, 56px) 32px;
}
.gallery-hero h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.3; margin-top: 12px; }
.gallery-hero h1 span { background: linear-gradient(transparent 62%, var(--lav-200) 62%, var(--lav-200) 92%, transparent 92%); }
.gallery-hero .lead { margin-top: 14px; color: var(--ink-2); }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 10px; }
.stat {
  display: grid; gap: 0; min-width: 104px; padding: 14px 18px; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-s);
}
.stat b { font-family: var(--font-latin); font-size: 28px; line-height: 1.1; }
.stat small { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.stat.lav { background: var(--lav-100); border-color: transparent; }
.stat.mint { background: var(--mint-100); border-color: transparent; }
.stat.sky { background: var(--sky-100); border-color: transparent; }

.filter-bar {
  position: sticky; top: calc(var(--header-h) + 8px); z-index: 20;
  display: grid; gap: 14px; padding: 16px; border-radius: var(--radius-l);
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.search-box {
  flex: 1 1 320px; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 16px;
  border-radius: 999px; background: var(--bg); border: 1.5px solid var(--line);
  transition: border-color .18s, box-shadow .18s;
}
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(100, 80, 200, .12); background: #fff; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); }
.search-box input::placeholder { color: var(--ink-3); }
.search-box input::-webkit-search-cancel-button { display: none; }
.clear-search { border: 0; background: var(--lav-100); color: var(--accent-ink); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.filter-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-group .label { font-size: 12px; font-weight: 700; color: var(--ink-3); margin-right: 2px; letter-spacing: .06em; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  font-size: 13px; font-weight: 700; color: var(--ink-2); transition: all .16s;
}
.filter-chip:hover { border-color: var(--lav-300); color: var(--ink); }
.filter-chip .n { font-family: var(--font-latin); font-size: 11px; color: var(--ink-3); }
.filter-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-chip[aria-pressed="true"] .n { color: var(--lav-300); }
.filter-divider { width: 1px; height: 24px; background: var(--line); margin-inline: 4px; }
.results-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 22px 4px 16px; font-size: 14px; color: var(--ink-2); }
.results-line b { font-family: var(--font-latin); font-size: 18px; color: var(--ink); }
.reset-link { border: 0; background: none; color: var(--accent-ink); font-weight: 700; font-size: 13px; padding: 4px 6px; text-decoration: underline; text-underline-offset: 3px; }

.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tool-card {
  display: flex; flex-direction: column; gap: 12px; padding: 22px;
  border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.tool-card .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tool-card .tile { width: 60px; height: 60px; border-radius: 19px; }
.tool-card h3 { font-size: 19px; }
.tool-card .tool-catch { font-family: var(--font-round); font-weight: 700; font-size: 14px; color: var(--accent-ink); margin-top: -6px; }
.tool-card .desc { font-size: 14px; color: var(--ink-2); line-height: 1.75; }
.tool-card .envs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.env { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); font-weight: 600; }
.env .icon { width: 13px; height: 13px; }
.tool-card .actions { display: flex; gap: 8px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.tool-card .actions .ybtn { min-height: 42px; font-size: 14px; padding: 0 16px; }
.tool-card .actions .ybtn.ybtn-primary { flex: 1; background: var(--lav-100); color: var(--accent-ink); box-shadow: none; }
.tool-card .actions .ybtn.ybtn-primary:hover { background: var(--ink); color: #fff; }
.tool-card mark { background: var(--mint-200); color: inherit; border-radius: 3px; padding: 0 1px; }
.empty-results { text-align: center; padding: 56px 20px; border-radius: var(--radius-l); background: var(--surface); border: 1.5px dashed var(--line-2); }
.empty-results .tile { margin: 0 auto 14px; width: 64px; height: 64px; border-radius: 20px; }
.empty-results h3 { font-size: 20px; }
.empty-results p { color: var(--ink-2); font-size: 14px; margin: 6px 0 18px; }

.help-section h2 { font-size: clamp(24px, 3vw, 30px); margin: 6px 0 22px; }
.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.help-card { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.help-card .tile { grid-row: span 2; }
.help-card h3 { font-size: 17px; }
.help-card p { font-size: 14px; color: var(--ink-2); }
.full-guide { margin-top: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.full-guide > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; font-weight: 700;
}
.full-guide > summary::-webkit-details-marker { display: none; }
.full-guide > summary .plus { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lav-100); color: var(--accent-ink); transition: transform .2s; flex: none; }
.full-guide[open] > summary .plus { transform: rotate(45deg); }
.guide-content { padding: 0 22px 22px; font-size: 14px; color: var(--ink-2); }
.guide-content p, .guide-content ol { margin: 0 0 12px; }
.guide-content details { border-radius: 14px; background: var(--lav-50); padding: 12px 16px; margin: 12px 0; }
.guide-content summary { font-weight: 700; cursor: pointer; color: var(--ink); }
.guide-content li { margin-bottom: 6px; }
.guide-note { margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--line-2); font-size: 13px; }
.small-note { margin-top: 18px; font-size: 13px; color: var(--ink-3); }

/* =========================================================
   Article (reading sample)
   ========================================================= */
.reading-progress { position: fixed; left: 0; top: 0; z-index: 60; height: 3px; width: 100%; pointer-events: none; }
.reading-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lav-300), #8fd3b3); border-radius: 0 3px 3px 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; margin-top: 18px; }
.reading-card { background: var(--surface); border-radius: var(--radius-l); border: 1px solid var(--line); padding: clamp(22px, 4vw, 52px); min-width: 0; }
.article-header .post-meta { font-size: 13px; }
.article-header h1 { font-size: clamp(24px, 3vw, 32px); line-height: 1.55; margin: 14px 0 18px; }
.byline { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.byline img { width: 36px; height: 36px; border-radius: 50%; background: var(--lav-100); }
.article-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding: 14px 0; border-block: 1px solid var(--line); }
.yomo-ranking-inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #8a6510; background: #fff7df; padding: 6px 12px; border-radius: 999px; }
.yomo-ranking-inline::before { content: "♛"; color: var(--star); }
.ad-disclosure { font-size: 12px; color: var(--ink-3); }

.yomo-share { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.yomo-share-label { font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .06em; }
.yomo-share-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.yomo-share-actions a, .yomo-share-actions button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 700;
  transition: border-color .16s, color .16s;
}
.yomo-share-actions a:hover, .yomo-share-actions button:hover { border-color: var(--accent); color: var(--accent-ink); }
.yomo-share-actions .icon { width: 14px; height: 14px; }
.copy-status { font-size: 12px; color: var(--mint-ink); font-weight: 700; min-width: 1px; }

.mobile-toc { display: none; margin-top: 18px; border-radius: 16px; background: var(--lav-50); }
.mobile-toc summary { padding: 14px 18px; font-weight: 700; cursor: pointer; }
.mobile-toc ol { margin: 0; padding: 0 18px 16px 40px; font-size: 14px; }
.mobile-toc li { padding: 4px 0; }

.article-body { margin-top: 28px; font-size: 16.5px; line-height: 2.05; color: #262c52; letter-spacing: .03em; }
.article-body > * + * { margin-top: 1.3em; }
.article-body p:empty { display: none; }
.article-body h2 {
  position: relative; margin-top: 2.6em; padding: 14px 18px 14px 22px; border-radius: 14px;
  background: var(--lav-50); font-size: clamp(20px, 2.2vw, 23px); line-height: 1.55;
}
.article-body h2::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 5px; border-radius: 0 4px 4px 0; background: var(--accent); }
.article-body h3 { margin-top: 2em; font-size: 19px; padding-bottom: 8px; border-bottom: 2px dotted var(--lav-300); }
.article-body a { color: var(--accent-ink); text-decoration: underline; text-decoration-color: var(--lav-300); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.article-body a:hover { text-decoration-color: var(--accent); }
.article-body img { border-radius: 14px; margin-inline: auto; }
.article-body figure { margin-inline: 0; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li + li { margin-top: .3em; }
.article-body li::marker { color: var(--accent); }
.article-body strong { background: linear-gradient(transparent 64%, #fff0b8 64%); }
.table-scroll { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.article-body table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14.5px; line-height: 1.7; }
.article-body th { background: var(--lav-100); text-align: left; font-weight: 700; white-space: nowrap; }
.article-body th, .article-body td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.article-body tr:last-child td { border-bottom: 0; }
.article-body tbody tr:nth-child(even) td { background: #fcfbfe; }
/* Cocoon blocks used in posts */
.article-body .speech-wrap { display: flex; gap: 14px; align-items: flex-start; }
.article-body .speech-icon { margin: 0; flex: none; }
.article-body .speech-icon img { width: 56px; height: 56px; border-radius: 50%; background: var(--lav-100); border: 2px solid #fff; box-shadow: var(--shadow-s); }
.article-body .speech-balloon { position: relative; flex: 1; padding: 12px 18px; border-radius: 4px 18px 18px 18px; background: var(--mint-100); font-size: 15px; }
.article-body .speech-balloon p { margin: 0; }
.article-body .caption-box { position: relative; border: 2px solid var(--lav-300); border-radius: 16px; padding: 22px 18px 12px; margin-top: 2em; }
.article-body .caption-box.has-red-border-color { border-color: #f2b2c8; }
.article-body .caption-box-label { position: absolute; left: 14px; top: -14px; padding: 2px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.8; }
.article-body .caption-box.has-red-border-color .caption-box-label { background: var(--pink-ink); }
.article-body .caption-box ul { margin: 0; }

.temp-placeholder {
  margin-top: 40px; padding: 18px 20px; border-radius: 16px; border: 1.5px dashed #f1d48a; background: #fffdf6;
  font-size: 13px; color: #6d5410;
}
.temp-placeholder b { display: block; font-size: 14px; color: var(--ink); }
.article-end { margin-top: 36px; padding: 24px; border-radius: 20px; background: var(--lav-50); display: grid; gap: 14px; justify-items: center; text-align: center; }
.article-end > span { font-family: var(--font-round); font-weight: 700; font-size: 17px; }
.article-end > span::before, .article-end > span::after { content: "✦"; color: var(--star); font-size: 12px; margin: 0 8px; vertical-align: 2px; }

.reading-sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.toc-box, .author-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.toc-box h2 { font-size: 16px; margin: 4px 0 10px; }
.toc-box ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; max-height: 52vh; overflow: auto; }
.toc-box li { counter-increment: toc; }
.toc-box a { display: grid; grid-template-columns: 24px 1fr; gap: 4px; padding: 7px 8px; border-radius: 10px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.toc-box a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-latin); font-size: 11px; color: var(--ink-3); padding-top: 2px; }
.toc-box a:hover { background: var(--lav-50); color: var(--ink); }
.toc-box a.active { background: var(--lav-100); color: var(--accent-ink); font-weight: 700; }
.author-box { text-align: center; display: grid; justify-items: center; gap: 6px; }
.author-box img { width: 68px; height: 68px; border-radius: 50%; background: var(--lav-100); }
.author-box h3 { font-size: 17px; }
.author-box p { font-size: 13px; color: var(--ink-2); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.related-grid .post-feature h3 { font-size: 16px; }
.article-crumb { margin-top: 24px; }

/* =========================================================
   Journal archive / games page (WordPress only)
   ========================================================= */
.ybtn .arrow { display: inline-flex; }
.archive-hero { position: relative; padding-block: clamp(28px, 5vw, 56px) 28px; }
.archive-hero h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.35; margin-top: 12px; }
.archive-hero h1 span { background: linear-gradient(transparent 62%, var(--mint-200) 62%, var(--mint-200) 92%, transparent 92%); }
.archive-hero .eyebrow { margin-top: 18px; }
.archive-hero .lead { margin-top: 14px; color: var(--ink-2); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post-grid .post-feature h3 { font-size: 17px; }
.post-empty { padding: 28px; text-align: center; color: var(--ink-3); font-size: 14px; }
.missing-image { display: grid; place-items: center; width: 100%; height: 100%; background: var(--lav-100); color: var(--accent-ink); }
.missing-image .icon { width: 40px; height: 40px; }
.yomo-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding-top: 36px; }
.yomo-pagination a, .yomo-fresh .nav-links .page-numbers {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); font-family: var(--font-latin); font-weight: 700;
}
.yomo-pagination a:hover { border-color: var(--accent); color: var(--accent-ink); }
.yomo-pagination a[aria-current="page"], .yomo-fresh .nav-links .current { background: var(--ink); border-color: var(--ink); color: #fff; }

.game-library { display: grid; gap: 22px; }
.game-detail {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center;
  padding: 14px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-s);
}
.game-detail:nth-child(even) .cover { order: 2; }
.game-detail .cover { position: relative; border-radius: 20px; overflow: hidden; background: var(--lav-100); }
.game-detail .cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.game-detail .cover .sticker { left: 14px; top: 14px; }
.game-detail .body { display: grid; gap: 12px; justify-items: start; padding: 10px 14px 10px 0; }
.game-detail:nth-child(even) .body { padding: 10px 0 10px 14px; }
.game-detail h2 { font-size: clamp(22px, 2.6vw, 28px); }
.game-detail p { color: var(--ink-2); font-size: 15px; }
.game-detail .facts { display: flex; flex-wrap: wrap; gap: 6px; }
.game-detail .notice { font-size: 13px; color: var(--ink-3); padding: 10px 14px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--line-2); }
.game-detail .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.game-help { display: flex; gap: 18px; align-items: flex-start; margin-top: 28px; padding: 24px; border-radius: var(--radius); background: var(--mint-100); }
.game-help .tile { background: #fff; }
.game-help h2 { font-size: 19px; }
.game-help p { font-size: 14px; color: var(--ink-2); margin-top: 6px; }

.search-count { padding: 10px 20px 0; font-size: 12px; color: var(--ink-3); }
.search-count:empty { display: none; }
.search-hint { padding: 10px 20px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .site-nav a { padding: 8px 10px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbox { grid-template-columns: 1fr; }
  .toolbox-panel { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px 24px; }
  .toolbox-panel .cat-links { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .toolbox-panel .ybtn { grid-column: 1 / -1; justify-self: start; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .about-card { grid-column: 1 / -1; }
  .article-layout { grid-template-columns: 1fr; }
  .reading-sidebar { position: static; grid-template-columns: 1fr; }
  .reading-sidebar .toc-box { display: none; }
  .mobile-toc { display: block; }
}
@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .menu-toggle { display: grid; }
  .site-nav {
    position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + 6px);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-l);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .18s, transform .18s, visibility .18s;
  }
  .site-nav.open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a { padding: 12px 16px; font-size: 15px; }
  .site-nav a[aria-current="page"]::after { left: auto; right: 16px; top: 50%; bottom: auto; margin-top: -2px; }
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .hero-stage { min-height: 0; aspect-ratio: 1 / .78; max-width: 560px; width: 100%; margin-inline: auto; }
  .doors { grid-template-columns: 1fr; gap: 10px; }
  .door { grid-template-columns: auto 1fr auto; padding: 14px 16px; }
  .door .tile { width: 46px; height: 46px; grid-row: span 2; }
  .door b { font-size: 20px; }
  .door .count { grid-column: 3; grid-row: 1 / span 2; margin: 0; padding: 0; border: 0; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 11px; }
  .door .count .label { display: none; }
  .yomo-ranking { grid-template-columns: auto 1fr; padding: 18px; }
  .yomo-ranking-button { grid-column: 1 / -1; justify-content: center; }
  .journal-panel { grid-template-columns: 1fr; }
  .games { grid-template-columns: 1fr; }
  .gallery-hero { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { min-width: 0; }
  .related-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-detail { grid-template-columns: 1fr; }
  .game-detail:nth-child(even) .cover { order: 0; }
  .game-detail .body, .game-detail:nth-child(even) .body { padding: 4px 8px 10px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .hero h1 { font-size: 38px; }
  .hero-actions .ybtn { flex: 1 1 auto; }
  .post-row { grid-template-columns: 104px minmax(0, 1fr); gap: 12px; padding: 8px; }
  .post-feature .body { padding: 16px 18px 20px; }
  .tool-mini-grid, .tool-grid { grid-template-columns: 1fr; }
  .toolbox-panel { grid-template-columns: 1fr; padding: 22px; }
  .toolbox-panel .big { font-size: 48px; }
  .toolbox-panel .cat-links { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento > * { padding: 22px; }
  .help-grid { grid-template-columns: 1fr; }
  .filter-bar { position: static; padding: 14px; }
  .filter-group { flex-wrap: nowrap; overflow-x: auto; margin-inline: -14px; padding-inline: 14px; scrollbar-width: none; }
  .filter-group::-webkit-scrollbar { display: none; }
  .filter-group .label { flex: none; }
  .filter-chip { flex: none; }
  .filter-divider { display: none; }
  .search-box kbd { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, auto); justify-content: start; }
  .reading-card { border-radius: 20px; }
  .article-body { font-size: 16px; line-height: 2; }
  .tabs { width: 100%; display: grid; grid-template-columns: .7fr 1fr 1.25fr 1.05fr; }
  .tabs [role="tab"], .tabs a { justify-content: center; padding: 0 4px; font-size: 13px; }
  .tabs .dot { display: none; }
  .tool-note { display: none; }
  .tool-mini h3 { font-size: 16px; }
  .gallery-hero .lead br { display: none; }
  .stat { padding: 12px 14px; }
  .stat b { font-size: 24px; }
  .stat small { font-size: 11px; line-height: 1.5; }
  .hero-stage { aspect-ratio: 1 / .7; }
  .stage-card.is-sub { width: 42%; }
  .post-grid { grid-template-columns: 1fr; }
  .game-detail .actions .ybtn { flex: 1 1 auto; }
  .game-help { flex-direction: column; }
}

/* Narrow screens: the lead game card sits in the flow so its caption never runs into the doors below. */
@media (max-width: 860px) {
  .hero-stage { aspect-ratio: auto; min-height: 0; padding: 10% 7% 64px 3%; }
  .stage-card.is-main { position: relative; left: auto; right: auto; top: auto; }
}
@media (max-width: 640px) {
  .hero-stage { padding: 15% 5% 12px 2%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .twinkle { opacity: .7; }
  html { scroll-behavior: auto; }
}
