/* ============================================================================
 * FLAPYCOPA — HUD do jogo (mecânica "complete o percurso")
 * ========================================================================== */

#screen-game::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; box-shadow: inset 0 0 120px rgba(0,0,0,.4); }

/* Barra de progresso do percurso (topo) */
.progress-hud { position: absolute; top: calc(62px + var(--safe-top)); left: 12px; right: 12px; z-index: 5; pointer-events: none;
  background: rgba(4,12,34,.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1.5px solid var(--glass-border); border-radius: 16px; padding: 10px 14px; box-shadow: var(--sh-soft); }
.progress-hud .ph-row { display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.progress-hud #ph-stage { font-size: 14px; color: #dce8ff; }
.progress-hud #ph-win { font-size: 20px; color: var(--gold-400); font-family: var(--font-num); text-shadow: 0 0 12px rgba(255,184,28,.5); }
.ph-bar { height: 10px; border-radius: 999px; background: rgba(0,0,0,.45); overflow: hidden; margin-top: 8px; border: 1px solid rgba(255,255,255,.12); }
.ph-bar > i { display: block; height: 100%; width: 0; background: var(--green-grad); box-shadow: var(--glow-green); transition: width .25s ease; }
.ph-hint { text-align: center; font-size: 12px; color: #cfe0ff; font-weight: 800; margin-top: 7px; text-shadow: 0 2px 6px rgba(0,0,0,.8); transition: opacity .4s; }

/* trilha de progresso até a LINHA DE CHEGADA */
.finish-track { position: absolute; top: calc(64px + var(--safe-top)); left: 14px; right: 14px; z-index: 5; pointer-events: none;
  display: flex; align-items: center; gap: 9px; }
.finish-track .ft-label { font-size: 10px; font-weight: 900; color: #cfe0ff; letter-spacing: 1.2px; text-shadow: 0 2px 4px rgba(0,0,0,.85); }
.ft-rail { position: relative; flex: 1; height: 8px; border-radius: 999px; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.16); }
.ft-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: var(--green-grad); box-shadow: var(--glow-green); transition: width .12s linear; }
.ft-marker { position: absolute; top: 50%; left: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: var(--gold-grad); box-shadow: var(--inset-top), 0 0 9px rgba(255,200,60,.85); transition: left .12s linear; z-index: 2; }
/* marcador = pássaro do país escolhido */
.ft-marker.is-bird { width: 30px; height: 30px; margin: -15px 0 0 -15px;
  background: transparent; background-size: contain; background-repeat: no-repeat; background-position: center;
  border-radius: 0; box-shadow: none; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.ft-flag { width: 18px; height: 18px; flex: 0 0 auto; border: 1.5px solid #fff; border-radius: 3px;
  background: repeating-conic-gradient(#111 0 25%, #fff 0 50%) 0 0 / 9px 9px; }

/* Notificações "+R$" subindo */
.float-layer { position: absolute; left: 0; right: 0; top: 28%; z-index: 6; pointer-events: none; display: flex; flex-direction: column; align-items: center; }
.float-plus { font-family: var(--font-num); font-size: 30px; font-weight: 900; color: var(--green-400);
  text-shadow: 0 2px 0 rgba(0,0,0,.5), 0 0 18px rgba(62,224,106,.7); animation: floatUp 1.1s ease-out forwards; }
@keyframes floatUp { 0% { transform: translateY(20px) scale(.6); opacity: 0; } 25% { opacity: 1; transform: translateY(0) scale(1.1); } 100% { transform: translateY(-70px) scale(1); opacity: 0; } }
/* cano BÔNUS: float dourado, maior, com o multiplicador em destaque */
.float-plus.float-bonus { color: var(--gold-400); font-size: 40px;
  text-shadow: 0 2px 0 rgba(0,0,0,.55), 0 0 26px rgba(255,210,77,.95); animation: floatBonus 1.5s cubic-bezier(.2,.9,.25,1) forwards; }
.float-plus.float-bonus span { display: block; font-size: 22px; color: #fff; margin-top: -2px; }
@keyframes floatBonus { 0% { transform: translateY(16px) scale(.4) rotate(-6deg); opacity: 0; } 18% { opacity: 1; transform: translateY(0) scale(1.35) rotate(2deg); } 40% { transform: scale(1.08) rotate(0); } 100% { transform: translateY(-92px) scale(1); opacity: 0; } }

/* Overlay de resultado (ganhou / bateu) */
.result-overlay { position: absolute; inset: 0; z-index: 9; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.result-overlay.hidden { display: none; }
.res-card { background: rgba(4,12,34,.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 2px solid var(--glass-border); border-radius: 24px; padding: 28px 34px; text-align: center; box-shadow: var(--sh-panel); animation: pop .25s ease; }
.res-card.win { border-color: var(--green-500); box-shadow: var(--sh-panel), var(--glow-green); }
.res-card.crash { border-color: var(--red-500); box-shadow: var(--sh-panel), 0 0 30px rgba(255,82,82,.5); }
.res-emoji { font-size: 56px; animation: pop .4s ease; }
.res-title { font-size: 22px; font-weight: 900; margin-top: 6px; letter-spacing: .5px; }
.res-card.win .res-title { color: var(--green-400); }
.res-card.crash .res-title { color: var(--red-500); }
.res-val { font-size: 40px; font-weight: 900; color: var(--gold-400); font-family: var(--font-num); margin-top: 6px; text-shadow: var(--glow-gold); }
.res-sub { font-size: 13px; color: var(--text-dim); margin-top: 8px; }

/* info do percurso no painel de aposta */
.course-info { text-align: center; font-size: 14px; color: #dce8ff; background: rgba(0,0,0,.3); border: 1.5px solid var(--glass-border);
  border-radius: var(--r-sm); padding: 10px; }
.bonus-hint { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 800; color: var(--gold-400);
  text-shadow: 0 0 12px rgba(255,210,77,.55); letter-spacing: .3px; }
