/* PENNEY'S GAME : plateau (#pnBoard, construit par js/penney.js : séquence de la maison, la tienne (pièces à toucher),
   bande des 12 derniers lancers), HUD, mise / FLIP. Plateau : scène x 180..540, y 318..590. */
#game.pn .bjOnly, #game.pn .msOnly, #game.pn .crOnly, #game.pn .rrOnly, #game.pn .bsOnly, #game.pn .plOnly, #game.pn .swOnly,
#game.pn .hlOnly, #game.pn .scOnly { display: none !important; }
#game:not(.pn) .pnOnly { display: none !important; }

/* ---------- HUD gauche ---------- */
#pnHud { position: absolute; left: 28px; top: 322px; width: 140px; display: flex; flex-direction: column; align-items: center; z-index: 2; }
#pnHud .lab { margin: 6px 0 4px; font-size: 24px; }
#pnHud .lab:first-child { margin-top: 0; }
#pnHud .seg { padding: 4px 5px; }
#pnHud .seg svg { width: 16px; height: 29px; }
#pnRounds { grid-template-columns: repeat(4, 20px); gap: 5px; }
#pnRounds i { width: 20px; height: 20px; font-size: 13px; line-height: 20px; }

/* ---------- panneau % à droite ---------- */
#game.pn #hudR { left: 540px; top: 326px; width: 172px; z-index: 2; }
#game.pn .pct { font-size: 44px; }
#game.pn .pctlab { font-size: 24px; line-height: 1.05; }
#game.pn .stat2 { margin-top: 8px; font-size: 24px; line-height: 1.12; }
#game.pn .stat2 b { font-size: 24px; }
#game.pn .mathsays { margin-top: 6px; font-size: 22px; }

/* ---------- plateau ---------- */
#pnBoard { position: absolute; left: 180px; top: 318px; width: 360px; height: 272px; }
.pnlab { position: absolute; left: 0; right: 0; text-align: center; font: 800 22px/1 'Barlow Semi Condensed'; letter-spacing: 3px; }
.pnlab.house { top: 0; color: #ff8b9a; }
.pnlab.you { top: 96px; color: var(--cyan); }
.pnlab small { font: 700 16px 'Barlow Semi Condensed'; letter-spacing: .5px; color: #8a9a91; margin-left: 6px; }
#game.pn #pnBoard:not(.pickable) .pnlab small { visibility: hidden; }
.pnrow { position: absolute; left: 0; right: 0; display: flex; justify-content: center; }
.pnrow.house { top: 26px; gap: 14px; }
.pnrow.you { top: 122px; gap: 16px; }
.pnstrip { position: absolute; left: 0; right: 0; top: 230px; height: 40px; display: flex; justify-content: center; gap: 4px; }
.pncoin { position: relative; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-style: normal; transition: box-shadow .2s, transform .2s; }
.pncoin b { font: 900 1em/1 Montserrat; }
.pncoin.h { background: radial-gradient(circle at 35% 30%, #ffe98a, #ffcf3d 45%, #b88a12); border: 3px solid #9a6f0c; color: #6b4a06; }
.pncoin.t { background: radial-gradient(circle at 35% 30%, #ffffff, #cfd8d0 45%, #7d8a83); border: 3px solid #6f7a74; color: #2a302d; }
.pnrow.house .pncoin { width: 60px; height: 60px; font-size: 28px; }
.pnrow.you .pncoin { width: 88px; height: 88px; font-size: 40px; }
.pnstrip .pncoin { width: 26px; height: 26px; font-size: 14px; border-width: 2px; margin-top: 7px; animation: pnIn .25s cubic-bezier(.2,1.6,.4,1); }
@keyframes pnIn { 0% { transform: scale(.2) rotateX(90deg); } 100% { transform: none; } }
#pnBoard.pickable .pnrow.you .pncoin { cursor: pointer; box-shadow: 0 0 0 3px rgba(143,246,255,.55), 0 0 18px rgba(143,246,255,.3); }
#pnBoard.pickable .pnrow.you .pncoin:active { transform: scale(.94); }
.pnrow.you.same .pncoin { box-shadow: 0 0 0 3px var(--red), 0 0 18px rgba(255,61,94,.4) !important; }
/* progression d'une séquence pendant les lancers */
.pnrow.house .pncoin.lit { box-shadow: 0 0 0 4px var(--red), 0 0 22px rgba(255,61,94,.6); }
.pnrow.you .pncoin.lit { box-shadow: 0 0 0 4px #5cf08a, 0 0 24px rgba(92,240,138,.6); }
.pnstrip .pncoin.end.you { box-shadow: 0 0 0 3px #5cf08a, 0 0 14px rgba(92,240,138,.8); }
.pnstrip .pncoin.end.house { box-shadow: 0 0 0 3px var(--red), 0 0 14px rgba(255,61,94,.8); }

/* ---------- actions : BET · FLIP ---------- */
#pnActions { position: absolute; left: 36px; right: 36px; top: 1066px; height: 150px; z-index: 6; }
#pnBet.locked .betbox { opacity: .45; pointer-events: none; }
#pnBet #bPnGo { flex: 1.1; font-size: 40px; }
#pnBet #bPnGo small { font-size: 15px; text-transform: none; }
#pnEnd .btn { font-size: 30px; }
