/* Garimpo (24/11/2026) — todas as regras presas a .jogo-garimpo */
.jogo-garimpo {
  --ga-azul: #5a3218; --ga-azul-2: #7a4826; --ga-ouro: #e2b866; --ga-ouro-2: #b08a3c; --ga-noite: #24150b;
  position: relative; display: flex; flex-direction: column; width: 100%; overflow: hidden;
  border-radius: 18px; background: var(--ga-noite); color: #fff;
  font-family: "Inter", system-ui, sans-serif; box-shadow: 0 12px 34px rgba(23, 26, 44, .22);
  user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}

/* barra: pontos, fase, recorde, botões */
.jogo-garimpo .ga-barra {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px;
  background: linear-gradient(180deg, rgba(92, 54, 28, .97), rgba(52, 30, 15, .97));
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.jogo-garimpo .ga-placar { display: flex; gap: 18px; align-items: flex-end; min-width: 0; }
.jogo-garimpo .ga-num { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.jogo-garimpo .ga-num span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .62); font-weight: 600; }
.jogo-garimpo .ga-num strong { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jogo-garimpo .ga-num-principal strong { font-size: 24px; color: #fff4c2; text-shadow: 0 0 14px rgba(255, 215, 106, .35); }
.jogo-garimpo .ga-batendo strong { color: #ffd76a; }
.jogo-garimpo .ga-acoes { display: flex; gap: 6px; flex-shrink: 0; }
.jogo-garimpo .ga-bt {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .07); color: #fff; font-size: 19px;
  cursor: pointer; transition: background .15s;
}
.jogo-garimpo .ga-bt:hover { background: rgba(255, 255, 255, .14); }
.jogo-garimpo .ga-bt:focus-visible, .jogo-garimpo .ga-botao:focus-visible { outline: 3px solid #ffd76a; outline-offset: 2px; }
.jogo-garimpo .ga-aria { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* palco: o canvas ocupa tudo; as telas ficam por cima */
.jogo-garimpo .ga-palco { position: relative; width: 100%; height: clamp(440px, calc(100dvh - 210px), 860px); }
.jogo-garimpo .ga-canvas { position: absolute; inset: 0; display: block; touch-action: none; cursor: default; }

.jogo-garimpo .ga-tela {
  position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; justify-content: center; padding: 18px;
  background: radial-gradient(120% 90% at 50% 40%, rgba(36, 21, 11, .5), rgba(24, 14, 7, .86));
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.jogo-garimpo .ga-tela[hidden] { display: none; }
.jogo-garimpo .ga-caixa {
  width: min(380px, 100%); max-height: 100%; overflow-y: auto; display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 10px; padding: 26px 22px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(120, 72, 38, .55), rgba(44, 26, 13, .88));
  border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 18px 50px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .12);
  animation: ga-surge .28s ease-out;
}
@keyframes ga-surge { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.jogo-garimpo .ga-titulo { display: flex; flex-direction: column; line-height: .95; margin-bottom: 4px; }
.jogo-garimpo .ga-titulo-1 {
  font-size: 46px; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(90deg, #ffe08a, #ffffff 45%, #d8b465); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(255, 158, 196, .35));
}
.jogo-garimpo .ga-titulo-2 { font-size: 18px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--ga-ouro); margin-top: 6px; }
.jogo-garimpo .ga-ola { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .85); }
.jogo-garimpo .ga-sub { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .78); }
.jogo-garimpo .ga-rec { margin: 2px 0 0; font-size: 14px; color: #ffd76a; font-weight: 600; }
.jogo-garimpo .ga-nota { font-size: 13px; color: rgba(255, 255, 255, .6); margin-top: 4px; }
.jogo-garimpo .ga-como { list-style: none; margin: 4px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 9px; text-align: left; width: 100%; }
.jogo-garimpo .ga-como li { display: flex; gap: 10px; align-items: center; font-size: 15px; color: rgba(255, 255, 255, .9); line-height: 1.3; }
.jogo-garimpo .ga-como i {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .09); color: #ffd76a; font-size: 16px;
}

.jogo-garimpo .ga-botao {
  width: 100%; min-height: 48px; border-radius: 14px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  transition: transform .12s, box-shadow .15s, background .15s;
}
.jogo-garimpo .ga-principal {
  border: 0; color: #2a1e05; background: linear-gradient(180deg, #ffe08a, #d8b465 60%, #b08a3c);
  box-shadow: 0 8px 22px rgba(216, 180, 101, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.jogo-garimpo .ga-principal:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(216, 180, 101, .45), inset 0 1px 0 rgba(255, 255, 255, .6); }
.jogo-garimpo .ga-principal:active { transform: translateY(1px); }
.jogo-garimpo .ga-sec { border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #fff; font-weight: 600; font-size: 15px; }
.jogo-garimpo .ga-sec:hover { background: rgba(255, 255, 255, .12); }

.jogo-garimpo .ga-pausa-tit, .jogo-garimpo .ga-fim-tit { font-size: 30px; font-weight: 800; }
.jogo-garimpo .ga-fim-pts {
  font-size: 50px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: #fff4c2;
  text-shadow: 0 0 24px rgba(255, 215, 106, .45);
}
.jogo-garimpo .ga-msg { margin: 0; min-height: 20px; font-size: 15px; color: rgba(255, 255, 255, .85); }
.jogo-garimpo .ga-novo { color: #ffd76a; font-weight: 700; }
.jogo-garimpo .ga-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; width: 100%; margin: 4px 0 6px; }
.jogo-garimpo .ga-stats div { padding: 9px 6px; border-radius: 12px; background: rgba(255, 255, 255, .07); display: flex; flex-direction: column; gap: 2px; }
.jogo-garimpo .ga-stats span { font-size: 12px; color: rgba(255, 255, 255, .6); text-transform: uppercase; letter-spacing: .05em; }
.jogo-garimpo .ga-stats strong { font-size: 19px; font-weight: 800; }

/* celular: o jogo vai de ponta a ponta e ocupa a altura toda */
@media (max-width: 575.98px) {
  .jogo-garimpo { border-radius: 14px; }
  .jogo-garimpo .ga-palco { height: calc(100dvh - 190px); min-height: 400px; }
  .jogo-garimpo .ga-placar { gap: 12px; }
  .jogo-garimpo .ga-num-principal strong { font-size: 21px; }
  .jogo-garimpo .ga-num strong { font-size: 15px; }
  .jogo-garimpo .ga-bt { width: 42px; height: 42px; }
}

/* tela cheia do site (jogos.js) */
.jogo-raiz.jogo-garimpo.is-cheia {
  max-width: none; border-radius: 0; background: var(--ga-noite); overflow: hidden;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
.jogo-raiz.jogo-garimpo.is-cheia .ga-palco { flex: 1; height: auto; min-height: 0; }

@media (prefers-reduced-motion: reduce) { .jogo-garimpo .ga-caixa { animation: none; } }

/* modos e botão cavar/estaca */
.jogo-garimpo .ga-modos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin: 2px 0 4px; }
.jogo-garimpo .ga-modo { display: flex; flex-direction: column; gap: 2px; padding: 9px 4px; border-radius: 12px; cursor: pointer; font: inherit;
  border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; }
.jogo-garimpo .ga-modo strong { font-size: 15px; }
.jogo-garimpo .ga-modo small { font-size: 11px; color: rgba(255, 255, 255, .65); }
.jogo-garimpo .ga-modo.is-on { border-color: var(--ga-ouro); background: rgba(226, 184, 102, .2); box-shadow: inset 0 0 0 1px var(--ga-ouro); }
.jogo-garimpo .ga-bt-modo span { font-size: 20px; line-height: 1; }
.jogo-garimpo .ga-bt-modo.is-estaca { background: rgba(224, 65, 47, .35); border-color: rgba(255, 140, 120, .6); }
@media (max-width: 575.98px) { .jogo-garimpo .ga-placar { gap: 10px; } }
