/* 手机触屏原型（html.touch 才生效；桌面版不受影响） */
#tui, #rotate { display: none; }
html.touch, html.touch body { overscroll-behavior: none; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html.touch #game { touch-action: none; }
html.touch #nameinput { -webkit-user-select: text; user-select: text; touch-action: manipulation; }
/* 安全区：真实 env() 或测试用 ?safe= 模拟（--ins*）；至少留 12px，横屏再给圆角多留 6px */
html.touch { --insL: env(safe-area-inset-left, 0px); --insR: env(safe-area-inset-right, 0px); --insB: env(safe-area-inset-bottom, 0px); --insT: env(safe-area-inset-top, 0px);
  --sl: max(12px, calc(var(--insL) + 10px)); --sr: max(12px, calc(var(--insR) + 10px)); --sb: max(10px, calc(var(--insB) + 4px)); }

/* 小屏 HUD：收起排行榜、地图、快捷键、钓友动态；时钟和渔具面板缩小 */
html.touch #board, html.touch #brcol, html.touch #botfeed, html.touch #hint { display: none !important; }
/* 准星：手机上放大一点，完美抛投就落在这里 */
html.touch #crosshair { width: 14px; height: 14px; margin: -7px 0 0 -7px; background: none; border: 2px solid rgba(255,255,255,.9); box-shadow: 0 0 4px rgba(0,0,0,.8), inset 0 0 3px rgba(0,0,0,.6); }
html.touch #crosshair::after { content: ""; position: absolute; left: 3px; top: 3px; width: 4px; height: 4px; border-radius: 50%; background: #fff; }
html.touch :root, html.touch { --hz: .42; }
html.touch #clock { left: calc(var(--sl) / .42); top: calc(var(--st) / .42); zoom: .42; }
html.touch #clock .sunbar, html.touch #clock .rule, html.touch #clock .wx, html.touch #clock .chips { display: none; }
html.touch #tackle { left: auto; right: calc(var(--sr) / .4); top: calc(var(--st) / .4); bottom: auto; zoom: .4; width: 560px; }
html.touch #tackle .note, html.touch #tackle .sw, html.touch #tackle .qe { display: none; }
html.touch #power { zoom: .6; bottom: 150px; }
html.touch #bite { zoom: .7; }
html.touch #toast { zoom: .7; }

/* 触屏控件 */
html.touch #tui { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 5; font-family: inherit; }
#tui button { pointer-events: auto; font: inherit; color: #eef3fb; border: 1px solid rgba(255,255,255,.22); background: rgba(12,20,36,.55); border-radius: 12px; -webkit-tap-highlight-color: transparent; touch-action: none; backdrop-filter: blur(4px); }
#tui button.on, #tui button.sel { background: rgba(242,184,75,.85); color: #1b1406; border-color: #ffd77a; }
#tui .joy { position: absolute; left: calc(6px + var(--sl)); bottom: calc(8px + var(--sb)); width: 130px; height: 130px; border-radius: 50%; background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.25); pointer-events: auto; touch-action: none; }
#tui .joy .knob { position: absolute; left: 40px; top: 40px; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 2px 8px rgba(0,0,0,.4); }
#tui .act { position: absolute; right: calc(6px + var(--sr)); bottom: calc(8px + var(--sb)); width: 112px; height: 112px; border-radius: 50%; font-size: 17px; font-weight: 800; background: radial-gradient(circle at 35% 30%, #ffe39a, #f2b84b 60%, #a86a12); color: #1b1406; border: 3px solid rgba(255,255,255,.6); box-shadow: 0 6px 20px rgba(0,0,0,.45); }
#tui .act.on { transform: scale(.94); filter: brightness(1.1); }
#tui .act.st-bite { background: radial-gradient(circle at 35% 30%, #c6ffd9, #3fcf7a 60%, #157a3e); animation: tpulse .35s ease-in-out infinite alternate; }
#tui .act.st-flight, #tui .act.st-backlash { opacity: .5; }
@keyframes tpulse { to { transform: scale(1.08); } }
#tui .sb { height: 36px; min-width: 44px; padding: 0 10px; font-size: 13px; font-weight: 700; }
#tui .twitch { position: absolute; right: calc(130px + var(--sr)); bottom: calc(12px + var(--sb)); }
#tui .fast { position: absolute; right: calc(130px + var(--sr)); bottom: calc(58px + var(--sb)); }
#tui[data-st="fight"] .twitch, #tui[data-st="fight"] .fast { display: none; }
#tui:not([data-st="retrieve"]):not([data-st="snag"]) .twitch, #tui:not([data-st="retrieve"]) .fast { display: none; }
#tui .seg { position: absolute; right: calc(6px + var(--sr)); bottom: calc(130px + var(--sb)); display: flex; gap: 4px; }
#tui .seg button { width: 36px; height: 32px; font-size: 13px; font-weight: 800; }
#tui .qe2 { position: absolute; left: calc(170px + var(--sl)); bottom: calc(26px + var(--sb)); display: flex; align-items: center; gap: 6px; }
#tui .qe2 .ql { font-size: 12px; color: #ffe39a; min-width: 48px; text-align: center; text-shadow: 0 1px 3px #000; }
#tui .lures { position: absolute; left: calc(170px + var(--sl)); bottom: calc(30px + var(--sb)); display: flex; gap: 4px; }
#tui .lures .sb { min-width: 40px; padding: 0 6px; font-size: 12px; height: 32px; }
#tui:not([data-st="idle"]) .lures { display: none; }
#tui .tmenu { position: absolute; left: 50%; transform: translateX(-50%); top: 8px; display: flex; gap: 6px; }
#tui .tmenu .sb { height: 30px; font-size: 12px; min-width: 40px; }
#tui[data-st="fight"] .tmenu, #tui[data-st="bite"] .tmenu, #tui[data-st="charging"] .tmenu { opacity: .35; }
html.touch #rhythm { bottom: 92px !important; }

/* 竖屏提示 */
@media (orientation: portrait) {
  html.touch #rotate { display: flex; position: fixed; inset: 0; z-index: 100; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: #0b1626; color: #ffe39a; font-size: 20px; font-weight: 800; }
  html.touch:not(.phone) #rotate { display: none; }
  html.touch #rotate .sub { font-size: 14px; color: #a9b6cc; font-weight: 400; }
}

/* 开始/暂停界面：手机横屏上整体缩小 */

html.touch #overlay .controls { display: none; }
html.touch #overlay .panel::after { content: "操作：左下摇杆走路 · 右边拖动瞄准 · 大按钮按住蓄力，绿区松手完美抛到准星（早松抛近，红区炸线）· 按住收线 · 咬口点一下刺鱼 · 溜鱼连点，按提示左/右/下划屏"; display: block; margin-top: 12px; font-size: 18px; color: #dbe3ef; line-height: 1.6; }

/* 中鱼弹窗：横屏手机上仍是左右两栏（横屏宽度足够），二维码下加"长按识别" */
html.touch #card .qrcap::after { content: "（长按二维码识别）"; display: block; font-size: 14px; color: #a9b6cc; font-weight: 400; }
#tui[data-st="landed"] .tmenu, #tui[data-st="landed"] .qe2, #tui[data-st="landed"] .joy, #tui[data-st="landed"] .seg { display: none; }
html.touch #card .cont { visibility: hidden; }
#pvbadge { position: fixed; left: 50%; bottom: calc(4px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50; padding: 2px 10px; border-radius: 999px; font-size: 11px; color: #1b1406; background: rgba(255,215,122,.85); pointer-events: none; }

/* ===== m2：手机版精简 ===== */
/* 霸榜王横幅：缩成一条小卡片 */
html.touch #reignbanner { zoom: .42; top: 135px; padding: 12px 30px 10px; min-width: 0; }
html.touch #reignbanner .rb-label, html.touch #reignbanner .rb-cta { display: none; }
html.touch #reignbanner .rb-time { font-size: 34px; margin: 2px 0 2px; }
/* 溜鱼时：隐藏摇杆，整块画面都是划屏区 */
#tui[data-st="fight"] .joy { display: none; }
/* 划屏提示 + 倒计时条（左半屏中间，左手拇指划） */
#tui .swp { display: none; position: absolute; left: var(--sl); top: auto; bottom: calc(var(--sb) + 210px); transform: none; width: 168px; max-width: 42vw; z-index: 7; text-align: center; padding: 8px 10px 10px; border-radius: 16px; background: rgba(40,26,0,.72); border: 2px solid rgba(255,215,122,.85); color: #ffe39a; font-weight: 800; box-shadow: 0 6px 22px rgba(0,0,0,.45); pointer-events: none; }
#tui .swp .sa { font-size: 36px; line-height: 1; animation: swl .5s ease-in-out infinite alternate; }
#tui .swp.d-right .sa { animation-name: swr; } #tui .swp.d-down .sa { animation-name: swd; }
#tui .swp .st { font-size: 16px; margin: 4px 0 6px; }
#tui .swp .sbar { height: 7px; border-radius: 4px; background: rgba(0,0,0,.5); overflow: hidden; }
#tui .swp .sbar i { display: block; height: 100%; background: linear-gradient(90deg, #ff6b5e, #f2b84b 40%, #ffe39a); }
#tui .swp.ok { border-color: #57d68d; color: #7dffb0; background: rgba(4,40,20,.75); }
#tui .swp.fail, #tui .swp.wrong { border-color: #ff6b5e; color: #ffa49a; background: rgba(50,8,4,.75); }
#tui .swp.ok .sa, #tui .swp.fail .sa { animation: none; }
@keyframes swl { from { transform: translateX(14px); } to { transform: translateX(-14px); } }
@keyframes swr { from { transform: translateX(-14px); } to { transform: translateX(14px); } }
@keyframes swd { from { transform: translateY(-8px); } to { transform: translateY(8px); } }
/* 抛竿力度条：太近（灰蓝）/ 完美（绿）/ 炸线（红） */
html.touch #pwtrack { background: rgba(120,150,200,.28); height: 18px; border-radius: 9px; }
html.touch #pwred { position: absolute; top: 0; bottom: 0; border-radius: 0 9px 9px 0; background: linear-gradient(#ff9a8e, #d8392b); }
html.touch #pwband::after { content: "完美"; position: absolute; left: 0; right: 0; top: -20px; font-size: 13px; font-weight: 800; color: #7dffb0; text-shadow: 0 1px 3px #000; }
html.touch #pwred::after { content: "炸线"; position: absolute; left: 0; right: 0; top: -20px; font-size: 13px; font-weight: 800; color: #ff8a7a; text-shadow: 0 1px 3px #000; text-align: center; }
html.touch #pwtrack::before { content: "太近"; position: absolute; left: 0; width: 40%; top: -20px; font-size: 13px; color: #a9b6cc; text-align: center; text-shadow: 0 1px 3px #000; }
html.touch #power { padding-top: 28px; }
html.touch #power.pw-red { border-color: rgba(255,107,94,.8); box-shadow: 0 0 18px rgba(255,107,94,.6); }
html.touch #power.pw-ok { box-shadow: 0 0 18px rgba(87,214,141,.6); }
/* 渔获弹窗：去掉金币算式和最下面一行说明，只留总金币 */
html.touch #card .fx, html.touch #card .tip { display: none !important; }
html.touch #tackle .stat:has(.c-brake), html.touch #tackle .stat:has(.c-drag) { display: none; }   /* 手机版刹车/卸力固定 5，不显示 */

/* ===== m3：全屏 / 图标 / 安全区 ===== */
html.touch, html.touch body { height: 100%; height: 100dvh; }
html.touch #game { width: 100vw; height: 100vh; height: 100dvh; }
html.touch { --st: max(6px, var(--insT)); }

#tui .tmenu { top: var(--st); }
#tui .tmenu .sb.ic { width: 42px; min-width: 0; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: #ffd77a; border-radius: 999px; background: rgba(12,20,36,.6); border-color: rgba(255,215,122,.35); }
#tui .tmenu .sb.ic svg { display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
#tui .tmenu .sb.ic.on { background: rgba(242,184,75,.9); color: #1b1406; }
/* iPhone Safari：添加到主屏幕提示（只显示一次，点 ✕ 不再提示） */
#a2hs { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 8px 12px; border-radius: 14px; background: rgba(242,184,75,.14); border: 1px solid rgba(255,215,122,.5); color: #ffe39a; font-size: 20px; }
#a2hs b { color: #fff; }
#a2hs .a2i { display: inline-flex; color: #ffd77a; }
#a2hs .a2i svg { width: 28px; height: 28px; }
#a2hs .x { margin-left: auto; background: none; border: 0; color: #ffe39a; font-size: 22px; padding: 0 6px; cursor: pointer; }

/* 鱼获弹窗：右上角 ✕ 关闭（手机版只能这样关） */
html.touch #card .cx { position: fixed; z-index: 7; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0; background: rgba(12,20,36,.7); border: 2px solid rgba(255,215,122,.55); color: #ffd77a; opacity: .4; pointer-events: auto; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
html.touch #card .cx svg { width: 24px; height: 24px; }
html.touch #card .cx.armed { opacity: 1; }
html.touch #card .cx:active { background: rgba(242,184,75,.9); color: #1b1406; }
#tui[data-st="landed"] .act { opacity: .3; filter: grayscale(1); }
html.touch #card .qrbox img { -webkit-touch-callout: default; -webkit-user-select: auto; user-select: auto; pointer-events: auto; }   /* 允许长按识别二维码 */

/* 饵盒按钮 + 展开面板（m7 起移到摇杆右侧靠下，见文件末尾） */
#tui .lures { display: none !important; }
#tui .bagbtn { position: absolute; left: calc(6px + var(--sl)); bottom: calc(148px + var(--sb)); width: 52px; height: 52px; border-radius: 50%; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #ffd77a; background: rgba(12,20,36,.6); border-color: rgba(255,215,122,.35); }
#tui .bagbtn .bl { font-size: 9px; line-height: 1; margin-top: 1px; color: #ffe39a; font-weight: 700; }
#tui .bagbtn.sel { background: rgba(242,184,75,.9); color: #1b1406; } #tui .bagbtn.sel .bl { color: #1b1406; }
#tui:not([data-st="idle"]) .bagbtn, #tui:not([data-st="idle"]) .bagpanel { display: none; }
#tui .bagpanel { position: absolute; left: calc(68px + var(--sl)); bottom: calc(146px + var(--sb)); display: none; gap: 8px; padding: 8px; border-radius: 16px; background: rgba(8,14,28,.82); border: 1px solid rgba(255,215,122,.35); box-shadow: 0 8px 24px rgba(0,0,0,.5); pointer-events: auto; backdrop-filter: blur(6px); }
#tui .bagpanel.open { display: grid; grid-template-columns: repeat(4, 76px); }
#tui .bagpanel .bi { height: 76px; padding: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 12px; color: #ffd77a; }
#tui .bagpanel .bi .nm { font-size: 11px; color: #eef3fb; line-height: 1.15; text-align: center; }
#tui .bagpanel .bi .pr { font-size: 9.5px; color: #a9b6cc; }
#tui .bagpanel .bi.cur { border: 2px solid #ffd77a; background: rgba(242,184,75,.22); }
#tui .bagpanel .bi.locked { opacity: .5; color: #a9b6cc; }
#tui .bagpanel .bi.on { background: rgba(242,184,75,.85); color: #1b1406; }
html.touch #shop .sitem.tbag-hl { outline: 3px solid #ffd77a; box-shadow: 0 0 24px rgba(242,184,75,.8); }

/* ===== m4：所有面板适配手机横屏 =====
   --mz 由 touch.js 按屏幕算（SE≈.8 / Pro Max=1）；面板按"虚拟宽度"排版再整体缩放，保证放进安全区、内部可滚动 */
html.touch { --mz: .8; --safeW: calc(100vw - var(--sl) - var(--sr) - 12px); --safeH: calc(100dvh - var(--st) - var(--sb) - 10px); }
/* 菜单：图鉴 / 榜单 / 指南 / 商店 */
html.touch .menu { zoom: var(--mz); transform: none; left: calc((var(--sl) + 6px) / var(--mz)); top: calc((var(--st) + 5px) / var(--mz)); width: calc(var(--safeW) / var(--mz)) !important; height: calc(var(--safeH) / var(--mz)) !important; max-height: none; padding: 10px 16px 10px; border-radius: 16px; }
html.touch .mhead { margin-bottom: 8px; gap: 10px; }
html.touch .mhead .ic { width: 34px; height: 34px; }
html.touch .mhead h2 { font-size: 22px; letter-spacing: 2px; }
html.touch .mhead .mhint { display: none; }
html.touch .panel-x { width: calc(48px / var(--mz)); height: calc(48px / var(--mz)); border-radius: 50%; color: #ffd77a; border: 2px solid rgba(255,215,122,.5); background: rgba(12,20,36,.6); }
html.touch .panel-x svg { width: 22px; height: 22px; }
html.touch #guidebody, html.touch #shopbody, html.touch #dexbody, html.touch #fblist, html.touch .dexlist, html.touch .dexdetail { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; }
html.touch .menu, html.touch .menu * { touch-action: pan-y; }
/* 字号下限：缩放后正文不小于约 11px */
html.touch .menu { font-size: 15px; }
html.touch .menu .small, html.touch .menu .dim.small, html.touch .menu .fnote { font-size: 14px; }
/* 榜单：左右两栏，右栏收窄 */
html.touch .fbwrap { grid-template-columns: 1fr 300px; gap: 12px; margin-top: 8px; }
/* 图鉴：列表收窄 */
html.touch #dex #dexbody:has(.dexlist) { grid-template-columns: 240px 1fr; gap: 12px; }
html.touch .dexbar { gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
html.touch #dexhead .bar { width: 150px; }
html.touch .dexdetail { padding: 12px 14px; gap: 10px; }
html.touch .dexitem { min-height: 52px; }
/* 商店：4 列改 2 列，3 列在窄屏改 2 列 */
html.touch .sgrid.g4 { grid-template-columns: repeat(2, 1fr); }
html.touch .sgrid.g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { html.touch .sgrid.g3 { grid-template-columns: repeat(2, 1fr); } html.touch .fbwrap { grid-template-columns: 1fr 260px; } html.touch #dex #dexbody:has(.dexlist) { grid-template-columns: 210px 1fr; } }
html.touch .shead { flex-wrap: wrap; padding: 8px 12px; }
/* 开始 / 暂停界面 */
html.touch #overlay { padding: var(--st) var(--sr) var(--sb) var(--sl); box-sizing: border-box; }
html.touch #overlay .panel { zoom: var(--mz); width: calc(var(--safeW) / var(--mz)); max-width: 980px; max-height: calc(var(--safeH) / var(--mz)); overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; padding: 10px 16px; }
html.touch #overlay .panel::after { font-size: 14px; line-height: 1.55; margin-top: 8px; }
html.touch #overlay .ovmid { display: flex; gap: 12px; align-items: stretch; flex-wrap: nowrap; }
html.touch #overlay #reignbox { flex: 1; margin-top: 8px; }
html.touch #overlay .tipqr-m { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 6px 10px; border-radius: 12px; background: linear-gradient(180deg, rgba(242,184,75,.10), rgba(242,184,75,.04)); border: 1px solid rgba(242,184,75,.35); flex: none; max-width: 300px; }
html.touch #overlay .tipqr-m img { width: 104px; height: 108px; object-fit: contain; padding: 4px; border-radius: 8px; background: #fff; box-sizing: border-box; flex: none; -webkit-touch-callout: default; pointer-events: auto; }
html.touch #overlay .tipqr-m .tqt { font-size: 14px; font-weight: 800; color: #ffd77a; margin-bottom: 4px; }
html.touch #overlay .tipqr-m .tqc { font-size: 13px; line-height: 1.5; color: #ffe39a; }
html.touch #overlay .tipqr-m .tqc::after { content: "（长按识别）"; display: block; color: #a9b6cc; font-size: 12px; }
html.touch #nameinput { font-size: calc(16px / var(--mz)); }   /* iOS：字号 ≥16 才不会自动放大页面 */
html.touch #startbtn { min-height: calc(46px / var(--mz)); }
#tipqr-m { display: none; }
html.touch body.menu-open #pvbadge { display: none; }
html.touch .dexitem svg.dfi { display: none; }   /* 图鉴列表：手机上去掉小鱼图，名字不挤 */
html.touch .menu .t-kbd { display: none; }

/* ===== m5：安全区补全 + 竖屏提示 + 设备提示 ===== */
html.touch #pvbadge { bottom: max(5px, var(--insB)); }
html.touch #toast { top: calc((var(--st) + 50px) / .7); max-width: calc((100vw - var(--sl) - var(--sr)) / .7); }
html.touch #power { bottom: calc((var(--sb) + 120px) / .6); }
html.touch #bite { top: calc((var(--st) + 56px) / .7); }
#tui .swp { left: var(--sl); top: auto; bottom: calc(var(--sb) + 210px); transform: none; width: 168px; max-width: 42vw; box-sizing: border-box; }
html.touch #reignbanner { top: calc((var(--st) + 52px) / .42); }
#tui .bagpanel.open { width: max-content; grid-template-columns: repeat(4, 76px); }
/* 竖屏旋转图标 */
#rotate .rot-ph { width: 46px; height: 78px; border: 4px solid #ffe39a; border-radius: 10px; position: relative; animation: rotph 1.8s ease-in-out infinite; }
#rotate .rot-scr { position: absolute; inset: 6px 4px 10px; border-radius: 3px; background: rgba(255,227,154,.25); }
@keyframes rotph { 0%, 20% { transform: rotate(0); } 50%, 80% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }
/* 设备提示里的安装按钮 */
#a2hs .inst { flex: none; height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: linear-gradient(#ffe39a, #f2b84b); color: #1b1406; font-weight: 800; font-size: 16px; }
#a2hs .x { min-width: 44px; min-height: 44px; }
/* 测试：模拟刘海（?safe=） */
.fake-notch { position: fixed; z-index: 200; top: 50%; width: 30px; height: 160px; margin-top: -80px; background: #000; border-radius: 16px; pointer-events: none; }
.fake-home { position: fixed; z-index: 200; left: 50%; bottom: 6px; width: 140px; height: 5px; margin-left: -70px; border-radius: 3px; background: rgba(255,255,255,.75); pointer-events: none; }
.fake-corners { position: fixed; inset: 0; border-radius: 44px; box-shadow: 0 0 0 60px #000; pointer-events: none; z-index: 199; }
@media (max-width: 720px) { #tui .tmenu { gap: 3px; } #tui .tmenu .sb.ic { width: 34px; height: 32px; } #tui .tmenu .sb.ic svg { width: 19px; height: 19px; } }
@media (max-width: 660px) { html.touch #tackle { zoom: .35; right: calc(var(--sr) / .35); top: calc(var(--st) / .35); } html.touch #clock { zoom: .38; left: calc(var(--sl) / .38); top: calc(var(--st) / .38); } }

/* ===== m6：打赏（按环境） ===== */
html.touch .tp { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
html.touch .tp .tq-img { display: block; width: 240px; height: 247px; padding: 10px; box-sizing: border-box; object-fit: contain; border-radius: 12px; background: #fff; -webkit-touch-callout: default !important; -webkit-user-select: auto; user-select: auto; pointer-events: auto; touch-action: auto; position: relative; z-index: 2; }
html.touch .tp .tp-cap { font-size: 18px; line-height: 1.55; color: #ffe39a; font-weight: 700; }
html.touch .ali-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 220px; height: 64px; padding: 0 26px; border-radius: 999px; background: linear-gradient(#3aa0ff, #1677ff); color: #fff; font-size: 24px; font-weight: 800; text-decoration: none; box-shadow: 0 6px 18px rgba(22,119,255,.45); border: 2px solid rgba(255,255,255,.4); pointer-events: auto; }
html.touch .ali-btn::before { content: "支"; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: #fff; color: #1677ff; font-size: 20px; }
html.touch .tp-sub { font-size: 15px; color: #a9b6cc; text-decoration: underline; pointer-events: auto; padding: 8px; }
html.touch .save-btn { height: 56px; min-width: 180px; padding: 0 22px; border-radius: 999px; border: 0; background: linear-gradient(#ffe39a, #f2b84b); color: #1b1406; font-size: 20px; font-weight: 800; pointer-events: auto; }
html.touch .tp-steps { font-size: 14px; color: #a9b6cc; line-height: 1.5; max-width: 260px; }
html.touch .tp-save .tp-r { display: flex; flex-direction: column; align-items: center; gap: 10px; }
html.touch #card .qrcap::after { content: none; }
/* 暂停界面里的小版本 */
html.touch #overlay .tipqr-m .tp { flex-direction: row; gap: 10px; text-align: left; }
html.touch #overlay .tipqr-m .tp-ali { flex-direction: column; align-items: flex-start; }
html.touch #overlay .tipqr-m .tq-img { width: 108px; height: 112px; padding: 5px; }
html.touch #overlay .tipqr-m .tp-cap { font-size: 14px; }
html.touch #overlay .tipqr-m .ali-btn { height: 48px; min-width: 170px; font-size: 19px; }
html.touch #overlay .tipqr-m .save-btn { height: 46px; min-width: 140px; font-size: 17px; }
html.touch #overlay .tipqr-m .tp-steps { font-size: 12px; max-width: 170px; }
html.touch #overlay .tipqr-m .tp-r { align-items: flex-start; gap: 6px; }
html.touch #overlay .tipqr-m .tp-sub { font-size: 13px; padding: 4px 0; }
html.touch #overlay .tipqr-m .tqc::after { content: none; }
/* iOS：大图查看，长按保存 */
#qrview { position: fixed; inset: 0; z-index: 300; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: rgba(4,8,18,.92); }
#qrview img { width: min(62vh, 70vw); height: auto; background: #fff; padding: 10px; border-radius: 14px; -webkit-touch-callout: default; -webkit-user-select: auto; pointer-events: auto; touch-action: auto; }
#qrview .qv-t { color: #ffe39a; font-size: 16px; text-align: center; line-height: 1.6; }
#qrview .qv-x { position: absolute; top: max(12px, env(safe-area-inset-top)); right: max(16px, calc(env(safe-area-inset-right) + 10px)); width: 48px; height: 48px; border-radius: 50%; background: rgba(12,20,36,.7); border: 2px solid rgba(255,215,122,.55); color: #ffd77a; font-size: 22px; }

/* ===== m7：真机反馈 ===== */
/* 抛竿条：区名不换行，"炸线"右对齐到条末端，可以超出红区 */
html.touch #pwband::after, html.touch #pwred::after, html.touch #pwtrack::before { white-space: nowrap; }
html.touch #pwred::after { left: auto; right: 0; width: auto; text-align: right; }
html.touch #pwband::after { left: 50%; right: auto; transform: translateX(-50%); }
/* 饵盒：摇杆右侧、靠下（底边对齐摇杆下半），显示当前饵图标 */
#tui .bagbtn { left: calc(150px + var(--sl)); bottom: calc(12px + var(--sb)); width: 62px; height: 62px; border-radius: 18px; gap: 0; }
#tui .bagbtn .bic { display: flex; line-height: 0; }
#tui .bagbtn .bl { font-size: 11px; margin-top: 0; }
#tui .bagbtn.sel { background: rgba(242,184,75,.28); border-color: #ffd77a; } #tui .bagbtn.sel .bl { color: #ffe39a; }
#tui .bagpanel { left: calc(150px + var(--sl)); bottom: calc(84px + var(--sb)); max-width: calc(100vw - 150px - var(--sl) - var(--sr) - 150px); }
#tui .bagpanel .bi .ic { line-height: 0; }
#tui .bagpanel .bi.locked { opacity: 1; }
#tui .bagpanel .bi.locked .nm { color: #a9b6cc; }
#tui .bagpanel .bi.on .lsvg g, #tui .bagpanel .bi.cur .lsvg g { filter: drop-shadow(0 0 4px rgba(255,215,122,.5)); }
@media (max-height: 380px) { #tui .bagpanel.open { grid-template-columns: repeat(4, 70px); } #tui .bagpanel .bi { height: 70px; } }
/* 商店饵卡、渔具面板的饵图标 */
html.touch #shop .sitem .lsvg { flex: none; }
html.touch #tackle .lure .lsvg { flex: none; }
/* 开始 / 暂停：矮横屏紧凑排版 */
html.touch body:has(#overlay:not([style*="none"])) #pvbadge { display: none; }
html.touch #overlay .panel::after { content: none; }
html.touch #overlay .panel { padding: 8px 16px 8px; }
html.touch #overlay .ovhead { flex-wrap: nowrap; padding-bottom: 8px; gap: 10px; align-items: flex-start; }
html.touch #overlay .ovt { flex: 1; min-width: 0; overflow: hidden; gap: 4px; }
html.touch #overlay #ovtitle { font-size: 24px; letter-spacing: 3px; }
html.touch #overlay #ovsub { display: flex; flex-wrap: nowrap; gap: 4px; overflow: hidden; white-space: nowrap; font-size: 0; max-width: 100%; }
html.touch #overlay #ovsub .chip { font-size: 12px; height: 22px; flex: none; }
html.touch #overlay #ovsub .chip:nth-of-type(4),
html.touch #overlay #ovsub .chip.t { display: none; } /* 稀有度 chip + 游戏时钟：手机横屏别压昵称框 */
html.touch #overlay #namebox { flex: none; flex-shrink: 0; gap: 6px; position: relative; z-index: 2; }
html.touch #overlay #namebox label { display: none; }
html.touch #overlay #nameinput { width: 160px; height: calc(44px / var(--mz)); }
html.touch #overlay #startbtn { height: calc(44px / var(--mz)); min-height: 0; padding: 0 18px; }
html.touch #overlay .ovmid { margin-top: 10px; align-items: stretch; gap: 12px; }
html.touch #overlay #reignbox { margin: 0; max-width: none; padding: 10px 16px; display: flex; flex-direction: column; justify-content: center; }
html.touch #overlay .tipqr-m { margin-top: 0; width: 290px; max-width: none; box-sizing: border-box; }
html.touch #overlay .mhelp { margin-top: 8px; font-size: 14px; color: #dbe3ef; }
html.touch #overlay .mhelp summary { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,215,122,.4); color: #ffd77a; font-weight: 700; cursor: pointer; list-style: none; }
html.touch #overlay .mhelp summary::-webkit-details-marker { display: none; }
html.touch #overlay .mhelp summary::after { content: "▾"; font-size: 12px; }
html.touch #overlay .mhelp[open] summary::after { content: "▴"; }
html.touch #overlay .mhelp .mh-b { margin-top: 6px; line-height: 1.6; }
html.touch #overlay .mhelp .mh-b b { color: #ffd77a; margin-right: 3px; }
html.touch #overlay #a2hs { font-size: 15px; padding: 4px 10px; margin-bottom: 6px; }
@media (max-width: 720px) { html.touch #overlay #ovsub { display: none; } html.touch #overlay #nameinput { width: 150px; } html.touch #overlay .tipqr-m { width: 250px; } }
html.touch #overlay #reignbox[style*="block"] { display: flex !important; }
html.touch #overlay .tipqr-m { margin-left: auto; }
html.touch #overlay #reignbox .rb-time { font-size: 26px; margin: 4px 0; }
/* 渔获弹窗：✕ 放在卡片内右上角（卡片被 zoom 缩放，按钮尺寸反向补偿，保证 ≥44px） */
html.touch #card .cc .cx { position: absolute; left: auto; top: calc(11px / var(--cz, 1)); right: calc(11px / var(--cz, 1)); width: calc(46px / var(--cz, 1)); height: calc(46px / var(--cz, 1)); border-width: calc(2px / var(--cz, 1)); }
html.touch #card .cc .cx svg { width: calc(22px / var(--cz, 1)); height: calc(22px / var(--cz, 1)); }
/* 弹窗打开时隐藏所有操作按钮和预览徽章 */
#tui[data-st="landed"] .act, #tui[data-st="landed"] .twitch, #tui[data-st="landed"] .fast, #tui[data-st="landed"] .bagbtn, #tui[data-st="landed"] .bagpanel, #tui[data-st="landed"] .swp { display: none !important; }
html.touch body:has(#card[style*="block"]) #pvbadge { display: none; }
html.touch #card .cc { top: calc(50% + (var(--insT, 0px) - var(--insB, 0px)) / 2); }
/* 溜鱼失误：仪表闪一下 */
html.touch #rhythm.penflash { animation: penf .45s ease-out; }
html.touch #rhythm.penflash.sev2 { animation-duration: .7s; }
@keyframes penf { 0% { filter: drop-shadow(0 0 0 #ff6a5a); } 25% { filter: drop-shadow(0 0 14px #ff6a5a) brightness(1.4); } 100% { filter: none; } }

/* ===== m8：顶部安全距离 + HUD 文字不换行 ===== */
html.touch { --st: max(12px, var(--insT)); }
html.touch #tackle { top: calc((var(--st) + 8px) / .4); }
html.touch #tackle .combo { top: -20px; white-space: nowrap; font-size: 22px; height: 34px; line-height: 34px; padding: 0 16px; }
@media (max-width: 660px) { html.touch #tackle { top: calc((var(--st) + 8px) / .35); } }
/* 动态文字一律单行 */
html.touch #tackle *, html.touch #clock .day, html.touch #clock .date, html.touch #clock .title, html.touch #readout *, html.touch #toast, html.touch #pops > *, html.touch #tui .swp .st, html.touch #tui .bagbtn .bl, html.touch #tui .bagpanel .bi .nm, html.touch #tui .bagpanel .bi .pr, html.touch #tui .act .l, html.touch #power #pwlabel, html.touch #card .chipsr .tg, html.touch #card .meta span, html.touch #hint .m { white-space: nowrap; }
html.touch #tackle .lnm { overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
html.touch #tackle .pityline .line1 { display: flex; align-items: center; gap: 10px; }
html.touch #tackle .pityline .pt { flex: none; min-width: 120px; }
html.touch #tackle .pityline .pbar { flex: 1; min-width: 60px; }
html.touch #tackle .pityline .ok { flex: none; }
html.touch #tackle .coins .n { display: inline-block; min-width: 2.6em; }
html.touch #tui .bagpanel .bi .nm { font-size: 10.5px; }
html.touch #tui .swp { width: 168px; min-width: 140px; max-width: min(168px, 42vw); }
/* 收线时的水深卡片和预览徽章不重叠：卡片显示时徽章藏起来 */
html.touch body:has(#readout[style*="flex"]) #pvbadge { display: none; }
html.touch #card .cc .cx { z-index: 20; }

/* ===== m9：指南选鱼 + 目标标签 ===== */
#tui .tgchip { position: absolute; left: var(--sl); top: calc(var(--st) + 78px); display: flex; align-items: center; gap: 2px; pointer-events: auto; }
#tui .tgchip button { height: 34px; border-radius: 999px; background: rgba(12,20,36,.66); border: 1px solid rgba(255,215,122,.5); color: #ffd77a; font-size: 13px; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; padding: 0 12px; }
#tui .tgchip .tg-x { width: 34px; padding: 0; justify-content: center; color: #a9b6cc; }
#tui[data-st="fight"] .tgchip, #tui[data-st="landed"] .tgchip { display: none !important; }
html.touch #guide .gm-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
html.touch #guide .gm-q { font-size: 17px; font-weight: 800; color: #ffe39a; white-space: nowrap; }
html.touch #guide .gm-pity { font-size: 14px; color: #ff9ac8; white-space: nowrap; }
html.touch #guide .gm-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-bottom: 10px; }
html.touch #guide .gm-fish { height: 64px; padding: 4px 6px; border-radius: 12px; background: rgba(12,20,36,.6); border: 1px solid rgba(255,215,122,.25); color: #eef3fb; display: grid; grid-template-rows: 26px 18px 14px; justify-items: center; align-items: center; cursor: pointer; }
html.touch #guide .gm-fish .gm-art { line-height: 0; }
html.touch #guide .gm-fish .gm-nm { font-size: 14px; font-weight: 700; white-space: nowrap; }
html.touch #guide .gm-fish .gm-rt { font-size: 11.5px; white-space: nowrap; }
html.touch #guide .gm-fish.on { border: 2px solid #ffd77a; background: rgba(242,184,75,.2); box-shadow: 0 0 12px rgba(242,184,75,.35); }
html.touch #guide .gm-fish.off { opacity: .42; filter: grayscale(1); }
html.touch #guide .gm-rt.lv4 { color: #7dffb0; } html.touch #guide .gm-rt.lv3 { color: #b8f0c8; } html.touch #guide .gm-rt.lv2 { color: #ffd77a; } html.touch #guide .gm-rt.lv1, html.touch #guide .gm-rt.lv0 { color: #a9b6cc; }
html.touch #guide .gm-card { padding: 10px 14px; }
html.touch #guide .gm-lines { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 8px 0 10px; font-size: 16px; }
html.touch #guide .gm-l { display: contents; }
html.touch #guide .gm-l b { color: #5fe0d0; white-space: nowrap; }
html.touch #guide .gm-l span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #eef3fb; }
html.touch #guide .gm-acts { display: flex; gap: 10px; }
html.touch #guide .gm-go { height: 44px; padding: 0 26px; border-radius: 999px; border: 0; background: linear-gradient(#ffe39a, #f2b84b); color: #1b1406; font-size: 17px; font-weight: 800; white-space: nowrap; }
html.touch #guide .gm-clr { height: 44px; padding: 0 18px; border-radius: 999px; background: transparent; border: 1px solid rgba(255,215,122,.4); color: #ffd77a; font-size: 15px; white-space: nowrap; }
html.touch #guide .gm-hint { font-size: 15px; color: #dbe3ef; padding: 6px 0; }
html.touch #guide .gm-why { margin-top: 10px; font-size: 13px; color: #a9b6cc; }
html.touch #guide .gm-why summary { color: #ffd77a; cursor: pointer; }
html.touch #guide .gm-pick { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; touch-action: pan-x; -webkit-overflow-scrolling: touch; }
html.touch #guide .gm-pick, html.touch #guide .gm-pick * { touch-action: pan-x; }
html.touch #guide .gm-fish { flex: 0 0 112px; height: 60px; }
html.touch #guide .gm-lines { grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px 12px; }
html.touch #guide .gch { margin-bottom: 0; }
html.touch #guide .gm-l:first-child span { grid-column: span 3; }

/* ===== m10：鱼探 ===== */
html.touch #readout { zoom: 1 !important; width: clamp(200px, calc(100vw - var(--sl) - var(--sr) - 470px), 400px); bottom: calc(var(--sb) + 6px); padding: 6px 8px 5px; flex-direction: column; align-items: stretch; gap: 3px; box-sizing: border-box; }
html.touch #readout canvas.sonar { display: block; width: 100%; height: clamp(84px, 24vh, 112px); border-radius: 8px; background: #06121f; }
html.touch #readout .snl { display: flex; gap: 8px; font-size: 11px; color: #dbe3ef; white-space: nowrap; overflow: hidden; }
html.touch #readout .snl .sd { color: #5fe0d0; font-weight: 800; }
html.touch #readout .snl .sp { color: #a9b6cc; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
html.touch #readout .snl .sc { color: #ffd25a; font-weight: 800; }
html.touch #readout .snh { font-size: 10.5px; color: #ffe39a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* m10：指南排版修正（不重叠、不压边框） */
html.touch #guide .gm-fish { height: auto; min-height: 64px; padding: 6px 8px 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; box-sizing: border-box; }
html.touch #guide .gm-fish .gm-art { height: 24px; display: flex; align-items: center; overflow: hidden; }
html.touch #guide .gm-fish .gm-nm, html.touch #guide .gm-fish .gm-rt { line-height: 1.25; }
html.touch #guide .gm-pick { padding: 2px 2px 6px; }
html.touch #guide .gm-top { gap: 12px; padding: 0 2px; }
html.touch #guide .gm-card .gch { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
html.touch #guide .gm-lines { line-height: 1.4; }
html.touch #guide .gm-acts { padding: 2px 0; }
html.touch #guide .gm-why { padding-bottom: 2px; }
html.touch #guide .gm-why summary { line-height: 1.6; }
/* m10b：收线时鱼探做成左侧大面板（摇杆让位；右手的收线/快收/抽竿/速度不动）；其他状态鱼探隐藏 */
html.touch #readout { left: calc(var(--sl) + 2px); right: auto; transform: none; top: calc(var(--st) + 74px); bottom: calc(var(--sb) + 6px); width: clamp(240px, 42vw, 440px); padding: 8px 10px 6px; gap: 4px; border-radius: 14px; }
html.touch #readout canvas.sonar { flex: 1; height: auto; min-height: 0; }
html.touch #readout .snl { font-size: 13px; gap: 10px; }
html.touch #readout .snh { font-size: 12.5px; }
#tui[data-st="retrieve"] .joy, #tui[data-st="retrieve"] .tgchip { display: none !important; }
html.touch .menu .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html.touch .menu .tile { padding: 7px 10px; }
#tui .bagbtn .bic svg { width: 30px; height: 30px; }
#tui .bagbtn { gap: 2px; }
/* m10：渔获卡片紧凑（矮横屏放得下打赏模块，鱼图不压名字） */
html.touch #card .cc { padding: 18px 30px 14px; }
html.touch #card .fishbox { height: 150px; margin: 0; overflow: hidden; }
html.touch #card .fishbox svg.fart { width: auto; height: 140px; max-width: 100%; }
html.touch #card .fishbox::before { height: 120px; }
html.touch #card .nm h2 { font-size: 44px; letter-spacing: 3px; line-height: 1.15; }
html.touch #card .chipsr { margin-bottom: 2px; }
html.touch #card .cc.withqr { grid-template-columns: minmax(0, 1fr) 300px; column-gap: 26px; padding: 18px 28px 14px; }
html.touch #card .nm h2 { line-height: 1.02; } html.touch #card .prob { margin-top: 8px; line-height: 1.2; } html.touch #card .nm h2 { padding-bottom: 2px; } html.touch #card .fishbox svg.fart { height: 128px; }
/* m10c：图鉴小格 / 排行榜单元格不出界 */
html.touch .tiles.dsn .tile .v { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.touch #fullboard td.t span { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
html.touch .tiles.dsn .tile:nth-child(2) { grid-column: span 2; } html.touch .tiles.dsn .tile .v { overflow: visible; }
html.touch #readout .snl .sc { flex: none; } @media (max-width: 700px) { html.touch #readout .snl .sp { display: none; } html.touch #readout .snl .sc { margin-left: auto; } }
html.touch #card .meta > span { flex: none; } html.touch #card .meta span .num { line-height: 1.2; }
html.touch #card .meta > span { height: auto; min-height: 32px; padding: 3px 13px; box-sizing: border-box; }
/* m11b：指南里"未拥有"的饵 + 去商店买 + 现有饵将就；商店定位高亮 */
html.touch #guide .gm-no { font-style: normal; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 12px; color: #ffb38a; border: 1px solid rgba(255,150,100,.55); background: rgba(255,120,80,.12); }
html.touch #guide .gm-fb { flex: 1 1 0; min-width: 0; align-self: center; font-size: 13px; color: #a9b6cc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.touch #guide .gm-acts .gm-go, html.touch #guide .gm-acts .gm-clr, html.touch #guide .gm-acts .gm-buy { flex: none; }
html.touch #guide .gm-buy { height: 44px; padding: 0 22px; border-radius: 999px; border: 0; background: linear-gradient(#9af0c0, #3fc57a); color: #06240f; font-size: 16px; font-weight: 800; white-space: nowrap; }
html.touch #guide .gm-buy.short { background: rgba(12,20,36,.6); border: 1px solid rgba(154,240,192,.6); color: #9af0c0; }
html.touch #shop .sitem.gm-focus { outline: 3px solid #9af0c0; outline-offset: 2px; box-shadow: 0 0 18px rgba(154,240,192,.5); }
html.touch #shop .sitem .ico svg { max-width: 40px; max-height: 40px; }

/* t-m12：鱼探开关（顶栏，指南右边）和鱼探面板右上角 ✕ */
#tui .tmenu .sb.ic.sonarbtn.son { background: rgba(95,224,208,.88); color: #06201c; border-color: rgba(95,224,208,.9); }
#tui .tmenu .sb.ic.sonarbtn.dis { opacity: .42; }
#readout .sn-x { display: none; }
html.touch #readout .sn-x { display: flex; align-items: center; justify-content: center; position: absolute; top: 8px; right: 8px; z-index: 5; width: 28px; height: 28px; padding: 0; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.75); background: rgba(40,52,72,.95); color: #fff; font-size: 16px; box-shadow: 0 2px 6px rgba(0,0,0,.5); line-height: 1; font-weight: 700; cursor: pointer; touch-action: manipulation; }

html.touch #readout { pointer-events: auto; }
/* 鱼探新功能提示光环（从未点过） */
@keyframes sonarGlow { 0%,100% { box-shadow: 0 0 0 2px rgba(95,224,208,.55), 0 0 6px 2px rgba(95,224,208,.35); } 50% { box-shadow: 0 0 0 3px rgba(95,224,208,.95), 0 0 16px 6px rgba(95,224,208,.6); } }
#tui .tmenu .sb.ic.sonarbtn.fresh { animation: sonarGlow 1.6s ease-in-out infinite; }
#tui .tmenu .sb.ic.sonarbtn.fresh.dis { opacity: .8; }
html.touch #readout .sn-x svg { display: block; width: 12px; height: 12px; flex: none; pointer-events: none; }

/* t-m14：慢/中/快、快收、抽竿 移到左侧（左手拇指），右手专管「按住收线」；鱼探打开时面板居中 */
#tui .seg { left: calc(4px + var(--sl)); right: auto; bottom: calc(8px + var(--sb)); flex-direction: column-reverse; gap: 6px; }
#tui .seg button { width: 50px; height: 40px; font-size: 15px; border-radius: 12px; }
#tui .joy { left: calc(64px + var(--sl)); }
#tui .bagbtn { left: calc(208px + var(--sl)); }
#tui .twitch, #tui .fast { left: calc(64px + var(--sl)); right: auto; width: 72px; height: 58px; font-size: 16px; border-radius: 16px; }
#tui .twitch { bottom: calc(8px + var(--sb)); }
#tui .fast { bottom: calc(76px + var(--sb)); }
html.touch #readout { left: 50%; right: auto; transform: translateX(-50%); top: calc(var(--st) + 128px); bottom: calc(var(--sb) + 6px);
  width: clamp(240px, calc(100vw - 2 * (var(--sl) + 150px)), 400px); }

/* 近岸横幅 / 红边 / 音效开关（手机） */
html.touch #fightbanner { zoom: .55; top: 10%; padding: 10px 20px 8px; min-width: 0; }
html.touch #fightbanner .fb-title { font-size: 22px; }
html.touch #fightbanner .fb-sub { font-size: 12px; }
html.touch #tensionvignette { box-shadow: inset 0 0 70px 22px rgba(255,40,40,.5), inset 0 0 120px 40px rgba(180,0,0,.25); }
html.touch .mutebtn { height: calc(40px / var(--mz, 1)); font-size: 12px; padding: 0 10px; margin-left: 4px; flex-shrink: 0; white-space: nowrap; }
