:root {
  --bg: #081624;
  --panel: rgba(13, 31, 49, 0.9);
  --panel-strong: rgba(19, 42, 61, 0.96);
  --line: rgba(146, 204, 255, 0.18);
  --text: #ecf7ff;
  --muted: #a7d2ed;
  --cyan: #48e7ff;
  --green: #6ef6b6;
  --gold: #ffd166;
  --red: #ff6b6b;
  --shadow: rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, rgba(66, 136, 255, 0.2), transparent 35%),
    linear-gradient(160deg, #081624 0%, #0d1e2d 35%, #091824 100%);
  font-family: "Segoe UI", sans-serif;
  color: var(--text);
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(1100px, 92vw);
  background: rgba(7, 17, 29, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  padding: 22px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(72, 231, 255, 0.2), rgba(45, 121, 255, 0.35));
  border: 1px solid rgba(72, 231, 255, 0.32);
  font-size: 2rem;
}

.mini-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  color: var(--muted);
}

h1 {
  margin: 4px 0 0;
  font-size: 2.2rem;
}

.top-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.stat-box {
  min-width: 170px;
  background: rgba(10, 22, 33, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 12px 16px;
}

.stat-box span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  margin-bottom: 6px;
}

.stat-box strong {
  font-size: 1.1rem;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
  gap: 18px;
}

.game-panel,
.control-panel {
  background: linear-gradient(180deg, rgba(14, 28, 40, 0.96), rgba(8, 21, 30, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  overflow: hidden;
}

.game-panel {
  padding: 18px;
}

.multiplier-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.multiplier-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.flight-board {
  position: relative;
  min-height: 540px;
  border-radius: 22px;
  border: 1px solid rgba(72, 231, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(12, 46, 65, 0.65), rgba(6, 18, 28, 1) 55%),
    linear-gradient(180deg, rgba(34, 129, 187, 0.08), transparent 50%);
  overflow: hidden;
}

.flight-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(72, 231, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(72, 231, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

.plane {
  position: absolute;
  left: 12%;
  top: 62%;
  transform: translate(-50%, -50%) rotate(15deg);
  font-size: clamp(2rem, 3vw, 3rem);
  filter: drop-shadow(0 0 16px rgba(72, 231, 255, 0.5));
  transition: left 0.04s linear, top 0.04s linear, transform 0.04s linear;
}

.crash-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: 14px;
  background: rgba(48, 39, 17, 0.28);
  color: var(--muted);
}

.crash-preview strong {
  color: var(--gold);
  font-size: 1.1rem;
}

.status-bar {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 600;
  background: rgba(11, 26, 36, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.control-panel {
  padding: 18px;
}

.bet-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.bet-block label {
  color: var(--muted);
  font-weight: 600;
}

.bet-block input,
.auto-input-wrap input {
  width: 100%;
  border: 1px solid rgba(72, 231, 255, 0.22);
  border-radius: 12px;
  background: rgba(10, 20, 32, 0.95);
  color: var(--text);
  padding: 12px 14px;
  font-size: 1.05rem;
}

.quick-bets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(18, 38, 52, 0.9);
  color: var(--text);
  padding: 10px 6px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(72, 231, 255, 0.5);
}

.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.primary-btn,
.secondary-btn {
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--cyan), #57b8ff);
  color: #04141b;
}

.secondary-btn {
  background: linear-gradient(135deg, var(--gold), #ffb347);
  color: #1f1804;
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.primary-btn:disabled,
.secondary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.wallet-panel {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(11, 25, 35, 0.8);
  padding: 14px 12px;
  border-radius: 16px;
  margin-bottom: 18px;
}

.wallet-panel h2 {
  margin: 0 0 12px;
  font-size: 1.02rem;
}

.wallet-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 10px;
}

.wallet-row:last-child {
  margin-bottom: 0;
}

.phone-label {
  display: block;
  margin: 10px 0 7px;
  color: var(--muted);
  font-size: 0.86rem;
}

.phone-input {
  width: 100%;
  margin-bottom: 10px;
  border: 1px solid rgba(72, 231, 255, 0.22);
  border-radius: 12px;
  background: rgba(10, 20, 32, 0.95);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}

.stk-push-btn {
  width: 100%;
}

.payment-status-error {
  color: var(--red);
}

.payment-status-success {
  color: var(--green);
}

.wallet-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.reset-btn {
  width: 100%;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.reset-btn:hover {
  border-color: rgba(72, 231, 255, 0.45);
  color: var(--text);
}

.wallet-btn {
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  color: #05161c;
  font-weight: 800;
  cursor: pointer;
}

.wallet-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.deposit-btn {
  background: linear-gradient(135deg, var(--green), #8ff7c7);
}

.withdraw-btn {
  background: linear-gradient(135deg, var(--gold), #ffc857);
}

.voice-block {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(11, 25, 35, 0.8);
  padding: 14px 12px;
  border-radius: 16px;
  margin-bottom: 18px;
}

.auto-block {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(11, 25, 35, 0.8);
  padding: 14px 12px;
  border-radius: 16px;
  margin-bottom: 18px;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  margin-bottom: 12px;
}

.switch-row input {
  accent-color: var(--green);
  width: 18px;
  height: 18px;
}

.auto-input-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.history-panel {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 16px;
}

.history-panel h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

#historyList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
}

#historyList li {
  background: rgba(9, 19, 29, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 10px 12px;
}

@media (max-width: 860px) {
  .game-layout {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .flight-board {
    min-height: 380px;
  }
}

:root {
  --bg: #eaf2f7;
  --panel: #ffffff;
  --panel-strong: #f4f8fb;
  --line: #d8e4ec;
  --text: #172f43;
  --muted: #61798b;
  --cyan: #1878a8;
  --green: #227b5b;
  --gold: #bd8432;
  --red: #bc4b4b;
  --shadow: rgba(35, 65, 86, 0.12);
}

body {
  align-items: flex-start;
  padding: 34px 0;
  background:
    radial-gradient(ellipse at 80% 8%, rgba(255, 255, 255, 0.95), transparent 30%),
    linear-gradient(180deg, #dceef8 0%, #f4f7f6 48%, #e5eee8 100%);
  color: var(--text);
}

.app-shell {
  width: min(1240px, 94vw);
  padding: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(39, 68, 88, 0.16);
  backdrop-filter: blur(14px);
}

.topbar {
  margin-bottom: 24px;
}

.brand-mark {
  background: linear-gradient(145deg, #214c69, #327da0);
  border: 0;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(35, 83, 112, 0.2);
}

.mini-label {
  color: #71899a;
  letter-spacing: 0.16em;
}

h1 {
  color: #19374e;
  letter-spacing: -0.045em;
}

.stat-box {
  background: #f7fafc;
  border: 1px solid #e0e9ef;
  border-radius: 14px;
}

.stat-box span {
  color: #71899a;
}

.stat-box strong {
  color: #213d52;
}

.game-panel,
.control-panel {
  background: #fff;
  border: 1px solid #dce6ec;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(39, 68, 88, 0.06);
}

.game-panel {
  padding: 20px;
}

.multiplier-value {
  color: #bd8432;
  text-shadow: 0 4px 18px rgba(189, 132, 50, 0.14);
}

.flight-board {
  min-height: 520px;
  isolation: isolate;
  border: 1px solid #b6d4e3;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 20% 22%, rgba(255, 255, 255, 0.84) 0 4%, transparent 4.5%),
    radial-gradient(ellipse at 25% 20%, rgba(255, 255, 255, 0.7) 0 6%, transparent 6.5%),
    radial-gradient(ellipse at 76% 31%, rgba(255, 255, 255, 0.78) 0 5%, transparent 5.5%),
    radial-gradient(ellipse at 81% 29%, rgba(255, 255, 255, 0.62) 0 7%, transparent 7.5%),
    linear-gradient(180deg, #86c7e4 0%, #d8eef6 56%, #f3f7ef 57%, #8eaf85 100%);
}

.flight-board::before {
  position: absolute;
  z-index: 0;
  right: -8%;
  bottom: 16%;
  left: -8%;
  height: 1px;
  background: rgba(71, 116, 112, 0.35);
  content: "";
}

.flight-board::after {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 35%;
  background:
    repeating-linear-gradient(180deg, transparent 0 30px, rgba(255, 255, 255, 0.68) 31px 38px, transparent 39px 68px) center / 3px 68px no-repeat,
    linear-gradient(90deg, transparent 0 34%, rgba(247, 250, 247, 0.72) 34% 35%, transparent 35% 65%, rgba(247, 250, 247, 0.72) 65% 66%, transparent 66%),
    #556d75;
  clip-path: polygon(38% 100%, 62% 100%, 53% 0, 47% 0);
  opacity: 0.82;
  content: "";
}

.flight-grid {
  z-index: 1;
  background-image:
    radial-gradient(ellipse, rgba(255, 255, 255, 0.45) 0 1px, transparent 2px),
    linear-gradient(180deg, transparent 0 56%, rgba(255, 255, 255, 0.14) 56.2%, transparent 56.5%);
  background-size: 46px 42px, 100% 100%;
}

.plane {
  z-index: 2;
  filter: drop-shadow(0 5px 8px rgba(25, 55, 76, 0.35));
}

.countdown-overlay {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(19, 47, 65, 0.2);
  backdrop-filter: blur(3px);
}

.countdown-overlay[hidden] {
  display: none;
}

.countdown-caption {
  color: #294f66;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.countdown-number {
  display: grid;
  width: clamp(120px, 18vw, 190px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(228, 243, 250, 0.86));
  box-shadow: 0 18px 60px rgba(31, 77, 100, 0.2), inset 0 0 0 8px rgba(255, 255, 255, 0.3);
  color: #1f5f80;
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: 1;
}

.countdown-number.countdown-pop {
  animation: countdown-pop 700ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

@keyframes countdown-pop {
  0% {
    opacity: 0.35;
    transform: scale(0.68);
  }

  58% {
    opacity: 1;
    transform: scale(1.08);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .countdown-number.countdown-pop {
    animation-duration: 1ms;
  }

  .plane.is-idle,
  .plane-art {
    animation: none;
  }
}

.crash-preview {
  border-color: #e9d9b9;
  background: #fcf8ef;
  color: #657c8c;
}

.crash-preview strong {
  color: #a96d1f;
}

.status-bar {
  background: #f4f8fa;
  border: 1px solid #e2ebf0;
  color: #496579;
}

.control-panel {
  padding: 18px;
}

.bet-block label,
.phone-label {
  color: #637b8c;
}

.bet-block input,
.auto-input-wrap input,
.phone-input {
  border: 1px solid #d6e2e9;
  background: #f8fbfc;
  color: #203b50;
}

.bet-block input:focus,
.auto-input-wrap input:focus,
.phone-input:focus {
  outline: 3px solid rgba(24, 120, 168, 0.14);
  border-color: #4a98bd;
}

.chip {
  border-color: #dce6ec;
  background: #f4f8fa;
  color: #38556a;
}

.chip:hover {
  border-color: #6aa9c5;
}

.primary-btn {
  background: linear-gradient(135deg, #287da2, #1c5d80);
  color: #fff;
  box-shadow: 0 6px 14px rgba(35, 105, 140, 0.18);
}

.secondary-btn {
  background: linear-gradient(135deg, #f0cc85, #dfa84f);
  color: #493411;
}

.wallet-panel,
.auto-block,
.voice-block {
  border: 1px solid #e0e9ee;
  background: #f7fafb;
}

.wallet-panel h2,
.history-panel h2 {
  color: #29465b;
}

.wallet-note {
  color: #718594;
}

.reset-btn {
  border-color: #d8e3e9;
  color: #657d8d;
}

.reset-btn:hover {
  border-color: #6aa9c5;
  color: #274c63;
}

.switch-row {
  color: #3c596d;
}

.switch-row input {
  accent-color: #287da2;
}

.history-panel {
  border-top-color: #e1eaf0;
}

#historyList {
  color: #61798b;
}

#historyList li {
  background: #f7fafb;
  border-color: #e7edf1;
}

@media (max-width: 860px) {
  body {
    padding: 16px 0;
  }

  .app-shell {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .app-shell {
    width: 96vw;
    padding: 14px;
    border-radius: 18px;
  }

  .game-panel,
  .control-panel {
    padding: 14px;
  }

  .flight-board {
    min-height: 320px;
  }
}

:root {
  --bg: #101113;
  --panel: #1a1b1e;
  --panel-strong: #232529;
  --line: #34363b;
  --text: #f7f7f4;
  --muted: #a8aaad;
  --cyan: #f2c400;
  --green: #a8cf38;
  --gold: #f2c400;
  --red: #ed4149;
  --shadow: rgba(0, 0, 0, 0.35);
}

body {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(242, 196, 0, 0.11), transparent 38%),
    linear-gradient(180deg, #151619 0%, #0d0e10 100%);
  color: var(--text);
}

.app-shell {
  background: rgba(23, 24, 27, 0.97);
  border-color: #303136;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.brand-mark {
  background: linear-gradient(145deg, #292a2d, #111214);
  border: 1px solid rgba(242, 196, 0, 0.65);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.mini-label {
  color: #c2a92c;
}

h1 {
  color: #fff;
}

.stat-box {
  background: #1c1d20;
  border-color: #36373b;
}

.stat-box span,
.wallet-note {
  color: #a8aaad;
}

.stat-box strong {
  color: #f5f5f1;
}

.game-panel,
.control-panel {
  background: linear-gradient(155deg, #202125, #17181b 68%);
  border-color: #35363a;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.multiplier-value {
  color: #f2c400;
  text-shadow: 0 0 24px rgba(242, 196, 0, 0.22);
}

.flight-board {
  border-color: #484039;
  background:
    radial-gradient(ellipse at 78% 15%, rgba(255, 255, 255, 0.46), transparent 22%),
    linear-gradient(180deg, #3186b7 0%, #76b8d6 43%, #c2dfeb 72%, #e9f2f5 100%);
  perspective: 900px;
}

.sky-cloud {
  position: absolute;
  z-index: 0;
  width: 190px;
  height: 54px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 24% 65%, rgba(255, 255, 255, 0.96) 0 24%, transparent 25%),
    radial-gradient(ellipse at 43% 43%, rgba(255, 255, 255, 0.97) 0 34%, transparent 35%),
    radial-gradient(ellipse at 65% 62%, rgba(255, 255, 255, 0.94) 0 30%, transparent 31%),
    radial-gradient(ellipse at 83% 72%, rgba(255, 255, 255, 0.86) 0 20%, transparent 21%);
  filter: drop-shadow(0 9px 9px rgba(42, 91, 117, 0.08));
  opacity: 0.74;
  animation: cloud-drift 32s linear infinite;
  pointer-events: none;
}

.cloud-one {
  top: 17%;
  left: 14%;
  transform: scale(1.2);
}

.cloud-two {
  top: 36%;
  right: 8%;
  transform: scale(0.82);
  animation-delay: -12s;
}

.cloud-three {
  top: 7%;
  right: 38%;
  transform: scale(0.62);
  opacity: 0.52;
  animation-delay: -22s;
}

@keyframes cloud-drift {
  0% {
    margin-left: -3%;
  }

  50% {
    margin-left: 3%;
  }

  100% {
    margin-left: -3%;
  }
}

.flight-board::before {
  right: 0;
  bottom: 14%;
  left: 0;
  height: 25%;
  background:
    radial-gradient(ellipse at 12% 100%, #6c8c70 0 22%, transparent 23%),
    radial-gradient(ellipse at 35% 120%, #849b78 0 32%, transparent 33%),
    radial-gradient(ellipse at 72% 125%, #779078 0 27%, transparent 28%),
    radial-gradient(ellipse at 95% 115%, #63866e 0 25%, transparent 26%);
  opacity: 0.34;
}

.flight-board::after {
  right: -10%;
  bottom: -18%;
  left: -10%;
  height: 35%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0));
  clip-path: ellipse(65% 35% at 50% 100%);
  opacity: 0.38;
}

.flight-grid {
  z-index: 1;
  background-image:
    linear-gradient(180deg, transparent 0 71%, rgba(255, 255, 255, 0.12) 71.2%, transparent 71.5%);
  pointer-events: none;
}

.plane {
  z-index: 2;
  width: clamp(110px, 18%, 210px);
  aspect-ratio: 2.2;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 10px 12px rgba(25, 50, 68, 0.42));
  transform-origin: 50% 50%;
  transition: left 0.04s linear, top 0.04s linear, transform 0.08s linear;
}

.plane-art {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: aircraft-bob 2.4s ease-in-out infinite;
}

.plane.is-idle {
  animation: idle-flight 12s linear infinite;
  will-change: left, top, transform, opacity;
}

@keyframes idle-flight {
  0% {
    left: -8%;
    top: 73%;
    opacity: 0.65;
    transform: translate(-50%, -50%) rotate(-7deg);
  }

  3% {
    opacity: 1;
  }

  97% {
    opacity: 1;
  }

  100% {
    left: 108%;
    top: 20%;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-20deg);
  }
}

.plane::after {
  position: absolute;
  z-index: -1;
  top: 52%;
  right: 82%;
  width: 72%;
  height: 3px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8));
  filter: blur(2px);
  content: "";
  transform: rotate(-8deg);
}

@keyframes aircraft-bob {
  0%, 100% {
    margin-top: 0;
  }

  50% {
    margin-top: -4px;
  }
}

.countdown-overlay {
  position: fixed;
  z-index: 1000;
  gap: 14px;
  background: rgba(12, 14, 17, 0.68);
  backdrop-filter: blur(8px);
}

.countdown-caption {
  color: #f2c400;
  letter-spacing: 0.24em;
}

.countdown-number {
  width: clamp(160px, 24vw, 270px);
  background: linear-gradient(145deg, #303135, #17181a);
  border: 2px solid rgba(242, 196, 0, 0.82);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38), inset 0 0 0 8px rgba(242, 196, 0, 0.07);
  color: #f2c400;
}

.crash-preview {
  border-color: #51451d;
  background: #242116;
  color: #c3bdab;
}

.crash-preview strong {
  color: #f2c400;
}

.status-bar {
  background: #1b1c1f;
  border-color: #34363a;
  color: #c4c5c6;
}

.bet-block label,
.phone-label,
.auto-input-wrap {
  color: #b7b8bb;
}

.bet-block input,
.auto-input-wrap input,
.phone-input {
  border-color: #44464b;
  background: #131416;
  color: #fff;
}

.bet-block input:focus,
.auto-input-wrap input:focus,
.phone-input:focus {
  outline-color: rgba(242, 196, 0, 0.18);
  border-color: #c7a400;
}

.chip {
  border-color: #3d3e42;
  background: #292a2e;
  color: #eee;
}

.chip:hover {
  border-color: #e0b700;
}

.primary-btn {
  background: linear-gradient(135deg, #f2c400, #d7a900);
  color: #171509;
  box-shadow: 0 6px 16px rgba(242, 196, 0, 0.16);
}

.secondary-btn {
  background: linear-gradient(135deg, #ed4149, #bd2835);
  color: #fff;
}

.wallet-panel,
.auto-block,
.voice-block {
  border-color: #38393d;
  background: #1b1c1f;
}

.wallet-panel h2,
.history-panel h2 {
  color: #f2c400;
}

.reset-btn {
  border-color: #414247;
  color: #b1b2b5;
}

.reset-btn:hover {
  border-color: #d1ad12;
  color: #f5f5f1;
}

.deposit-btn {
  background: linear-gradient(135deg, #a8cf38, #8db42b);
  color: #171a0d;
}

.withdraw-btn {
  background: linear-gradient(135deg, #ed4149, #c32d38);
  color: #fff;
}

.switch-row {
  color: #e2e2df;
}

.switch-row input {
  accent-color: #f2c400;
}

.history-panel {
  border-top-color: #38393d;
}

#historyList {
  color: #b4b5b7;
}

#historyList li {
  background: #191a1d;
  border-color: #303136;
}

@media (prefers-reduced-motion: no-preference) {
  .primary-btn:not(:disabled):hover,
  .secondary-btn:not(:disabled):hover,
  .wallet-btn:not(:disabled):hover {
    filter: brightness(1.08);
  }
}
