/* あそびポータル — 明るい「ゲーム雑誌」テーマ（v4・Codex案＋Claude） */
:root {
  --bg: #f7f6f2;
  --bg-2: #f1f1ea;
  --surface: #ffffff;
  --surface-2: #f1f1ea;
  --surface-3: #e6e7df;
  --line: #e2e3db;
  --line-2: #d3d5cb;
  --text: #252b29;
  --muted: #5f665f;
  --faint: #6b726b;
  --accent: #bc472d;
  --accent-hi: #a13c26;
  --accent-2: #deb164;
  --accent-ink: #ffffff;
  --accent-soft: #f9e4d9;
  --grad: linear-gradient(135deg, #bc472d, #cf6a3c);
  --grad-cool: linear-gradient(135deg, #26787f, #3f6b96);
  --cyan: #26787f;
  --lime: #42725b;
  --gold: #a87414;
  --gold-soft: #f6ecd6;
  --green: #2f7a55;
  --red: #b23a3a;
  --blue: #2e6390;
  --link: #a13c26;
  --mint: #d7eae2;
  --night: #202c2a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px rgba(32, 44, 42, 0.12);
  --glow: 0 0 0 1px var(--line-2);
  --font: -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic UI', 'Yu Gothic', 'Noto Sans JP', 'Noto Sans CJK JP', Meiryo, sans-serif;
  --display: var(--font);
  --num: 'Avenir Next', Avenir, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --maxw: 1240px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html.no-scroll {
  overflow: hidden;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
img {
  max-width: 100%;
  display: block;
}
code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(37, 43, 41, 0.06);
  padding: 0.1em 0.4em;
  border-radius: 6px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}
:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 2px;
  border-radius: 6px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
  padding: 6px 12px;
  border-radius: 8px;
}
.skip:focus {
  left: 8px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.center {
  text-align: center;
}
.nowrap {
  white-space: nowrap;
}
.warn-text {
  color: var(--accent-hi);
}
.ic {
  flex: none;
  vertical-align: -3px;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s;
  color: var(--text);
  background: var(--surface-2);
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: var(--accent-hi);
}
.btn-ghost {
  background: rgba(37, 43, 41, 0.034);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  background: rgba(37, 43, 41, 0.076);
}
.btn-outline {
  background: transparent;
  border-color: var(--accent-hi);
  color: var(--blue);
}
.btn-danger {
  color: var(--red);
  border-color: rgba(178, 58, 58, 0.35);
}
.btn.btn-danger:not(.btn-ghost) {
  background: var(--red);
  color: #fff;
}
.btn-sm {
  min-height: 34px;
  padding: 0 13px;
  font-size: 13px;
}
.btn-xs {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}
.btn-lg {
  min-height: 50px;
  padding: 0 24px;
  font-size: 16px;
}
.btn-block {
  width: 100%;
}
.linkish {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 12px;
  color: var(--faint);
  cursor: pointer;
}
.linkish:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ---------- ヘッダー ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 242, 0.94);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none !important;
  flex: none;
}
.logo-mark {
  flex: none;
}
.logo-text {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--text);
}
.hdr-search {
  flex: 1;
  max-width: 460px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 43, 41, 0.051);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  color: var(--muted);
}
.hdr-search:focus-within {
  border-color: var(--accent-hi);
  background: rgba(37, 43, 41, 0.076);
}
.hdr-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  height: 38px;
  outline: none;
  min-width: 0;
}
.hdr-nav {
  display: flex;
  gap: 4px;
}
.hdr-nav a {
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
}
.hdr-nav a:hover {
  color: var(--text);
  background: rgba(37, 43, 41, 0.043);
  text-decoration: none;
}
.hdr-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hdr-icon {
  position: relative;
  color: var(--muted);
  display: inline-flex;
  padding: 6px;
  border-radius: 999px;
}
.hdr-search-btn {
  display: none;
}
.list-search {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 560px;
  margin: 0 0 14px;
  padding: 4px 4px 4px 14px;
  border-radius: 10px;
  background: rgba(37, 43, 41, 0.051);
  border: 1px solid var(--line-2);
  color: var(--muted);
}
.list-search:focus-within {
  border-color: var(--accent-hi);
}
.list-search input {
  flex: 1;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 36px !important;
  padding: 0 !important;
}
.hdr-icon:hover {
  color: var(--text);
  background: rgba(37, 43, 41, 0.051);
}
.dot {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}
.menu {
  position: relative;
}
.menu > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
}
.menu > summary::-webkit-details-marker {
  display: none;
}
.menu-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 6px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  z-index: 60;
}
.menu-pop a,
.menu-pop button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--text);
  border-radius: 9px;
  font: inherit;
  font-size: 14px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.menu-pop a:hover,
.menu-pop button:hover {
  background: rgba(37, 43, 41, 0.06);
  text-decoration: none;
}
.menu-who {
  padding: 8px 12px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  line-height: 1.4;
}
.menu-who span {
  color: var(--faint);
  font-size: 12px;
}
.menu-mobile {
  display: none;
}

/* ---------- アバター ---------- */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--surface-3);
}
.avatar-txt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 70% 55%), hsl(calc(var(--h) + 40) 65% 42%));
}

/* ---------- レイアウト ---------- */
.main {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}
.main-wide {
  max-width: var(--maxw);
}
.narrow {
  max-width: 640px;
  margin: 0 auto;
}
.page-title {
  font-size: 26px;
  line-height: 1.35;
  margin: 4px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec {
  margin: 44px 0;
}
.sec-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-bottom: 14px;
}
.sec-title {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.01em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec-title .ic {
  color: var(--accent-hi);
  vertical-align: 0;
}
.sec-sub {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
}
.sec-more {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
}
.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cols-2-wide {
  grid-template-columns: 3fr 2fr;
}

/* ---------- フラッシュ・通知 ---------- */
.flash {
  max-width: var(--maxw);
  margin: 12px auto 0;
  width: calc(100% - 32px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  transition: opacity 0.3s, transform 0.3s;
}
.flash > span {
  flex: 1;
}
.flash button {
  background: none;
  border: 0;
  color: inherit;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.flash-ok {
  border-color: rgba(53, 201, 138, 0.45);
}
.flash-error {
  border-color: rgba(255, 95, 114, 0.5);
}
.flash-info {
  border-color: rgba(116, 169, 255, 0.45);
}
.flash.is-out {
  opacity: 0;
  transform: translateY(-6px);
}
.notice {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  background: var(--gold-soft);
  border: 1px solid rgba(242, 193, 78, 0.35);
}
.notice > span {
  flex: 1;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  background: var(--text);
  color: #fff;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(32, 44, 42, 0.135);
  z-index: 2000;
  transition: all 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.3);
}
.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast-soft {
  background: var(--surface-3);
  color: var(--text);
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 32px;
  align-items: center;
  padding: 28px 0 8px;
}
.hero-title {
  font-weight: 800;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}
.hero-lead {
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 34em;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-stats {
  display: flex;
  gap: 26px;
  margin: 22px 0 0;
}
.hero-stats div {
  display: flex;
  flex-direction: column-reverse;
}
.hero-stats dt {
  color: var(--faint);
  font-size: 12px;
}
.hero-stats dd {
  margin: 0;
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
}
.spot {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 0 0 1px var(--line-2), var(--shadow);
  background: var(--surface);
}
.spot-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  color: var(--text);
  text-decoration: none !important;
}
.spot-item.is-active {
  opacity: 1;
  z-index: 1;
}
.spot-item .thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 6s ease;
}
.spot-item.is-active .thumb {
  transform: scale(1.08);
}
.spot-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 60px 22px 20px;
  background: linear-gradient(transparent, rgba(20, 28, 26, 0.86));
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.spot-cap strong {
  font-size: 24px;
  line-height: 1.3;
}
.spot-cap span:last-child {
  color: var(--muted);
}
.spot-label {
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
}
.spot-dots {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 18px;
  display: flex;
  gap: 6px;
}
.spot-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(37, 43, 41, 0.2);
  cursor: pointer;
  padding: 0;
}
.spot-dots button.is-active {
  background: #fff;
  width: 22px;
  border-radius: 6px;
}

/* ---------- ジャンル帯 ---------- */
.genre-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 18px 2px 6px;
  scrollbar-width: none;
}
.genre-strip::-webkit-scrollbar {
  display: none;
}
.genre-strip {
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
  mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.genre-strip-sm {
  padding-top: 4px;
}
.genre-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}
.genre-chip:hover,
.genre-chip.is-active {
  border-color: var(--accent-hi);
  background: var(--accent-soft);
  text-decoration: none;
}

/* ---------- ゲームカード ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px 16px;
}
.card {
  min-width: 0;
}
.card-link {
  display: block;
  color: var(--text);
  text-decoration: none !important;
  border-radius: var(--radius);
}
.card-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card-link:hover .card-media,
.card-link:focus-visible .card-media {
  box-shadow: var(--glow);
  transform: translateY(-3px);
}
.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.card-link:hover .thumb {
  transform: scale(1.05);
}
.thumb-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px;
  text-align: center;
  background: radial-gradient(circle at 30% 20%, hsl(var(--h) 60% 45% / 0.9), transparent 60%),
    linear-gradient(135deg, hsl(var(--h) 45% 22%), hsl(calc(var(--h) + 60) 50% 16%));
}
.thumb-ph-icon {
  font-size: 34px;
  filter: drop-shadow(0 4px 10px rgba(32, 44, 42, 0.12));
}
.thumb-ph-title {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.3;
  max-width: 90%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.card-badges {
  position: absolute;
  left: 8px;
  top: 8px;
  display: flex;
  gap: 4px;
}
.badge {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 6px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}
.badge-new {
  background: var(--accent);
}
.badge-upd {
  background: #2f7a55;
}
.badge-official {
  background: #fff;
  color: #111;
}
.card-plat {
  position: absolute;
  right: 8px;
  top: 8px;
  display: flex;
  gap: 4px;
}
.card-plat .ic {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
}
.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.2s;
  box-shadow: 0 6px 20px rgba(32, 44, 42, 0.135);
}
.card-link:hover .card-play {
  opacity: 1;
  transform: scale(1);
}
.rank {
  position: absolute;
  left: 0;
  bottom: 0;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border-top-right-radius: 10px;
}
.rank-1 {
  background: linear-gradient(135deg, #ffe08a, #e2a21e);
  color: #3a2300;
}
.rank-2 {
  background: linear-gradient(135deg, #f1f4ff, #a9b2cf);
  color: #222;
}
.rank-3 {
  background: linear-gradient(135deg, #f6b98a, #b3683a);
  color: #2b1300;
}
.card-body {
  padding: 9px 2px 0;
}
.card-title {
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.card-catch {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--faint);
}
.card-genre {
  color: var(--muted);
}
.card-stat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.card-stat .ic {
  vertical-align: 0;
}
.card-star {
  color: var(--gold);
}
.card-owner {
  font-size: 12px;
  color: var(--faint);
  margin-top: 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 横スクロール棚 */
.shelf {
  position: relative;
}
.shelf-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}
@media (min-width: 1100px) {
  .shelf-track {
    grid-auto-columns: calc((100% - 64px) / 5);
  }
}
.shelf-track > .card {
  scroll-snap-align: start;
}
.shelf-btn {
  position: absolute;
  top: calc(50% - 40px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  box-shadow: var(--shadow);
}
.shelf-prev {
  left: -14px;
}
.shelf-next {
  right: -14px;
}
.shelf.at-start .shelf-prev,
.shelf.at-end .shelf-next {
  opacity: 0;
  pointer-events: none;
}
@media (hover: none) {
  .shelf-btn {
    display: none;
  }
}

/* ---------- タグ・チップ・ピル ---------- */
.tags {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 5px;
  background: #eaede4;
  color: var(--muted);
  font-size: 13px;
}
.tag:hover {
  background: #dfe3d8;
  color: var(--text);
  text-decoration: none;
}
.tag-n {
  color: var(--faint);
  font-size: 11px;
}
.tags-lg .tag {
  padding: 6px 14px;
  font-size: 14px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12.5px;
}
a.chip:hover {
  text-decoration: none;
  border-color: var(--line-2);
}
.chip-official {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}
.chip-flag {
  color: var(--red);
  border-color: rgba(178, 58, 58, 0.3);
}
.pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  vertical-align: 1px;
  margin-right: 4px;
}
.pill-gray {
  background: rgba(37, 43, 41, 0.085);
  color: var(--muted);
}
.pill-gold {
  background: var(--gold-soft);
  color: var(--gold);
}
.pill-green {
  background: rgba(63, 208, 143, 0.15);
  color: var(--green);
}
.pill-red {
  background: rgba(255, 99, 120, 0.15);
  color: var(--red);
}
.pill-blue {
  background: rgba(116, 169, 255, 0.15);
  color: var(--blue);
}

/* ---------- 一覧 ---------- */
.list-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}
.list-head .page-title {
  margin-bottom: 8px;
}
.filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin: 6px 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
  display: none;
}
.tab {
  flex: none;
  padding: 10px 14px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab:hover {
  color: var(--text);
  text-decoration: none;
}
.tab.is-active {
  color: var(--text);
  border-bottom-color: var(--accent-hi);
}
.tabs-sm .tab {
  padding: 6px 10px;
  font-size: 13px;
}
.active-filters {
  display: flex;
  gap: 6px;
  margin: -6px 0 16px;
}
.grid-ranked .card-title {
  font-size: 16px;
}
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 0;
}
.pager-n {
  color: var(--faint);
  font-size: 13px;
}
.empty {
  text-align: center;
  padding: 48px 16px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  color: var(--muted);
}
.empty-icon {
  font-size: 44px;
  margin-bottom: 4px;
}
.empty-title {
  font-weight: 800;
  color: var(--text);
  font-size: 17px;
  margin: 0 0 6px;
}
.empty-body p {
  margin: 6px 0;
}

/* ---------- フォーム ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field-label {
  font-weight: 700;
  font-size: 14px;
}
.req {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--red);
  margin-left: 8px;
  border: 1px solid rgba(255, 95, 114, 0.5);
  padding: 0 6px;
  border-radius: 6px;
  vertical-align: 1px;
}
.field-hint {
  margin: 0;
  color: var(--faint);
  font-size: 12.5px;
}
input:not([type='checkbox']):not([type='radio']):not([type='file']),
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 42px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-inline input:not([type='checkbox']):not([type='radio']):not([type='file']),
.form-inline select {
  width: auto;
  flex: 1;
  min-width: 140px;
}
.input-xs {
  width: 64px !important;
  min-width: 0 !important;
  flex: none !important;
  min-height: 30px !important;
  padding: 4px 8px !important;
}
.input-sm {
  min-width: 100px !important;
  min-height: 30px !important;
  padding: 4px 8px !important;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-hi);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.select select {
  min-width: 200px;
}
input[type='file'] {
  font: inherit;
  color: var(--muted);
  font-size: 13px;
}
input[type='file']::file-selector-button {
  font: inherit;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-3);
  border: 0;
  border-radius: 999px;
  padding: 7px 14px;
  margin-right: 10px;
  cursor: pointer;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}
.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.checks,
.radios {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.radios {
  flex-direction: column;
  gap: 8px;
}
.form-error {
  background: rgba(255, 99, 120, 0.12);
  border: 1px solid rgba(255, 99, 120, 0.45);
  color: var(--red);
  padding: 10px 14px;
  border-radius: 10px;
  margin: 0 0 14px;
}
.row-2,
.row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.input-prefix {
  display: flex;
  align-items: stretch;
}
.input-prefix span {
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: var(--faint);
  background: rgba(37, 43, 41, 0.034);
  border: 1px solid var(--line-2);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  font-family: var(--mono);
  font-size: 13px;
}
.input-prefix input {
  border-radius: 0 10px 10px 0 !important;
  font-family: var(--mono);
}
.radio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.radio-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(37, 43, 41, 0.017);
  cursor: pointer;
}
.radio-card:has(input:checked) {
  border-color: var(--accent-hi);
  background: var(--accent-soft);
}
.radio-card input {
  margin-top: 5px;
  accent-color: var(--accent);
}
.radio-card span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.radio-card small {
  color: var(--muted);
  line-height: 1.5;
}
.minmax {
  display: flex;
  align-items: center;
  gap: 6px;
}
.counter {
  text-align: right;
  font-size: 12px;
  color: var(--faint);
  margin-top: -2px;
}

/* ---------- パネル ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
}
.panel-title {
  font-size: 16px;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-title .ic {
  color: var(--accent-hi);
}
.panel-title .count {
  color: var(--faint);
  font-weight: 400;
  font-size: 14px;
}
.panel-danger {
  border-color: rgba(255, 99, 120, 0.3);
}
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
/* 運営ダッシュボードは8枚：広い画面では4枚×2段にそろえる */
@media (min-width: 760px) {
  .kpis-admin {
    grid-template-columns: repeat(4, 1fr);
  }
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  color: var(--text);
}
.kpi span {
  color: var(--muted);
  font-size: 12.5px;
}
.kpi strong {
  font-weight: 800;
  font-size: 28px;
  line-height: 1.3;
}
.kpi-link:hover {
  text-decoration: none;
  border-color: var(--accent-hi);
}

/* ---------- 表 ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 0 -4px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th {
  text-align: left;
  font-size: 12px;
  color: var(--faint);
  font-weight: 700;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.table .actions {
  white-space: nowrap;
  text-align: right;
}
.table .actions > * {
  display: inline-flex;
  margin-left: 4px;
}
.table-sm td {
  padding: 6px 8px;
  font-size: 13px;
}
.table-game {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  min-width: 200px;
}
.table-game .thumb,
.table-game > .thumb-ph {
  width: 72px;
  height: 40.5px;
  border-radius: 6px;
  flex: none;
}
.table-game .thumb-ph-title,
.mini .thumb-ph-title,
.queue-item .thumb-ph-title {
  display: none;
}
.table-game .thumb-ph-icon {
  font-size: 18px;
}

/* ---------- ゲームページ ---------- */
.crumbs {
  display: flex;
  gap: 8px;
  font-size: 13px;
  color: var(--faint);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.crumbs a {
  color: var(--muted);
}
.stage-wrap {
  margin-bottom: 26px;
}
.stage {
  position: relative;
  width: min(100%, calc((100svh - 190px) * var(--aw) / var(--ah)));
  min-width: min(100%, 320px);
  aspect-ratio: var(--aw) / var(--ah);
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: #05060f;
  box-shadow: 0 0 0 1px var(--line-2), 0 30px 80px rgba(32, 44, 42, 0.165);
}
.stage-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.stage-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage-bg {
  position: absolute;
  inset: -20px;
  background: var(--surface) center / cover no-repeat;
  filter: blur(14px) brightness(0.45) saturate(1.2);
}
.stage-center {
  position: relative;
  text-align: center;
  padding: 16px;
}
.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 34px 16px 28px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  text-decoration: none !important;
  background: var(--accent);
  box-shadow: 0 10px 30px rgba(32, 44, 42, 0.15);
  transition: transform 0.15s, background 0.15s;
}
.play-btn:hover {
  transform: scale(1.04);
  background: var(--accent-hi);
}
.stage-note {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  margin: 14px 0 0;
  text-shadow: 0 1px 6px rgba(32, 44, 42, 0.21);
}
.stage-close {
  display: none;
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: 10px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.stage.is-full,
.stage:fullscreen {
  position: fixed;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  aspect-ratio: auto;
  border-radius: 0;
  z-index: 1000;
  box-shadow: none;
}
.stage.is-full .stage-close,
.stage:fullscreen .stage-close {
  display: flex;
}
.stage-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  margin: 12px auto 0;
}
.stage-bar-l,
.stage-bar-r {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-like {
  background: rgba(255, 99, 120, 0.1);
  border-color: rgba(255, 99, 120, 0.35);
  color: var(--text);
}
.btn-like.is-on {
  background: var(--accent-soft);
  color: #fff;
  border-color: transparent;
}
.btn-like.pop {
  animation: pop 0.45s ease;
}
@keyframes pop {
  40% {
    transform: scale(1.18);
  }
}
.login-hint {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 0;
}
.game-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.game-head {
  margin-bottom: 18px;
}
.game-title {
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.3;
  margin: 0;
}
.game-catch {
  color: var(--muted);
  font-size: 16px;
  margin: 4px 0 0;
}
.game-by {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  flex-wrap: wrap;
}
.game-owner {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.game-owner span {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.game-owner small {
  color: var(--faint);
}
.game-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.game-stats div {
  display: flex;
  flex-direction: column;
}
.game-stats dt {
  font-size: 11.5px;
  color: var(--faint);
}
.game-stats dd {
  margin: 0;
  font-weight: 800;
  font-size: 17px;
}
.game-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.stars {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  letter-spacing: 1px;
  line-height: 1;
}
.stars-bg {
  color: rgba(37, 43, 41, 0.153);
}
.stars-fg {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--gold);
}
.stars-n {
  font-size: 15px;
  letter-spacing: 0;
}
.prose {
  line-height: 1.85;
  word-break: break-word;
}
.prose p {
  margin: 0 0 1em;
}
.prose h3 {
  font-size: 17px;
  margin: 1.4em 0 0.5em;
  padding-left: 10px;
  border-left: 3px solid var(--accent);
}
.prose h4 {
  font-size: 15px;
  margin: 1.2em 0 0.4em;
}
.prose ul,
.prose ol {
  padding-left: 1.4em;
  margin: 0 0 1em;
}
.prose blockquote {
  margin: 0 0 1em;
  padding: 8px 14px;
  border-left: 3px solid var(--line-2);
  color: var(--muted);
}
.controls {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(37, 43, 41, 0.025);
  border: 1px solid var(--line);
}
.controls h3 {
  font-size: 13px;
  color: var(--faint);
  margin: 0 0 2px;
}
.controls p {
  margin: 0;
}
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.shot img {
  border-radius: 10px;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
}
.shots-edit .shot {
  position: relative;
}
.shots-edit form {
  position: absolute;
  right: 6px;
  top: 6px;
}
.changelog {
  list-style: none;
  padding: 0;
  margin: 0;
}
.changelog li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.changelog li:last-child {
  border: 0;
}
.changelog-h {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.changelog time {
  color: var(--faint);
  font-size: 12px;
}
.changelog p {
  margin: 2px 0 0;
  white-space: pre-wrap;
}

/* ランキング */
.lb-name {
  font-weight: 800;
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--muted);
}
.lb-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 8px;
}
.lb-row:nth-child(odd) {
  background: rgba(37, 43, 41, 0.021);
}
.lb-row.is-me {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 93, 159, 0.45);
}
.lb-rank {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
  background: rgba(37, 43, 41, 0.051);
}
.lb-rank-1 {
  background: linear-gradient(135deg, #ffe08a, #e2a21e);
  color: #3a2300;
}
.lb-rank-2 {
  background: linear-gradient(135deg, #f1f4ff, #a9b2cf);
  color: #222;
}
.lb-rank-3 {
  background: linear-gradient(135deg, #f6b98a, #b3683a);
  color: #2b1300;
}
.lb-user {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
}
.lb-user span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.lb-score {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.lb-mine {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.lb-mine strong {
  color: var(--text);
}
.lb.flash-in {
  animation: flashin 0.9s ease;
}
@keyframes flashin {
  0% {
    background: rgba(255, 93, 159, 0.22);
  }
  100% {
    background: transparent;
  }
}
.seg {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: #ffffff;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow-x: auto;
}
.seg button {
  flex: 1;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.seg button.is-active {
  background: var(--surface-3);
  color: var(--text);
}
.panel-lb-mobile {
  display: none;
}

/* 感想 */
.review-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.star-input {
  border: 0;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}
.star-input legend {
  float: left;
  font-size: 13px;
  color: var(--muted);
  margin-right: 10px;
  padding: 0;
}
.star-input input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.star-input label {
  font-size: 28px;
  line-height: 1;
  color: rgba(37, 43, 41, 0.153);
  cursor: pointer;
  transition: color 0.1s, transform 0.1s;
}
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
  color: var(--gold);
}
.star-input input:focus-visible + label {
  outline: 2px solid var(--gold);
  border-radius: 4px;
}
.review-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.comments {
  list-style: none;
  padding: 0;
  margin: 0;
}
.comment {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.comment.is-author .comment-body {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 8px 12px;
}
.comment-body {
  flex: 1;
  min-width: 0;
}
.comment-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 13px;
}
.comment-head a {
  color: var(--text);
  font-weight: 700;
}
.comment-head time {
  color: var(--faint);
  font-size: 12px;
}
.comment-head .stars {
  font-size: 12px;
}
.comment-text {
  margin: 4px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.comment-tools {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

/* サイド */
.mini-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mini {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
}
.mini:hover {
  text-decoration: none;
}
.mini:hover strong {
  color: var(--blue);
}
.mini .thumb,
.mini > .thumb-ph {
  width: 112px;
  height: 63px;
  border-radius: 8px;
  flex: none;
}
.mini .thumb-ph-icon {
  font-size: 22px;
}
.mini span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.4;
}
.mini strong {
  font-size: 14px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.mini small {
  color: var(--faint);
}
.side-report {
  text-align: right;
  margin: 8px 0;
}

/* ---------- CTA ---------- */
.cta-band {
  margin: 56px 0;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.cta-in {
  padding: 34px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px 34px;
  align-items: center;
}
.cta-in h2 {
  font-weight: 800;
  font-size: 24px;
  margin: 4px 0 8px;
  line-height: 1.35;
}
.cta-in p {
  color: var(--muted);
  margin: 0;
}
.cta-kicker {
  color: var(--blue) !important;
  font-weight: 800;
  font-size: 13px;
}
.cta-feats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cta-feats li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.cta-feats .ic {
  color: var(--accent-hi);
  margin-top: 3px;
}
.cta-feats span {
  display: flex;
  flex-direction: column;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.cta-feats strong {
  color: var(--text);
  font-size: 14px;
}
.cta-in > .btn {
  justify-self: start;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.news-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.news-list time {
  color: var(--faint);
  font-size: 13px;
  flex: none;
  font-variant-numeric: tabular-nums;
}
.news-list form {
  margin-left: auto;
}

/* ---------- プロフィール ---------- */
.profile {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.profile-main {
  flex: 1;
  min-width: 0;
}
.profile h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.3;
}
.profile .muted {
  margin: 0;
}
.profile-bio {
  margin-top: 10px;
}
.profile-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}
.profile-stats {
  display: flex;
  gap: 24px;
  margin: 10px 0 0;
}
.profile-stats div {
  display: flex;
  flex-direction: column-reverse;
}
.profile-stats dt {
  font-size: 12px;
  color: var(--faint);
}
.profile-stats dd {
  margin: 0;
  font-weight: 800;
  font-size: 18px;
}
.profile-follow {
  flex: none;
}
.people {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 76px;
  color: var(--text);
  font-size: 12px;
  text-align: center;
}

/* ---------- マイページ・スタジオ ---------- */
.me-head,
.studio-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.me-head > div,
.studio-head > div:nth-child(2) {
  flex: 1;
  min-width: 200px;
}
.me-head .page-title,
.studio-head .page-title {
  margin: 0;
}
.studio-head > .thumb,
.studio-head > .thumb-ph {
  width: 120px;
  height: 67.5px;
  border-radius: 10px;
}
.studio-head .thumb-ph-title {
  display: none;
}
.studio-head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.studio-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.checklist li {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 5px 0;
  color: var(--red);
}
.checklist li a {
  color: var(--text);
}
.checklist li.is-ok {
  color: var(--green);
}
.checklist li.is-ok a {
  color: var(--muted);
}
.links {
  padding-left: 1.2em;
  margin: 0;
}
.steps {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  gap: 8px;
  counter-reset: s;
}
.steps li {
  flex: 1;
  counter-increment: s;
  font-size: 13px;
  color: var(--faint);
  border-top: 3px solid var(--surface-3);
  padding-top: 6px;
}
.steps li::before {
  content: counter(s) '. ';
}
.steps li.is-active {
  color: var(--text);
  border-color: var(--accent);
  font-weight: 800;
}
.uploader .drop {
  border: 2px dashed var(--line-2);
  border-radius: 16px;
  padding: 30px 18px;
  text-align: center;
  color: var(--muted);
  transition: all 0.15s;
  background: #ffffff;
}
.uploader .drop.is-over {
  border-color: var(--accent-hi);
  background: var(--accent-soft);
  color: var(--text);
}
.uploader .drop .ic {
  color: var(--accent-hi);
}
.drop p {
  margin: 6px 0;
}
.drop-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}
.up-review {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.up-review [data-summary] {
  font-weight: 800;
  margin: 0;
}
.up-actions {
  display: flex;
  gap: 8px;
}
.up-progress .bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(37, 43, 41, 0.068);
  overflow: hidden;
}
.up-progress .bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.3s;
}
.up-progress.is-error .bar span {
  background: var(--red);
}
.tips {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
}
.tips summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
}
.tips ul {
  padding-left: 1.3em;
}
.versions {
  list-style: none;
  padding: 0;
  margin: 0;
}
.version {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 8px;
}
.version.is-live {
  border-color: rgba(63, 208, 143, 0.4);
  background: rgba(63, 208, 143, 0.05);
}
.version-main p {
  margin: 2px 0 0;
}
.version-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.thumb-edit {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}
.thumb-preview {
  width: 280px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line-2);
}
.board-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
}
.board-item summary {
  cursor: pointer;
}
.board-item[open] summary {
  margin-bottom: 12px;
}
.board-danger {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.code {
  background: var(--night);
  color: #eef2ec;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}
.code code {
  background: none;
  padding: 0;
  white-space: pre;
}
.notes {
  list-style: none;
  padding: 0;
  margin: 0 0 6px;
}
.notes li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.notes li > a,
.notes li > span {
  flex: 1;
  color: var(--text);
}
.notes li time {
  color: var(--faint);
  font-size: 12px;
  white-space: nowrap;
}
.notes li.is-unread > a,
.notes li.is-unread > span {
  font-weight: 800;
}
.notes li.is-unread::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  align-self: center;
}
.notes-lg li .ic {
  color: var(--accent-hi);
  align-self: center;
}
.avatar-edit {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* グラフ */
.chart {
  position: relative;
  margin: 0;
}
.chart svg {
  width: 100%;
  height: 220px;
  display: block;
  overflow: visible;
}
.chart-grid {
  stroke: rgba(37, 43, 41, 0.06);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.chart-base {
  stroke: rgba(37, 43, 41, 0.2);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.chart-axis {
  fill: var(--faint);
  font-size: 11px;
}
.chart-label {
  fill: var(--text);
  font-size: 11px;
  font-weight: 700;
}
.chart-bar {
  fill: var(--accent);
}
.chart-hit {
  fill: transparent;
}
.chart-bar-g.is-hover .chart-bar {
  fill: var(--accent-hi);
}
.chart-bar-g.is-hover .chart-hit {
  fill: rgba(37, 43, 41, 0.034);
}
.chart-tip {
  position: absolute;
  pointer-events: none;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  white-space: nowrap;
}

/* 審査キュー */
.queue {
  list-style: none;
  padding: 0;
  margin: 0;
}
.queue-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.queue-item > .thumb,
.queue-item > .thumb-ph {
  width: 200px;
  height: 112.5px;
  border-radius: 10px;
  flex: none;
}
.queue-main {
  flex: 1;
  min-width: 0;
}
.queue-main h3 {
  margin: 0;
  font-size: 17px;
}
.queue-main p {
  margin: 4px 0;
}
.queue-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 10px;
}

/* ---------- ドキュメント ---------- */
.doc {
  max-width: 780px;
  margin: 0 auto;
}
.doc h1 {
  font-size: 30px;
  line-height: 1.35;
  margin: 0 0 10px;
}
.doc h2 {
  font-size: 20px;
  margin: 36px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.doc h3 {
  font-size: 16px;
  margin: 22px 0 8px;
}
.doc .lead {
  font-size: 17px;
  color: var(--muted);
}
.doc ul,
.doc ol {
  padding-left: 1.4em;
}
.doc li {
  margin: 4px 0;
}
.doc-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 20px;
}
.doc-toc a {
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.flow {
  list-style: none;
  padding: 0 !important;
  counter-reset: f;
  display: grid;
  gap: 10px;
}
.flow li {
  counter-increment: f;
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.flow li::before {
  content: counter(f);
  grid-row: span 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: var(--accent);
  color: #fff;
}
.flow span {
  color: var(--muted);
  font-size: 14px;
}
.engines dt {
  font-weight: 800;
  margin-top: 14px;
}
.engines dd {
  margin: 4px 0 0;
  color: var(--muted);
}
.faq {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: var(--surface);
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
}
.faq p {
  margin: 8px 0 2px;
  color: var(--muted);
}
/* お問い合わせフォーム：ボット対策の見えない欄 */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* 応援リンク：バナー */
.banners {
  display: grid;
  gap: 14px;
}
.banner-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}
.banner-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.banner-text {
  color: var(--link);
  text-decoration: underline;
  font-weight: 700;
}
.banner-item .key-box code {
  font-size: 12px;
}
@media (max-width: 640px) {
  .banner-item {
    grid-template-columns: minmax(0, 1fr);
  }
}
.card-in {
  color: var(--accent);
}
.same-url {
  margin: 6px 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid #c2410c;
  border-radius: 8px;
  background: var(--surface);
}
.same-url p {
  margin: 0 0 4px;
}
.same-url ul {
  margin: 0;
  padding-left: 18px;
}
.contact-note {
  margin: 0;
}
.contact-done p {
  margin: 0 0 10px;
}
.contact-done p:last-child {
  margin-bottom: 0;
}
.contact-body {
  margin: 6px 0;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- 認証 ---------- */
.auth {
  max-width: 440px;
  margin: 20px auto;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.auth-title {
  font-weight: 800;
  font-size: 24px;
  margin: 0 0 8px;
  text-align: center;
}
.auth-lead {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  margin: 0 0 18px;
}
.auth-sub {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- フッター ---------- */
.ftr {
  border-top: 1px solid var(--line);
  background: transparent;
  margin-top: 40px;
}
.ftr-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px 16px 20px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}
.ftr-brand p {
  color: var(--faint);
  font-size: 13px;
}
.ftr-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ftr-links div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ftr-links h3 {
  font-size: 12px;
  color: var(--faint);
  margin: 0 0 4px;
  letter-spacing: 0.08em;
}
.ftr-links a {
  color: var(--muted);
  font-size: 14px;
}
.ftr-copy {
  text-align: center;
  color: var(--faint);
  font-size: 12px;
  padding: 0 16px 24px;
  margin: 0;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1000px) {
  .hdr-nav {
    display: none;
  }
  .menu-mobile {
    display: block;
  }
  .game-cols {
    grid-template-columns: 1fr;
  }
  .panel-lb-mobile {
    display: block;
  }
  .panel-lb-desktop {
    display: none;
  }
  .studio-cols {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 12px;
  }
  .spot {
    order: -1;
  }
  .cta-in {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .cols-2,
  .cols-2-wide {
    grid-template-columns: 1fr;
  }
  .ftr-in {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 14.5px;
  }
  .hdr-in {
    gap: 10px;
    padding: 6px 12px 8px;
  }
  .logo-text {
    font-size: 17px;
  }
  .logo-mark {
    width: 24px;
    height: 29px;
  }
  .hdr-search {
    display: none;
  }
  .hdr-search-btn {
    display: inline-flex;
  }
  .hdr-post span {
    display: none;
  }
  .hdr-post {
    padding: 0 10px;
  }
  .main {
    padding: 16px 12px 48px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
  }
  .shelf-track {
    grid-auto-columns: 62%;
    gap: 10px;
  }
  .card-catch {
    display: none;
  }
  .card-title {
    font-size: 14px;
  }
  .row-2,
  .row-3,
  .radio-cards {
    grid-template-columns: 1fr;
  }
  .page-title {
    font-size: 22px;
  }
  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px;
  }
  .profile-links,
  .profile-stats {
    justify-content: center;
  }
  .ftr-links {
    grid-template-columns: 1fr 1fr;
  }
  .queue-item {
    flex-direction: column;
  }
  .queue-item > .thumb,
  .queue-item > .thumb-ph {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .stage {
    border-radius: 12px;
  }
  .play-btn {
    font-size: 20px;
    padding: 14px 28px 14px 24px;
  }
  .cta-feats {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 18px;
  }
  .spot-cap strong {
    font-size: 18px;
  }
  .kpi strong {
    font-size: 22px;
  }
  .table {
    font-size: 13px;
  }
}
@media (max-width: 420px) {
  .hdr-search {
    max-width: none;
  }
  .hdr-actions .btn-ghost.btn-sm {
    padding: 0 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- 追加 ---------- */
.hero-sub {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--faint);
}
.ad {
  margin: 28px 0;
  padding: 10px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  min-height: 100px;
  position: relative;
}
.ad-label {
  position: absolute;
  top: -9px;
  left: 12px;
  font-size: 10.5px;
  color: var(--faint);
  background: var(--bg);
  padding: 0 6px;
}
.random-note {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(255, 93, 159, 0.35);
}
.random-note > span {
  flex: 1;
}
.danger-zone summary {
  cursor: pointer;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}
.danger-zone[open] summary {
  margin-bottom: 10px;
}

/* =====================================================================
   v4：明るい「ゲーム雑誌」（Codex 案 REPORT-03 ＋ 手触りを少し）
   方針：紙色の背景・濃い文字・主操作は深いオレンジ1色。作品画像が主役で、
   サイト側の飾り（発光・グラデーション・常時アニメーション）は使わない。
   ===================================================================== */
body {
  background: var(--bg);
  font-size: 15px;
  font-synthesis: none;
}
a {
  color: var(--link);
}
::selection {
  background: #f3d3c4;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
h1,
h2,
h3 {
  letter-spacing: -0.02em;
}
.num {
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
}
.kicker {
  margin: 0;
  font-family: var(--num);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none !important;
}
.text-link:hover {
  color: var(--accent);
}
.text-accent {
  color: var(--accent);
}
.genre {
  color: var(--gc, var(--muted));
  font-weight: 700;
  white-space: nowrap;
}
.genre::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 6px;
  vertical-align: 2px;
}

/* ボタン：押すと 1px 沈む。色は濃くするだけ */
.btn {
  border-radius: 7px;
  font-weight: 700;
  gap: 7px;
  transition: background-color 0.16s, color 0.16s, border-color 0.16s, transform 0.18s;
  background: #fff;
  border-color: var(--line-2);
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
}
.btn-dark {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}
.btn-dark:hover {
  background: #444d47;
}
.btn-light,
.btn-ghost {
  background: #fff;
  border-color: var(--line-2);
  color: var(--text);
}
.btn-light:hover,
.btn-ghost:hover {
  background: #eaece4;
}
.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent-soft);
}
.btn-lg {
  min-height: 50px;
  font-size: 15px;
}
.linkish {
  color: var(--muted);
}

/* ---------- ヘッダー ---------- */
.hdr {
  position: sticky;
  background: rgba(247, 246, 242, 0.95);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--line-2);
}
.hdr-in {
  max-width: var(--maxw);
  min-height: 72px;
  padding: 0 20px;
  gap: 26px;
}
.logo {
  gap: 10px;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  transform: rotate(-8deg);
}
.logo-mark svg {
  transform: rotate(8deg);
}
.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}
.hdr-nav {
  gap: 22px;
  align-self: stretch;
}
.hdr-nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.hdr-nav a:hover {
  background: none;
  color: var(--accent);
}
.hdr-nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--accent);
}
.hdr-search {
  flex: 0 1 260px;
  margin-left: auto;
  background: #eceee7;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 12px;
}
.hdr-search:focus-within {
  background: #fff;
  border-color: var(--line-2);
}
.hdr-search input,
.list-search input {
  height: 42px;
  min-height: 0 !important;
  padding: 0 !important;
  font-size: 13px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0;
}
.hdr-search input::placeholder {
  color: var(--muted);
}
.hdr-actions {
  margin-left: 0;
  gap: 8px;
}
.hdr-icon {
  color: var(--text);
  padding: 9px;
}
.hdr-icon:hover {
  background: #eaece4;
  color: var(--text);
}
.hdr-post {
  padding: 0 15px;
}
.menu-pop {
  background: #fff;
  border-color: var(--line-2);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.menu-pop a:hover,
.menu-pop button:hover {
  background: #f1f1ea;
}

/* ---------- レイアウト ---------- */
.main {
  padding: 28px 20px 72px;
}
.main-wide {
  max-width: var(--maxw);
}
.page-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.sec {
  margin: 56px 0;
}
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 18px;
}
.sec-title-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}
.sec-title {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.4;
}
.sec-count {
  font-size: 12px;
  color: var(--muted);
}
.sec-sub {
  order: 3;
  flex-basis: 100%;
  margin-top: -4px;
}
.sec-more {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none !important;
}
.sec-more:hover {
  color: var(--accent);
}
.more-row {
  text-align: center;
  margin: 30px 0 0;
}

/* ---------- イントロ ---------- */
.intro {
  padding: 10px 0 26px;
}
.intro-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.tiny-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 9px;
  vertical-align: 1px;
}
.intro-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.intro-title {
  margin: 0;
  font-size: 42px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.045em;
}
.intro-title .hl {
  position: relative;
  white-space: nowrap;
}
.intro-title .hl::after {
  content: '';
  position: absolute;
  left: 0.4em;
  right: 0.4em;
  bottom: 0.02em;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-2);
}
.nobr {
  display: inline-block;
}

/* ---------- 今日の一作 ＋ いま人気の3本 ---------- */
.today {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(270px, 1fr);
  gap: 36px;
}
.feature {
  min-width: 0;
}
.feature-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  background: var(--mint);
  aspect-ratio: 16 / 9;
}
.feature-media .thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.feature-stamp {
  position: absolute;
  left: 18px;
  top: 16px;
  padding: 7px 11px;
  border-radius: 4px;
  background: #fffdf1;
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 1px 0 rgba(32, 44, 42, 0.12);
}
.feature-play {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 3px 0 #803821;
  transition: transform 0.18s ease;
}
.feature-play .ic {
  margin-left: 3px;
}
.feature-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 1px 0;
}
.feature-caption h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}
.feature-caption h2 a {
  color: var(--text);
}
.feature-caption p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.feature-caption .text-link {
  flex: none;
}
.quick {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--text);
  padding-top: 14px;
  min-width: 0;
}
.quick h2 {
  margin: 4px 0 8px;
  font-size: 22px;
  font-weight: 800;
}
.quick-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.quick-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
  color: var(--text);
  text-decoration: none !important;
}
.quick-art {
  flex: none;
  width: 112px;
  aspect-ratio: 16 / 9;
  border-radius: 7px;
  overflow: hidden;
  background: var(--surface-3);
}
.quick-art .thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.quick-art .thumb-ph-icon {
  font-size: 20px;
}
.quick-art .thumb-ph-title {
  display: none;
}
.quick-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.quick-text strong {
  font-size: 15px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.quick-text small {
  display: flex;
  gap: 10px;
  font-size: 11.5px;
  color: var(--muted);
}
.quick-item > .ic {
  flex: none;
  color: var(--muted);
}
.shuffle-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding: 16px 0 4px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none !important;
}
.shuffle-link > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ---------- ジャンルの絞り込み ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}
.filter {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none !important;
}
.filter:hover {
  background: #eaece4;
}
.filter.is-active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}
.fdot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gc, var(--muted));
  margin-right: 8px;
}

/* ---------- ゲームカード ---------- */
.grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 32px 22px;
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card-link {
  color: var(--text);
  border-radius: 0;
}
.card-media {
  border-radius: 11px;
  background: var(--surface-3);
  box-shadow: none;
  transition: transform 0.18s ease;
}
.card-link:hover .card-media,
.card-link:focus-visible .card-media {
  box-shadow: none;
  transform: translateY(-3px);
}
.card-link:hover .thumb {
  transform: none;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 13px 0 4px;
}
.card-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.45;
}
.card-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--text);
  transition: background-color 0.16s, color 0.16s;
}
.card-link:hover .card-arrow {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}
.card-catch {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}
.card-meta {
  margin: 10px 0 0;
  gap: 4px 13px;
  font-size: 11.5px;
  color: var(--muted);
}
.card-stat {
  color: var(--muted);
}
.card-owner {
  margin: 5px 0 0;
  font-size: 11.5px;
  color: var(--muted);
}
/* 文字入りのサムネイルを隠さないよう、印は下の角に置く */
.card-media .badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
}
.badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
  background: #fffdf1;
  color: var(--text);
  backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(32, 44, 42, 0.12);
}
.badge-new {
  background: var(--accent);
  color: #fff;
}
.badge-official {
  background: var(--text);
  color: #fff;
}
.badge-upd {
  background: #2f7a55;
  color: #fff;
}
.rank {
  left: 10px;
  bottom: 10px;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 7px;
  font-family: var(--num);
  font-size: 17px;
  font-weight: 800;
  background: var(--text);
  color: #fff;
}
.rank-1,
.rank-2,
.rank-3 {
  background: var(--accent);
  color: #fff;
}
.avatar-txt {
  background: hsl(var(--h) 34% 86%);
  color: hsl(var(--h) 34% 28%);
}
.mini small .genre {
  display: inline;
}
.thumb-ph {
  background: hsl(var(--h) 36% 86%);
  color: hsl(var(--h) 32% 26%);
}
.thumb-ph-icon {
  filter: none;
}
.thumb-ph-title {
  color: hsl(var(--h) 32% 26%);
}

/* ---------- 投稿者への案内 ---------- */
.creator-banner {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 64px 0;
  padding: 32px 0;
  border-top: 1px solid var(--text);
  border-bottom: 1px solid var(--line-2);
}
.creator-art {
  flex: none;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--mint);
  color: #42725b;
  transform: rotate(-12deg);
}
.creator-copy h2 {
  margin: 0 0 8px;
  font-size: 23px;
  font-weight: 800;
}
.creator-copy p {
  margin: 0;
  max-width: 44em;
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
}
.creator-banner > .btn {
  margin-left: auto;
  flex: none;
}

/* ---------- タグ・チップ ---------- */
.chip {
  background: #fff;
  border-color: var(--line-2);
  border-radius: 5px;
}
.tags-lg .tag {
  font-size: 13px;
  padding: 6px 12px;
}
.news-list li {
  border-bottom-color: var(--line-2);
}
.news-list a {
  color: var(--text);
}
.news-list a:hover {
  color: var(--accent);
}

/* ---------- 一覧・ランキング ---------- */
.list-search {
  background: #eceee7;
  border-color: transparent;
}
.list-search:focus-within {
  background: #fff;
  border-color: var(--line-2);
}
.tabs {
  border-bottom-color: var(--line-2);
}
.tab {
  color: var(--muted);
}
.tab.is-active {
  color: var(--text);
  border-bottom: 3px solid var(--accent);
}
.empty {
  border-color: var(--line-2);
  border-radius: 10px;
  background: transparent;
}
.random-note {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 10px;
}
.random-note > .ic {
  color: var(--accent);
}
.notice {
  background: #fbf3df;
  border-color: #ead7a6;
}

/* ---------- ゲームページ ---------- */
.crumbs {
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 16px;
}
.crumbs a {
  color: var(--muted);
}
.game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.game-top-main {
  min-width: 0;
}
.game-title-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.game-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.3;
}
.game-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gc, var(--muted));
  background: color-mix(in srgb, var(--gc, #646b65) 12%, #fff);
  text-decoration: none !important;
}
.game-badge-official {
  color: #fff;
  background: var(--text);
}
.game-tagline {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.author-chip {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-link {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none !important;
}
.author-link span {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.author-link small {
  font-family: var(--num);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.author-link strong {
  font-size: 13px;
}
.author-link:hover strong {
  color: var(--accent);
}
.play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 26px;
  align-items: start;
}
.stage-wrap {
  margin: 0;
  min-width: 0;
}
.stage {
  background: var(--night);
  border-radius: 13px;
  box-shadow: none;
}
.stage-cover {
  background: rgba(23, 39, 37, 0.45);
}
.stage-bg {
  inset: 0;
  filter: saturate(0.75);
  opacity: 0.36;
}
.play-btn {
  gap: 10px;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 800;
  background: var(--accent);
  box-shadow: 0 3px 0 #803821;
  transition: background-color 0.16s, transform 0.18s;
}
.play-btn:hover {
  background: var(--accent-hi);
  transform: translateY(-1px);
}
.play-btn:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #803821;
}
.stage-note {
  color: #ebeee5;
  font-size: 12px;
  margin-top: 16px;
  text-shadow: none;
}
.stage-close {
  background: #fff;
  color: var(--text);
}
.stage-bar {
  margin: 12px 0 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-2);
}
.btn-like {
  position: relative;
  overflow: visible;
  background: #fff;
  border-color: var(--line-2);
  color: var(--text);
}
.btn-like.is-on {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: #dfb3a1;
}
.btn-like.pop .ic {
  animation: heartpop 0.32s ease;
}
@keyframes heartpop {
  45% {
    transform: scale(1.3);
  }
}
.btn.is-done {
  color: #2f7a55;
}
.burst {
  position: absolute;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 50%;
  pointer-events: none;
  animation: burst 0.44s ease-out forwards;
}
@keyframes burst {
  to {
    transform: translate(var(--dx), var(--dy)) scale(0.4);
    opacity: 0;
  }
}
.login-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0;
}
.play-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.howto {
  padding: 22px 20px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: #f1f1ea;
}
.howto h2 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 800;
}
.howto-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: #3f4743;
  white-space: pre-line;
}
.spec-list {
  margin: 16px 0 0;
  padding-top: 4px;
  border-top: 1px solid var(--line-2);
  font-size: 12px;
}
.spec-list div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}
.spec-list dt {
  color: var(--muted);
}
.spec-list dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}
.howto-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
}
.howto-note {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
.panel {
  background: #fff;
  border-color: var(--line-2);
  border-radius: 11px;
}
.panel-title {
  font-size: 15px;
  font-weight: 800;
}
.panel-title .ic {
  color: var(--accent);
}
.panel-lb {
  margin: 0;
}
.lb-rank-1,
.lb-rank-2,
.lb-rank-3 {
  background: var(--accent) !important;
  color: #fff !important;
}
.lb-row.is-me {
  background: var(--accent-soft) !important;
}
.game-cols {
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  gap: 56px;
  margin: 42px 0 0;
}
.about {
  margin: 0 0 44px;
}
.about-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 800;
}
.about-title .count {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
}
.prose {
  font-size: 14px;
  line-height: 2;
  color: #3f4743;
}
.side-block {
  margin: 0 0 30px;
  padding-left: 18px;
  border-left: 3px solid #a3bba9;
}
.side-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
}
.mini:hover strong {
  color: var(--accent);
}
.mini small {
  font-size: 11.5px;
}
.related {
  margin-top: 16px;
  padding-top: 30px;
  border-top: 1px solid var(--line-2);
}
.comment.is-author {
  background: #fbf3df;
}

/* ---------- おまかせ（ダイアログ） ---------- */
dialog.pick {
  width: calc(100% - 32px);
  max-width: 460px;
  padding: 18px 22px 22px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 20px 80px rgba(32, 44, 42, 0.25);
}
dialog.pick::backdrop {
  background: rgba(32, 44, 42, 0.55);
}
.pick-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pick-head .kicker {
  color: var(--accent);
  letter-spacing: 0.1em;
  font-family: var(--font);
  font-size: 12px;
}
.pick-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
  border-radius: 8px;
}
.pick-close:hover {
  background: #eaece4;
}
.pick-art {
  aspect-ratio: 16 / 9;
  margin: 6px 0 16px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--mint);
}
.pick-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pick-art > * {
  animation: pickin 0.14s ease-out;
}
@keyframes pickin {
  from {
    opacity: 0.35;
    transform: translateY(5px);
  }
}
.pick-ph {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 16px;
  background: color-mix(in srgb, var(--gc) 16%, #fff);
  color: var(--gc);
  font-weight: 800;
  font-size: 22px;
  text-align: center;
}
.pick-body {
  transition: opacity 0.12s;
}
dialog.pick.is-rolling .pick-body {
  opacity: 0.25;
}
.pick-meta {
  display: flex;
  gap: 12px;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
#pick-title {
  margin: 6px 0 4px;
  font-size: 22px;
  font-weight: 800;
}
.pick-catch {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.pick-by {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.pick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.pick-actions .btn {
  min-height: 46px;
  padding: 0 20px;
}
.pick-actions [aria-disabled='true'] {
  pointer-events: none;
  opacity: 0.6;
}

/* トースト・紙吹雪 */
.toast {
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  background: var(--text);
  color: #fff;
}
.toast-soft {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line-2);
}
.confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3000;
}

/* ---------- フッター ---------- */
.ftr {
  margin-top: 40px;
  border-top: 1px solid var(--line-2);
}
.ftr-in {
  padding: 40px 20px 26px;
}
.ftr-brand p {
  color: var(--muted);
  max-width: 22em;
}
.ftr-links a {
  color: var(--text);
}
.ftr-links a:hover {
  color: var(--accent);
}
.ftr-links h3 {
  font-family: var(--num);
  color: var(--muted);
  letter-spacing: 0.12em;
}
.ftr-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 20px 30px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
}
.ftr-word {
  font-family: var(--num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
}
.ftr-copy {
  padding: 0;
  font-size: 12px;
  text-align: right;
}

/* ---------- ホバー（マウスがある端末だけ） ---------- */
@media (hover: hover) {
  .feature-media:hover .feature-play {
    transform: scale(1.06);
  }
  .quick-item:hover strong {
    color: var(--accent);
  }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1100px) {
  .hdr-in {
    gap: 18px;
  }
  .hdr-nav {
    gap: 18px;
  }
  .hdr-search {
    flex-basis: 200px;
  }
  .today {
    gap: 26px;
    grid-template-columns: minmax(0, 1.8fr) minmax(250px, 1fr);
  }
  .quick-art {
    width: 92px;
  }
  .play-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 20px;
  }
}
@media (max-width: 1000px) {
  .play-layout {
    grid-template-columns: 1fr;
  }
  .play-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .game-cols {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
@media (max-width: 800px) {
  .hdr-in {
    flex-wrap: wrap;
    min-height: 0;
    padding: 12px 18px;
    gap: 10px 12px;
  }
  .hdr-actions {
    margin-left: auto;
  }
  .hdr-search {
    display: flex !important;
    order: 5;
    flex: 1 0 100%;
    max-width: none;
  }
  .hdr-search input {
    height: 40px;
  }
  .hdr-post {
    display: none !important;
  }
  .main {
    padding: 20px 18px 56px;
  }
  .intro {
    padding: 4px 0 22px;
  }
  .intro-note {
    display: none;
  }
  .intro-title {
    font-size: 32px;
  }
  .today {
    display: block;
  }
  .quick {
    display: none;
  }
  .feature-caption h2 {
    font-size: 21px;
  }
  .grid,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 14px;
  }
  .card-catch {
    display: block;
  }
  .creator-banner {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px 18px;
    align-items: start;
  }
  .creator-art {
    width: 56px;
    height: 56px;
  }
  .creator-banner > .btn {
    grid-column: 2;
    justify-self: start;
    margin-left: 0;
  }
  .creator-copy h2 {
    font-size: 19px;
  }
  .game-top {
    display: block;
  }
  .author-chip {
    margin-top: 14px;
  }
  .play-side {
    grid-template-columns: 1fr;
  }
  .ftr-bottom {
    flex-direction: column;
    gap: 6px;
  }
  .ftr-copy {
    text-align: left;
  }
}
@media (max-width: 480px) {
  body {
    font-size: 14.5px;
  }
  .logo-text {
    font-size: 18px;
  }
  .logo-mark {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }
  .hdr-login {
    padding: 0 10px;
  }
  .intro-title {
    font-size: 28px;
    line-height: 1.5;
  }
  .eyebrow {
    font-size: 11px;
  }
  .feature-media {
    border-radius: 10px;
  }
  .feature-stamp {
    left: 10px;
    top: 10px;
    padding: 5px 8px;
    font-size: 9px;
  }
  .feature-play {
    width: 44px;
    height: 44px;
    right: 12px;
    bottom: 12px;
  }
  .feature-caption {
    padding-top: 12px;
    gap: 8px;
  }
  .feature-caption h2 {
    font-size: 19px;
  }
  .feature-caption p {
    font-size: 12px;
  }
  .feature-caption .text-link {
    font-size: 12px;
    gap: 4px;
  }
  .sec {
    margin: 44px 0;
  }
  .sec-title {
    font-size: 21px;
  }
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -18px 18px;
    padding: 0 18px 6px;
    scrollbar-width: thin;
  }
  .filter {
    min-height: 44px;
    padding: 0 13px;
    font-size: 12px;
  }
  .card-media {
    border-radius: 8px;
  }
  .card-head {
    margin-top: 10px;
  }
  .card-title {
    font-size: 14.5px;
  }
  .card-arrow {
    width: 24px;
    height: 24px;
  }
  .card-catch {
    display: block;
    font-size: 11.5px;
    line-height: 1.6;
  }
  .card-meta {
    gap: 3px 8px;
    font-size: 11px;
  }
  .card-stat {
    display: none;
  }
  .card-owner {
    font-size: 11px;
  }
  .creator-banner {
    grid-template-columns: 46px minmax(0, 1fr);
    margin: 44px 0;
    padding: 24px 0;
  }
  .creator-art {
    width: 46px;
    height: 46px;
  }
  .creator-art .ic {
    width: 26px;
    height: 26px;
  }
  .creator-copy h2 {
    font-size: 17px;
    line-height: 1.6;
  }
  .creator-copy p {
    font-size: 12px;
  }
  .game-title {
    font-size: 27px;
  }
  .game-tagline {
    font-size: 13px;
  }
  .stage {
    border-radius: 9px;
  }
  .stage-bg {
    opacity: 0.26;
  }
  .play-btn {
    font-size: 15px;
    padding: 12px 22px;
  }
  .stage-note {
    font-size: 11px;
    margin-top: 12px;
  }
  .stage-bar .opt {
    display: none;
  }
  .btn-like .opt {
    display: none;
  }
  .related .grid-3 > .card:nth-child(3) {
    display: none;
  }
}

/* ---------- v4 の仕上げ：作品名・作者と、狭い画面の読みやすさ ---------- */
.main > .sec:last-child,
.main > .creator-banner:last-child {
  margin-bottom: 0;
}
.discover {
  margin-top: 40px;
}
.list-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  max-width: 100%;
}
.list-filters .select {
  flex: 1 1 170px;
  min-width: 0;
}
.list-filters .check {
  flex: none;
  min-height: 44px;
  white-space: nowrap;
}
.today-solo {
  display: block;
  max-width: 800px;
}
.feature-caption {
  align-items: flex-start;
}
.feature-caption > div {
  min-width: 0;
}
.feature-caption h2,
.game-title,
.game-tagline,
.author-link strong,
.howto-text,
.pick h2 {
  overflow-wrap: anywhere;
}
.feature-caption .text-link {
  margin-top: 2px;
}
.feature-caption .feature-by {
  margin-top: 7px;
  font-size: 12px;
}
.feature-by a,
.card-owner a {
  color: var(--muted);
  text-underline-offset: 3px;
}
.feature-by a:hover,
.card-owner a:hover {
  color: var(--accent);
}
.quick-text small {
  flex-wrap: wrap;
  gap: 3px 9px;
}
.card {
  display: flex;
  flex-direction: column;
}
.card-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card-media {
  flex: none;
  width: 100%;
  /* 白い作品画像でも輪郭がなくならないよう、内側にだけ細い線を置く。 */
  outline: 1px solid rgba(37, 43, 41, 0.08);
  outline-offset: -1px;
}
.card-head {
  align-items: flex-start;
}
.card-title,
.card-catch {
  white-space: normal;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.card-title {
  min-width: 0;
}
.card-arrow {
  margin-top: 1px;
}
.card-catch {
  padding-top: 1px;
}
.card-owner {
  overflow-wrap: anywhere;
}

/* 未登録画像は共通の図案。実際のゲーム内容を示す画像とは区別する。 */
.thumb-ph {
  position: relative;
  container-type: inline-size;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 6px;
  padding: 5%;
  text-align: left;
  background: hsl(var(--h) 26% 86%) url('/_s/img/game-cover.svg') center / cover no-repeat;
}
.thumb-ph-label {
  position: absolute;
  top: 9%;
  left: 5%;
  font-size: clamp(9px, 2.5cqi, 14px);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.thumb-ph-title {
  max-width: 58%;
  font-size: clamp(13px, 5cqi, 34px);
  line-height: 1.4;
  overflow-wrap: anywhere;
  color: hsl(var(--h) 25% 23%);
}
.quick-art .thumb-ph,
.mini .thumb-ph,
.table-game .thumb-ph,
.queue-item .thumb-ph {
  background-size: 170% auto;
  background-position: right center;
}
.quick-art .thumb-ph-label,
.mini .thumb-ph-label,
.table-game .thumb-ph-label,
.queue-item .thumb-ph-label {
  display: none;
}
.pick-ph {
  display: flex;
  padding: 7%;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
  background: color-mix(in srgb, var(--gc, #646b65) 18%, var(--bg)) url('/_s/img/game-cover.svg') center / cover no-repeat;
  color: var(--text);
}
.pick-ph > span {
  max-width: 58%;
  overflow-wrap: anywhere;
  font-size: clamp(16px, 5vw, 27px);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.author-chip {
  min-width: 0;
}
.author-link {
  min-width: 0;
}
.author-chip > form,
.author-chip > .btn {
  flex: none;
}
.stage-bar .btn,
.stage-close {
  min-height: 44px;
}
.stage-bar-r .btn {
  min-width: 44px;
}
.howto-intro {
  min-width: 0;
}
.stage-center {
  /* 文字入りの作品画像でも、開始ボタンの文字と重ならない暗い面。 */
  max-width: calc(100% - 28px);
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: var(--night);
}
.stage-center .stage-note {
  margin-top: 13px;
  line-height: 1.7;
}
.comment.is-author {
  background: transparent;
}
.comment.is-author .comment-body {
  border-radius: 0;
  border-left: 2px solid #A3BBA9;
  background: transparent;
  padding: 2px 0 2px 14px;
}

@media (max-width: 800px) {
  /* 検索の2段ヘッダーは本文と一緒に流し、遊ぶ画面を広く使う。 */
  .hdr {
    position: static;
  }
  .hdr-actions > .hdr-icon,
  .hdr-actions .menu > summary,
  .hdr-login {
    min-height: 44px;
    min-width: 44px;
  }
  .author-chip {
    flex-wrap: wrap;
  }
}
@media (max-width: 480px) {
  .discover {
    margin-top: 32px;
  }
  .feature-caption h2 {
    font-size: 20px;
    line-height: 1.5;
  }
  .feature-caption .feature-by {
    font-size: 11px;
  }
  .card-head {
    gap: 6px;
  }
  .card-title {
    font-size: 14px;
    line-height: 1.6;
  }
  .card-catch {
    font-size: 12px;
    line-height: 1.75;
  }
  .howto {
    padding: 19px 17px;
  }
  .howto .spec-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    padding-top: 15px;
    font-size: 11px;
  }
  .howto .spec-list div {
    min-width: 0;
    margin: 0;
    gap: 6px;
    align-items: baseline;
  }
  .howto .spec-list dt {
    flex: none;
  }
  .howto .spec-list dd {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .howto-note {
    font-size: 11px;
  }
  .stage-bar-l,
  .stage-bar-r {
    gap: 6px;
  }
  .stage-bar .btn-sm {
    padding-inline: 10px;
  }
  .stage-center {
    padding: 17px 14px;
    border-radius: 9px;
  }
}
@media (max-width: 380px) {
  /* おまかせはメニュー内にもあるので、ヘッダーの重複だけを省く。 */
  .hdr-shuffle {
    display: none;
  }
  .logo-text {
    font-size: 17px;
  }
  .sec-title-line {
    gap: 8px;
  }
  .sec-title {
    font-size: 20px;
  }
}
@media (hover: none) {
  .card-link:hover .card-media {
    transform: none;
  }
}

/* 「いま人気の3本」と同じ作品は、PC では一覧に重ねて出さない（スマホでは枠が無いので一覧に出す） */
@media (min-width: 801px) {
  .card.only-narrow {
    display: none;
  }
}

/* ---------- 投稿の動線 ---------- */
.auth-intent {
  margin: 0 0 18px;
  padding: 16px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid #e7c3b3;
}
.auth-intent strong {
  display: block;
  font-size: 15px;
}
.auth-intent p {
  margin: 6px 0 12px;
  font-size: 13px;
  color: var(--muted);
}
.auth-intent .auth-intent-or {
  margin: 12px 0 0;
  text-align: center;
  font-size: 12px;
}
.next-step {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-left: 4px solid var(--accent);
}
.next-step.is-ready {
  border-left-color: #2f7a55;
}
.next-step-kicker {
  flex-basis: 100%;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
.next-step.is-ready .next-step-kicker {
  color: #2f7a55;
}
.next-step strong {
  font-size: 15px;
}
.next-step .btn {
  margin-left: auto;
}
.submit-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
@media (max-width: 480px) {
  .next-step .btn {
    margin-left: 0;
    width: 100%;
  }
}

/* いま遊んでいる人（ゲームから送られてきた数。PRESENCE_SHOW_MIN 人以上のときだけ表示） */
.stage-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 0;
  color: #fff;
  font-size: 0.86rem;
}
.stage-live b {
  font-size: 1rem;
}
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5fd08f;
  box-shadow: 0 0 0 0 rgba(95, 208, 143, 0.6);
  animation: live-pulse 1.8s ease-out infinite;
}
@keyframes live-pulse {
  70% { box-shadow: 0 0 0 7px rgba(95, 208, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(95, 208, 143, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
}
.card-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-weight: 700;
}
.card-live .live-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  animation: none;
}

/* ゲームページ：遊ぶ先（作者のサイト）のドメイン */
.stage-link .stage-note strong {
  color: #fff;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.stage-host {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.stage-host:hover {
  color: var(--text);
}

/* ゲームページ（リンク型）：作品画像をそのまま大きく見せ、遊ぶボタンは下に寄せる */
.stage-link .stage-bg {
  inset: 0;
  filter: none;
  opacity: 1;
}
.stage-link .stage-cover {
  align-items: flex-end;
  padding-bottom: 22px;
  background: linear-gradient(to top, rgba(20, 30, 28, 0.78), rgba(20, 30, 28, 0) 58%);
}
.stage-link .stage-center {
  background: rgba(32, 44, 42, 0.9);
  padding: 16px 24px;
}
.stage-link .stage-center .stage-note {
  margin-top: 10px;
}
@media (max-width: 700px) {
  /* スマホ：作品画像の下に遊ぶボタンを置き、画像を隠さない */
  .stage-link {
    aspect-ratio: auto;
    width: 100%;
  }
  .stage-link .stage-cover {
    position: static;
    display: block;
    padding: 0;
    background: none;
  }
  .stage-link .stage-bg {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
  }
  .stage-link .stage-center {
    max-width: none;
    border: 0;
    border-radius: 0;
    background: var(--night);
    padding: 16px 14px 18px;
  }
}

/* スタジオ：同時接続のキー */
.panel-key {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.key-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.key-box code {
  flex: 1 1 280px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 13px;
}
.break {
  overflow-wrap: anywhere;
  word-break: break-all;
}
.kpi .kpi-sub {
  color: var(--muted);
  font-size: 12px;
}
