/* Pilot Chicken : disposition identique à la démo Spribe (barre difficulté + historique, scène, panneau de mise bas) */
:root {
  --bg: #0f0f12;
  --panel: #1b1c1f;
  --panel-2: #141518;
  --panel-3: #101113;
  --border: #2a2b30;
  --border-light: #45474f;
  --accent: #ffffff;
  --bet-btn: #28a745; --bet-btn-border: #28a745; --bet-btn-hover: #2fbf4f;
  --cashout-btn: #ffa726; --cashout-btn-border: #ffa726; --cashout-btn-hover: #ffb74d;
  --cancel-btn: #cb011a; --cancel-btn-border: #cb011a; --cancel-btn-hover: #e2061e;
  --stage-bg: #2a2833;
}
body { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.logo { color: #fff; font-style: normal; font-size: 14px; line-height: 1; letter-spacing: 0; }
.logo .pc-logo { display: flex; flex-direction: column; align-items: center; font-weight: 900; }
.logo .pc-logo small { font-size: 9px; letter-spacing: 2px; }
.topbar .balance { background: var(--panel); border-radius: 20px; padding: 6px 12px; color: #fff; }
.topbar .balance .cur { color: var(--muted); }
.howto-btn { display: none; }
.layout { display: flex; flex-direction: column; gap: 6px; }
.pc-bar { display: flex; gap: 6px; align-items: center; }
.pc-diff-bar { flex: 1; background: var(--panel); border-radius: 10px; height: 34px; display: flex; align-items: center; justify-content: center; position: relative; }
.pc-diff-btn { font-size: 13px; font-weight: 500; color: #fff; display: flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 8px; }
.pc-diff-btn:hover { background: rgba(255,255,255,.06); }
.pc-diff-btn .chev { color: var(--muted); font-size: 11px; }
.pc-diff-menu { position: absolute; top: 38px; left: 50%; transform: translateX(-50%); background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 4px; min-width: 180px; z-index: 20; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.pc-diff-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; font-size: 13px; color: #fff; }
.pc-diff-menu button:hover { background: rgba(255,255,255,.06); }
.pc-diff-menu button.active { background: var(--border); }
.pc-bar .history-wrap { width: 200px; flex: 0 0 200px; }
.pc-bar .history-bar { background: var(--panel); border-radius: 10px; height: 34px; padding: 0 6px; }
.pc-bar .history-chips { gap: 8px; }
.pc-bar .chip { background: transparent; padding: 0 2px; font-size: 11px; }
.pc-bar .history-toggle { background: transparent; border: 0; }
.chip.lost, .mult-chip.lost { color: #ff3d3d; }
.game-stage.pc-stage { flex: 1; min-height: 300px; border-radius: 12px; border: 0; cursor: pointer; }
.pc-stage .stage-footer { display: none; }

/* panneau de mise bas */
.pc-betpanel { background: var(--panel); border-radius: 12px; padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.pc-tabs { display: flex; background: var(--panel-2); border-radius: 20px; padding: 2px; width: min(980px, 100%); }
.pc-tabs button { flex: 1; padding: 6px; border-radius: 16px; font-size: 13px; color: var(--muted); }
.pc-tabs button.active { background: var(--border); color: #fff; }
.pc-controls { display: grid; grid-template-columns: 340px 1fr; gap: 8px; width: min(980px, 100%); }
.pc-amount { display: flex; flex-direction: column; gap: 6px; }
.pc-amount .amount-box { height: 32px; background: var(--panel-2); border-color: transparent; }
.pc-amount .amount-input { font-size: 14px; font-weight: 600; }
.pc-amount .amt-btn { border-color: #5a5c66; }
.pc-amount .quick-chips { grid-template-columns: repeat(4, 1fr); }
.pc-amount .quick-chips button { height: 28px; font-size: 13px; font-weight: 500; }
.pc-amount .quick-chips button.active { color: #fff; background: var(--border); }
.pc-actions { display: grid; grid-template-columns: 1fr; gap: 6px; min-height: 66px; }
.pc-actions.playing { grid-template-columns: 200px 1fr; }
.pc-actions .bet-btn { min-height: 56px; border-radius: 10px; box-shadow: none; }
.pc-actions .bet-btn .bet-btn-label { font-size: 15px; font-weight: 700; }
.pc-actions .bet-btn .bet-btn-amount { font-size: 15px; font-weight: 700; }
.pc-actions .bet-btn.next { background: var(--bet-btn); }
.pc-actions .bet-btn:disabled { opacity: .5; pointer-events: none; }
.locked .pc-amount { opacity: .5; pointer-events: none; }
.balance-delta { color: #28a745; font-weight: 700; font-size: 13px; margin-right: 6px; background: #163a1d; border-radius: 12px; padding: 2px 8px; }

/* modale auto play */
.auto-form { display: flex; flex-direction: column; gap: 10px; }
.auto-field { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.auto-field .amount-box { height: 34px; width: 150px; }
.auto-field .amount-input { font-size: 14px; }
.auto-field .mult { color: #fff; font-weight: 700; }
.auto-status { text-align: center; font-size: 12px; color: var(--muted); }

@media (max-width: 1000px) {
  .layout { height: auto; min-height: calc(100dvh - var(--topbar-h)); }
  .game-stage.pc-stage { height: 50vh; min-height: 300px; }
}
@media (max-width: 640px) {
  .pc-bar .history-wrap { width: 46%; flex-basis: 46%; }
  .pc-controls { grid-template-columns: 1fr; }
  .pc-actions.playing { grid-template-columns: 1fr 1fr; }
  .game-stage.pc-stage { height: 56vh; min-height: 420px; }
  .pc-betpanel { padding: 8px; }
}
