/* ============================================================
   PINTE.FLOP — le bar des Chevaliers de la Pinte Ronde (bleu nuit, or, bois)
   ============================================================ */
.pfl { --navy: #14213d; --gold: #d4a72c; --cream: #f6efe0; position: relative; height: 100%; display: flex; flex-direction: column; overflow: hidden; color: var(--cream);
  background: linear-gradient(180deg, #1c2c52, var(--navy) 58%, #3a2414 58.2%, #2a1a0e); font-family: var(--f-ui); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.pfl-hud { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 10px 14px 4px; }
.pfl-stat { display: grid; line-height: 1.05; }
.pfl-stat:last-child { text-align: right; }
.pfl-stat small { font: 700 11px var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.pfl-stat b { font: 26px var(--f-title); }
.pfl-time { display: flex; align-items: baseline; gap: 2px; padding: 5px 14px; border: 3px solid var(--gold); border-radius: 99px; background: rgba(0,0,0,.25); }
.pfl-time b { font: 24px var(--f-title); min-width: 1.3em; text-align: center; }

.pfl-main { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr minmax(120px, 42%); gap: 10px; padding: 6px 12px; }
.pfl-bar { position: relative; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.pfl-glass { position: relative; flex: 0 1 auto; height: min(250px, calc(100% - 40px)); aspect-ratio: 3 / 5; border: 5px solid rgba(255,255,255,.85); border-top: 0; border-radius: 6px 6px 22px 22px;
  background: rgba(255,255,255,.08); overflow: hidden; }
.pfl-liq { position: absolute; left: 0; right: 0; bottom: 0; height: 0; }
.pfl-liq::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255,255,255,.55) 0 1.5px, transparent 2px) 0 0 / 16px 22px; opacity: .45; animation: pf-bub 1.6s linear infinite; }
@keyframes pf-bub { to { background-position: 0 -22px; } }
/* mousse : couche qui ondule en haut du liquide */
.pfl-foam { position: absolute; left: -6px; right: -6px; bottom: 0; height: 0; background: var(--f, #fff); }
.pfl-foam i { position: absolute; top: -7px; width: 34%; height: 16px; border-radius: 50%; background: var(--f, #fff); animation: pf-wob 1.3s ease-in-out infinite alternate; }
.pfl-foam i:nth-child(1) { left: 0; } .pfl-foam i:nth-child(2) { left: 30%; animation-delay: -.4s; top: -9px; } .pfl-foam i:nth-child(3) { right: 0; animation-delay: -.8s; }
@keyframes pf-wob { to { transform: translateY(3px) scaleX(1.12); } }
.pfl-shine { position: absolute; top: 0; bottom: 0; left: 12%; width: 9%; background: rgba(255,255,255,.22); border-radius: 99px; }
.pfl-target { position: absolute; left: 0; right: 0; height: 0; border-top: 3px dashed var(--gold); z-index: 2; transition: bottom .25s; }
.pfl-target span { position: absolute; right: 4px; top: -18px; font: 800 11px var(--f-ui); color: var(--gold); text-shadow: 0 1px 2px #000; }
.pfl-pour { position: absolute; top: 0; left: 50%; width: 10px; height: 0; margin-left: -5px; border-radius: 5px; background: var(--c, #f5c400); transition: height .12s; z-index: 3; }
.pfl.is-pouring .pfl-pour { height: 40%; }
.pfl.is-over-top .pfl-glass { box-shadow: 0 0 0 3px #e8382b; }
.pfl.is-served .pfl-glass { animation: pf-slide .35s ease-in; }
@keyframes pf-slide { to { transform: translateX(140%) rotate(8deg); opacity: 0; } }
.pfl-hint { margin: 0; padding: 4px 12px; border-radius: 99px; background: rgba(0,0,0,.35); border: 2px solid var(--c, #fff); font: 700 13px var(--f-ui); text-align: center; }

.pfl-orders { display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow: hidden; }
.pfl-wait { margin: auto; font-size: 13px; opacity: .7; text-align: center; }
.pfl-order { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; padding: 8px 8px 12px; border: 2px solid rgba(246,239,224,.25); border-radius: 12px; background: rgba(0,0,0,.3); color: var(--cream); text-align: left; overflow: hidden; flex: none; }
.pfl-order.on { border-color: var(--gold); background: rgba(212,167,44,.18); box-shadow: 0 0 0 2px var(--gold); }
.pfl-o-cup { position: relative; width: 22px; height: 34px; border: 2px solid rgba(255,255,255,.8); border-top: 0; border-radius: 3px 3px 7px 7px; overflow: hidden; }
.pfl-o-cup i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--c); }
.pfl-o-t { display: grid; min-width: 0; }
.pfl-o-t b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfl-o-t small { font-size: 11.5px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfl-o-time { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255,255,255,.12); }
.pfl-o-time i { display: block; height: 100%; background: #3ee6b0; transform-origin: left; }
.pfl-order.late .pfl-o-time i { background: #e8382b; }
.pfl-order.late { border-color: #e8382b; }

.pfl-taps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 6px 10px 4px; }
.pfl-tap { display: grid; justify-items: center; gap: 4px; padding: 8px 2px 6px; border: 2px solid rgba(246,239,224,.3); border-radius: 12px; background: rgba(0,0,0,.35); color: var(--cream); touch-action: none; -webkit-touch-callout: none; }
.pfl-tap i { width: 30px; height: 30px; border-radius: 50%; background: var(--c); border: 3px solid rgba(255,255,255,.85); box-shadow: 0 3px 0 rgba(0,0,0,.4); }
.pfl-tap span { font: 700 10.5px/1.1 var(--f-ui); text-align: center; }
.pfl-tap.on { border-color: var(--c); background: rgba(255,255,255,.1); transform: translateY(2px); }
.pfl-acts { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; padding: 6px 10px 12px; }
.pfl-trash, .pfl-serve { padding: 14px 8px; border-radius: 14px; font: 17px var(--f-title); }
.pfl-trash { border: 2px solid rgba(246,239,224,.4); background: none; color: var(--cream); font-size: 15px; }
.pfl-serve { border: 3px solid var(--navy); background: var(--gold); color: var(--navy); box-shadow: 0 5px 0 #8a6a12; }
.pfl-serve:active { transform: translateY(4px); box-shadow: 0 1px 0 #8a6a12; }

.pfl-call { position: absolute; top: 28%; left: 29%; transform: translate(-50%, 10px) scale(.9); opacity: 0; pointer-events: none; white-space: nowrap; font: 24px var(--f-title); color: var(--cream); text-shadow: 3px 3px 0 var(--navy); transition: opacity .15s, transform .2s; z-index: 4; }
.pfl-call.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.pfl-call.gold { color: var(--gold); }
.pfl-call.ko { color: #ff8a7a; }

.pfl-intro { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 18px; background: rgba(10,16,32,.75); }
.pfl-intro.hidden { display: none; }
.pfl-card { width: min(360px, 100%); max-height: 100%; overflow-y: auto; display: grid; justify-items: center; gap: 6px; padding: 20px 18px; text-align: center; border: 3px solid var(--gold); border-radius: 18px; background: var(--navy); }
.pfl-card img { width: 80px; height: 80px; border-radius: 50%; }
.pfl-card small { font: 700 11px var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.pfl-card h2 { margin: 0; font: italic 30px/1.05 'Playfair Display', Georgia, serif; }
.pfl-card ul { margin: 6px 0 4px; padding: 0; list-style: none; display: grid; gap: 6px; text-align: left; font-size: 14px; line-height: 1.35; }
.pfl-card li { position: relative; padding-left: 18px; }
.pfl-card li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.pfl-card li b { color: var(--gold); }
.pfl-go { width: 100%; margin-top: 8px; padding: 14px; border: 0; border-radius: 12px; background: var(--gold); color: var(--navy); font: 18px var(--f-title); box-shadow: 0 5px 0 #8a6a12; }
.pfl-best, .pfl-res { margin: 0; font-size: 14px; opacity: .85; }
.pfl-res b { color: var(--gold); }
.pfl-verdict { margin: 4px 0; font: italic 16px/1.4 'Playfair Display', Georgia, serif; }
.pfl-coins { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0; font: 24px var(--f-title); color: var(--gold); }

/* menu : un verre qui se remplit, les 3 étapes, la règle des points */
.pfl-glassico { position: relative; width: 54px; height: 76px; border: 4px solid var(--cream); border-top: 0; border-radius: 4px 4px 14px 14px; overflow: hidden; margin-bottom: 4px; }
.pfl-glassico i { position: absolute; left: 0; right: 0; bottom: 0; height: 80%; background: linear-gradient(180deg, #fffbe8 0 18%, #f5c400 18%); animation: pfl-fill 2.4s ease-in-out infinite alternate; }
@keyframes pfl-fill { from { transform: translateY(60%); } }
.pfl-lead { margin: 2px 0 6px; font: 600 16px/1.35 var(--f-ui); }
.pfl-steps { width: 100%; display: grid; gap: 6px; }
.pfl-steps div { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.07); text-align: left; font-size: 14px; }
.pfl-steps b { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--navy); font: 14px var(--f-title); }
.pfl-pts-rule { margin: 6px 0 0; font-size: 13px; line-height: 1.4; opacity: .85; }
.pfl-pts-rule b { color: var(--gold); }

.pfl-lives { gap: 4px; padding: 5px 12px; }
.pfl-lives i { font-style: normal; font-size: 20px; transition: opacity .3s, filter .3s; }
.pfl-lives i.off { opacity: .25; filter: grayscale(1); }

/* menu plus compact : la carte ne touche plus les bords du téléphone */
.pfl-intro { padding: 16px 22px; }
.pfl-card { width: min(320px, 100%); gap: 4px; padding: 16px 16px 14px; border-radius: 16px; }
.pfl-card h2 { font-size: 26px; }
.pfl-glassico { width: 40px; height: 56px; border-width: 3px; }
.pfl-lead { margin: 0 0 4px; font-size: 14px; }
.pfl-steps { gap: 5px; }
.pfl-steps div { padding: 6px 9px; font-size: 13px; gap: 8px; }
.pfl-steps b { width: 22px; height: 22px; font-size: 12px; }
.pfl-pts-rule { margin: 4px 0 0; font-size: 12px; }
.pfl-go { margin-top: 6px; padding: 11px; font-size: 16px; }
