/* オープニングのスタイルが style.css にあった頃、その .cap の指定がこのページにも当たっていた（intro.css へ移したあとも見た目を変えないよう、その分を残す） */
.cap { --blur: 6px; font-size: clamp(1.1rem, 2.4vw, 1.4rem); line-height: 1.75; }
.cap + .cap { margin-top: .45em; }
.cap.em { font-size: clamp(1.45rem, 4.6vw, 2.1rem); line-height: 1.5; }
.cap.big { font-size: clamp(1.55rem, 5.4vw, 2.5rem); line-height: 1.45; }
.cap.sub { font-family: var(--font-body); font-weight: 400; font-size: clamp(.95rem, 2vw, 1.1rem); line-height: 1.85; color: var(--ink-2); margin-top: .9em; letter-spacing: .05em; }
.game { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
@media (min-width: 940px) { .game { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; } }
.post { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; max-width: 620px; }
.post:focus-visible { border-radius: 14px; outline-offset: -2px; }
.post .who { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: .86rem; }
.post .av { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #e3a94a, #d4442c); }
.post .loc { font-size: .8rem; color: var(--ink-3); display: block; }
.photo { position: relative; cursor: zoom-in; touch-action: manipulation; }
.photo svg { width: 100%; height: auto; display: block; }
.cap { padding: 12px 14px 16px; font-size: .9rem; line-height: 1.8; }
.cap .tm { display: block; font-size: .8rem; color: var(--ink-3); margin-top: 4px; }
.hot { cursor: zoom-in; }
.hot:focus { outline: none; }
/* 枠は、フォーカスの印と、指で押せる範囲を兼ねる（細い物も押しやすくするため） */
.fr { fill: none; stroke: #1b1b1b; stroke-width: 3; stroke-dasharray: 8 5; opacity: 0; pointer-events: all; filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1.5px #fff); }
.hot:focus-visible .fr { opacity: 1; }
.ring { fill: none; stroke: #d4442c; stroke-width: 4; opacity: 0; transform-box: fill-box; transform-origin: center; }
.found .ring { opacity: 1; animation: ring .45s cubic-bezier(.3, 1.6, .5, 1); }
.missed .ring { opacity: 1; stroke-dasharray: 6 6; stroke: #8b8b8b; }
@keyframes ring { from { transform: scale(1.8); opacity: 0; } }
.txt-hot { border-radius: 3px; transition: background .3s, box-shadow .3s; cursor: zoom-in; }
.txt-hot.found { background: rgba(212, 68, 44, .16); box-shadow: 0 0 0 2px #d4442c; }
.txt-hot.missed { box-shadow: 0 0 0 2px #8b8b8b; }
/* 手がかりではない場所を押したときの印。写真のどの色の上でも見えるよう、白い縁を付ける */
.miss { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 3px solid rgba(40, 40, 40, .8); border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), inset 0 0 0 2px rgba(255, 255, 255, .85); pointer-events: none; animation: miss .8s ease forwards; }
@keyframes miss { 40% { transform: scale(1.15); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.memo { background: #fffdf4; border: 1px solid #e8dfc2; border-radius: 6px; padding: 24px 22px; font-family: var(--font-head); color: #3a3426; box-shadow: 0 10px 30px rgba(0,0,0,.06); background-image: repeating-linear-gradient(transparent 0 31px, #efe6cc 31px 32px); line-height: 32px; }
:root[data-theme="dark"] .memo { background-color: #2a2720; color: #e9e2cc; border-color: #4a4433; background-image: repeating-linear-gradient(transparent 0 31px, #3a3528 31px 32px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .memo { background-color: #2a2720; color: #e9e2cc; border-color: #4a4433; background-image: repeating-linear-gradient(transparent 0 31px, #3a3528 31px 32px); } }
.memo h3 { font-size: 1rem; margin: 0 0 4px; line-height: 32px; }
.memo ul { list-style: none; padding: 0; margin: 0; min-height: 224px; }
.memo li { margin: 0; animation: write .5s ease both; word-break: auto-phrase; text-wrap: pretty; }
.memo li b { color: #b0301b; }
.memo li.missed { color: #6b6455; }
/* 最後に、手がかりをつなげた結論を書き足す */
.memo li.concl { margin-top: 32px; color: #b0301b; font-size: 1.05rem; }
.memo li.concl::before { content: "→ "; }
:root[data-theme="dark"] .memo li.concl { color: #ff8f7e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .memo li.concl { color: #ff8f7e; } }
.memo li.missed b { text-decoration: underline dashed; text-underline-offset: .25em; text-decoration-thickness: 1px; }
:root[data-theme="dark"] .memo li b { color: #ff8f7e; }
:root[data-theme="dark"] .memo li.missed { color: #b5ad98; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .memo li b { color: #ff8f7e; } :root:not([data-theme="light"]) .memo li.missed { color: #b5ad98; } }
@keyframes write { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.hud { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-family: var(--mono); font-size: .9rem; }
.hud .t { font-size: 1.4rem; }
.hud .t.low { color: var(--danger); }
.end { margin-top: 24px; }
/* 見つけた手がかりを、押した写真の上に短く示す（メモが写真の下にある狭い画面のため） */
.tip { position: absolute; left: 8px; right: 8px; bottom: 8px; margin: 0; padding: 8px 12px; border-radius: 10px; background: rgba(27, 27, 27, .9); color: #fff; font-size: .88rem; line-height: 1.6; pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
.tip b { color: #ffb4a6; }
.tip.top { top: 8px; bottom: auto; transform: translateY(-6px); }
/* 写真が小さい画面では、説明を詰めて組み、写真を隠す範囲を小さくする */
@media (max-width: 600px), (orientation: landscape) and (max-height: 560px) { .tip { left: 6px; right: 6px; padding: 5px 10px; font-size: .8rem; line-height: 1.55; } .tip.top { top: 6px; } }
.tip.on { opacity: 1; transform: none; }
@media (min-width: 940px) { .tip { display: none; } }
@media (prefers-reduced-motion: reduce) { .tip { transition: none; } }
@media (max-width: 600px) { .post { margin-inline: -8px; } }
/* 横向きのスマートフォンでは高さが足りないため、写真の横に投稿者と本文を並べ、残り時間と写真を一画面に収める */
@media (orientation: landscape) and (max-height: 560px) {
  .hud { margin-bottom: 8px; }
  .post { max-width: none; display: grid; grid-template-columns: minmax(0, calc((100vh - 132px) * 4 / 3)) minmax(0, 1fr); grid-template-columns: minmax(0, calc((100svh - 132px) * 4 / 3)) minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; }
  .post .who { grid-area: 1 / 2; }
  .photo { grid-area: 1 / 1 / 3 / 2; align-self: stretch; background: #cdb79a; }
  .cap { grid-area: 2 / 2; padding-top: 0; }
}
@media (pointer: coarse) { .hud .btn { min-height: 44px; } }
.end .big { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; margin-bottom: 8px; }
.end .big:focus { outline: none; }
.end .rule { margin-top: 14px; padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--accent-soft); font-weight: 700; line-height: 1.8; word-break: auto-phrase; text-wrap: pretty; }
.end .btns { margin-top: 20px; }
.end .rank { font-weight: 700; color: var(--accent); }
/* 横に並ぶ広い画面では、写真の上の「もう一度」が見えているため、結果の下には出さない */
@media (min-width: 940px) { .end .btns { display: none; } }
