/* =====================================================================
 *  QuTech Lab — Provoyage ランディング（ダークテーマ）
 * ===================================================================== */
:root {
  --bg: #070b15;
  --ink: #f2f5fb;
  --ink-dim: rgba(242, 245, 251, 0.6);
  --ink-faint: rgba(242, 245, 251, 0.42);
  --cyan: #67d9ff;
  --cyan-soft: #bfe5ff;
  --violet: #a78bfa;
  --card: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Hiragino Sans", "Helvetica Neue", "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
a { color: inherit; }

/* ---------- 背景（夜空と山並み） ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 60% at 50% -12%, #1c2a52 0%, rgba(28, 42, 82, 0) 60%),
    linear-gradient(180deg, #0b1226 0%, #0a1022 34%, #10182e 58%, #0a0f1e 78%, #070b15 100%);
}
.stars {
  position: absolute;
  inset: 0 0 30% 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 8%, rgba(255,255,255,0.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 41% 23%, rgba(255,255,255,0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 12%, rgba(255,255,255,0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 27%, rgba(255,255,255,0.65) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 9%, rgba(255,255,255,0.75) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 21%, rgba(255,255,255,0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 7% 38%, rgba(255,255,255,0.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 34% 42%, rgba(255,255,255,0.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 61% 39%, rgba(255,255,255,0.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 93% 36%, rgba(255,255,255,0.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 47% 55%, rgba(255,255,255,0.3) 50%, transparent 51%),
    radial-gradient(1px 1px at 19% 58%, rgba(255,255,255,0.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 82% 52%, rgba(255,255,255,0.3) 50%, transparent 51%);
}
.horizon {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 160vmax;
  height: 46vmax;
  transform: translateX(-38%);
  background:
    radial-gradient(38% 30% at 72% 52%, rgba(255, 170, 90, 0.5) 0%, rgba(255, 140, 80, 0.16) 42%, transparent 70%),
    radial-gradient(60% 42% at 68% 55%, rgba(120, 90, 200, 0.22) 0%, transparent 70%);
  filter: blur(12px);
}
.mountains {
  position: absolute;
  left: 0;
  right: 0;
  top: 52%;
  width: 100%;
  height: 12vmax;
  opacity: 0.6;
}

/* ---------- ヘッダー ---------- */
.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  padding: calc(var(--safe-top) + 18px) 22px 0;
}
.brand {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.menu-btn {
  appearance: none;
  border: 0;
  padding: 8px;
  margin: -8px;
  background: none;
  color: var(--ink);
  cursor: pointer;
  border-radius: 10px;
}
.menu-btn:hover { background: rgba(255, 255, 255, 0.08); }
.menu-btn:focus-visible { outline: 2px solid var(--cyan); }

/* ---------- ページ共通 ---------- */
.page {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 22px calc(var(--safe-bottom) + 48px);
}

/* ---------- ヒーロー ---------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 34px;
}
.hero-avatar {
  appearance: none;
  border: 0;
  padding: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.hero-avatar:active { transform: scale(0.94); }
.hero-avatar:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.hero-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-name {
  margin: 14px 0 0;
  font-size: 26px;
  font-weight: 800;
}
.hero-handle {
  margin-top: 2px;
  font-size: 13px;
  color: var(--ink-dim);
  text-decoration: none;
}
.hero-handle:hover { color: var(--ink); text-decoration: underline; }
.hero-title {
  margin: 22px 0 0;
  font-size: clamp(34px, 9vw, 52px);
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}
.hero-title .grad {
  background: linear-gradient(92deg, #ff7ab8 0%, #ff9d6c 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-dim);
  white-space: pre-line;
}
.hero-sub b, .hero-sub strong { color: var(--ink); }

/* ---------- 実験データカード ---------- */
.stats {
  margin: 30px auto 0;
  max-width: 720px;
  border-radius: 20px;
  background: rgba(16, 22, 40, 0.62);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  padding: 16px 18px 20px;
}
.stats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
}
.stats-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-dim);
  font-weight: 600;
}
.stats-title::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 8px var(--violet);
}
.stats-updated { color: var(--ink-faint); }
.stats-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 14px 0 0;
  padding: 0;
}
.stats-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 7px;
  padding: 8px 10px 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.stats-grid li:first-child { border-left: 0; }
.stat-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 18px;
}
.stat-icon svg { width: 20px; height: 20px; }
.stat-label {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-dim);
  min-height: 2.6em;
  display: flex;
  align-items: center;
}
.stat-value {
  font-size: clamp(20px, 5.6vw, 30px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
}
.stat-value.pink { background: linear-gradient(90deg, #ff7ab8, #ff9d6c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-value.blue { color: #7cb7ff; }
.stat-value.green { color: #6fe3a5; }
.stat-icon.pink { color: #ff8fc0; }
.stat-icon.blue { color: #7cb7ff; }
.stat-icon.green { color: #6fe3a5; }
.stat-delta {
  font-size: 11.5px;
  color: #6fe3a5;
}
.stat-delta:empty { display: none; }

/* ---------- X CTA ---------- */
.xcta-wrap {
  margin: 26px auto 0;
  max-width: 620px;
  text-align: center;
}
.xcta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(92deg, #8b3dff 0%, #c94fd8 45%, #ff8a5c 100%);
  box-shadow: 0 12px 34px rgba(150, 70, 220, 0.4);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.xcta:hover { filter: brightness(1.07); }
.xcta:active { transform: scale(0.98); }
.x-glyph { font-size: 18px; font-weight: 400; }
.xcta-caption {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--ink-dim);
}

/* ---------- 作品セクション ---------- */
.works { margin-top: 56px; }
.works-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}
.works-sub {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--ink-dim);
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}
@media (min-width: 640px) {
  .cards { gap: 16px; }
}
.card {
  min-width: 0;
  appearance: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  opacity: 0;
  transform: translateY(10px);
  animation: rise-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes rise-in { to { opacity: 1; transform: none; } }
.card:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.18); transform: translateY(-2px); }
.card:active { transform: scale(0.99); }
.card:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.card .icon {
  position: relative;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 32px;
  line-height: 1;
  overflow: hidden;
  background: linear-gradient(145deg, var(--c1, #38415c), var(--c2, #1c2233));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  user-select: none;
}
.card .icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card.has-badge .icon { overflow: visible; }
.card.has-badge .icon img { border-radius: 18px; }
.badge {
  position: absolute;
  top: -7px;
  left: -7px;
  background: linear-gradient(90deg, #8b5cf6, #6d28d9);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
  z-index: 2;
}
.card-head-text { min-width: 0; padding-top: 2px; }
.card-name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.card-type {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  color: #c9b8ff;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.3);
}
.card-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-dim);
}
.card-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.card-stats li {
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
}
.card-stats li:first-child { border-left: 0; }
.card-stats .v { display: block; font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.card-stats .l { display: block; margin-top: 2px; font-size: 10.5px; color: var(--ink-faint); white-space: nowrap; }
.card-action {
  margin-top: auto;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--violet);
}
.card:hover .card-action { color: #c4b0ff; }

/* スマホ幅ではカード内を少し詰める */
@media (max-width: 639px) {
  .card { padding: 14px; gap: 10px; border-radius: 16px; }
  .card .icon { width: 48px; height: 48px; border-radius: 14px; font-size: 24px; }
  .card.has-badge .icon img { border-radius: 14px; }
  .badge { font-size: 8.5px; padding: 2px 6px; top: -6px; left: -6px; }
  .card-head { gap: 10px; }
  .card-name { font-size: 14.5px; line-height: 1.25; }
  .card-type { font-size: 10px; padding: 2px 7px; margin-top: 4px; }
  .card-desc { font-size: 11.5px; line-height: 1.6; }
  .card-stats .v { font-size: 12.5px; }
  .card-stats .l { font-size: 9.5px; }
  .card-action { font-size: 12.5px; }
}

.empty {
  text-align: center;
  color: var(--ink-dim);
  font-size: 14px;
  padding: 30px 0;
}
.outro {
  margin: 44px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-dim);
}

@media (min-width: 720px) {
  .hero { padding-top: 44px; }
  .hero-sub { font-size: 16px; }
  .stats { padding: 20px 26px 24px; }
  .stat-label { min-height: 2.2em; }
}

/* ---------- アプリ オーバーレイ ---------- */
.app {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  background: #000;
  transform-origin: var(--ox, 50%) var(--oy, 50%);
  animation: app-open 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.app.closing { animation: app-close 0.26s ease-in forwards; }
@keyframes app-open {
  from { opacity: 0; transform: scale(0.2); border-radius: 40px; }
  to   { opacity: 1; transform: scale(1); border-radius: 0; }
}
@keyframes app-close {
  to { opacity: 0; transform: scale(0.25); border-radius: 40px; }
}
.app-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(var(--safe-top) + 8px) 10px 8px;
  background: rgba(8, 14, 24, 0.92);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.app-back, .app-ext {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--cyan);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
}
.app-back:active, .app-ext:active { background: rgba(255,255,255,0.1); }
.app-titles {
  flex: 1;
  min-width: 0;
  text-align: center;
  line-height: 1.2;
}
.app-titles strong { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-titles small { display: block; font-size: 11px; color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-body { flex: 1; position: relative; min-height: 0; }
#app-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.app-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #05090f;
  transition: opacity 0.3s ease;
}
.app-loading.done { opacity: 0; pointer-events: none; }
.app-loading span {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(103, 217, 255, 0.25);
  border-top-color: var(--cyan);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- About シート ---------- */
.sheet { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet-card {
  position: relative;
  width: min(520px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 30px 26px calc(var(--safe-bottom) + 30px);
  border-radius: 28px 28px 0 0;
  background: rgba(16, 24, 38, 0.96);
  border: 1px solid rgba(255,255,255,0.12);
  border-bottom: 0;
  text-align: center;
  animation: rise 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 640px) {
  .sheet { align-items: center; }
  .sheet-card { border-radius: 28px; border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 30px; }
}
.sheet-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
}
.sheet-avatar {
  width: 84px; height: 84px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.sheet-title { margin: 14px 0 4px; font-size: 20px; }
.sheet-bio { color: var(--ink-dim); font-size: 14px; line-height: 1.8; }
.sheet-bio p { margin: 0; }
.sheet-links { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.sheet-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  text-decoration: none;
  font-size: 15px;
}
.sheet-links a:hover { background: rgba(255,255,255,0.14); }
.sheet-links a span:first-child { width: 24px; text-align: center; }
.sheet-links a span:last-child { margin-left: auto; color: var(--ink-dim); }

/* ---------- レスポンシブ ---------- */
@media (min-width: 480px) {
  :root { --cols: 5; }
}
@media (min-width: 720px) {
  :root { --cols: 6; }
  .home { max-width: 760px; }
  .profile { margin-bottom: 36px; }
  .profile-avatar { width: 84px; height: 84px; }
  .profile-name { font-size: 24px; }
  .profile-intro { font-size: 14px; }
  .tile:hover .icon { transform: translateY(-3px) scale(1.04); filter: brightness(1.08); }
}

/* =====================================================================
 *  作品詳細ポップアップ（コンパクト）
 * ===================================================================== */
.detail {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  animation: fade 0.2s ease;
}
.detail-card {
  position: relative;
  width: min(360px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 22px 20px 18px;
  border-radius: 26px;
  background: rgba(20, 26, 44, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform-origin: var(--ox, 50%) var(--oy, 50%);
  animation: detail-open 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  outline: none;
}
.detail.closing .detail-card { animation: detail-close 0.18s ease-in forwards; }
.detail.closing .detail-backdrop { animation: fade-out 0.18s ease-in forwards; }
@keyframes detail-open {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes detail-close { to { opacity: 0; transform: scale(0.8); } }
@keyframes fade-out { to { opacity: 0; } }

.detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
  cursor: pointer;
}
.detail-close:hover { background: rgba(255, 255, 255, 0.22); }

/* ---- ヘッダー ---- */
.detail-head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-right: 28px;
}
.detail-icon {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 22.37%;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 32px;
  line-height: 1;
  background: linear-gradient(145deg, var(--c1, #444), var(--c2, #222));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.detail-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-head-text { min-width: 0; }
.detail-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.detail-desc {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-dim);
}
.detail-kicker {
  margin: 5px 0 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* ---- CTA ---- */
.cta {
  appearance: none;
  display: block;
  width: 100%;
  margin: 16px 0 0;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #04101c;
  background: linear-gradient(90deg, #67d9ff, #8bc6ff);
  box-shadow: 0 8px 24px rgba(103, 217, 255, 0.3);
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.cta:hover { filter: brightness(1.06); }
.cta:active { transform: scale(0.97); }
.cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cta-links { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.cta-links .cta { margin: 0; text-align: center; text-decoration: none; letter-spacing: 0.04em; }
.cta-links .cta.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}
.cta-alt {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-dim);
  text-decoration: none;
}
.cta-alt:hover { color: var(--ink); }

/* ---- 情報一覧 ---- */
.meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 14px;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12.5px;
  line-height: 1.5;
}
.meta dt { color: var(--ink-dim); white-space: nowrap; }
.meta dd { margin: 0; overflow-wrap: anywhere; }
.meta dd.unset { color: var(--ink-dim); }
.meta-label {
  margin: 14px 0 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.prompt {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(103, 217, 255, 0.08);
  border: 1px solid rgba(103, 217, 255, 0.2);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--cyan-soft);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ---- 制作について（折りたたみ） ---- */
.story {
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
}
.story summary {
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-dim);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
.story summary::-webkit-details-marker { display: none; }
.story summary::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  margin-left: 2px;
}
.story[open] summary::before { transform: rotate(45deg); }
.story summary:hover { color: var(--ink); }
.story-body { padding-top: 8px; }
.story-body p {
  margin: 0 0 8px;
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(234, 246, 255, 0.85);
}
.story-body p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  .detail-card, .app { animation-duration: 0.01s; }
}
