/* 联机会馆（js/mp_hall.js）：宣纸淡墨，硬边 1px 描边，不用绿色、不用高饱和 */
body.mph #minimap-wrap, body.mph #btn-mm { display: none !important; }
@property --r { syntax: "<length>"; inherits: false; initial-value: 900px; }
#mph-iris { position: fixed; inset: 0; z-index: 9000; pointer-events: none; display: none; --r: 900px;
  background: radial-gradient(circle at 50% 55%, transparent 0, transparent var(--r), #14100b calc(var(--r) + 1px)); }
#mph-iris.close { display: block; pointer-events: auto; animation: mphClose .6s steps(12) forwards; }
#mph-iris.open { display: block; animation: mphOpen .6s steps(12) forwards; }
@keyframes mphClose { from { --r: 900px; } to { --r: 0px; } }
@keyframes mphOpen { from { --r: 0px; } to { --r: 900px; } }

#mph-start { position: fixed; z-index: 60; right: calc(env(safe-area-inset-right, 0px) + 12px); top: calc(50% - 6px); padding: 6px 16px 5px; min-width: 112px; text-align: center;
  font-family: "Noto Serif SC", serif; color: #6b5a44; background: #d8ccb0; border: 3px double #23292a; cursor: pointer; }
#mph-start b { display: block; font-size: 18px; letter-spacing: 4px; font-weight: 600; }
#mph-start span { display: flex; gap: 4px; justify-content: center; align-items: center; margin-top: 2px; }
#mph-start img { width: 20px; height: 20px; image-rendering: pixelated; }
#mph-start em { font-style: normal; font-size: 12px; margin-left: 4px; }
#mph-start small { display: block; font-size: 10px; }
#mph-start.on { color: #f4edd8; background: #a8392b; animation: mphPulse 1.4s ease-in-out infinite; }
#mph-start:active { transform: translateY(2px); }
#mph-start.nope { animation: mphShake .35s; }
@keyframes mphPulse { 50% { transform: scale(1.05); } }
@keyframes mphShake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.mph-two { display: flex; gap: 14px; font-size: 14px; color: #23292a; }
.mph-l { flex: 1.4; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.mph-r { flex: 1; min-width: 0; border-left: 2px solid #b9a98a; padding-left: 12px; }
.mph-note { font-size: 12px; color: #6b5a44; margin: 0 0 4px; }
.mph-two input, .mph-book input, .mph-pw input { font: inherit; border: 1px solid #6b5a44; background: #fffaf0; color: #23292a; padding: 4px 6px; min-width: 0; border-radius: 0; }
.mph-two input:disabled { opacity: .45; }
.mph-big { font-size: 22px !important; letter-spacing: 6px; text-align: center; padding: 6px !important; }
.mph-lockrow { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid #b9a98a; background: #f3ead4; }
.mph-lockrow img, .mph-pw img { width: 24px; image-rendering: pixelated; }
.mph-lockrow input { width: 96px; margin-left: auto; }
.mph-btns { display: flex; gap: 10px; justify-content: center; margin-top: 4px; }
.mph-btns button, .mph-write button, .mph-pw button, .mph-row button, .mph-fr button { font: inherit; padding: 5px 14px; border: 1px solid #6b5a44; background: #efe7d4; color: #23292a; cursor: pointer; }
.mph-btns button.pri, .mph-write button.pri, .mph-pw button.pri, .mph-fr button.pri { background: #a8392b; color: #f6efdc; border-color: #23292a; }
.mph-btns button:active, .mph-write button:active, .mph-fr button:active { transform: translateY(1px); }
.mph-found { font-size: 12px; color: #6b5a44; min-height: 1em; margin: 0; }
.mph-found b { color: #a8392b; }
.mph-rh { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.mph-rh img { width: 26px; image-rendering: pixelated; }
.mph-fr { display: flex; align-items: center; gap: 8px; padding: 6px 2px; border-bottom: 1px dashed #b9a98a; }
.mph-fr img, .mph-msg img, .mph-inv img { width: 40px; height: 34px; image-rendering: pixelated; border: 1px solid #6b5a44; border-radius: 50%; background: #e8dcc0; flex: none; }
.mph-fr div { flex: 1; min-width: 0; }
.mph-fr small { display: block; font-size: 11px; color: #6b5a44; }
.mph-fr button { padding: 2px 10px; }
.mph-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 2px; border-bottom: 1px dashed #b9a98a; }
.mph-row input { width: 120px; }
.mph-row button { padding: 1px 8px; }
.mph-code { font-size: 18px; letter-spacing: 4px; color: #a8392b; }
.mph-seg { display: inline-flex; border: 1px solid #6b5a44; }
.mph-seg button { font: inherit; font-size: 12px; padding: 2px 8px; border: 0; background: #f6efdc; color: #23292a; cursor: pointer; }
.mph-seg button.on { background: #3f5a52; color: #f6efdc; }
.mph-sw { width: 46px; height: 22px; border: 2px solid #6b5a44; background: #d8ccb0; position: relative; padding: 0; cursor: pointer; flex: none; }
.mph-sw i { position: absolute; top: 1px; left: 1px; width: 18px; height: 16px; background: #f6efdc; border: 1px solid #6b5a44; transition: left .12s steps(3); }
.mph-sw.on { background: #a8392b; }
.mph-sw.on i { left: 23px; }
.mph-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 8px 10px; background: #f3ead4; border: 1px solid #b9a98a; font-size: 14px; color: #23292a; }
.mph-foot b { color: #a8392b; }
.mph-book { font-size: 14px; color: #23292a; }
.mph-msgs { max-height: 46vh; overflow-y: auto; }
.mph-msg { display: flex; gap: 8px; padding: 7px 2px; border-bottom: 1px dashed #b9a98a; }
.mph-msg small { font-size: 11px; color: #6b5a44; }
.mph-msg p { margin: 2px 0 0; }
.mph-write { display: flex; gap: 8px; margin-top: 10px; }
.mph-write input { flex: 1; }
.mph-pw, .mph-inv { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; color: #23292a; text-align: center; }
.mph-inv h4 { margin: 0; font-size: 16px; }
.mph-inv p { margin: 0; }
.mph-slots { display: flex; flex-direction: column; gap: 6px; }
.mph-slotb { display: flex; justify-content: space-between; align-items: center; font: inherit; font-size: 14px; padding: 8px 12px; border: 1px solid #6b5a44; background: #f6efdc; color: #23292a; cursor: pointer; }
.mph-slotb.on { border: 3px double #a8392b; }
.mph-slotb:disabled { opacity: .45; }
.mph-slotb small { color: #6b5a44; }

/* 面板里的通用按钮样式（墨条底图、最小宽度）不要盖到会馆的开关 / 分段 / 小按钮上 */
[class^="mph-"] button, [class*=" mph-"] button { background-image: none !important; min-width: 0 !important; min-height: 0 !important; height: auto; box-shadow: none !important; line-height: 1.3; white-space: nowrap; text-shadow: none; }
[class^="mph-"] button::before, [class*=" mph-"] button::before, [class^="mph-"] button::after, [class*=" mph-"] button::after { content: none !important; }
.mph-row > span:first-child { white-space: nowrap; }
button.mph-sw { width: 46px !important; height: 22px !important; padding: 0 !important; background-color: #d8ccb0 !important; }
button.mph-sw.on { background-color: #a8392b !important; }
.mph-seg button { background-color: #f6efdc !important; color: #23292a !important; padding: 2px 7px !important; }
.mph-seg button.on { background-color: #3f5a52 !important; color: #f6efdc !important; }
.mph-btns button, .mph-write button, .mph-pw button, .mph-row button, .mph-fr button { background-color: #efe7d4 !important; color: #23292a !important; }
.mph-btns button.pri, .mph-write button.pri, .mph-pw button.pri, .mph-fr button.pri { background-color: #a8392b !important; color: #f6efdc !important; }
.mph-slotb { background-color: #f6efdc !important; }
#mph-start[hidden] { display: none; }
#mph-signs { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
#mph-signs b { position: absolute; left: 0; top: 0; font-family: var(--serif); font-weight: 700; color: #2a1c10; white-space: nowrap; line-height: 1; letter-spacing: 0; }
#mph-signs b.dim { color: rgba(70,54,38,.72); font-weight: 600; }
#mph-signs b[hidden], #mph-signs[hidden] { display: none; }
#mph-signs i { position: absolute; left: 0; top: 0; display: flex; gap: calc(var(--u) * .12); align-items: center; }
#mph-signs i img { width: var(--u); height: var(--u); image-rendering: pixelated; }
#mph-signs i img.off { opacity: .38; filter: grayscale(1); }
#mph-signs i[hidden] { display: none; }
#mph-start img.off { opacity: .38; filter: grayscale(1); }
