:root {
  --bg: #eef3f1;
  --card: #ffffff;
  --ink: #243038;
  --muted: #6b7680;
  --line: #e3eae7;
  --teal: #12b38a;
  --teal-dark: #0b6f58;
  --navy: #2a313c;
  --orange: #ff6b00;
  --orange-2: #ff851a;
  --green: #1ecf7a;
  --red: #e23d4a;
  --gold: #f5c542;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: #dfe7e4;
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.phone {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--bg);
  padding-bottom: 92px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}

.logo-img {
  display: block;
  height: 28px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.flag { font-size: 16px; line-height: 1; }

.btn-login,
.btn-reg,
.btn-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.btn-login {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd8d4;
}

.btn-reg,
.btn-orange {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(180deg, var(--orange-2), var(--orange));
  box-shadow: 0 6px 14px rgba(255, 107, 0, 0.28);
}

.btn-block {
  width: 100%;
  height: 48px;
  font-size: 16px;
  border-radius: 10px;
}

.nav {
  display: flex;
  gap: 4px;
  padding: 10px 12px 0;
  overflow: auto;
}

.nav span {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
}

.nav .on {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.promo {
  position: relative;
  margin: 12px;
  min-height: 168px;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 30%, rgba(255, 215, 90, 0.35), transparent 28%),
    linear-gradient(115deg, #0b4a3a 0%, #14664d 42%, #0e3d32 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(20, 60, 48, 0.18);
}

.promo-art { position: absolute; inset: 0; pointer-events: none; }

.coin {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9a0, #e2b000 55%, #b8860b);
  box-shadow: inset 0 0 0 3px rgba(180, 120, 0, 0.25);
}

.coin::after {
  content: "$";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #8a5a00;
}

.c1 { top: 16px; right: 72px; }
.c2 { top: 58px; right: 28px; width: 22px; height: 22px; }
.c3 { bottom: 22px; right: 90px; width: 18px; height: 18px; }
.c4 { top: 8px; right: 18px; width: 16px; height: 16px; opacity: 0.85; }

.leaf {
  position: absolute;
  background: #1aa36a;
  border-radius: 0 80% 0 80%;
  transform: rotate(-20deg);
  opacity: 0.55;
}
.l1 { width: 70px; height: 40px; right: -8px; bottom: 8px; }
.l2 { width: 50px; height: 28px; right: 40px; bottom: -6px; background: #0e7a4e; }

.promo-copy {
  position: relative;
  padding: 18px 130px 22px 16px;
}

.promo-kicker {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.9;
  margin-bottom: 6px;
}

.promo h1 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 12px;
}

.promo h1 em {
  font-style: normal;
  color: var(--gold);
}

.dots {
  position: absolute;
  left: 16px;
  bottom: 8px;
  display: flex;
  gap: 5px;
}

.dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
}

.dots .on { background: #fff; }

.card,
.block {
  margin: 0 12px 12px;
}

.card {
  background: var(--card);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 16px rgba(24, 40, 36, 0.06);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.card-head strong { font-size: 15px; }

.live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--red);
}

.live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(226, 61, 74, 0.55);
  animation: pulse 1.4s infinite;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 7px rgba(226, 61, 74, 0); }
}

.history {
  display: flex;
  gap: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.history span {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: #eef3f1;
  color: var(--ink);
}

.history span.hot { color: #b45309; background: #fff4d6; }
.history span.low { color: var(--red); background: #fde8ea; }
.history span.ok { color: var(--teal-dark); background: #e5f7f1; }

.stage {
  position: relative;
  height: 210px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #243038 0%, #1a2228 100%);
}

#chart { display: block; width: 100%; height: 100%; }

.stage-overlay {
  position: absolute;
  inset: 12px 12px auto 12px;
  pointer-events: none;
}

.mult {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.mult span { font-size: 0.55em; margin-left: 2px; }
.mult.fly { color: var(--green); }
.mult.wait { color: #d7dee4; }
.mult.crash { color: #ff6b7a; }

.stage-status {
  margin-top: 6px;
  font-size: 12px;
  color: #a9b4bd;
  font-weight: 600;
}

.plane {
  position: absolute;
  width: 54px;
  height: 27px;
  left: 0;
  top: 0;
  filter: drop-shadow(0 6px 8px rgba(255, 107, 0, 0.35));
  transform: translate(-20px, -10px);
  pointer-events: none;
  opacity: 0;
}

.ticker {
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 10px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker span {
  display: inline-block;
  padding-right: 24px;
  animation: marquee 22s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker b { color: var(--teal-dark); font-weight: 700; }

.crash-lead {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 12px;
}

.crash-lead b { color: var(--orange); }

h2 {
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--ink);
}

.block h2 { padding: 0 2px; }

.games {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.game p {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
}

.thumb {
  position: relative;
  height: 110px;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.thumb span {
  position: absolute;
  top: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,0.5);
  border-radius: 999px;
  padding: 2px 6px;
  z-index: 1;
}

.thumb span:first-child { left: 6px; }
.thumb span:last-child { right: 6px; }

.t-aviator { background-image: url("../img/game-aviator.png"); }
.t-space { background-image: url("../img/game-spaceman.png"); }
.t-jet { background-image: url("../img/game-jetx.png"); }

.steps { list-style: none; display: grid; gap: 8px; }

.steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--bg);
  border-radius: 10px;
  padding: 10px;
}

.steps li span {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #e5f7f1;
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.steps strong { display: block; font-size: 14px; margin-bottom: 2px; }
.steps em { font-style: normal; font-size: 12px; color: var(--muted); line-height: 1.4; }

.wins { list-style: none; display: grid; gap: 8px; }

.wins li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
}

.wins .who { color: var(--ink); }
.wins .x { color: var(--teal-dark); font-weight: 800; }
.wins .mxn { color: var(--orange); font-weight: 700; }

.foot {
  color: #8a949c;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  padding: 4px 16px 8px;
}

.sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: linear-gradient(180deg, transparent, rgba(238, 243, 241, 0.96) 30%);
}

.sticky-cta {
  max-width: 406px;
  width: 100%;
  margin: 0 auto;
  height: 48px;
  font-size: 16px;
  border-radius: 10px;
  display: flex;
}

@media (min-width: 431px) {
  body { background: #cfd8d4; }
  .phone {
    border-left: 1px solid #d5ddda;
    border-right: 1px solid #d5ddda;
  }
}
