/* Not Monopoly Deal: No Mercy on the phone. Builds on Not Monopoly Deal's phone pieces (.ndp-*
   in phone/phone.css: sections, the fan, the peek, sheets) and Not Uno's turn bar, and adds
   the IOU strip, the debt and hand-out sheets, motion and full-screen moments. */
body.g-notdealnm { font-family: "Futura", "Avenir Next", "Roboto Condensed", Arial, sans-serif; }
body.g-notdealnm .ndp-label, body.g-notdealnm .h2 { text-transform: uppercase; letter-spacing: .03em; }
body.g-notdealnm .pc-explain { font-family: var(--font); }

/* whose turn: the gold bar and a gold frame round the whole screen */
.nxp-bar { min-height: 56px; }
.nxp-bar.me b { font-family: "Futura", "Avenir Next", Arial, sans-serif; font-style: normal; text-transform: uppercase; letter-spacing: .02em; }
.nxp-bar.me .ndp-plays { margin-left: 6px; }
.nxp-bar.me .ndp-plays i { background: #1b1b1b; box-shadow: none; width: 12px; height: 12px; }
.nxp-bar.me .ndp-plays i.used { background: rgba(0,0,0,.18); }
.nxp-bar .muted { color: var(--label-2); font-weight: 600; }
.nxp-deck { margin-left: auto; font-size: 12px; color: var(--label-2); white-space: nowrap; }
body.nxp-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: nxp-frame 1.6s ease-in-out infinite; }
@keyframes nxp-frame { 50% { box-shadow: inset 0 0 0 7px #ffc400, inset 0 0 80px rgba(255,196,0,.6); } }
.nxp.waiting .ndp-fan { opacity: .62; filter: saturate(.75); transition: opacity .3s; }
.nxp.waiting .ndp-fan .pcard.peeking { opacity: 1; }

/* the pile and your IOUs */
.nxp-strip { display: flex; align-items: center; gap: 12px; background: rgba(0,0,0,.26); border-radius: 18px; padding: 10px 12px; }
.nxp-pile { flex: none; min-height: calc(46px * 1.4); }
.nxp-empty { --cw: 46px; font-size: 11px; }
.nxp-iou { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.nxp-iourow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nxp-iourow .ndp-label { margin-right: 2px; }
.nxp-iourow .nm-chip { --cs: 28px; }
.nxp-ioutxt { font-size: 12px; color: var(--label-2); line-height: 1.3; font-family: var(--font); }
.nxp-help { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); background: transparent; font-weight: 900; font-size: 18px; color: var(--text); cursor: pointer; }

/* everyone else */
.nxp-opp.turn { box-shadow: inset 3px 0 0 #ffc400; padding-left: 8px; border-radius: 6px; }
.nxp-opp.acting .ndp-oname { color: #ff9f40; }
.nxp-oious { display: inline-flex; gap: 3px; margin-top: 4px; }
.nxp-oious .nm-chip { --cs: 15px; }
.nxp-oious .nm-chip i { display: none; }
.nxp-oious .nm-chip.out { border-width: 2px; }

/* the dock: a solid base so the page never shows through behind the hand */
.nxp .ndp-dock { background: linear-gradient(to top, rgba(10,8,9,.97) 80%, rgba(10,8,9,0)); }
[data-theme="light"] .nxp .ndp-dock { background: linear-gradient(to top, rgba(243,238,228,.98) 80%, rgba(243,238,228,0)); }

/* the end-turn button sits over the page: give it a solid face */
.nxp .ndp-docktop .btn.end { background: #2c2c2e; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
[data-theme="light"] .nxp .ndp-docktop .btn.end { background: #fff; box-shadow: 0 6px 18px rgba(80,30,30,.16); }
.nxp-why { font-size: 14px; color: var(--label-2); font-family: var(--font); text-align: center; }

/* sheets: debt, IOU payments, handing out */
.nxp-warn { background: rgba(214,31,44,.16); border: 1px solid rgba(214,31,44,.6); border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.4; font-family: var(--font); }
.ndp-sheet .btn.nxp-red, .btn.nxp-red { background: #c8102e; color: #fff; font-weight: 800; letter-spacing: .02em; }
.ndp-sheet .btn.nxp-iou-btn { display: flex; align-items: center; gap: 12px; text-align: left; }
.ndp-sheet .btn.nxp-iou-btn .nm-chip { --cs: 30px; }
.nxp-givegrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 6px; }
.nxp-give > div { --cw: 62px !important; }
[data-give-send] { position: sticky; bottom: 0; box-shadow: 0 -8px 20px rgba(0,0,0,.25); }
.nxp-give { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.nxp-give > div { cursor: pointer; }
.nxp-give.kept .pcard { box-shadow: 0 0 0 4px #ffc400, 0 10px 24px rgba(0,0,0,.5); transform: translateY(-4px); }
.nxp-give:not(.kept) .pcard { filter: saturate(.75); }
.nxp-keepbadge { font-size: 12px; font-weight: 900; letter-spacing: .14em; background: #ffc400; color: #1b1b1b; padding: 4px 10px; border-radius: 999px; }
.nxp-to { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 2px 8px 2px 2px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); font-size: 11px; font-weight: 800; cursor: pointer; max-width: 100%; }
.nxp-to .avatar { width: 24px; height: 24px; font-size: 12px; }
.nxp-to span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nxp-pickrow { display: flex; flex-direction: column; gap: 6px; }
.nxp-pickwho { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; }
.nxp-pickrow .ndp-assets { --cw: 62px; }
.nxp-debtbar { display: flex; align-items: center; gap: 8px; background: linear-gradient(120deg, #ffd60a, #ffb000); color: #1b1b1b; border-radius: 14px; padding: 8px 12px; font-weight: 800; font-size: 15px; }
.nxp-debtbar .nm-chip { --cs: 28px; }
.nxp-debtbar .nm-chip.out i { color: #1b1b1b; }

/* motion: dealt and drawn cards slide in, cards land on the pile, mine fly there */
.ndp-fan .pcard.nxp-in { animation: nxp-in .55s cubic-bezier(.2,1.1,.35,1) both; }
@keyframes nxp-in { from { translate: 0 -52vh; scale: .45; opacity: 0; } 60% { opacity: 1; } }
.nxp-pile .pcard.nxp-land { animation: nxp-land .42s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes nxp-land { from { translate: 0 -60px; scale: 1.4; rotate: -12deg; opacity: 0; } }
.nxp-ghost { position: fixed; z-index: 70; pointer-events: none; transform-origin: 0 0; }
.nxp-ghost .pcard { box-shadow: 0 20px 40px rgba(0,0,0,.45); }

/* big moments on every phone */
.nxp-moment { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px;
  background: radial-gradient(circle, color-mix(in srgb, var(--mc) 72%, #000), rgba(6,3,4,.9) 75%); animation: nxp-moment 2.6s ease both; }
.nxp-moment::before, .nxp-moment::after { content: ''; position: absolute; left: 0; right: 0; height: 18px; background: repeating-linear-gradient(-45deg, #ffcc00 0 16px, #141012 16px 32px); }
.nxp-moment::before { top: 0; } .nxp-moment::after { bottom: 0; }
@keyframes nxp-moment { 0% { opacity: 0; } 8% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; } }
.nxp-moment .nxp-mcard { animation: nxp-slam .5s cubic-bezier(.2,1.5,.4,1) both; }
.nxp-moment .nxp-mcard .pcard { transform: rotate(-8deg); box-shadow: 0 24px 50px rgba(0,0,0,.55); }
.nxp-moment .nxp-mcard .nm-chip { --cs: 110px; }
.nxp-moment .nxp-mcard .nm-chip i { font-size: 32px; }
@keyframes nxp-slam { from { transform: scale(2.4) rotate(16deg); opacity: 0; } }
.nxp-moment .big { font-family: "Futura", "Avenir Next", Arial, sans-serif; font-size: 50px; font-weight: 900; font-style: italic; line-height: .95; text-align: center; color: #fff; text-shadow: 4px 4px 0 var(--mc), 8px 8px 0 rgba(0,0,0,.4); transform: rotate(-5deg); animation: nxp-big .45s .06s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes nxp-big { from { transform: rotate(-5deg) scale(2.6); opacity: 0; } }
.nxp-moment .who { display: flex; align-items: center; gap: 8px; }
.nxp-moment .who .avatar { width: 46px; height: 46px; font-size: 20px; box-shadow: 0 0 0 3px rgba(255,255,255,.85); }
.nxp-moment .arr { font-size: 30px; font-weight: 900; color: #ffcc00; }
.nxp-moment .sub { background: rgba(0,0,0,.7); color: #fff; font-size: 17px; font-weight: 800; padding: 8px 14px; border-radius: 12px; text-align: center; max-width: 92vw; line-height: 1.3; }
.nxp-moment .sub b { display: block; color: #ff6b6b; text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.nxp-moment.hit { animation: nxp-moment 2.6s ease both, nxp-shake .5s .1s ease-in-out 2; }
@keyframes nxp-shake { 0%, 100% { translate: 0 0; } 25% { translate: -6px 0; } 75% { translate: 6px 0; } }

/* the end */
.nxp-stamp { display: inline-block; transform: rotate(-6deg); border: 4px solid #ff2b3a; color: #ff2b3a; font-weight: 900; font-size: 22px; letter-spacing: .14em; padding: 1px 12px; border-radius: 6px; }

/* ---- light theme ---- */
[data-theme="light"] .nxp-strip { background: rgba(255,255,255,.8); box-shadow: 0 4px 14px rgba(120,20,25,.08); }
[data-theme="light"] .nxp-help { border-color: rgba(0,0,0,.2); }
[data-theme="light"] .nxp-warn { background: rgba(214,31,44,.08); }
[data-theme="light"] .nxp-to { background: rgba(0,0,0,.05); border-color: rgba(0,0,0,.15); }
[data-theme="light"] .nxp-opp.acting .ndp-oname { color: #c2410c; }
[data-theme="light"] .nxp .ndp-log .l-steal { color: #c2410c; } [data-theme="light"] .nxp .ndp-log .l-debt { color: #b4121b; } [data-theme="light"] .nxp .ndp-log .l-iou { color: #8a6100; }
.nxp .ndp-log .l-steal { color: #fb923c; } .nxp .ndp-log .l-debt { color: #ff4b55; font-weight: 800; } .nxp .ndp-log .l-iou { color: #fbbf24; }
