/* Coin Pusher v3 : barre machines, commandes, adaptation mobile (chargé après mobile2.css) */
.pusher-stage { padding: 12px !important; display: flex !important; flex-direction: column; gap: 10px; align-items: stretch !important; }
.pusher-cv { touch-action: none; cursor: crosshair; width: 100%; max-width: 860px; height: auto; margin: 0 auto; display: block; border: 1px solid var(--line); border-radius: 14px; background: #0a0807; box-shadow: 0 14px 40px rgba(0, 0, 0, .55); }

.pu-top { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; max-width: 860px; width: 100%; margin: 0 auto; }
.pu-tabs { display: flex; gap: 8px; flex: 1 1 380px; min-width: 0; }
.pu-tab { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 6px; background: linear-gradient(180deg, #1a140d, #0d0907); border: 1px solid var(--line); border-bottom: 3px solid var(--tc, var(--brass)); color: var(--tc, var(--brass)); cursor: pointer; font-family: var(--lab, 'Barlow Condensed', sans-serif); letter-spacing: .06em; transition: transform .12s, box-shadow .2s; }
.pu-tab b { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pu-tab small { font-size: 11px; opacity: .75; white-space: nowrap; }
.pu-tab.on { background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 22%, #1a140d), #0d0907); box-shadow: 0 0 18px color-mix(in srgb, var(--tg, var(--tc)) 45%, transparent), inset 0 0 0 1px var(--tc); }
.pu-tab:active { transform: scale(.97); }
.pu-pts { position: relative; flex: 0 1 190px; min-width: 150px; padding: 6px 14px 6px; background: #050403; border: 1px solid var(--brass); box-shadow: inset 0 0 14px rgba(255, 200, 90, .12); display: flex; flex-direction: column; justify-content: center; }
.pu-pts small { font-family: var(--lab, 'Barlow Condensed', sans-serif); letter-spacing: .3em; font-size: 10px; color: var(--brass); }
.pu-pts-v { font-family: 'IBM Plex Mono', monospace; font-size: 30px; line-height: 1.1; color: #ffd36b; text-shadow: 0 0 14px rgba(255, 190, 70, .65); }
.pu-x2 { position: absolute; right: 8px; top: 6px; background: #d0243d; color: #fff; font: 800 12px var(--lab, sans-serif); padding: 2px 8px; letter-spacing: .06em; animation: pu-pulse 1s infinite alternate; }
@keyframes pu-pulse { from { box-shadow: 0 0 4px #ff5d73; } to { box-shadow: 0 0 16px #ff5d73; } }

.pu-ctl { display: grid; grid-template-columns: 54px 1fr 54px minmax(210px, 270px); gap: 10px; align-items: center; max-width: 860px; width: 100%; margin: 0 auto; }
.pu-nudge { height: 54px; border: 1px solid var(--brass); background: linear-gradient(180deg, #221a10, #0d0907); color: var(--brass); font-size: 20px; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.pu-nudge:active { background: #3a2c15; }
.pu-aim { -webkit-appearance: none; appearance: none; width: 100%; height: 54px; background: transparent; margin: 0; touch-action: pan-y; }
.pu-aim::-webkit-slider-runnable-track { height: 10px; background: linear-gradient(90deg, #3a2c15, #c9a24a, #3a2c15); border-radius: 6px; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .6); }
.pu-aim::-moz-range-track { height: 10px; background: linear-gradient(90deg, #3a2c15, #c9a24a, #3a2c15); border-radius: 6px; }
.pu-aim::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; margin-top: -12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c2, #d9b04c 55%, #7a5a14); border: 2px solid #3a2a08; box-shadow: 0 3px 10px rgba(0, 0, 0, .6); }
.pu-aim::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c2, #d9b04c 55%, #7a5a14); border: 2px solid #3a2a08; }
.pu-drop { height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; border: 2px solid #fff3c2; background: radial-gradient(120% 140% at 50% 0%, #ffe27a, #d9a41c 55%, #8d5a04); color: #2a1a02; box-shadow: 0 0 22px rgba(255, 200, 70, .45), inset 0 -4px 0 rgba(0, 0, 0, .25); }
.pu-drop b { font: 900 22px 'Playfair Display', Georgia, serif; letter-spacing: .08em; }
.pu-drop small { font: 700 11px var(--lab, sans-serif); letter-spacing: .06em; opacity: .8; }
.pu-drop:active { transform: translateY(2px); box-shadow: 0 0 10px rgba(255, 200, 70, .4), inset 0 -1px 0 rgba(0, 0, 0, .25); }
.pu-drop.empty { background: linear-gradient(180deg, #4a1a22, #2a0c12); border-color: #d0243d; color: #ffb4bf; box-shadow: none; }
.pu-drop.empty b { font-size: 16px; }

.pu-panel .pu-cash-h { display: flex; flex-direction: column; gap: 2px; padding: 4px 2px 10px; border-bottom: 1px solid var(--line); }
.pu-panel .pu-cash-h small { font-family: var(--lab, sans-serif); letter-spacing: .3em; color: var(--brass); font-size: 11px; }
.pu-panel .pu-cash-h b { font: 800 20px 'Playfair Display', serif; color: #efe4cc; }
.pu-info { display: block; color: #8a7a58; line-height: 1.4; }

/* tablettes et téléphones : le jeu d'abord, la caisse après */
@media (max-width: 1100px) {
  .game-layout:has(.pusher-cv) { display: flex !important; flex-direction: column; }
  .game-layout:has(.pusher-cv) > .stage { order: -1; }
}
@media (max-width: 760px) {
  .pusher-stage { padding: 6px !important; gap: 8px; }
  .pu-top { gap: 6px; }
  .pu-tabs { flex: 1 1 100%; order: 2; }
  .pu-pts { flex: 1 1 100%; order: 1; flex-direction: row; align-items: baseline; justify-content: space-between; padding: 6px 12px; }
  .pu-pts-v { font-size: 26px; }
  .pu-x2 { position: static; }
  .pu-tab { padding: 8px 4px; } .pu-tab b { font-size: 13px; } .pu-tab small { display: none; }
  .pu-ctl { grid-template-columns: 1fr 150px; gap: 8px; }
  .pu-drop { height: 56px; } .pu-drop b { font-size: 19px; } .pu-drop small { display: none; }
  .pu-nudge { display: none; }
  /* les commandes restent à portée de pouce au-dessus de la barre d'onglets */
  .pu-ctl { position: sticky; bottom: 104px; z-index: 30; padding: 6px 8px; margin-top: -4px; background: rgba(10, 8, 7, .94); border: 1px solid var(--line); box-shadow: 0 -8px 20px rgba(0, 0, 0, .55); box-sizing: border-box; }
}
.pu-drop small { color: #3a2606; opacity: 1; }
