/* 全案共通の土台: 日本語の組み方と、拡大表示（.sv）・鍵（.lk）・投稿画面（.ad）の骨格。色と書体は各案が変数で決める */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; }
img { display: block; max-width: 100%; }
/* 画像の保存を止める: iPhone の長押しのメニュー・選択・ドラッグを出さない（右クリックと Android の長押しは shots.js） */
img, a:has(img) { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
button, input, textarea, select { font: inherit; color: inherit; } /* textarea はブラウザの既定が等幅の字なので、ここで揃える（段 6 で踏んだ） */
button { cursor: pointer; }
a { color: inherit; }
:lang(ja) { line-break: strict; overflow-wrap: anywhere; }
@supports (text-autospace: normal) { :lang(ja) { text-autospace: normal; } }
@supports (text-spacing-trim: normal) { :lang(ja) { text-spacing-trim: normal; } }
.ic { flex: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus, currentColor); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---- 拡大表示 ---- */
html.sv-open { overflow: hidden; }
.sv { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: var(--sv-bg, #000); color: var(--sv-fg, #fff); }
.sv-bar { display: flex; align-items: center; gap: 12px; padding: 8px 8px 6px 16px; }
.sv-head { flex: 1; min-width: 0; }
.sv-title, .sv-sub { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-title { font-size: 13px; }
.sv-sub { font-size: 11px; opacity: .7; }
.sv-count { margin: 0; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sv-close, .sv-prev, .sv-next { display: grid; place-items: center; min-width: 44px; height: 44px; border: 0; background: none; padding: 0; }
.sv-prev:disabled, .sv-next:disabled { opacity: .25; cursor: default; }
.sv-lines { display: flex; gap: 3px; list-style: none; margin: 0; padding: 0 12px 6px; }
.sv-lines li { flex: 1; height: 2px; background: currentColor; opacity: .22; }
.sv-lines li.on { background: var(--sv-accent, currentColor); opacity: 1; }
.sv-track { flex: 1; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior: contain; scrollbar-width: none; min-height: 0; }
.sv-track::-webkit-scrollbar { display: none; }
.sv-slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; overflow-y: auto; overscroll-behavior: contain; display: flex; justify-content: center; align-items: flex-start; }
.sv-img { width: min(100%, 520px); height: auto; min-height: 40vh; cursor: zoom-out; }
.sv-end { align-items: center; }
.sv-nextpost { display: grid; justify-items: center; gap: 10px; width: min(70%, 240px); text-decoration: none; text-align: center; }
.sv-nextcover { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: grid; place-items: center; }
.sv-nexttitle { font-size: 13px; }
.sv-nextlabel { font-size: 12px; opacity: .7; }
.sv-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 8px calc(6px + env(safe-area-inset-bottom)); }
.sv-close-low { font-size: 13px; padding: 0 18px; }
.sv-bare .sv-bar, .sv-bare .sv-nav, .sv-bare .sv-lines { display: none; }
.sv-single .sv-prev, .sv-single .sv-next, .sv-single .sv-lines { visibility: hidden; }

/* ---- 鍵 ---- */
.lk { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: var(--lk-scrim, rgba(0, 0, 0, .6)); }
.lk-card { width: min(100%, 340px); margin: 0; }
.lk-h { margin: 0; }
.lk-field { display: grid; gap: 6px; }
.lk-input { width: 100%; font-size: 16px; }
.lk-actions { display: flex; justify-content: flex-end; gap: 8px; }
.lk-err { margin: 0; }

/* ---- 投稿画面 ---- */
.ad { display: grid; gap: 22px; max-width: 560px; margin: 0 auto; }
.ad-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ad-back { display: grid; place-items: center; width: 40px; height: 40px; }
.ad-h { margin: 0; flex: 1; }
.ad-sec { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.ad-label { margin: 0; padding: 0; }
.ad-input { width: 100%; font-size: 16px; }
.ad-label small { margin-left: 6px; font-weight: 400; }
.ad-subsec { display: grid; gap: 8px; min-width: 0; }
.ad-area { resize: vertical; min-height: 5.2em; line-height: 1.6; }
/* スクショの並び（6 回目）: 横に流れるつまみ。あいだの ＋ で中扉、つまみを押すと 1 枚の編集の札 */
.ad-strip { display: flex; align-items: flex-start; overflow-x: auto; list-style: none; margin: 0 calc(var(--gut, 16px) * -1); padding: 2px var(--gut, 16px) 4px; scrollbar-width: none; }
.ad-strip::-webkit-scrollbar { display: none; }
.ad-tile { flex: none; width: 78px; }
.ad-tilebtn { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: none; color: inherit; cursor: pointer; }
.ad-tilebtn img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; }
.ad-tilebtn img.ad-blurred { filter: blur(5px) brightness(.7); }
.ad-tilebtn:focus-visible { outline: 2px solid var(--focus, currentColor); outline-offset: 2px; }
.ad-no { position: absolute; top: 4px; left: 4px; font-size: 11px; font-variant-numeric: tabular-nums; }
.ad-flags { position: absolute; left: 4px; bottom: 4px; display: flex; gap: 3px; }
.ad-flags i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, .7); color: #fff; }
.ad-flags .ic { width: 13px; height: 13px; }
.ad-flag-paint::before { content: ""; width: 11px; height: 6px; background: #000; box-shadow: 0 0 0 1.2px #fff; }
.ad-size { display: block; margin-top: 2px; font-size: 10px; text-align: center; font-variant-numeric: tabular-nums; opacity: .75; }
.ad-gap { flex: none; display: flex; }
.ad-gap button { display: grid; place-items: center; width: 36px; height: calc(78px * 16 / 9); padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.ad-gap .ic { width: 16px; height: 16px; }
.ad-gap button:focus-visible { outline: 2px solid var(--focus, currentColor); outline-offset: -2px; }
.ad-midcard { flex: none; display: flex; }
.ad-midcard button { display: grid; place-items: center; width: 54px; height: calc(78px * 16 / 9); padding: 10px 4px; overflow: hidden; color: inherit; cursor: pointer; }
.ad-midcard span { max-height: 100%; overflow: hidden; writing-mode: vertical-rl; font-size: 12px; line-height: 1.6; }
/* 畳む所: 端の印（はじめ・終わり）と札。中に入れたつまみ（とあいだ）は上に細い線を引いて、どこまでが中かを見せる */
.ad-strip > li { padding-top: 6px; }
.ad-strip > li.ad-in { background: linear-gradient(var(--ad-fold, currentColor), var(--ad-fold, currentColor)) top / 100% 2px no-repeat; }
.ad-edge button { width: 44px; }
.ad-edge .ic { width: 20px; height: 20px; }
.ad-foldcard { flex: none; display: flex; }
.ad-foldcard button { display: grid; align-content: center; justify-items: center; gap: 6px; width: 64px; height: calc(78px * 16 / 9); padding: 8px 4px; border: 1px dashed; border-radius: 4px; background: none; color: inherit; cursor: pointer; }
.ad-foldcard .ic { width: 18px; height: 18px; }
.ad-foldname { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; font-size: 11px; font-weight: 600; line-height: 1.35; text-align: center; overflow-wrap: anywhere; }
.ad-foldcard small { font-size: 10px; opacity: .75; }
.ad-foldcard button:focus-visible, .ad-midcard button:focus-visible { outline: 2px solid var(--focus, currentColor); outline-offset: 2px; }
/* あいだの ＋ を押したときの選び（中扉か畳む所） */
.ad-choices { display: grid; gap: 10px; }
.ad-choice { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 2px 12px; min-height: 64px; padding: 12px 14px; border: 1px solid; border-radius: 4px; background: none; color: inherit; text-align: start; cursor: pointer; }
.ad-choice .ic { grid-row: 1 / 3; width: 22px; height: 22px; }
.ad-choice b { font-size: 14px; }
.ad-choice small { font-size: 11.5px; opacity: .75; }
/* 畳む所の中に入れるスクショ: 続くつまみを押した 1 枚まで */
.ad-takes { display: flex; gap: 6px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 4px; scrollbar-width: none; }
.ad-takes::-webkit-scrollbar { display: none; }
.ad-take { position: relative; flex: none; display: grid; place-items: center; width: 52px; height: calc(52px * 16 / 9); border-radius: 4px; overflow: hidden; cursor: pointer; }
.ad-take input { position: absolute; inset: 0; margin: 0; opacity: 0; }
.ad-take img { width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: .45; transition: opacity .15s; }
.ad-take.in img { opacity: 1; }
.ad-take .ad-no { top: 4px; left: 4px; }
.ad-take-none { width: auto; padding: 0 12px; border: 1px solid; font-size: 12px; }
.ad-take:has(input:checked) { box-shadow: 0 0 0 2px var(--focus, currentColor); }
.ad-take:has(input:focus-visible) { outline: 2px solid var(--focus, currentColor); outline-offset: 2px; }
/* 前にも出した画像（同じスクショの照合）: つまみの印と下の 1 行 */
.ad-dup { display: flex; gap: 8px; align-items: flex-start; }
.ad-dup .ic { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.ad-dup a { color: inherit; }
/* 1 枚の編集・中扉・見え方の札（下から出る） */
html.ad-sheet-open { overflow: hidden; }
.ad-sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .55); }
.ad-sheet-card { display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; border-radius: 8px 8px 0 0; background: var(--bg, #fff); color: var(--text, #111); }
.ad-sheet-head { display: flex; align-items: center; gap: 8px; padding: 6px 4px 2px 18px; }
.ad-sheet-h { flex: 1; min-width: 0; margin: 0; font-size: 15px; }
.ad-sheet-x { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: inherit; }
.ad-sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: start; gap: 12px; padding: 4px 18px 16px; }
.ad-sheet-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); }
.ad-sheet-foot .ad-sdanger { margin-right: auto; }
.ad-sbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid; background: none; color: inherit; font-size: 13px; cursor: pointer; }
.ad-sbtn:disabled { opacity: .35; cursor: default; }
.ad-sbtn .ic { width: 16px; height: 16px; }
.ad-sdanger { color: #e5534b; }
.ad-paint { display: grid; place-items: center; padding: 10px; border-radius: 6px; background: #111; }
.ad-paintbox { position: relative; line-height: 0; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.ad-paint-off .ad-paintbox { touch-action: auto; cursor: default; }
.ad-paintbox img { display: block; max-width: 100%; max-height: 50vh; max-height: 50dvh; width: auto; height: auto; pointer-events: none; -webkit-touch-callout: none; }
.ad-rects i { position: absolute; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .75); }
.ad-paintbar { display: flex; align-items: flex-start; gap: 10px; }
.ad-paintbar .ad-hint { flex: 1; }
.ad-moves { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-moves .ad-sdanger { margin-left: auto; }
.sv-veil { position: relative; }
.ad-pickrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ad-pick { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.ad-file { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.ad-pick:has(.ad-file:focus-visible) { outline: 2px solid var(--focus, currentColor); outline-offset: 2px; }
.ad-hint { margin: 0; }
.ad-coverrow { display: flex; gap: 14px; align-items: flex-start; }
.ad-cover { flex: none; width: 96px; aspect-ratio: 3 / 4; object-fit: cover; }
.ad-coverctl { flex: 1; display: grid; gap: 8px; min-width: 0; }
.ad-range { width: 100%; }
.ad-sub { padding-left: 52px; }
.ad-catrow { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-cat { position: relative; cursor: pointer; }
.ad-cat input { position: absolute; opacity: 0; inset: 0; }
.ad-cat:has(input:focus-visible) { outline: 2px solid var(--focus, currentColor); outline-offset: 2px; }
/* 編（編が 2 つ以上あるキャラだけ）・部屋・ハッシュタグの札 */
.ad-chiprow, .ad-tagpick { display: flex; flex-wrap: wrap; gap: 8px; }
/* 投稿画面で hidden にした物（表紙の位置・中扉・題も伏せる・編など）は、display を指定していても隠す */
.ad [hidden] { display: none !important; }
.ad-chip { position: relative; cursor: pointer; }
.ad-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.ad-chip span, .ad-tag { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; }
.ad-chip:has(input:focus-visible) { outline: 2px solid var(--focus, currentColor); outline-offset: 2px; }
/* 黒に近いキャラの色は、選んだときだけ縁を強める（--e は var(--dark-edge) を指すので、ここで差し替えると効く） */
.cat[aria-current="page"], .ad-cat:has(input:checked) { --dark-edge: var(--dark-edge-sel, transparent); }
.ad-switches { display: grid; gap: 4px; }
.ad-switch { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 0; cursor: pointer; }
.ad-switch input { position: absolute; opacity: 0; }
.ad-switch:has(input:focus-visible) .ad-sw { outline: 2px solid var(--focus, currentColor); outline-offset: 2px; }
.ad-sw { flex: none; position: relative; width: 40px; height: 24px; }
.ad-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; transition: transform .15s; }
.ad-switch input:checked + .ad-sw::after { transform: translateX(16px); }
.ad-swtext { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.ad-swtext small { flex-basis: 100%; }
.ad-err { margin: 0; }
/* 分け方・見せ方の見出し（legend を浮かせて、枠の上でなく中の 1 行目にする） */
.ad-glabel { float: left; width: 100%; margin: 0; padding: 14px 0 0; border-top: 1px solid; font-size: 14px; font-weight: 700; }
.ad-group { gap: 16px; }
/* 細かい設定（畳む） */
.ad-more-sum { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; min-height: 44px; padding: 14px 0 0; border-top: 1px solid; cursor: pointer; list-style: none; font-size: 14px; font-weight: 700; }
.ad-more-sum::-webkit-details-marker { display: none; }
.ad-more-sum::after { content: ""; grid-column: 2; grid-row: 1; width: 8px; height: 8px; margin-right: 6px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.ad-more[open] .ad-more-sum::after { transform: translateY(2px) rotate(-135deg); }
.ad-more-sum small { grid-column: 1 / -1; grid-row: 2; font-size: 11.5px; font-weight: 400; }
.ad-more-sum:focus-visible { outline: 2px solid var(--focus, currentColor); outline-offset: 2px; }
.ad-more-body { display: grid; gap: 20px; padding-top: 14px; }
.ad-delete { min-height: 44px; padding: 0 16px; border: 1px solid #e5534b; background: none; color: #e5534b; justify-self: start; }
/* 下書きの行（頭）と、新しい部屋 */
.ad-saved { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin: 0; padding-left: 50px; font-size: 11px; }
.ad-linkbtn { min-height: 40px; padding: 0; border: 0; background: none; color: inherit; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ad-newtalk { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-newtalk[hidden] { display: none; }
.ad-newtalk .ad-input { flex: 1; min-width: 0; }
.ad-newtalk .ad-talkid { flex: 0 0 5.5em; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.ad-newtalk .ad-hint, .ad-newtalk .ad-err { flex-basis: 100%; margin: 0; }
.ad-talkurl { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.ad-newtalkbtn { gap: 4px; cursor: pointer; }
.ad-newtalkbtn .ic { width: 14px; height: 14px; }
/* 足もと: 見え方の 1 行と、確かめる・投稿する */
.ad-foot { position: sticky; bottom: 0; z-index: 5; display: grid; gap: 6px; padding: 10px 0 calc(12px + env(safe-area-inset-bottom)); }
.ad-state { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 6px; margin: 0; font-size: 11.5px; }
.ad-dot { opacity: .5; }
.ad-footrow { display: flex; gap: 10px; }
.ad-preview { flex: none; min-height: 48px; padding: 0 14px; border: 1px solid; background: none; color: inherit; font-size: 13px; cursor: pointer; }
.ad-submit { flex: 1; width: 100%; min-height: 48px; }

/* ---- ぼかし（Parasite の Gallery と同じ見せ方: ぼかして暗くし、目のマーク・説明・「表示」を重ねる） ----
   ぼかす箱に data-veil と data-veiled（S.veilAttr）、ぼかす絵に .vl-media、重ねる物は S.veil。箱は position を持つこと */
.vl-media { transition: filter .45s ease, transform .45s ease; }
[data-veiled] .vl-media { filter: blur(28px) brightness(.55); transform: scale(1.15); }
.vl { position: absolute; inset: 0; z-index: 3; container-type: inline-size; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; background: rgba(11, 11, 13, .22); color: #fff; text-align: center; pointer-events: none; }
.vl-eye { flex: none; width: 28px; height: 28px; background: var(--va, #ff4f9a);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M3 3l18 18M10.6 5.1A9.7 9.7 0 0 1 12 5c5 0 9 5 10 7a14.6 14.6 0 0 1-3.1 3.9M6.6 6.6C4.4 8 2.8 10.2 2 12c1 2 5 7 10 7 1.9 0 3.6-.6 5.1-1.5M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M3 3l18 18M10.6 5.1A9.7 9.7 0 0 1 12 5c5 0 9 5 10 7a14.6 14.6 0 0 1-3.1 3.9M6.6 6.6C4.4 8 2.8 10.2 2 12c1 2 5 7 10 7 1.9 0 3.6-.6 5.1-1.5M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E") center / contain no-repeat; }
.vl-text { margin: 0; font-size: 12px; line-height: 1.7; letter-spacing: .06em; word-break: keep-all; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.vl-btn { pointer-events: auto; min-width: 120px; min-height: 44px; padding: 0 20px; border: 1px solid var(--va, #ff4f9a); border-radius: 0; background: rgba(11, 11, 13, .82); color: #fff; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-indent: .2em; transition: border-color .25s, box-shadow .25s; }
.vl-btn:hover, .vl-btn:focus-visible { border-color: color-mix(in srgb, var(--va, #ff4f9a) 55%, #fff); box-shadow: 0 0 18px color-mix(in srgb, var(--va, #ff4f9a) 35%, transparent); }
.vl-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* 小さな表紙の上: 目と「表示」だけ（説明は読み上げにだけ残す）。表紙が広いときは説明も出す */
.vl-s { gap: 8px; padding: 8px; }
.vl-s .vl-eye { width: 20px; height: 20px; }
.vl-s .vl-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vl-s .vl-btn { min-width: 0; min-height: 36px; padding: 0 14px; font-size: 11.5px; letter-spacing: .16em; text-indent: .16em; }
@container (min-width: 210px) {
  .vl-s { gap: 10px; }
  .vl-s .vl-eye { width: 24px; height: 24px; }
  .vl-s .vl-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; font-size: 11.5px; }
}

/* ---- 写真の組（1 カラムの案。S.photoset） ----
   2 枚ずつの段・奇数の最後は全幅。長いスクショは --cap（幅の倍数）で切り、下を薄く消す。間と角は各案が --ps-gap・--ps-r で決める */
.ps { position: relative; }
.ps-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ps-gap, 4px); align-items: stretch; list-style: none; margin: 0; padding: 0; container-type: inline-size; }
.ps-wide { grid-column: 1 / -1; }
/* 2 枚並びは行の高さを揃える（短い方の下は地の色。明るい隙間を出さない） */
.ps-it { display: flex; flex-direction: column; }
.ps-shot { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; width: 100%; padding: 0; border: 0; overflow: hidden; border-radius: var(--ps-r, 0); background: var(--ps-bg, #222); cursor: zoom-in; }
.ps-it .ps-shot { max-height: calc((50cqw - var(--ps-gap, 4px) / 2) * var(--cap)); }
.ps-wide .ps-shot { max-height: calc(100cqw * var(--cap)); }
.ps-shot img { flex: none; width: 100%; height: auto; }
.ps-cut .ps-shot::after { content: ""; position: absolute; inset: auto 0 0; height: 22%; background: linear-gradient(transparent, var(--ps-fade, rgba(0, 0, 0, .75))); pointer-events: none; }

/* ---- お知らせ ---- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translateX(-50%); margin: 0; padding: 10px 16px; max-width: calc(100% - 32px); font-size: 13px; }
