/* 《师父又被抓走了》竖屏样式。
   界面用悟空自己的家当做：往前走的那一下是金箍棒（两头金箍、中间乌铁，字刻在棒身上），
   脚下是筋斗云（操作区、封面底部、浮层都站在云上），头顶是天。
   大字用马善政毛笔楷（fonts/brush-93cf6d00.woff2，按用到的字裁过，见 tools/brushfont.sh），正文霞鹜文楷。 */
@font-face {
  font-family: 'XY Brush'; font-display: block;
  src: url('fonts/brush-93cf6d00.woff2') format('woff2');
}
:root {
  --ink: #1f2a4a;
  --ink-2: #4a5679;
  --sky: #3d9be9;
  --sky-d: #2577c4;
  --sky-1: #9fd2f5;
  --sky-2: #e6f4fd;
  --cloud: #fffdf7;
  --gold: #f7bd22;
  --gold-hi: #ffe28a;
  --gold-d: #a86d05;
  --iron: #2b2420;
  --red: #d8352a;
  --line: 2.4px;
  --font: 'LXGW WenKai Screen', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  --brush: 'XY Brush', 'LXGW WenKai Screen', 'Kaiti SC', serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); color: var(--ink); background: var(--sky);
  font-size: 16px; line-height: 1.55; overflow: hidden; overscroll-behavior: none;
}
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.bar button:focus-visible { outline-color: #fff; }
[hidden] { display: none !important; }
.screen { position: fixed; inset: 0; display: none; }
#game { bottom: auto; height: var(--vvh, 100dvh); }
.screen.on { display: flex; flex-direction: column; }

/* ── 筋斗云：上沿是一排云头，云头间带卷云钩 ── */
.cloud { position: relative; background: var(--cloud); }
.cloud > * { position: relative; z-index: 1; }
.cloud::before {
  content: ''; position: absolute; left: 0; right: 0; top: -40px; height: 56px; pointer-events: none; z-index: 0;
  background: url(img/cloud-edge.svg) 50% 0 / 1600px 56px no-repeat;
}

/* ── 金箍棒：两头金箍，中间乌铁，字刻在铁上 ── */
.bang {
  --hoop: 52px;
  position: relative; display: block; width: min(100%, 340px); height: 56px; margin: 0 auto; padding: 0;
  border: var(--line) solid var(--ink); border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .06) 30%, transparent 52%, rgba(0, 0, 0, .34)),
    repeating-linear-gradient(90deg, transparent 0 7px, rgba(122, 72, 0, .6) 7px 9px) 0 0 / var(--hoop) 100% no-repeat,
    repeating-linear-gradient(270deg, transparent 0 7px, rgba(122, 72, 0, .6) 7px 9px) 100% 0 / var(--hoop) 100% no-repeat,
    linear-gradient(90deg, var(--gold) var(--hoop), var(--ink) var(--hoop) calc(var(--hoop) + 2px), var(--iron) 0 calc(100% - var(--hoop) - 2px), var(--ink) 0 calc(100% - var(--hoop)), var(--gold) 0);
  box-shadow: 0 6px 12px -5px rgba(31, 42, 74, .55);
  color: var(--gold-hi); font-family: var(--brush); font-size: 27px; line-height: 1; letter-spacing: .34em; text-indent: .34em;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 220, 120, .25);
  transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), filter .18s;
}
.bang span { display: block; padding-top: 2px; }
.bang:active:not(:disabled) { transform: scaleX(1.045); filter: brightness(1.12); }
.bang:disabled { filter: grayscale(.6) brightness(.9); cursor: default; }
/* 封面上：从一根绣花针长成整根 */
.bang.grow { animation: grow .75s .35s cubic-bezier(.25, 1.35, .45, 1) both; }
.bang.grow span { animation: fadein .3s 1s both; }
@keyframes grow { from { transform: scale(.05, .16); filter: brightness(1.6); } }
@keyframes fadein { from { opacity: 0; } }

/* ── 标题 ── */
#title { background: var(--sky); overflow: hidden; }
.title-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; }
.logo {
  position: relative; margin: 0; padding: calc(var(--safe-t) + 5.5vh) 0 0 7vw;
  font-family: var(--brush); font-weight: 400; line-height: .98; color: var(--ink); -webkit-text-stroke: 1.4px var(--ink);
  text-shadow: 0 0 2px #fff, 0 0 22px rgba(255, 255, 255, .75);
}
.logo span { display: block; }
.logo .l1 { font-size: clamp(44px, 13vw, 70px); }
.logo .l2 { font-size: clamp(50px, 15.4vw, 84px); margin-left: .42em; margin-top: -.06em; white-space: nowrap; }
.title-cloud {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 24px calc(var(--safe-b) + 14px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.pitch { margin: 0; font-size: 16px; text-align: center; color: var(--ink-2); }
.title-links { display: flex; gap: 6px 22px; flex-wrap: wrap; justify-content: center; }
.link { background: none; border: 0; padding: 8px 4px; font-size: 16px; color: var(--ink-2); }
.link.strong { color: var(--ink); font-family: var(--brush); font-size: 21px; padding-top: 4px; padding-bottom: 6px; }
.link:active { color: var(--sky-d); }

/* ── 顶栏：天 ── */
.bar {
  flex: none; padding: calc(var(--safe-t) + 6px) 10px 7px; background: var(--sky-d); color: #fff; z-index: 2;
}
.bar-row { display: flex; align-items: center; gap: 8px; }
.bar-home { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .18); color: #fff; font-size: 24px; line-height: 1; padding: 0 0 4px; flex: none; }
.bar-stage { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--brush); font-size: 25px; line-height: 1.2; }
.bar-stage b { font-weight: 400; font-size: 17px; opacity: .8; margin-right: 6px; }
/* 五难：一条路，走过的镀金，脚下这一难套着金箍 */
.route { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; flex: none; position: relative; }
.route li { position: relative; width: 26px; height: 26px; display: grid; place-items: center; font-size: 12px; color: #fff; }
.route li + li { margin-left: 4px; }
.route li + li::before { content: ''; position: absolute; right: 100%; top: 50%; width: 4px; border-top: 1.5px dotted rgba(255, 255, 255, .7); }
.route li::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .6); z-index: -1; }
.route li.done { color: var(--ink); }
.route li.done::after { background: var(--gold); border-color: var(--gold); }
.route li.now { color: var(--ink); font-family: var(--brush); font-size: 15px; }
.route li.now::after { inset: 0; background: #fff; border: 3px solid var(--gold); box-shadow: 0 0 0 1.5px var(--gold-d); }
.stats { display: flex; align-items: baseline; gap: 12px; margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, .94); flex-wrap: nowrap; overflow: hidden; }
.stat { display: inline-flex; align-items: baseline; gap: 2px; white-space: nowrap; }
.stat b { font-weight: 400; color: #fff; font-size: 17px; margin-left: 2px; }
.stat.caught { margin-left: auto; }
.stat.caught b { color: var(--gold-hi); margin: 0 2px; }
.stat.bump { animation: bump .5s; }
@keyframes bump { 30% { transform: scale(1.35); } }
#s-hoop { display: inline-flex; gap: 3px; margin-left: 4px; align-self: center; }
.ring { width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--gold); display: inline-block; }
.ring.on { border-color: var(--red); background: var(--red); box-shadow: 0 0 0 1.5px #fff; }

/* ── 聊天：天往下淡到云 ── */
.chat {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 12px 36px;
  background: linear-gradient(var(--sky-1), var(--sky-2) 26%, #f4faff);
}
.msg { display: flex; gap: 9px; align-items: flex-start; margin: 10px 0; animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.97); } }
.msg .av { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--ink); flex: none; object-fit: cover; background: #fff; }
.msg .col { min-width: 0; max-width: calc(100% - 60px); display: flex; flex-direction: column; align-items: flex-start; }
.msg .who { font-size: 13px; color: var(--ink-2); margin: 0 0 3px 6px; }
.bubble {
  position: relative; background: #fff; border: 2px solid var(--ink); border-radius: 20px;
  padding: 7px 14px 8px; font-size: 17px; line-height: 1.5; word-break: break-word;
}
/* 气泡尾巴：朝说话的人 */
.bubble::before, .bubble::after { content: ''; position: absolute; top: 12px; width: 0; height: 0; border-style: solid; }
.bubble::before { left: -10px; border-width: 6px 10px 6px 0; border-color: transparent var(--ink) transparent transparent; }
.bubble::after { left: -7px; top: 13.5px; border-width: 4.5px 8px 4.5px 0; border-color: transparent #fff transparent transparent; }
.msg.me { flex-direction: row-reverse; }
.msg.me .col { align-items: flex-end; }
.msg.me .who { margin: 0 6px 3px 0; }
.msg.me .bubble { background: var(--gold); }
.msg.me .bubble::before { left: auto; right: -10px; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--ink); }
.msg.me .bubble::after { left: auto; right: -7px; border-width: 4.5px 0 4.5px 8px; border-color: transparent transparent transparent var(--gold); }
.msg.horse .bubble { font-style: italic; }
.narr { margin: 12px 20px; text-align: center; font-size: 15px; color: var(--ink-2); line-height: 1.6; animation: pop .22s ease-out; }
.typing .bubble { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing .bubble i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); animation: dot 1s infinite; }
.typing .bubble i:nth-child(2) { animation-delay: .15s; }
.typing .bubble i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* 玩家的这一手 */
.mine { display: flex; justify-content: flex-end; margin: 18px 0 6px; animation: pop .2s ease-out; }
.mine span { max-width: 82%; font-size: 15px; padding: 4px 13px; border-radius: 99px; background: var(--ink); color: #fff; }
.mine.free span { border-radius: 16px 16px 4px 16px; }

/* 一难开场：场景图，难名用毛笔写在图上 */
.scene { position: relative; margin: 16px -2px; border-radius: 18px; overflow: hidden; border: 2px solid var(--ink); animation: pop .3s ease-out; }
.scene img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.scene .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 12px; color: #fff;
  background: linear-gradient(transparent, rgba(20, 30, 60, .72));
}
.scene .cap b { display: block; font-family: var(--brush); font-weight: 400; font-size: 44px; line-height: 1.05; text-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.scene .cap small { font-size: 15px; opacity: .92; }
.scene .cap small i { font-style: normal; margin-right: 10px; color: var(--gold-hi); }
.scene.slim img { aspect-ratio: 16 / 9; }
.scene.slim .cap b { font-size: 34px; }
.scene.hot .cap b { color: var(--gold-hi); }

/* 判定：一个毛笔大字砸下来 */
.verdict { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px 0 8px; flex-wrap: wrap; }
.verdict .v {
  font-family: var(--brush); font-size: 46px; line-height: 1; color: var(--gold);
  paint-order: stroke fill; -webkit-text-stroke: 5px var(--ink); animation: slam .45s cubic-bezier(.2, 1.6, .4, 1) both;
}
.verdict .v.bad { color: var(--red); }
.verdict .v.mid { color: #fff; }
.verdict .v.small { font-size: 30px; -webkit-text-stroke-width: 4px; }
.verdict .why { max-width: 70%; font-size: 15px; color: var(--ink-2); }
@keyframes slam { from { opacity: 0; transform: scale(2.2) rotate(-8deg); } 60% { opacity: 1; } }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 6px 0 10px; }
.chip { font-size: 13px; padding: 2px 10px; border-radius: 99px; background: rgba(31, 42, 74, .07); color: var(--ink-2); white-space: nowrap; animation: pop .25s ease-out; }
.chip.ok { background: #fff1c2; color: #7a4f00; }
.chip.bad { background: #fde2df; color: #9d1f19; }
.chip.gold { background: var(--gold); color: var(--ink); }

/* 嘴仗开场：两张脸对上 */
.vs { margin: 18px 0 12px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4px; animation: pop .3s ease-out; }
.vs figure { margin: 0; text-align: center; font-size: 15px; }
.vs img { width: 76px; height: 76px; border-radius: 50%; border: var(--line) solid var(--ink); object-fit: cover; display: block; margin: 0 auto 4px; background: #fff; }
.vs figure:first-child img { background: var(--gold); }
.vs .x { font-family: var(--brush); font-size: 42px; line-height: 1; color: var(--red); paint-order: stroke fill; -webkit-text-stroke: 5px #fff; transform: rotate(-6deg); }
.vs .trait { grid-column: 1 / -1; text-align: center; font-size: 14px; color: var(--ink-2); margin-top: 2px; }

/* 一难过了 */
.settle { margin: 18px 0 10px; padding: 14px 16px; border-radius: 22px; background: rgba(255, 255, 255, .78); display: grid; grid-template-columns: 76px 1fr; gap: 2px 14px; align-items: center; animation: pop .3s ease-out; }
.settle img { grid-row: 1 / 4; width: 76px; height: 76px; object-fit: contain; }
.settle .grade { display: flex; align-items: baseline; gap: 10px; font-family: var(--brush); font-size: 27px; line-height: 1.2; }
.settle .grade b { font-weight: 400; font-size: 40px; line-height: 1; color: var(--gold); paint-order: stroke fill; -webkit-text-stroke: 4.5px var(--ink); }
.settle .it { font-size: 16px; }
.settle .it small { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.quote { margin: 10px 6px; padding: 6px 12px 8px 16px; border-left: 3px solid var(--gold); font-size: 15px; }
.quote small { display: block; color: var(--ink-2); font-size: 12px; }

/* ── 操作区：站在筋斗云上。收得紧：聊天才是正戏，操作区只占屏幕下面一小截 ── */
.dock {
  flex: none; padding: 2px 8px calc(var(--safe-b) + 4px); z-index: 2; max-height: 60vh;
  display: flex; flex-direction: column;
}
/* 云边按 0.65 缩小，少压一截聊天 */
.dock.cloud::before { top: -26px; height: 37px; background-size: 1040px 37px; }
/* 内层滚动；四周留 5px 给焦点框（3px + 偏 2px）和金箍棒的影子，不被滚动区裁掉 */
.dock-in { flex: 0 1 auto; min-height: 0; overflow-y: auto; padding: 5px; }
.opts { display: flex; flex-direction: column; }
.opt {
  display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 2px 8px; text-align: left; width: 100%; min-height: 38px;
  padding: 3px 6px 3px 0; border: 0; background: none; border-radius: 10px; font-size: 15.5px; line-height: 1.3;
  transition: background-color .12s;
}
.opt + .opt { box-shadow: 0 -1.5px 0 -0.5px rgba(31, 42, 74, .1); }
.opt:active:not(:disabled) { background: #fff1c2; }
.opt:disabled { opacity: .38; }
.opt .tag { font-family: var(--brush); font-size: 23px; line-height: 1; color: var(--red); text-align: center; }
.opt.rescue .tag { color: var(--sky-d); }
.opt .t { min-width: 0; }
.opt .meta { font-size: 12px; color: var(--ink-2); text-align: right; line-height: 1.25; white-space: nowrap; }
.opt .meta em { font-style: normal; color: var(--red); }
.go-wrap { padding: 4px 0 6px; }
.dock .bang { --hoop: 44px; height: 48px; font-size: 23px; }
/* 嘴仗：四个嘴法，一字排开 */
.duelbar { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.duelbar .face { display: inline-flex; gap: 3px; }
.duelbar .face i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); border: 1.5px solid var(--ink); }
.duelbar .face.them i { background: var(--red); }
.duelbar .face i.off { background: transparent; border-color: rgba(31, 42, 74, .25); }
.duelbar .r { margin-left: auto; }
.duelbar b { font-weight: 400; color: var(--ink); }
.foe-trait { margin: 1px 0 0; font-size: 13px; color: var(--ink-2); }
.warn-trap { margin: 2px 0 0; font-size: 13px; color: var(--red); }
.styles { display: grid; grid-template-columns: repeat(4, 1fr); margin: 4px 0 0; }
.style { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 2px 5px; border: 0; background: none; border-radius: 12px; }
.style + .style::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; border-left: 1.5px solid rgba(31, 42, 74, .12); }
.style b { font-family: var(--brush); font-weight: 400; font-size: 30px; line-height: 1; color: var(--red); transition: transform .15s cubic-bezier(.3, 1.6, .5, 1); }
.style span { font-size: 12px; color: var(--ink-2); line-height: 1.3; text-align: center; }
.style:active b { transform: scale(1.18) rotate(-6deg); }
.style:active { background: #fff1c2; }
.free { display: flex; gap: 8px; margin-top: 6px; }
.free input {
  flex: 1; min-width: 0; height: 40px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 99px; background: #fff;
}
.free input::placeholder { color: #8a93ad; }
.free button {
  flex: none; width: 40px; height: 40px; padding: 0 0 2px; border: 2px solid var(--ink); border-radius: 50%;
  background: var(--gold); font-family: var(--brush); font-size: 22px; line-height: 1;
}
.free button:active { transform: scale(.94); }
.free button:disabled { opacity: .5; }
.dock.typing .opts, .dock.typing .styles, .dock.typing .duelbar, .dock.typing .foe-trait, .dock.typing .warn-trap { display: none; }
.dock.typing .free { margin-top: 2px; }
.av-txt { display: grid; place-items: center; background: var(--sky-2) !important; font-size: 20px; color: var(--ink); }
.waiting { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink-2); padding: 10px 0 2px; font-size: 15px; }
.skip-hint { text-align: center; font-size: 12px; color: #8a93ad; padding-bottom: 4px; }
.err { margin: 8px 0; padding: 8px 12px; border-radius: 12px; background: #fde2df; color: #9d1f19; font-size: 14px; }
.after { display: flex; justify-content: center; gap: 28px; margin-top: 2px; }

/* ── 结局 ── */
.ending { margin: 18px 0 8px; text-align: center; animation: pop .4s ease-out; }
.ending img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; border: 2px solid var(--ink); }
.ending .nm { padding: 14px 10px 2px; }
.ending .nm small { display: block; font-size: 14px; color: var(--ink-2); }
.ending .nm strong {
  display: block; font-family: var(--brush); font-weight: 400; font-size: 64px; line-height: 1.1; margin: 2px 0 4px;
  color: var(--gold); paint-order: stroke fill; -webkit-text-stroke: 7px var(--ink); animation: slam .6s .15s cubic-bezier(.2, 1.5, .4, 1) both;
}
.ending .nm p { margin: 4px 0 0; font-size: 16px; }
.ending .nums { display: flex; justify-content: center; gap: 18px; padding: 10px 10px 12px; font-size: 14px; color: var(--ink-2); flex-wrap: wrap; }
.ending .nums b { font-weight: 400; color: var(--ink); font-size: 19px; margin: 0 2px; }
.bag { display: flex; justify-content: center; gap: 6px; padding: 0 10px 10px; flex-wrap: wrap; }
.bag img { width: 54px; height: 54px; object-fit: contain; border: 0; border-radius: 0; aspect-ratio: auto; }

/* ── 浮层：也是一朵云 ── */
.sheet { position: fixed; inset: 0; z-index: 10; background: rgba(31, 42, 74, .5); display: flex; align-items: flex-end; justify-content: center; }
.sheet-card { width: min(100%, 480px); max-height: 84vh; padding: 10px 14px calc(var(--safe-b) + 18px); display: flex; flex-direction: column; animation: up .25s ease-out; }
#sheet-body { flex: 0 1 auto; min-height: 0; overflow-y: auto; padding: 0 6px 6px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-x { position: absolute; right: 14px; top: 6px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(31, 42, 74, .07); font-size: 24px; line-height: 1; z-index: 2; }
.sheet h2 { margin: 2px 0 10px; font-family: var(--brush); font-weight: 400; font-size: 34px; line-height: 1.2; }
.sheet h3 { margin: 20px 0 8px; font-family: var(--brush); font-weight: 400; font-size: 24px; color: var(--red); }
.sheet p, .sheet li { font-size: 16px; }
.sheet ul { padding-left: 20px; margin: 6px 0; }
.sheet li + li { margin-top: 4px; }
.titles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.titles figure { margin: 0; text-align: center; }
.titles img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 2px solid var(--ink); }
.titles figure.lock img { filter: grayscale(1) brightness(.55) blur(2px); }
.titles figcaption { padding: 5px 0 0; font-family: var(--brush); font-size: 22px; line-height: 1.2; }
.titles figcaption small { font-family: var(--font); font-size: 13px; color: var(--ink-2); margin-left: 4px; }
.titles figure.lock figcaption { color: var(--ink-2); }
.items { display: flex; gap: 6px; flex-wrap: wrap; }
.items figure { margin: 0; width: 72px; text-align: center; font-size: 12px; line-height: 1.3; }
.items img { width: 62px; height: 62px; object-fit: contain; }
.items figure.lock img { filter: grayscale(1) opacity(.3); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
/* 窄屏：难名和五难圆点收小，难名不被截 */
@media (max-width: 340px) {
  .bar-stage { font-size: 21px; }
  .bar-stage b { font-size: 15px; margin-right: 4px; }
  .route li { width: 22px; height: 22px; font-size: 11px; }
  .route li + li { margin-left: 2px; }
  .stats { gap: 9px; }
}
/* 矮屏（横着拿）：操作区让出一点给聊天 */
@media (max-height: 520px) {
  .dock { max-height: 52vh; }
  .chat { padding-bottom: 32px; }
}
/* 宽屏：一局和封面都收成手机那么宽的一列，背后是主视觉的虚影 */
@media (min-width: 640px) {
  #game, #title { left: 50%; right: auto; width: 480px; transform: translateX(-50%); box-shadow: 0 0 0 2px var(--ink), 0 20px 60px rgba(0, 0, 0, .3); }
  body::before { content: ''; position: fixed; inset: -40px; background: url(img/keyart.webp) center / cover; filter: blur(18px) brightness(.9); }
  .logo { padding-left: 30px; }
  .logo .l1 { font-size: 60px; }
  .logo .l2 { font-size: 70px; }
}
