.pistas-box, .monte-box { position: relative; }
.pistas-toggle {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  box-shadow: none;
  min-height: 36px;
  padding: 0 0 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: inherit;
}
.pistas-toggle:active { transform: none; box-shadow: none; }
.pistas-toggle .chev { color: var(--accent); font-size: 12px; letter-spacing: .12em; }
.pistas-box.fechado #hand { display: none; }
.leque-wrap { margin: 0 0 12px; min-height: 96px; }
.leque-wrap small {
  display: block;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 10px;
  color: var(--accent);
  font-weight: 800;
  margin: 0 0 6px;
}
.leque {
  position: relative;
  height: 92px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.carta-costa, .flip-back {
  background: #1a1410 url("verso-cinema.svg?v=1") center/cover no-repeat;
}
.carta-costa {
  width: 54px;
  height: 82px;
  border-radius: 7px;
  border:1px solid #d7a24a;
  box-shadow: 0 4px 0 #6b4d2f, 0 10px 18px #0009, inset 2px 2px 2px #fff4, inset -3px -3px 5px #2b190866;
  margin-left: -30px;
  transform-origin: 50% 100%;
  flex: 0 0 auto;
  min-height:82px;
  padding:0;
  cursor:pointer;
  transition:transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.carta-costa:disabled { opacity:1; cursor:default; }
.monte-box.compra-ativa { border-color:#65d5cc; box-shadow:inset 0 1px 0 #fff3,0 0 16px #65d5cc55,0 8px 18px #0005; }
.monte-box.compra-ativa .carta-costa:not(:disabled):hover,
.monte-box.compra-ativa .carta-costa:not(:disabled):focus-visible { transform:translateY(-10px) rotate(var(--rot)) scale(1.05) !important; filter:brightness(1.12); }
.carta-costa:first-child { margin-left: 0; }
.flip-stage {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #061823cc;
  padding: 24px;
}
.flip-stage[hidden] { display: none; }
.flip-card {
  width: min(240px, 68vw);
  height: min(360px, 102vw);
  perspective: 900px;
}
.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: card-rise 1.1s cubic-bezier(.18,.8,.22,1) both, card-flip 1.15s .95s ease-in-out forwards;
}
.flip-back, .flip-front {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 8px 0 #62482f, 0 24px 46px #000c, inset 2px 2px 2px #fff3, inset -4px -5px 8px #0005;
}
.flip-front {
  background: linear-gradient(145deg, #fff9eb, #f1e8d5 64%, #d8c9aa);
  border: 2px solid #d7a24a;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 12px 14px;
  text-align: center;
}
.flip-front small {
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #725426;
  font-weight: 800;
  font-size: 11px;
}
.flip-front p { margin: 8px 0 0; color: #28251f; font-weight: 650; line-height: 1.3; font-size: 14px; }
.pipoca-chamada {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #725426;
  text-align: center;
}
.pipoca-chamada span {
  font-size: 13px;
  font-weight: 650;
}
.pipoca-chamada strong {
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: .1em;
}
.flip-front .pipoca-valor {
  margin-top: 14px;
  font-size: 16px;
  text-align: center;
}
.pipoca-art {
  display: block;
  width: 90%;
  height: auto;
  max-height: 58%;
  object-fit: contain;
  background: #fff;
  margin: 14px auto 0;
  border-radius: 10px;
  border:1px solid #b98a43;
  box-shadow:inset 0 0 0 3px #fff8,0 5px 10px #4d351f55;
}
.tile-art {
  display: block;
  width: 100%;
  height: 92px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  margin: 0 0 6px;
}
.pipoca-mark {
  width: 84px; height: 84px; margin: 16px auto 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #f4efe3, #c4b48a 55%, #7a6a48);
  display: grid; place-items: center;
  font-size: 40px;
}
.flip-msg {
  margin: 18px 0 0;
  max-width: 28ch;
  text-align: center;
  color: #f1f8fc;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.35;
}
@keyframes card-rise {
  from { transform: translateY(42vh) scale(.35); }
  to   { transform: translateY(0) scale(1); }
}
@keyframes card-flip {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(180deg); }
}
@media (prefers-reduced-motion: reduce) {
  .flip-inner { animation: none; transform: rotateY(180deg); }
}
