/* ============================================================
   FlyingBet — shared styles
   ============================================================ */

html, body { background: #0e0e10; color: #fff; }
body { font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Aviator canvas backdrop */
.stars-bg {
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.06) 0, transparent 2px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.05) 0, transparent 2px),
    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.07) 0, transparent 2px),
    radial-gradient(ellipse at center, #241a2a 0%, #0e0e10 70%);
}
.propeller-blur { filter: blur(1px); }

/* Multiplier gradient text */
.multiplier-text {
  background: linear-gradient(180deg, #ffffff 0%, #d5d5d5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.multiplier-text.crashed {
  background: linear-gradient(180deg, #ff4a6b 0%, #b8042e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Curve */
.curve-fill { fill: url(#curveGradient); opacity: 0.35; }
.curve-line { stroke: #e50539; stroke-width: 3; fill: none; filter: drop-shadow(0 0 6px rgba(229,5,57,0.6)); }

/* Chips + tabs */
.chip {
  padding: 4px 12px; border-radius: 9999px;
  background: #141518; border: 1px solid #2a2b30;
  font-size: 12px; font-weight: 600; transition: border-color .15s;
}
.chip:hover { border-color: rgba(255,255,255,0.4); }
.amt-btn {
  padding: 6px 0; border-radius: 6px;
  background: #141518; border: 1px solid #2a2b30;
  font-size: 12px; font-weight: 600; color: #fff; transition: border-color .15s;
}
.amt-btn:hover { border-color: rgba(255,255,255,0.4); }
.tab {
  padding: 4px 12px; font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,0.6); cursor: pointer; border-radius: 9999px;
}
.tab:hover { color: #fff; }
.tab.active { color: #fff; background: #141518; }

.bet-card {
  background: #1b1c1f; border: 1px solid #2a2b30;
  border-radius: 12px; padding: 12px;
}

/* Action buttons (shared sizing so BET / CANCEL / CASH OUT all match) */
.btn-action {
  width: 100%; border-radius: 8px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #fff; transition: all .15s; user-select: none;
}
.btn-action:hover { filter: brightness(1.05); }
.btn-action:active { transform: translateY(2px); }
.btn-bet {
  background: linear-gradient(180deg, #2ec814 0%, #1f9c0d 100%);
  box-shadow: 0 3px 0 #146007, inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-bet:active { box-shadow: 0 1px 0 #146007; }
.btn-cashout {
  background: linear-gradient(180deg, #f5c518 0%, #d1a20a 100%);
  color: #0e0e10;
  box-shadow: 0 3px 0 #7d6100, inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-cashout:active { box-shadow: 0 1px 0 #7d6100; }
.btn-cancel {
  background: linear-gradient(180deg, #e50539 0%, #b8042e 100%);
  box-shadow: 0 3px 0 #7a021d, inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-cancel:active { box-shadow: 0 1px 0 #7a021d; }

/* History chip colors */
.mult-blue { color: #4aa3ff; }
.mult-purple { color: #a970ff; }
.mult-pink { color: #ff5ea8; }

/* xs breakpoint helper */
@media (min-width: 400px) { .xs\:inline { display: inline; } }

/* Game canvas responsive */
.game-canvas-box {
  aspect-ratio: 16 / 10;
  min-height: 240px;
  max-height: 50vh;
}
@media (min-width: 640px) {
  .game-canvas-box { aspect-ratio: 21 / 9; min-height: 220px; max-height: 42vh; }
}

/* Toggle switch */
.toggle { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute; cursor: pointer; inset: 0;
  background: #2a2b30; border: 1px solid #3a3b40;
  transition: background 0.2s; border-radius: 999px;
}
.toggle-track::before {
  position: absolute; content: "";
  height: 16px; width: 16px; left: 2px; top: 2px;
  background: #fff; border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.toggle input:checked + .toggle-track { background: #28a909; border-color: #28a909; }
.toggle input:checked + .toggle-track::before { transform: translateX(18px); }

/* Odd button (card + match detail) */
.odd-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #141518; border: 1px solid #2a2b30;
  border-radius: 6px; padding: 6px 10px; min-width: 52px;
  transition: border-color .15s, background .15s, color .15s;
  color: #fff; cursor: pointer;
}
.odd-btn:hover { border-color: #e50539; background: rgba(229,5,57,0.12); }
.odd-btn .odd-label { font-size: 10px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.05em; }
.odd-btn .odd-value { font-weight: 700; font-size: 13px; }
.odd-btn.selected {
  background: linear-gradient(180deg, #e50539 0%, #b8042e 100%);
  border-color: #ff4a6b; color: #fff;
}
.odd-btn.selected .odd-label { color: rgba(255,255,255,0.85); }

/* Game tile on homepage */
.game-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #1b1c1f;
  border: 1px solid #2a2b30;
  border-radius: 16px;
  overflow: hidden;
  transition: transform .18s, border-color .18s, box-shadow .18s;
  display: block;
}
.game-tile:hover { transform: translateY(-3px); border-color: #e50539; box-shadow: 0 10px 30px rgba(229,5,57,0.25); }
.game-tile .tile-body {
  position: absolute; inset: 0;
  padding: 16px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(160deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 100%);
}
.game-tile.aviator {
  background:
    radial-gradient(ellipse at 30% 30%, rgba(229,5,57,0.35), transparent 60%),
    linear-gradient(160deg, #2b0d17 0%, #0e0e10 100%);
}
.game-tile.sports {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(46,200,20,0.35), transparent 60%),
    linear-gradient(160deg, #0d2b13 0%, #0e0e10 100%);
}
.game-tile.casino {
  background:
    radial-gradient(ellipse at 30% 70%, rgba(169,112,255,0.3), transparent 60%),
    linear-gradient(160deg, #1a0d2b 0%, #0e0e10 100%);
}
.game-tile.jackpot {
  background:
    radial-gradient(ellipse at 70% 70%, rgba(245,197,24,0.3), transparent 60%),
    linear-gradient(160deg, #2b1f0d 0%, #0e0e10 100%);
}
.game-tile.disabled { pointer-events: none; opacity: 0.55; }
.game-tile.disabled:hover { transform: none; border-color: #2a2b30; box-shadow: none; }

/* Simple utility that Tailwind can't express cleanly */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* Plane animations */
@keyframes propeller { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulseRed { 0%,100% { box-shadow: 0 0 0 0 rgba(229,5,57,0.5); } 50% { box-shadow: 0 0 0 8px rgba(229,5,57,0); } }
.anim-propeller { animation: propeller 0.08s linear infinite; }
.anim-pulse-red { animation: pulseRed 1.5s ease-out infinite; }
