/* 閻魔 ―舌切り男― — 画面（全画面・スマホ縦が主）。2026-10-05
 * 色: 雨の青灰・ナトリウム灯の橙・蛍光灯の青白・古い新聞の生成り・万年筆の青黒・真鍮・朱の細い線
 * 絵が届くまで: 図形の色で物を描かない。文字・光・影・紙の質感で見せる */
:root { --ink: #1d2f52; --paper: #ece4cf; --paper2: #d9cfb6; --brass: #c9a24f; --ver: #b2402b; --night: #05070c; --txt: #ece6d8; --mono: #bcd0ea; --fact: #f0e3c0; }
html, body.emb { margin: 0; padding: 0; height: 100%; background: #030305; color: var(--txt); overflow: hidden; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
body.emb { font-family: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.em { position: fixed; inset: 0; display: flex; flex-direction: column; background: #030305; }
.em button { font-family: inherit; cursor: pointer; }
.em-boot { margin: auto; text-align: center; color: #9aa3b2; letter-spacing: .3em; }
.em-boot b { display: block; font-size: 34px; color: #e9e1cf; margin-bottom: 10px; font-weight: 800; }
.em-stage { position: relative; flex: 1; overflow: hidden; }
#em-cv { position: absolute; inset: 0; display: block; }

/* 一枚絵・背景 */
.em-view, .em-cg { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.em-view.on, .em-cg.on { opacity: 1; }
.em-cg { z-index: 5; background: rgba(2, 3, 6, .82); }
.em-cg img, .em-view img { position: relative; max-width: 100%; max-height: 100%; object-fit: contain; z-index: 1; }
.em-cgbg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(22px) brightness(.45) saturate(.8); }
.em-cg.ph { background: radial-gradient(ellipse at 50% 40%, rgba(64, 76, 104, .5), rgba(5, 6, 10, .97) 58%), #05060a; }
.em-cgph { text-align: center; max-width: 80%; margin-bottom: 18vh; }
.em-cgph i { display: block; width: 46px; height: 1px; margin: 0 auto 18px; background: linear-gradient(90deg, transparent, rgba(236, 222, 190, .7), transparent); }
.em-cgph b { font-weight: 600; font-size: clamp(18px, 4.6vw, 28px); letter-spacing: .32em; color: rgba(236, 228, 210, .88); text-shadow: 0 0 22px rgba(160, 190, 255, .25); }
.em-vcap { position: absolute; left: 6%; top: 12%; max-width: 78%; z-index: 2; }
.em-vcap small { display: block; font-size: 14px; letter-spacing: .3em; color: rgba(214, 205, 186, .75); border-bottom: 1px solid rgba(214, 205, 186, .3); padding-bottom: 8px; margin-bottom: 10px; }
.em-vcap b { display: block; font-size: clamp(17px, 4.2vw, 26px); font-weight: 600; letter-spacing: .22em; color: rgba(240, 232, 214, .9); }

/* 立ち絵 */
.em-st { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.em-st img { position: absolute; bottom: 24%; left: 50%; height: 64%; max-width: 62%; object-fit: contain; transform: translateX(-50%); filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .6)); transition: filter .3s, opacity .3s; }
.em-st img.l { left: 30%; } .em-st img.r { left: 70%; }
.em-st img.dim { filter: brightness(.55) saturate(.7); }
.em-wide .em-st img { bottom: 0; height: 88%; }
.em-wide .em-st img.l { left: 26%; } .em-wide .em-st img.r { left: 74%; }

/* 上の帯（手帳・場所・インク） */
.em-hud { position: absolute; left: 0; right: 0; top: 0; z-index: 8; display: flex; align-items: flex-start; justify-content: space-between; padding: max(8px, env(safe-area-inset-top)) 10px 0; pointer-events: none; }
.em-hud > * { pointer-events: auto; }
.em-bookbtn { white-space: nowrap; flex-shrink: 0; border: 1px solid rgba(214, 196, 150, .45); background: linear-gradient(180deg, #2a1f16, #1a120c); color: #e9dcc0; font-size: 14px; padding: 7px 12px; border-radius: 3px 8px 8px 3px; box-shadow: inset 4px 0 0 #5a1e14, 0 2px 8px rgba(0, 0, 0, .5); letter-spacing: .15em; }
.em-place { margin-top: 6px; font-size: 14px; letter-spacing: .22em; color: rgba(230, 222, 204, .82); background: rgba(5, 7, 12, .55); padding: 4px 12px; border-radius: 2px; opacity: 0; transition: opacity .4s; max-width: 46vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-place.on { opacity: 1; }
.em-hp svg { width: 112px; height: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6)); }
.em-ink.low svg { animation: emlow 1.4s infinite; }
@keyframes emlow { 50% { filter: drop-shadow(0 0 8px rgba(120, 160, 255, .7)); } }
.em-pulse { position: relative; width: 58px; height: 58px; }
.em-pulse svg { width: 58px; height: 58px; }
.em-pulse b { position: absolute; right: -4px; bottom: -6px; font-size: 14px; color: #cfe0ff; font-family: "DotGothic16", monospace; text-shadow: 0 0 6px #000; }
.em-pulse.hot b { color: #ff7b6a; }
.em-hot .em-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 7; box-shadow: inset 0 0 60px rgba(160, 20, 10, .35); animation: emhot 1s infinite; }
@keyframes emhot { 50% { box-shadow: inset 0 0 90px rgba(160, 20, 10, .5); } }

/* 追跡 */
.em-goal { position: absolute; left: 50%; top: calc(max(8px, env(safe-area-inset-top)) + 40px); transform: translateX(-50%); z-index: 8; font-size: 14px; letter-spacing: .12em; background: rgba(8, 10, 16, .72); border: 1px solid rgba(240, 220, 170, .25); padding: 5px 12px; border-radius: 2px; color: #f1e6c8; opacity: 0; transition: opacity .3s; white-space: nowrap; pointer-events: none; }
.em-goal.on { opacity: 1; }
.em-goal i { font-style: normal; margin-left: 10px; color: #ffb68a; font-family: "DotGothic16", monospace; }
.em-rip { position: absolute; top: 15%; bottom: 25%; width: 34px; z-index: 6; opacity: 0; pointer-events: none; }
.em-rip.l { left: 0; background: radial-gradient(ellipse at 0 50%, rgba(220, 230, 255, .45), rgba(0, 0, 0, 0) 70%); }
.em-rip.r { right: 0; background: radial-gradient(ellipse at 100% 50%, rgba(220, 230, 255, .45), rgba(0, 0, 0, 0) 70%); }
.em-breathi { position: absolute; left: 50%; bottom: 30%; width: 70px; height: 34px; margin-left: -35px; z-index: 6; opacity: 0; pointer-events: none; background: radial-gradient(ellipse, rgba(230, 236, 255, .5), rgba(0, 0, 0, 0) 70%); filter: blur(2px); }
.em-hide #em-cv { filter: brightness(.55) saturate(.6); }
.em-hide .em-stage::before { content: "隠れている"; position: absolute; left: 50%; top: 42%; transform: translateX(-50%); z-index: 7; font-size: 14px; letter-spacing: .3em; color: rgba(220, 228, 245, .55); pointer-events: none; }
.em-shake .em-stage { animation: emshake .12s infinite; }
@keyframes emshake { 25% { transform: translate(1px, -1px); } 75% { transform: translate(-1px, 1px); } }
.em-edge .em-stage::before { content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; box-shadow: inset 0 0 120px 40px rgba(0, 0, 0, .9); }
.em-amber { position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0; transition: opacity 1.4s; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 40%, rgba(150, 90, 20, .45) 100%); mix-blend-mode: screen; }
.em-amber.on { opacity: 1; }
.em-bub { position: absolute; left: 50%; top: 30%; transform: translate(-50%, 10px); z-index: 9; background: rgba(12, 10, 10, .85); border: 1px solid rgba(200, 80, 60, .5); padding: 8px 16px; font-size: 16px; color: #f2e4dc; opacity: 0; transition: all .35s; pointer-events: none; }
.em-bub.on { opacity: 1; transform: translate(-50%, 0); }
.em-bub small { display: block; font-size: 14px; color: #c99; letter-spacing: .2em; }
.em-grab { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle, rgba(60, 0, 0, .25), rgba(0, 0, 0, .78)); }
.em-grab p { font-size: 20px; letter-spacing: .3em; margin: 0 0 18px; }
.em-grab button { font-size: 20px; padding: 18px 34px; border: 2px solid #c9a24f; background: #2a0f0a; color: #f6e7c8; border-radius: 6px; letter-spacing: .2em; }
.em-grab i { display: block; width: 200px; height: 6px; margin-top: 16px; background: rgba(255, 255, 255, .1); }
.em-grab i b { display: block; height: 100%; width: 0; background: #c9a24f; }

/* 文字の窓（澄＝生成りの紙を夜に沈めた色／湊＝方眼のノート） */
.em-msg { position: absolute; left: 10px; right: 10px; bottom: max(12px, env(safe-area-inset-bottom)); min-height: 18%; z-index: 20; padding: 22px 20px 26px; display: none; background: linear-gradient(180deg, rgba(20, 20, 24, .93), rgba(12, 12, 15, .95)); border: 1px solid rgba(225, 210, 175, .38); box-shadow: inset 0 0 0 3px rgba(12, 12, 15, .9), inset 0 0 0 4px rgba(178, 64, 43, .45), 0 8px 30px rgba(0, 0, 0, .6); border-radius: 2px; }
.em-msg.on { display: block; }
.em-msg::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .012) 0 2px, rgba(0, 0, 0, 0) 2px 4px); }
.em-mwin .em-msg { background: linear-gradient(180deg, rgba(14, 22, 34, .94), rgba(10, 16, 26, .95)); border-color: rgba(150, 190, 240, .35); box-shadow: inset 0 0 0 3px rgba(10, 16, 26, .9), inset 0 0 0 4px rgba(120, 170, 255, .35), 0 8px 30px rgba(0, 0, 0, .6); }
.em-mwin .em-msg::before { opacity: 1; background: repeating-linear-gradient(0deg, rgba(150, 190, 240, .06) 0 1px, rgba(0, 0, 0, 0) 1px 18px), repeating-linear-gradient(90deg, rgba(150, 190, 240, .06) 0 1px, rgba(0, 0, 0, 0) 1px 18px); }
.em-name { position: absolute; left: 14px; top: -15px; background: linear-gradient(180deg, #efe6cc, #d8ccad); color: #2b2117; font-size: 14px; font-weight: 700; letter-spacing: .2em; padding: 4px 14px 3px; border-radius: 1px; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); transform: rotate(-1deg); }
.em-mwin .em-name { background: linear-gradient(180deg, #dfe8f3, #c4d2e3); color: #18253a; }
.em-text { position: relative; font-size: 17px; line-height: 1.95; letter-spacing: .04em; white-space: pre-wrap; word-break: break-word; }
.em-f0 .em-text { font-size: 15px; } .em-f2 .em-text { font-size: 20px; }
.em-text.s-m { color: var(--mono); padding-left: 12px; border-left: 2px solid rgba(188, 208, 234, .35); }
.em-text.s-d { color: #f4efe5; }
.em-text.s-f { color: var(--fact); }
.em-text.s-f::before { content: "しらべた"; display: block; font-size: 14px; letter-spacing: .3em; color: rgba(240, 227, 192, .55); margin-bottom: 2px; }
.em-text.s-i { color: #a9b2c0; }
.em-next { position: absolute; right: 16px; bottom: 6px; font-size: 14px; color: rgba(230, 214, 170, .7); animation: emnext 1.1s infinite; }
@keyframes emnext { 50% { transform: translateY(3px); opacity: .4; } }
.em-wide .em-msg { left: 50%; right: auto; width: min(980px, 92vw); transform: translateX(-50%); min-height: 22%; }
.em-talk .em-tags, .em-talk .em-pad { visibility: hidden; }

/* 選択肢 */
.em-choice { position: absolute; left: 50%; bottom: 31%; transform: translateX(-50%); z-index: 25; display: none; flex-direction: column; gap: 10px; width: min(560px, 88vw); }
.em-choice.on { display: flex; }
.em-choice button { text-align: left; font-size: 16px; padding: 13px 18px; background: rgba(14, 14, 18, .94); color: #f1e9d7; border: 1px solid rgba(225, 210, 175, .45); border-left: 4px solid var(--ver); letter-spacing: .06em; box-shadow: 0 4px 16px rgba(0, 0, 0, .5); }
.em-choice button:hover, .em-choice button:focus { background: rgba(40, 26, 20, .96); }

/* しらべる（付箋） */
.em-tags { position: absolute; left: 10px; right: 10px; bottom: 132px; z-index: 12; display: none; flex-wrap: wrap; gap: 8px; justify-content: center; pointer-events: none; }
.em-tags.on { display: flex; }
.em-tags.busy { visibility: hidden; }
.em-tags.view { bottom: 18%; top: auto; max-height: 52%; overflow: auto; align-content: flex-end; }
.em-tags > * { pointer-events: auto; }
.em-tag { position: relative; font-family: "Zen Kurenaido", "Shippori Mincho", serif; font-size: 15px; padding: 9px 14px 8px 16px; color: #2a2216; background: linear-gradient(180deg, #f5e9b9, #e9d99c); border: 0; border-radius: 1px; box-shadow: 0 3px 10px rgba(0, 0, 0, .45); transform: rotate(-1.2deg); }
.em-tag:nth-child(2n) { transform: rotate(1deg); }
.em-tag.need::before { content: ""; position: absolute; left: 6px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: #c0392b; }
.em-tag.seen { background: linear-gradient(180deg, #cfcabd, #b9b3a5); color: #4a4438; }
.em-tag.seen::after { content: "✓"; margin-left: 6px; font-size: 14px; }
.em-gobtn { font-size: 15px; padding: 10px 18px; background: #1a1410; color: #f1e3c0; border: 1px solid rgba(220, 190, 120, .6); letter-spacing: .15em; box-shadow: 0 3px 10px rgba(0, 0, 0, .5); }
.em-left { width: 100%; text-align: center; margin: 0 0 2px; font-size: 14px; letter-spacing: .2em; color: rgba(240, 230, 205, .78); text-shadow: 0 1px 3px #000; }
.em-wide .em-tags { bottom: 24px; justify-content: flex-start; left: 24px; right: 220px; }
.em-wide .em-tags.view { bottom: 26%; justify-content: center; left: 15%; right: 15%; }

/* 操作（スマホ）: なぞって歩く・右下のボタン */
.em-pad { position: absolute; left: 0; right: 0; bottom: 0; height: 0; z-index: 11; pointer-events: none; }
.em-pad.on .em-btns { display: flex; }
.em-dpad { position: absolute; left: max(12px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom)); display: none; grid-template: repeat(3, 44px) / repeat(3, 44px); gap: 2px; pointer-events: auto; }
.em-pad.on .em-dpad { display: grid; }
.em.em-stick-only .em-pad.on .em-dpad { display: none; }
.em-dpad button { padding: 0; border: 1px solid rgba(220, 196, 140, .7); border-radius: 10px; background: rgba(22, 15, 10, .9); color: #f3e5c3; font-size: 20px; touch-action: none; -webkit-touch-callout: none; }
.em-dpad button:first-child { grid-column: 2; }
.em-dpad button:nth-child(2) { grid-column: 1; }
.em-dpad button:last-child { grid-column: 2; }
.em-dpad button.on { background: #635034; border-color: #fff0bd; }
.em-dpad span { background: radial-gradient(circle, rgba(220, 196, 140, .25), transparent 65%); }
.em-btns button, #em-cv, .em-hold button { touch-action: none; -webkit-touch-callout: none; }
/* Leave room for both thumbs, including all three chase actions on narrow phones. */
.em-chasing .em-pad.on .em-btns { display: grid; grid-template-columns: 60px 80px; gap: 6px; align-items: end; }
.em-chasing .em-btns .em-small { width: 60px; height: 60px; }
.em-chasing #em-run { grid-column: 1; grid-row: 1; }
.em-chasing #em-breath { grid-column: 1; grid-row: 2; }
.em-chasing #em-act { grid-column: 2; grid-row: 1 / 3; width: 80px; height: 80px; align-self: end; }
.em-chasing .em-pad:not(.on) .em-btns { display: none; }
.em-ismap .em-tags { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 148px); }
.em-btns { position: absolute; right: max(12px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); display: none; align-items: flex-end; gap: 10px; pointer-events: auto; }
.em-act.lit { border-color: #f6e7b4; box-shadow: 0 0 16px rgba(246, 231, 180, .45), 0 4px 16px rgba(0, 0, 0, .6); }
.em-act { width: 92px; height: 92px; border-radius: 50%; border: 2px solid rgba(220, 196, 140, .7); background: radial-gradient(circle at 40% 35%, #3a2a1c, #160f0a); color: #f3e5c3; font-size: 14px; letter-spacing: .1em; box-shadow: 0 4px 16px rgba(0, 0, 0, .6); line-height: 1.3; }
.em-small { width: 66px; height: 66px; border-radius: 50%; border: 1px solid rgba(190, 210, 240, .5); background: rgba(14, 20, 30, .85); color: #dfe9f7; font-size: 14px; line-height: 1.3; }
.em-small.on { background: rgba(80, 30, 20, .9); }
#em-breath { --b: 0; background: conic-gradient(rgba(140, 190, 255, .7) calc(var(--b) * 360deg), rgba(14, 20, 30, .85) 0); }
#em-breath.on { border-color: #fff; box-shadow: 0 0 18px rgba(150, 200, 255, .6); }
#em-breath.dim { opacity: .45; }
.em-joy { position: fixed; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; border: 1px solid rgba(240, 230, 210, .35); background: rgba(10, 12, 18, .25); opacity: 0; pointer-events: none; z-index: 40; transition: opacity .15s; }
.em-joy.on { opacity: 1; }
.em-joy i { position: absolute; left: 30px; top: 30px; width: 36px; height: 36px; border-radius: 50%; background: rgba(240, 230, 210, .55); }

/* 重ねる画面 */
.em-ov { position: absolute; inset: 0; z-index: 30; display: none; align-items: center; justify-content: center; }
.em-ov.on { display: flex; }
.em-ov.card, .em-ov.tut, .em-ov.holdq, .em-ov.gover, .em-ov.help, .em-ov.book, .em-ov.warn { background: rgba(2, 3, 6, .72); }
.em-ov.bal, .em-ov.board { background: rgba(2, 3, 6, .9); align-items: stretch; z-index: 15; }
.em-dark { position: absolute; inset: 0; z-index: 18; background: #000; opacity: 0; pointer-events: none; transition: opacity .6s; }
.em-dark.on { opacity: 1; }
.em-flash { position: absolute; inset: 0; z-index: 26; pointer-events: none; opacity: 0; }
.em-flash.on { animation: emflash .5s ease-out; }
@keyframes emflash { 0% { opacity: .9; background: #fff; } 100% { opacity: 0; } }
.em-flash.crack.on { animation: emcrack .9s ease-out; background: linear-gradient(115deg, transparent 48%, rgba(255, 255, 255, .85) 49%, transparent 50%), linear-gradient(62deg, transparent 58%, rgba(255, 255, 255, .7) 58.5%, transparent 59.2%), linear-gradient(160deg, transparent 37%, rgba(255, 255, 255, .6) 37.4%, transparent 38%); }
@keyframes emcrack { 0% { opacity: 1; } 100% { opacity: 0; } }
.em-flash.iron.on { animation: emiron 1.6s ease-out; background: radial-gradient(circle, rgba(90, 0, 0, .35), rgba(30, 0, 0, .92)); }
@keyframes emiron { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
.em-flash.ink.on { animation: emiron 1.2s ease-out; background: radial-gradient(circle, rgba(20, 34, 70, .65) 0, rgba(10, 16, 34, .2) 40%, transparent 70%); }
.em-toast { position: absolute; left: 50%; top: calc(max(8px, env(safe-area-inset-top)) + 78px); transform: translateX(-50%); z-index: 40; max-width: 88vw; background: rgba(10, 12, 18, .9); color: #ece2c8; font-size: 14px; padding: 8px 14px; border-left: 3px solid var(--brass); opacity: 0; transition: opacity .3s; pointer-events: none; letter-spacing: .05em; line-height: 1.6; }
.em-toast.on { opacity: 1; }
.em-cap { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 22; font-size: clamp(18px, 4.6vw, 30px); letter-spacing: .3em; color: #f1e6cc; opacity: 0; transition: opacity .6s; text-align: center; text-shadow: 0 0 20px rgba(0, 0, 0, .9); pointer-events: none; }
.em-cap.on { opacity: 1; }

/* 章カード（新聞の1面） */
.em-paper { position: relative; width: min(520px, 88vw); aspect-ratio: 9 / 13; max-height: 86vh; background: radial-gradient(ellipse at 30% 20%, #efe7d3, #ddd2b8 70%, #c9bc9c); background-size: cover; color: #1b1712; padding: 26px 22px; box-sizing: border-box; box-shadow: 0 20px 60px rgba(0, 0, 0, .8); transform: rotate(-1.2deg); animation: empaper .8s ease-out; overflow: hidden; }
@keyframes empaper { 0% { transform: rotate(-8deg) scale(.86) translateY(20px); opacity: 0; } 100% { transform: rotate(-1.2deg); opacity: 1; } }
.em-paper::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 30%, rgba(60, 80, 110, .16) 0 2%, transparent 2.5%), radial-gradient(circle at 20% 70%, rgba(60, 80, 110, .14) 0 1.5%, transparent 2%), radial-gradient(circle at 60% 85%, rgba(60, 80, 110, .12) 0 2%, transparent 2.6%); pointer-events: none; }
.em-mast { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px double #2a221a; padding-bottom: 8px; }
.em-mast span { font-size: 26px; font-weight: 800; letter-spacing: .25em; }
.em-mast small { font-size: 14px; letter-spacing: .1em; }
.em-paper h2 { font-size: clamp(24px, 6.6vw, 38px); line-height: 1.35; font-weight: 800; margin: 22px 0 16px; letter-spacing: .04em; }
.em-paper h2.blank { height: 3.2em; background: repeating-linear-gradient(0deg, transparent 0 1.1em, rgba(40, 32, 22, .06) 1.1em 1.3em); }
.em-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; height: 38%; }
.em-cols i { background: repeating-linear-gradient(0deg, rgba(40, 32, 22, .28) 0 2px, transparent 2px 9px); }
.em-chap { position: absolute; left: 22px; right: 22px; bottom: 44px; margin: 0; font-size: 15px; letter-spacing: .3em; border-top: 1px solid rgba(40, 32, 22, .4); padding-top: 10px; color: #3a2f22; }
.em-tap { position: absolute; right: 18px; bottom: 12px; margin: 0; font-size: 14px; color: rgba(40, 32, 22, .55); letter-spacing: .15em; }
.em-paper.note { background: #e9eef4; background-image: repeating-linear-gradient(0deg, rgba(70, 110, 160, .16) 0 1px, transparent 1px 20px), repeating-linear-gradient(90deg, rgba(70, 110, 160, .16) 0 1px, transparent 1px 20px); }
.em-paper.note .em-mast { border-bottom-color: rgba(30, 50, 80, .4); }

/* 説明の紙・結論・保留の箱 */
.em-note { width: min(460px, 86vw); background: linear-gradient(180deg, #efe6cf, #ddd1b4); color: #241c13; padding: 24px 22px 18px; box-shadow: 0 16px 40px rgba(0, 0, 0, .7); transform: rotate(.6deg); }
.em-note p { margin: 0 0 12px; line-height: 1.85; font-size: 16px; }
.em-note.em-intro { box-sizing: border-box; max-height: 88dvh; overflow-y: auto; transform: none; }
.em-intro h2 { font-size: 21px; line-height: 1.5; margin: 0 0 16px; }
.em-intro button { min-height: 44px; }
.em-note small { display: block; font-size: 14px; letter-spacing: .3em; color: #6a5a40; margin-bottom: 10px; }
.em-note.concl p { border-left: 3px solid var(--ink); padding-left: 10px; color: #14223a; }
.em-note h3, .em-h3 { margin: 0 0 12px; letter-spacing: .3em; font-size: 16px; }
.em-note button, .em-row button, .em-row a { font-size: 15px; padding: 10px 20px; background: #1d1611; color: #f1e3c0; border: 1px solid rgba(200, 170, 110, .6); letter-spacing: .15em; text-decoration: none; display: inline-block; }
.em-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.em-row .sub, .em-row button.sub { background: transparent; color: #cfc4ab; }
.em-small { font-size: 14px; opacity: .8; line-height: 1.7; }

/* 天秤 */
.em-balw { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; padding: calc(max(8px, env(safe-area-inset-top)) + 46px) 12px 31%; box-sizing: border-box; overflow: hidden; background: radial-gradient(ellipse at 50% 30%, rgba(40, 34, 24, .55), rgba(4, 5, 8, .95) 70%); }
.em-balw > .em-cgbg { filter: blur(6px) brightness(.35); inset: -10px; }
.em-balw > * { position: relative; }
.em-ov.bal .em-balw { overflow-y: auto; display: block; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
.em-ov.bal .em-balw > .em-bal { display: block; height: 70px; margin: 6px auto; }
.em-ov.bal .em-stm { max-height: none; overflow: visible; margin: 8px auto; width: min(620px, 100%); }
.em-balhelp { width: min(620px, 100%); margin: 8px auto; padding: 12px; box-sizing: border-box; background: rgba(15, 18, 24, .95); border: 1px solid #8d7c57; color: #f1e3c0; font-size: 14px; line-height: 1.8; }
.em-balhelp p { margin: 6px 0; }
.em-balhelp button { min-height: 44px; padding: 8px 14px; border: 1px solid #bb9b60; background: #261f16; color: #fff0cb; font: inherit; }
.em-ov.bal .em-sv { min-height: 44px; }
.em-ov.bal .em-balb { padding-bottom: 16px; }
.em-balh { text-align: center; margin-bottom: 4px; }
.em-balh span { display: block; font-size: 14px; letter-spacing: .4em; color: var(--brass); }
.em-balh b { font-size: 18px; letter-spacing: .25em; }
.em-bal { width: min(300px, 70vw); height: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .7)); }
.em-bal.rev { transform: scaleX(-1); }
.em-stm { width: min(620px, 96vw); display: flex; flex-direction: column; gap: 7px; overflow: auto; max-height: 40vh; margin-top: 4px; }
.em-sv { text-align: left; font-size: 14.5px; line-height: 1.65; padding: 9px 12px; background: rgba(236, 228, 207, .93); color: #231b12; border: 0; border-left: 4px solid #6b5a3a; position: relative; }
.em-sv em { font-style: normal; font-weight: 800; color: var(--ver); margin-right: 6px; }
.em-sv.sel { outline: 2px solid var(--brass); background: #f6eed7; }
.em-sv.br { background: rgba(120, 112, 98, .55); color: rgba(30, 24, 18, .6); text-decoration: line-through; text-decoration-color: rgba(178, 64, 43, .8); }
.em-sv.br::after { content: "割れた"; position: absolute; right: 8px; top: 6px; font-size: 14px; color: var(--ver); letter-spacing: .2em; text-decoration: none; }
.em-sv.solid::after { content: "割れない"; position: absolute; right: 8px; top: 6px; font-size: 14px; color: #3b5a3a; letter-spacing: .2em; }
.em-sv.paper { background: rgba(236, 228, 207, .9); border-left-color: var(--ver); }
.em-sv.paper small { display: block; font-size: 14px; letter-spacing: .2em; color: #7a6a4c; }
.em-balb { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.em-balb p { margin: 0; font-size: 14px; letter-spacing: .1em; color: #e9dfc6; }
.em-balb button { font-size: 15px; padding: 11px 18px; background: #1a1410; color: #f1e3c0; border: 1px solid rgba(200, 170, 110, .65); letter-spacing: .15em; }
.em-balb button.hot { background: #3b140c; border-color: #d9a55a; }
.em-balb button.sub { background: transparent; font-size: 14px; padding: 9px 12px; }
.em-put { margin-top: 8px; font-size: 14px; letter-spacing: .15em; color: #f0e5c8; background: rgba(10, 12, 18, .6); padding: 8px 14px; border: 1px solid rgba(201, 162, 79, .4); }
.em-pickwrap { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; background: rgba(2, 3, 6, .8); }
.em-pick { width: min(620px, 94vw); max-height: 86vh; display: flex; flex-direction: column; background: #e8e0ca; color: #241c13; padding: 16px; box-sizing: border-box; box-shadow: 0 16px 40px rgba(0, 0, 0, .8); }
.em-pick h3 { margin: 0 0 10px; font-size: 15px; letter-spacing: .25em; }
.em-pick .em-cards { overflow: auto; flex: 1; }
.em-x { margin-top: 10px; align-self: center; font-size: 14px; padding: 9px 22px; background: #1d1611; color: #f1e3c0; border: 1px solid rgba(200, 170, 110, .6); }
.em-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.em-card { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 10px; text-align: left; background: #f7f1e1; color: #2a2116; border: 1px solid rgba(80, 60, 30, .25); border-left: 3px solid var(--ink); padding: 8px 10px; font-size: 14px; line-height: 1.55; }
.em-card .ic { grid-row: 1 / 3; width: 40px; height: 40px; object-fit: contain; image-rendering: pixelated; }
.em-card i.ic { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 18px; color: #f1e7cc; background: var(--ink); border-radius: 2px; font-weight: 700; }
.em-card b { font-size: 14px; }
.em-card span { font-size: 14px; color: #4a3f2d; }
.em-card.hold { border-left-color: var(--ver); background: #f6e6d6; }
.em-card.hold i.ic { background: #6b3a1e; font-size: 14px; }
.em-card.on { outline: 2px solid var(--ver); background: #fff8e4; }

/* 推理ボード（コルク） */
.em-board { position: relative; width: 100%; display: flex; flex-direction: column; padding: calc(max(8px, env(safe-area-inset-top)) + 46px) 12px max(14px, env(safe-area-inset-bottom)); box-sizing: border-box; background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .05) 0 1px, transparent 1.5px) 0 0 / 9px 9px, radial-gradient(circle at 70% 60%, rgba(0, 0, 0, .12) 0 1px, transparent 1.5px) 0 0 / 7px 7px, linear-gradient(160deg, #7a5634, #5e3f25 60%, #4b321e); box-shadow: inset 0 0 0 10px #2d1f14, inset 0 0 0 12px #6d5233; }
.em-bdh { text-align: center; margin-bottom: 10px; }
.em-bdh span { display: block; font-size: 14px; letter-spacing: .4em; color: #f2dfb0; }
.em-bdh b { display: inline-block; margin-top: 6px; font-size: 17px; background: #f4ecd6; color: #1f170f; padding: 8px 16px; box-shadow: 0 4px 10px rgba(0, 0, 0, .4); transform: rotate(-.6deg); }
.em-bdc { flex: 1; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-content: start; padding: 4px; }
.em-bdc .em-card { grid-template-columns: 1fr; position: relative; box-shadow: 0 3px 8px rgba(0, 0, 0, .35); border-left: 0; border-top: 3px solid #b8a37a; }
.em-bdc .em-card .ic { grid-row: auto; margin: 0 auto 4px; }
.em-bdc .em-card::before { content: ""; position: absolute; left: 50%; top: -6px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a7a, #a2241a); box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.em-bdc .em-card.on { outline: 3px solid #c0392b; transform: rotate(-1deg); }
.em-bdb { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; padding-top: 10px; }
.em-bdb p { width: 100%; text-align: center; margin: 0; font-size: 14px; color: #f6e8c6; letter-spacing: .08em; }
.em-bdb button { font-size: 15px; padding: 10px 16px; background: #1d1611; color: #f1e3c0; border: 1px solid rgba(200, 170, 110, .65); letter-spacing: .12em; }
.em-bdb button.hot { background: #5a160c; }
.em-bdb button[disabled] { opacity: .45; }
.em-bdb button.sub { font-size: 14px; background: rgba(20, 14, 10, .6); }
.em-board { overflow-y: auto; display: block; }
.em-bdc { overflow: visible; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); }
.em-btask { margin: 0 0 12px; text-align: center; font-size: 14px; line-height: 1.7; color: #fff5dc; }
.em-bguide { background: #f5ecd7; color: #251b12; border-left: 4px solid #f0c94c; padding: 12px; margin: 0 0 16px; font-size: 14px; line-height: 1.8; }
.em-bguide p { margin: 6px 0; }
.em-bguide small { display: block; font-size: 12px; }
.em-bdc .em-card.em-bnext { outline: 3px solid #ffe077; outline-offset: 1px; }
.em-bselected { display: block; font-size: 12px; color: #791f16; }
.em-bdb { padding: 14px 0 10px; }
.em-bdb button { min-height: 44px; }
.em-ov.box2 .em-note { max-height: 85dvh; overflow: auto; box-sizing: border-box; transform: none; }

/* 手帳 */
.em-ov .em-book { width: min(680px, 94vw); max-height: 88vh; display: flex; flex-direction: column; background: #e9e1cb; color: #241c13; border: 10px solid #2a1c12; border-left-width: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .8); padding: 12px 14px; box-sizing: border-box; border-radius: 4px; letter-spacing: 0; font-size: 14px; }
.em-ov .em-book.m { background: #e6edf4; background-image: repeating-linear-gradient(0deg, rgba(70, 110, 160, .12) 0 1px, transparent 1px 18px), repeating-linear-gradient(90deg, rgba(70, 110, 160, .12) 0 1px, transparent 1px 18px); border-color: #1d2633; }
.em-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.em-tabs button { font-size: 14px; padding: 7px 10px; background: #d2c6a8; color: #3a2e20; border: 0; border-bottom: 2px solid transparent; }
.em-tabs button.sel { background: #241c13; color: #f1e3c0; }
.em-bk { overflow: auto; flex: 1; }
.em-ln { margin: 0 0 8px; padding: 8px 10px; background: rgba(255, 255, 255, .5); border-left: 3px solid var(--ink); line-height: 1.75; }
.em-slot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed rgba(60, 40, 20, .3); }
.em-slot b { min-width: 5em; } .em-slot span { flex: 1; font-size: 14px; color: #5a4c36; }
.em-slot button { font-size: 14px; padding: 6px 12px; background: #241c13; color: #f1e3c0; border: 0; }
.em-slot button.sub { background: #7a6a4c; }
.em-slot.off { opacity: .45; }
.em-set { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.em-set span { min-width: 8em; font-weight: 700; }
.em-set button { font-size: 14px; padding: 6px 10px; background: #d2c6a8; color: #3a2e20; border: 0; }
.em-set button.sel { background: #241c13; color: #f1e3c0; }

/* 息を止める */
.em-hold { text-align: center; width: min(420px, 86vw); }
.em-hold p { font-size: 20px; letter-spacing: .4em; margin: 0 0 18px; }
.em-tube { position: relative; height: 16px; border: 1px solid rgba(200, 220, 255, .55); border-radius: 10px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.em-tube b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, rgba(140, 190, 255, .7), rgba(255, 110, 90, .85)); }
.em-tube i { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #f6e7b4; }
.em-hold button { margin-top: 22px; width: 130px; height: 130px; border-radius: 50%; font-size: 18px; letter-spacing: .2em; border: 2px solid rgba(190, 210, 240, .7); background: radial-gradient(circle, #1a2436, #0b0f18); color: #e4eefc; }
.em-hold small { display: block; margin-top: 14px; font-size: 14px; opacity: .8; letter-spacing: .1em; }
.em-ov.holdq.shake .em-hold { animation: emshake .1s infinite; }

/* ゲームオーバー */
.em-go { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.em-go img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.em-got { position: relative; max-width: 86vw; text-align: left; line-height: 2.1; font-size: 16px; color: #ddd5c4; }
.em-got p { margin: 0; }
.em-go.b .em-got { font-size: 30px; letter-spacing: .5em; text-align: center; }
.em-go .em-row { position: relative; margin-top: 34px; }

/* タイトル（絵を隠さない: 題は右の縦書き・ボタンは左下だけ） */
.em-title { position: absolute; inset: 0; overflow: hidden; background: #04060b; }
.em-rainwin { position: absolute; inset: 0; width: 100%; height: 100%; }
.em-title img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.em-ttl { position: absolute; right: 7%; top: 9%; writing-mode: vertical-rl; display: flex; gap: 12px; align-items: flex-start; text-shadow: 0 0 28px rgba(0, 0, 0, .9), 0 0 6px rgba(0, 0, 0, .9); }
.em-ttl b { font-size: clamp(56px, 15vw, 104px); font-weight: 800; letter-spacing: .2em; color: #efe5cf; }
.em-ttl span { font-size: clamp(16px, 4vw, 24px); letter-spacing: .3em; color: #d9c9a8; margin-top: 1.4em; }
.em-crack { position: absolute; right: 7%; top: 9%; width: 30px; height: 60px; background: linear-gradient(120deg, transparent 45%, rgba(178, 64, 43, .8) 46%, transparent 48%); pointer-events: none; animation: emcrackt 6s 1; opacity: 0; }
@keyframes emcrackt { 0%, 80% { opacity: 0; } 85% { opacity: 1; } 100% { opacity: 0; } }
.em-tband { position: absolute; left: 0; bottom: 0; padding: 0 0 max(18px, env(safe-area-inset-bottom)) 6%; width: min(360px, 70vw); }
.em-tcol { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.em-tcol button { font-size: 17px; letter-spacing: .3em; padding: 9px 4px 9px 14px; min-width: 9em; text-align: left; background: linear-gradient(90deg, rgba(8, 10, 16, .78), rgba(8, 10, 16, 0)); color: #efe6d2; border: 0; border-left: 2px solid rgba(201, 162, 79, .8); }
.em-tcol button.sub { font-size: 14px; opacity: .85; }
.em-tnote { margin: 12px 0 0; font-size: 14px; line-height: 1.8; color: rgba(225, 216, 196, .7); letter-spacing: .1em; text-shadow: 0 1px 4px #000; }
.em-title.wide .em-tband { padding-left: 4%; }
.em-wc { margin-top: 6px; }

/* 注意 */
.em-warn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at 50% 40%, #121722, #030407 70%); }
.em-warn img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.em-wbox { position: relative; width: min(520px, 88vw); padding: 26px 22px; background: rgba(8, 10, 14, .82); border: 1px solid rgba(225, 210, 175, .35); }
.em-wbox h3 { margin: 0 0 14px; font-size: 16px; letter-spacing: .35em; color: #f0d9a8; }
.em-wbox p { margin: 0 0 10px; line-height: 1.95; font-size: 15px; }
.em-wbox .hot { background: #3b140c; border-color: #d9a55a; }

/* 題字の一枚 */
.em-ov.tcard { background: #000; }
.em-tc { position: absolute; inset: 0; }
.em-tc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; animation: emfadein 1.6s; }
.em-tct { position: absolute; right: 9%; top: 10%; writing-mode: vertical-rl; display: flex; gap: 12px; animation: emfadein 2.4s; text-shadow: 0 0 30px #000; }
.em-tct b { font-size: clamp(60px, 16vw, 110px); letter-spacing: .2em; font-weight: 800; color: #efe5cf; }
.em-tct span { font-size: clamp(16px, 4.4vw, 26px); letter-spacing: .3em; color: #d9c9a8; margin-top: 1.4em; }
@keyframes emfadein { 0% { opacity: 0; } 100% { opacity: 1; } }

/* エンドロール・相談窓口・おわり */
.em-roll { position: absolute; inset: 0; overflow: hidden; background: #000; }
.em-rbg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .45; transition: background-image 2s; }
.em-rtxt { position: absolute; left: 0; right: 0; top: 100%; text-align: center; animation: emroll 50s linear forwards; }
.em-rtxt p { margin: 0 0 14px; font-size: 16px; letter-spacing: .25em; color: #e9e1cf; }
.em-rtxt p.sf small { display: block; font-size: 14px; color: #b8a986; letter-spacing: .3em; }
@keyframes emroll { 0% { transform: translateY(0); } 100% { transform: translateY(-260%); } }
.em-skip { position: absolute; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); font-size: 14px; padding: 8px 14px; background: rgba(20, 20, 24, .8); color: #ddd; border: 1px solid rgba(255, 255, 255, .25); }
.em-help { width: min(520px, 88vw); max-height: 88vh; overflow: auto; text-align: center; line-height: 1.9; font-size: 15px; color: #efe8da; }
.em-help p { margin: 0; }
.em-help p.tel a { display: inline-block; margin: 2px 0 4px; font-size: 22px; letter-spacing: .12em; color: #ffe2a6; text-decoration: none; border-bottom: 1px solid rgba(255, 226, 166, .5); }
.em-help button { margin-top: 20px; font-size: 15px; padding: 10px 26px; background: #1d1611; color: #f1e3c0; border: 1px solid rgba(200, 170, 110, .6); }
@media (max-height: 820px) { .em-help { line-height: 1.6; font-size: 14px; } .em-help p.tel a { font-size: 19px; margin: 0 0 2px; } .em-help button { margin-top: 12px; } }
.em-endw { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: #000; }
.em-endw img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.em-endb { position: relative; text-align: center; padding: 24px; background: rgba(4, 5, 8, .7); }
.em-endb h2 { font-size: 26px; letter-spacing: .5em; margin: 0 0 14px; font-weight: 800; }
.em-mark { color: #f6d68a; letter-spacing: .15em; }
.em-stamp { color: #f6d68a; }

/* 観戦 */
.is-wtview .em-pad, .is-wtview .em-bookbtn, .is-wtview .em-tags { display: none !important; }
.em-wtwait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 50; background: #000; color: #aaa; letter-spacing: .3em; }

/* PC */
.em-wide .em-act { width: 104px; height: 104px; }
@media (max-height: 680px) {
	.em-text { font-size: 15.5px; line-height: 1.8; }
	.em-msg { min-height: 26%; padding: 18px 16px 20px; }
	.em-act { width: 80px; height: 80px; }
	.em-small { width: 58px; height: 58px; }
	.em-tags { bottom: 112px; }
	.em-paper { aspect-ratio: auto; height: 82vh; }
}
@media (prefers-reduced-motion: reduce) {
	.em-paper { animation-duration: .01s; }
	.em-rtxt { animation: none; top: 0; height: 100%; overflow-y: auto; box-sizing: border-box; padding: 48px 20px 96px; }
}

/* 2026-10-06 一枚絵が届くまでは、上に題の帯だけ（下で人が動く） */
.em-cg.ph.band { background: linear-gradient(180deg, rgba(3, 4, 8, .72), rgba(3, 4, 8, 0) 26%); align-items: flex-start; }
.em-cg.band .em-cgph { margin: 11vh 0 0; }
.em-cg.band .em-cgph b { font-size: clamp(14px, 3.6vw, 20px); letter-spacing: .28em; }
.em-cg.band .em-cgph i { margin-bottom: 10px; }
.em-cgband .em-vcap { opacity: 0; }

/* 2026-10-06 追跡の出だしの合図「にげて」 */
.em-nige { white-space: nowrap; position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%) scale(.92); z-index: 30; pointer-events: none; font-weight: 800; font-size: clamp(34px, 11vw, 64px); letter-spacing: .4em; padding-left: .4em; color: #f4e6c8; text-shadow: 0 0 18px rgba(200, 40, 30, .85), 0 0 3px #000; opacity: 0; transition: opacity .25s ease, transform .5s ease; }
.em-nige.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---- 肉付け（2026-10-08）: 幕間は会話の窓を出さず、画面の下の字幕の帯で ---- */
.em.em-maku .em-msg { background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .78) 30%); border: 0; box-shadow: none; left: 0; right: 0; width: auto; transform: none; bottom: 0; min-height: 0; padding: 26px 22px max(22px, env(safe-area-inset-bottom)); border-radius: 0; }
.em.em-maku .em-msg::before { display: none; }
.em.em-maku #em-name { display: none !important; }
.em.em-maku .em-text { text-align: center; letter-spacing: .06em; color: #ece4d2; }
/* SNS の投稿の札が広がる */
.em-sns { position: absolute; left: 50%; top: 46%; z-index: 21; pointer-events: none; }
.em-sns i { position: absolute; left: -26px; top: -16px; width: 52px; height: 32px; border-radius: 6px; background: rgba(236, 232, 222, .92); box-shadow: inset 6px 0 0 rgba(120, 130, 150, .5), 0 2px 8px rgba(0, 0, 0, .5); opacity: 0; animation: em-sns 2.2s ease-out forwards; }
.em-sns i.img { background-size: 200% 200%; background-position: 0 0; background-color: transparent; box-shadow: none; }
@keyframes em-sns { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); } }

/* マップでは、会話の窓が出ている間だけ立ち絵を出す（しらべる・歩く間に地図を隠さない・2026-10-09） */
.em-st { transition: opacity .25s; }
.em-ismap:not(.em-talk) .em-st { opacity: 0; }
/* 相談先（2026-10-10）: 手帳の中（紙の地）では濃い字に。タイトル・注意の画面からは .em-help のまま */
.em-help.in { width: auto; max-height: none; color: inherit; line-height: 1.8; }
.em-help.in p.tel a { color: #7a1f14; border-bottom-color: rgba(122, 31, 20, .45); }
.em-help .em-h3 { margin: 0 0 12px; }
/* 場所の札: 14px にしたので、長い名前は「…」で切らずに折り返す（2026-10-10） */
.em-place { white-space: normal; overflow: visible; text-overflow: clip; letter-spacing: .08em; line-height: 1.4; text-align: center; word-break: keep-all; overflow-wrap: anywhere; }

/* Reading support: ruby height belongs to the line, not the input text. */
.em ruby { ruby-align: center; }
.em rt { font-size: .55em; font-weight: 400; letter-spacing: .02em; line-height: 1; }
.em.em-no-ruby rt { display: none; }
.em:not(.em-no-ruby) .em-text { line-height: 2.25; }
.em:not(.em-no-ruby) .em-name { top: -25px; padding-top: 8px; }
.em:not(.em-no-ruby) .em-place { padding-top: 8px; line-height: 1.8; }
.em #em-bgm { display: none; }
.em-small a { color: inherit; text-decoration: underline; }
