/* ============ Penalty Kick game (canvas-rendered pitch) ============ */
.penalty { display: flex; flex-direction: column; min-height: 0; min-width: 0; flex: 1; overflow-x: clip; }

/* ── Stage ── */
.pk-stage {
  position: relative; margin: 12px 14px 0; border-radius: var(--r);
  border: 1px solid var(--line); overflow: hidden;
  height: clamp(360px, 56vh, 540px);
  background: #0a1622;
}
.pk-canvas { display: block; width: 100%; height: 100%; }

/* odds line + history overlay the canvas */
.pk-readout {
  position: absolute; top: 8px; left: 0; right: 0; z-index: 8; text-align: center;
  font-size: 12px; color: #eaf7ee; text-shadow: 0 1px 3px rgba(0,0,0,.8); pointer-events: none;
}
.pk-readout b { color: #fff; font-weight: 800; }
.pk-stage .history-strip {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; border-top: none;
  padding: 7px 10px; justify-content: center; background: linear-gradient(0deg, rgba(6,20,12,.55), transparent);
}
.pk-pill { color: #fff; min-width: 22px; text-align: center; }
.pk-pill.win  { border-color: rgba(14,203,129,.6); box-shadow: 0 0 8px rgba(14,203,129,.45); }
.pk-pill.lose { border-color: rgba(246,70,93,.5); opacity: .8; }

/* ── Controls ── */
.pk-controls {
  margin: 12px 14px calc(14px + env(safe-area-inset-bottom)); padding: 14px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--r);
  display: flex; flex-direction: column; gap: 12px;
}
.pk-aim { display: flex; gap: 10px; }
.pk-aim-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 8px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
  font-weight: 700; font-size: 13px; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .07s ease;
}
.pk-aim-btn:active { transform: scale(.97); }
.pk-aim-btn .pk-aim-arrow { display: inline-flex; color: var(--muted); }
.pk-aim-btn.center .pk-aim-arrow { transform: rotate(90deg); }
.pk-aim-btn.right .pk-aim-arrow { transform: rotate(180deg); }
.pk-aim-btn.active { border-color: #f0b90b; background: rgba(240,185,11,.14); color: #fff; }
.pk-aim-btn.active .pk-aim-arrow { color: #f0b90b; }

.penalty .launch-btn {
  background: linear-gradient(180deg, #16d98e, #07b06f); color: #04130d; font-weight: 800; font-size: 16px;
  box-shadow: 0 6px 18px rgba(14,203,129,.34);
  transition: transform .07s ease, filter .15s ease, box-shadow .25s ease;
}
.penalty .launch-btn:not(:disabled) { animation: pk-glow 2.4s ease-in-out infinite; }
.penalty .launch-btn:disabled { background: var(--panel-2); color: var(--muted); box-shadow: none; animation: none; }
.penalty .launch-btn:active:not(:disabled) { transform: scale(.985); }
@keyframes pk-glow { 0%,100% { box-shadow: 0 6px 18px rgba(14,203,129,.3); } 50% { box-shadow: 0 8px 28px rgba(22,217,142,.55); } }

/* ── Mobile bottom nav ── */
@media (max-width: 879px) {
  .penalty { padding-bottom: 74px; }
  .penalty .mybets { display: none; }
  .penalty.view-plays .mybets { display: block; min-height: 60vh; }
  .penalty.view-plays .pk-stage,
  .penalty.view-plays .pk-controls { display: none; }
}
