:root { --bg: #14110f; --leather: #1b1612; --panel: #241e19; --ink: #f3ece2; --dim: #b9ad9d; --accent: #f0b34a; --paper: #efe3c8; --line: #4a3f35; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: radial-gradient(ellipse at 50% 40%, #3a2a20 0%, #120d0a 75%); color: var(--ink); font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif; }
body { overflow: hidden; overscroll-behavior: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; }
button:focus-visible, #track:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
#app { position: relative; display: flex; flex-direction: column; height: 100vh; height: 100dvh; max-width: 440px; max-height: 940px; margin: 0 auto; background: var(--leather); padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); overflow: hidden; box-shadow: 0 0 60px #000a; }
/* 上の帯 */
#hud { flex: 0 0 44px; display: flex; align-items: center; gap: 4px; padding: 0 8px 0 4px; }
#hud-left { flex: 0 0 88px; display: flex; justify-content: flex-end; }   /* 左 44px は「作った話と感想」のボタン（widget）の場所 */
#sound { width: 40px; height: 40px; border-radius: 20px; background: none; border: 0; opacity: .9; display: grid; place-items: center; }
#sound[aria-pressed="false"] { opacity: .6; }
#sound[aria-pressed="false"] #sound-waves { display: none; }
#party-btn { flex: 1; min-width: 0; height: 40px; background: none; border: 0; text-align: center; position: relative; padding: 0 4px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
#party-name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
#timer { position: absolute; right: 4px; top: 4px; font-size: 12px; opacity: .8; font-variant-numeric: tabular-nums; }
#progress { display: block; width: 70%; height: 3px; background: #3a3128; border-radius: 2px; margin-top: 3px; overflow: hidden; }
#progress b { display: block; height: 100%; width: 0; background: var(--accent); }
#lang { display: flex; gap: 0; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
#lang button { width: 26px; height: 32px; background: none; border: 0; opacity: .6; font-size: 12px; }
#lang button[aria-pressed="true"] { opacity: 1; font-weight: 800; background: #3a3128; color: var(--accent); }
/* 依頼の台紙 */
#requests { flex: 0 0 64px; display: flex; gap: 8px; align-items: center; padding: 0 10px; }
.req { position: relative; flex: 1; min-width: 0; height: 56px; padding: 4px 6px 4px 4px; display: flex; gap: 6px; align-items: center; text-align: left; background: var(--paper); color: #3a2c20; border: 0; border-radius: 3px; box-shadow: 0 2px 5px #0008; transition: transform .15s; }
.req::before, .req::after { content: ""; position: absolute; top: 0; width: 8px; height: 8px; background: #8a7358; clip-path: polygon(0 0, 100% 0, 0 100%); }
.req::before { left: 0; } .req::after { right: 0; transform: scaleX(-1); }
.req canvas { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 2px; background: #cdbd9c; }
.req span { font-size: 11px; line-height: 1.25; font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.req .chk { position: absolute; right: 3px; bottom: 2px; font-size: 16px; font-weight: 900; color: #2a8a4a; opacity: 0; transform: scale(.4) rotate(-20deg); transition: .25s; }
.req.got .chk { opacity: 1; transform: none; }
.req.near .chk { opacity: 1; color: #b08020; transform: none; }
.req.pop { animation: pop .5s ease-out; }
.req.big { transform: scale(1.12); z-index: 3; }
.req .full { position: absolute; left: 0; top: 60px; z-index: 9; width: 200px; padding: 6px 8px; background: #fff7dc; color: #3a2c20; border-radius: 4px; font-size: 12px; box-shadow: 0 3px 10px #000a; display: none; }
.req.big .full { display: block; }
@keyframes pop { 0% { transform: scale(1); } 30% { transform: scale(1.18) rotate(-2deg); } 100% { transform: scale(1); } }
.chip { position: absolute; width: 5px; height: 5px; border-radius: 1px; pointer-events: none; z-index: 8; }
/* 場面（ファインダー） */
#stage { position: relative; flex: 1 1 0; min-height: 0; display: flex; align-items: center; justify-content: center; touch-action: none; }
#finder { position: relative; width: 390px; height: 520px; border-radius: 10px; overflow: hidden; background: #000; border: 3px solid #050403; box-shadow: 0 0 0 2px #2a221c; touch-action: none; }
#scene { display: block; width: 100%; height: 100%; touch-action: none; }
#frame { position: absolute; inset: 0; pointer-events: none; }
#frame .c { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(255,255,255,.85); }
#frame .tl { left: 12px; top: 12px; border-width: 2px 0 0 2px; } #frame .tr { right: 12px; top: 12px; border-width: 2px 2px 0 0; }
#frame .bl { left: 12px; bottom: 12px; border-width: 0 0 2px 2px; } #frame .br { right: 12px; bottom: 12px; border-width: 0 2px 2px 0; }
#af { position: absolute; left: 18px; bottom: 44px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); background: transparent; transition: background .1s, box-shadow .1s; }
#af.on { left: 15px; bottom: 41px; width: 16px; height: 16px; background: #7cf09a; border-color: #d8ffe2; box-shadow: 0 0 12px 2px #7cf09a; }
#frame .c { transition: border-color .1s, width .1s, height .1s; }
#frame.on .c { width: 30px; height: 30px; border-color: #7cf09a; }
#exp { position: absolute; left: 40px; bottom: 42px; font: 9px ui-monospace, Menlo, monospace; color: rgba(255,255,255,.28); letter-spacing: .5px; }
.req.shake { animation: reqshake .36s ease-in-out infinite, reqglow .72s ease-in-out infinite; outline: 3px solid #ffd45a; outline-offset: -1px; box-shadow: 0 0 14px 5px #ffd070, 0 0 0 2px #ffe9a0 inset, 0 2px 5px #0008; z-index: 3; }
@keyframes reqshake { 0%, 100% { transform: rotate(0) scale(1.08); } 25% { transform: translateX(-3px) rotate(-7deg) scale(1.14); } 75% { transform: translateX(3px) rotate(7deg) scale(1.14); } }
@keyframes reqglow { 0%, 100% { box-shadow: 0 0 10px 3px #ffd070, 0 0 0 2px #ffe9a0 inset, 0 2px 5px #0008; } 50% { box-shadow: 0 0 22px 9px #ffc83c, 0 0 0 2px #fff3c4 inset, 0 2px 5px #0008; } }
@media (prefers-reduced-motion: reduce) { .req.shake { animation: reqglow 1.4s ease-in-out infinite; transform: scale(1.08); } }
#grain { position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.035) 0 1px, transparent 1px 3px); }
#sign { position: absolute; left: 50%; top: 18px; transform: translateX(-50%) rotate(-2deg); padding: 6px 16px; background: #f3e4c0; color: #4a3322; font-weight: 800; font-size: 18px; letter-spacing: 1px; border-radius: 3px; box-shadow: 0 3px 8px #0009; opacity: 0; pointer-events: none; white-space: nowrap; }
#sign.show { animation: sign 1s ease both; }
@keyframes sign { 0% { opacity: 0; transform: translateX(-50%) rotate(-2deg) translateY(-14px); } 15%, 80% { opacity: 1; transform: translateX(-50%) rotate(-2deg); } 100% { opacity: 0; } }
#toast { position: absolute; left: 12px; bottom: 58px; max-width: 250px; padding: 8px 12px 10px; background: #f7efd9; color: #3a2c20; font-size: 14px; font-weight: 700; border-radius: 3px; box-shadow: 0 3px 10px #000a; transform: rotate(-2.5deg); opacity: 0; pointer-events: none; }
#toast.show { animation: toast .85s ease both; }
@keyframes toast { 0% { opacity: 0; transform: rotate(-2.5deg) translateY(10px); } 12%, 80% { opacity: 1; transform: rotate(-2.5deg); } 100% { opacity: 0; } }
#flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; border-radius: 8px; }
#flash.go { animation: flash .09s ease-out; }
@keyframes flash { from { opacity: .9; } to { opacity: 0; } }
#paused { position: absolute; inset: 0; background: rgba(10,6,4,.7); border: 0; font-size: 18px; font-weight: 700; z-index: 6; }
#paused[hidden] { display: none; }
#hint { position: absolute; left: 46px; right: 46px; top: -22px; z-index: 4; text-align: center; font-size: 12.5px; line-height: 18px; font-weight: 700; padding: 1px 6px; background: rgba(20,14,10,.8); border-radius: 12px; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: none; }
#hint.show { display: block; }
#hint.flashing { animation: hintpulse .8s ease-in-out infinite; }
@keyframes hintpulse { 50% { background: rgba(200,60,40,.85); } }
/* つまみ */
#knob-zone { position: relative; flex: 0 0 92px; display: flex; align-items: center; gap: 8px; padding: 0 16px; }
.end { flex: 0 0 28px; width: 28px; height: 28px; }
#track { position: relative; flex: 1; height: 76px; border-radius: 14px; background: repeating-linear-gradient(90deg, #2c2520 0 5px, #181310 5px 10px); border: 1px solid #5a4f45; box-shadow: inset 0 3px 10px #000a, 0 1px 0 #000; touch-action: none; }
#track::before { content: ""; position: absolute; inset: -12px -12px; }
#knob { position: absolute; top: 8px; width: 76px; height: 60px; margin-left: -38px; border-radius: 12px; background: repeating-linear-gradient(90deg, #cfc8bc 0 2px, #a59e92 2px 4px); border: 1px solid #6b655c; box-shadow: 0 3px 8px #000b, inset 0 2px 0 #fffa, inset 0 -3px 5px #0006; pointer-events: none; display: flex; align-items: center; justify-content: space-around; color: #3a362f; font-size: 15px; }
#knob.pulse { animation: kpulse 1.2s ease-in-out infinite; }
#knob.shake { animation: kshake .4s; box-shadow: 0 0 14px 4px #ffd070, 0 3px 8px #000b; }
#knob.tick { box-shadow: 0 0 12px 3px #ffe9a0, 0 3px 8px #000b; }
@keyframes kpulse { 50% { transform: scale(1.07); box-shadow: 0 0 14px 3px #ffd070, 0 3px 8px #000b; } }
@keyframes kshake { 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
#keys { display: none; position: absolute; left: 0; right: 0; bottom: -4px; text-align: center; font-size: 11px; color: var(--dim); }
@media (pointer: fine) { #keys { display: block; } }
kbd { font: 11px ui-monospace, monospace; border: 1px solid #6b5f52; border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; margin: 0 1px; }
/* 下の帯 */
#bottom { flex: 0 0 112px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 14px; }
#film { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
#film-cells { display: grid; grid-template-columns: repeat(6, 26px); gap: 3px; padding: 5px 4px; background: #0b0908; border-radius: 3px; border-top: 3px dotted #55483a; border-bottom: 3px dotted #55483a; }
#film-cells i { display: block; width: 26px; height: 20px; background: #251f1a; border-radius: 1px; overflow: hidden; }
#film-cells canvas { width: 26px; height: 20px; display: block; }
#film-left { white-space: nowrap; font: 700 22px ui-monospace, Menlo, monospace; color: #ffd98a; text-shadow: 0 0 6px #c88a2a88; font-variant-numeric: tabular-nums; }
#film-left.low { font-size: 28px; }
#film-left.last { color: #ff8a5a; animation: lastp .6s ease-in-out infinite; text-shadow: 0 0 10px #ff6a3a; }
@keyframes lastp { 50% { transform: scale(1.12); } }
#film { min-width: 0; }
#shutter { position: relative; flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; border: 0; background: radial-gradient(circle at 35% 30%, #e0584e, #a82820 70%); box-shadow: 0 0 0 6px #2a2420, 0 0 0 8px #6b5d50, 0 6px 12px #000c, inset 0 -6px 10px #0006, inset 0 4px 6px #fff4; touch-action: none; }
#shutter i { position: absolute; inset: 24px; border-radius: 50%; border: 3px solid rgba(255,255,255,.75); }
#shutter:active, #shutter.down { transform: scale(.94); box-shadow: 0 0 0 6px #2a2420, 0 0 0 8px #6b5d50, 0 2px 5px #000c, inset 0 -3px 6px #0006; }
/* 結果とアルバム */
#album { position: absolute; inset: 0; z-index: 5; background: radial-gradient(ellipse at 50% 0%, #3a2a20, #14110f 70%); overflow-y: auto; touch-action: pan-y; user-select: none; }
#album[hidden] { display: none; }
.res-top { display: flex; align-items: center; height: 44px; padding: 0 8px 0 60px; gap: 6px; }
.res-top b { flex: 1; font-size: 14px; }
.stamp { display: block; margin: 8px auto 4px; width: fit-content; max-width: 92%; padding: 10px 20px; text-align: center; font-size: 26px; font-weight: 900; letter-spacing: 2px; color: #b5352a; border: 4px double #b5352a; border-radius: 8px; transform: rotate(-4deg); opacity: .92; text-shadow: 0 0 1px #b5352a; background: rgba(181,53,42,.05); }
.stamp.in { animation: stamp .5s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes stamp { 0% { transform: rotate(-4deg) scale(2.2); opacity: 0; } 70% { transform: rotate(-4deg) scale(.94); opacity: 1; } 100% { transform: rotate(-4deg) scale(1); } }
.res-sub { text-align: center; font-size: 12px; color: var(--dim); margin: 4px 0; }
.verdict { text-align: center; font-size: 22px; font-weight: 900; margin: 10px 0 4px; letter-spacing: 3px; }
.verdict.great { color: #ffd070; } .verdict.fail { color: #c9a090; }
.client { display: flex; align-items: flex-end; gap: 8px; padding: 6px 16px; }
.client canvas { flex: 0 0 84px; width: 84px; height: 110px; }
.bubble { position: relative; flex: 1; background: #f7efd9; color: #3a2c20; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 700; line-height: 1.4; margin-bottom: 30px; }
.bubble::before { content: ""; position: absolute; left: -8px; bottom: 14px; border: 8px solid transparent; border-right-color: #f7efd9; border-left: 0; }
.reqs { display: flex; flex-direction: column; gap: 6px; padding: 4px 16px; }
.rq { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.06); border-radius: 6px; padding: 6px 10px; font-size: 13px; }
.rq .mk { flex: 0 0 22px; font-size: 18px; font-weight: 900; text-align: center; }
.rq.got .mk { color: #6fd08a; } .rq.near .mk { color: #e0b050; } .rq.miss .mk { color: #a08878; }
.rq small { margin-left: auto; color: var(--dim); font-size: 12px; }
#album-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 14px; padding: 14px 18px; background: radial-gradient(circle at 20% 15%, #d8c397, #c3a877 80%); margin: 8px 8px 0; border-radius: 4px; box-shadow: 0 4px 16px #000a; }
.pic { position: relative; margin: 0; padding: 6px 6px 0; background: #fbf8ef; color: #3a2c20; box-shadow: 0 3px 8px #0006; border: 0; text-align: left; width: 100%; }
.pic canvas { display: block; width: 100%; height: auto; }
.pic figcaption { display: flex; gap: 4px; align-items: flex-start; font: 600 12px/1.3 "Hiragino Maru Gothic ProN", "Yu Kyokasho", "Comic Sans MS", cursive, system-ui; padding: 5px 0 7px; min-height: 40px; color: #3a2c20; }
.pic .mark { flex: 0 0 16px; font-weight: 900; }
.pic.empty { background: transparent; box-shadow: none; border: 2px dashed #a8946e; min-height: 140px; }
.pic .pin { position: absolute; width: 14px; height: 14px; background: #8a7358; clip-path: polygon(0 0, 100% 0, 0 100%); }
.pic .pin.a { left: 0; top: 0; } .pic .pin.b { right: 0; top: 0; transform: scaleX(-1); }
.pic.flip { animation: flipin .3s ease-out both; }
@keyframes flipin { from { opacity: 0; transform: translateY(14px) rotate(var(--r, 0deg)) scale(.9); } to { opacity: 1; transform: rotate(var(--r, 0deg)); } }
.zk { display: block; margin: 14px auto; background: none; border: 1px solid var(--line); border-radius: 18px; padding: 8px 16px; color: var(--dim); font-size: 13px; }
.note { text-align: center; font-size: 12px; color: var(--dim); padding: 4px 16px; }
#res-bar { position: sticky; bottom: 0; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, #14110f 28%); margin-top: -40px; padding-top: 40px; }
#res-bar button { flex: 1; min-height: 50px; border-radius: 25px; border: 0; font-weight: 800; font-size: 15px; background: #3a3128; color: var(--ink); }
#res-bar button.primary { background: var(--accent); color: #2a1c0c; }
#saved-img { display: block; width: 78%; margin: 8px auto; border-radius: 4px; box-shadow: 0 4px 16px #000a; user-select: auto; -webkit-touch-callout: default; }
/* 会の一覧、写真の拡大 */
#sheet { position: absolute; inset: 0; z-index: 8; background: rgba(8,5,3,.82); display: flex; align-items: center; justify-content: center; padding: 16px; }
#sheet[hidden] { display: none; }
.sheet-card { width: 100%; max-width: 360px; max-height: 100%; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; touch-action: pan-y; }
.sheet-card h3 { margin: 0 0 10px; font-size: 16px; }
.party { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; margin-bottom: 8px; border-radius: 10px; border: 1px solid var(--line); background: #2e261f; text-align: left; min-height: 56px; }
.party[aria-disabled="true"] { opacity: .55; }
.party b { display: block; font-size: 15px; } .party small { color: var(--dim); font-size: 12px; }
.party .lk { font-size: 20px; }
.sheet-close { display: block; margin: 6px auto 0; background: none; border: 1px solid var(--line); border-radius: 18px; padding: 8px 18px; }
.zoom { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.zoom canvas { width: 100%; max-width: 330px; height: auto; border: 6px solid #fbf8ef; border-bottom-width: 22px; box-shadow: 0 4px 16px #000a; }
.zoom .cap { color: var(--ink); font-size: 14px; font-weight: 700; text-align: center; }
.zoom .nav { display: flex; gap: 10px; }
.zoom .nav button { background: #3a3128; border: 0; border-radius: 18px; padding: 8px 16px; min-width: 56px; min-height: 44px; }
@media (prefers-reduced-motion: reduce) { #grain, #knob.pulse, #film-left.last, #hint.flashing { animation: none; } #flash.go { animation: shutflash .08s linear; } .stamp.in { animation: none; } .pic.flip { animation: none; } }
@media (max-width: 380px), (max-height: 700px) {
  #requests { flex-basis: 54px; } .req { height: 48px; } .req canvas { flex-basis: 30px; width: 30px; height: 30px; } .req { gap: 4px; padding: 3px 4px 3px 3px; } .req span { font-size: 9.5px; line-height: 1.15; -webkit-line-clamp: 3; letter-spacing: -.2px; }
  #knob-zone { flex-basis: 84px; } #bottom { flex-basis: 104px; } #hud { flex-basis: 40px; }
}
/* PC: 中央の縦長の列。左右は暗い部屋の壁 */
@media (min-width: 560px) { #app { border-radius: 16px; margin-top: 0; } }
/* 会の一覧と題の図鑑（紙の台紙） */
.paper-card { background: radial-gradient(circle at 20% 10%, #e6d6ac, #cfb584 85%); color: #3a2c20; border: 0; box-shadow: 0 6px 24px #000c; }
.paper-card h3 { color: #4a3322; font-size: 18px; letter-spacing: 1px; }
.paper-card .party { background: #fbf8ef; border: 0; color: #3a2c20; box-shadow: 0 2px 6px #0005; border-radius: 4px; position: relative; }
.paper-card .party small { color: #6b5640; display: block; }
.paper-card .party.current { outline: 2px solid #b5352a; outline-offset: 2px; }
.paper-card .party.locked { opacity: 1; background: #dccfae; box-shadow: none; border: 2px dashed #a8946e; }
.paper-card .party.locked b { color: #6b5640; }
.pinfo { flex: 1; min-width: 0; }
.pstamp { font-weight: 900; font-size: 15px; color: #b5352a; border: 3px double #b5352a; border-radius: 6px; padding: 2px 8px; transform: rotate(-4deg); white-space: nowrap; }
.paper-card .sheet-close, .paper-card .zk-open { border-color: #8a7358; color: #4a3322; background: none; }
.zk-open { display: block; width: 100%; margin: 4px 0 2px; min-height: 46px; border: 2px solid #8a7358; border-radius: 4px; font-weight: 800; font-size: 15px; background: #f3e4c0; }
.zk-head { display: flex; align-items: baseline; justify-content: space-between; }
.zk-head h3 { margin: 0 0 8px; }
.zk-count { font-weight: 900; font-size: 16px; color: #b5352a; font-variant-numeric: tabular-nums; }
.zk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.zk-card { background: #fbf8ef; padding: 8px 8px 9px; min-height: 66px; box-shadow: 0 2px 5px #0005; border-radius: 2px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.zk-card b { font-size: 14px; line-height: 1.3; color: #8a7358; }
.zk-card small { display: block; font-size: 11px; line-height: 1.3; color: #6b5640; margin-top: 3px; }
.zk-card.got { background: #fff7dc; border: 3px double #b5352a; }
.zk-card.got b { color: #b5352a; font-weight: 900; font-size: 15px; }
.nope { animation: kshake .4s; }
.res-links { display: flex; gap: 8px; justify-content: center; padding: 0 12px 48px; }
.res-links .zk { margin: 10px 0 4px; }
#res-bar button.locked { opacity: .65; }
#res-bar.guard { pointer-events: none; }
#res-bar.guard button { opacity: .35; transition: opacity .2s; }   /* 周回11: 押しを受けない間は薄く見せる */
#res-bar:not(.guard) button { transition: opacity .2s; }
@keyframes resguard { from { opacity: .25; } to { opacity: 1; } }
@media (max-width: 380px), (max-height: 700px) { #film-left { font-size: 18px; } #film-left.low { font-size: 22px; } .zk-card { min-height: 58px; } }
/* 瞬間の図鑑 */
.mz-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 6px 18px 0; }
.mz-head h3 { margin: 0; font-size: 15px; }
.mz-count { font-weight: 900; font-size: 16px; color: #ffd070; font-variant-numeric: tabular-nums; }
.paper-card .mz-count { color: #b5352a; }
.mz-full { margin-left: auto; font-weight: 900; font-size: 12px; color: #b5352a; border: 2px double #b5352a; border-radius: 4px; padding: 1px 6px; transform: rotate(-4deg); background: #fff7dc; }
.mz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px 18px 6px; }
.mz { position: relative; background: #fbf8ef; color: #3a2c20; border-radius: 2px; box-shadow: 0 2px 5px #0005; padding: 4px 4px 5px; text-align: center; min-width: 0; }
.mz canvas { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.mz-name { display: block; font: 700 11px/1.25 "Hiragino Maru Gothic ProN", system-ui; padding-top: 3px; overflow-wrap: anywhere; }
.mz-q { display: flex; width: 100%; box-sizing: border-box; align-items: center; justify-content: center; aspect-ratio: 1; font-size: 28px; color: #a8946e; background: #e9dcbc; margin: 0; }
.mz:not(.got) { background: #dccfae; box-shadow: none; border: 2px dashed #a8946e; padding: 2px 2px 4px; }
.mz:not(.got) .mz-name { color: #6b5640; }
.mz.got { border: 2px solid #fff7dc; }
.mz.isreq.got { border-color: #b5352a; }
.mz-req { position: absolute; left: 3px; top: 3px; font: 900 13px/1 system-ui; color: #b5352a; background: #fff7dc; border-radius: 9px; padding: 1px 3px; font-style: normal; }
.mz-star { position: absolute; right: 3px; top: 3px; font: 900 15px/1 system-ui; color: #e0a020; font-style: normal; text-shadow: 0 0 2px #fff; }
.mz-new { position: absolute; right: -3px; top: 22px; font: 900 10px/1 system-ui; background: #b5352a; color: #fff; padding: 2px 4px; border-radius: 3px; transform: rotate(6deg); font-style: normal; }
.mz.flipnew { animation: mzflip .3s ease-out both; }
@keyframes mzflip { from { opacity: 0; transform: rotateY(90deg) scale(.9); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mz.flipnew { animation: none; } .mz-one.in { animation: none; } }
.mz-run { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 2px 18px 0; font-size: 12px; font-weight: 800; color: #6b5640; }
.mz-up { font-style: normal; font-size: 10px; font-weight: 900; background: #b5352a; color: #fff; padding: 2px 6px; border-radius: 8px; }
.mz-one { display: inline-block; font-weight: 900; font-size: 11px; color: #8a5a00; border: 2px solid #c98a00; border-radius: 4px; padding: 1px 5px; background: #ffe9a0; transform: rotate(-3deg); }
.mz-one.big { display: block; width: fit-content; max-width: 92%; margin: 6px auto 2px; font-size: 22px; letter-spacing: 2px; text-align: center; padding: 6px 16px; border: 4px double #b07000; color: #8a4a00; background: linear-gradient(135deg, #fff3c4, #ffd45a 55%, #fff3c4); box-shadow: 0 0 16px 3px #ffd45a, 0 2px 6px #0006; transform: rotate(-4deg); }
.mz-one.big.in { animation: onestamp .6s cubic-bezier(.2,1.8,.4,1) both; animation-delay: .4s; }
@keyframes onestamp { 0% { opacity: 0; transform: rotate(-4deg) scale(3); } 70% { opacity: 1; transform: rotate(-4deg) scale(.92); } 100% { opacity: 1; transform: rotate(-4deg) scale(1); } }
.res-mz.oneshot .mz.got { border-color: #e0a020; }
.mz-runmini { display: inline-block; white-space: nowrap; margin: 0 4px 0 0; font-weight: 800; color: #b5352a; }
.party small .mz-runmini::before { content: "\00a0·\00a0"; color: #6b5640; }
.party small .mz-one { margin-left: 2px; font-size: 10px; }
.res-mz { margin: 8px 8px 0; background: radial-gradient(circle at 20% 15%, #d8c397, #c3a877 80%); border-radius: 4px; padding: 8px 0 6px; color: #3a2c20; box-shadow: 0 4px 16px #000a; }
.res-mz .mz-head h3 { color: #3a2c20; } .res-mz .mz-count { color: #b5352a; }
.pcount { margin-left: auto; font-weight: 900; font-size: 13px; color: #b5352a; font-variant-numeric: tabular-nums; white-space: nowrap; border: 1px solid #b5352a; border-radius: 10px; padding: 1px 7px; }
.pcount.full { background: #b5352a; color: #fff; }
.paper-card .mz-grid { padding: 6px 0; }
.paper-card .mz { background: #fff; }
.sheet-card.mzcard { max-height: 92%; overflow-y: auto; }
.pwrap { display: flex; align-items: stretch; gap: 6px; margin-bottom: 8px; }
.pwrap .party { margin-bottom: 0; flex: 1; min-width: 0; }
.pwrap .pcount { align-self: center; min-height: 44px; min-width: 62px; background: #fff7dc; }
.pwrap .pcount.full { background: #b5352a; }
.mz-partyname { font-weight: 800; font-size: 13px; color: #6b5640; }
.party small .mz-full { margin-left: 4px; font-size: 10px; }
.paper-card .mz-head { padding: 6px 0 0; }
.mz-name::first-letter { text-transform: uppercase; }
/* 周回4: 最初の操作で始まる、撮れた合図、フィルム切れ、残りの線 */
#knob.pulse { animation: kinvite 1.1s ease-in-out infinite; }
@keyframes kinvite { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-14px); } 75% { transform: translateX(14px); } }
.req .cd { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #e8503a; transform-origin: 0 50%; transform: scaleX(0); opacity: 0; border-radius: 0 0 3px 3px; pointer-events: none; }
.req.shake .cd { opacity: 1; }
.req .stp { position: absolute; right: 4px; top: 50%; margin: -16px 0 0; width: 32px; height: 32px; line-height: 28px; text-align: center; font-size: 24px; font-weight: 900; color: #c0392b; border: 2px solid #c0392b; border-radius: 50%; background: rgba(255,247,220,.6); opacity: 0; pointer-events: none; transform: rotate(-14deg); }
.req.stamped .stp { animation: stpin .5s cubic-bezier(.2,1.6,.4,1) both; opacity: .9; }
@keyframes stpin { 0% { transform: rotate(-14deg) scale(2.6); opacity: 0; } 65% { transform: rotate(-14deg) scale(.92); opacity: 1; } 100% { transform: rotate(-14deg) scale(1); opacity: .9; } }
#toast .big { display: block; font-size: 22px; font-weight: 900; line-height: 1.15; color: #c0392b; }
#toast .big b { display: inline-block; font-size: 32px; vertical-align: -4px; margin-right: 6px; }
#toast .near { display: block; font-size: 16px; font-weight: 900; color: #8a5a10; }
#toast .near b { margin-right: 4px; }
#toast .plus { display: inline-block; margin-top: 3px; padding: 0 6px; font-size: 11px; font-weight: 800; color: #fff; background: #3a7a9a; border-radius: 8px; }
#toast.marked.show { animation: toastm 1.5s ease both; }
@keyframes toastm { 0% { opacity: 0; transform: rotate(-2.5deg) translateY(10px) scale(.9); } 10% { opacity: 1; transform: rotate(-2.5deg) scale(1.05); } 18%, 85% { opacity: 1; transform: rotate(-2.5deg); } 100% { opacity: 0; } }
#film-out { position: absolute; left: 50%; top: 62px; transform: translateX(-50%) rotate(-2deg); padding: 6px 16px; background: #2a1c14; color: #ffb38a; border: 2px solid #ffb38a; font-weight: 900; font-size: 18px; letter-spacing: 1px; border-radius: 4px; white-space: nowrap; pointer-events: none; }
#film-out[hidden] { display: none; }
#shutter.out { background: radial-gradient(circle at 35% 30%, #4a4642, #2a2724 70%); opacity: .85; box-shadow: 0 0 0 6px #2a2420, 0 0 0 8px #4a423a, 0 3px 6px #000c; }
#shutter.out i { border-style: dashed; }
#shutter.nope { animation: shnope .4s; }
@keyframes shnope { 20% { transform: translateX(-7px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
#film-left[hidden], #see[hidden] { display: none; }
#see { min-height: 46px; padding: 0 18px; border-radius: 23px; border: 0; background: var(--accent); color: #2a1c0c; font-weight: 900; font-size: 15px; white-space: nowrap; box-shadow: 0 3px 8px #000a; }
#see.guard { opacity: .45; }
.mz-of { flex: 1 0 100%; font-size: 11px; color: var(--dim); margin-top: -2px; }
.mz-head { flex-wrap: wrap; }
.res-mz .mz-of, .paper-card .mz-of { color: #6b5540; }
#album, .sheet-card { overflow-anchor: none; }
@media (prefers-reduced-motion: reduce) { #knob.pulse { animation: none; box-shadow: 0 0 14px 3px #ffd070, 0 3px 8px #000b; } #toast.marked.show { animation-duration: .01s; animation-delay: 1.2s; } .req.stamped .stp { animation: none; } #shutter.nope { animation: none; } }
#track { margin: 0 30px; }   /* つまみが端にある時、花と山の印がつまみに隠れない（つまみは溝の外へ半分はみ出す。印はその外） */
#toast .lab { display: block; }
#toast .plus { display: inline-block; }
/* ---- 周回5 ux ---- */
#flash.go { animation: shutcurtain .15s linear; }   /* 押した最初のコマから: 幕が下りて（暗）、白く開く */
@keyframes shutcurtain { 0% { background: #000; opacity: .78; } 22% { background: #000; opacity: .78; } 23% { background: #fff; opacity: .95; } 100% { background: #fff; opacity: 0; } }
@keyframes shutflash { 0% { background: #fff; opacity: .9; } 100% { background: #fff; opacity: 0; } }
#frame .c { transition: border-color .1s, width .1s, height .1s, transform .1s; }
#frame.snap .c.tl { transform: translate(6px, 6px); } #frame.snap .c.tr { transform: translate(-6px, 6px); } #frame.snap .c.bl { transform: translate(6px, -6px); } #frame.snap .c.br { transform: translate(-6px, -6px); }
#frame.snap .c { transition: none; }
/* 周回6: 「いま！」の時だけ四隅の枠が1回、黄色く光って太る（ピントの緑の枠とは色と太さで区別） */
#frame.nowpulse .c { animation: framenow .6s ease-out; }
@keyframes framenow { 0% { border-color: #ffd45a; transform: scale(1.7); } 60% { border-color: #ffd45a; transform: scale(1.3); } 100% { transform: none; } }
#frame.on .c { width: 34px; height: 34px; border-color: #7cf09a; border-style: solid; border-width: 0; }
#frame.on .tl { border-width: 5px 0 0 5px; } #frame.on .tr { border-width: 5px 5px 0 0; } #frame.on .bl { border-width: 0 0 5px 5px; } #frame.on .br { border-width: 0 5px 5px 0; }
#frame.on .c::after { content: ""; position: absolute; width: 7px; height: 7px; background: #d8ffe2; border-radius: 50%; }
#frame.on .tl::after { left: -5px; top: -5px; } #frame.on .tr::after { right: -5px; top: -5px; } #frame.on .bl::after { left: -5px; bottom: -5px; } #frame.on .br::after { right: -5px; bottom: -5px; }
#af, #af.on { left: 18px; bottom: 44px; width: 6px; height: 6px; border: 1px solid rgba(255,255,255,.22); background: transparent; box-shadow: none; }
#af.on { background: rgba(255,255,255,.3); }
#exp { font-size: 8px; color: rgba(255,255,255,.16); left: 30px; bottom: 42px; }
#wind { position: absolute; right: 18px; bottom: 112px; z-index: 6; padding: 3px 10px; border-radius: 10px; background: #2a1c14; color: #cfe3f5; border: 2px solid #7fa8c8; font-size: 13px; font-weight: 900; pointer-events: none; opacity: 0; }
#wind.show { animation: windp .7s ease both; }
@keyframes windp { 0% { opacity: 0; transform: translateY(6px); } 15%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; } }
#shutter.wind { animation: shnope .3s; }
.req .stp { right: auto; left: 22px; top: auto; bottom: 3px; margin: 0; width: 20px; height: 20px; line-height: 16px; font-size: 14px; border-width: 2px; background: rgba(255,247,220,.85); }
@media (max-width: 380px), (max-height: 700px) { .req .stp { left: 14px; width: 18px; height: 18px; line-height: 14px; font-size: 12px; } }
.req .now { position: absolute; left: 3px; bottom: 5px; display: none; padding: 0 4px; font-size: 9px; line-height: 13px; font-weight: 900; color: #fff; background: #c0392b; border-radius: 3px; font-style: normal; pointer-events: none; z-index: 2; }
.req.nowflash { animation: nowflash .6s ease-out; }
@keyframes nowflash { 0% { box-shadow: 0 0 0 0 #fff, 0 0 20px 10px #fff3b0; background: #fff3b0; } 100% { box-shadow: 0 2px 5px #0008; } }
#album.hit { animation: albumhit .28s ease-out; }
@keyframes albumhit { 20% { transform: translate(-4px, 2px); } 45% { transform: translate(4px, -2px); } 70% { transform: translate(-2px, 1px); } }
.mz.flipnew .mz-new, .mz-new.bounce { animation: newbounce .45s cubic-bezier(.3,1.7,.5,1) both; }
@keyframes newbounce { 0% { transform: rotate(6deg) scale(.4) translateY(8px); opacity: 0; } 100% { transform: rotate(6deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #shutter.wind, #album.hit, .req.nowflash, .mz-new, #wind.show { animation: none; } #wind.show { opacity: 1; } #frame .c { transition: none; } }
#toast .mk { margin-right: 5px; font-size: 15px; }
@media (min-width: 560px) and (min-height: 760px) { #knob-zone { flex-basis: 118px; padding-top: 26px; } #hint { top: 2px; } }   /* PC: 手ほどきの帯は、ファインダーの外（つまみの溝の上）に下げる */
#shiftnote { position: absolute; left: 50%; top: 56px; transform: translateX(-50%); z-index: 4; max-width: 300px; width: max-content; padding: 3px 12px; border-radius: 12px; background: rgba(20,14,10,.78); color: #ffe9a0; font-size: 12px; font-weight: 700; text-align: center; pointer-events: none; }
#shiftnote[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { #flash.go { animation: shutflash .08s linear; } #frame.nowpulse .c { animation: framenow .3s ease-out; } }
/* ---- 周回6 ux ---- */
#knob-zone { touch-action: none; }
.req .soon { position: absolute; left: 3px; bottom: 5px; display: none; padding: 0 4px; font-size: 9px; line-height: 13px; font-weight: 900; color: #5a3a00; background: #ffe08a; border-radius: 3px; font-style: normal; pointer-events: none; z-index: 2; }
.req.soonon .soon { display: block; }
.req .now { display: none; }
.req.nowon .now { display: block; }
.req .miss { display: none; position: absolute; inset: 0; pointer-events: none; border-radius: 3px; background: linear-gradient(to top right, transparent calc(50% - 1.5px), rgba(90,50,40,.8) calc(50% - 1.5px), rgba(90,50,40,.8) calc(50% + 1.5px), transparent calc(50% + 1.5px)); }
.req.missed:not(.got) { opacity: .62; }
.req.missed:not(.got) .miss { display: block; }
.req.missed:not(.got) canvas { opacity: .55; }
@media (max-width: 380px), (max-height: 700px) { .req.stamped .stp { animation-name: stpin-s; } }
@keyframes stpin-s { 0% { transform: rotate(-14deg) scale(1.5); opacity: 0; } 65% { transform: rotate(-14deg) scale(.92); opacity: 1; } 100% { transform: rotate(-14deg) scale(1); opacity: .9; } }
#prenotes { position: absolute; left: 50%; top: 56px; transform: translateX(-50%); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 320px; width: max-content; pointer-events: none; }
#prenotes > div { position: static; transform: none; max-width: 300px; padding: 3px 12px; border-radius: 12px; background: rgba(20,14,10,.78); color: #ffe9a0; font-size: 12px; font-weight: 700; text-align: center; }
#prenotes > div[hidden] { display: none; }
.short { text-align: center; font-size: 14px; font-weight: 800; color: #ffd9a0; margin: 2px 16px 6px; }
#wall { display: none; }
@media (min-width: 1000px) and (min-height: 700px) { #wall { display: block; position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .55; pointer-events: none; } }
/* ---- 周回7 ux ---- */
#flash.go { animation: shutcurtain7 .17s linear; }   /* 暗い幕は 0.025秒（連打しても、暗い時間は1回分より延びない）。その後の白い光は 0.14秒 */
@keyframes shutcurtain7 { 0% { background: #000; opacity: .62; } 15% { background: #000; opacity: .62; } 16% { background: #fff; opacity: .95; } 100% { background: #fff; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #flash.go { animation: shutflash .12s linear; } }
#wind { z-index: 30; right: 14px; bottom: 118px; padding: 5px 12px; font-size: 15px; background: #d9ebfa; color: #14304a; border-color: #7fa8c8; box-shadow: 0 2px 8px #000c; }
#wind.show { animation: windp7 1s ease both; }
@keyframes windp7 { 0% { opacity: 0; transform: translateY(6px); } 10%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; } }
#film.rolling #film-cells { animation: roll .3s linear; }
@keyframes roll { from { background-position: 0 0; border-top-color: #cfe3f5; border-bottom-color: #cfe3f5; } to { background-position: 0 0; border-top-color: #55483a; border-bottom-color: #55483a; } }
#film.rolling #film-cells { box-shadow: 0 0 0 2px #7fa8c8; }
@media (prefers-reduced-motion: reduce) { #wind.show { animation: none; opacity: 1; } #film.rolling #film-cells { animation: none; } }
.mz-full { white-space: nowrap; }
.party small .mz-full { display: inline-block; white-space: nowrap; }
#tutornote { color: #fff2b8; }
@media (min-width: 1000px) and (min-height: 700px) { #wall { opacity: .95; } }   /* PC: 左右の壁の絵が見える明るさ（中央の画面より控えめ） */
#knob-zone { z-index: 25; }   /* 飛ぶ写真（z-index 20）は、つまみの下をくぐる。つまみに重ならない */
@media (max-width: 380px), (max-height: 700px) { #toast { bottom: 44px; max-width: 214px; font-size: 13px; } #toast .big { font-size: 19px; } #toast .big b { font-size: 26px; } }
#film-line { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
#moments-left { font-size: 13px; font-weight: 800; color: #cfe3f5; font-variant-numeric: tabular-nums; }
#moments-left[hidden] { display: none; }
.party.daily { border: 2px solid #b5352a; margin-bottom: 12px; }
.paper-card .party.daily b { color: #b5352a; }
.daily-head { text-align: center; font-weight: 900; font-size: 14px; color: #8a2a20; padding: 2px 8px; }
.daily-lines { text-align: center; font-size: 13px; font-weight: 800; line-height: 1.5; padding: 0 12px 4px; }
#dailynote { color: #ffd0c8; }
#album { z-index: 30; } #sheet { z-index: 31; }   /* 結果、アルバム、会の一覧、図鑑、保存した絵は、つまみの層（z-index 25）より上。撮影中の飛ぶ写真はつまみの下をくぐる */
.daily-head { color: #ffb4a6; }
#daily-chip { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 5; max-width: 300px; padding: 2px 10px; border-radius: 12px; border: 1px solid #c88a70; background: rgba(40,20,14,.82); color: #ffd0c8; font-family: inherit; font-weight: 700; font-size: 11px; line-height: 1.3; text-align: center; cursor: pointer; }
#daily-chip[hidden] { display: none; }
#wind { right: auto; left: 12px; bottom: auto; top: 40px; }   /* 巻き上げ中の札は、山の絵に重ならない左上へ */
.rq { flex-wrap: wrap; row-gap: 1px; }
.rq .rq-line { flex: 1 0 100%; padding-left: 30px; font-size: 11.5px; font-style: normal; font-weight: 700; color: #e6d6b4; line-height: 1.3; }
@media (min-width: 1000px) and (min-height: 700px) { body { background: transparent; } }   /* html の背景だけにして、body の背景が左右の壁（z-index -1）を覆わないように */
@media (min-width: 1000px) and (min-height: 700px) { #wall { opacity: .8; } }
/* ---- 周回9 ux ---- */
#daily-chip { top: 6px; bottom: auto; max-width: 92%; padding: 1px 10px; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* 今日の会の札: 1行で小さく、上の端（会の名前のすぐ下）。場面の中央と手ほどきの文に重ねない */
#exp { display: none; }   /* 薄くて読めない撮影の数字（1/60 F2.8）は消す */
#toast .lab { font-weight: 800; color: #24160a; font-size: 15px; }
.client.ending { flex-direction: column; align-items: center; gap: 4px; padding: 2px 16px; }
.client.ending canvas { flex: none; width: min(210px, 62%); height: auto; aspect-ratio: 3 / 2; border: 4px solid #fbf8ef; border-radius: 3px; box-shadow: 0 3px 8px #0007; background: #fbf8ef; }
.client.ending .bubble { margin: 6px 0 0; text-align: center; padding: 6px 12px; font-size: 13.5px; line-height: 1.35; }
.client.ending .bubble::before { left: 50%; bottom: auto; top: -8px; margin-left: -8px; border: 8px solid transparent; border-top: 0; border-bottom-color: #f7efd9; }
.stamp { margin: 4px auto 2px; padding: 6px 16px; font-size: 22px; }
.verdict { margin: 2px 0 2px; font-size: 20px; }
.note.legend { font-size: 10.5px; line-height: 1.3; padding: 2px 12px; }
.mz.peek { cursor: pointer; outline: 1px dashed #a8946e; outline-offset: -2px; }
.mz.peek.open { outline: 2px solid #b5352a; }
.mz-peek { position: absolute; right: 4px; top: 4px; font-style: normal; font-size: 10px; color: #8a6a40; }
.mz-fore { grid-column: 1 / -1; background: #fff7dc; color: #3a2c20; border-left: 4px solid #b5352a; border-radius: 3px; padding: 6px 10px; font-size: 12.5px; font-weight: 700; line-height: 1.4; text-align: left; box-shadow: 0 1px 4px #0004; }
#toast.withzoom { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: center; max-width: 300px; }   /* 依頼を撮った直後: 顔の寄りの1コマを札の右に（札の高さは約 80px。次の瞬間とつまみを隠さない） */
#toast .zoomshot { grid-column: 2; grid-row: 1 / span 3; width: 76px; height: 76px; border: 3px solid #fff; box-shadow: 0 1px 4px #0006; transform: rotate(3deg); background: #fff; }
@media (max-width: 380px), (max-height: 700px) { #toast.withzoom { max-width: 250px; } #toast .zoomshot { width: 60px; height: 60px; } }
#toast.withzoom { max-width: 290px; padding: 6px 10px 8px; } #toast.withzoom .big { font-size: 19px; } #toast.withzoom .big b { font-size: 26px; } #toast.withzoom .lab { font-size: 13px; } #toast .zoomshot { width: 64px; height: 64px; }
.rq .rq-why { flex: 1 0 100%; margin: 0; padding-left: 30px; font-size: 11px; color: #e0b050; }
/* 周回10: 終わりの場面は幅いっぱい（7:3）。依頼の人ごとの一言は、その人の頭の上の吹き出し。依頼の行は1段 */
.client.ending { padding: 2px 12px; gap: 2px; align-items: stretch; }
.endwrap { position: relative; width: 100%; }
.client.ending canvas { display: block; width: 100%; max-width: none; height: auto; aspect-ratio: 7 / 3; border-width: 3px; }
.ebub { position: absolute; top: 5px; left: calc(16.67% + 33.33% * var(--i, 0)); transform: translateX(-50%); width: max-content; max-width: 30%; padding: 2px 6px 3px; border-radius: 9px; background: #f7efd9; color: #3a2c20; font-size: 10.5px; line-height: 1.25; font-weight: 800; text-align: center; box-shadow: 0 1px 4px #0006; overflow-wrap: anywhere; pointer-events: none; animation: ebub .28s cubic-bezier(.2,1.5,.4,1) both; animation-delay: calc(.5s + .2s * var(--i, 0)); }
.ebub::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: #f7efd9; }
.ebub.near { background: #fff1c8; } .ebub.miss { background: #e9e2d4; color: #5a4a3a; }
@keyframes ebub { from { opacity: 0; transform: translateX(-50%) translateY(6px) scale(.7); } to { opacity: 1; transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ebub { animation: none; } }
.client.ending .bubble { margin: 4px 0 0; padding: 4px 10px; font-size: 13px; line-height: 1.3; }
.client.ending .bubble::before { top: -6px; border-width: 6px; margin-left: -6px; }
.rq { flex-wrap: nowrap; } .rq > span:nth-child(2) { flex: 1 1 auto; min-width: 0; }
button.joined { display: block; margin: 8px auto 0; padding: 8px 14px; max-width: 92%; border: 1px solid #c88a70; border-radius: 14px; background: rgba(40,20,14,.82); color: #ffd0c8; font-family: inherit; font-size: 13px; font-weight: 800; line-height: 1.3; text-align: center; }
#daily-chip { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; text-align: center; max-width: 94%; }   /* 今日の会の札は切らずに2行まで */
@media (max-width: 380px), (max-height: 700px) { #toast.withzoom { max-width: 200px; padding: 4px 8px 5px; } #toast.withzoom .zoomshot { width: 46px; height: 46px; } #toast.withzoom .big { font-size: 16px; } #toast.withzoom .big b { font-size: 21px; } #toast.withzoom .lab { font-size: 11.5px; } }
#cues { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.cue { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; border: 3px dashed #ffd45a; box-shadow: 0 0 8px #ffd45a99; }
.cue[hidden] { display: none; }
.cue.now { border-style: solid; border-width: 4px; animation: cuepulse .5s ease-in-out infinite alternate; }
.cue i { display: none; }
.cue b { position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); margin-bottom: 2px; white-space: nowrap; padding: 1px 7px; border-radius: 9px; background: #ffd45a; color: #3a2400; font-size: 12px; line-height: 16px; font-weight: 900; }
@keyframes cuepulse { from { transform: translate(-50%, -50%) scale(1); } to { transform: translate(-50%, -50%) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .cue.now { animation: none; } }
.rq .rq-why { flex: 0 1 auto; margin: 0 0 0 4px; padding: 0; font-size: 11px; color: #e0b050; }
.mz-explain { font-size: 11px; line-height: 1.3; padding: 2px 18px 4px; color: #6a5440; font-weight: 700; }
.rq.near > small:not(.rq-why) { display: none; }   /* 周回11: おしいの行は「札: …」だけ（◐ と札が惜しいを言う）。行が3つに折れない */
.rq .rq-why { max-width: 56%; line-height: 1.2; overflow-wrap: anywhere; margin-left: auto; text-align: right; }
.zoom .zoom-save { background: var(--accent); color: #2a1c0c; border: 0; border-radius: 20px; padding: 10px 18px; min-height: 44px; font-weight: 800; font-size: 14px; }
.zoom .zoom-line { color: #ffd9a0; font-size: 13px; }
@media (max-height: 720px) { .zoom canvas { width: auto; max-width: 100%; max-height: 40vh; } }
/* 周回12: 撮れた直後の札は、反応する人と反対の側（人が下半分なら上）。逃した時の吹き出し（DOM の重ね。写真に写らない）。連打の「巻き上げ中」を暗い間も読める濃さに */
#toast.top { bottom: auto; top: 8px; }
#ohs { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.oh { position: absolute; transform: translate(-50%, -100%); padding: 3px 10px; border-radius: 12px; background: #f7efd9; color: #3a2c20; font-size: 14px; font-weight: 800; white-space: nowrap; box-shadow: 0 2px 6px #0008; animation: ohin .2s ease-out both; }
.oh::after { content: ''; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: #f7efd9; }
@keyframes ohin { from { opacity: 0; transform: translate(-50%, -85%); } to { opacity: 1; transform: translate(-50%, -100%); } }
@media (prefers-reduced-motion: reduce) { .oh { animation: none; } }
#wind { top: 124px; font-size: 17px; padding: 6px 14px; background: #eef6ff; color: #0e2a44; border: 3px solid #4f86b8; text-shadow: none; }
#moments-left { margin-left: auto; padding-left: 10px; border-left: 1px solid #55483a; }
#film-line { min-width: 170px; }
#wind.low { top: auto; bottom: 118px; }   /* 札が上に出ている間は、巻き上げ中を下へ（依頼を撮った直後の連打で札の頭に重ならない） */
.oh.there { background: #ffe9a0; font-size: 15px; font-weight: 900; }
.oh.there::after { border-top-color: #ffe9a0; left: calc(50% + var(--tail, 0px)); }
#shutter.cueglow { box-shadow: 0 0 0 6px #2a2420, 0 0 0 8px #ffd45a, 0 0 16px 8px #ffd45acc, 0 6px 12px #000c, inset 0 -6px 10px #0006, inset 0 4px 6px #fff4; }   /* 会1 の初めての回だけ、依頼の瞬間（いま！）の間のシャッターの縁の黄色（DOM。写真に写らない） */
/* 周回14: 逃した理由（結果の依頼の行）、✦ の依頼の一言、台紙の印、始まる前の1行 */
.rq .rq-miss { margin: 0 0 0 4px; font-size: 11px; white-space: nowrap; color: #c0a890; }
.rq.hasnote { flex-wrap: wrap; row-gap: 1px; }
.rq .rq-note { flex: 1 0 100%; margin: 0; padding-left: 30px; font-size: 11px; line-height: 1.2; color: #ffd98a; }
.req .spark { position: absolute; right: 9px; top: 1px; font-style: normal; font-size: 13px; line-height: 1; color: #ffb800; text-shadow: 0 0 2px #fff, 0 0 1px #fff, 0 1px 2px #0006; pointer-events: none; z-index: 2; }
.req.got .spark { display: none; }
#prenotes > #afternote { color: #ffd98a; }
/* 周回14 軽 AK: 札が上の間の「巻き上げ中」は、つまみ・シャッター・札のどれにも重ならない右上へ */
#wind.low { top: 128px; bottom: auto; left: auto; right: 12px; }
/* 会1 の初めての回のシャッターの縁の光: ファインダーの四隅と同じ黄色、太く */
#shutter.cueglow { box-shadow: 0 0 0 6px #ffd45a, 0 0 0 9px #2a2420, 0 0 22px 12px #ffd45add, 0 6px 12px #000c, inset 0 -6px 10px #0006, inset 0 4px 6px #fff4; }
/* 360×640 など小さい画面: 始まる前の帯は、会の名前の紙の下へ */
@media (max-width: 380px), (max-height: 700px) { #prenotes { top: 66px; } }
/* 周回14 修正: 巻き上げ中（札が上の間）は、上の札と寄りの写真より下の場面の右（つまみ・シャッターは下）へ */
#wind.low { top: 176px; }
/* ✦ の誘いは、行の右の小さな札（行を増やさない）。おしい行は下に1行 */
.rq > small.rq-note { margin: 0 0 0 auto; padding: 0; font-size: 10.5px; line-height: 1.2; white-space: nowrap; color: #ffd98a; flex: 0 0 auto; }
.rq.near > small.rq-note { display: block; }
.rq.hasnote > small.rq-note { flex: 1 0 100%; padding-left: 30px; white-space: normal; margin: 0; }
#album, #sheet { overflow-anchor: none; }   /* 周回14 修正: 結果は必ず一番上から（描画の伸びでスクロール位置を保たない） */
