:root {
  --primary: #08788a;
  --primary-dark: #0b6775;
  --text: #25313a;
  --muted: #66737d;
  --border: #dfe9ec;
  --warning: #9a5b00;
  --warning-soft: #fff4df;
  --danger: #bd3e45;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background: #f4f8fa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
main { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
.card {
  width: min(100%, 420px);
  padding: 40px 28px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(27, 76, 88, .10);
  text-align: center;
}
.survey-card { width: min(100%, 680px); text-align: left; }
.logo { display: block; width: 180px; max-width: 75%; height: auto; margin: 0 auto 30px; }
.survey-logo { width: 142px; margin-bottom: 24px; }
h1 { margin: 0 0 12px; font-size: 21px; line-height: 1.45; text-align: center; }
#survey-title {
  position: relative;
  margin-bottom: 22px;
  color: #1a2c32;
  font-size: clamp(32px, 8vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .02em;
  text-wrap: balance;
}
#survey-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}
.survey-schema-v5 > #survey-title {
  max-width: 100%;
  font-size: min(32px, 6.2vw);
  letter-spacing: 0;
  white-space: nowrap;
}
.survey-schema-v5 > #survey-title::after {
  width: min(76%, 340px);
  height: 3px;
  margin-top: 14px;
}
h2 { margin: 12px 0; font-size: 20px; text-align: center; }
p { margin: 0 0 24px; color: var(--muted); font-size: 14px; line-height: 1.7; }
#link-view > p, #survey-description { min-height: 3.4em; text-align: center; }
#survey-description:empty { display: none; min-height: 0; margin: 0; }
#survey-description.auth-warning {
  min-height: 0;
  padding: 12px 14px;
  border: 1px solid rgba(154, 91, 0, .28);
  border-radius: 12px;
  color: var(--warning);
  background: var(--warning-soft);
  font-weight: 700;
  text-align: left;
}
.spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 20px;
  border: 4px solid #dce9ec;
  border-left-color: var(--primary);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.actions { display: grid; gap: 12px; }
.button {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button:focus-visible, .ranking-option:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
.button:disabled { cursor: wait; opacity: .65; }
.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 4px 12px rgba(8, 120, 138, .25);
}
.primary.ready { box-shadow: 0 0 0 4px rgba(8, 120, 138, .18), 0 4px 12px rgba(8, 120, 138, .25); }
.secondary { color: var(--primary-dark); background: #eaf7f9; }
.oauth-actions {
  position: relative;
  left: 50%;
  width: min(92vw, 420px);
  gap: 14px;
  transform: translateX(-50%);
}
.oauth {
  display: flex;
  width: 100%;
  height: 52px;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 4px 18px;
  border: 1px solid #747775;
  border-radius: 12px;
  color: #1f1f1f;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .10);
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
}
.oauth:active { opacity: .9; }
.oauth.google { font-family: Roboto, Arial, sans-serif; font-weight: 500; }
.oauth-icon { flex: 0 0 auto; object-fit: contain; }
.apple-icon { width: 20px; height: 24px; }
.google-icon { width: 24px; height: 24px; }
.oauth span { flex: 0 1 auto; text-align: left; }
.oauth-provider { display: grid; gap: 6px; }
.apple-login-note {
  margin: 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}
.guest {
  min-height: 52px;
  border: 2px solid var(--primary);
  border-radius: 14px;
  color: var(--primary-dark);
  background: #fff;
  font-size: 16px;
}
.stores { display: grid; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #e7ecef; }
.store { color: #fff; background: #101214; border-radius: 12px; }
.login-notice {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 18px 18px 18px 38px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--muted);
  background: #f4fcfd;
  font-size: 14px;
  line-height: 1.7;
}
.login-heading { margin: 0 0 14px; }
.survey-form { display: grid; gap: 20px; scroll-padding-block: 72px 140px; }
.survey-progress { position: sticky; top: 0; z-index: 2; margin: 0 -4px; padding: 10px 4px 12px; background: rgba(255, 255, 255, .96); }
.survey-progress-copy { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.survey-progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: #e4eef1; }
.survey-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--primary-dark)); transition: width .2s ease; }
.survey-step-page { display: grid; gap: 14px; }
/* 版 1 は全ページを先に作り、今のページ以外を hidden で隠す。上の display: grid が hidden に勝って全ページが並んでいた (TASK-20260930-006 11/4 の写真の「1 / 3」) */
.survey-step-page[hidden] { display: none; }
.voice-step-page { animation: step-in .18s ease-out; }
@keyframes step-in { from { opacity: 0; transform: translateY(5px); } }
.voice-page-title { margin: 2px 0 0; text-align: left; font-size: 20px; }
.voice-page-title:focus, .voice-intro h2:focus { outline: none; }
.voice-page-description { margin: -4px 0 2px; }
.voice-intro { padding: 22px; background: linear-gradient(145deg, #f4fcfd, #fff); }
.voice-intro h2 { margin-top: 0; color: var(--primary-dark); }
.voice-intro p { text-align: center; }
.voice-intro ul { display: grid; gap: 10px; margin: 16px 0 0; padding-left: 22px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.question { margin: 0; border: 0; }
.question-card { padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: 0 4px 16px rgba(27, 76, 88, .06); scroll-margin-block: 72px 140px; }
[data-error-id] { scroll-margin-block: 72px 140px; }
.question-card[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 2px rgba(189, 62, 69, .10); }
.question legend { width: 100%; margin-bottom: 14px; font-size: 16px; font-weight: 700; line-height: 1.6; }
/* 版 1 の設問の見出しは枠の中に置く。fieldset の legend は枠の上辺に載るので、2 行以上の見出しが枠からはみ出していた
   (TASK-20260930-006 11/4 Emiya の iPhone の写真)。float にすると legend は枠の中の 1 行目になる (WebKit・Chrome・Firefox) */
.question-v1 > legend { float: left; padding: 0; }
.question-v1 > legend + * { clear: both; }
.question-v1 > legend .required { white-space: nowrap; }
/* 確認のチェックの説明の文 (見出しの下・チェックの上) */
.question-detail { margin: 0 0 14px; color: var(--text); font-size: 15px; font-weight: 400; line-height: 1.8; }
.question-detail > span { display: block; }
.question-detail > span + span { margin-top: 8px; }
/* 改行のある案内は 1 行ずつ左にそろえる (1 行目が記名式の注意なら少し小さく) */
#survey-description.survey-description-lines { white-space: pre-line; text-align: left; min-height: 0; line-height: 1.8; }
#survey-guide.survey-description-lines { white-space: pre-line; }
/* 題は日本語を空白の所で折り返す (「ChatGPT 連携 先 / 行ベータ」と語の途中で切れないように)。空白の無い長い題はどこでも折り返す */
#survey-title { word-break: keep-all; overflow-wrap: anywhere; }
.required { margin-left: 8px; color: var(--danger); font-size: 12px; }
.schema-v5-step .v5-question-heading,
.schema-v6-step .v5-question-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--border);
  color: #17363d;
  font-size: 17px;
  line-height: 1.55;
  text-align: left;
}
.schema-v5-step .v5-question-heading .required,
.schema-v6-step .v5-question-heading .required {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--danger);
  font-size: 11px;
  line-height: 1.3;
}
.schema-v5-step .v5-question-controls,
.schema-v6-step .v5-question-controls { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice { display: flex; min-height: 48px; gap: 12px; align-items: center; margin: 8px 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; line-height: 1.45; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--primary-dark); background: #eaf7f9; }
.choice input { flex: 0 0 auto; width: 22px; height: 22px; margin: 0; accent-color: var(--primary-dark); }
.choice-grid { display: grid; gap: 8px; }
.choice-grid .choice { margin: 0; }
.described-choice > span { display: grid; gap: 3px; min-width: 0; }
.described-choice small { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.45; }
.option-section { display: grid; gap: 8px; margin-top: 16px; }
.option-section:first-of-type { margin-top: 0; }
.option-section h3 { margin: 0; color: var(--primary-dark); font-size: 14px; line-height: 1.5; }
.primary-option-section { display: grid; gap: 8px; }
.exclusive-option-section {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 14px;
  border-top: 1px solid var(--border);
  border-radius: 0 0 12px 12px;
  background: #f6f8f9;
}
.exclusive-option-section h3 { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.feature-choice-row { display: grid; gap: 8px; }
.feature-comment-label { display: grid; gap: 6px; margin: -2px 0 8px; color: var(--text); font-size: 13px; font-weight: 700; }
.feature-comment-label textarea { min-height: 92px; border-color: #a9c7cd; background: #fbfefe; }
.feature-comment-label .comment-count { color: var(--muted); font-weight: 400; }
.schema-v6-step .feature-comment-section { display: grid; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 2px solid var(--border); }
.schema-v6-step .feature-comment-section > h3 { margin: 0; color: var(--primary-dark); font-size: 16px; }
.schema-v6-step .feature-comment-section > .question-hint { margin: -4px 0 0; }
.schema-v6-step .feature-comment-section .feature-comment-label { margin: 0; }
.selection-limit-status { margin: 0 0 8px; color: var(--primary-dark); font-size: 13px; font-weight: 700; text-align: right; }
.question-hint { margin: -4px 0 12px; font-size: 12px; }
.optional-panel { padding: 0 16px 16px; }
.optional-panel > summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  color: var(--primary-dark);
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}
.optional-panel[open] > summary { border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.text-button { min-height: 44px; padding: 8px 0; border: 0; color: var(--primary-dark); background: transparent; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.privacy-note { padding: 12px; border-radius: 12px; color: var(--primary-dark); background: #eaf7f9; font-weight: 700; }
.compact-options { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.compact-options .choice { position: relative; justify-content: center; min-height: 58px; padding: 6px 2px; font-size: 14px; font-weight: 800; text-align: center; }
.compact-options .choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.compact-options .choice:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 2px; }
.rating-copy { display: grid; gap: 1px; justify-items: center; pointer-events: none; }
.rating-number { font-size: 16px; line-height: 1; }
.rating-label { font-size: 10px; font-weight: 700; line-height: 1.15; }
.scale-key { display: grid; gap: 4px; margin: 0; padding: 12px 12px 12px 34px; border-radius: 12px; color: var(--muted); background: #f4f8fa; font-size: 12px; line-height: 1.45; }
.feature-card > legend { font-size: 17px; }
.comment-details { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.comment-details summary { min-height: 48px; display: flex; align-items: center; color: var(--primary-dark); font-size: 14px; font-weight: 700; cursor: pointer; }
.comment-details textarea { margin-top: 6px; min-height: 88px; }
.comment-count { display: block; }
.optional-note { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--border); }
.optional-note > summary { display: flex; min-height: 44px; align-items: center; color: var(--primary-dark); font-size: 14px; font-weight: 700; cursor: pointer; }
.optional-note-label { display: grid; gap: 6px; margin-top: 6px; color: var(--text); font-size: 13px; font-weight: 700; }
.optional-note textarea { min-height: 92px; }
.schema-v6-step .optional-note-heading { margin: 0; color: var(--primary-dark); font-size: 14px; line-height: 1.55; }
.schema-v6-step .unused-reason-section { display: grid; }
.schema-v6-step .unused-reason-group { margin: 0; padding: 16px 0; border: 0; border-bottom: 1px solid var(--border); }
.schema-v6-step .unused-reason-group:last-of-type { border-bottom: 0; }
.schema-v6-step .unused-reason-group > legend { width: 100%; margin-bottom: 10px; color: var(--primary-dark); font-size: 15px; font-weight: 700; line-height: 1.5; }
.schema-v6-step .voice-section-title { margin: 10px 0 0; color: var(--primary-dark); font-size: 18px; line-height: 1.5; }
.note-specific-copy { margin-top: 18px; }
.reason-board { display: grid; gap: 14px; }
.reason-help { margin: 0; font-size: 13px; }
.reason-source, .reason-bucket { padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.reason-source { position: sticky; top: 68px; z-index: 1; border-color: #a9cbd1; background: #f2fbfc; box-shadow: 0 4px 12px rgba(27, 76, 88, .08); }
.reason-source h3, .reason-bucket h3 { margin: 0 0 8px; font-size: 14px; line-height: 1.45; }
.reason-buckets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.reason-bucket.drag-over { border-color: var(--primary); background: #eaf7f9; box-shadow: 0 0 0 3px rgba(8, 120, 138, .12); }
.reason-chip-list { display: flex; flex-wrap: wrap; gap: 7px; }
.reason-feature-chip, .reason-assign-button {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #a9c7cd;
  border-radius: 10px;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}
.reason-feature-chip { display: inline-flex; align-items: center; gap: 8px; }
.reason-drag-handle { display: inline-grid; width: 24px; height: 24px; place-items: center; border-radius: 7px; color: var(--primary-dark); background: #e8f4f6; font-size: 16px; touch-action: none; }
.reason-feature-chip[aria-pressed="true"], .reason-feature-chip.dragging { border-color: var(--primary); background: #dff4f6; box-shadow: 0 0 0 3px rgba(8, 120, 138, .12); }
.reason-assign-button { width: 100%; margin-bottom: 8px; color: var(--primary-dark); background: #eef8fa; }
.reason-assign-button:disabled { color: var(--muted); cursor: default; opacity: .7; }
.reason-empty { margin: 0; font-size: 12px; }
.reason-undo { justify-self: start; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.ranking-hint { margin: -4px 0 12px; font-size: 12px; }
.ranking-options { display: grid; gap: 8px; }
.ranking-option {
  display: grid;
  width: 100%;
  min-height: 52px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.ranking-option[aria-pressed="true"] { border-color: var(--primary); background: #eaf7f9; }
.ranking-option:disabled { cursor: not-allowed; opacity: .48; }
.ranking-option-copy { display: grid; gap: 3px; }
.ranking-option-copy small { color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.4; }
.rank-badge { display: grid; min-width: 32px; height: 32px; place-items: center; padding: 0 7px; border-radius: 999px; color: var(--primary-dark); background: #eaf7f9; font-size: 12px; }
.ranking-option[aria-pressed="true"] .rank-badge { color: #fff; background: var(--primary-dark); }
.detail-feature > h3 { margin: 0 0 14px; font-size: 18px; }
.nested-question { padding: 12px 0; box-shadow: none; border-width: 1px 0 0; border-radius: 0; }
.nested-question legend { font-size: 14px; }
.detail-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-options .choice { min-height: 52px; margin: 0; padding: 8px 10px; font-size: 13px; }
.future-rankings { display: grid; gap: 12px; }
.review-card { display: grid; gap: 12px; background: #f4fcfd; }
.review-card strong { color: var(--primary-dark); }
.review-card p { margin: 0; }
textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  padding: 12px;
  border: 1px solid #bdcbd0;
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  line-height: 1.6;
}
.hint { margin: 6px 0 0; font-size: 12px; text-align: right; }
.error { margin: 0; color: var(--danger); font-weight: 700; text-align: center; }
#survey-questions { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
.survey-navigation { position: sticky; bottom: 0; z-index: 2; display: grid; grid-template-columns: minmax(92px, .4fr) 1fr; gap: 10px; margin: 0 -8px -12px; padding: 14px 8px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: rgba(255, 255, 255, .98); box-shadow: 0 -8px 20px rgba(27, 76, 88, .08); }
.survey-navigation .secondary.hidden + .primary:not(.hidden) { grid-column: 1 / -1; }
/* 1 ページだけのアンケート (戻る・次へが両方隠れる) でも「回答を送信」を横いっぱいに (TASK-20260930-006 B2。隠れた「次へ」を挟むと + では届かない) */
.survey-navigation .secondary.hidden ~ .primary:not(.hidden) { grid-column: 1 / -1; }
.result { text-align: center; }
.result-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin: 4px auto 12px;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 30px;
  font-weight: 700;
}
.reward { margin-top: 24px; padding: 20px; border-radius: 16px; background: #eaf7f9; text-align: center; }
.reward-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.reward strong { color: var(--primary-dark); font-size: 20px; }
.hidden { display: none !important; }

@media (max-width: 520px) {
  main { padding: 0; align-items: stretch; }
  .card { width: 100%; min-height: 100vh; min-height: 100dvh; border-radius: 0; padding: max(24px, env(safe-area-inset-top)) 16px 24px; }
  .survey-logo { width: 124px; margin-bottom: 16px; }
  .survey-card.survey-in-progress { padding-top: max(8px, env(safe-area-inset-top)); }
  .survey-in-progress > .survey-logo,
  .survey-in-progress > #survey-title,
  .survey-in-progress > #survey-description { display: none; }
  .survey-in-progress .survey-progress { padding-top: 8px; }
  .question-card { padding: 16px 14px; }
  .reason-buckets { grid-template-columns: 1fr; }
  .compact-options { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 2px; }
  .compact-options .choice { min-height: 60px; }
  .nested-question { padding: 12px 0; }
}

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

/*
 * TASK-20261017-002 r6 記録のページ (モーメント・レビューのリンクを開いた見る人の画面。assets/share-view.mjs が描く)。
 * サーバ (api/_lib/share-preview.mjs) が中身を埋め込んだ時だけ <html class="pn-rec-page"> になり、ここが効く
 * (アンケート・ほかのリンクの画面の見た目は変えない)。
 * 色は Web 版の決まり (playnavi-app web/src/app/globals.css の明るい・暗い) を写し、端末の設定に合わせる。書体は Noto Sans JP。
 * 画面幅の境界は Web 版と同じ 1024px (PC = 左に写真・動画、右に文の 2 列)。
 */
html.pn-rec-page {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-raised: #f5f9fa;
  --bg-elevated: #ffffff;
  --bg-sunken: #eef4f6;
  --line: #dcebec;
  --line-strong: #c4d9dc;
  --text: #1a2c32;
  --text-sub: #58737d;
  --text-faint: #5f7078;
  --accent: #0d7c90;
  --accent-strong: #095f70;
  --accent-soft: #e6f6f8;
  --on-accent: #ffffff;
  --focus: #f2b705;
  --st-playing: #2f80ed;
  --st-cleared: #1fa36b;
  --st-watched: #8a5cf6;
  --st-dropped: #e8743b;
  --st-fill-mix: 70%;
  --on-status: #ffffff;
  --st-playing-fill: color-mix(in srgb, var(--st-playing) var(--st-fill-mix), #000000);
  --st-cleared-fill: color-mix(in srgb, var(--st-cleared) var(--st-fill-mix), #000000);
  --st-watched-fill: color-mix(in srgb, var(--st-watched) var(--st-fill-mix), #000000);
  --st-dropped-fill: color-mix(in srgb, var(--st-dropped) var(--st-fill-mix), #000000);
  --pn-font: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --pn-top-h: 40px;
  --pn-shell: 1200px;
  --pn-glass: color-mix(in srgb, var(--bg) 86%, transparent);
  background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  html.pn-rec-page {
    --bg: #0b0c0e;
    --bg-raised: #17191c;
    --bg-elevated: #26292e;
    --bg-sunken: #1e2124;
    --line: #2b2f34;
    --line-strong: #3c4148;
    --text: #eceef0;
    --text-sub: #a3a9b0;
    --text-faint: #8b929a;
    --accent: #3db2c5;
    --accent-strong: #2fa4b9;
    --accent-soft: #13272b;
    --on-accent: #0b0c0e;
    --focus: #ffcc4d;
    --st-playing: #4da3ff;
    --st-cleared: #3fd18a;
    --st-watched: #b98cff;
    --st-dropped: #ff8a65;
    --st-fill-mix: 100%;
    --on-status: #0b0c0e;
  }
}
html.pn-rec-page body {
  color: var(--text);
  background: var(--bg);
  font-family: var(--pn-font);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
html.pn-rec-page main { display: block; min-height: 100vh; min-height: 100dvh; padding: 0; }
html.pn-rec-page #link-view {
  width: 100%; min-height: 0; padding: 0; border-radius: 0;
  background: transparent; box-shadow: none; text-align: left;
}
/* 部品が描く前も、今の「リンクを確認しています」の画面は出さない (描けなかった時は app.mjs が html の印を外す) */
html.pn-rec-page #link-view > .logo,
html.pn-rec-page #link-view > #spinner,
html.pn-rec-page #link-view > #heading,
html.pn-rec-page #link-view > #description,
html.pn-rec-page #link-view > #store-buttons,
html.pn-rec-page #link-view > .actions { display: none; }
html.pn-rec-page .share-view { margin: 0; }

.pn-rec { min-height: 100vh; min-height: 100dvh; color: var(--text); font-size: 16px; line-height: 1.6; }
:where(.pn-rec) :is(p, h1, h2) { margin: 0; color: inherit; font-size: inherit; line-height: inherit; text-align: left; }
:where(.pn-rec) a { color: var(--accent); }
.pn-rec [hidden] { display: none !important; }
.pn-rec :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* 左上の小さな印だけ (r7 P3: 頭の帯・「アプリで開く」は出さない。主役は本人の投稿) */
.pn-top { padding-top: env(safe-area-inset-top); }
.pn-top-inner {
  display: flex; align-items: center;
  max-width: var(--pn-shell); height: var(--pn-top-h); margin: 0 auto; padding: 0 16px;
}
.pn-logo { position: relative; display: inline-block; flex: none; width: 76px; aspect-ratio: 200 / 35; line-height: 0; border-radius: 4px; opacity: .8; }
.pn-logo:hover { opacity: 1; }
.pn-logo img { display: block; max-width: none; }
.pn-logo .pn-logo-light { width: 100%; height: 100%; }
.pn-logo .pn-logo-dark { display: none; position: absolute; left: 50%; top: 50%; width: 102.5%; height: auto; transform: translate(-50%, -50%); }
@media (min-resolution: 1.5dppx) { .pn-logo .pn-logo-light { image-rendering: pixelated; } }
@media (prefers-color-scheme: dark) {
  .pn-logo .pn-logo-light { display: none; }
  .pn-logo .pn-logo-dark { display: block; }
}

/* 並び (スマホ = 1 列): 名前・日付 → 写真・動画 → (満足度) → 文 → ゲーム */
.pn-layout { max-width: 640px; margin: 0 auto; }
.pn-layout > .pn-author { padding: 4px 16px 12px; }
.pn-details { display: grid; gap: 16px; padding: 16px 20px 0; }

/* 写真・動画 (Q1) */
.pn-hero { position: relative; }
.pn-frame { position: relative; width: 100%; aspect-ratio: var(--pn-ratio, 1); overflow: hidden; background: var(--bg-sunken); }
.pn-track {
  display: flex; width: 100%; height: 100%;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.pn-track::-webkit-scrollbar { display: none; }
.pn-track:focus-visible { outline-offset: -3px; }
.pn-slide {
  position: relative; flex: 0 0 100%; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0;
  overflow: hidden; background: var(--bg-sunken); scroll-snap-align: start; scroll-snap-stop: always;
}
.pn-slide-photo { display: block; cursor: zoom-in; }
.pn-slide-photo:focus-visible { outline-offset: -3px; }
.pn-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.pn-slide-video { background: #000; }
.pn-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.pn-slide-video.is-started .pn-video { object-fit: contain; }
.pn-play {
  position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%;
  padding: 0; border: 0; background: radial-gradient(circle at center, rgb(0 0 0 / .18), rgb(0 0 0 / 0) 60%); cursor: pointer;
}
.pn-play-icon {
  position: relative; width: 76px; height: 76px; border-radius: 50%;
  background: rgb(0 0 0 / .52); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .9), 0 6px 24px rgb(0 0 0 / .3);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .15s ease;
}
.pn-play-icon::after {
  content: ""; position: absolute; left: 30px; top: 24px;
  border-style: solid; border-width: 14px 0 14px 23px; border-color: transparent transparent transparent #fff;
}
.pn-play:hover .pn-play-icon { transform: scale(1.06); }
.pn-play:focus-visible { outline-offset: -4px; }
.pn-duration {
  position: absolute; left: 12px; bottom: 12px; z-index: 1; padding: 2px 9px; border-radius: 999px;
  color: #fff; background: rgb(0 0 0 / .6); font-size: 12px; font-weight: 700; line-height: 1.7;
  font-variant-numeric: tabular-nums; pointer-events: none;
}
.pn-slide-video.is-started .pn-duration { display: none; }
.pn-video-fail {
  position: absolute; left: 50%; bottom: 20px; z-index: 2; display: grid; gap: 10px; justify-items: center;
  width: min(calc(100% - 32px), 320px); padding: 14px 16px; border-radius: 14px; transform: translateX(-50%);
  color: #fff; background: rgb(0 0 0 / .66); text-align: center;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pn-video-fail-text { color: #fff; font-size: 14px; font-weight: 700; line-height: 1.5; text-align: center; }
.pn-video-fail-link {
  display: inline-flex; align-items: center; height: 36px; padding: 0 18px; border-radius: 999px;
  color: #0b0c0e; background: #fff; font-size: 14px; font-weight: 700; text-decoration: none;
}
/* TASK-20261021-002 10/29: 上げた直後 (変換中) の動画 = 表紙 + 小さな「動画を準備中」(▶ は出さない・押しても再生しない) */
.pn-video-preparing {
  position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%);
  padding: 3px 12px; border-radius: 999px; color: #fff; background: rgb(0 0 0 / .62);
  font-size: 12px; font-weight: 700; line-height: 1.6; white-space: nowrap; pointer-events: none;
}
.pn-slide-video.is-preparing .pn-video { object-fit: cover; }
/* r13: 投稿の写真・動画が 2 つ以上 = 全部を一覧 (アルバムの札と同じ見た目・切らない)。行の分け方は share-view.mjs の
   postGridRows が幅で決め、行の中は縦横比の割合で幅いっぱいに分ける (= 行の中の高さがそろう)。
   1 枚だけの行が縦長で高くなりすぎないよう、行の幅に上限 (--pn-post-max-h の高さまで) を付けて真ん中に置く */
.pn-hero.is-grid { --pn-album-gap: 4px; --pn-post-max-h: 440px; padding: 0 12px; }
.pn-post-frame { position: relative; overflow: hidden; border-radius: 8px; }
.pn-post-grid { display: grid; gap: var(--pn-album-gap); }
.pn-post-row {
  display: flex; gap: var(--pn-album-gap); width: 100%; margin: 0 auto;
  max-width: calc(var(--rs, 1) * var(--pn-post-max-h) + (var(--n, 1) - 1) * var(--pn-album-gap));
}
.pn-post-row > .pn-post-tile { flex: var(--a, 1.333) 1 0; }
.pn-rec.is-spoiler .pn-post-frame { min-height: 200px; background: var(--bg-sunken); }

/* ネタバレ (Q5): 写真・動画はぼかし、文は入れない。「ネタバレを表示」1 つで両方出る */
.pn-rec.is-spoiler .pn-track { filter: blur(28px) brightness(.72); transform: scale(1.15); }
.pn-rec.is-spoiler .pn-post-grid { filter: blur(24px) brightness(.72); }
.pn-rec.is-spoiler .pn-play,
.pn-rec.is-spoiler .pn-video-preparing,
.pn-rec.is-spoiler .pn-duration,
.pn-rec.is-spoiler .pn-post-grid .pn-album-play,
.pn-rec.is-spoiler .pn-post-grid .pn-album-duration { visibility: hidden; }
.pn-spoiler-cover {
  position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 14px;
  padding: 24px; color: #fff; text-align: center;
}
.pn-spoiler-note { color: #fff; font-size: 15px; font-weight: 700; text-align: center; text-shadow: 0 1px 8px rgb(0 0 0 / .4); }
.pn-spoiler-button {
  display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 24px;
  border: 0; border-radius: 999px; color: #0b0c0e; background: #fff;
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 16px rgb(0 0 0 / .25);
}
.pn-spoiler-text {
  display: grid; gap: 12px; justify-items: start; padding: 14px 16px;
  border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--bg-raised);
}
.pn-spoiler-text-note { color: var(--text-sub); font-size: 14px; line-height: 1.6; }
.pn-spoiler-text .pn-spoiler-button { color: var(--on-accent); background: var(--accent); box-shadow: none; }

/* 名前・日付 */
.pn-author { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pn-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--bg-sunken); }
.pn-avatar-initial { display: grid; place-items: center; color: var(--accent); font-size: 18px; font-weight: 700; }
.pn-author-text { display: grid; min-width: 0; }
.pn-author-line { overflow: hidden; font-size: 15px; font-weight: 400; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.pn-author-name { font-weight: 700; }
.pn-author-kind { color: var(--text-sub); }
.pn-date { color: var(--text-faint); font-size: 13px; line-height: 1.5; }

/* ゲーム (表紙 + 題名 + 状態の札) */
.pn-game {
  display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 14px 10px 10px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-raised);
}
.pn-cover { flex: none; width: 44px; height: 59px; border-radius: 6px; object-fit: cover; background: var(--bg-sunken); }
.pn-game-text { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.pn-game-title {
  display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  color: var(--text); font-size: 15px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere;
}
.pn-status {
  display: inline-block; padding: 1px 10px; border-radius: 999px;
  color: var(--on-status); background: var(--st-playing-fill); font-size: 12px; font-weight: 700; line-height: 1.7;
}
.pn-status-completed { background: var(--st-cleared-fill); }
.pn-status-streaming_completed { background: var(--st-watched-fill); }
.pn-status-dropped { background: var(--st-dropped-fill); }

/* 満足度 (Q4) */
.pn-score {
  display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 8px 16px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg-raised);
}
.pn-score-label { grid-column: 1 / -1; color: var(--text-sub); font-size: 13px; font-weight: 700; line-height: 1.4; }
.pn-score-value { display: flex; align-items: baseline; gap: 2px; color: var(--text); line-height: 1; }
.pn-score-number { font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pn-score-max { color: var(--text-faint); font-size: 17px; font-weight: 700; }
.pn-score-bar { align-self: center; height: 6px; margin-top: 10px; overflow: hidden; border-radius: 3px; background: var(--line); }
.pn-score-fill { display: block; width: var(--pn-score, 0%); height: 100%; border-radius: inherit; background: var(--accent); }

/* 文 */
.pn-text { display: grid; gap: 10px; }
.pn-text:empty { display: none; }
.pn-title { color: var(--text); font-size: 20px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.pn-body { max-width: 36em; color: var(--text); font-size: 16px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.pn-moments { color: var(--accent-strong); font-size: 14px; font-weight: 700; }

/* r7 P2: このプレイの記録 (親のレビュー + 同じプレイのほかのモーメント。押すとその場で開く) */
.pn-story { max-width: 640px; margin: 32px auto 0; padding: 24px 20px 0; border-top: 1px solid var(--line); }
.pn-story-head { display: grid; gap: 2px; margin-bottom: 16px; }
.pn-story-title { color: var(--text); font-size: 18px; font-weight: 700; line-height: 1.4; }
.pn-story-sub { overflow: hidden; color: var(--text-sub); font-size: 13px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.pn-story-grid { display: grid; gap: 16px; align-items: start; }
.pn-story-label { color: var(--text-sub); font-size: 13px; font-weight: 700; line-height: 1.4; }
.pn-story-review {
  display: grid; gap: 10px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--bg-raised);
}
.pn-story-review-head { display: flex; align-items: center; gap: 10px; }
.pn-story-score { display: flex; align-items: baseline; gap: 6px; color: var(--text); line-height: 1; }
.pn-story-score-label { color: var(--text-sub); font-size: 13px; font-weight: 700; }
.pn-story-score-number { font-size: 34px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pn-story-score-max { color: var(--text-faint); font-size: 15px; font-weight: 700; }
.pn-story-review-body { display: grid; gap: 8px; justify-items: start; }
.pn-story-comment { color: var(--text); font-size: 15px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.pn-story-comment.is-folded { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.pn-story-more-button {
  padding: 0; border: 0; background: none; color: var(--accent-strong); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.pn-story-date { color: var(--text-faint); font-size: 12px; line-height: 1.5; }
.pn-story-list { display: grid; gap: 10px; }
.pn-story-item { border: 1px solid var(--line); border-radius: 16px; background: var(--bg); overflow: hidden; }
.pn-story-item.is-open { border-color: var(--line-strong); }
.pn-story-toggle {
  display: flex; align-items: flex-start; gap: 14px; width: 100%; margin: 0; padding: 12px; border: 0;
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.pn-story-toggle:hover { background: var(--bg-raised); }
.pn-story-toggle:focus-visible { outline-offset: -3px; }
.pn-story-thumb {
  position: relative; flex: none; width: 88px; height: 88px; overflow: hidden; border-radius: 12px; background: var(--bg-sunken);
}
.pn-story-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pn-story-item.is-spoiler .pn-story-thumb img { filter: blur(14px) brightness(.8); transform: scale(1.2); }
.pn-story-thumb-play {
  position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%;
  background: rgb(0 0 0 / .55); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .9);
}
.pn-story-thumb-play::after {
  content: ""; position: absolute; left: 12px; top: 9px;
  border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff;
}
.pn-story-thumb-count {
  position: absolute; right: 6px; bottom: 6px; min-width: 20px; padding: 0 6px; border-radius: 999px;
  color: #fff; background: rgb(0 0 0 / .6); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.pn-story-lines { display: grid; gap: 4px; min-width: 0; padding-top: 2px; }
.pn-story-item-title {
  display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  color: var(--text); font-size: 15px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap;
}
.pn-story-excerpt {
  display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  color: var(--text-sub); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap;
}
.pn-story-item.is-spoiler .pn-story-item-title { color: var(--text-sub); }
.pn-story-item.is-open .pn-story-item-title,
.pn-story-item.is-open .pn-story-excerpt { display: block; -webkit-line-clamp: unset; }
.pn-story-item.is-open .pn-story-excerpt { color: var(--text); font-size: 15px; line-height: 1.75; }
.pn-story-panel { display: grid; gap: 10px; padding: 0 12px 14px; }
.pn-story-panel:empty { display: none; }
.pn-story-panel-title { margin: 0; color: var(--text); font-size: 16px; font-weight: 700; line-height: 1.5; }
.pn-story-panel-body { color: var(--text); font-size: 15px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.pn-story-media {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.pn-story-media::-webkit-scrollbar { display: none; }
.pn-story-photo, .pn-story-video {
  flex: none; height: 220px; max-width: 86%; margin: 0; padding: 0; border: 0; border-radius: 12px; overflow: hidden;
  background: var(--bg-sunken); scroll-snap-align: start; cursor: zoom-in;
}
.pn-story-photo img { display: block; width: auto; height: 100%; max-width: none; object-fit: cover; }
.pn-story-video { width: auto; aspect-ratio: 16 / 9; background: #000; cursor: auto; }
.pn-story-rest { margin-top: 12px; color: var(--text-sub); font-size: 13px; text-align: left; }

/* ページの一番下の控えめな行 (r7 P3)。スマホ = 文字のリンク「PlayNaviアプリで開く」、PC = ストアの小さな文字のリンク */
.pn-end { margin-top: 40px; padding: 0 0 env(safe-area-inset-bottom); border-top: 1px solid var(--line); }
.pn-end-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
  max-width: var(--pn-shell); min-height: 56px; margin: 0 auto; padding: 14px 20px 20px;
  color: var(--text-faint); font-size: 13px; line-height: 1.5;
}
.pn-end-brand { color: var(--text-faint); font-weight: 700; }
.pn-end-slot { flex: 1; min-width: 0; }
.pn-end-slot .actions { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; }
.pn-end-slot .button {
  display: inline; width: auto; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0;
  color: var(--accent-strong); background: none; box-shadow: none;
  font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.pn-end-stores { display: flex; gap: 14px; }
.pn-end-store { color: var(--text-sub) !important; font-weight: 700; text-decoration: none; }
.pn-end-store:hover { text-decoration: underline; }
.pn-rec[data-app="on"] .pn-end-stores,
.pn-rec[data-app="on"] .pn-end-brand { display: none; }

/* PC (Q6): 左に写真・動画 (約 6 割)、右に名前・文・ゲーム。下に「このプレイの記録」を幅いっぱいに */
@media (min-width: 1024px) {
  /* 中身の幅は Web 版の決まり (画面幅の 88%) にそろえ、1100〜1600px に収める (1920 でも小さく縮こまらない) */
  html.pn-rec-page { --pn-top-h: 56px; --pn-shell: clamp(1100px, 88vw, 1600px); }
  .pn-top-inner { padding-left: 32px; padding-right: 32px; }
  .pn-logo { width: 84px; }
  .pn-layout { max-width: 720px; padding: 24px 32px 0; }
  .pn-layout > .pn-author { padding: 0 0 4px; }
  /* 上から置く (上下の真ん中に寄せると、広い画面で上に大きな空白ができる。10/20 Emiya「WEB はダサい」の見直し) */
  .pn-layout.has-media {
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr); grid-template-rows: auto 1fr;
    column-gap: 56px; row-gap: 20px; align-items: start; align-content: start;
    max-width: var(--pn-shell); padding-top: 24px;
  }
  .pn-layout.has-media .pn-hero { grid-column: 1; grid-row: 1 / span 2; position: sticky; top: 24px; }
  .pn-layout.has-media > .pn-author { grid-column: 2; grid-row: 1; padding-top: 4px; }
  .pn-layout.has-media .pn-details { grid-column: 2; grid-row: 2; }
  .pn-layout.has-media .pn-frame {
    width: min(100%, calc((100vh - 120px) * var(--pn-ratio, 1)));
    margin: 0 auto; border-radius: 16px;
  }
  /* r13: 一覧は左の列の幅いっぱいに 3〜4 枚ずつ。画面より高くなることがあるので止めない (sticky にしない) */
  .pn-layout.has-media .pn-hero.is-grid { position: relative; top: auto; padding: 0; }
  .pn-hero.is-grid { --pn-album-gap: 8px; --pn-post-max-h: 560px; }
  .pn-post-frame { border-radius: 10px; }
  .pn-details { gap: 20px; padding: 0; }
  .pn-layout:not(.has-media) .pn-details { padding-top: 16px; }
  .pn-avatar { width: 52px; height: 52px; }
  .pn-author-line { font-size: 17px; }
  .pn-date { font-size: 14px; }
  .pn-game-title { font-size: 16px; }
  .pn-title { font-size: 26px; line-height: 1.45; }
  .pn-body { font-size: 17px; line-height: 1.85; }
  .pn-story { max-width: var(--pn-shell); margin-top: 56px; padding: 32px 32px 0; }
  .pn-story-head { margin-bottom: 20px; }
  .pn-story-title { font-size: 20px; }
  .pn-story-sub { font-size: 14px; }
  /* レビューの札は左の列、モーメントは右に 2 列〜。モーメントだけの時は全部の幅に並べる */
  .pn-story-grid.has-review { grid-template-columns: minmax(320px, 4fr) minmax(0, 8fr); gap: 24px; }
  .pn-story-list { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
  .pn-story-item.is-open { grid-column: 1 / -1; }
  .pn-story-thumb { width: 112px; height: 112px; }
  .pn-story-photo, .pn-story-video { height: 320px; }
  .pn-end { margin-top: 64px; }
  .pn-end-inner { padding-left: 32px; padding-right: 32px; }
}

/* r8 (overview §12.2): レビューのプレイ時間・遊んだ機種 */
.pn-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; }
.pn-fact { display: grid; gap: 2px; min-width: 0; }
.pn-fact-label { margin: 0; color: var(--text-sub); font-size: 12px; font-weight: 700; line-height: 1.4; }
.pn-fact-value { margin: 0; color: var(--text); font-size: 15px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.pn-story-review .pn-facts { margin-top: 2px; }

/* r8: このプレイのアルバム。切らずに (それぞれの縦横比のまま) 行ごとに幅をそろえて並べる (行の高さの目安 = --pn-album-h) */
.pn-album { --pn-album-h: 96px; --pn-album-gap: 4px; max-width: 640px; margin: 28px auto 0; padding: 22px 12px 0; border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.pn-album-head { display: grid; gap: 4px; margin: 0 4px 14px; }
.pn-album-title { display: flex; align-items: baseline; flex-wrap: wrap; color: var(--text); font-size: 20px; font-weight: 700; line-height: 1.4; }
.pn-album-count { color: var(--accent-strong); font-variant-numeric: tabular-nums; }
.pn-album-sub { color: var(--text-sub); font-size: 14px; line-height: 1.6; }
.pn-album-grid { display: flex; flex-wrap: wrap; gap: var(--pn-album-gap); }
/* 最後の行は広げない (ほかの行と同じくらいの高さのまま、右に空きを残す) */
.pn-album-grid::after { content: ""; flex: 100 1 0; min-width: 0; }
.pn-album-tile {
  position: relative; flex: var(--a, 1.333) 1 calc(var(--a, 1.333) * var(--pn-album-h)); aspect-ratio: var(--a, 1.333);
  min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 8px; overflow: hidden;
  background: var(--bg-sunken); cursor: zoom-in;
}
.pn-album-video { cursor: pointer; }
.pn-album-img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease, filter .25s ease; }
/* TASK-20261026-003 B5: 読めなかった絵は「?」を出さずに隠す (枠の地の色だけ。share-view.mjs image()) */
.pn-rec img.is-broken, .share-viewer img.is-broken, .pn-av img.is-broken { visibility: hidden; }
.pn-album-empty { background: var(--bg-sunken); }
.pn-album-tile:hover .pn-album-img { transform: scale(1.025); }
.pn-album-tile:focus-visible { outline-offset: 2px; }
.pn-album-play {
  position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: rgb(0 0 0 / .52); box-shadow: inset 0 0 0 2px rgb(255 255 255 / .92), 0 4px 16px rgb(0 0 0 / .3);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); pointer-events: none;
}
.pn-album-play::after {
  content: ""; position: absolute; left: 17px; top: 13px;
  border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff;
}
.pn-album-duration {
  position: absolute; right: 6px; bottom: 6px; padding: 0 7px; border-radius: 999px;
  color: #fff; background: rgb(0 0 0 / .62); font-size: 11px; font-weight: 700; line-height: 20px; font-variant-numeric: tabular-nums; pointer-events: none;
}
.pn-album-spoiler {
  display: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 3px 12px; border-radius: 999px; color: #0b0c0e; background: #fff;
  font-size: 12px; font-weight: 700; line-height: 1.6; white-space: nowrap; box-shadow: 0 2px 10px rgb(0 0 0 / .25); pointer-events: none;
}
.pn-album-tile.is-spoiler { cursor: pointer; }
.pn-album-tile.is-spoiler .pn-album-img { filter: blur(16px) brightness(.72); transform: scale(1.2); }
.pn-album-tile.is-spoiler .pn-album-spoiler { display: block; }
.pn-album-tile.is-spoiler .pn-album-play,
.pn-album-tile.is-spoiler .pn-video-preparing,
.pn-album-tile.is-spoiler .pn-album-duration { display: none; }
.pn-album-rest { margin: 12px 4px 0; color: var(--text-sub); font-size: 13px; }

/* r8: 全画面でアルバムの全部を見る (左右に送る・写真は拡大・動画はその場で再生) */
.pn-av { position: fixed; inset: 0; z-index: 1000; background: #000; color: #fff; font-family: var(--pn-font, system-ui, sans-serif); }
.pn-av [hidden] { display: none !important; }
.pn-av-track {
  position: absolute; inset: 0; display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior: contain; scrollbar-width: none;
}
.pn-av-track::-webkit-scrollbar { display: none; }
.pn-av.is-zoomed .pn-av-track { overflow: hidden; }
.pn-av-slide {
  position: relative; flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always;
  display: grid; place-items: center; overflow: hidden;
  padding: calc(60px + env(safe-area-inset-top)) 0 calc(76px + env(safe-area-inset-bottom));
}
.pn-av-zoom { width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; touch-action: pan-x; cursor: zoom-in; }
.pn-av-slide.is-zoomed .pn-av-zoom { touch-action: none; cursor: grab; }
.pn-av-img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center center; transition: transform .18s ease; user-select: none; -webkit-user-drag: none; }
.pn-av-slide.is-zoomed .pn-av-img { transition: none; }
.pn-av-video { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; background: #000; }
.pn-av-play {
  position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%;
  padding: 0; border: 0; background: none; cursor: pointer;
}
.pn-av-duration {
  position: absolute; left: 50%; top: calc(50% + 52px); transform: translateX(-50%); padding: 2px 10px; border-radius: 999px;
  color: #fff; background: rgb(0 0 0 / .6); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; pointer-events: none;
}
.pn-av-video-slide.is-started .pn-av-duration { display: none; }
.pn-av-spoiler {
  position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center;
}
.pn-av-slide.is-spoiler .pn-av-img,
.pn-av-slide.is-spoiler .pn-av-video { filter: blur(30px) brightness(.6); }
.pn-av-slide.is-spoiler .pn-av-play,
.pn-av-slide.is-spoiler .pn-av-duration { visibility: hidden; }
.pn-av-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: 12px;
  height: calc(60px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 8px 0 20px;
  background: linear-gradient(rgb(0 0 0 / .55), rgb(0 0 0 / 0)); pointer-events: none;
}
.pn-av-counter { margin: 0; color: #fff; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pn-av-close, .pn-av-nav {
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  color: #fff; background: rgb(255 255 255 / .14); cursor: pointer; pointer-events: auto;
}
.pn-av-close { position: relative; width: 44px; height: 44px; margin-left: auto; }
.pn-av-nav { position: absolute; top: 50%; z-index: 3; width: 48px; height: 48px; margin-top: -24px; }
.pn-av-nav::before { content: ""; width: 11px; height: 11px; border-top: 2px solid #fff; border-right: 2px solid #fff; }
.pn-av-nav.prev { left: 16px; }
.pn-av-nav.prev::before { margin-left: 5px; transform: rotate(-135deg); }
.pn-av-nav.next { right: 16px; }
.pn-av-nav.next::before { margin-left: -5px; transform: rotate(45deg); }
.pn-av-nav:disabled, .pn-av-nav[hidden] { display: none; }
.pn-av.is-touch .pn-av-nav { display: none; }
@media (hover: none) { .pn-av-nav { display: none; } }
.pn-av-close:focus-visible, .pn-av-nav:focus-visible, .pn-av-thumb:focus-visible, .pn-av-play:focus-visible { outline: 2px solid #ffcc4d; outline-offset: 2px; }
.pn-av-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: grid; gap: 2px;
  padding: 28px 20px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(rgb(0 0 0 / 0), rgb(0 0 0 / .6)); pointer-events: none;
}
.pn-av-caption[hidden] { display: none; }
.pn-av-caption-title { margin: 0; overflow: hidden; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.pn-av-caption-title:empty { display: none; }
.pn-av-caption-date { margin: 0; color: rgb(255 255 255 / .72); font-size: 12px; line-height: 1.5; }
.pn-av-rail { display: none; }

/* r8: アルバムの PC の並び (行の高さを上げ、1440 で 1 行 4〜5 枚・1920 で 5〜6 枚) */
@media (min-width: 1024px) {
  .pn-album { --pn-album-h: 150px; --pn-album-gap: 8px; max-width: var(--pn-shell); margin-top: 48px; padding: 32px 32px 0; }
  .pn-album-head { margin: 0 0 20px; }
  .pn-album-title { font-size: 24px; }
  .pn-album-sub { font-size: 15px; }
  .pn-album-tile { border-radius: 10px; }
  .pn-album-play { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
  .pn-album-play::after { left: 20px; top: 16px; border-width: 10px 0 10px 17px; }
  /* 全画面: 下に小さな絵の列 (押すとその 1 枚へ) */
  .pn-av-slide { padding: 72px 88px 160px; }
  .pn-av-caption { bottom: 96px; padding: 0 96px 8px; background: none; text-align: center; justify-items: center; }
  .pn-av-rail {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; justify-content: safe center; gap: 8px;
    height: 88px; padding: 12px 24px 16px; overflow-x: auto; scrollbar-width: none; background: rgb(0 0 0 / .5);
  }
  .pn-av-rail::-webkit-scrollbar { display: none; }
  .pn-av-thumb {
    position: relative; flex: none; width: 84px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 8px;
    overflow: hidden; background: #1e2124; opacity: .58; cursor: pointer; transition: opacity .15s ease, border-color .15s ease;
  }
  .pn-av-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
  .pn-av-thumb:hover { opacity: .9; }
  .pn-av-thumb.is-current { border-color: #fff; opacity: 1; }
  .pn-av-thumb.is-spoiler img { filter: blur(8px) brightness(.7); }
  .pn-av-thumb-play::after {
    content: ""; position: absolute; left: 50%; top: 50%; margin: -7px 0 0 -4px;
    border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; filter: drop-shadow(0 1px 3px rgb(0 0 0 / .6));
  }
}
@media (min-width: 1600px) { .pn-album { --pn-album-h: 168px; } }
@media (min-width: 2200px) { .pn-album { --pn-album-h: 200px; } }

/* 写真を全画面で見る */
.share-viewer-open { overflow: hidden; }
.share-viewer { position: fixed; inset: 0; z-index: 1000; background: #000; touch-action: pan-y; }
.share-viewer-stage {
  position: absolute; inset: 0; display: grid; place-items: center;
  padding: calc(56px + env(safe-area-inset-top)) 0 calc(24px + env(safe-area-inset-bottom));
}
.share-viewer-image { max-width: 100%; max-height: 100%; object-fit: contain; }
.share-viewer-head {
  position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px;
  height: calc(56px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 8px 0 20px;
  background: linear-gradient(rgb(0 0 0 / .5), rgb(0 0 0 / 0));
}
.share-viewer-counter { margin: 0; color: #fff; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.share-viewer-close, .share-viewer-nav {
  display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  color: #fff; background: rgb(255 255 255 / .14); cursor: pointer;
}
.share-viewer-close { position: relative; width: 44px; height: 44px; margin-left: auto; }
.share-viewer-x::before, .share-viewer-x::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px; border-radius: 1px; background: #fff;
}
.share-viewer-x::before { transform: rotate(45deg); }
.share-viewer-x::after { transform: rotate(-45deg); }
.share-viewer-nav { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; }
.share-viewer-nav::before { content: ""; width: 11px; height: 11px; border-top: 2px solid #fff; border-right: 2px solid #fff; }
.share-viewer-nav.prev { left: 16px; }
.share-viewer-nav.prev::before { margin-left: 5px; transform: rotate(-135deg); }
.share-viewer-nav.next { right: 16px; }
.share-viewer-nav.next::before { margin-left: -5px; transform: rotate(45deg); }
.share-viewer-close:focus-visible, .share-viewer-nav:focus-visible { outline: 2px solid #ffcc4d; outline-offset: 2px; }
.share-viewer.is-touch .share-viewer-nav { display: none; }
@media (hover: none) { .share-viewer-nav { display: none; } }
.share-viewer-nav[hidden], .share-viewer-counter[hidden] { display: none; }
