/* Grapple Grove styles */
.swing #front { cursor: crosshair; }
.swing #front.grabbing { cursor: grabbing; }

.lvlname {
  margin: 2px 0 0;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--muted);
}

.swing-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.pill-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--bg);
  border: 2px solid var(--line);
  font-weight: 800;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.swing-progress {
  position: fixed;
  z-index: 3;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 70px);
  left: 50%;
  transform: translateX(-50%);
  width: min(260px, 68vw);
  pointer-events: none;
}

.swing-progress-track {
  position: relative;
  height: 8px;
  border-radius: 99px;
  background: rgba(18, 28, 22, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.swing-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, #2fbf71, #ffd23f);
  transition: width 0.08s linear;
}

.swing-progress-dot {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffd23f;
  border: 2.5px solid #231e29;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.swing-controls {
  position: fixed;
  z-index: 3;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  pointer-events: auto;
}

.action-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 8px 18px;
  border-radius: 99px;
  border: 3px solid #fff;
  background: #e67e22;
  color: #fff;
  font: 800 0.95rem/1 var(--body);
  box-shadow: 0 3px 0 #935116, 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.12s ease, opacity 0.2s ease;
}

.action-pill.secondary {
  background: var(--green);
  box-shadow: 0 3px 0 #1b4335, 0 6px 16px rgba(0, 0, 0, 0.25);
}

.action-pill:hover { transform: translateY(-2px); }
.action-pill:active { transform: translateY(2px); }
.action-pill:disabled { opacity: 0.45; cursor: not-allowed; }

.course-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.course-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 2px solid var(--line);
  background: var(--bg);
  text-align: left;
}

.course-btn:hover { border-color: var(--green); }
.course-btn.active { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.course-btn b { font: 400 1.1rem/1.1 var(--display); display: block; }
.course-btn small { color: var(--muted); font-size: 0.8rem; }
.course-btn .stars-sm { color: var(--gold); font-size: 1.15rem; letter-spacing: 2px; }

.book.end { text-align: center; width: min(92vw, 420px); }
.end h2 { font-size: 1.85rem; margin-top: 4px; }
.stars { margin: 8px 0 4px; font-size: 2.8rem; line-height: 1; letter-spacing: 6px; }
.stars span { color: var(--line); }
.stars span.on { color: var(--gold); text-shadow: 0 3px 0 var(--gold-ink); }
.endbtns { display: flex; gap: 8px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.btn { min-height: 44px; padding: 8px 18px; border-radius: 99px; font-weight: 800; border: 2px solid var(--line); background: transparent; }
.btn.go { background: var(--gold); border-color: #fff; color: #3a2400; box-shadow: 0 3px 0 var(--gold-ink); }
