/* ===== Monopoly ===== */
.mono { display: grid; grid-template-columns: minmax(0, 760px) minmax(300px, 420px); gap: 16px; justify-content: center; align-items: start; max-width: 1260px; margin: 0 auto; }
@media (max-width: 1050px) { .mono { grid-template-columns: minmax(0, 1fr); } }

.mboard { container-type: inline-size; display: grid; grid-template-columns: 1.5fr repeat(9, 1fr) 1.5fr; grid-template-rows: 1.5fr repeat(9, 1fr) 1.5fr; aspect-ratio: 1; background: #cde6d0; border: 2px solid #14231b; border-radius: 10px; overflow: hidden; user-select: none; }
.msq { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; background: #e9f4eb; border: 1px solid #14231b; color: #10241a; cursor: pointer; }
.msq.corner { background: #d7ebdc; }
.msq:hover { filter: brightness(1.06); }
.mband { flex: none; height: 24%; min-height: 4px; display: flex; align-items: center; justify-content: center; gap: 1px; border-bottom: 1px solid #14231b; }
.mh { width: 1.3cqw; height: 1.3cqw; min-width: 3px; min-height: 3px; background: #2fbf5b; border: 1px solid #0b3d1a; box-sizing: border-box; }
.mhotel { width: 2.6cqw; height: 1.4cqw; min-width: 6px; min-height: 3px; background: #e5484d; border: 1px solid #5a0f12; box-sizing: border-box; }
.mbody { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2cqw; padding: 1px; text-align: center; }
.mnm { font-size: 1.15cqw; line-height: 1.1; font-weight: 700; overflow-wrap: anywhere; }
.mpr { font-size: 1cqw; opacity: .8; }
.mico .ic { width: 2.6cqw; height: 2.6cqw; }
.msq.corner .mnm { font-size: 1.5cqw; }
.msq.corner .mico .ic { width: 4cqw; height: 4cqw; }
.msq.chance .mico { color: #d97706; }
.msq.chest .mico { color: #2563eb; }
.msq.tax .mico { color: #7a1f1f; }
.msq.gotojail .mico, .msq.jail .mico { color: #b91c1c; }
.mown { position: absolute; left: 0; right: 0; bottom: 0; height: max(3px, .8cqw); }
.mtoks { position: absolute; left: 0; right: 0; bottom: max(4px, 1cqw); display: flex; flex-wrap: wrap; justify-content: center; gap: 1px; }
.mtk { display: inline-grid; place-items: center; width: max(11px, 2.4cqw); height: max(11px, 2.4cqw); border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.55); color: #fff; font-size: max(6px, 1.3cqw); font-weight: 800; line-height: 1; box-sizing: border-box; }
.mtk.on { animation: mpulse 1.3s ease-in-out infinite; }
.mtk.jailed { border-color: #111; border-style: dashed; }
@keyframes mpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.3); } }
.msq.mort { background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.14) 0 4px, transparent 4px 8px); filter: grayscale(.6); }
.mmort { position: absolute; top: 1px; right: 1px; background: #222; color: #fff; font-size: max(6px, 1cqw); font-weight: 800; padding: 0 2px; border-radius: 2px; }
.msq.sel { outline: 3px solid #f5b942; outline-offset: -3px; z-index: 2; }
.msq.hot { box-shadow: inset 0 0 0 3px #ffd54a; }

.mcenter { grid-area: 2 / 2 / 11 / 11; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.2cqw; padding: 2cqw; text-align: center; color: #14231b; }
.mlogo { font-size: 6.4cqw; font-weight: 900; letter-spacing: .22em; color: #d62d36; transform: rotate(-9deg); text-shadow: 1px 1px 0 #fff; }
.mdice { display: flex; gap: 2cqw; }
.mdice .ic.die { width: 9cqw; height: 9cqw; background: #fff; border-radius: 1.4cqw; box-shadow: 0 2px 5px rgba(0,0,0,.4); }
.mdrawn { max-width: 74%; padding: 1.4cqw 2cqw; border-radius: 1.2cqw; font-size: 1.9cqw; line-height: 1.3; display: flex; flex-direction: column; gap: .5cqw; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.mdrawn b { font-size: 2cqw; letter-spacing: .05em; text-transform: uppercase; }
.mdrawn.chance { background: #ffd8a8; border: 2px solid #d97706; }
.mdrawn.chest { background: #bfdbfe; border: 2px solid #2563eb; }
.mpot { font-size: 2cqw; }
.mstock { font-size: 1.5cqw; }
@container (max-width: 540px) {
  .mnm { display: none; }
  .msq.corner .mnm { display: block; font-size: 2.3cqw; }
  .mpr { font-size: 1.9cqw; }
  .mico .ic { width: 4cqw; height: 4cqw; }
  .mdrawn { font-size: 2.6cqw; }
  .mdrawn b { font-size: 2.8cqw; }
  .mlogo { font-size: 7.5cqw; }
  .mpot, .mstock { font-size: 2.6cqw; }
}

.mpanel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.mpanel h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.mono .banner.danger { background: rgba(229,72,77,.18); border-color: #e5484d; }
.mono .controls { flex-wrap: wrap; }
.mtrade { background: rgba(168,85,247,.15); border: 1px solid #a855f7; border-radius: 8px; padding: 10px; margin-bottom: 8px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }

.mcard { background: #f6f3e6; color: #1b1b1b; border-radius: 8px; overflow: hidden; border: 1px solid rgba(0,0,0,.25); }
.mcard-head { height: 26px; border-bottom: 1px solid rgba(0,0,0,.3); }
.mcard-t { font-weight: 800; text-align: center; padding: 8px; text-transform: uppercase; letter-spacing: .03em; }
.mrow { display: flex; justify-content: space-between; gap: 8px; padding: 3px 12px; font-size: 13px; }
.mrow.now { background: #ffe9a8; }
.mrow.muted { display: block; text-align: center; color: #555; }
.mowner { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-top: 1px solid rgba(0,0,0,.18); margin-top: 6px; }

.mpl { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 8px; align-items: center; padding: 6px 6px; border-radius: 8px; }
.mpl.turn { background: rgba(245,185,66,.16); }
.mpl.out { opacity: .45; }
.mpl.out .mpl-n { text-decoration: line-through; }
.mpl-i { font-weight: 700; }
.mpl-s { grid-column: 2 / 4; font-size: 12px; color: var(--muted); }
.mpl .mtk { width: 20px; height: 20px; font-size: 11px; }

.mgrp { margin-bottom: 8px; }
.mgh { display: flex; align-items: center; gap: 6px; font-weight: 600; margin: 6px 0 4px; }
.mgh i { width: 14px; height: 14px; border-radius: 3px; }
.mprop { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; padding: 5px 8px; border-radius: 8px; background: var(--panel2); margin-bottom: 4px; cursor: pointer; }
.mprop.mort { opacity: .65; }
.mpn { font-size: 13px; font-weight: 600; }
.mph { grid-column: 1; display: flex; align-items: center; gap: 2px; min-height: 12px; }
.mph .mh { width: 10px; height: 10px; }
.mph .mhotel { width: 16px; height: 10px; }
.mph em { font-size: 11px; color: var(--muted); }
.mpb { grid-column: 2; grid-row: 1 / 3; display: flex; gap: 4px; align-items: center; }
.mpb button { padding: 5px 9px; }

.mlogs { max-height: 260px; overflow-y: auto; }
.mlog { font-size: 12.5px; padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,.05); }

.mtgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .mtgrid { grid-template-columns: 1fr; } }
.mtside h4 { margin: 0 0 6px; }
.mck { display: flex; align-items: center; gap: 6px; margin: 5px 0; font-size: 14px; flex-wrap: wrap; }
.mck input[type=checkbox] { width: auto; }
.mck i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.mck em { color: var(--muted); font-size: 12px; }
