.fly {
  background: #171b28;
  color: #fff;
  border-radius: 16px;
  padding: 12px;
  max-width: 100%;
  overflow: hidden;
}
.fly-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
  padding: 4px;
  border-radius: 12px;
  background: #121722;
}
.fly-switch a {
  height: 36px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #c5cde2;
}
.fly-switch a.is-on { background: #1f6aed; color: #fff; }

.fly-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.fly-head span { display: block; color: #8b97b8; font-size: 12px; font-weight: 700; }
.fly-head b { font-size: 22px; line-height: 1; }
.fly-head button {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: #1f6aed;
  color: #fff;
  font-weight: 800;
}

.fly-history {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 8px;
}
.fly-history::-webkit-scrollbar { display: none; }
.fly-history i {
  flex: 0 0 auto;
  min-width: 52px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #121722;
  color: #ff8fa3;
  font-style: normal;
  font-weight: 800;
  font-size: 12px;
}
.fly-history i.ok { color: #3ddc7a; }
.fly-history i.hot { color: #ffd166; }

.fly-stage {
  position: relative;
  height: 190px;
  border-radius: 12px;
  overflow: hidden;
  background: #121722;
  margin-bottom: 10px;
}
.fly-stage canvas { width: 100%; height: 100%; display: block; }
.fly-mult {
  position: absolute;
  left: 0;
  right: 0;
  top: 28px;
  text-align: center;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.fly-mult.boom { color: #ff5d73; }
.fly-mult.win { color: #3ddc7a; }
.fly-phase {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  text-align: center;
  color: #c5cde2;
  font-weight: 700;
  font-size: 13px;
  pointer-events: none;
}

.fly-panels { display: grid; gap: 8px; }
.fly-panel {
  background: #121722;
  border-radius: 12px;
  padding: 10px;
  min-width: 0;
}
.fly-label {
  display: block;
  margin-bottom: 6px;
  color: #7a86ae;
  font-size: 13px;
  font-weight: 700;
}
.fly-panel .fly-label:not(:first-child) { margin-top: 8px; }
.bet-field { position: relative; }
.bet-field input,
.auto-field input {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: #252b3f;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}
.bet-field input { padding: 0 132px 0 12px; }
.bet-ops {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: repeat(3, 40px);
  gap: 4px;
}
.bet-ops button,
.chip-row button {
  background: #393e51;
  color: #fff;
  border-radius: 8px;
  font-weight: 800;
}
.bet-ops button { height: 36px; font-size: 13px; }
.chip-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 6px;
}
.chip-row button { height: 32px; font-size: 13px; min-width: 0; }
.auto-field { margin-top: 8px; }
.auto-field input { padding: 0 12px; height: 40px; }
.fly-play {
  width: 100%;
  height: 44px;
  margin-top: 8px;
  border-radius: 10px;
  background: #1f6aed;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}
.fly-play.cash { background: linear-gradient(180deg, #3ddc7a, #18a84a); }
.fly-play:disabled { opacity: 0.45; }
.fly-note { margin: 8px 0 0; color: #8b97b8; font-size: 12px; }

@media (min-width: 800px) {
  .fly-panels.two { grid-template-columns: 1fr 1fr; }
  .fly-stage { height: 240px; }
}
