/* Jet game specific styles. Reuses shared CSS vars + .pac-* classes. */

.jet-body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
}

.jet-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  flex-shrink: 0;
}

.jet-score-wrap {
  display: flex;
  gap: 1rem;
  margin-left: auto;
}

.jet-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.25rem 0.25rem;
  min-height: 0;
}

.jet-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  border-radius: 14px;
  object-fit: contain;
  cursor: pointer;
  background: linear-gradient(#7bc0ff 0%, #b6deff 55%, #d7eeff 100%);
}

/* ------ Start screen ------ */

.jet-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 16, 38, 0.78);
  backdrop-filter: blur(2px);
  border-radius: 14px;
  padding: 1rem;
  z-index: 5;
}

.jet-start[hidden] {
  display: none;
}

.jet-start__card {
  background: var(--bg-2);
  border-radius: 1.25rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 92%;
}

.jet-start__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.jet-start__subtitle {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 1rem;
  line-height: 1.35;
}

.jet-start__btns {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.jet-diff-btn {
  appearance: none;
  border: 0;
  color: #14213d;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.7rem 1.1rem;
  border-radius: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
  min-width: 90px;
}

.jet-diff-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.jet-diff-btn--easy   { background: #8aff80; }
.jet-diff-btn--medium { background: var(--accent); }
.jet-diff-btn--hard   { background: var(--pink); color: #fff; }

/* ------ Game over ------ */
/* Reuses .pac-win / .pac-win__card / .pac-win__btn from shared styles.css */

.jet-final-score {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  opacity: 0.85;
}

/* ------ Rotate overlay ------ */

.jet-rotate {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 16, 38, 0.92);
  border-radius: 14px;
  z-index: 10;
}

.jet-rotate[hidden] {
  display: none;
}

.jet-rotate__card {
  text-align: center;
  padding: 1rem 1.5rem;
}

.jet-rotate__icon {
  font-size: 3.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
  animation: jet-spin 2s linear infinite;
}

.jet-rotate__text {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

@keyframes jet-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
