/* モテ盛り：劇画の取調室（オーナー決定 2026-12-04）。スマホ縦持ち優先（幅360px〜）。外部フォントなし
   墨の黒・紙の白・朱の赤・金。コマ（太い墨の枠＋影）、集中線、スクリーントーン、吹き出し、擬音 */
:root {
  --ink: #16171d;
  --ink2: #2a2c36;
  --paper: #f5f0e4;
  --paper2: #ebe3d0;
  --red: #c8262b;
  --red-d: #8f1418;
  --gold: #f0c048;
  --gold-d: #a77b1c;
  --blue: #2b4f86;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "HGS明朝E", "MS PMincho", "Noto Serif JP", serif;
  --tone: radial-gradient(#0000001c 1px, transparent 1.3px);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  color: var(--ink);
  background: var(--ink) radial-gradient(#ffffff10 1px, transparent 1.4px) 0 0 / 7px 7px;
  line-height: 1.6;
}
main { max-width: 560px; margin: 0 auto; padding: 0 10px 24px; }
button, .btn {
  font: inherit; cursor: pointer; border: 2px solid var(--ink); background: #fff; color: var(--ink);
  border-radius: 4px; padding: 6px 12px; text-decoration: none; display: inline-block; font-weight: 700;
  box-shadow: 2px 2px 0 var(--ink); transition: transform .05s;
}
button:active, .btn:active { transform: translate(2px, 2px); box-shadow: none; }
button:disabled { opacity: .35; cursor: default; }
.primary { background: var(--red); border-color: var(--ink); color: #fff; }

/* コマ（漫画の枠） */
.panel { background: var(--paper); border: 3px solid var(--ink); box-shadow: 5px 5px 0 #000; position: relative; }

/* ---- 上の帯 ---- */
.top { position: relative; background: #0d0e12; color: #fff; text-align: center; padding: 12px 12px 10px; border-bottom: 4px solid var(--red); overflow: hidden; }
.top::before { /* 集中線 */
  content: ""; position: absolute; inset: -60%;
  background: repeating-conic-gradient(from 0deg at 50% 50%, #ffffff12 0 2deg, transparent 2deg 9deg);
}
.top-in { position: relative; }
.file { margin: 0; font-size: 11px; letter-spacing: .4em; color: var(--gold); }
.logo {
  margin: 0; font-family: var(--mincho); font-size: 44px; line-height: 1.1; font-weight: 900; letter-spacing: .06em;
  color: var(--gold); -webkit-text-stroke: 1px #000; text-shadow: 3px 3px 0 var(--red-d), 5px 5px 0 #000;
  transform: rotate(-3deg);
}
.catch { margin: 4px 0 0; font-size: 14px; font-weight: 700; }
.sound {
  position: absolute; top: 8px; right: 8px; font-size: 12px; padding: 3px 8px; background: #0008; color: #fff;
  border-color: #fff8; box-shadow: none;
}
.sound[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.loading { text-align: center; padding: 40px 0; color: #fff; }

/* ---- テーマ ---- */
.theme { margin-top: 14px; padding: 12px 14px 10px; text-align: center; overflow: hidden; }
.theme::before {
  content: ""; position: absolute; inset: -80% -20%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 45%, #00000010 0 1.5deg, transparent 1.5deg 7deg);
}
.theme > * { position: relative; }
.day { margin: 0; font-size: 12px; color: #6b6352; }
.case { display: inline-block; margin: 2px 0 0; padding: 0 10px; background: var(--ink); color: #fff; font-size: 12px; letter-spacing: .3em; }
.theme h2 { margin: 2px 0 4px; font-family: var(--mincho); font-size: 32px; font-weight: 900; line-height: 1.25; }
.theme h2 small { display: block; font-size: 13px; letter-spacing: .3em; color: var(--red); }
.rule { margin: 4px 0; font-size: 14px; text-align: left; }
.rule b { color: var(--red-d); }
.status { display: flex; justify-content: center; gap: 14px; align-items: center; margin: 8px 0 2px; font-weight: 800; flex-wrap: wrap; }
.status .cnt b { font-size: 24px; font-family: var(--mincho); }
.lives { white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.life { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 2px solid var(--ink); background: #fff; font-style: normal; font-size: 15px; line-height: 1; }
.life.used { background: var(--red); color: #fff; }
.rule.small { font-size: 12px; color: #6b6352; margin: 0; text-align: center; }

/* ---- お手つきの知らせ ---- */
.notice {
  position: sticky; top: 8px; z-index: 3; margin: 12px 0 0; padding: 8px 12px; text-align: center; font-weight: 800;
  background: #fff; border: 3px solid var(--red); box-shadow: 4px 4px 0 #000;
}

/* ---- 3人のカード ---- */
.cards { display: grid; gap: 16px; margin-top: 16px; }
.card { padding: 10px 12px 12px; }
.card.picking { border-color: var(--red); box-shadow: 5px 5px 0 var(--red); }
.who { display: flex; align-items: flex-end; gap: 10px; }
.face {
  width: 96px; flex: none; overflow: hidden; border: 3px solid var(--ink); background-color: #fff;
  background-image: repeating-conic-gradient(from 0deg at 50% 35%, #00000022 0 2deg, transparent 2deg 8deg);
}
.face svg { display: block; width: 100%; height: auto; }
.face.small { width: 60px; border-width: 2px; }
/* 絵（ひざから上）は、カードでは胸から上を大きく見せる */
.face:has(img) { height: 116px; }
.face img { display: block; width: 190%; height: auto; margin: -2% 0 0 -42%; }
.face.small:has(img) { height: 72px; }
.card.sweat .face { background-color: #e7eef8; background-image: repeating-conic-gradient(from 0deg at 50% 35%, #2b4f8633 0 2deg, transparent 2deg 8deg); }
.plate { padding-bottom: 2px; }
.plate .no { display: inline-block; padding: 0 8px; background: var(--ink); color: #fff; font-size: 11px; letter-spacing: .2em; }
.plate b { display: block; font-family: var(--mincho); font-size: 28px; line-height: 1.15; font-weight: 900; }
.plate small { color: #6b6352; font-size: 13px; }

/* 吹き出し（自慢話） */
.balloon {
  position: relative; margin: 12px 0 8px; padding: 10px 14px; background: #fff; border: 3px solid var(--ink); border-radius: 26px;
  font-family: var(--mincho); font-size: 17px; font-weight: 800; line-height: 1.5;
}
.balloon::before, .balloon::after { content: ""; position: absolute; left: 40px; width: 0; height: 0; border-style: solid; }
.balloon::before { top: -16px; border-width: 0 10px 16px 6px; border-color: transparent transparent var(--ink) transparent; }
.balloon::after { top: -10px; left: 43px; border-width: 0 6px 11px 4px; border-color: transparent transparent #fff transparent; }

/* ツッコミの札 */
.asks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ask { font-size: 14px; padding: 5px 10px; background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 2px 2px 0 var(--red); }
.asks { gap: 6px; }
.ask { padding: 5px 8px; font-size: 13.5px; }

/* 答え（調書の紙） */
.ans {
  position: relative; margin-top: 8px; padding: 6px 10px 8px 12px; font-size: 15px; background: #fffdf6;
  border: 2px solid var(--ink); border-left-width: 6px;
  background-image: repeating-linear-gradient(transparent 0 23px, #2b4f861a 23px 24px); background-position: 0 6px;
}
.ans-q { display: block; font-size: 12px; font-weight: 800; color: var(--blue); }
.ans-a q { quotes: "「" "」"; }
.ans .by { display: block; font-size: 13px; color: #555; }
.ans .show { display: block; margin-top: 4px; padding: 6px 8px; background: #fff; border: 1px dashed #776; font-size: 14px; }
.ans.clash { border-color: var(--red); background-color: #fff0ee; }
.ans.hint { border-color: var(--gold-d); background-color: #fff7df; }
.ans.missed { opacity: .55; }
.tag { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 800; color: #fff; background: var(--red); padding: 1px 8px; }
.tag.soft { background: var(--gold-d); }
.tag.gray { background: #888; }
.point {
  display: block; margin: 8px 0 0 auto; font-size: 15px; padding: 4px 14px; background: var(--red); color: #fff;
  border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); font-family: var(--mincho); font-weight: 900;
}
.point::before { content: "☝ "; }

/* 降参 */
.giveup-wrap { text-align: center; margin: 20px 0 0; }
.giveup { font-size: 13px; background: transparent; color: #bbb; border-color: #777; box-shadow: none; }

/* 確認 */
.confirm {
  position: sticky; bottom: 10px; z-index: 4; margin-top: 14px; padding: 10px 14px; text-align: center;
  background: var(--ink); color: #fff; border: 3px solid var(--gold); box-shadow: 5px 5px 0 #000;
}
.confirm p { margin: 0 0 8px; }
.confirm b { color: var(--gold); }
.confirm div { display: flex; gap: 10px; justify-content: center; }
.confirm .primary { font-family: var(--mincho); font-size: 18px; font-weight: 900; }

/* ---- 結果 ---- */
.result { padding-top: 14px; text-align: center; }
.result > .panel { margin-bottom: 16px; }
.verdict-box { padding: 12px 12px 14px; overflow: hidden; }
.verdict-box::before {
  content: ""; position: absolute; inset: -60% -30%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 38%, #00000018 0 1.5deg, transparent 1.5deg 6deg);
}
.verdict-box > * { position: relative; }
.result h2 {
  margin: 4px 0 2px; font-family: var(--mincho); font-size: 46px; font-weight: 900; line-height: 1.15;
  -webkit-text-stroke: 1px #000; text-shadow: 3px 3px 0 #000; transform: rotate(-2deg);
}
.result.ok h2 { color: var(--red); }
.result.ng h2 { color: var(--blue); }
.rank { margin: 6px 0; font-size: 15px; }
.rank b { display: inline-block; margin-left: 4px; padding: 0 10px; font-family: var(--mincho); font-size: 26px; background: var(--ink); color: var(--gold); transform: rotate(-2deg); }
.verdict { margin: 8px 0 6px; font-size: 18px; font-weight: 700; }
.verdict b { font-family: var(--mincho); font-size: 26px; color: var(--red-d); }
.liar-face { width: 140px; margin: 0 auto; overflow: hidden; border: 3px solid var(--ink); background: #e7eef8 repeating-conic-gradient(from 0deg at 50% 30%, #2b4f8633 0 2deg, transparent 2deg 7deg); }
.liar-face svg { display: block; width: 100%; }
.liar-face:has(img) { width: 230px; }
.liar-face img, .title-art img { display: block; width: 100%; height: auto; }
.stamp {
  position: absolute; right: 8px; top: 8px; padding: 2px 10px; border: 3px solid var(--red); color: var(--red); background: #fff8;
  font-family: var(--mincho); font-size: 18px; font-weight: 900; transform: rotate(10deg); letter-spacing: .1em;
}

/* オチの3段（コマ割り） */
.ochi { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; text-align: left; }
.ochi li { padding: 8px 12px; font-size: 16px; }
.ochi li span { display: inline-block; margin-bottom: 2px; padding: 0 8px; background: var(--ink); color: #fff; font-size: 11px; letter-spacing: .15em; }
.ochi .claimed { background-image: var(--tone); background-size: 6px 6px; }
.ochi .excuse { font-family: var(--mincho); font-size: 20px; font-weight: 900; border-radius: 26px; background: #fff; border-color: var(--red); }
.ochi .excuse span { background: var(--red); }

/* 称号 */
.title-box { padding: 14px 12px 12px; background: var(--ink); color: #fff; border-color: var(--gold); }
.title-box::before { content: ""; position: absolute; inset: 5px; border: 1px solid #f0c04866; pointer-events: none; }
.title-art { width: 150px; margin: 0 auto; }
.title-art:has(img) { width: 250px; }
.title-art svg { display: block; width: 100%; }
.title-box p { margin: 6px 0 0; font-size: 12px; letter-spacing: .4em; color: var(--gold); }
.title-box h3 { margin: 0; font-family: var(--mincho); font-size: 28px; font-weight: 900; color: var(--gold); text-shadow: 2px 2px 0 #000; }
.title-box small { opacity: .8; }

.keys { padding: 8px 12px 12px; text-align: left; }
.keys h4, .all h4 { margin: 4px 0 0; font-size: 14px; }
.share { padding: 10px 12px 12px; }
.share pre { white-space: pre-wrap; text-align: left; background: #fff; border: 2px dashed #998; padding: 8px 10px; font: inherit; font-size: 14px; margin: 0 0 10px; }
.share-btns { display: flex; gap: 10px; justify-content: center; }
.share-btns .x { background: var(--ink); color: #fff; }

.teaser { padding: 8px 12px 12px; background: #fff; }
.teaser-h { margin: -8px -12px 8px; padding: 2px 0; background: var(--red); color: #fff; font-family: var(--mincho); font-weight: 900; letter-spacing: .4em; }
.teaser-body { display: flex; gap: 10px; align-items: center; text-align: left; }
.teaser-body p { margin: 0; font-family: var(--mincho); font-weight: 800; }
.all { padding: 8px 12px; text-align: left; }
.all summary { cursor: pointer; font-weight: 800; }
.mislead { font-size: 13px; color: #6b6352; margin: 4px 0 0; }

.dev { margin-top: 20px; padding: 8px; font-size: 13px; background: #ddd; }
.foot { text-align: center; font-size: 12px; color: #aaa; padding: 16px 12px 28px; }
.foot p { margin: 2px 0; }

/* ---- 演出：擬音・ゆれ ---- */
.fx { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; pointer-events: none; overflow: hidden; }
.fx.on { display: grid; pointer-events: auto; }
.fx::before { content: ""; position: absolute; inset: -50%; opacity: 0; }
.fx.on::before { animation: fx-bg .9s ease-out forwards; }
.fx.ok::before { background: radial-gradient(circle at 50% 50%, #fff 0 18%, #fff0 34%), repeating-conic-gradient(from 0deg at 50% 50%, #000c 0 .8deg, transparent .8deg 4.5deg), #fffc; }
.fx.ng::before { background: #c8262b55; }
.fx.over::before { background: repeating-conic-gradient(from 0deg at 50% 50%, #2b4f8688 0 2deg, transparent 2deg 6deg), #0008; }
.fx-word {
  position: relative; text-align: center; font-family: var(--mincho); font-size: 92px; font-weight: 900; line-height: 1; white-space: nowrap;
  color: var(--red); -webkit-text-stroke: 3px #000; text-shadow: 6px 6px 0 #000; transform: rotate(-8deg);
}
.fx.on .fx-word { animation: fx-pop .9s cubic-bezier(.2, 1.6, .4, 1) forwards; }
.fx.ng .fx-word { font-size: 64px; color: #fff; }
.fx.over .fx-word { font-size: 64px; color: var(--paper); }
.fx-sub { display: block; margin-top: 10px; font-size: 22px; -webkit-text-stroke: 0; text-shadow: 2px 2px 0 #000; color: var(--gold); }
@keyframes fx-pop { 0% { transform: rotate(-8deg) scale(3); opacity: 0; } 35% { transform: rotate(-8deg) scale(.95); opacity: 1; } 50% { transform: rotate(-8deg) scale(1.05); } 85% { opacity: 1; } 100% { transform: rotate(-8deg) scale(1); opacity: 0; } }
@keyframes fx-bg { 0% { opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
.shake { animation: shake .45s; }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-8px) rotate(-1deg); } 40% { transform: translateX(7px) rotate(1deg); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.pop-in { animation: pop-in .35s ease-out; }
@keyframes pop-in { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .fx.on .fx-word, .fx.on::before, .shake, .pop-in { animation-duration: .01s; }
}

/* 突きつけた瞬間（お手つきのときも先に出る） */
.fx.slam::before { background: radial-gradient(circle at 50% 50%, #fff 0 18%, #fff0 34%), repeating-conic-gradient(from 0deg at 50% 50%, #000c 0 .8deg, transparent .8deg 4.5deg), #fffc; }

/* ---- 次回予告のショートムービー（約7秒）---- */
.play-teaser { display: block; margin: 10px auto 0; background: var(--red); color: #fff; font-family: var(--mincho); font-size: 17px; font-weight: 900; letter-spacing: .1em; }
body.movie-open { overflow: hidden; }
.movie { position: fixed; inset: 0; z-index: 60; background: #000; color: #fff; overflow: hidden; }
.mv-scene { position: absolute; inset: 0; display: none; place-items: center; overflow: hidden; text-align: center; }
.mv-scene.cur { display: grid; }
.mv-skip { position: absolute; top: 10px; right: 10px; z-index: 2; background: #0008; color: #fff; border-color: #fff8; box-shadow: none; padding: 2px 10px; }

/* ①題 */
.s1 { background: #000; }
.s1::before { content: ""; position: absolute; inset: -60%; background: repeating-conic-gradient(from 0deg at 50% 50%, #ffffff30 0 1deg, transparent 1deg 5deg); }
.s1.cur::before { animation: mv-spin 1.4s linear; }
.mv-title {
  position: relative; margin: 0; font-family: var(--mincho); font-size: 68px; font-weight: 900; letter-spacing: .08em;
  color: var(--gold); -webkit-text-stroke: 2px #000; text-shadow: 4px 4px 0 var(--red-d), 8px 8px 0 #000;
}
.s1.cur .mv-title { animation: mv-slam .5s cubic-bezier(.2, 1.6, .4, 1) both; }

/* ②語り手とせりふ */
.s2 { background: var(--red-d); align-content: end; }
.s2::before { content: ""; position: absolute; inset: -60%; background: repeating-conic-gradient(from 0deg at 50% 40%, #0000004d 0 1.2deg, transparent 1.2deg 5deg); }
.s2.cur::before { animation: mv-spin 3.6s linear; }
.mv-chara { position: absolute; bottom: 0; left: 50%; width: min(88vw, 460px); transform: translateX(-50%); }
.mv-chara img, .mv-chara svg { display: block; width: 100%; height: auto; filter: drop-shadow(6px 6px 0 #000); }
.s2.cur .mv-chara { animation: mv-in .55s cubic-bezier(.2, 1.3, .4, 1) both; }
.mv-balloon {
  position: absolute; top: 8%; left: 6%; right: 6%; min-height: 3.2em; margin: 0; padding: 12px 16px; z-index: 1;
  background: #fff; color: var(--ink); border: 4px solid #000; border-radius: 30px; box-shadow: 5px 5px 0 #000;
  font-family: var(--mincho); font-size: 21px; font-weight: 900; line-height: 1.45; text-align: left;
}
.s2.cur .mv-balloon { animation: mv-pop .3s .4s ease-out both; }
.mv-plate { position: absolute; bottom: 5%; left: 6%; margin: 0; z-index: 1; padding: 4px 14px; background: #000; border: 2px solid var(--gold); font-size: 14px; }
.mv-plate span { color: var(--gold); margin-right: 8px; font-size: 12px; letter-spacing: .2em; }
.mv-plate b { font-family: var(--mincho); font-size: 30px; margin-right: 6px; }
.s2.cur .mv-plate { animation: mv-slide .4s .3s ease-out both; }

/* ③次のテーマ */
.s3 { background: #000; align-content: center; }
.s3::before { content: ""; position: absolute; inset: 0; background: var(--tone); background-size: 6px 6px; opacity: .6; filter: invert(1); }
.mv-no { position: relative; margin: 0; font-size: 16px; letter-spacing: .4em; color: var(--gold); }
.mv-theme { position: relative; margin: 4px 0; font-family: var(--mincho); font-size: 64px; font-weight: 900; line-height: 1.15; color: #fff; text-shadow: 4px 4px 0 var(--red); }
.mv-catch { position: relative; margin: 8px 0 0; font-size: 18px; font-weight: 800; }
.s3.cur .mv-theme { animation: mv-slam .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.s3.cur .mv-catch { animation: mv-pop .4s .6s ease-out both; }

/* ④しめ */
.s4 { background: #0d0e12; align-content: center; gap: 6px; }
.s4::before { content: ""; position: absolute; inset: -60%; background: repeating-conic-gradient(from 0deg at 50% 50%, #f0c04818 0 1.5deg, transparent 1.5deg 7deg); }
.mv-end { position: relative; margin: 0; font-family: var(--mincho); font-size: 50px; font-weight: 900; color: var(--gold); -webkit-text-stroke: 1px #000; text-shadow: 4px 4px 0 var(--red-d); transform: rotate(-4deg); }
.mv-date { position: relative; margin: 0; font-size: 18px; font-weight: 800; letter-spacing: .1em; }
.mv-btns { position: relative; display: flex; gap: 12px; justify-content: center; margin-top: 18px; }
.s4.cur .mv-end { animation: mv-slam .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.s4.cur .mv-date, .s4.cur .mv-btns { animation: mv-pop .4s .5s ease-out both; }

@keyframes mv-slam { from { transform: scale(3.2) rotate(-4deg); opacity: 0; } 60% { transform: scale(.94) rotate(-4deg); opacity: 1; } to { transform: scale(1) rotate(-4deg); opacity: 1; } }
@keyframes mv-in { from { transform: translateX(60%) scale(1.1); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
@keyframes mv-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes mv-slide { from { transform: translateX(-120%); } to { transform: none; } }
@keyframes mv-spin { from { transform: rotate(0); } to { transform: rotate(12deg); } }
@media (prefers-reduced-motion: reduce) {
  .movie *, .movie *::before, .movie::before { animation-duration: .01s !important; }
}

/* ページの下のリンク・応援 */
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 0 0 8px; font-size: 13px; }
.foot a { color: #ccc; }
.tip-line { margin: 0 0 16px; text-align: center; font-size: 14px; }
.tip-line a { color: var(--gold); font-weight: 700; }
.how-line { margin: 6px 0 0; text-align: center; font-size: 13px; }
.how-line a { color: var(--red-d); font-weight: 700; }
