:root {
  --bg-main: linear-gradient(180deg, #73d4ff 0%, #2f9fff 48%, #0c73f0 100%);
  --header-gradient: linear-gradient(160deg, #ffeb62 0%, #ffb019 100%);
  --card-bg: rgba(255, 255, 255, 0.2);
  --card-border: rgba(255, 255, 255, 0.45);
  --text-light: #ffffff;
  --yellow: #fff36e;
  --orange: #ffb620;
  --orange-dark: #f27a00;
  --block-gradient: linear-gradient(145deg, #29c5ff 0%, #1289f4 100%);
  --glow-blue: 0 0 0 2px rgba(176, 241, 255, 0.28), 0 13px 22px rgba(7, 64, 146, 0.36);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-main);
  color: var(--text-light);
  font-family: "Baloo 2", "Poppins", sans-serif;
  display: flex;
  justify-content: center;
  padding: 18px 14px 24px;
}

.app-shell {
  width: min(430px, 100%);
  background:
    radial-gradient(circle at 12% 7%, rgba(255, 255, 255, 0.34) 0 10%, transparent 33%),
    radial-gradient(circle at 90% 12%, rgba(255, 249, 179, 0.42) 0 8%, transparent 30%),
    radial-gradient(circle at 60% 100%, rgba(50, 164, 58, 0.3) 0 24%, transparent 52%),
    linear-gradient(180deg, #35b5ff 0%, #1496ff 54%, #0f7bed 100%);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 26px;
  box-shadow: 0 22px 36px rgba(4, 44, 110, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.35);
  padding: 14px 14px 18px;
  overflow: hidden;
  position: relative;
}

.app-header {
  background: linear-gradient(180deg, #0962ff 0%, #18a8ff 100%);
  border-radius: 20px;
  box-shadow: 0 10px 22px rgba(0, 66, 172, 0.4), inset 0 -5px 10px rgba(0, 0, 0, 0.14);
  padding: 14px 12px;
  text-align: center;
  border: 2px solid rgba(155, 228, 255, 0.8);
}

.app-header h1 {
  margin: 0;
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--yellow);
  text-shadow: 0 3px 0 rgba(8, 64, 137, 0.9), 0 0 12px rgba(255, 239, 120, 0.65);
}

.saldo-card {
  margin-top: 14px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--card-border);
  border-radius: 20px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.44), 0 14px 18px rgba(4, 76, 146, 0.3);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.saldo-label {
  display: block;
  font-size: 0.82rem;
  opacity: 0.95;
}

.saldo-valor {
  display: block;
  margin-top: 4px;
  font-size: 1.45rem;
  color: #fffae3;
  text-shadow: 0 2px 0 rgba(3, 78, 153, 0.8);
}

.btn-resgatar {
  border: none;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #02558e;
  background: linear-gradient(180deg, #fffdf3 0%, #b8e6ff 100%);
  box-shadow: 0 7px 14px rgba(0, 56, 123, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.premios {
  margin-top: 15px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0 2px, transparent 2px 18px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.15) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, #52ceff 0%, #1d9dfc 100%);
  border-radius: 20px;
  border: 7px solid #fff3ce;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), 0 16px 28px rgba(4, 78, 160, 0.35);
  padding: 14px 11px 11px;
  position: relative;
}

.premios::before {
  content: "";
  position: absolute;
  inset: -14px -8px auto;
  height: 16px;
  border-radius: 20px 20px 6px 6px;
  background: linear-gradient(180deg, #fff7dc 0%, #ffe9b3 100%);
  border: 2px solid rgba(241, 210, 151, 0.95);
  pointer-events: none;
  box-shadow: 0 3px 0 rgba(214, 170, 78, 0.65);
}

.premios::after {
  content: "";
  position: absolute;
  inset: auto 0 -10px;
  height: 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.15);
  filter: blur(6px);
  z-index: 0;
}

.grid-numeros {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  position: relative;
  z-index: 4;
}

.bloco-numero {
  border: none;
  border-radius: 16px;
  padding: 16px 8px;
  font-size: 1.32rem;
  font-weight: 700;
  color: #ffffff;
  background:
    radial-gradient(circle at 28% 20%, rgba(173, 247, 255, 0.46), transparent 45%),
    var(--block-gradient);
  box-shadow: var(--glow-blue), inset 0 -7px 12px rgba(0, 45, 110, 0.35), inset 0 2px 2px rgba(255, 255, 255, 0.35);
  text-shadow: 0 2px 0 rgba(12, 87, 167, 0.95);
  border: 2px solid rgba(233, 252, 255, 0.8);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
  cursor: default;
}

.bloco-numero:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.05);
}

.bloco-numero.atingido {
  animation: pulseAcerto 0.6s ease;
  box-shadow: 0 0 0 3px rgba(255, 238, 152, 0.92), 0 0 24px rgba(255, 242, 165, 0.95), 0 0 34px rgba(147, 236, 255, 0.65), var(--glow-blue);
}

.campo-area {
  margin-top: 16px;
  height: 136px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.35), transparent 55%),
    linear-gradient(180deg, rgba(47, 141, 255, 0.52) 0%, rgba(45, 175, 64, 0.56) 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: visible;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 12px 22px rgba(6, 90, 39, 0.28);
}

.grama {
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background:
    repeating-linear-gradient(90deg, rgba(56, 168, 54, 0.95) 0 12px, rgba(43, 145, 44, 0.95) 12px 24px);
  box-shadow: inset 0 6px 8px rgba(255, 255, 255, 0.15);
}

.grama::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 36%;
  width: 90px;
  height: 16px;
  transform: translateX(-50%);
  border-top: 3px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
}

.trilha {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bola {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 80%;
  transform: translate(-50%, -50%) translate(0, 0);
  background:
    radial-gradient(circle at 30% 30%, #ffffff 0 30%, #f5f5f5 32%, #e5eef7 56%, #c5d6e9 100%);
  box-shadow: 0 9px 14px rgba(11, 63, 24, 0.4), inset 0 -8px 8px rgba(117, 127, 137, 0.28);
  z-index: 40;
  transition: transform 1s cubic-bezier(.2,.8,.2,1), filter 0.2s ease;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.bola.chutando {
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 16px rgba(255, 250, 162, 0.76));
}

.bottom-bar {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: end;
  gap: 10px;
}

.btn-bottom {
  border: none;
  cursor: pointer;
}

.btn-bottom-side {
  min-height: 76px;
  border-radius: 22px;
  background: linear-gradient(180deg, #59c5ff 0%, #1f88ff 100%);
  box-shadow: 0 10px 18px rgba(2, 48, 132, 0.42), inset 0 2px 1px rgba(255, 255, 255, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  padding: 8px 8px 10px;
}

.btn-bottom-icone {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #e9f5ff 100%);
  color: #0f67db;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.18);
}

.btn-bottom-texto {
  margin-top: 8px;
  font-size: 0.95rem;
}

.btn-chutar {
  margin-top: 0;
  min-height: 98px;
  border: none;
  border-radius: 18px;
  padding: 0;
  color: #401800;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  align-items: stretch;
  justify-content: center;
  background: linear-gradient(180deg, #ffd558 0%, var(--orange) 65%, var(--orange-dark) 100%);
  box-shadow: 0 14px 20px rgba(255, 124, 24, 0.4), 0 0 24px rgba(255, 168, 61, 0.4), inset 0 1px 2px rgba(255, 243, 196, 0.8);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.2s ease;
  animation: glowBotao 1.6s ease-in-out infinite;
}

.btn-chutar-topo {
  display: block;
  width: 100%;
  padding: 14px 8px 9px;
  text-align: center;
  font-size: 1.62rem;
  line-height: 1;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #5e2300;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.7);
}

.btn-chutar-sub {
  display: block;
  width: 100%;
  text-align: center;
  padding: 8px 8px 10px;
  font-size: 0.98rem;
  color: #ffe8b3;
  background: linear-gradient(180deg, #d8920f 0%, #be6d00 100%);
  border-top: 1px solid rgba(147, 66, 0, 0.3);
}

.btn-chutar:active {
  transform: scale(0.95);
}

.btn-chutar:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  filter: grayscale(0.12);
}

.status-jogada {
  margin: 12px 0 4px;
  text-align: center;
  font-size: 0.95rem;
  min-height: 20px;
  opacity: 0.98;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(12, 90, 163, 0.75);
}

.status-jogada::before {
  content: "⚡ ";
}

@keyframes pulseAcerto {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes glowBotao {
  0%, 100% {
    box-shadow: 0 14px 20px rgba(255, 124, 24, 0.35), 0 0 16px rgba(255, 168, 61, 0.28), inset 0 1px 2px rgba(255, 243, 196, 0.8);
  }
  50% {
    box-shadow: 0 16px 24px rgba(255, 124, 24, 0.48), 0 0 28px rgba(255, 180, 72, 0.5), inset 0 1px 2px rgba(255, 243, 196, 0.9);
  }
}

@media (min-width: 560px) {
  body {
    padding-top: 24px;
  }

  .app-shell {
    padding: 18px;
  }
}
