/* Coin Pusher (11/7, coin-pusher.js + mg3d/pusher3d.js). Classes .cpx-* only. */
.cpx { --acc: #ffb84a; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 14px; }
.cpx-stage { position: relative; aspect-ratio: 4 / 3.4; min-height: 360px; max-height: min(76vh, 760px); width: 100%; border-radius: 16px; overflow: hidden; background: radial-gradient(120% 90% at 50% 40%, #1b1224, #060508 70%); box-shadow: 0 0 0 1px rgba(255,184,74,.18), 0 20px 50px rgba(0,0,0,.5); touch-action: none; user-select: none; -webkit-user-select: none; }
.cpx-3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.cpx-boot { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: center; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; color: #9aa2ae; font: 600 18px/1.3 "Barlow Condensed", sans-serif; transition: opacity .4s ease; }
.cpx-boot-bar { flex: 0 0 100%; max-width: 240px; height: 4px; margin: 2px auto 0; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.cpx-boot-bar b { display: block; height: 100%; background: var(--acc); transform-origin: left; transform: scaleX(.04); transition: transform .35s ease; box-shadow: 0 0 10px var(--acc); }
.cpx.ready .cpx-boot { opacity: 0; pointer-events: none; }
.cpx-tags { position: absolute; inset: 0; pointer-events: none; }
.cpx-tags span { position: absolute; left: 0; top: 0; margin: -26px 0 0 -40px; width: 80px; text-align: center; font: 700 12px/1 "Barlow Condensed", sans-serif; letter-spacing: .04em; color: #fff; text-shadow: 0 1px 3px #000, 0 0 8px rgba(0,0,0,.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cpx-tags span.mine { color: #ffd98a; }
.cpx-msg { position: absolute; left: 50%; top: 14px; transform: translate(-50%, -8px); padding: 7px 14px; border-radius: 999px; background: rgba(10,8,14,.82); border: 1px solid rgba(255,184,74,.35); color: #f4e6c8; font: 600 15px/1.2 "Barlow Condensed", sans-serif; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; white-space: nowrap; }
.cpx-msg.on { opacity: 1; transform: translate(-50%, 0); }
.cpx-snd { position: absolute; z-index: 3; top: 12px; right: 12px; display: flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 999px; background: rgba(8,6,12,.72); border: 1px solid rgba(255,255,255,.12); }
.cpx-snd button { width: 28px; height: 28px; padding: 0 !important; border: 0; border-radius: 50%; background: transparent; font-size: 15px; line-height: 1; cursor: pointer; }
.cpx-snd input { width: 90px; accent-color: #ffb84a; } .cpx-snd input:disabled { opacity: .4; }
@media (max-width: 520px) { .cpx-snd input { width: 64px; } }
.cpx-drop { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 92px; height: 92px; padding: 0; border-radius: 50%; border: 0; cursor: pointer; color: #2a1600;
    background: radial-gradient(circle at 35% 30%, #fff1c2, #ffc456 45%, #c27a17 100%); box-shadow: 0 0 0 4px rgba(0,0,0,.45), 0 0 0 6px rgba(255,184,74,.6), 0 10px 26px rgba(0,0,0,.55), inset 0 -6px 10px rgba(120,60,0,.45); transition: transform .08s; }
.cpx-drop:active { transform: scale(.94); }
.cpx-drop b { font: 800 22px/1 "Barlow Condensed", Impact, sans-serif; letter-spacing: .06em; margin-top: 18px; }
.cpx-drop small { font: 700 11px/1 "Barlow Condensed", sans-serif; margin-bottom: 22px; opacity: .8; }
.cpx-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cpx-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cpx-stats div { padding: 10px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); }
.cpx-stats small { display: block; color: #8d94a0; font: 600 11px/1.2 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.cpx-stats b { display: block; margin-top: 3px; color: #fff; font: 700 18px/1.1 "Barlow Condensed", sans-serif; }
.cpx-how { margin: 0; color: #a9afba; font-size: 13px; line-height: 1.45; }
.cpx-side h4 { margin: 4px 0 0; color: #ffd98a; font: 700 14px/1 "Barlow Condensed", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.cpx-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 330px; overflow: auto; }
.cpx-feed li { display: flex; align-items: baseline; gap: 6px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.035); font-size: 13px; color: #c9ced6; opacity: 1; }
.cpx-feed li.new { animation: cpxIn .35s ease both; }
.cpx-feed li b { color: #fff; } .cpx-feed li em { font-style: normal; color: #ffd98a; } .cpx-feed li span { margin-left: auto; color: #8d94a0; font-size: 12px; }
.cpx-feed li.t-pack em { color: #c58bff; } .cpx-feed li.t-crate em { color: #ff8ad8; } .cpx-feed li.t-card em { color: #7fd0ff; }
.cpx-feed .cpx-feed-empty { color: #7c828d; background: none; }
@keyframes cpxIn { from { opacity: 0; transform: translateY(-6px); } }
.cpx-pop { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 4; }
.cpx-pop .cpx-pz { pointer-events: auto; display: grid; justify-items: center; gap: 6px; padding: 20px 26px; border-radius: 18px; background: rgba(12,9,16,.92); border: 1px solid rgba(255,184,74,.45); box-shadow: 0 0 60px rgba(255,184,74,.25), 0 20px 50px rgba(0,0,0,.6); transform: scale(.85); opacity: 0; transition: transform .3s cubic-bezier(.2,1.4,.4,1), opacity .2s; text-align: center; max-width: min(360px, 90%); }
.cpx-pop.show .cpx-pz { transform: none; opacity: 1; }
.cpx-pz img { max-height: 120px; max-width: 70%; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(0,0,0,.6)); }
.cpx-pz em { font-style: normal; color: #ffd98a; font: 700 13px/1 "Barlow Condensed", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.cpx-pz strong { color: #fff; font: 800 24px/1.1 "Barlow Condensed", sans-serif; }
.cpx-pz span { color: #a9afba; font-size: 13px; }
.cpx-tile .ccl-tile-art img { object-position: center 40%; }
.mg-push-slot { margin: 14px 0; } .mg-push-slot:empty { display: none; }
/* v2 (11/7): turns — the bar over the machine, the line, the YOUR TURN call */
.cpx-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cpx-turnbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid rgba(255,184,74,.2); }
.cpx-tabs { display: flex; gap: 6px; }
.cpx-tabs button, .cpx-tab-one { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.3); color: #c9ced6; font: 700 14px/1 "Barlow Condensed", sans-serif; letter-spacing: .05em; cursor: pointer; }
.cpx-tabs button.on, .cpx-tab-one { border-color: rgba(255,184,74,.7); color: #ffd98a; background: rgba(255,184,74,.1); }
.cpx-now { display: flex; align-items: center; gap: 10px; color: #c9ced6; font: 600 15px/1.2 "Barlow Condensed", sans-serif; }
.cpx-who { display: inline-flex; align-items: center; gap: 7px; } .cpx-who b { color: #fff; font-size: 16px; } .cpx-who.me b { color: #ffd98a; }
.cpx-who img, .cpx-who i, .cpx-queue img, .cpx-queue li > i { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; background: #2a2236; color: #ffd98a; font: 800 13px/1 "Barlow Condensed", sans-serif; font-style: normal; box-shadow: 0 0 0 2px rgba(255,184,74,.5); }
.cpx-clock { padding: 4px 10px; border-radius: 999px; background: rgba(255,184,74,.14); color: #ffd98a; font-weight: 700; white-space: nowrap; }
.cpx-clock.free { background: rgba(120,230,170,.1); color: #9ff0c2; }
.cpx-line h4 span { color: #a9afba; letter-spacing: 0; text-transform: none; font-weight: 600; }
.cpx-queue { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 230px; overflow: auto; counter-reset: q; }
.cpx-queue li { counter-increment: q; display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.035); color: #c9ced6; font-size: 13px; }
.cpx-queue li::before { content: counter(q); width: 16px; color: #7c828d; font: 700 12px/1 "Barlow Condensed", sans-serif; }
.cpx-queue li b { color: #fff; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cpx-queue li span { color: #8d94a0; font-size: 12px; }
.cpx-queue li.me { background: rgba(255,184,74,.1); box-shadow: inset 0 0 0 1px rgba(255,184,74,.4); } .cpx-queue li.me b { color: #ffd98a; }
.cpx-queue .cpx-q-empty { color: #7c828d; background: none; } .cpx-queue .cpx-q-empty::before { content: none; }
.cpx-leave { margin-top: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.15); background: transparent; color: #c9ced6; font: 700 13px/1 "Barlow Condensed", sans-serif; cursor: pointer; }
.cpx-yt { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(255,184,74,.25), rgba(5,4,8,.72) 70%); animation: cpxYt .35s ease both; }
.cpx-yt > div { display: grid; justify-items: center; gap: 8px; text-align: center; }
.cpx-yt em { color: #ffd98a; font: 700 14px/1 "Barlow Condensed", sans-serif; letter-spacing: .2em; text-transform: uppercase; font-style: normal; }
.cpx-yt strong { color: #fff; font: 900 clamp(46px, 9vw, 86px)/0.95 "Barlow Condensed", Impact, sans-serif; letter-spacing: .04em; text-shadow: 0 0 30px rgba(255,184,74,.9), 0 4px 0 #6e4610; }
.cpx-yt small { color: #f4e6c8; font: 600 16px/1.2 "Barlow Condensed", sans-serif; }
@keyframes cpxYt { from { opacity: 0; transform: scale(1.06); } }
.cpx-drop[data-role="busy"], .cpx-drop[data-role="queued"], .cpx-drop[data-role="elsewhere"] { background: radial-gradient(circle at 35% 30%, #e9f3ff, #8fb4e6 45%, #3d5f93 100%); color: #0d1a2e; }
.cpx-drop[data-role="queued"] { opacity: .8; }
.cpx-drop[data-role="pending"] { animation: cpxPulse 1s ease-in-out infinite; }
@keyframes cpxPulse { 50% { box-shadow: 0 0 0 4px rgba(0,0,0,.45), 0 0 0 10px rgba(255,184,74,.6), 0 0 40px rgba(255,184,74,.8); } }
.cpx:not([data-role="mine"]):not([data-role="pending"]) .cpx-3d { cursor: default; }
@media (prefers-reduced-motion: reduce) { .cpx-drop[data-role="pending"], .cpx-yt { animation: none; } }
@media (max-width: 860px) {
    .cpx { grid-template-columns: 1fr; }
    .cpx-stage { aspect-ratio: 3 / 3.6; min-height: 0; }
    .cpx-drop { width: 80px; height: 80px; right: 10px; bottom: 10px; }
    .cpx-feed { max-height: 220px; }
}
