/* Training grounds (v10): the home button, the Training Grounds screen, the range HUD and the
   course-clear card. */

/* home button */
.nav-btn.range { border-color: rgba(125,255,107,.5); }
.nav-btn.range:hover { border-color: #7dff6b; box-shadow: 0 0 18px rgba(125,255,107,.35); }
.nav-btn em.new { background: linear-gradient(180deg, #b8ff7a, #4fd14a); color: #062205; font-weight: 900; box-shadow: 0 0 12px rgba(125,255,107,.7); animation: rg-new 1.4s ease-in-out infinite; }
@keyframes rg-new { 50% { transform: scale(1.12); } }
/* seven buttons now: a little tighter so they clear the road chip below */
@media (max-height: 860px) {
  .side-nav { gap: 6px; }
  .side-nav .nav-btn { padding: 6px 8px 5px; }
  .side-nav .nav-btn span { font-size: 20px; }
}
.btn.try { background: linear-gradient(180deg, #8fe86b, #3f9e2c); color: #08240a; border-color: #c4f5a8; box-shadow: 0 4px 0 #24601a; }

/* ---------- Training Grounds screen ---------- */
.range { display: flex; flex-direction: column; gap: 14px; }
.rg-top { display: grid; grid-template-columns: 1fr 280px; gap: 14px; }
.rg-load { display: grid; grid-template-columns: 240px 1fr; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 12px; }
.rg-prev { width: 100%; height: 170px; border-radius: 14px; background: radial-gradient(circle at 50% 80%, rgba(125,255,107,.12), rgba(0,0,0,.25)); }
.rg-pick { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rg-lbl { font-weight: 800; color: var(--muted); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.rg-lbl small { font-size: 11px; letter-spacing: 0; text-transform: none; font-weight: 700; opacity: .8; }
.rg-lbl em { font-style: normal; color: #b8ff7a; margin-left: 6px; letter-spacing: 0; text-transform: none; }
.rg-row { display: flex; gap: 6px; overflow-x: auto; padding: 8px 2px 6px; margin-top: -6px; scrollbar-width: thin; scrollbar-color: rgba(125,255,107,.55) rgba(0,0,0,.25); }
.rg-row::-webkit-scrollbar { height: 7px; }
.rg-row::-webkit-scrollbar-thumb { background: rgba(125,255,107,.55); border-radius: 4px; }
.rg-row::-webkit-scrollbar-track { background: rgba(0,0,0,.25); border-radius: 4px; }
.rg-chip { position: relative; flex: none; width: 84px; padding: 4px 4px 5px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.28); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rg-chip.on { border-color: var(--rc); box-shadow: 0 0 12px var(--rc); background: rgba(255,255,255,.06); }
.rg-chip.test { border-style: dashed; }
.rg-th { width: 76px; height: 38px; }
.rg-none { height: 38px; display: grid; place-items: center; font-size: 22px; opacity: .7; }
.rg-cnm { font-size: 11px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rg-chip em { position: absolute; top: -7px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 8px; font-weight: 900; letter-spacing: .5px; white-space: nowrap; background: #7dff6b; color: #062205; border-radius: 6px; padding: 1px 5px; }
.rg-kit { display: flex; flex-wrap: wrap; gap: 6px; }
.rg-kit span { font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 9px; border: 1px solid color-mix(in srgb, var(--wc) 55%, transparent); background: rgba(0,0,0,.25); }
.rg-kit small { color: var(--muted); }
.rg-st { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.rg-sum { background: linear-gradient(160deg, rgba(125,255,107,.16), rgba(16,24,44,.85)); border: 1px solid rgba(125,255,107,.35); border-radius: 20px; padding: 14px 16px; }
.rg-tot { font-family: var(--head); font-size: 40px; color: var(--gold); text-shadow: 0 0 18px rgba(255,209,102,.5); }
.rg-tot small { font-size: 20px; color: var(--muted); }
.rg-sum p { margin: 8px 0 0; color: var(--muted); font-weight: 700; font-size: 13px; line-height: 1.45; }
.rg-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.rg-c.lab { grid-column: span 2; }
.rg-c { position: relative; text-align: left; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(30,46,70,.92), rgba(12,18,34,.92)); display: flex; flex-direction: column; gap: 4px; transition: transform .12s, box-shadow .2s, border-color .2s; }
.rg-c:hover:not(:disabled) { transform: translateY(-3px); border-color: #7dff6b; box-shadow: 0 0 20px rgba(125,255,107,.3); }
.rg-c.locked { opacity: .5; cursor: default; }
.rg-c.lab { border-color: rgba(255,209,102,.45); background: linear-gradient(180deg, rgba(70,52,22,.9), rgba(24,18,10,.92)); }
.rg-ci { font-size: 34px; line-height: 1; }
.rg-cn { font-family: var(--head); font-size: 19px; }
.rg-cg { color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.35; flex: 1; }
.rg-cs { font-size: 22px; color: var(--gold); letter-spacing: 2px; text-shadow: 0 0 10px rgba(255,209,102,.5); }
.rg-cs i, .rb-st i { font-style: normal; color: rgba(255,255,255,.18); text-shadow: none; }
.rg-cs small { font-size: 12px; color: var(--muted); letter-spacing: 0; margin-left: 8px; text-shadow: none; }
.rg-cp { font-size: 12px; font-weight: 800; color: #b8ff7a; }
.rg-lock { font-weight: 800; color: var(--muted); }
@media (max-width: 1000px) {
  .rg-top { grid-template-columns: 1fr; }
  .rg-load { grid-template-columns: 170px 1fr; }
  .rg-prev { height: 130px; }
  .rg-sum { display: flex; gap: 16px; align-items: center; padding: 10px 14px; }
  .rg-tot { font-size: 30px; white-space: nowrap; }
  .rg-sum p { margin: 0; font-size: 12px; }
}

/* ---------- range HUD ---------- */
.rbar .rb-row { display: flex; gap: 12px; align-items: baseline; font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.rbar .rb-row b { color: var(--text); font-family: var(--head); font-size: 16px; font-weight: 400; }
.rb-st { margin-left: auto; color: var(--gold); font-size: 16px; letter-spacing: 1px; }
.rb-st small { color: var(--muted); font-size: 11px; letter-spacing: 0; }
.range-ctl { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 520px; }
.range-ctl button { padding: 5px 10px; border-radius: 10px; border: 1px solid rgba(255,209,102,.45); background: rgba(10,16,32,.78); font-weight: 800; font-size: 12px; backdrop-filter: blur(6px); white-space: nowrap; }
.range-ctl button:hover { border-color: var(--gold); box-shadow: 0 0 12px rgba(255,209,102,.35); }

/* ---------- course clear ---------- */
.re-stars { display: flex; justify-content: center; gap: 10px; margin: 4px 0 8px; }
.re-stars span { font-size: 64px; line-height: 1; color: rgba(255,255,255,.14); }
.re-stars span.on { color: #ffd166; text-shadow: 0 0 24px rgba(255,209,102,.8); animation: re-star .5s cubic-bezier(.2,1.8,.4,1) both; animation-delay: var(--d); }
.re-stars span.new::after { content: "NEW"; display: block; font-family: var(--body); font-size: 11px; font-weight: 900; color: #b8ff7a; text-shadow: none; letter-spacing: 1px; }
@keyframes re-star { from { transform: scale(0) rotate(-120deg); opacity: 0; } to { transform: none; opacity: 1; } }
.re-tip { color: var(--muted); font-weight: 700; margin: -8px 0 16px; }
.re-prize { color: #b8ff7a; font-weight: 800; margin: -6px 0 16px; }
