/* Game — timing meter (CourtHeat) */

/* ----- Page shell (aligned with Discover / Locker) ----- */
html {
  overflow-y: scroll;
}

body.heatcheck-page {
  background:
    linear-gradient(135deg, rgba(10, 10, 10, 0.94) 0%, rgba(10, 10, 10, 0.97) 45%, rgba(10, 10, 10, 0.95) 100%),
    url("images/basketballcourt.png");
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
  color: var(--color-secondary);
  font-family: var(--font-card), "Inter", sans-serif;
  margin: 0;
  padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body.heatcheck-page .container {
  margin: 0 auto;
  flex: 1;
  width: 100%;
}

body.heatcheck-page .feed-layout {
  max-width: 560px;
}

body.heatcheck-page .hamburger {
  position: fixed;
  top: calc(1.5rem + env(safe-area-inset-top, 0px));
  left: calc(1.5rem + env(safe-area-inset-left, 0px));
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  line-height: 1;
  background: rgba(10, 10, 10, 0.92);
  border: 1px solid rgba(255, 107, 0, 0.35);
  border-radius: 8px;
  color: var(--color-secondary);
  z-index: 20;
  cursor: pointer;
  padding: 0.5rem;
  backdrop-filter: blur(10px);
  touch-action: manipulation;
}

body.heatcheck-page .hamburger:hover {
  background: rgba(255, 107, 0, 0.12);
  border-color: rgba(255, 107, 0, 0.55);
}

body.heatcheck-page .sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  background: #0a0a0a;
  padding-top: 5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 2rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 15;
  border-right: 1px solid rgba(255, 107, 0, 0.2);
  box-sizing: border-box;
}

body.heatcheck-page .sidebar.open {
  left: 0;
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
}

body.heatcheck-page .sidebar a,
body.heatcheck-page .sidebar button {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-secondary);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  background: none;
  border: none;
  text-align: left;
  padding: 1rem 1.5rem;
  cursor: pointer;
  border-radius: 12px;
  margin: 0.2rem 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

body.heatcheck-page .sidebar a:hover,
body.heatcheck-page .sidebar button:hover {
  color: var(--color-secondary);
  transform: translateX(2px);
  background: rgba(255, 255, 255, 0.055);
}

body.heatcheck-page .nav-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

body.heatcheck-page .nav-icon--svg {
  filter: none;
  color: #f5f5f5;
}

body.heatcheck-page .nav-icon--color {
  filter: none;
}

body.heatcheck-page .legal-footer {
  position: relative;
}

body.heatcheck-page .legal-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.45), transparent);
}

.heatcheck-main {
  max-width: 480px;
  margin: 0 auto;
  padding: 4.5rem 1rem 2.5rem;
}

.heatcheck-card {
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px) saturate(1.02);
  -webkit-backdrop-filter: blur(12px) saturate(1.02);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.heatcheck-card--just-made {
  border-color: rgba(100, 210, 140, 0.55);
  box-shadow:
    0 0 0 1px rgba(100, 210, 140, 0.25),
    0 8px 32px rgba(40, 120, 70, 0.2),
    var(--shadow-card);
}

.heatcheck-card--just-missed {
  border-color: rgba(230, 100, 90, 0.5);
  box-shadow:
    0 0 0 1px rgba(230, 100, 90, 0.2),
    0 8px 28px rgba(120, 40, 40, 0.18),
    var(--shadow-card);
}

@media (prefers-reduced-motion: no-preference) {
  .heatcheck-card--just-missed {
    animation: heatcheck-card-shake 0.38s ease-out;
  }
}

@keyframes heatcheck-card-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(5px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(3px);
  }
}

.heatcheck-streak-row {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
}

.heatcheck-streak-row--single {
  justify-content: center;
}

.heatcheck-streak-row--single .heatcheck-streak-pill {
  min-width: 140px;
}

.heatcheck-play-shell {
  margin-bottom: 0.5rem;
}

.heatcheck-intro {
  padding: 1.1rem 1rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--surface-border);
  margin-bottom: 0.5rem;
}

.heatcheck-intro__title {
  font-family: var(--font-card);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--color-secondary);
  text-align: center;
}

.heatcheck-intro__list {
  margin: 0 0 1.1rem;
  padding: 0 0 0 1.2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.heatcheck-intro__list li {
  margin-bottom: 0.5rem;
}

.heatcheck-intro__list li:last-child {
  margin-bottom: 0;
}

.heatcheck-intro__list strong {
  color: var(--color-secondary);
  font-weight: 600;
}

.heatcheck-intro__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.95rem;
}

.heatcheck-intro__actions .heatcheck-start-btn {
  margin-top: 0;
  margin-bottom: 0;
}

.heatcheck-start-btn {
  display: block;
  width: 100%;
  font-family: var(--font-card);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--color-accent) 0%, #e65f00 100%);
  color: var(--color-secondary);
  box-shadow: 0 2px 16px rgba(255, 107, 0, 0.35);
  transition: filter 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
  margin-top: 0.95rem;
  margin-bottom: 0.65rem;
}

.heatcheck-start-btn:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.heatcheck-start-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(0.15);
}

.heatcheck-intro__hint {
  margin: 0;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.heatcheck-lobby-best {
  margin: 0.75rem 0 0;
  text-align: center;
  font-family: var(--font-card);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(245, 245, 245, 0.78);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.heatcheck-share-btn {
  display: block;
  width: 100%;
  margin-top: 0.65rem;
  font-family: var(--font-card);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 245, 245, 0.92);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}

.heatcheck-share-btn:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
}

.heatcheck-share-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(0.15);
}

.heatcheck-intro__result {
  margin: 1.35rem 0 0;
  padding: 0.55rem 0.85rem;
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  letter-spacing: 0.06em;
}

.heatcheck-intro__result--score {
  font-family: "Press Start 2P", ui-monospace, monospace;
  font-size: clamp(1.25rem, 5vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.25;
  color: #ff2b2b;
  text-shadow:
    0 0 12px rgba(255, 50, 50, 0.45),
    0 0 26px rgba(255, 40, 40, 0.28),
    0 2px 0 rgba(0, 0, 0, 0.82);
  font-variant-numeric: tabular-nums;
}

/* Intro “Score: n” — no colored panel, text only */
.heatcheck-result-banner.heatcheck-intro__result--bare {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.35rem 0;
  margin: 1.15rem 0 0;
  text-transform: none;
}

.heatcheck-intro__result--bare.heatcheck-intro__result--score {
  color: #fff;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.85),
    0 1px 3px rgba(0, 0, 0, 0.55);
}

.heatcheck-intro__result-main {
  display: block;
}

.heatcheck-intro__result-sub {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-card);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(245, 245, 245, 0.78);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.heatcheck-streak-pill {
  text-align: center;
  padding: 0.65rem 1rem;
  min-width: 120px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 107, 0, 0.22);
}

.heatcheck-streak-row--single .heatcheck-shotclock-pill {
  min-width: 140px;
}

.heatcheck-shotclock__display {
  margin-top: 0.35rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.35rem 0.45rem 0.4rem;
  border-radius: 10px;
  background: radial-gradient(120% 90% at 50% 20%, rgba(35, 35, 38, 0.95), rgba(8, 8, 10, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 6px 18px rgba(0, 0, 0, 0.35);
}

.heatcheck-shotclock__num {
  font-family: "Press Start 2P", ui-monospace, monospace;
  font-size: clamp(1.35rem, 5.5vw, 1.65rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.08em;
  color: #e8a0a0;
  text-shadow:
    0 0 10px rgba(220, 130, 130, 0.22),
    0 0 20px rgba(200, 100, 100, 0.12),
    0 2px 0 rgba(0, 0, 0, 0.82);
  font-variant-numeric: tabular-nums;
  padding: 0.15rem 0.1rem 0;
}

.heatcheck-shotclock-pill.heatcheck-shotclock--danger .heatcheck-shotclock__num {
  color: #f0b0a8;
  text-shadow:
    0 0 10px rgba(235, 150, 130, 0.28),
    0 0 22px rgba(220, 120, 110, 0.16),
    0 2px 0 rgba(0, 0, 0, 0.82);
}

.heatcheck-shotclock__bar {
  height: 10px;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.heatcheck-shotclock__bar-fill {
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(105, 235, 155, 0.98) 0%,
    rgba(45, 155, 95, 0.92) 45%,
    rgba(255, 165, 85, 0.95) 100%
  );
  box-shadow: 0 0 16px rgba(90, 200, 130, 0.25);
  transition: width 0.05s linear, filter 0.1s ease;
}

.heatcheck-shotclock-pill.heatcheck-shotclock--danger .heatcheck-shotclock__bar-fill {
  background: linear-gradient(
    90deg,
    rgba(255, 205, 85, 0.98) 0%,
    rgba(255, 125, 105, 0.98) 55%,
    rgba(255, 75, 85, 0.98) 100%
  );
  box-shadow: 0 0 18px rgba(255, 100, 90, 0.35);
  animation: heatcheck-shotclock-danger-pulse 0.9s ease-in-out infinite;
}

@keyframes heatcheck-shotclock-danger-pulse {
  0%,
  100% {
    transform: scaleY(1);
    filter: brightness(1) saturate(1);
  }
  50% {
    transform: scaleY(1.04);
    filter: brightness(1.12) saturate(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .heatcheck-shotclock-pill.heatcheck-shotclock--danger .heatcheck-shotclock__bar-fill {
    animation: none !important;
  }
}

.heatcheck-streak-pill .label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-secondary-muted);
  margin-bottom: 0.15rem;
}

.heatcheck-streak-pill .value {
  font-family: var(--font-card);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--color-secondary);
  font-variant-numeric: tabular-nums;
}

.heatcheck-meter-wrap {
  margin-bottom: 1rem;
}

.heatcheck-meter-track {
  position: relative;
  isolation: isolate;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--surface-border);
  overflow: hidden;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.heatcheck-meter-track--in-zone {
  border-color: rgba(110, 215, 145, 0.55);
  box-shadow: 0 0 16px rgba(70, 190, 115, 0.22);
}

.heatcheck-meter-track--out-zone {
  border-color: rgba(215, 95, 95, 0.42);
  box-shadow: inset 0 0 12px rgba(80, 30, 30, 0.15);
}

.heatcheck-zone-band {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0%;
  /* Above the moving fill so the hoop stays visible when the bar sweeps over */
  z-index: 3;
  pointer-events: none;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  overflow: hidden;
  background: rgba(6, 8, 10, 0.52);
  transition: left 0.2s ease, width 0.2s ease;
}

.heatcheck-zone-hoop {
  display: block;
  flex: 0 1 auto;
  width: auto;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-drag: none;
  filter:
    drop-shadow(0 0 6px rgba(0, 0, 0, 0.85))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6))
    brightness(1.07)
    contrast(1.08);
}

.heatcheck-zone-mark {
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: 5px;
  margin-left: -2.5px;
  border-radius: 2px;
  z-index: 4;
  pointer-events: none;
  transition: left 0.2s ease;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(230, 230, 230, 0.85) 100%
  );
  box-shadow:
    0 0 8px rgba(255, 255, 255, 0.35),
    0 0 2px rgba(0, 0, 0, 0.4);
}

.heatcheck-meter-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 999px;
  z-index: 1;
  pointer-events: none;
  transition:
    width 0.05s linear,
    background 0.1s ease,
    box-shadow 0.1s ease;
}

.heatcheck-meter-track--in-zone .heatcheck-meter-fill {
  background: linear-gradient(
    90deg,
    rgba(45, 155, 95, 0.92) 0%,
    rgba(105, 235, 155, 0.98) 100%
  );
  box-shadow: 0 0 14px rgba(80, 210, 130, 0.42);
}

.heatcheck-meter-track--out-zone .heatcheck-meter-fill {
  background: linear-gradient(
    90deg,
    rgba(175, 55, 55, 0.9) 0%,
    rgba(255, 125, 105, 0.95) 100%
  );
  box-shadow: 0 0 12px rgba(210, 75, 75, 0.35);
}

.heatcheck-score-below {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin-top: 0.85rem;
}

.heatcheck-score-below__num {
  font-family: var(--font-card);
  font-size: clamp(2.35rem, 9vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--color-secondary);
  text-shadow: 0 2px 24px rgba(255, 107, 0, 0.18);
}

.heatcheck-score-below__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-secondary-muted);
}

.heatcheck-actions {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  align-items: center;
  overflow: visible;
}

.heatcheck-shoot-btn {
  position: relative;
  width: clamp(7.5rem, 38vw, 11rem);
  height: clamp(7.5rem, 38vw, 11rem);
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: 3px solid rgba(250, 250, 252, 0.38);
  cursor: pointer;
  background: radial-gradient(circle at 35% 28%, rgba(38, 38, 42, 0.92), rgba(10, 10, 12, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 6px 22px rgba(0, 0, 0, 0.38);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease,
    border-color 0.15s ease;
  flex-shrink: 0;
}

.heatcheck-shoot-btn__img {
  position: relative;
  z-index: 1;
  width: 76%;
  height: 76%;
  object-fit: contain;
  border-radius: 50%;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.heatcheck-shoot-btn:hover:not(:disabled) {
  filter: brightness(1.04);
  transform: scale(1.02);
  border-color: rgba(252, 252, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 26px rgba(0, 0, 0, 0.42);
}

.heatcheck-shoot-btn:active:not(:disabled) {
  transform: scale(0.97);
}

.heatcheck-shoot-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(0.35);
}

.heatcheck-shoot-btn--busy .heatcheck-shoot-btn__img {
  opacity: 0.55;
  animation: heatcheck-shoot-busy 0.85s ease-in-out infinite;
}

@keyframes heatcheck-shoot-busy {
  50% {
    opacity: 0.32;
    transform: scale(0.94);
  }
}

@media (prefers-reduced-motion: reduce) {
  .heatcheck-shoot-btn--busy .heatcheck-shoot-btn__img {
    animation: none !important;
  }
}

.heatcheck-back-btn {
  font-family: var(--font-card);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 245, 245, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
  width: 100%;
  max-width: min(22rem, 100%);
}

.heatcheck-back-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
}

.heatcheck-back-btn:active {
  transform: translateY(0);
}

.heatcheck-status {
  min-height: 3rem;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-secondary-muted);
}

.heatcheck-status:empty {
  min-height: 0;
  margin: 0;
  padding: 0;
}

.heatcheck-status strong {
  color: var(--color-secondary);
}

.heatcheck-signin-hint {
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(255, 107, 0, 0.35);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.heatcheck-game--disabled .heatcheck-meter-track {
  opacity: 0.45;
}

/* Make / miss feedback */
.heatcheck-result-banner {
  margin: 0 0 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  font-family: var(--font-card);
  font-size: clamp(1.65rem, 6vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.15;
  border: 2px solid transparent;
  text-transform: uppercase;
  min-height: 4.6rem;
}

/* Keep banner space reserved so buttons don't jump */
#heatResultBanner[hidden] {
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.heatcheck-result-banner--make {
  color: #d8ffe8;
  background: linear-gradient(
    145deg,
    rgba(35, 110, 65, 0.55) 0%,
    rgba(25, 80, 55, 0.45) 100%
  );
  border-color: rgba(120, 230, 160, 0.85);
  text-shadow: 0 0 28px rgba(90, 200, 130, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 4px 20px rgba(40, 120, 75, 0.35);
}

.heatcheck-result-banner--make.heatcheck-result-banner--make-low {
  color: #fff6dd;
  background: linear-gradient(
    145deg,
    rgba(160, 125, 35, 0.55) 0%,
    rgba(110, 78, 20, 0.45) 100%
  );
  border-color: rgba(255, 215, 120, 0.75);
  text-shadow: 0 0 22px rgba(255, 200, 120, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 20px rgba(150, 110, 25, 0.28);
}

.heatcheck-result-banner--miss {
  color: #ffe8e4;
  background: linear-gradient(
    145deg,
    rgba(130, 45, 45, 0.55) 0%,
    rgba(85, 30, 35, 0.5) 100%
  );
  border-color: rgba(255, 130, 110, 0.75);
  text-shadow: 0 0 22px rgba(255, 100, 90, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 20px rgba(90, 35, 35, 0.35);
}

/* Pre-first-shot cue — same footprint / typo scale as miss • swish */
.heatcheck-result-banner--hint {
  color: rgba(248, 248, 252, 0.96);
  background: linear-gradient(
    145deg,
    rgba(38, 38, 44, 0.72) 0%,
    rgba(18, 18, 22, 0.88) 100%
  );
  border-color: rgba(255, 130, 72, 0.5);
  text-shadow: 0 0 20px rgba(255, 107, 0, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 4px 20px rgba(0, 0, 0, 0.38);
}

.heatcheck-result-banner--violation {
  color: #fff2d6;
  background: linear-gradient(
    145deg,
    rgba(255, 170, 60, 0.55) 0%,
    rgba(130, 65, 35, 0.48) 100%
  );
  border-color: rgba(255, 205, 85, 0.85);
  text-shadow: 0 0 22px rgba(255, 165, 85, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 20px rgba(120, 70, 35, 0.35);
}

.heatcheck-status--result-good {
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.65rem 0.5rem 0;
  color: rgba(190, 245, 205, 0.98);
}

.heatcheck-status--result-bad {
  font-size: 1.05rem;
  text-align: center;
}

.heatcheck-lb-title {
  margin: 0 0 0.75rem;
  text-align: center;
  font-family: var(--font-card);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-secondary);
}

.heatcheck-lb-toolbar {
  margin-bottom: 0.85rem;
}

.heatcheck-lb-toggle {
  display: flex;
  justify-content: stretch;
  gap: 0;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--surface-border);
  max-width: 19rem;
  margin-left: auto;
  margin-right: auto;
}

.heatcheck-lb-toggle__btn {
  flex: 1;
  border: none;
  cursor: pointer;
  padding: 0.45rem 0.65rem;
  font-family: var(--font-card);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text-muted);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.heatcheck-lb-toggle__btn:hover {
  color: var(--color-secondary);
}

.heatcheck-lb-toggle__btn--active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-secondary);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.heatcheck-lb-toggle__hint {
  margin: 0.4rem 0 0;
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.heatcheck-lb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.heatcheck-lb-row {
  display: grid;
  grid-template-columns: 1.85rem minmax(0, 1fr) auto minmax(3.75rem, auto) auto;
  align-items: center;
  gap: 0.45rem 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--surface-border);
}

.heatcheck-lb-main {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.heatcheck-lb-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255, 107, 0, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.heatcheck-lb-skin {
  width: 38px;
  height: 26px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 6px 14px rgba(0, 0, 0, 0.25);
}

.heatcheck-lb-rank {
  font-family: var(--font-card);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-accent);
  font-variant-numeric: tabular-nums;
}

.heatcheck-lb-rank.heatcheck-lb-rank--gold,
.heatcheck-lb-rank.heatcheck-lb-rank--silver,
.heatcheck-lb-rank.heatcheck-lb-rank--bronze {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  font-size: 0.9rem;
  color: rgba(10, 10, 10, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 6px 16px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.heatcheck-lb-rank.heatcheck-lb-rank--gold {
  background: linear-gradient(145deg, rgba(255, 214, 98, 0.95), rgba(205, 145, 25, 0.92));
  border-color: rgba(255, 230, 160, 0.35);
}

.heatcheck-lb-rank.heatcheck-lb-rank--silver {
  background: linear-gradient(145deg, rgba(230, 235, 245, 0.95), rgba(150, 160, 180, 0.92));
  border-color: rgba(235, 240, 255, 0.35);
}

.heatcheck-lb-rank.heatcheck-lb-rank--bronze {
  background: linear-gradient(145deg, rgba(235, 170, 125, 0.95), rgba(155, 85, 45, 0.92));
  border-color: rgba(255, 215, 190, 0.3);
}

.heatcheck-lb-name {
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.heatcheck-lb-name:hover {
  color: var(--color-accent);
}

.heatcheck-lb-fg {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.12rem;
  min-width: 0;
}

.heatcheck-lb-fg-label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(150, 220, 175, 0.92);
  line-height: 1;
}

.heatcheck-lb-fg-val {
  font-family: var(--font-card);
  font-weight: 700;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  color: rgba(150, 220, 175, 0.95);
  line-height: 1.1;
  white-space: nowrap;
}

.heatcheck-lb-score {
  font-family: var(--font-card);
  font-weight: 700;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  color: var(--color-secondary);
  text-align: right;
  white-space: nowrap;
}

.heatcheck-lb-empty-li {
  list-style: none;
}

.heatcheck-lb-empty {
  display: block;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.75rem 0.5rem;
}

/* ----- Lifetime stats (under leaderboard) ----- */
.heatcheck-lifetime {
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--surface-border);
}

.heatcheck-lifetime__title {
  font-family: var(--font-card);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  color: var(--color-secondary);
  text-align: center;
}

.heatcheck-lifetime__hint {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.heatcheck-lifetime__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.heatcheck-lifetime__grid > .heatcheck-lifetime__card {
  min-width: 0;
}

/* Skins */
.heatcheck-skins {
  margin-top: 0.85rem;
}

.heatcheck-skins__label {
  margin: 0.38rem 0 0.38rem;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.6);
}

/* Make the skins block breathe inside intro card */
.heatcheck-intro .heatcheck-skins {
  margin-top: 0.9rem;
  margin-bottom: 0.65rem;
  padding-top: 0.15rem;
}

.heatcheck-skins__toggle {
  width: fit-content;
  min-width: 170px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 245, 245, 0.96);
  font-family: var(--font-card);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.72rem 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease;
}

.heatcheck-skins__toggle:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  border-color: rgba(255, 255, 255, 0.24);
}

.heatcheck-skins__panel {
  margin-top: 0.75rem;
}

.heatcheck-intro.heatcheck-intro--skins-open #heatStartBtn,
.heatcheck-intro.heatcheck-intro--skins-open #heatShareBtn,
.heatcheck-intro.heatcheck-intro--skins-open #heatLobbyBest,
.heatcheck-intro.heatcheck-intro--skins-open .heatcheck-skins__label,
.heatcheck-intro.heatcheck-intro--skins-open #heatEquippedSkinCard {
  display: none !important;
}

/* Skin picker open: tight vertical rhythm (no tall empty header) */
.heatcheck-intro.heatcheck-intro--skins-open .heatcheck-skins {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.heatcheck-intro.heatcheck-intro--skins-open .heatcheck-skins__toggle {
  margin-top: 0.65rem;
  margin-bottom: 0.65rem;
}

.heatcheck-intro.heatcheck-intro--skins-open .heatcheck-skins__panel {
  margin-top: 0;
}

.heatcheck-skins__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  row-gap: 0.95rem;
  align-items: stretch;
  justify-items: stretch;
}

.heatcheck-skin {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 14px;
  padding: 0.7rem 0.6rem 0.75rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
  height: 100%;
  align-self: stretch;
  justify-self: stretch;
  box-sizing: border-box;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, filter 0.15s ease;
}

.heatcheck-skin--equipped {
  cursor: default;
  border-color: rgba(120, 230, 160, 0.65);
  background: rgba(35, 110, 65, 0.12);
  box-shadow: 0 0 0 1px rgba(120, 230, 160, 0.2) inset;
}

.heatcheck-skin--equipped:hover {
  transform: none;
  border-color: rgba(120, 230, 160, 0.65);
  background: rgba(35, 110, 65, 0.12);
}

.heatcheck-skin__lock-badge {
  position: absolute;
  top: 0.42rem;
  left: 0.42rem;
  z-index: 2;
  width: 22px;
  height: 22px;
  pointer-events: none;
  display: grid;
  place-items: center;
}

.heatcheck-skin__lock-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}

.heatcheck-skin:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(255, 107, 0, 0.35);
  background: rgba(255, 107, 0, 0.06);
}

.heatcheck-skin:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  filter: grayscale(0.35);
}

/* Locked tiles are disabled but must stay fully opaque so white text reads clearly */
.heatcheck-skin.heatcheck-skin--locked:disabled {
  opacity: 1;
  filter: none;
  cursor: not-allowed;
}

.heatcheck-skin--locked {
  opacity: 1;
  filter: none;
  border: 1px dashed rgba(255, 255, 255, 0.72);
  background: rgba(15, 8, 6, 0.55);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.heatcheck-skin--locked .heatcheck-skin__name {
  color: #fff;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.9),
    0 1px 3px rgba(0, 0, 0, 0.65);
}

.heatcheck-skin--locked .heatcheck-skin__thumb {
  position: relative;
  filter: grayscale(0.38) brightness(0.9) contrast(1.06);
}

.heatcheck-skin--locked .heatcheck-skin__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.34));
  pointer-events: none;
}

.heatcheck-skin__req--locked {
  margin-top: 0.35rem;
  font-size: clamp(0.8rem, 3.5vw, 0.98rem);
  line-height: 1.4;
  color: rgba(255, 200, 160, 0.88);
}

.heatcheck-skin--locked .heatcheck-skin__req--locked {
  color: #fff;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.9),
    0 1px 3px rgba(0, 0, 0, 0.65);
  font-weight: 600;
}

.heatcheck-skin__unlock-hint {
  color: rgba(255, 235, 210, 0.98);
  font-weight: 700;
}

.heatcheck-skin--locked .heatcheck-skin__unlock-hint {
  color: #fff;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.9),
    0 1px 3px rgba(0, 0, 0, 0.65);
  font-weight: 700;
}

.heatcheck-skin__thumb {
  width: 48px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}

.heatcheck-skin__thumb img {
  width: 46px;
  height: 32px;
  object-fit: contain;
}

.heatcheck-skin__meta {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  line-height: 1.15;
}

.heatcheck-skin__name {
  display: block;
  font-family: var(--font-card);
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--color-secondary);
}

.heatcheck-skin__req {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.7rem;
  color: rgba(245, 245, 245, 0.55);
}

.heatcheck-skin--selected {
  border-color: rgba(120, 230, 160, 0.65);
  background: rgba(35, 110, 65, 0.12);
  box-shadow: 0 0 0 1px rgba(120, 230, 160, 0.22) inset;
}

.heatcheck-skin--selected .heatcheck-skin__req {
  color: rgba(190, 245, 205, 0.9);
}

/* Two columns only when there’s enough width for donut + shot mix side by side */
@media (min-width: 640px) {
  .heatcheck-lifetime__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.heatcheck-lifetime__card {
  position: relative;
  padding: 1rem 1.05rem 1.1rem;
  border-radius: var(--radius-md);
  background: linear-gradient(
    155deg,
    rgba(255, 107, 0, 0.07) 0%,
    rgba(0, 0, 0, 0.32) 42%,
    rgba(20, 22, 28, 0.55) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(255, 107, 0, 0.06) inset,
    0 12px 36px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.heatcheck-lifetime__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 80% at 10% -20%,
    rgba(255, 140, 70, 0.18),
    transparent 55%
  );
  pointer-events: none;
  opacity: 0.85;
}

.heatcheck-lifetime__card > * {
  position: relative;
  z-index: 1;
}

.heatcheck-lifetime__card-title {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.55);
  text-align: center;
}

.heatcheck-lifetime__fine {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
  text-align: center;
}

/* Donut FG% */
.heatcheck-lifetime__donut {
  --fg: 0;
  position: relative;
  width: min(9.5rem, 72vw);
  height: min(9.5rem, 72vw);
  margin: 0 auto;
}

.heatcheck-lifetime__donut-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    rgba(110, 220, 150, 0.95) 0 calc(var(--fg) * 1turn),
    rgba(42, 44, 52, 0.95) 0 1turn
  );
  box-shadow:
    0 0 28px rgba(80, 200, 120, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  animation: heatcheck-donut-pulse 3.2s ease-in-out infinite;
}

.heatcheck-lifetime__donut-core {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
}

.heatcheck-lifetime__donut-pct {
  font-family: var(--font-card);
  font-size: clamp(1.5rem, 6vw, 1.85rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--color-secondary);
  line-height: 1;
}

.heatcheck-lifetime__donut-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 245, 245, 0.45);
}

/* 3 best runs */
.heatcheck-lifetime__top3-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}

.heatcheck-lifetime__top3-row {
  display: grid;
  grid-template-columns: 2.25rem minmax(2.5rem, 4rem) 1fr;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.55rem;
  min-width: 0;
}

.heatcheck-lifetime__top3-row:last-child {
  margin-bottom: 0;
}

.heatcheck-lifetime__top3-rank {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(245, 245, 245, 0.45);
  font-variant-numeric: tabular-nums;
}

.heatcheck-lifetime__top3-val {
  font-family: var(--font-card);
  font-size: clamp(1.05rem, 3.5vw, 1.35rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--color-secondary);
  text-align: right;
  line-height: 1;
}

.heatcheck-lifetime__top3-bar {
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
  min-width: 0;
}

.heatcheck-lifetime__top3-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(255, 160, 95, 0.98) 0%,
    rgba(255, 107, 0, 0.85) 45%,
    rgba(150, 85, 180, 0.75) 100%
  );
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.28);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Signed-out teaser */
.heatcheck-lifetime__gate {
  display: grid;
  gap: 1.25rem;
  padding: 0.5rem 0 0.25rem;
}

.heatcheck-lifetime__gate-ring {
  width: min(7rem, 55vw);
  height: min(7rem, 55vw);
  margin: 0 auto;
  border-radius: 50%;
  border: 3px dashed rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at 40% 35%, rgba(255, 107, 0, 0.12), transparent 62%);
  animation: heatcheck-gate-spin 14s linear infinite;
}

.heatcheck-lifetime__gate-bars {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  height: 3.5rem;
  align-items: flex-end;
}

.heatcheck-lifetime__gate-bars span {
  width: 0.55rem;
  height: 35%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  animation: heatcheck-gate-bars 1.4s ease-in-out infinite alternate;
}

.heatcheck-lifetime__gate-bars span:nth-child(2) {
  animation-delay: 0.15s;
  height: 55%;
}
.heatcheck-lifetime__gate-bars span:nth-child(3) {
  animation-delay: 0.3s;
  height: 70%;
}
.heatcheck-lifetime__gate-bars span:nth-child(4) {
  animation-delay: 0.45s;
  height: 48%;
}
.heatcheck-lifetime__gate-bars span:nth-child(5) {
  animation-delay: 0.6s;
  height: 38%;
}

@keyframes heatcheck-donut-pulse {
  0%,
  100% {
    filter: brightness(1) drop-shadow(0 0 10px rgba(90, 200, 130, 0.25));
  }
  50% {
    filter: brightness(1.06) drop-shadow(0 0 18px rgba(90, 200, 130, 0.4));
  }
}

@keyframes heatcheck-gate-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes heatcheck-gate-bars {
  from {
    transform: scaleY(0.55);
    opacity: 0.45;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .heatcheck-lifetime__donut-ring,
  .heatcheck-lifetime__top3-fill,
  .heatcheck-lifetime__gate-ring,
  .heatcheck-lifetime__gate-bars span {
    animation: none !important;
    transition: none !important;
  }
}

