/* Voo de Precisão 3.0 — aventura aérea infantil 2.5D */
:root {
  --vp-purple: #8b5cf6;
  --vp-orange: #fb923c;
}

.vp-wrapper {
  background:
    radial-gradient(circle at 50% 22%, rgba(52, 211, 238, .16), transparent 34%),
    radial-gradient(circle at 16% 82%, rgba(250, 204, 21, .08), transparent 32%),
    linear-gradient(160deg, #0d2948 0%, var(--vp-bg-deep) 72%);
}

.vp-topbar {
  background: linear-gradient(180deg, rgba(6, 18, 34, .94), rgba(6, 18, 34, .74));
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: rgba(125, 211, 252, .2);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .18);
}

.vp-hud {
  align-items: flex-start;
  gap: 1rem;
}

.vp-stat-box {
  min-width: 104px;
  padding: .48rem .95rem;
  border-color: rgba(125, 211, 252, .26);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(15, 41, 72, .88), rgba(5, 18, 34, .76));
  backdrop-filter: blur(12px) saturate(1.25);
  box-shadow: 0 9px 25px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .08);
}

.vp-hud-right {
  display: flex;
  align-items: stretch;
  gap: .65rem;
}

.vp-stat-stars { min-width: 82px; }

.vp-level-panel {
  width: min(390px, 42vw);
  padding: .58rem .85rem .62rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(12, 35, 62, .9), rgba(8, 23, 42, .76));
  backdrop-filter: blur(14px) saturate(1.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .1);
}

.vp-level-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .42rem;
}

.vp-level-copy span {
  color: var(--vp-yellow);
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .11em;
}

.vp-level-copy strong {
  color: #fff;
  font-family: var(--vp-font-mono);
  font-size: 1rem;
  text-transform: uppercase;
}

.vp-level-track,
.vp-result-track {
  height: 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(1, 7, 15, .58);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .35);
}

.vp-level-track i,
.vp-result-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22d3ee, #facc15);
  box-shadow: 0 0 12px rgba(34, 211, 238, .7);
  transition: width .22s linear;
}

.vp-level-panel small {
  display: block;
  margin-top: .3rem;
  color: #a9bad2;
  font-size: .58rem;
  font-weight: 700;
  text-align: right;
}

#gameCanvas {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath fill='%23fff' stroke='%2307111f' stroke-width='1.6' d='M5 3l15 13-7 1 4 7-4 2-4-7-4 5z'/%3E%3C/svg%3E") 5 3, pointer;
}

.vp-click-hint {
  padding: .6rem 1.25rem;
  border-color: rgba(125, 211, 252, .35);
  background: linear-gradient(145deg, rgba(11, 33, 59, .94), rgba(5, 17, 32, .9));
  box-shadow: 0 10px 28px rgba(0, 0, 0, .32), inset 0 1px rgba(255, 255, 255, .08);
}

.vp-overlay {
  background:
    radial-gradient(circle at 50% 30%, rgba(14, 165, 233, .16), transparent 34%),
    rgba(2, 8, 17, .84);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  scrollbar-width: none;
}

.vp-overlay::-webkit-scrollbar,
.vp-card::-webkit-scrollbar { display: none; }

.vp-card {
  max-width: 560px;
  padding: 1.65rem 1.8rem;
  border-color: rgba(125, 211, 252, .4);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 0, rgba(56, 189, 248, .17), transparent 30%),
    linear-gradient(145deg, rgba(16, 43, 76, .98), rgba(6, 20, 38, .98));
  box-shadow: 0 30px 85px rgba(0, 0, 0, .65), 0 0 55px rgba(34, 211, 238, .16), inset 0 1px rgba(255, 255, 255, .1);
}

.vp-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 18px;
  pointer-events: none;
}

.vp-intro-card { max-width: 680px; }
.vp-result-card { max-width: 600px; }

.vp-hero-emblem {
  position: relative;
  width: 104px;
  height: 76px;
  margin: -.35rem auto .45rem;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .35));
}

.vp-emblem-sun {
  position: absolute;
  right: 6px;
  top: 3px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff7ad 0 9%, #fde047 32%, #fb923c 72%);
  box-shadow: 0 0 28px rgba(250, 204, 21, .6);
}

.vp-emblem-cloud {
  position: absolute;
  width: 52px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(#f0f9ff, #bae6fd);
  box-shadow: inset 0 -5px 8px rgba(14, 116, 144, .14);
}

.vp-emblem-cloud::before,
.vp-emblem-cloud::after {
  content: "";
  position: absolute;
  bottom: 5px;
  border-radius: 50%;
  background: inherit;
}

.vp-emblem-cloud::before { left: 8px; width: 24px; height: 24px; }
.vp-emblem-cloud::after { right: 6px; width: 18px; height: 18px; }
.vp-emblem-cloud-a { left: 0; top: 28px; transform: scale(.72); opacity: .8; }
.vp-emblem-cloud-b { right: 0; bottom: 5px; transform: scale(.55); opacity: .6; }
.vp-emblem-heli { position: absolute; left: 34px; top: 21px; z-index: 2; font-size: 2.35rem; transform: rotate(-3deg); }

.vp-world-route {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: .45rem;
  margin: 0 auto 1.1rem;
  padding: .75rem .85rem;
  border: 1px solid rgba(125, 211, 252, .16);
  border-radius: 16px;
  background: rgba(3, 14, 28, .46);
}

.vp-world-route div { display: flex; align-items: center; gap: .38rem; text-align: left; }
.vp-world-route b { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 25px; border-radius: 8px; background: linear-gradient(145deg, #fde047, #f59e0b); color: #07111f; font-size: .7rem; box-shadow: 0 5px 12px rgba(245, 158, 11, .22); }
.vp-world-route span { color: #d9eaff; font-size: .66rem; font-weight: 800; line-height: 1.1; }
.vp-world-route i { height: 2px; border-radius: 99px; background: linear-gradient(90deg, rgba(34, 211, 238, .25), rgba(250, 204, 21, .65)); }

.vp-title {
  font-family: var(--vp-font-mono);
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  letter-spacing: -.02em;
}

.vp-instructions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
}

.vp-instruction-item { align-items: flex-start; font-size: .76rem; }

.vp-result-message {
  max-width: 470px;
  margin: 0 auto .85rem;
  color: #bed0e7;
  font-size: .9rem;
  line-height: 1.5;
}

.vp-result-level {
  margin: 0 0 .85rem;
  padding: .75rem .9rem;
  border: 1px solid rgba(125, 211, 252, .2);
  border-radius: 14px;
  background: rgba(3, 14, 28, .5);
  text-align: left;
}

.vp-result-level > span { display: block; color: var(--vp-yellow); font-size: .6rem; font-weight: 900; letter-spacing: .1em; }
.vp-result-level > strong { display: block; margin: .12rem 0 .45rem; color: #fff; font-family: var(--vp-font-mono); font-size: 1.08rem; text-transform: uppercase; }
.vp-result-level > small { display: block; margin-top: .35rem; color: #9fb3cf; font-size: .65rem; font-weight: 700; }

.vp-gameover-stats { grid-template-columns: repeat(4, 1fr); }
.vp-go-val.speed { color: #86efac; }

.vp-actions { gap: .7rem; }

.vp-safe-actions {
  margin-top: .8rem;
  padding-top: .9rem;
  border-top: 1px solid rgba(255, 255, 255, .09);
}

.vp-safe-actions-label {
  display: block;
  margin-bottom: .55rem;
  color: #7288a7;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.vp-social-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.vp-exit-action { margin-top: .6rem; }
.vp-btn-share, .vp-btn-secondary { min-height: 44px; }

.vp-result-card.is-victory {
  border-color: rgba(250, 204, 21, .6);
  background:
    radial-gradient(circle at 50% 0, rgba(250, 204, 21, .2), transparent 32%),
    linear-gradient(145deg, rgba(20, 50, 71, .98), rgba(8, 25, 43, .98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .65), 0 0 65px rgba(250, 204, 21, .22);
}

@media (max-width: 700px) {
  .vp-hud { top: 56px; left: .65rem; right: .65rem; gap: .45rem; }
  .vp-hud-right { gap: .4rem; }
  .vp-stat-box { min-width: 74px; padding: .3rem .65rem; }
  .vp-stat-stars { display: none; }
  .vp-level-panel { width: min(50vw, 265px); padding: .45rem .6rem; }
  .vp-level-copy strong { font-size: .78rem; }
  .vp-level-panel small { display: none; }
  .vp-instructions { grid-template-columns: 1fr; }
  .vp-world-route { grid-template-columns: repeat(5, 1fr); }
  .vp-world-route i { display: none; }
  .vp-world-route div { flex-direction: column; text-align: center; }
  .vp-world-route span { font-size: .56rem; }
  .vp-gameover-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-height: 700px) {
  .vp-card { padding-top: 1.2rem; padding-bottom: 1.2rem; }
  .vp-hero-emblem { height: 58px; transform: scale(.82); margin-top: -.65rem; margin-bottom: .1rem; }
  .vp-desc { margin-bottom: .75rem; }
  .vp-world-route { margin-bottom: .75rem; padding-top: .55rem; padding-bottom: .55rem; }
  .vp-instructions { margin-bottom: .8rem; padding: .7rem; }

  .vp-overlay { padding: .4rem; overflow: hidden; }
  .vp-result-card {
    max-height: calc(100vh - .8rem);
    overflow: hidden;
    padding: .7rem 1.25rem;
  }
  .vp-result-card .vp-card-icon { width: 38px; height: 38px; margin-bottom: .28rem; font-size: 1.1rem; }
  .vp-result-card .vp-eyebrow { margin-bottom: .08rem; }
  .vp-result-card .vp-title { margin-bottom: .24rem; font-size: 1.78rem; }
  .vp-result-message { margin-bottom: .4rem; font-size: .78rem; line-height: 1.3; }
  .vp-record-badge { margin-bottom: .38rem; padding: .3rem .65rem; }
  .vp-result-level { margin-bottom: .45rem; padding: .48rem .7rem; }
  .vp-result-level > strong { margin: .06rem 0 .25rem; font-size: .92rem; }
  .vp-result-level > small { margin-top: .2rem; font-size: .58rem; }
  .vp-gameover-stats { gap: .38rem; margin-bottom: .48rem; }
  .vp-go-stat { padding: .35rem .25rem; }
  .vp-go-label { font-size: .56rem; }
  .vp-go-val { font-size: 1.05rem; }
  .vp-result-card .vp-btn-play { min-height: 42px; padding: .55rem 1rem; font-size: .92rem; }
  .vp-safe-actions { margin-top: .45rem; padding-top: .48rem; }
  .vp-safe-actions-label { margin-bottom: .32rem; }
  .vp-social-actions { gap: .38rem; }
  .vp-btn-share,
  .vp-btn-secondary { min-height: 34px; padding-top: .35rem; padding-bottom: .35rem; font-size: .72rem; }
  .vp-exit-action { margin-top: .35rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
