/* assets/css/pince.css — La machine à pinces de l'accueil (assets/js/pince.js)
   Borne d'arcade réaliste encrée façon manga : coque laquée bleue, enseigne à ampoules,
   vitre (canvas), pupitre en métal brossé, porte de lots, socle ; panneau de stats et collection.
   Exception assumée à la charte (tokens.css) : lueurs et dégradés, c'est une borne. */
.pince { border-top: 1px solid var(--line); background:
  radial-gradient(900px 400px at 20% 0%, rgba(163,113,247,.10), transparent 70%),
  radial-gradient(700px 400px at 90% 100%, rgba(227,179,65,.08), transparent 70%), var(--bg); }
.pc-grid { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: var(--space-7); align-items: start; }
.pc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ borne
   Borne d'arcade réaliste, encrée façon manga : coque laquée bleue (reflet vertical),
   montants chromés, enseigne lumineuse à ampoules, vitre à reflets, pupitre en métal
   brossé, porte de lots en plexiglas fumé, socle à bandes de sécurité. */
.pc-machine { --ink: #0A0E1A; --lac: #1E4FE0; --lac-2: #0F2E96; --lac-3: #4F86FF; --chrome: linear-gradient(90deg, #8E99A8, #F4F7FB 22%, #B7C1CE 45%, #5E6978 70%, #DCE2EA 88%, #8E99A8);
  position: relative; padding: 0 26px 0; border: 3px solid var(--ink); border-radius: 30px 30px 14px 14px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0) 8%, rgba(255,255,255,.28) 11%, rgba(255,255,255,0) 15%, rgba(255,255,255,0) 84%, rgba(255,255,255,.12) 88%, rgba(255,255,255,0) 92%),
    linear-gradient(90deg, var(--lac-2) 0%, var(--lac) 12%, var(--lac-3) 40%, var(--lac) 70%, var(--lac-2) 100%);
  box-shadow: 10px 10px 0 var(--ink), 0 40px 70px rgba(0,0,0,.55), 0 0 80px rgba(47,107,255,.35); }
/* Montants chromés avec bande LED (chenillard bleu / jaune) */
.pc-machine::before, .pc-machine::after { content: ""; position: absolute; top: 172px; bottom: 120px; width: 12px; border: 2px solid var(--ink); border-radius: 6px;
  background: repeating-linear-gradient(180deg, #FFF6BF 0 8px, #FFE14D 8px 11px, #7FB0FF 11px 19px, #2F6BFF 19px 22px);
  box-shadow: 0 0 12px rgba(255,225,77,.8), 0 0 26px rgba(47,107,255,.7); animation: pc-led 1.4s linear infinite; }
.pc-machine::before { left: 6px; } .pc-machine::after { right: 6px; }
@keyframes pc-led { to { background-position: 0 22px; } }

/* Fronton : caisson d'enseigne noir, lettres néon, ampoules qui clignotent en chenillard */
.pc-hood { position: relative; height: 172px; margin: 0 -26px; border-bottom: 3px solid var(--ink); border-radius: 27px 27px 0 0; overflow: hidden;
  background: radial-gradient(120% 140% at 50% 0%, #1A2C66 0%, #0B1434 55%, #050A1C 100%); }
.pc-hood::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(170deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 30%), radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.3px) 0 0/6px 6px; }
.pc-bulbs { position: absolute; inset: 10px 12px; border: 3px solid #C9D1DC; border-radius: 20px; box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 2px var(--ink); }
.pc-bulbs i { position: absolute; width: 11px; height: 11px; margin: -5.5px; border-radius: 50%; border: 1.5px solid var(--ink); background: radial-gradient(circle at 35% 30%, #fff 0 18%, #FFE14D 45%, #E0A800 100%); box-shadow: 0 0 8px #FFE14D, 0 0 16px rgba(255,200,40,.7); animation: pc-bulb 1.2s steps(1) infinite; }
.pc-bulbs i:nth-child(3n+1) { animation-delay: -.4s; } .pc-bulbs i:nth-child(3n+2) { animation-delay: -.8s; }
@keyframes pc-bulb { 50% { background: radial-gradient(circle at 35% 30%, #FFF4C2 0 15%, #8A7420 60%, #4A3D10 100%); box-shadow: none; } }
/* 26 ampoules : 9 en haut, 4 de chaque côté, 9 en bas */
.pc-bulbs i:nth-child(-n+9) { top: 0; } .pc-bulbs i:nth-child(n+10):nth-child(-n+13) { right: 0; } .pc-bulbs i:nth-child(n+14):nth-child(-n+22) { bottom: 0; } .pc-bulbs i:nth-child(n+23) { left: 0; }
.pc-bulbs i:nth-child(1), .pc-bulbs i:nth-child(22) { left: 6%; } .pc-bulbs i:nth-child(2), .pc-bulbs i:nth-child(21) { left: 17.5%; } .pc-bulbs i:nth-child(3), .pc-bulbs i:nth-child(20) { left: 29%; } .pc-bulbs i:nth-child(4), .pc-bulbs i:nth-child(19) { left: 40.5%; } .pc-bulbs i:nth-child(5), .pc-bulbs i:nth-child(18) { left: 52%; } .pc-bulbs i:nth-child(6), .pc-bulbs i:nth-child(17) { left: 63.5%; } .pc-bulbs i:nth-child(7), .pc-bulbs i:nth-child(16) { left: 75%; } .pc-bulbs i:nth-child(8), .pc-bulbs i:nth-child(15) { left: 86.5%; } .pc-bulbs i:nth-child(9), .pc-bulbs i:nth-child(14) { left: 96%; }
.pc-bulbs i:nth-child(10), .pc-bulbs i:nth-child(26) { top: 22%; } .pc-bulbs i:nth-child(11), .pc-bulbs i:nth-child(25) { top: 42%; } .pc-bulbs i:nth-child(12), .pc-bulbs i:nth-child(24) { top: 62%; } .pc-bulbs i:nth-child(13), .pc-bulbs i:nth-child(23) { top: 82%; }
.pc-sign { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%); display: grid; justify-items: center; gap: 2px; width: 74%; text-align: center; }
.pc-sign-top { font: 700 11px/1 var(--mono); letter-spacing: .32em; color: #9FC1FF; text-shadow: 0 0 6px rgba(120,170,255,.9); }
.pc-sign-big { display: flex; align-items: baseline; gap: 8px; font: 400 clamp(2.2rem, 7vw, 3.4rem)/.95 var(--comic, Bangers), Impact, sans-serif; letter-spacing: .05em; color: #fff;
  -webkit-text-stroke: 1.5px var(--ink); text-shadow: 3px 3px 0 var(--ink), 0 0 14px rgba(120,170,255,.95), 0 0 30px rgba(47,107,255,.9); animation: pc-neon 5s infinite; }
.pc-sign-big .y { color: #FFE14D; text-shadow: 3px 3px 0 var(--ink), 0 0 14px rgba(255,225,77,.95), 0 0 30px rgba(255,170,0,.8); }
.pc-sign-big em { font-style: normal; color: #FF6A5B; text-shadow: 0 0 10px #FF6A5B; }
@keyframes pc-neon { 0%, 91%, 95%, 100% { opacity: 1; } 93% { opacity: .55; } }
.pc-sign-sub { margin-top: 4px; padding: 3px 10px; border: 2px solid var(--ink); background: #FFE14D; color: var(--ink); font: 700 10.5px/1.2 var(--mono); letter-spacing: .14em; box-shadow: 2px 2px 0 var(--ink); transform: rotate(-2deg); }
.pc-spk { position: absolute; top: 50%; width: 30px; height: 62px; margin-top: -31px; border: 2px solid var(--ink); border-radius: 8px; background: radial-gradient(#0A0E1A 1.3px, transparent 1.6px) 0 0/5px 5px, linear-gradient(180deg, #6F7A89, #2C3440); }
.pc-spk.l { left: 26px; } .pc-spk.r { right: 26px; }

/* Vitre : cadre chromé, glace avec reflets et léger voile */
.pc-glass { position: relative; margin-top: 14px; border: 3px solid var(--ink); border-radius: 6px; overflow: hidden; background: #050A1C;
  box-shadow: 0 0 0 6px #C9D1DC, 0 0 0 9px var(--ink), inset 0 0 30px rgba(0,0,0,.6); }
.pc-canvas { display: block; width: 100%; height: auto; aspect-ratio: 560 / 440; outline: none; }
.pc-canvas:focus-visible { box-shadow: inset 0 0 0 4px #FFE14D; }
.pc-reflect { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(112deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.06) 9%, rgba(255,255,255,0) 14%, rgba(255,255,255,0) 58%, rgba(255,255,255,.13) 61%, rgba(255,255,255,.03) 66%, rgba(255,255,255,0) 70%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 18%), radial-gradient(130% 90% at 50% 50%, rgba(0,0,0,0) 60%, rgba(0,0,0,.35) 100%); }
.pc-banner { position: absolute; z-index: 2; left: 50%; top: 28%; transform: translate(-50%, -8px); max-width: calc(100% - 24px); padding: 8px 14px; border: 3px solid #0A0E1A; border-radius: 10px; background: #fff; color: #0A0E1A; font: 700 13.5px var(--sans); text-align: center; box-shadow: 4px 4px 0 #0A0E1A; opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
.pc-banner.show { opacity: 1; transform: translate(-50%, 0); }

/* Pupitre : plateau en métal brossé, incliné, bord chromé */
.pc-deck { position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "lcd lcd lcd" "slot joy drop"; align-items: center; justify-items: center; gap: 12px 16px;
  margin: 22px -12px 0; padding: 16px 20px 18px; border: 3px solid var(--ink); border-radius: 14px 14px 8px 8px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, rgba(0,0,0,.05) 1px 3px), linear-gradient(180deg, #E7ECF3 0%, #B9C3D0 55%, #8E99A8 100%);
  box-shadow: inset 0 3px 0 #fff, inset 0 -4px 0 rgba(0,0,0,.18), 0 8px 0 var(--ink), 0 14px 22px rgba(0,0,0,.35); }
.pc-deck::before { content: ""; position: absolute; left: 10px; right: 10px; top: 6px; height: 8px; border-radius: 4px; background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,0)); pointer-events: none; }
/* Afficheur fluorescent (VFD) */
.pc-lcd { grid-area: lcd; position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; padding: 7px 14px; border: 3px solid var(--ink); border-radius: 6px; background: radial-gradient(rgba(70,255,220,.08) 1px, transparent 1.2px) 0 0/3px 3px, linear-gradient(180deg, #06231F, #031512); box-shadow: inset 0 2px 10px rgba(0,0,0,.8), 0 2px 0 #fff; }
.pc-led { padding: 0; border: 0; background: none; font: 700 12px/1.3 var(--mono); letter-spacing: .08em; color: #7DFFE4; text-shadow: 0 0 6px rgba(80,255,215,.9); white-space: nowrap; }
/* Monnayeur chromé : fente lumineuse */
.pc-slot { grid-area: slot; position: relative; display: flex; align-items: center; gap: 9px; min-height: 58px; padding: 6px 12px 6px 8px; border: 3px solid var(--ink); border-radius: 10px; background: var(--chrome); color: var(--ink); text-align: left; cursor: pointer; box-shadow: 0 4px 0 var(--ink); }
.pc-slot:disabled { cursor: not-allowed; filter: grayscale(.6); opacity: .8; }
.pc-slot:not(:disabled):hover { filter: brightness(1.08); }
.pc-slot:not(:disabled):active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.pc-slot-hole { flex: 0 0 auto; width: 10px; height: 34px; border: 2px solid var(--ink); border-radius: 5px; background: linear-gradient(90deg, #3A2A00, #FFE14D 50%, #3A2A00); }
.pc-slot:not(:disabled) .pc-slot-hole { animation: pc-pulse 1.4s ease-in-out infinite; }
@keyframes pc-pulse { 50% { box-shadow: 0 0 12px #FFE14D, 0 0 22px rgba(255,200,40,.8); } }
.pc-slot-label { display: grid; line-height: 1.2; }
.pc-slot-label b { font: 400 15px/1 var(--comic, Bangers), sans-serif; letter-spacing: .05em; color: var(--ink); }
.pc-slot-label small { font: 700 11.5px var(--mono); color: #1B2333; }
.pc-coin-fx { position: absolute; left: 0; top: -44px; animation: pc-coin .8s ease-in forwards; }
@keyframes pc-coin { 0% { transform: translateY(-20px) rotateY(0); } 70% { transform: translateY(48px) rotateY(540deg) scaleX(.25); opacity: 1; } 100% { transform: translateY(60px) scaleX(.1); opacity: 0; } }
/* Joystick d'arcade : boule rouge laquée, tige chromée, embase noire */
.pc-joy { grid-area: joy; display: flex; align-items: center; gap: 8px; }
.pc-arrow { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--ink); background: radial-gradient(circle at 40% 30%, #fff 0 20%, #DDE3EB 55%, #9AA5B4 100%); color: var(--ink); font-size: 13px; box-shadow: 0 4px 0 var(--ink); touch-action: none; user-select: none; cursor: pointer; }
.pc-arrow:hover:not(:disabled) { background: radial-gradient(circle at 40% 30%, #fff 0 20%, #FFE14D 60%, #D1A800 100%); }
.pc-arrow:active, .pc-arrow.on { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.pc-arrow:disabled { opacity: .45; cursor: not-allowed; }
.pc-stick { position: relative; width: 52px; height: 70px; }
.pc-stick::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 40px; height: 16px; margin-left: -20px; border: 2px solid var(--ink); border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, #3A414C 0 30%, #0B0D10 70%); }
.pc-stick::after { content: ""; position: absolute; left: 50%; bottom: 7px; width: 8px; height: 34px; margin-left: -4px; border: 1.5px solid var(--ink); background: var(--chrome); border-radius: 4px; transform-origin: bottom center; transition: transform .12s; }
.pc-stick-ball { position: absolute; left: 50%; top: 0; width: 32px; height: 32px; margin-left: -16px; border: 2.5px solid var(--ink); border-radius: 50%; z-index: 1;
  background: radial-gradient(circle at 34% 28%, #fff 0 10%, #FF9B8E 22%, #E2402F 50%, #8F1C13 100%); box-shadow: 0 3px 6px rgba(0,0,0,.35); transform-origin: 50% 56px; transition: transform .12s; }
.pc-stick.l::after, .pc-stick.l .pc-stick-ball { transform: rotate(-22deg); }
.pc-stick.r::after, .pc-stick.r .pc-stick-ball { transform: rotate(22deg); }
/* Gros bouton d'arcade : bague chromée, dôme bleu lumineux */
.pc-drop-wrap { grid-area: drop; display: grid; justify-items: center; gap: 4px; }
.pc-drop { position: relative; width: 70px; height: 70px; border-radius: 50%; border: 3px solid var(--ink); padding: 0; background: conic-gradient(from 200deg, #F4F7FB, #8E99A8, #DCE2EA, #5E6978, #F4F7FB); box-shadow: 0 5px 0 var(--ink); cursor: pointer; }
.pc-drop-cap { position: absolute; inset: 8px; border: 2px solid var(--ink); border-radius: 50%; background: radial-gradient(circle at 38% 30%, #E4F3FF 0%, #6FB0FF 26%, #2F6BFF 60%, #12379E 100%); box-shadow: 0 5px 0 #0A2366, inset 0 -5px 8px rgba(0,0,0,.3); transition: transform .08s, box-shadow .08s; }
.pc-drop:not(:disabled) .pc-drop-cap { animation: pc-glow 1.1s ease-in-out infinite; }
@keyframes pc-glow { 50% { box-shadow: 0 5px 0 #0A2366, 0 0 24px rgba(80,150,255,.95), inset 0 -5px 8px rgba(0,0,0,.3); } }
.pc-drop:active .pc-drop-cap, .pc-drop.pressed .pc-drop-cap { transform: translateY(4px); box-shadow: 0 1px 0 #0A2366, inset 0 -2px 6px rgba(0,0,0,.35); }
.pc-drop:disabled { cursor: not-allowed; }
.pc-drop:disabled .pc-drop-cap { filter: grayscale(.75) brightness(.8); }
.pc-drop:focus-visible, .pc-arrow:focus-visible, .pc-slot:focus-visible, .pc-chute:focus-visible { outline: 3px solid #FFE14D; outline-offset: 3px; }
.pc-drop-label { font: 700 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }

/* Façade : porte de lots en plexiglas fumé, plaque émaillée, monnayeur, socle */
.pc-front { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin: 22px -26px 0; padding: 18px 30px 40px; border-top: 3px solid var(--ink); border-radius: 0 0 11px 11px;
  background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(0,0,0,0) 20%, rgba(0,0,0,0) 80%, rgba(0,0,0,.25)), linear-gradient(180deg, #163FBF, #0F2E96); }
.pc-front::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22px; border-top: 3px solid var(--ink); border-radius: 0 0 11px 11px; background: repeating-linear-gradient(-45deg, #FFE14D 0 12px, #0A0E1A 12px 24px); }
.pc-chute { position: relative; width: 150px; height: 100px; border: 3px solid var(--ink); padding: 0; border-radius: 14px; background: linear-gradient(180deg, #11151D 0%, #020306 100%); box-shadow: 0 0 0 6px #C9D1DC, 0 0 0 9px var(--ink), inset 0 12px 22px rgba(0,0,0,.95); cursor: pointer; overflow: hidden; color: #E6EDF3; }
.pc-chute-flap { position: absolute; left: 6px; right: 6px; top: 6px; height: 46px; border-radius: 9px 9px 3px 3px; background: linear-gradient(180deg, rgba(160,190,255,.32), rgba(160,190,255,.06)); border: 1.5px solid rgba(255,255,255,.55); transform-origin: top; transition: transform .3s; }
.pc-chute:hover .pc-chute-flap { transform: perspective(200px) rotateX(-30deg); }
.pc-chute-peek { position: absolute; left: 50%; top: 30px; margin-left: -20px; width: 40px; height: 40px; }
.pc-chute-label { position: absolute; left: 0; right: 0; bottom: 6px; font: 700 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #FFE14D; }
.pc-chute.full { box-shadow: 0 0 0 6px #FFE14D, 0 0 0 9px var(--ink), inset 0 10px 20px rgba(0,0,0,.6), 0 0 28px rgba(255,225,77,.8); animation: pc-chute 1.2s ease-in-out infinite; }
.pc-chute.full .pc-chute-peek { animation: pc-bob 1.2s ease-in-out infinite; }
@keyframes pc-chute { 50% { box-shadow: 0 0 0 6px #FFF3A6, 0 0 0 9px var(--ink), inset 0 10px 20px rgba(0,0,0,.6), 0 0 44px rgba(255,225,77,.95); } }
@keyframes pc-bob { 50% { transform: translateY(-4px) rotate(-6deg); } }
.pc-plate { justify-self: center; display: grid; place-content: center; justify-items: center; width: 96px; height: 96px; border: 3px solid var(--ink); border-radius: 50%; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 35% 25%, rgba(255,255,255,.35), rgba(255,255,255,0) 45%), #0A0E1A; box-shadow: 0 0 0 5px #C9D1DC, 0 0 0 8px var(--ink), 4px 6px 0 8px rgba(0,0,0,.25); transform: rotate(-8deg); }
.pc-plate b { font: 400 21px/0.95 var(--comic, Bangers), Impact, sans-serif; letter-spacing: .05em; }
.pc-plate b:last-child { color: #FFE14D; }
.pc-plate span { padding: 1px 6px; background: #2F6BFF; color: #fff; font: 700 9px var(--mono); letter-spacing: .1em; }
.pc-grill { position: relative; width: 54px; height: 74px; border: 3px solid var(--ink); border-radius: 8px; background: var(--chrome); }
.pc-grill i { position: absolute; left: 50%; top: 12px; width: 8px; height: 26px; margin-left: -4px; border: 2px solid var(--ink); border-radius: 4px; background: linear-gradient(90deg, #3A2A00, #FFE14D 50%, #3A2A00); }
.pc-grill::after { content: "1"; position: absolute; left: 50%; bottom: 8px; width: 22px; height: 22px; margin-left: -11px; border: 2px solid var(--ink); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFF6BF, #E0A800); color: var(--ink); font: 700 11px/18px var(--mono); text-align: center; }

/* ---------------------------------------------------------- panneau latéral */
.pc-side { display: grid; gap: var(--space-4); }
.pc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.pc-stat { display: grid; align-content: start; gap: 4px; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.pc-stat.wide { grid-column: 1 / -1; }
.pc-stat small .wl-info { margin-left: 6px; }
.wl-info { box-sizing: border-box; min-width: 24px; min-height: 24px; flex: 0 0 24px; }
.pc-stat small { font: 500 var(--fs-xs) var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pc-stat > b { display: flex; align-items: center; gap: 8px; font: 600 1.35rem var(--mono); }
.pc-best { font-size: var(--fs-xs); color: var(--muted); }
.pc-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 4px; }
.pc-week i { display: grid; place-items: center; height: 22px; border-radius: 2px; border: 1px solid var(--line-strong); font: 600 10px var(--mono); font-style: normal; color: var(--muted); text-transform: uppercase; }
.pc-week i.on { background: rgba(227,179,65,.18); border-color: #E3B341; color: #ffe7a3; }
.pc-week i.today { outline: 1px solid var(--accent); outline-offset: 1px; }
.pc-xp { height: 8px; border-radius: 2px; background: var(--bg-deep); border: 1px solid var(--line); overflow: hidden; }
.pc-xp i { display: block; height: 100%; background: linear-gradient(90deg, #4DA3FF, #A371F7); transition: width .6s var(--ease); }
.wl-coin { flex: 0 0 auto; display: inline-block; vertical-align: middle; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.pc-slot-label small { display: inline-flex; align-items: center; gap: 4px; }
.pc-today { display: grid; gap: 6px; padding: var(--space-4); border: 1px solid var(--warn-line); border-left: 3px solid var(--warn); border-radius: var(--radius); background: var(--warn-soft); }
.pc-today.ok { border-color: var(--ok-line); border-left-color: var(--ok); background: var(--ok-soft); }
.pc-today span { color: var(--text-2); font-size: var(--fs-sm); }
.pc-today .btn { justify-self: start; margin-top: 4px; }
.pc-mode { font-size: var(--fs-sm); color: var(--muted); }
.pc-mode a { color: var(--accent); }
.pc-mode.ok { color: var(--ok); }
.pc-how { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 0 var(--space-4); }
.pc-how summary { cursor: pointer; padding: var(--space-3) 0; font-weight: 600; }
.pc-how ol { margin: 0 0 var(--space-4); padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); font-size: var(--fs-sm); }
.pc-col-head { display: grid; gap: 8px; }
.pc-col-head h3 { font-size: 1.05rem; }
.pc-col-bar { height: 6px; border-radius: 2px; background: var(--bg-deep); border: 1px solid var(--line); overflow: hidden; }
.pc-col-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #E3B341, #ffe7a3); transition: width .6s var(--ease); }
.pc-col { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--space-2); }
.pc-card { display: grid; justify-items: center; gap: 4px; padding: 10px 6px 8px; border: 1px solid var(--line); border-top: 3px solid var(--rc, #8B98A5); border-radius: var(--radius); background: var(--panel); text-align: center; }
.pc-card b { font-size: 12px; line-height: 1.25; }
.pc-card small { font: 500 10.5px var(--mono); color: var(--rc, var(--muted)); text-transform: uppercase; letter-spacing: .05em; }
.pc-card.common { --rc: #8B98A5; } .pc-card.rare { --rc: #4DA3FF; } .pc-card.epic { --rc: #A371F7; } .pc-card.legendary { --rc: #E3B341; }
.pc-card.legendary:not(.missing) { background: linear-gradient(180deg, rgba(227,179,65,.14), var(--panel) 70%); }
.pc-card.missing svg { filter: brightness(0) invert(.18); opacity: .7; }
.pc-card.missing b { color: var(--muted); }
.pc-card.flash { animation: pc-flash 1.2s ease-out; }
@keyframes pc-flash { 0% { box-shadow: 0 0 0 0 var(--rc); transform: scale(1.12); } 100% { box-shadow: 0 0 0 14px transparent; transform: none; } }

/* ----------------------------------------------------------------- révélation */
.pc-reveal[hidden] { display: none; }
.pc-reveal { position: fixed; inset: 0; z-index: 1004; display: grid; place-items: center; padding: 16px; background: rgba(5,8,11,.82); }
.pc-reveal-box { position: relative; width: min(380px, 100%); padding: 24px 22px 22px; display: grid; justify-items: center; gap: 10px; text-align: center; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line-strong); border-top: 4px solid var(--rc, #8B98A5); border-radius: var(--radius); box-shadow: 0 30px 70px rgba(0,0,0,.6); }
.pc-reveal.common { --rc: #8B98A5; } .pc-reveal.rare { --rc: #4DA3FF; } .pc-reveal.epic { --rc: #A371F7; } .pc-reveal.legendary { --rc: #E3B341; }
.pc-rays { position: absolute; left: 50%; top: 40%; width: 520px; height: 520px; margin: -260px 0 0 -260px; pointer-events: none; opacity: .35;
  background: repeating-conic-gradient(var(--rc) 0 8deg, transparent 8deg 22deg); -webkit-mask: radial-gradient(circle, #000 0, transparent 62%); mask: radial-gradient(circle, #000 0, transparent 62%); animation: pc-spin 14s linear infinite; }
@keyframes pc-spin { to { transform: rotate(360deg); } }
.pc-rarity { position: relative; font: 700 var(--fs-xs) var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--rc); }
.pc-reveal-art { position: relative; animation: pc-pop .7s cubic-bezier(.2,1.4,.4,1); filter: drop-shadow(0 12px 24px rgba(0,0,0,.5)); }
@keyframes pc-pop { 0% { transform: scale(.2) rotate(-25deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.pc-reveal-box h3 { position: relative; font-size: 1.2rem; }
.pc-reveal-msg { position: relative; color: var(--text-2); font-size: var(--fs-sm); }
.pc-reveal-box .btn { position: relative; margin-top: 6px; }
.pc-fly { position: fixed; z-index: 1005; pointer-events: none; }

/* Reflet qui balaie la pièce de temps en temps (pastille et carte « Pièces »). */
.wallet-chip .wl-coin, .pc-stat .wl-coin { animation: pc-coin-shine 6s ease-in-out infinite; }
@keyframes pc-coin-shine { 0%, 86%, 100% { transform: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); } 92% { transform: rotateY(180deg); filter: drop-shadow(0 0 6px rgba(255,217,92,.8)); } }

/* Lien « récompense » de l'en-tête et repère du titre de section */
.hero-reward { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 8px 12px 8px 8px; border: 1px solid var(--warn-line); border-radius: var(--radius); background: var(--warn-soft); color: #ffe7a3; font-size: var(--fs-sm); font-weight: 500; text-decoration: none; transition: border-color .15s, background .15s; }
.hero-reward:hover { border-color: #E3B341; background: rgba(227,179,65,.18); color: #fff3c4; }
.hero-reward .wl-coin { animation: pc-coin-shine 6s ease-in-out infinite; }
.hero-reward i { color: #E3B341; }
.pc-kicker { display: inline-flex; align-items: center; gap: 8px; font: 600 var(--fs-xs) var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #E3B341; }

/* pastille de la barre de navigation */
.wallet-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: 600 var(--fs-sm) var(--mono); color: var(--text); text-decoration: none; }
.wallet-chip:hover { border-color: #E3B341; color: var(--text); }
.wl-flame { font-size: 12px; color: var(--text-2); }

@media (max-width: 1080px) { .pc-grid { grid-template-columns: 1fr; justify-items: center; } .pc-machine { width: min(560px, 100%); } .pc-side { width: 100%; } }
@media (max-width: 560px) {
  .pc-machine { padding: 0 14px; border-radius: 22px 22px 10px 10px; box-shadow: 6px 6px 0 #0A0E1A, 0 30px 50px rgba(0,0,0,.5); }
  .pc-machine::before { left: 2px; } .pc-machine::after { right: 2px; }
  .pc-machine::before, .pc-machine::after { width: 7px; top: 128px; border-width: 1.5px; }
  .pc-hood { height: 128px; margin: 0 -14px; border-radius: 19px 19px 0 0; }
  .pc-bulbs { inset: 8px; border-radius: 14px; } .pc-bulbs i { width: 8px; height: 8px; margin: -4px; }
  .pc-spk { display: none; } .pc-sign { width: 88%; } .pc-sign-top { font-size: 9px; letter-spacing: .2em; } .pc-sign-sub { font-size: 9px; }
  .pc-deck { margin: 18px -6px 0; padding: 12px; gap: 10px; grid-template-columns: 1fr auto; grid-template-areas: "lcd lcd" "joy drop" "slot slot"; }
  .pc-front { margin: 18px -14px 0; padding: 14px 20px 36px; grid-template-columns: auto 1fr; }
  .pc-grill { display: none; }
  .pc-chute { width: 130px; }
  .pc-plate { width: 74px; height: 74px; } .pc-plate b { font-size: 16px; }
  .pc-led { font-size: 10.5px; }
  .pc-stats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .wallet-chip .wl-coin, .pc-stat .wl-coin, .hero-reward .wl-coin, .pc-machine::before, .pc-machine::after, .pc-bulbs i, .pc-sign-big, .pc-slot .pc-slot-hole, .pc-drop .pc-drop-cap, .pc-chute.full, .pc-chute.full .pc-chute-peek, .pc-rays, .pc-reveal-art, .pc-card.flash, .pc-coin-fx { animation: none; }
}
/* Très petits écrans : la pastille reste compacte (le clic ouvre toujours l'aide). */
@media (max-width: 420px) { .wallet-chip .wl-info { display: none; } .wallet-chip { padding: 0 8px; } }
/* Repère de la borne : arrivée depuis un lien « #machine » (petit flash) */
#machine, #pince-collection { scroll-margin-top: 90px; }
.pc-machine.pc-ping { animation: pc-ping 1s ease-out; }
@keyframes pc-ping { 0% { box-shadow: 0 0 0 0 rgba(255,225,77,.9), 0 30px 60px rgba(0,0,0,.55); } 100% { box-shadow: 0 0 0 26px rgba(255,225,77,0), 0 30px 60px rgba(0,0,0,.55); } }
@media (prefers-reduced-motion: reduce) { .pc-machine.pc-ping { animation: none; } }
