/* Not Monopoly on phones. Dark rules first, [data-theme="light"] overrides at the end. */
body.g-notmonopoly { font-family: "Avenir Next", "Futura", "Inter", -apple-system, Arial, sans-serif; }
.nmp { display: flex; flex-direction: column; gap: 10px; padding-bottom: 250px; }

/* whose turn */
.nmp-turnbar { display: flex; align-items: center; gap: 10px; border-radius: 18px; padding: 12px 14px; font-size: 16px; }
.nmp-turnbar.me { flex-direction: column; align-items: flex-start; gap: 3px; background: linear-gradient(120deg, #ffd60a, #ffb000); color: #1b1b1b; box-shadow: 0 10px 30px rgba(255,190,0,.45); animation: nmp-pop .35s cubic-bezier(.2,1.4,.4,1) both, nmp-throb 1.6s ease-in-out .4s infinite; }
.nmp-turnbar.me b { font-size: 30px; font-weight: 900; letter-spacing: -.01em; line-height: 1; font-family: "Futura", "Avenir Next", Arial, sans-serif; }
.nmp-turnbar.me span { font-size: 16px; font-weight: 800; }
.nmp-turnbar.auction { flex-direction: column; align-items: flex-start; gap: 2px; background: linear-gradient(120deg, #38bdf8, #0284c7); color: #fff; box-shadow: 0 10px 30px rgba(14,165,233,.35); }
.nmp-turnbar.auction b { font-size: 26px; font-weight: 900; letter-spacing: .06em; line-height: 1; }
.nmp-turnbar.auction span { font-weight: 700; }
.nmp-turnbar.idle { background: rgba(0,0,0,.3); color: var(--label-2); }
.nmp-turnbar.idle b { color: var(--text); }
.nmp-turnbar.idle small { display: block; font-size: 13px; color: var(--label-2); }
@keyframes nmp-pop { from { transform: scale(.8); opacity: 0; } }
@keyframes nmp-throb { 50% { box-shadow: 0 10px 40px rgba(255,190,0,.75); transform: scale(1.015); } }
body.nmp-myturn::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 15; box-shadow: inset 0 0 0 5px #ffc400, inset 0 0 50px rgba(255,196,0,.45); animation: nmp-frame 1.6s ease-in-out infinite; }
@keyframes nmp-frame { 50% { box-shadow: inset 0 0 0 7px #ffc400, inset 0 0 80px rgba(255,196,0,.6); } }
.nmp.waiting .ndp-fan { opacity: .66; filter: saturate(.8); transition: opacity .3s; }
.nmp.waiting .ndp-fan .peeking { opacity: 1; }

/* your cash */
.nmp-wallet { position: relative; display: flex; align-items: center; gap: 12px; background: rgba(0,0,0,.3); border-radius: 18px; padding: 10px 14px; }
.nmp-wl { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nmp-wl small { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--label-2); }
.nmp-wl b { font-size: 34px; font-weight: 900; line-height: 1; color: #a3e635; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.nmp-wl span { font-size: 13px; color: var(--label-2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nmp-jailtag { font-style: normal; font-size: 11px; font-weight: 900; letter-spacing: .08em; background: #f08a24; color: #1b1203; border-radius: 6px; padding: 1px 5px; }
.nmp-dice { display: flex; gap: 6px; }
.nmp-dice.rolling .nm-die { animation: nmp-roll .55s cubic-bezier(.2,1.2,.4,1) both; }
.nmp-dice.rolling .nm-die + .nm-die { animation-delay: .07s; }
@keyframes nmp-roll { from { transform: translateY(-30px) rotate(-220deg) scale(.5); opacity: 0; } }
.nmp-delta-host { position: absolute; left: 70px; top: 6px; pointer-events: none; }
.nmp-delta { position: absolute; left: 0; top: 0; font-size: 22px; font-weight: 900; padding: 2px 10px; border-radius: 999px; white-space: nowrap; animation: nmp-delta 1.8s ease-out both; }
.nmp-delta.up { background: #a3e635; color: #0a0d14; }
.nmp-delta.down { background: #ff6b6b; color: #1b0b0b; }
@keyframes nmp-delta { 0% { transform: translate(60px, 20px) scale(.6); opacity: 0; } 15% { transform: translate(60px, 0) scale(1.1); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(60px, -36px) scale(1); opacity: 0; } }

/* the one thing to do */
.nmp-panel { background: rgba(0,0,0,.3); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 8px; border: 2px solid transparent; }
.nmp-panel.danger { border-color: #ff6b6b; }
.nmp-panel.auction { border-color: #38bdf8; }
.nmp-panel.trade { border-color: #a78bfa; }
.nmp-panel.quiet { background: transparent; padding: 0; }
.nmp-panel .btn { min-height: 52px; font-size: 17px; font-weight: 800; }
.nmp-panel .p { font-size: 15px; }
.nmp-ph { font-size: 20px; font-weight: 900; line-height: 1.15; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn.nmp-roll { min-height: 84px; font-size: 30px; font-weight: 900; letter-spacing: .06em; display: flex; align-items: center; justify-content: center; gap: 14px; background: linear-gradient(160deg, #e0342f, #a3191d); box-shadow: 0 8px 22px rgba(208,38,43,.45); }
.nmp-rollico { display: inline-flex; gap: 5px; }
.nmp-rollico .nm-die:first-child { transform: rotate(-12deg); }
.nmp-rollico .nm-die:last-child { transform: rotate(10deg); }
.btn.nmp-end { min-height: 60px; font-size: 20px; }
.btn.nmp-bankrupt { background: #3a3a3a; color: #fff; }
.btn.nmp-tradebtn { background: rgba(167,139,250,.18); color: var(--text); box-shadow: inset 0 0 0 2px rgba(167,139,250,.6); }
.nmp-row2 { display: flex; gap: 8px; }
.nmp-row2 .btn { flex: 1; }
.nmp-offer { display: flex; gap: 12px; align-items: center; }
.nmp-offer .nmdeed { cursor: pointer; transform: rotate(-3deg); }
.nmp-offerbody { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.nmp-offerbody .timer { height: 8px; background: rgba(255,255,255,.14); border-radius: 999px; overflow: hidden; }
.nmp-offerbody .timer .fill { height: 100%; background: #38bdf8; }
.nmp-offerbody .timer.urgent .fill { background: #ff6b6b; }
.nmp-bids { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nmp-lead { text-align: center; font-size: 20px; font-weight: 900; color: #a3e635; padding: 8px; }
.nmp-why { font-size: 14px; color: var(--label-2); background: var(--fill); border-radius: 12px; padding: 8px 12px; }
.nmp-terms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nmp-terms > div { display: flex; flex-wrap: wrap; gap: 5px; align-content: flex-start; background: var(--fill); border-radius: 12px; padding: 8px; }
.nmp-terms small { width: 100%; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--label-2); }
.nmp-dchip { display: inline-flex; align-items: center; font-size: 13px; font-weight: 900; text-transform: uppercase; background: var(--sc); color: var(--si); border-radius: 6px; padding: 4px 8px; border: 2px solid rgba(0,0,0,.4); font-family: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", sans-serif; }
.nmp-dchip.mort { background: repeating-linear-gradient(45deg, var(--sc) 0 5px, rgba(0,0,0,.4) 5px 9px); }
.nmp-dchip.pick, .nmp-cashchip.pick { cursor: pointer; opacity: .55; min-height: 36px; }
.nmp-dchip.pick.on, .nmp-cashchip.pick.on { opacity: 1; box-shadow: 0 0 0 3px #ffd60a; }
.nmp-cashchip { display: inline-flex; align-items: center; background: #a3e635; color: #0a0d14; font-weight: 900; font-size: 14px; border-radius: 999px; padding: 4px 10px; border: none; }
.nmp-cashchip.free { background: #5b7fa8; color: #fff; font-size: 12px; }
.nmp-liftbox { display: flex; flex-direction: column; gap: 6px; }
.nmp-liftrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nmp-seg { display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--fill); margin-left: auto; }
.nmp-seg button { border: none; background: none; color: var(--text); font-size: 13px; font-weight: 700; padding: 8px 10px; border-radius: 7px; min-height: 36px; }
.nmp-seg button.on { background: #636366; }

/* trade composer */
.nmp-tsheet { max-height: 86vh; }
.nmp-tsheet .btn.who { display: flex; align-items: center; gap: 10px; text-align: left; }
.nmp-tsheet .btn.who small { margin-left: auto; color: var(--label-2); font-weight: 600; font-size: 13px; }
.nmp-tcol { display: flex; flex-direction: column; gap: 8px; background: var(--fill); border-radius: 14px; padding: 10px; }
.nmp-tlabel { font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--label-2); }
.nmp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nmp-step { display: flex; align-items: center; gap: 4px; }
.nmp-step button { min-width: 48px; min-height: 40px; border-radius: 10px; border: none; background: var(--bg-3); color: var(--text); font-weight: 800; font-size: 14px; }
.nmp-step b { flex: 1; text-align: center; font-size: 22px; font-weight: 900; color: #a3e635; }
.nmp-step small { font-size: 11px; color: var(--label-2); width: 52px; text-align: right; }

/* everyone else */
.nmp-opps { display: flex; flex-direction: column; gap: 4px; }
.nmp-opp { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 14px; background: rgba(0,0,0,.18); border: 2px solid transparent; }
.nmp-opp.turn { border-color: #ffb800; }
.nmp-opp.out { opacity: .45; }
.nmp-opp .nm { flex: 1; min-width: 0; font-weight: 800; font-size: 15px; line-height: 1.15; }
.nmp-opp .nm small { display: block; font-weight: 600; font-size: 12px; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nmp-opp .ct { font-weight: 900; font-size: 17px; color: #a3e635; font-variant-numeric: tabular-nums; }
.nmp-sets { display: flex; gap: 3px; }
.nmp-sets i { width: 10px; height: 16px; border-radius: 3px; background: var(--sc); box-shadow: 0 0 0 1.5px rgba(0,0,0,.4); }
.nmp-log { font-size: 13px; color: var(--label-2); line-height: 1.45; padding: 0 4px; }
.nmp-log .l-turn { color: var(--text); font-weight: 700; } .nmp-log .l-good, .nmp-log .l-rent { color: #a3e635; } .nmp-log .l-bad { color: #ff8a8a; } .nmp-log .l-trade { color: #c4b5fd; } .nmp-log .l-auction, .nmp-log .l-card { color: #7dd3fc; }
.nmp-finaltok .nm-token { box-shadow: 0 0 0 5px #fff, 0 0 0 10px #ffb800, 0 20px 40px rgba(0,0,0,.4); }

/* the hand fan */
.ndp-fan .nmdeed, .ndp-fan .nmcard { position: absolute; top: 22px; transform-origin: 50% 100%; transition: transform .18s ease, filter .2s; cursor: pointer; }
.ndp-fan .nmdeed.peeking, .ndp-fan .nmcard.peeking { translate: 0 -30px; z-index: 60 !important; filter: none; box-shadow: 0 14px 30px rgba(0,0,0,.45); }
.ndp-fan .nm-slidein { animation: nmp-in .55s cubic-bezier(.2,1.1,.35,1) both; }
@keyframes nmp-in { from { translate: 0 -52vh; scale: .45; opacity: 0; } 60% { opacity: 1; } }
.nmp-nodeeds { padding: 40px 20px 0; }
.ndp-bigcard .nmdeed, .ndp-bigcard .nmcard { width: var(--cw); }

/* the big moment */
.nmp-moment { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(circle, color-mix(in srgb, var(--gc, var(--pc)) 55%, transparent), rgba(0,0,0,.6) 75%); animation: nmp-moment 2.7s ease both; }
@keyframes nmp-moment { 0% { opacity: 0; } 8% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
.nmp-moment .big { font-family: "Futura", "Avenir Next", Arial, sans-serif; font-size: 70px; font-weight: 900; line-height: .9; color: #fff; letter-spacing: -.02em; text-shadow: 4px 4px 0 #d0262b, 8px 8px 0 rgba(0,0,0,.3); transform: rotate(-6deg); animation: nmp-slam .5s cubic-bezier(.2,1.5,.4,1) both; text-align: center; padding: 0 12px; }
.nmp-moment.k-monopoly .big { color: #ffd23f; }
.nmp-moment.k-rent .big { color: #a3e635; text-shadow: 4px 4px 0 #1b1f2a, 8px 8px 0 rgba(0,0,0,.3); }
.nmp-moment.k-jail .big { color: #f08a24; text-shadow: 4px 4px 0 #1b1f2a, 8px 8px 0 rgba(0,0,0,.3); }
.nmp-moment.k-bankrupt .big { font-size: 56px; }
@keyframes nmp-slam { from { transform: rotate(-6deg) scale(3); opacity: 0; } }
.nmp-moment .who { display: flex; align-items: center; gap: 10px; background: rgba(0,0,0,.72); color: #fff; font-size: 18px; font-weight: 900; padding: 8px 18px 8px 8px; border-radius: 999px; max-width: 92vw; line-height: 1.15; }
.nmp-moment .who small { display: block; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.75); }

/* ---- light theme ---- */
[data-theme="light"] .nmp-turnbar.idle, [data-theme="light"] .nmp-wallet, [data-theme="light"] .nmp-panel:not(.quiet), [data-theme="light"] .nmp-opp { background: rgba(255,255,255,.82); box-shadow: 0 4px 14px rgba(30,60,40,.08); }
[data-theme="light"] .nmp-panel.danger { border-color: #e5383b; }
[data-theme="light"] .nmp-panel.auction { border-color: #0ea5e9; }
[data-theme="light"] .nmp-panel.trade { border-color: #8b5cf6; }
[data-theme="light"] .nmp-opp.turn { border-color: #f0a500; }
[data-theme="light"] .nmp-wl b, [data-theme="light"] .nmp-opp .ct, [data-theme="light"] .nmp-lead, [data-theme="light"] .nmp-step b { color: #2f7d16; }
[data-theme="light"] .nmp-offerbody .timer { background: rgba(0,0,0,.1); }
[data-theme="light"] .nmp-seg button.on { background: #fff; box-shadow: 0 3px 8px rgba(30,40,80,.16); }
[data-theme="light"] .btn.nmp-tradebtn { background: rgba(139,92,246,.1); box-shadow: inset 0 0 0 2px rgba(139,92,246,.5); }
[data-theme="light"] .nmp-log .l-good, [data-theme="light"] .nmp-log .l-rent { color: #2f7d16; } [data-theme="light"] .nmp-log .l-bad { color: #c81e1e; } [data-theme="light"] .nmp-log .l-trade { color: #6d28d9; } [data-theme="light"] .nmp-log .l-auction, [data-theme="light"] .nmp-log .l-card { color: #0369a1; }
[data-theme="light"] .ndp-fan .nmdeed.peeking, [data-theme="light"] .ndp-fan .nmcard.peeking { box-shadow: 0 14px 30px rgba(30,40,80,.3); }
[data-theme="light"] body.g-notmonopoly .ndp-dock { background: linear-gradient(to top, rgba(222,234,218,.97) 72%, rgba(222,234,218,0)); }
.nmp-r-ov .ndp-bigcard { --cw: min(40vw, 158px); }
.nmp-r-ov .ndp-sheet { max-height: calc(100vh - 262px); }
.nmp-r-ov .nmp-tsheet { max-height: 88vh; }
