/* Student dashboard: hero symbols, launchpad tiles and card accents. */

.mtr-student-dashboard__hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.mtr-student-dashboard__hero > :not(.mtr-hero-symbols) {
  position: relative;
  z-index: 1;
}

.mtr-student-dashboard__hero h2 {
  font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3.1rem);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.35);
}

.mtr-hero-symbols {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mtr-hero-symbols span {
  position: absolute;
  font-family: var(--font-heading, "Bebas Neue", sans-serif);
  color: rgba(255, 255, 255, 0.13);
  line-height: 1;
  animation: mtr-hero-float 9s ease-in-out infinite;
}

.mtr-hero-symbols span:nth-child(1) { right: 4%; top: 8%; font-size: 5.5rem; animation-delay: 0s; }
.mtr-hero-symbols span:nth-child(2) { right: 17%; top: 46%; font-size: 4rem; animation-delay: -2s; }
.mtr-hero-symbols span:nth-child(3) { right: 30%; top: 6%; font-size: 3rem; animation-delay: -4s; }
.mtr-hero-symbols span:nth-child(4) { right: 9%; bottom: -6%; font-size: 4.6rem; animation-delay: -6s; }
.mtr-hero-symbols span:nth-child(5) { right: 42%; bottom: 6%; font-size: 2.6rem; animation-delay: -1s; }
.mtr-hero-symbols span:nth-child(6) { right: 25%; top: 30%; font-size: 2.2rem; color: rgba(250, 183, 25, 0.28); animation-delay: -3s; }
.mtr-hero-symbols span:nth-child(7) { right: 52%; top: 12%; font-size: 2.4rem; animation-delay: -5s; }
.mtr-hero-symbols span:nth-child(8) { right: 1%; top: 52%; font-size: 2.6rem; color: rgba(250, 183, 25, 0.25); animation-delay: -7s; }

@keyframes mtr-hero-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(4deg); }
}

/* Keystones has its own tile now, so drop the duplicate phone shortcut. */
.mtr-student-dashboard:has(#launch-keystones:not(.session-hidden)) #quick-open-keystones {
  display: none;
}

/* ---------- Launchpad ---------- */

.mtr-launchpad {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1rem;
}

.mtr-launch {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  min-height: 15.5rem;
  margin: 0;
  padding: 1.25rem 1.25rem 1.15rem;
  border: 0;
  border-radius: 18px;
  color: #fff;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 16px 32px -14px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: mtr-launch-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.mtr-launch:nth-child(2) { animation-delay: 0.07s; }
.mtr-launch:nth-child(3) { animation-delay: 0.14s; }
.mtr-launch:nth-child(4) { animation-delay: 0.21s; }

@keyframes mtr-launch-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* soft glow blob */
.mtr-launch::before {
  content: "";
  position: absolute;
  top: -3.5rem;
  right: -3.5rem;
  z-index: -1;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 70%);
  transition: transform 0.4s ease;
}

/* shine sweep on hover */
.mtr-launch::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.28) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-18deg);
  pointer-events: none;
  opacity: 0;
}

.mtr-launch:hover,
.mtr-launch:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 24px 40px -16px rgba(0, 0, 0, 0.6);
}

.mtr-launch:hover::after,
.mtr-launch:focus-visible::after {
  opacity: 1;
  left: 120%;
  transition: left 0.75s ease, opacity 0.2s ease;
}

.mtr-launch:hover::before {
  transform: scale(1.25);
}

.mtr-launch:focus-visible {
  outline: 3px solid #fab719;
  outline-offset: 3px;
}

.mtr-launch__icon {
  display: inline-grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  margin-bottom: 0.35rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  font-size: 1.45rem;
  transition: transform 0.3s ease;
}

.mtr-launch:hover .mtr-launch__icon {
  transform: rotate(-8deg) scale(1.08);
}

.mtr-launch__icon--logo {
  background: none;
  box-shadow: none;
}

.mtr-launch__icon--logo img {
  width: 3.1rem;
  height: 3.1rem;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.mtr-launch__kicker {
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mtr-launch__title {
  font-family: var(--font-heading, "Bebas Neue", sans-serif);
  font-size: clamp(1.75rem, 1.5rem + 0.8vw, 2.15rem);
  line-height: 1;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.mtr-launch__text {
  flex: 1 1 auto;
  font-size: 0.93rem;
  line-height: 1.45;
  opacity: 0.93;
}

.mtr-launch__meter {
  display: block;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.mtr-launch__meter > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #fde68a, #fff);
  transition: width 0.6s ease;
}

.mtr-launch__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: #fff;
  color: var(--launch-ink, #1a1a1a);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.mtr-launch__cta i {
  transition: transform 0.25s ease;
}

.mtr-launch:hover .mtr-launch__cta i {
  transform: translateX(3px);
}

/* Tile colours */
.mtr-launch--keystones {
  --launch-ink: #b80300;
  background: linear-gradient(140deg, #8f0200 0%, #d00400 45%, #ff6b1a 100%);
}

.mtr-launch--diagnostic {
  --launch-ink: #4c1d95;
  background: linear-gradient(140deg, #312e81 0%, #5b21b6 50%, #a855f7 100%);
}

.mtr-launch--done .mtr-launch__kicker::before {
  content: "✓ ";
}

.mtr-launch--vault {
  --launch-ink: #0f5e57;
  background: linear-gradient(140deg, #0b4f4a 0%, #0f766e 45%, #22c3a6 100%);
}

.mtr-launch--games {
  --launch-ink: #0b1220;
  background: #0b1220;
  box-shadow: 0 16px 32px -14px rgba(0, 0, 0, 0.6), inset 0 0 0 2px rgba(250, 183, 25, 0.65);
}

.mtr-launch--games::before {
  inset: 0;
  top: 0;
  right: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.2) 0%, rgba(11, 18, 32, 0.78) 48%, rgba(11, 18, 32, 0.96) 100%);
}

.mtr-launch--games:hover::before {
  transform: none;
}

.mtr-launch__art {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: #1a2332;
  background-position: center 30%;
  background-size: cover;
  transition: transform 0.6s ease;
}

.mtr-launch--games:hover .mtr-launch__art {
  transform: scale(1.07);
}

.mtr-launch--games .mtr-launch__kicker {
  background: rgba(250, 183, 25, 0.22);
  color: #fcd34d;
}

.mtr-launch--games .mtr-launch__cta {
  background: #fab719;
  color: #0b1220;
}

@media (max-width: 560px) {
  .mtr-launchpad {
    gap: 0.8rem;
  }

  .mtr-launch {
    min-height: 0;
    padding: 1.1rem;
  }

  .mtr-launch__icon,
  .mtr-launch__icon--logo img {
    width: 2.6rem;
    height: 2.6rem;
  }

  .mtr-hero-symbols span {
    opacity: 0.7;
    transform: scale(0.75);
  }
}

/* ---------- Card accents ---------- */

.mtr-student-dashboard__card {
  border-top: 5px solid var(--card-accent, var(--accent));
}

.mtr-student-dashboard__card--sessions { --card-accent: #d00400; }
.mtr-student-dashboard__card--practice { --card-accent: #f97316; }
.mtr-student-dashboard__card--diagnostic { --card-accent: #7c3aed; }
.mtr-student-dashboard__card--notes { --card-accent: #0e7490; }

.mtr-student-dashboard__card > h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.mtr-student-dashboard__card > h3::before {
  content: "";
  flex: 0 0 auto;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--card-accent, var(--accent));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--card-accent, #d00400) 22%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .mtr-launch,
  .mtr-hero-symbols span {
    animation: none;
  }

  .mtr-launch,
  .mtr-launch *,
  .mtr-launch::before,
  .mtr-launch::after {
    transition: none !important;
  }

  .mtr-launch:hover,
  .mtr-launch:focus-visible {
    transform: none;
  }
}
