/* 萬聖夜・蓋被被 */
:root {
  --bg: #050404;
  --bg-2: #120f0d;
  --card: #1a1513;
  --field: #16110f;
  --ink: #f3e9df;
  --ink-weak: #c9b8a8;
  --muted: #8a7a6e;
  --line: rgba(255, 140, 50, .22);
  --line-strong: rgba(255, 140, 50, .5);
  --orange: #ff8a2a;
  --orange-deep: #e0661a;
  --orange-soft: rgba(255, 138, 42, .1);
  --serif: 'Noto Serif TC', 'Source Han Serif', serif;
  --en: 'Cormorant Garamond', serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); }
body { color: var(--ink); font-family: var(--serif); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
button, input, textarea { font-family: inherit; }

/* 橘色細捲軸（輸入框、彈窗、回顧頁共用） */
.oscroll { scrollbar-width: thin; scrollbar-color: var(--orange) transparent; }
.oscroll::-webkit-scrollbar { width: 4px; }
.oscroll::-webkit-scrollbar-track { background: transparent; margin: 12px 0; }
.oscroll::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 4px; }

/* 背景：黑為主，只留一點點橘紫色暈（love-quiz 式緩慢位移） */
#bg-flow { position: fixed; inset: -8%; z-index: 0; pointer-events: none; filter: blur(30px); will-change: transform; animation: bgSway 26s ease-in-out infinite alternate;
  background:
    radial-gradient(50% 38% at 10% 14%, rgba(255,110,25,.07) 0%, rgba(255,110,25,0) 70%),
    radial-gradient(45% 40% at 90% 32%, rgba(90,35,110,.07) 0%, rgba(90,35,110,0) 72%),
    radial-gradient(60% 45% at 82% 92%, rgba(220,80,15,.08) 0%, rgba(220,80,15,0) 72%),
    linear-gradient(160deg, #070505, #030303 55%, #070403); }
@keyframes bgSway {
  0%   { transform: translate3d(-1.4%, -0.9%, 0) scale(1.03) rotate(-0.4deg); }
  45%  { transform: translate3d(0.5%, 0.8%, 0) scale(1.06) rotate(0.2deg); }
  100% { transform: translate3d(1.4%, -0.5%, 0) scale(1.03) rotate(0.5deg); }
}

.app { max-width: 480px; margin: 0 auto; padding: 8px 16px 120px; position: relative; z-index: 1; }
.app.shake { animation: shake .5s; }

/* ── 頂列 ── */
.top { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 8px; }
.brand-en { font-family: var(--en); font-style: italic; font-size: 12px; letter-spacing: 4px; color: var(--orange); }
.brand { font-size: 15px; letter-spacing: 3px; font-weight: 500; }
.top-right { display: flex; gap: 6px; align-items: center; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; font-size: 11.5px; letter-spacing: 1px; color: var(--ink-weak); background: none; cursor: pointer; white-space: nowrap; }
.pill b { color: var(--orange); font-weight: 500; }

/* ── 共用卡片／按鈕 ── */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 22px; margin-top: 12px; }
.panel h2, .card h2 { margin: 4px 0 4px; font-size: 18px; letter-spacing: 4px; font-weight: 500; text-align: center; }
.en-cap { display: block; text-align: center; font-family: var(--en); font-style: italic; letter-spacing: 5px; font-size: 12px; color: var(--orange); }
.panel p, .card p { color: var(--ink-weak); font-size: 13px; line-height: 2; letter-spacing: 1px; text-align: center; }
.btn-play { border: 0; border-radius: 999px; padding: 12px 0; background: linear-gradient(90deg, var(--orange-deep), var(--orange)); color: #1a0d03; font-size: 14.5px; font-weight: 700; letter-spacing: 3px; cursor: pointer; box-shadow: 0 4px 18px rgba(255,138,42,.25); }
.btn-play:disabled { background: #2a221d; color: var(--muted); box-shadow: none; cursor: default; }
.btn-play.block { display: block; width: 100%; margin-top: 20px; }
.btn-ghost { border: 1px solid var(--line); background: none; color: var(--ink-weak); border-radius: 999px; padding: 0 16px; font-size: 13px; letter-spacing: 2px; cursor: pointer; }
.btn-ghost.block { display: block; width: 100%; padding: 11px; margin-top: 12px; }
.btn-ghost:disabled { opacity: .4; cursor: default; }
.link { color: var(--orange); }

.field { margin-top: 14px; }
.field label { display: block; font-size: 12px; letter-spacing: 2px; color: var(--muted); margin-bottom: 6px; }
.field input { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: var(--field); color: var(--ink); padding: 11px 12px; font-size: 15px; outline: none; }
.field input:focus { border-color: var(--line-strong); }
.seg-pick { display: flex; gap: 8px; }
.seg-pick button { flex: 1; border: 1px solid var(--line); background: none; color: var(--ink-weak); border-radius: 12px; padding: 10px 0; font-size: 13px; letter-spacing: 2px; cursor: pointer; }
.seg-pick button.on { border-color: var(--orange); color: var(--orange); background: var(--orange-soft); }

/* ── 選角色＋選電影 ── */
.step-title { display: flex; align-items: baseline; gap: 10px; margin: 22px 2px 10px; }
.step-title .no { font-family: var(--en); font-style: italic; color: var(--orange); font-size: 18px; }
.step-title .t { font-size: 15px; letter-spacing: 3px; }
.step-title .sub { font-size: 11.5px; color: var(--muted); letter-spacing: 1px; margin-left: auto; }
.me-row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--ink-weak); letter-spacing: 1px; padding: 10px 2px 0; }
.search { display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; border-radius: 12px; border: 1px solid var(--line); background: var(--field); color: var(--ink); padding: 10px 12px; font-size: 14px; outline: none; }
.search button { flex: none; }
.char-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; margin-top: 12px; }
.char { background: none; border: 0; color: var(--ink-weak); cursor: pointer; padding: 0; text-align: center; font-size: 12px; letter-spacing: .5px; min-width: 0; }
.char img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid transparent; display: block; margin: 0 auto 6px; background: var(--bg-2); }
.char span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.char.on img { border-color: var(--orange); box-shadow: 0 0 14px rgba(255,138,42,.45); }
.char.on { color: var(--orange); }
.empty { color: var(--muted); font-size: 12.5px; letter-spacing: 1px; text-align: center; padding: 14px 0; }
.movie-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.movie { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; text-align: left; padding: 0; color: var(--ink); }
.movie .cv { aspect-ratio: 16 / 9; background: #000 center / cover; }
.movie .info { padding: 8px 10px 10px; }
.movie .g { font-size: 10px; letter-spacing: 2px; color: var(--orange); }
.movie .t { font-size: 13.5px; letter-spacing: 1px; font-weight: 700; margin: 2px 0; line-height: 1.4; }
.movie .tg { font-size: 11px; color: var(--muted); line-height: 1.5; }
.movie.on { border-color: var(--orange); box-shadow: 0 0 16px rgba(255,138,42,.35); }
.movie.secret { grid-column: 1 / -1; border-color: rgba(200,40,70,.45); }
.movie.secret .g { color: #ff5c7a; }
/* 上鎖遮罩只蓋封面，片名簡介保持可見（當預告）*/
.movie .lock { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: rgba(5,4,4,.72); font-size: 13px; letter-spacing: 2px; color: var(--ink); }
.movie .lock small { color: var(--orange); letter-spacing: 1px; font-size: 11.5px; }
.start-bar { position: sticky; bottom: 12px; margin-top: 18px; z-index: 5; }
.start-bar .btn-play { width: 100%; }

/* ── 等待生圖 ── */
.wait { text-align: center; }
.wait .ava { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 2px solid var(--orange); margin: 10px auto 0; display: block; animation: breathe 2.4s ease-in-out infinite; }
.wait .bar { height: 3px; background: rgba(255,255,255,.06); border-radius: 3px; margin: 18px 10px 6px; overflow: hidden; }
.wait .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--orange-deep), var(--orange)); transition: width 1s linear; }
.wait .eta { font-size: 11.5px; color: var(--muted); letter-spacing: 1px; }
@keyframes breathe { 50% { box-shadow: 0 0 26px rgba(255,138,42,.5); } }

/* ── 劇院排列（手機）：電視 → 播放｜紀錄 → 角色圖（回覆疊在圖上）→ 打字框
   讓角色的回覆緊貼在打字框上方，回話時不用往上捲 ── */
#theaterView { display: flex; flex-direction: column; padding-bottom: 20px; }
#theaterView .theater-side { display: contents; }
#theaterView .screen-label { order: 1; margin-top: 2px; }
#theaterView .screen { order: 2; }
#theaterView .controls { order: 3; }
#theaterView .stage { order: 4; margin-top: 14px; }
#theaterView .composer { order: 5; }
#theaterView .hint { order: 6; }
#theaterView .notice { order: 7; }

/* ── 劇院：角色圖＋對話框 ── */
.stage { position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.stage .pic { position: absolute; inset: 0; background-size: cover; background-position: center top; transition: opacity .7s ease; }
.stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11,9,8,0) 58%, rgba(11,9,8,.82) 82%, rgba(11,9,8,.95)); pointer-events: none; }
.adv { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 18px 14px; cursor: pointer; min-height: 92px; }
.adv-name { display: inline-block; font-size: 12px; letter-spacing: 3px; color: var(--orange); border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; margin-bottom: 7px; }
.adv-text { font-size: 15px; line-height: 1.75; letter-spacing: .6px; min-height: 52px; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.adv-text.action { font-size: 13.5px; color: var(--ink-weak); font-style: italic; }
.adv-next { position: absolute; right: 18px; bottom: 12px; color: var(--orange); font-size: 10px; animation: bob 1.2s infinite; }
.typing { display: inline-flex; gap: 5px; vertical-align: middle; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--orange); animation: dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
.retry { margin-left: 8px; border: 1px solid var(--line-strong); color: var(--orange); background: none; border-radius: 999px; padding: 2px 10px; font-size: 12px; cursor: pointer; }

/* ── 16:9 電影螢幕 ── */
.screen-label { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 2px 6px; }
.screen-label .en { font-family: var(--en); font-style: italic; font-size: 12px; letter-spacing: 3px; color: var(--muted); }
.screen-label .seg { font-size: 11.5px; letter-spacing: 2px; color: var(--orange); }
.screen { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; border: 1px solid var(--line); cursor: pointer; }
.screen .cover, .screen .g { position: absolute; inset: 0; background-size: cover; background-position: center; }
.screen .cover { transition: filter 1.2s ease; }
.screen.playing .cover { filter: brightness(.38) saturate(.7); }
.screen.creep .cover { filter: brightness(.18) saturate(.4); }
.screen .g { opacity: 0; mix-blend-mode: screen; }
.screen .g.r { filter: url(#onlyRed); }
.screen .g.c { filter: url(#onlyCyan); }
.screen.burst .g { opacity: .85; animation: slice .32s steps(3) infinite; }
.screen.burst .g.c { animation-direction: reverse; }
.screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .13; mix-blend-mode: screen; pointer-events: none; }
.screen.burst canvas, .screen.static canvas { opacity: .55; }
.screen .scan { position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, rgba(0,0,0,.28) 0 1px, transparent 1px 3px); pointer-events: none; }
.screen .vig { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.75)); pointer-events: none; }
.screen .flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.screen .flash.on { animation: flash .6s ease-out; }
.screen .title-card { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 16px 14px; background: linear-gradient(to top, rgba(0,0,0,.75), transparent 60%); }
.title-card .genre { font-size: 10.5px; letter-spacing: 3px; color: var(--orange); }
.title-card .t { font-size: 20px; letter-spacing: 4px; font-weight: 700; margin: 2px 0; text-shadow: 2px 0 rgba(255,0,60,.5), -2px 0 rgba(0,220,255,.4); }
.title-card .tag { font-size: 11.5px; color: var(--ink-weak); letter-spacing: 1px; }
.subs { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 14px 12px; font-size: 13px; line-height: 1.75; letter-spacing: .5px; color: #fff; text-shadow: 0 0 6px #000, 0 1px 2px #000; max-height: 100%; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.end-card { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--en); font-style: italic; letter-spacing: 8px; font-size: 22px; color: var(--ink); background: rgba(0,0,0,.6); opacity: 0; transition: opacity 1.5s; pointer-events: none; }
.end-card.on { opacity: 1; }
.screen.gag .cover { animation: boing .5s; }
/* steamy：恐怖片突然變成深夜片，畫面染成粉紅色調 */
.screen.steamy .cover { filter: brightness(.45) saturate(1.3) sepia(.35) hue-rotate(-35deg); }
.screen.steamy::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(255,90,170,.28), rgba(120,0,60,.35)); mix-blend-mode: screen; pointer-events: none; z-index: 1; }
/* tvoff：角色把電視關掉——老電視關機，畫面收成一條白線後熄滅 */
.screen .crt { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 3; }
.screen .crt::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: #fff; box-shadow: 0 0 14px 2px #fff; transform: scaleX(0); opacity: 0; }
.screen .crt.on { animation: crtBg .35s ease-in forwards; }
.screen .crt.on::after { animation: crtLine .9s ease-out forwards; }
.screen .crt.done { opacity: 1; }
.screen .end-card { z-index: 4; }
@keyframes crtBg { to { opacity: 1; } }
@keyframes crtLine { 0% { transform: scaleX(1); opacity: 1; } 55% { transform: scaleX(.03); opacity: 1; } 100% { transform: scaleX(0); opacity: 0; } }

/* ── 操作 ── */
.controls { display: flex; gap: 8px; margin-top: 12px; }
.controls .btn-play { flex: 1; }
.composer { position: relative; margin-top: 12px; }
.composer textarea { display: block; width: 100%; resize: none; min-height: 76px; max-height: 168px; border-radius: 16px; border: 1px solid var(--line); background: var(--field); color: var(--ink); padding: 13px 58px 13px 15px; font-size: 15px; line-height: 1.65; letter-spacing: .5px; outline: none; }
.composer textarea:focus { border-color: var(--line-strong); }
.composer button { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--orange-soft); color: var(--orange); font-size: 16px; cursor: pointer; }
.composer button:disabled { opacity: .4; cursor: default; }
.hint { text-align: center; font-size: 11px; color: var(--muted); letter-spacing: 1.5px; margin-top: 8px; }
.notice { margin-top: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 12.5px; color: var(--ink-weak); letter-spacing: 1px; text-align: center; background: var(--card); }

/* ── 下排：回顧夜晚｜贊助奶茶｜活動說明 ── */
.nav { display: flex; align-items: stretch; margin-top: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 2; }
.nav button { flex: 1; position: relative; background: none; border: 0; color: var(--ink-weak); font-size: 13px; letter-spacing: 3px; padding: 14px 0; cursor: pointer; }
.nav button + button::before { content: ""; position: absolute; left: 0; top: 30%; bottom: 30%; width: 1px; background: var(--line); }
.nav button:active { color: var(--orange); }
.nav .bubble { position: absolute; left: 50%; top: -15px; transform: translateX(-50%); white-space: nowrap; font-size: 10.5px; letter-spacing: 1px; color: #1a0d03; background: var(--orange); border-radius: 999px; padding: 2px 8px; animation: bob 1.6s infinite; }
.nav .bubble::after { content: ""; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%); border: 4px solid transparent; border-bottom: 0; border-top-color: var(--orange); }
.nav .bubble.done { background: var(--card); color: var(--orange); border: 1px solid var(--line-strong); animation: none; }
.nav .bubble.done::after { display: none; }

/* ── 彈窗 ── */
.modal { position: fixed; inset: 0; z-index: 30; background: rgba(5,4,3,.86); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .25s; }
.card { width: 100%; max-width: 400px; max-height: 84vh; overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 22px; }
.rules { text-align: left; }
.rules h3 { font-size: 13px; letter-spacing: 3px; color: var(--orange); margin: 16px 0 4px; font-weight: 500; }
.rules ul { margin: 0; padding-left: 18px; color: var(--ink-weak); font-size: 13px; line-height: 1.9; letter-spacing: .5px; }
.night { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.06); cursor: pointer; }
.night img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); flex: none; }
.night .meta { flex: 1; font-size: 13.5px; letter-spacing: .5px; line-height: 1.6; min-width: 0; }
.night .meta small { display: block; color: var(--muted); font-size: 11.5px; }
.night .arrow { color: var(--orange); }
.log-item { border-top: 1px solid rgba(255,255,255,.06); padding: 10px 0; font-size: 13.5px; line-height: 1.8; letter-spacing: .5px; }
.log-item .who { font-size: 11px; letter-spacing: 2px; color: var(--orange); display: block; }
.log-item .act { color: var(--ink-weak); font-style: italic; }
.log-item.play { color: var(--ink-weak); font-size: 12.5px; }

/* ── 底部 SVG 線條南瓜與幽靈 ── */
.deco { position: fixed; left: 0; right: 0; bottom: 0; height: 104px; pointer-events: none; z-index: 0; display: flex; justify-content: center; }
.deco svg { width: 100%; max-width: 520px; height: 100%; overflow: visible; }
.float { animation: float 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.float.f2 { animation-delay: -2.2s; }
.twinkle { animation: twinkle 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.twinkle.t2 { animation-delay: -1.3s; } .twinkle.t3 { animation-delay: -.6s; }

@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes twinkle { 50% { opacity: .3; transform: scale(.75); } }
@keyframes shake { 0%,100% { transform: translate(0,0); } 15% { transform: translate(-8px,3px); } 30% { transform: translate(7px,-4px); } 45% { transform: translate(-5px,2px); } 60% { transform: translate(4px,-2px); } 80% { transform: translate(-2px,1px); } }
@keyframes slice { 0% { clip-path: inset(8% 0 72% 0); transform: translateX(-6px); } 33% { clip-path: inset(55% 0 25% 0); transform: translateX(7px); } 66% { clip-path: inset(30% 0 52% 0); transform: translateX(-4px); } 100% { clip-path: inset(78% 0 6% 0); transform: translateX(5px); } }
@keyframes flash { 0% { opacity: .95; } 100% { opacity: 0; } }
@keyframes boing { 30% { transform: scale(1.06, .94); } 60% { transform: scale(.97, 1.03); } }
@keyframes bob { 50% { transform: translateY(3px); } }
.nav .bubble { animation-name: bubbleBob; }
@keyframes bubbleBob { 50% { transform: translate(-50%, 3px); } }
@keyframes dot { 0%,80%,100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
/* ── 隱藏成就：右下角小幽靈 ──
   裝飾 SVG 是 viewBox 520×104、高 104px、preserveAspectRatio xMidYMax meet，
   實際畫出來的範圍＝寬 min(100vw, 520px)、比例 5:1、置中貼底；幽靈中心在 viewBox (478, 46) */
.ghost-hit { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100vw, 520px); aspect-ratio: 5 / 1; z-index: 20; pointer-events: none; }
.ghost-hit button { position: absolute; left: 91.92%; top: 44.2%; width: 38px; height: 38px; transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: transparent; cursor: pointer; pointer-events: auto; padding: 0; }
.ghost-hit .boo { position: absolute; left: 91.92%; top: 0; transform: translate(-60%, -40%); font-family: var(--en); font-style: italic; font-weight: 600; font-size: 20px; color: #f3e2cf; text-shadow: 0 0 10px rgba(255,138,42,.8); opacity: 0; pointer-events: none; }
.ghost-hit .boo.on { animation: booUp 1.1s ease-out forwards; }
#decoGhost { transform-box: fill-box; transform-origin: center; }
#decoGhost.caught { animation: ghostCaught .8s ease-out; }
@keyframes ghostCaught { 0% { transform: scale(1); } 25% { transform: scale(1.45) rotate(-12deg); } 50% { transform: scale(1.3) rotate(10deg); } 75% { transform: scale(1.15) rotate(-6deg); } 100% { transform: scale(1); } }
@keyframes booUp { 0% { opacity: 0; transform: translate(-60%, 0) scale(.6); } 25% { opacity: 1; transform: translate(-60%, -60%) scale(1.1); } 100% { opacity: 0; transform: translate(-60%, -140%) scale(1); } }
.toast { position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: 40; max-width: min(90vw, 380px); background: var(--card); border: 1px solid var(--line-strong); border-radius: 14px; padding: 12px 16px; font-size: 13.5px; line-height: 1.7; letter-spacing: .5px; color: var(--ink); box-shadow: 0 8px 30px rgba(0,0,0,.6); animation: fade .3s; text-align: center; }

/* ── 電腦版：內容寬 800px、字放大。看電影畫面：左邊 3:4 角色圖；右邊由上而下＝電視、角色回覆、打字框 ── */
@media (min-width: 840px) {
  .app { max-width: 800px; padding-left: 0; padding-right: 0; }
  .panel { max-width: 560px; margin-left: auto; margin-right: auto; padding: 34px 30px; }
  .panel h2, .card h2 { font-size: 22px; }
  .panel p, .card p { font-size: 15px; }
  .brand-en { font-size: 14px; }
  .brand { font-size: 19px; }
  .pill { font-size: 13px; padding: 6px 14px; }
  /* 看電影：左邊角色圖（回覆疊在圖上，同手機）；右邊電視→播放｜紀錄→打字框 */
  #theaterView { display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: start; padding-bottom: 100px; }
  #theaterView .theater-side { display: block; grid-column: 2; grid-row: 1; }
  /* 手機版的 order 會讓角色圖排到後面，電腦版直接指定欄位：角色圖固定在左欄 */
  #theaterView .stage { grid-column: 1; grid-row: 1; margin-top: 0; position: sticky; top: 16px; }
  .adv { padding: 0 20px 18px; }
  .adv-name { font-size: 14px; }
  .adv-text { font-size: 17px; line-height: 1.85; }
  .adv-text.action { font-size: 15.5px; }
  .screen-label { margin-top: 0; }
  .screen-label .en, .screen-label .seg { font-size: 13px; }
  .subs { font-size: 15px; padding: 0 16px 14px; }
  .title-card .genre { font-size: 12px; }
  .title-card .t { font-size: 24px; }
  .title-card .tag { font-size: 13.5px; }
  .end-card { font-size: 26px; }
  .controls { margin-top: 16px; }
  .btn-play { font-size: 16px; padding: 14px 0; }
  .btn-ghost { font-size: 14px; padding: 0 22px; }
  .composer textarea { font-size: 16px; min-height: 88px; padding: 15px 64px 15px 18px; }
  .composer button { width: 46px; height: 46px; font-size: 18px; }
  .hint { font-size: 13px; }
  .nav button { font-size: 15px; padding: 16px 0; }
  .card { max-width: 520px; }
  .rules ul, .log-item { font-size: 15px; }
  /* 選角色＋選電影 */
  .me-row { font-size: 14px; }
  .step-title .t { font-size: 18px; }
  .step-title .sub { font-size: 13px; }
  #selectView .search { max-width: 560px; }
  .search input { font-size: 15px; }
  .char-grid { grid-template-columns: repeat(6, 1fr); gap: 18px 10px; }
  .char { font-size: 13.5px; }
  .char img { width: 80px; height: 80px; }
  .movie-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .movie .g { font-size: 12px; }
  .movie .t { font-size: 16px; }
  .movie .tg { font-size: 13px; }
  .movie.secret { display: grid; grid-template-columns: 340px 1fr; align-items: center; }
  .movie.secret .info { padding: 16px 24px; }
  .movie.secret .t { font-size: 20px; }
  .movie.secret .tg { font-size: 14px; }
  .movie.secret .lock { right: auto; width: 340px; }
  .start-bar { max-width: 440px; margin-left: auto; margin-right: auto; }
  .deco svg { max-width: 860px; }
}
@media (prefers-reduced-motion: reduce) { .app.shake, .screen.burst .g, .float, .twinkle, #bg-flow { animation: none; } }
