/* 発表のページ */
  .deck { padding-block: var(--space-8) var(--space-16); position: relative; isolation: isolate; overflow: clip; }
  .deck .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 20rem;
    gap: var(--space-8) var(--space-12);
    align-items: start;
  }
  @media (width < 1080px) { .deck .wrap { grid-template-columns: minmax(0, 1fr); } }

  /* ---------- プレーヤー (外枠 + iframe) ---------- */
  .player { display: grid; gap: var(--space-4); }
  .player__screen { position: relative; }
  /* LP と同じキャンバスのマス目: 枠が 5×5 マスに収まる */
  .player__screen::before {
    content: "";
    position: absolute; inset: -200%; z-index: -1; pointer-events: none;
    background:
      linear-gradient(to right, var(--line) 1px, transparent 1px) 0 0 / 4% 4%,
      linear-gradient(to bottom, var(--line) 1px, transparent 1px) 0 0 / 4% 4%;
    mask-image: radial-gradient(closest-side, #000 22%, transparent 42%);
  }
  .player__screen .deck-frame { border-color: var(--line-strong); }
  .player__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
  .player__screen iframe:fullscreen { border-radius: 0; }

  /* Full screen where the Fullscreen API is missing (iPhone Safari): stretch the frame over the page. */
  .player__close { display: none; }
  .player[data-pseudo-fullscreen] .player__screen {
    position: fixed; inset: 0; z-index: 1000;
    height: 100dvh;
    display: grid; place-items: center;
    background: #000;
  }
  .player[data-pseudo-fullscreen] .player__screen::before { display: none; }
  .player[data-pseudo-fullscreen] .deck-frame { width: min(100vw, calc(100dvh * 16 / 9)); border: 0; border-radius: 0; background: #000; }
  .player[data-pseudo-fullscreen] .player__close:not([hidden]) {
    display: grid; place-items: center;
    position: absolute; z-index: 1;
    top: max(var(--space-3), env(safe-area-inset-top)); right: max(var(--space-3), env(safe-area-inset-right));
    width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: rgb(0 0 0 / 0.6); color: #fff; cursor: pointer;
  }
  :root.is-pseudo-fullscreen { overflow: hidden; }

  /* 作者のページが求めた外部ページを開く前の確認 */
  .external-open { max-width: min(32rem, calc(100vw - 2rem)); padding: var(--space-6); border: var(--border-hairline) solid var(--line-strong); border-radius: var(--radius-m); background: var(--surface); color: var(--ink); }
  .external-open:modal { overscroll-behavior: contain; }
  .external-open::backdrop { overflow: hidden; overscroll-behavior: contain; background: rgb(0 0 0 / 0.5); }
  .external-open h2 { margin: 0 0 var(--space-3); font-size: 1.125rem; }
  .external-open p { margin: 0 0 var(--space-4); }
  .external-open dl { margin: 0 0 var(--space-5); display: grid; gap: var(--space-1); }
  .external-open dt { font-size: 0.8125rem; color: var(--ink-muted); }
  .external-open dd { margin: 0 0 var(--space-2); overflow-wrap: anywhere; font-family: var(--font-mono); }
  .external-open__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--space-3); }

  .player__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
  .player__bar .player__count { margin-left: auto; }
  @media (width < 720px) { .player__bar .path { order: -1; flex-basis: 100%; margin: 0 12px var(--space-2); } }
  .icon-btn {
    display: inline-grid; place-items: center; flex: none;
    width: 40px; height: 40px;
    border: var(--border-hairline) solid var(--line-strong);
    border-radius: var(--radius-m);
    background: var(--surface); color: var(--ink); cursor: pointer;
  }
  .icon-btn:hover { border-color: var(--ink); }

  /* 停止点の道筋 (横)。点の数は iframe の ready で決まる */
  .path { flex: 1; position: relative; height: 24px; margin: 0 var(--space-4); list-style: none; padding: 0; }
  .path::before, .path::after { content: ""; position: absolute; left: 0; top: 11px; height: 2px; }
  .path::before { right: 0; background: var(--line-strong); }
  .path::after {
    width: calc(var(--p, 0) * 100%);
    background: var(--signal);
    transition: width 0.9s cubic-bezier(0.65, 0, 0.35, 1);
    @media (prefers-reduced-motion: reduce) { transition-duration: 0s; }
  }
  .path li { position: absolute; top: 0; left: calc(var(--x) * 100%); translate: -50% 0; z-index: 1; }
  .path button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
  .path button::before {
    content: ""; box-sizing: border-box; width: 10px; height: 10px; border-radius: 50%;
    background: var(--paper); border: 2px solid var(--line-strong);
    transition: width 0.3s, height 0.3s;
  }
  .path button:hover::before { border-color: var(--ink); }
  .path [data-state="past"] button::before { background: var(--signal); border-color: var(--signal); }
  .path [data-state="current"] button::before { width: 16px; height: 16px; background: var(--signal); border-color: var(--signal); outline: 4px solid var(--paper); }
  .player__count { font-size: 14px; color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

  /* ---------- 横の情報 ---------- */
  .aside { display: grid; gap: var(--space-6); }
  .aside__event { font-size: 14px; color: var(--ink-muted); }
  .aside h1 { font-size: clamp(28px, 3vw, 36px); margin-top: calc(-1 * var(--space-4)); }
  .author { display: flex; align-items: center; gap: var(--space-3); color: inherit; text-decoration: none; }
  .author:hover strong { text-decoration: underline; }
  .author > .author__details { display: grid; line-height: 1.4; }
  .author small { font-size: 13px; color: var(--ink-muted); }
  .facts { display: grid; grid-template-columns: auto 1fr; gap: var(--space-1) var(--space-4); margin: 0; font-size: 14px; }
  .facts dt { color: var(--ink-muted); }
  .facts dd { margin: 0; }
  .actions { display: grid; gap: var(--space-2); }
  .actions .btn { justify-content: flex-start; }
  .actions .btn .meta { margin-left: auto; font-weight: 400; font-size: 13px; color: var(--ink-muted); }
  .direct { font-size: 13px; color: var(--ink-muted); line-height: 1.6; }
  .direct a { word-break: break-all; }

  /* 作者にだけ出す欄 */
  .owner-panel {
    display: grid;
    gap: var(--space-4);
    padding: var(--space-6);
    border: var(--border-hairline) solid var(--line);
    border-radius: var(--radius-l);
    background: var(--surface);
  }
  .owner-panel h2 { font-size: 15px; }
  .status-row { display: flex; align-items: center; gap: var(--space-2); font-size: 14px; }
  .status-row .icon { width: 18px; height: 18px; flex: none; }
  .status-row .muted { color: var(--ink-muted); margin-left: auto; }
  .pill { display: inline-flex; align-items: center; gap: var(--space-1); padding: 2px var(--space-3); border: var(--border-hairline) solid var(--line-strong); border-radius: var(--radius-pill); font-size: 13px; }
  .owner-panel .row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
  .owner-panel .btn--quiet { padding-inline: 0; min-height: 36px; }

  /* ---------- 下の段 ---------- */
  .below { border-top: var(--border-hairline) solid var(--line); padding-block: var(--space-12) var(--space-16); }
  .below .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--space-12); }
  @media (width < 1080px) { .below .wrap { grid-template-columns: minmax(0, 1fr); } }
  .about { display: grid; gap: var(--space-4); max-width: 40rem; align-content: start; }
  .about h2, .versions h2, .more h2 { font-size: 18px; line-height: 1.5; }
  .about p { color: var(--ink); }
  .versions { display: grid; gap: var(--space-3); align-content: start; }
  .versions ol { list-style: none; margin: 0; padding: 0; display: grid; }
  .versions li { display: flex; align-items: baseline; gap: var(--space-3); padding-block: var(--space-2); border-bottom: var(--border-hairline) solid var(--line); font-size: 14px; }
  .versions li:first-child { border-top: var(--border-hairline) solid var(--line); }
  .versions .v { font-weight: 700; min-width: 3em; }
  .versions .when { color: var(--ink-muted); margin-left: auto; }
  .more { padding-bottom: var(--space-16); }
  .more .wrap { display: grid; gap: var(--space-6); }
  .deck-grid { display: grid; gap: var(--space-8) var(--space-6); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .thumb { position: absolute; inset: 0; padding: 9% 8%; display: flex; flex-direction: column; justify-content: flex-end; gap: 6%; container-type: inline-size; }
  .thumb b { font-family: var(--font-display); font-weight: 800; font-size: 9cqw; line-height: 1.05; letter-spacing: -0.03em; }
  .thumb small { font-size: 4cqw; color: var(--ink-muted); }
  .thumb--dark { background: var(--ink); color: var(--paper); }
  .thumb--dark small { color: color-mix(in oklab, var(--paper) 70%, var(--ink)); }
  .toast {
    position: fixed; left: 50%; bottom: var(--space-6); translate: -50% 0;
    padding: var(--space-3) var(--space-6); border-radius: var(--radius-m);
    background: var(--ink); color: var(--paper); font-size: 14px;
    opacity: 0; pointer-events: none; transition: opacity 0.2s;
  }
  .toast[data-show] { opacity: 1; }
