:root {
  color-scheme: dark;
  --bg: #080b22;
  --bg-2: #1e1a4d;
  --rail: #0b2844;
  --panel: #111730;
  --panel-2: #1b2438;
  --line: #283552;
  --line-strong: #3b4b67;
  --text: #ffffff;
  --muted: #9eb2cf;
  --cyan: #21d8f2;
  --blue: #4d68f4;
  --green: #36f08a;
  --red: #ff4b5e;
  --gold: #ffd400;
  --purple: #c56cff;
  --pink: #ff56a8;
  --orange: #ff8a35;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 64% -12%, rgba(77, 104, 244, .24), transparent 34%),
    linear-gradient(90deg, #0b0e28 0%, #1f1b50 100%);
}

body.splash-lock {
  overflow: hidden;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #050914;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 900ms ease, filter 900ms ease, transform 900ms ease;
  overflow: hidden;
}

.splash-screen.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.splash-screen.is-front {
  z-index: 10000;
}

.splash-screen.is-ready {
  opacity: 1;
  visibility: visible;
}

.splash-screen::before,
.splash-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.splash-primary::before {
  z-index: 1;
  background:
    radial-gradient(circle at 50% 20%, rgba(33, 216, 242, .28), transparent 30%),
    linear-gradient(90deg, rgba(4, 8, 20, .82), rgba(10, 12, 35, .38) 52%, rgba(7, 10, 28, .82));
}

.splash-primary::after {
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), transparent 18%, rgba(4, 8, 20, .36)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .028) 0 1px, transparent 1px 124px);
  mix-blend-mode: screen;
  opacity: .46;
}

.splash-secondary {
  background:
    radial-gradient(circle at 50% 42%, rgba(33, 216, 242, .18), transparent 26%),
    radial-gradient(circle at 50% 50%, rgba(101, 98, 255, .2), transparent 46%),
    linear-gradient(135deg, #070b24 0%, #171548 52%, #091127 100%);
}

.splash-secondary::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(33, 216, 242, .08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(33, 216, 242, .07) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(circle at center, black, transparent 70%);
  opacity: .55;
}

.splash-secondary::after {
  z-index: 2;
  background: radial-gradient(circle at center, transparent 0 28%, rgba(5, 9, 20, .68) 72%);
}

.splash-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.015);
}

.splash-content {
  position: relative;
  z-index: 3;
  width: min(88vw, 760px);
  min-height: 300px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 22px;
  padding: 48px 54px;
  text-align: center;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(8, 13, 34, .68), rgba(23, 31, 70, .5));
  border: 1px solid rgba(123, 244, 255, .28);
  box-shadow: 0 34px 110px rgba(0, 0, 0, .48), inset 0 0 0 1px rgba(255, 255, 255, .07);
  backdrop-filter: blur(12px);
}

.splash-screen.is-active .splash-content {
  animation: splashContentIn 780ms ease both;
}

.splash-mark {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0;
  background: linear-gradient(135deg, #17bed4, #6562ff);
  box-shadow: 0 18px 48px rgba(33, 216, 242, .32);
}

.splash-mark::before {
  content: "";
  width: 40px;
  height: 40px;
  display: block;
  background: currentColor;
  -webkit-mask: var(--brain-icon) center / contain no-repeat;
          mask: var(--brain-icon) center / contain no-repeat;
}

.splash-content h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3rem, 6.2vw, 6.4rem);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 0 34px rgba(33, 216, 242, .42), 0 8px 38px rgba(0, 0, 0, .36);
}

.splash-progress {
  width: min(100%, 440px);
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(38, 56, 82, .84);
}

.splash-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #21d8f2, #6f6cff);
}

.splash-screen.is-active .splash-progress span {
  animation: splashProgress 4s linear forwards;
}

.splash-students .splash-image-progress {
  position: absolute;
  left: 50%;
  bottom: 38px;
  z-index: 4;
  width: min(78vw, 620px);
  height: 8px;
  transform: translateX(-50%);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(9, 18, 35, .72);
  border: 1px solid rgba(123, 244, 255, .2);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .3);
}

.splash-students .splash-image-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #21d8f2, #6f6cff);
}

.splash-students.is-active .splash-image-progress span {
  animation: splashProgress 4s linear forwards;
}

.splash-screen.is-dissolving {
  opacity: 0;
  filter: blur(10px);
  transform: scale(1.02);
  pointer-events: none;
}

.splash-orbit {
  position: absolute;
  z-index: 2;
  width: min(74vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(123, 244, 255, .13);
  box-shadow: inset 0 0 70px rgba(33, 216, 242, .08), 0 0 120px rgba(77, 104, 244, .18);
}

.splash-orbit span {
  position: absolute;
  inset: 11%;
  border-radius: 50%;
  border: 1px solid rgba(123, 244, 255, .18);
  transform: rotate(var(--angle, 0deg));
}

.splash-orbit span:nth-child(2) {
  --angle: 58deg;
  inset: 20%;
}

.splash-orbit span:nth-child(3) {
  --angle: 118deg;
  inset: 30%;
}

@keyframes splashContentIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes splashProgress {
  to {
    width: 100%;
  }
}

button {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
}

.rail {
  min-height: 100vh;
  background: var(--rail);
  border-right: 1px solid rgba(80, 150, 220, .14);
  padding: 38px 22px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 27px;
  position: sticky;
  top: 0;
}

.rail-logo,
.rail-item,
.back-button,
.tab,
.shortcut-card,
.choice {
  border: 0;
  cursor: pointer;
}

.rail-logo {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: #09cfda;
  color: #fff;
  font-size: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 36px rgba(0, 216, 242, .22);
}

.rail-logo::before,
.brand-icon::before {
  content: "";
  width: 25px;
  height: 25px;
  display: block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5a3 3 0 1 0-5.997.125A4 4 0 0 0 6 13a4 4 0 0 0 6 3.464'/%3E%3Cpath d='M12 5a3 3 0 1 1 5.997.125A4 4 0 0 1 18 13a4 4 0 0 1-6 3.464'/%3E%3Cpath d='M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4'/%3E%3Cpath d='M17.5 10.5 19 9'/%3E%3Cpath d='M6.5 10.5 5 9'/%3E%3Cpath d='M12 16.5V21'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5a3 3 0 1 0-5.997.125A4 4 0 0 0 6 13a4 4 0 0 0 6 3.464'/%3E%3Cpath d='M12 5a3 3 0 1 1 5.997.125A4 4 0 0 1 18 13a4 4 0 0 1-6 3.464'/%3E%3Cpath d='M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4'/%3E%3Cpath d='M17.5 10.5 19 9'/%3E%3Cpath d='M6.5 10.5 5 9'/%3E%3Cpath d='M12 16.5V21'/%3E%3C/svg%3E") center / contain no-repeat;
}

.rail-nav {
  width: 76px;
  display: grid;
  gap: 28px;
  justify-items: center;
}

.rail-item {
  background: transparent;
  color: var(--muted);
  display: grid;
  grid-template-rows: 24px auto;
  place-items: center;
  justify-items: center;
  gap: 5px;
  width: 100%;
  min-height: 50px;
  font-size: .82rem;
  font-weight: 700;
  padding: 0;
  line-height: 1.15;
  text-align: center;
}

.rail-item:hover,
.rail-item.active {
  color: #fff;
}

.rail-item.locked,
.rail-item:disabled {
  color: rgba(158, 178, 207, .42);
  cursor: not-allowed;
  pointer-events: none;
}

.rail-item.locked .nav-icon,
.rail-item:disabled .nav-icon {
  opacity: .42;
}

.nav-icon {
  width: 24px;
  height: 24px;
  color: currentColor;
  font-size: 0;
  opacity: .9;
  display: block;
}

.rail-item > span:last-child {
  display: block;
  width: 100%;
  text-align: center;
}

.nav-icon::before,
.back-button::before,
.gradient-button span::before,
.outline-action span::before,
.reward-action span::before,
.shortcut-card span::before,
.page-title span::before,
.badges h3 span::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
}

.nav-icon[aria-hidden="true"] {
  --icon: var(--home-icon);
}

.nav-icon:nth-child(1) {
  color: currentColor;
}

.rail-item:nth-child(1) .nav-icon { --icon: var(--home-icon); }
.rail-item:nth-child(2) .nav-icon,
.rail-item:nth-child(4) .nav-icon { --icon: var(--book-icon); }
.rail-item:nth-child(3) .nav-icon { --icon: var(--brain-icon); }
.rail-item:nth-child(5) .nav-icon { --icon: var(--mic-icon); }
.rail-item:nth-child(6) .nav-icon { --icon: var(--flask-icon); }
.rail-item:nth-child(7) .nav-icon { --icon: var(--bars-icon); }
.rail-item:nth-child(8) .nav-icon { --icon: var(--screen-icon); }

:root {
  --home-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M9 20v-6h6v6'/%3E%3C/svg%3E");
  --book-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M4 4.5A2.5 2.5 0 0 1 6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5z'/%3E%3Cpath d='M10 2v15'/%3E%3C/svg%3E");
  --brain-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5a3 3 0 1 0-5.997.125A4 4 0 0 0 6 13a4 4 0 0 0 6 3.464'/%3E%3Cpath d='M12 5a3 3 0 1 1 5.997.125A4 4 0 0 1 18 13a4 4 0 0 1-6 3.464'/%3E%3Cpath d='M12 5v14'/%3E%3C/svg%3E");
  --mic-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3z'/%3E%3Cpath d='M19 10v2a7 7 0 0 1-14 0v-2'/%3E%3Cpath d='M12 19v3'/%3E%3C/svg%3E");
  --flask-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 2v7.31L4.6 20.18A2 2 0 0 0 6.4 23h11.2a2 2 0 0 0 1.8-2.82L14 9.31V2'/%3E%3Cpath d='M8 2h8'/%3E%3Cpath d='M7 16h10'/%3E%3C/svg%3E");
  --bars-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V10'/%3E%3Cpath d='M10 20V4'/%3E%3Cpath d='M16 20v-7'/%3E%3Cpath d='M22 20H2'/%3E%3C/svg%3E");
  --screen-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='13' rx='1'/%3E%3Cpath d='M8 21h8'/%3E%3Cpath d='M12 17v4'/%3E%3C/svg%3E");
  --back-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E");
  --play-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 5 11 7-11 7z'/%3E%3C/svg%3E");
  --clock-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
  --star-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15 8.5 22 9.2 16.8 14 18.3 21 12 17.4 5.7 21 7.2 14 2 9.2 9 8.5 12 2'/%3E%3C/svg%3E");
  --trophy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8'/%3E%3Cpath d='M12 17v4'/%3E%3Cpath d='M7 4h10v5a5 5 0 0 1-10 0z'/%3E%3Cpath d='M5 5H3v2a4 4 0 0 0 4 4'/%3E%3Cpath d='M19 5h2v2a4 4 0 0 1-4 4'/%3E%3C/svg%3E");
  --trend-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 17 6-6 4 4 7-8'/%3E%3Cpath d='M14 7h6v6'/%3E%3C/svg%3E");
  --medal-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='5'/%3E%3Cpath d='M8.5 12 7 22l5-3 5 3-1.5-10'/%3E%3C/svg%3E");
  --search-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
}

.screen {
  min-width: 0;
}

.view {
  display: none;
  min-height: 100vh;
}

.view.active {
  display: block;
}

.home-wrap,
.test-wrap,
.report-wrap,
.leader-wrap,
.learn-wrap,
.explain-wrap,
.utility-wrap {
  width: min(100%, 700px);
  margin: 0 auto;
  padding: 48px 24px 42px;
}

.brand-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.brand-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 0;
  color: white;
  background: linear-gradient(135deg, #23dbf0, #6b55ff);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 0;
  font-size: 2.28rem;
  line-height: 1;
}

.brand-hero p {
  margin: 4px 0 0;
  color: var(--cyan);
  font-weight: 850;
  letter-spacing: 2px;
  font-size: .984rem;
}

.subtitle,
.tagline,
.section-label {
  text-align: center;
}

.subtitle {
  color: var(--muted);
  font-size: 1.296rem;
  margin-bottom: 42px;
}

.rank-panel,
.question-card,
.adaptive-panel,
.utility-card,
.report-card,
.leader-row {
  background: rgba(17, 23, 48, .88);
  border: 1px solid rgba(71, 91, 135, .55);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.rank-grid {
  width: min(100%, 640px);
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.rank-panel {
  min-width: 0;
  margin: 0;
  padding: 24px 22px 22px;
  text-align: center;
  background: linear-gradient(135deg, rgba(56, 48, 138, .72), rgba(25, 57, 88, .72));
  border-color: rgba(58, 87, 255, .46);
}

.avg-rank-panel {
  justify-self: stretch;
  background: linear-gradient(135deg, rgba(17, 34, 58, .86), rgba(18, 65, 72, .62));
  border-color: rgba(33, 216, 242, .34);
}

.current-rank-panel {
  justify-self: stretch;
}

.rank-panel span {
  color: var(--muted);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: .8rem;
}

.rank-panel strong {
  display: block;
  color: var(--cyan);
  font-size: clamp(3rem, 7vw, 3.95rem);
  line-height: .95;
  margin: 8px 0 4px;
}

.rank-panel p {
  margin-bottom: 14px;
  color: #dde8ff;
  font-size: 1.12rem;
}

.rank-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.rank-badges small {
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 850;
  color: #fff;
}

.rank-badges small:first-child {
  background: #4e47bb;
  border: 1px solid #6f68ff;
}

.rank-badges small:last-child {
  background: #117c9a;
  border: 1px solid #23cfe8;
}

.avg-rank-panel .rank-badges small:first-child {
  background: rgba(60, 82, 119, .86);
  border-color: rgba(158, 178, 207, .34);
}

.avg-rank-panel .rank-badges small:last-child {
  background: rgba(17, 124, 154, .58);
  border-color: rgba(35, 207, 232, .34);
}

.home-actions {
  display: grid;
  gap: 15px;
  margin-bottom: 30px;
}

.home-actions :is(button, a) {
  position: relative;
  z-index: 1;
}

.gradient-button,
.outline-action,
.reward-action {
  width: 100%;
  min-height: 60px;
  border-radius: 18px;
  font-weight: 850;
  font-size: 1.06rem;
  color: white;
  cursor: pointer;
}

.gradient-button {
  border: 0;
  background: linear-gradient(100deg, #17bed4, #5850f0);
  box-shadow: 0 18px 42px rgba(29, 187, 229, .16);
}

.gradient-button span,
.outline-action span,
.reward-action span,
.shortcut-card span,
.page-title span,
.badges h3 span {
  width: 20px;
  height: 20px;
  display: inline-block;
  color: currentColor;
  vertical-align: -4px;
  margin-right: 12px;
  font-size: 0;
  pointer-events: none;
}

.gradient-button span { --icon: var(--play-icon); }
.outline-action span { --icon: var(--clock-icon); }
.info-action span { --icon: var(--book-icon); }
.expert-action span { --icon: var(--brain-icon); }
.reward-action span { --icon: var(--star-icon); }
.shortcut-card:first-child span,
.page-title span,
.badges h3 span { --icon: var(--trophy-icon); }
.shortcut-card:last-child span { --icon: var(--trend-icon); }
#reportsView .page-title span { --icon: var(--trend-icon); }
#assessmentInfoView .page-title span { --icon: var(--book-icon); }
.badges h3 span { --icon: var(--medal-icon); }

.outline-action,
.reward-action {
  background: rgba(36, 31, 95, .55);
  border: 1px solid rgba(84, 76, 217, .72);
  text-decoration: none;
}

.outline-action span {
  color: var(--cyan);
}

.reward-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px;
  border-color: rgba(255, 178, 0, .6);
  background: rgba(64, 42, 48, .52);
}

.reward-action span {
  color: var(--gold);
  margin-right: 8px;
}

.reward-action b {
  background: #ffc400;
  color: #1b1429;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.info-action {
  color: #7bf4ff;
  background: rgba(16, 67, 97, .5);
  border-color: rgba(33, 216, 242, .46);
}

.expert-action {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
  row-gap: 3px;
  text-align: left;
  padding: 10px 20px;
  color: #fff;
  background: linear-gradient(100deg, rgba(82, 51, 154, .62), rgba(20, 92, 107, .68));
  border-color: rgba(197, 108, 255, .58);
  box-shadow: inset 0 0 0 1px rgba(33, 216, 242, .14);
}

.neuroscience-action {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
  row-gap: 3px;
  text-align: left;
  padding: 10px 20px;
  color: #fff;
  background: linear-gradient(100deg, rgba(12, 132, 153, .72), rgba(41, 61, 145, .68));
  border-color: rgba(33, 216, 242, .62);
  box-shadow: inset 0 0 0 1px rgba(123, 244, 255, .14);
}

.expert-action span {
  grid-row: 1 / 3;
  color: #7bf4ff;
  margin-right: 0;
}

.neuroscience-action span {
  grid-row: 1 / 3;
  color: #7bf4ff;
  margin-right: 0;
}

.expert-action b,
.neuroscience-action b,
.expert-action small {
  pointer-events: none;
}

.expert-action b {
  font-size: 1.02rem;
}

.neuroscience-action b {
  font-size: 1.02rem;
}

.expert-action small {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
}

.neuroscience-action small {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
  pointer-events: none;
}

.riddle-action {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
  row-gap: 3px;
  text-align: left;
  padding: 10px 20px;
}

.riddle-action span {
  grid-row: 1 / 3;
  margin-right: 0;
}

.riddle-action b,
.riddle-action small {
  pointer-events: none;
}

.riddle-action small {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
}

.diploma-action {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
  row-gap: 3px;
  text-align: left;
  padding: 10px 20px;
  color: #fff6d6;
  background: linear-gradient(100deg, rgba(93, 59, 22, .68), rgba(34, 87, 96, .62));
  border-color: rgba(255, 212, 77, .58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.diploma-action span {
  grid-row: 1 / 3;
  color: var(--gold);
  margin-right: 0;
  --icon: var(--medal-icon);
}

.diploma-action b,
.diploma-action small {
  pointer-events: none;
}

.diploma-action b {
  font-size: 1.02rem;
}

.diploma-action small {
  display: block;
  color: #d8cfae;
  font-size: .78rem;
  font-weight: 750;
}

.diploma-action.locked,
.diploma-action:disabled {
  opacity: .54;
  cursor: not-allowed;
  filter: grayscale(.25);
  background: rgba(36, 31, 95, .42);
  border-color: rgba(120, 130, 160, .38);
  color: rgba(255, 255, 255, .72);
  box-shadow: none;
}

.diploma-action.locked span,
.diploma-action:disabled span {
  color: rgba(216, 207, 174, .72);
}

.diploma-action.locked small,
.diploma-action:disabled small {
  color: rgba(205, 213, 232, .7);
}

.diploma-action.locked:hover,
.diploma-action:disabled:hover {
  transform: none;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 42px;
}

.shortcut-card {
  min-height: 102px;
  border-radius: 17px;
  background: rgba(30, 40, 65, .86);
  border: 1px solid rgba(70, 90, 125, .45);
  color: #dce7ff;
  font-weight: 850;
}

.shortcut-card span {
  display: block;
  margin: 0 auto 12px;
  width: 28px;
  height: 28px;
}

.shortcut-card:first-child span {
  color: var(--gold);
}

.shortcut-card:last-child span {
  color: var(--cyan);
}

.section-label {
  margin: 0 0 20px;
  color: #7888aa;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: .92rem;
  font-weight: 500;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 520px);
  margin: 0 auto 48px;
}

.domain-tile {
  min-height: 92px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  gap: 6px;
  border: 1px solid;
  font-weight: 850;
}

.domain-tile i {
  font-style: normal;
  font-size: 1.35rem;
}

.domain-tile.visual { color: #c678ff; background: rgba(92, 27, 138, .34); border-color: rgba(151, 64, 222, .45); }
.domain-tile.logic { color: var(--cyan); background: rgba(20, 67, 112, .32); border-color: rgba(33, 216, 242, .27); }
.domain-tile.memory { color: #43ff91; background: rgba(15, 84, 77, .28); border-color: rgba(54, 240, 138, .25); }
.domain-tile.spatial { color: var(--orange); background: rgba(102, 43, 42, .35); border-color: rgba(255, 138, 53, .35); }
.domain-tile.vocabulary { color: var(--pink); background: rgba(112, 25, 82, .34); border-color: rgba(255, 86, 168, .35); }
.domain-tile.pattern { color: var(--gold); background: rgba(92, 58, 32, .32); border-color: rgba(255, 212, 0, .25); }

.tagline {
  color: rgba(158, 178, 207, .54);
  font-style: italic;
}

.test-wrap {
  width: min(100%, 1060px);
  padding-top: 38px;
}

.test-top {
  width: min(100%, 520px);
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  color: var(--muted);
  font-size: 1.2rem;
}

.test-top span:nth-child(2) {
  justify-self: center;
}

.test-top span:nth-child(3) {
  justify-self: end;
}

.back-button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0;
  display: grid;
  place-items: center;
  text-decoration: none;
}

.back-button::before {
  --icon: var(--back-icon);
  width: 24px;
  height: 24px;
}

.progress-track {
  width: min(100%, 520px);
  height: 8px;
  margin: 0 auto 32px;
  background: rgba(37, 60, 70, .75);
  border-radius: 999px;
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), #756dff);
  transition: width .22s ease;
}

.test-grid {
  display: grid;
  grid-template-columns: minmax(0, 560px) 320px;
  justify-content: center;
  align-items: start;
  gap: 24px;
}

.test-main {
  display: grid;
  gap: 20px;
}

.category-chip {
  justify-self: start;
  min-height: 28px;
  padding: 4px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  font-weight: 850;
  color: #c679ff;
  background: rgba(102, 35, 144, .5);
  border: 1px solid rgba(198, 108, 255, .55);
}

.category-chip.matrix { color: var(--cyan); background: rgba(16, 67, 97, .6); border-color: rgba(33, 216, 242, .36); }
.category-chip.spatial { color: var(--orange); background: rgba(91, 41, 36, .62); border-color: rgba(255, 138, 53, .48); }
.category-chip.logic { color: #57ff94; background: rgba(20, 91, 62, .48); border-color: rgba(54, 240, 138, .42); }
.category-chip.vocabulary { color: var(--pink); background: rgba(110, 28, 78, .54); border-color: rgba(255, 86, 168, .46); }
.category-chip.memory,
.category-chip.speed { color: var(--gold); background: rgba(90, 64, 24, .48); border-color: rgba(255, 212, 0, .42); }

.question-card {
  padding: 26px;
}

.question-card h2 {
  font-size: 1.36rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

.question-card.memory-preview h2 {
  color: var(--gold);
}

.visual-stage {
  min-height: 88px;
  border-radius: 21px;
  background: var(--panel-2);
  display: grid;
  place-items: center;
  padding: 22px;
  margin-bottom: 20px;
  color: #fff;
}

.visual-stage:has(.restaurant-memory),
.visual-stage:has(.runner-memory),
.visual-stage:has(.menu-order-memory) {
  padding: 10px;
}

.visual-stage.is-text {
  display: none;
}

.symbol-row,
.pattern-sequence,
.matrix-grid,
.number-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
  font-size: 1.75rem;
  font-weight: 900;
}

.symbol-row .qmark,
.pattern-sequence .qmark,
.number-grid .qmark {
  color: var(--cyan);
  font-size: 2.05rem;
}

.pattern-sequence {
  gap: clamp(18px, 4vw, 34px);
}

.pattern-group {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.matrix-grid,
.number-grid {
  display: grid;
  grid-template-columns: repeat(3, 52px);
  gap: 18px 18px;
  text-align: center;
}

.number-grid {
  font-size: 2rem;
}

.expert-sequence,
.expert-matrix {
  display: grid;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.expert-sequence {
  grid-auto-flow: column;
  grid-auto-columns: 86px;
}

.expert-matrix.three {
  grid-template-columns: repeat(3, 84px);
}

.expert-matrix.two {
  grid-template-columns: repeat(2, 100px);
}

.expert-cell {
  width: 84px;
  height: 84px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #f9fbfb;
  border: 1px solid rgba(120, 135, 150, .6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75);
}

.expert-matrix.two .expert-cell {
  width: 100px;
  height: 100px;
}

.expert-missing {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #5c5c62;
  font-size: 3.7rem;
  font-weight: 950;
  line-height: 1;
}

.color-stack {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20, 30, 42, .35);
}

.color-stack span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20, 30, 42, .35);
}

.color-stack i {
  width: 24px;
  height: 24px;
  display: block;
  border: 1px solid rgba(20, 30, 42, .35);
}

.blue { background: #56bde5; }
.red { background: #ef2029; }
.green { background: #79bd43; }
.yellow { background: #ffe900; }
.gray { background: #55565b; }
.white { background: #fff; }

.triangle.blue,
.dot-triangle.blue { color: #56bde5; background: transparent; }
.triangle.red,
.dot-triangle.red { color: #ef2029; background: transparent; }
.triangle.green,
.dot-triangle.green { color: #79bd43; background: transparent; }
.triangle.yellow,
.dot-triangle.yellow { color: #ffe900; background: transparent; }

.red-cross,
.shape-field,
.shape-only {
  position: relative;
  width: 64px;
  height: 64px;
  background: #fff;
}

.red-cross span,
.red-cross i {
  position: absolute;
  display: block;
  background: #ed2028;
}

.red-cross span {
  left: 0;
  right: 0;
  height: 4px;
}

.red-cross i {
  top: 0;
  bottom: 0;
  width: 4px;
}

.red-cross.h-top span { top: 12px; }
.red-cross.h-middle span { top: 30px; }
.red-cross.h-bottom span { bottom: 12px; }
.red-cross.v-left i { left: 12px; }
.red-cross.v-center i { left: 30px; }
.red-cross.v-right i { right: 12px; }

.dot-board {
  width: 62px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.dot-board span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid #686d71;
  background: transparent;
}

.dot-board span.filled {
  background: #5d6065;
}

.bar-tile {
  width: 62px;
  height: 62px;
  display: flex;
  gap: 6px;
  align-items: stretch;
}

.bar-tile.left { justify-content: flex-start; }
.bar-tile.center { justify-content: center; }
.bar-tile.right { justify-content: flex-end; }

.bar-tile span {
  width: 5px;
  background: #ee2028;
}

.shape-field span,
.shape-only span {
  position: absolute;
  display: block;
}

.shape-only span {
  inset: 14px;
  margin: auto;
}

.circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #5c5c62;
}

.square {
  width: 22px;
  height: 22px;
  border: 2px solid #5c5c62;
}

.triangle {
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 25px solid currentColor;
  background: transparent;
  filter: drop-shadow(0 0 0 #5c5c62);
}

.pentagon {
  width: 34px;
  height: 32px;
  clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%);
}

.p-tl { left: 8px; top: 8px; }
.p-tr { right: 8px; top: 8px; }
.p-br { right: 8px; bottom: 8px; }
.p-bl { left: 8px; bottom: 8px; }
.p-center { left: 21px; top: 21px; }

.pie-disc {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid #62656a;
  background: conic-gradient(var(--tr) 0 90deg, var(--br) 90deg 180deg, var(--bl) 180deg 270deg, var(--tl) 270deg 360deg);
  position: relative;
}

.pie-disc::before,
.pie-disc::after {
  content: "";
  position: absolute;
  background: #62656a;
}

.pie-disc::before {
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
}

.pie-disc::after {
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
}

.blue-lines {
  width: 62px;
  height: 62px;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.blue-lines span {
  display: block;
  width: 6px;
  height: 52px;
  background: #26bce5;
  border: 2px solid #5b5f66;
}

.blue-lines.horizontal {
  flex-direction: column;
}

.blue-lines.horizontal span {
  width: 52px;
  height: 6px;
}

.blue-lines.diag {
  transform: rotate(45deg);
}

.nested-line-puzzle {
  display: block;
  width: min(100%, 430px);
  height: auto;
  margin: 0 auto;
}

.nl-line,
.lf-line {
  fill: none;
  stroke: #d8e0ea;
  stroke-width: 2.4;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.nl-mask {
  fill: #121a31;
  stroke: #d8e0ea;
  stroke-width: 1.7;
}

.nl-question {
  fill: #ffffff;
  font-size: 54px;
  font-weight: 950;
  font-family: Inter, system-ui, sans-serif;
}

.line-fragment-tile {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto;
}

.dot-triangle {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  grid-template-columns: repeat(3, 1fr);
}

.dot-triangle span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: currentColor;
  justify-self: center;
}

.dot-triangle.count-3 span:nth-child(1) { grid-column: 2; }
.dot-triangle.count-5 span:nth-child(5) { grid-column: 2; }

.choice .expert-cell {
  background: #fff;
  border-color: rgba(60, 75, 95, .32);
}

.choice .color-stack,
.choice .red-cross,
.choice .shape-field,
.choice .shape-only,
.choice .pie-disc,
.choice .dot-board,
.choice .blue-lines,
.choice .line-fragment-tile,
.choice .dot-triangle,
.choice .bar-tile {
  transform: scale(1.05);
}

.cube-stack {
  font-size: 3.6rem;
  line-height: 1;
}

.restaurant-memory,
.runner-memory,
.menu-order-memory {
  position: relative;
  width: 100%;
  max-width: 680px;
  aspect-ratio: 2.5 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(70, 90, 125, .45);
  background: #0b1027;
}

.runner-memory {
  max-width: 508px;
  aspect-ratio: 2.1 / 1;
}

.restaurant-memory img,
.runner-memory img,
.menu-order-memory img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 200%;
  object-fit: cover;
}

.restaurant-memory.study img,
.menu-order-memory.study img {
  object-position: top center;
  transform: translateY(0);
}

.restaurant-memory.recall img,
.runner-memory.study img,
.runner-memory.recall img,
.menu-order-memory.recall img {
  object-position: bottom center;
  transform: translateY(-50%);
}

.person-tag {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #0a1129;
  background: #fff;
  border: 2px solid rgba(16, 22, 40, .82);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .35);
  font-weight: 950;
  font-size: 1.15rem;
}

.tag-a {
  left: 20%;
  top: 29%;
}

.tag-b {
  left: 43%;
  top: 24%;
}

.tag-c {
  left: 64%;
  top: 12%;
}

.tag-d {
  left: 86%;
  top: 21%;
}

.menu-order-tag {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-size: 1.02rem;
  transform: translate(-50%, -50%);
}

.menu-tag-a {
  left: 15%;
  top: 30%;
}

.menu-tag-b {
  left: 50%;
  top: 28%;
}

.menu-tag-c {
  left: 80%;
  top: 28%;
}

.runner-tag {
  min-width: 34px;
  width: auto;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 1.02rem;
  transform: translateX(-50%);
  white-space: nowrap;
}

.runner-memory.study .runner-tag {
  font-size: .82rem;
}

.runner-a {
  left: 15%;
  top: 6%;
}

.runner-b {
  left: 33%;
  top: 5%;
}

.runner-c {
  left: 51%;
  top: 5%;
}

.runner-d {
  left: 65%;
  top: 5%;
}

.runner-e {
  left: 79%;
  top: 5%;
}

.runner-f {
  left: 91%;
  top: 5%;
}

.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.choices.memory-hidden {
  display: none;
}

.question-card.textual .choices,
.question-card.choice-list .choices {
  grid-template-columns: 1fr;
  gap: 10px;
}

.question-card.choice-visual .choices {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice {
  min-height: 84px;
  border-radius: 18px;
  border: 2px solid var(--line-strong);
  background: var(--panel-2);
  color: #fff;
  display: grid;
  place-items: center;
  padding: 14px 18px;
  font-weight: 850;
  font-size: 1.05rem;
  text-align: center;
}

.question-card.textual .choice,
.question-card.choice-list .choice {
  min-height: 58px;
  justify-items: start;
  text-align: left;
  border-radius: 14px;
}

.choice .letter {
  color: var(--cyan);
  margin-right: 10px;
  font-weight: 950;
}

.question-card.choice-visual .choice {
  min-height: 112px;
  padding: 10px;
}

.question-card.choice-visual .choice > span {
  width: 100%;
  display: grid;
  place-items: center;
}

.choice:hover,
.choice.selected {
  border-color: var(--green);
  background: rgba(21, 65, 60, .7);
  color: #6cffad;
}

.choice.correct {
  border-color: var(--green);
  background: rgba(17, 67, 57, .92);
  color: #67ffab;
}

.choice.wrong {
  border-color: var(--red);
  background: rgba(83, 25, 48, .72);
  color: #ff9aa6;
}

.feedback {
  display: none;
  margin: 20px 0 0;
  padding: 16px;
  border-radius: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.feedback.show {
  display: block;
}

.feedback.correct {
  background: rgba(19, 76, 60, .92);
  border: 1px solid rgba(54, 240, 138, .25);
  color: #66ffab;
}

.feedback.wrong {
  background: rgba(80, 25, 48, .92);
  border: 1px solid rgba(255, 75, 94, .38);
  color: #ffa2aa;
}

.next-button {
  display: none;
}

.next-button.ready,
.next-button.answered {
  display: block;
}

.adaptive-panel {
  padding: 20px;
  position: sticky;
  top: 24px;
}

.adaptive-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.adaptive-head span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .75rem;
}

.adaptive-head strong {
  color: var(--cyan);
  font-size: 2.4rem;
}

.iq-meter,
.perf-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(41, 60, 76, .75);
  overflow: hidden;
}

.iq-meter {
  position: relative;
  margin-bottom: 20px;
}

.iq-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), #756dff);
}

.domain-list,
.performance-list,
.difficulty-list,
.badge-grid,
.leaderboard,
.practice-grid {
  display: grid;
  gap: 14px;
}

.domain-item {
  display: grid;
  gap: 7px;
}

.domain-row,
.performance-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #dbe7ff;
  font-weight: 800;
}

.domain-row small,
.performance-row small {
  color: #a7bef2;
  font-size: .95rem;
}

.bar,
.perf-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(41, 60, 76, .75);
  overflow: hidden;
}

.bar span,
.perf-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), #756dff);
}

.utility-wrap {
  padding-top: 38px;
}

.utility-card {
  margin-top: 20px;
  padding: 26px;
}

.utility-card h2 {
  font-size: 1.7rem;
  margin: 18px 0 12px;
}

.utility-card p {
  color: var(--muted);
  line-height: 1.7;
}

.report-wrap,
.leader-wrap {
  width: min(100%, 570px);
}

.page-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.page-title h2 {
  margin: 0;
  font-size: 1.55rem;
}

.page-title span {
  color: var(--cyan);
  margin-right: 8px;
}

#leaderboardView .page-title span {
  color: var(--gold);
}

#learnView .page-title span {
  color: var(--cyan);
}

#diplomaView .page-title span {
  color: var(--gold);
  --icon: var(--medal-icon);
}

#learnView .book-mark {
  --icon: var(--book-icon);
}

.learn-wrap {
  width: min(100%, 760px);
}

.learn-hero,
.lesson-card,
.coach-card {
  background: rgba(17, 23, 48, .88);
  border: 1px solid rgba(71, 91, 135, .55);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.learn-hero {
  padding: 26px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(31, 41, 84, .94), rgba(22, 31, 57, .92));
}

.learn-hero h2 {
  margin: 18px 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.12;
}

.learn-hero p,
.lesson-card p,
.coach-card p {
  color: var(--muted);
  line-height: 1.6;
}

.lesson-progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(41, 60, 76, .75);
  overflow: hidden;
  margin: 24px 0 16px;
}

.lesson-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), #756dff);
}

.learn-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.learn-stats span {
  min-height: 64px;
  border-radius: 14px;
  background: rgba(30, 40, 65, .78);
  border: 1px solid rgba(70, 90, 125, .45);
  color: var(--muted);
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
}

.learn-stats b {
  color: #fff;
  font-size: 1.2rem;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.lesson-card {
  min-height: 210px;
  padding: 20px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
}

.lesson-card h3,
.coach-card h3 {
  margin-bottom: 10px;
  line-height: 1.3;
}

.lesson-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 950;
}

.lesson-card.visual .lesson-icon { color: #d58aff; background: rgba(92, 27, 138, .46); }
.lesson-card.logic .lesson-icon { color: #57ff94; background: rgba(20, 91, 62, .48); }
.lesson-card.vocabulary .lesson-icon { color: var(--pink); background: rgba(110, 28, 78, .54); }
.lesson-card.spatial .lesson-icon { color: var(--orange); background: rgba(91, 41, 36, .62); }

.lesson-demo {
  margin-top: 16px;
  min-height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--panel-2);
  border: 1px solid rgba(70, 90, 125, .45);
  color: #fff;
  font-weight: 950;
}

.coach-card {
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: center;
  border-color: rgba(33, 216, 242, .34);
}

.coach-card .gradient-button {
  min-height: 58px;
}

.explain-wrap {
  width: min(100%, 820px);
}

.explain-card {
  padding: 26px;
  background: rgba(17, 23, 48, .88);
  border: 1px solid rgba(71, 91, 135, .55);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.explain-card h2 {
  margin: 18px 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.45rem);
  line-height: 1.12;
}

.explain-card p {
  color: var(--muted);
  line-height: 1.65;
}

.explain-section {
  margin-top: 24px;
}

.explain-section h3 {
  margin-bottom: 12px;
  color: #e7efff;
  font-size: 1.16rem;
}

.criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.criteria-grid div,
.domain-explain-list,
.score-table {
  border-radius: 14px;
  background: rgba(30, 40, 65, .78);
  border: 1px solid rgba(70, 90, 125, .45);
}

.criteria-grid div {
  min-height: 138px;
  padding: 16px;
}

.criteria-grid b,
.domain-explain-list b {
  display: block;
  color: #fff;
  margin-bottom: 8px;
}

.criteria-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.score-table {
  overflow: hidden;
  margin-top: 14px;
}

.score-table [role="row"] {
  display: grid;
  grid-template-columns: 1.05fr 1.45fr .7fr;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(70, 90, 125, .35);
  color: #dce7ff;
}

.score-table [role="row"]:first-child {
  color: var(--cyan);
  background: rgba(16, 67, 97, .35);
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.score-table [role="row"]:last-child {
  border-bottom: 0;
}

.domain-explain-list {
  padding: 16px 18px;
}

.domain-explain-list p {
  margin-bottom: 14px;
}

.domain-explain-list p:last-child,
.source-note {
  margin-bottom: 0;
}

.source-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(70, 90, 125, .4);
}

.report-card {
  padding: 20px;
  margin-bottom: 30px;
}

.report-card h3 {
  margin-bottom: 0;
  color: #dce8ff;
}

.chart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.chart-header p {
  margin-top: 6px;
  color: var(--muted);
  font-size: .86rem;
}

.active-date {
  min-width: 138px;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: right;
  background: rgba(33, 216, 242, .1);
  border: 1px solid rgba(33, 216, 242, .36);
}

.active-date span {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.active-date b {
  display: block;
  margin-top: 5px;
  color: var(--cyan);
  font-size: .95rem;
}

#lineChart {
  width: 100%;
  min-height: 210px;
  overflow: visible;
}

.axis,
.grid {
  stroke: rgba(85, 113, 157, .35);
}

.grid {
  stroke-dasharray: 4 5;
}

.chart-line {
  stroke: var(--cyan);
  stroke-width: 4;
  fill: none;
  filter: drop-shadow(0 0 8px rgba(33, 216, 242, .28));
}

.chart-area {
  fill: url("#chartFill");
  opacity: .16;
}

.chart-dot {
  fill: var(--cyan);
}

.chart-dot.active {
  fill: #7bf4ff;
  stroke: #ffffff;
  stroke-width: 3;
  filter: drop-shadow(0 0 8px rgba(33, 216, 242, .65));
}

.chart-label {
  fill: #8fa8cd;
  font: 14px Inter, sans-serif;
}

.chart-active-label {
  fill: #dce8ff;
  font: 700 13px Inter, sans-serif;
}

.chart-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.chart-summary span {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(25, 33, 57, .72);
  border: 1px solid rgba(70, 90, 125, .42);
}

.chart-summary b {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.performance-row {
  align-items: center;
}

.performance-row span:first-child {
  width: 32px;
  text-align: center;
}

.performance-meta {
  flex: 1;
}

.performance-meta b {
  display: block;
  margin-bottom: 7px;
}

.difficulty-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  color: #dce8ff;
  font-size: 1.08rem;
  font-weight: 800;
}

.difficulty-item.locked {
  opacity: .38;
}

.difficulty-item .dot {
  width: 13px;
  height: 13px;
  border-radius: 99px;
  display: inline-block;
  margin-right: 14px;
  background: #6c7d9b;
}

.difficulty-item .check {
  min-width: 40px;
  text-align: center;
  color: var(--green);
  background: rgba(54, 240, 138, .14);
  border: 1px solid rgba(54, 240, 138, .24);
  border-radius: 999px;
  padding: 3px 9px;
}

.badges h3 {
  color: #dce8ff;
}

.badges h3 span {
  color: var(--gold);
}

.badge-grid {
  grid-template-columns: repeat(3, 1fr);
}

.badge {
  min-height: 96px;
  border-radius: 13px;
  border: 1px solid rgba(255, 138, 53, .3);
  background: rgba(72, 40, 56, .52);
  display: grid;
  place-items: center;
  text-align: center;
  color: #dce8ff;
  font-weight: 800;
}

.badge.locked {
  opacity: .38;
  background: rgba(22, 27, 58, .65);
  border-color: rgba(78, 89, 128, .24);
}

.leaderboard-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 34px;
  overflow-x: auto;
}

.tab {
  min-height: 48px;
  padding: 0 17px;
  border-radius: 13px;
  background: rgba(30, 40, 65, .86);
  border: 1px solid rgba(70, 90, 125, .45);
  color: var(--muted);
  font-weight: 850;
  font-size: 1rem;
}

.tab.active {
  color: #49e8ff;
  background: rgba(18, 89, 119, .62);
  border-color: rgba(33, 216, 242, .48);
}

.leader-row {
  min-height: 66px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
}

.leader-row.you {
  border-color: rgba(33, 216, 242, .5);
  background: rgba(24, 73, 119, .5);
}

.leader-rank {
  color: rgba(33, 216, 242, .16);
  font-size: 1.28rem;
  font-weight: 950;
}

.leader-rank.medal {
  color: #5b91ff;
}

.leader-name {
  font-weight: 950;
}

.leader-name small {
  margin-left: 6px;
  color: #dce8ff;
  font-size: .72rem;
}

.leader-row.you .leader-name,
.leader-row.you .leader-name small {
  color: #49e8ff;
}

.leader-score {
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(37, 54, 76, .82);
  border: 1px solid rgba(113, 134, 167, .35);
  color: #dce8ff;
  font-weight: 950;
}

.leader-row.you .leader-score {
  color: #49e8ff;
  background: rgba(12, 106, 140, .54);
}

.practice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.practice-card {
  padding: 18px;
  border: 1px solid rgba(70, 90, 125, .45);
  border-radius: 14px;
  background: rgba(30, 40, 65, .86);
  min-height: 120px;
  display: grid;
  align-content: space-between;
  gap: 18px;
}

.practice-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--cyan);
}

.practice-card p {
  margin: 0;
}

.practice-card.visual {
  border-color: rgba(198, 108, 255, .34);
}

.practice-card.matrix {
  border-color: rgba(33, 216, 242, .34);
}

.practice-card.logic {
  border-color: rgba(54, 240, 138, .34);
}

.practice-card.riddles {
  border-color: rgba(255, 201, 18, .42);
  background: linear-gradient(135deg, rgba(45, 34, 58, .92), rgba(18, 44, 58, .82));
}

.practice-card.vocabulary {
  border-color: rgba(255, 86, 168, .34);
}

.practice-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.practice-meta span {
  color: var(--muted);
  font-weight: 850;
}

.practice-button {
  min-height: 38px;
  min-width: 88px;
  border: 1px solid rgba(33, 216, 242, .45);
  border-radius: 12px;
  background: rgba(18, 89, 119, .62);
  color: #49e8ff;
  font-weight: 900;
  cursor: pointer;
}

.practice-button:hover {
  color: #fff;
  border-color: var(--cyan);
}

.riddle-wrap {
  width: min(760px, calc(100vw - 150px));
  margin: 34px auto 80px;
}

.riddle-card {
  margin-top: 34px;
  border: 1px solid rgba(70, 90, 125, .48);
  border-radius: 18px;
  background: rgba(15, 22, 45, .92);
  padding: 30px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .22);
}

.riddle-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-weight: 900;
}

.riddle-card .progress-track {
  margin: 18px 0 26px;
}

.riddle-card h3 {
  margin: 0 0 24px;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1.4;
}

.riddle-entry {
  display: grid;
  gap: 9px;
}

.riddle-entry span {
  color: var(--muted);
  font-weight: 850;
}

.riddle-entry input {
  min-height: 58px;
  border-radius: 14px;
  border: 2px solid rgba(113, 134, 167, .38);
  background: rgba(26, 37, 58, .92);
  color: #fff;
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
  outline: none;
}

.riddle-entry input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(33, 216, 242, .13);
}

.riddle-feedback {
  min-height: 58px;
  margin: 18px 0 0;
  border-radius: 14px;
  padding: 15px 17px;
  background: rgba(26, 37, 58, .72);
  border: 1px solid rgba(113, 134, 167, .24);
  color: #c6d8ff;
  font-weight: 800;
  line-height: 1.45;
}

.riddle-feedback.correct {
  background: rgba(16, 92, 64, .72);
  border-color: rgba(54, 240, 138, .44);
  color: #70ffae;
}

.riddle-feedback.incorrect,
.riddle-feedback.reveal {
  background: rgba(99, 25, 50, .72);
  border-color: rgba(255, 76, 87, .48);
  color: #ffb2bb;
}

.riddle-feedback.reveal {
  color: #ffd0d6;
}

.riddle-actions {
  display: grid;
  grid-template-columns: minmax(110px, auto) 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.riddle-actions .outline-action,
.riddle-actions .gradient-button {
  width: 100%;
  min-height: 54px;
}

.diploma-wrap {
  width: min(1180px, calc(100vw - 150px));
  margin: 34px auto 90px;
}

.diploma-builder {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.diploma-form {
  border: 1px solid rgba(70, 90, 125, .52);
  border-radius: 18px;
  background: rgba(15, 22, 45, .92);
  padding: 24px;
  box-shadow: var(--shadow);
}

.diploma-form h2 {
  margin: 18px 0 10px;
  font-size: 1.55rem;
}

.diploma-form p {
  color: var(--muted);
  line-height: 1.6;
}

.diploma-fields {
  display: grid;
  gap: 14px;
  margin: 22px 0 10px;
}

.diploma-fields label {
  display: grid;
  gap: 8px;
}

.diploma-fields span {
  color: #c4d4ee;
  font-weight: 850;
}

.diploma-fields input {
  min-height: 54px;
  border-radius: 14px;
  border: 2px solid rgba(113, 134, 167, .38);
  background: rgba(26, 37, 58, .92);
  color: #fff;
  padding: 0 16px;
  font: inherit;
  font-weight: 800;
  outline: none;
}

.diploma-fields input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(255, 212, 0, .12);
}

.diploma-status {
  min-height: 24px;
  margin: 10px 0 16px;
  font-weight: 850;
}

.diploma-status.error {
  color: #ff9daa;
}

.diploma-status.success {
  color: #7cffad;
}

.diploma-actions {
  display: grid;
  gap: 12px;
}

.diploma-actions .gradient-button,
.diploma-actions .outline-action {
  min-height: 54px;
}

#generateDiploma span {
  --icon: var(--medal-icon);
}

#printDiploma span {
  --icon: var(--screen-icon);
}

#downloadDiploma span {
  --icon: var(--book-icon);
}

.diploma-document {
  border-radius: 14px;
  background: linear-gradient(135deg, #f7efd3, #fffaf0 52%, #efe0b5);
  padding: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .34);
  color: #20170c;
}

.diploma-border {
  min-height: 620px;
  border: 6px double #9a6d1f;
  padding: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .65), rgba(255, 245, 218, .25));
}

.diploma-inner {
  min-height: 572px;
  border: 2px solid #b58a34;
  padding: 38px 46px 30px;
  display: grid;
  justify-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.diploma-kicker {
  margin: 0 0 12px;
  color: #6e5424;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.diploma-inner h3 {
  margin: 0 0 28px;
  color: #0f4f55;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.diploma-inner h3 span,
.diploma-inner h3 small {
  display: block;
}

.diploma-inner h3 small {
  margin-top: 8px;
  color: #8a6625;
  font-size: .48em;
  letter-spacing: 7px;
  text-transform: uppercase;
}

.diploma-presented {
  margin: 0 0 12px;
  color: #665235;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

#diplomaName {
  display: block;
  width: min(100%, 620px);
  min-height: 76px;
  margin: 0 0 22px;
  padding: 0 12px 10px;
  border-bottom: 2px solid #9a6d1f;
  color: #17100a;
  font-family: "Brush Script MT", "Segoe Script", Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4.3rem);
  line-height: 1.1;
  font-weight: 500;
}

.diploma-copy {
  width: min(100%, 700px);
  margin: 0 0 18px;
  color: #3c3329;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.65;
}

.diploma-accomplishment {
  width: min(100%, 720px);
  margin: 0 0 18px;
  padding: 14px 18px;
  border-top: 1px solid rgba(154, 109, 31, .35);
  border-bottom: 1px solid rgba(154, 109, 31, .35);
  color: #1f4f55;
  font-weight: 850;
}

.diploma-date {
  margin: 0 0 24px;
  color: #59492f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
}

.diploma-seal {
  width: 126px;
  height: 126px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  place-items: center;
  margin: 0 0 24px;
  color: #fff8cf;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .9), transparent 0 9%, rgba(255, 246, 172, .44) 10% 18%, transparent 19%),
    radial-gradient(circle, #173f45 0 30%, #0f4f55 31% 43%, #d8b34a 44% 47%, #805813 48% 57%, #d7a928 58% 68%, #5c3a0c 69% 100%);
  border: 5px double #f0d977;
  box-shadow: 0 14px 28px rgba(78, 43, 0, .32), inset 0 0 0 6px rgba(255, 246, 184, .28), inset 0 0 0 16px rgba(11, 70, 76, .88);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.15rem;
  font-weight: 950;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .28);
}

.diploma-seal small {
  margin-top: 2px;
  font-size: .48rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.diploma-signatures {
  width: min(100%, 700px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px;
  align-self: end;
}

.diploma-signatures div {
  display: grid;
  gap: 10px;
  color: #4c402b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .82rem;
}

.diploma-signatures strong {
  min-height: 34px;
  color: #17100a;
  font-family: "Brush Script MT", "Segoe Script", Georgia, serif;
  font-size: clamp(1.2rem, 2.22vw, 1.65rem);
  font-weight: 500;
  white-space: nowrap;
}

.diploma-signatures span {
  width: min(100%, 250px);
  justify-self: center;
  height: 2px;
  background: #7b5b22;
}

#neuroscienceView .page-title span,
.neuroscience-action span {
  --icon: var(--brain-icon);
}

.neuroscience-wrap {
  width: min(100%, 1320px);
  margin: 0 auto;
  padding: 34px 32px 64px;
}

.neuroscience-title h2 {
  margin: 0;
}

.neuroscience-shell {
  margin-top: 22px;
  padding: 22px;
  border: 1px solid rgba(77, 104, 244, .32);
  border-radius: 22px;
  background: rgba(10, 17, 42, .78);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.neuroscience-topbar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scrollbar-color: rgba(33, 216, 242, .72) rgba(255, 255, 255, .08);
}

.neuroscience-tab {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid rgba(158, 178, 207, .34);
  background: rgba(23, 35, 62, .88);
  color: #c4d4ee;
  font-size: 1rem;
  font-weight: 850;
  cursor: pointer;
}

.neuroscience-tab.active {
  border-color: rgba(33, 216, 242, .86);
  background: #11bfca;
  color: #fff;
  box-shadow: 0 12px 30px rgba(17, 191, 202, .2);
}

.neuroscience-progress {
  height: 12px;
  margin: 0 0 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}

.neuroscience-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #21d8f2, #36f08a);
  transition: width 240ms ease;
}

.neuroscience-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 24px;
  align-items: end;
  margin-bottom: 26px;
}

.neuroscience-heading h2 {
  margin: 12px 0 4px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.neuroscience-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  font-weight: 750;
}

.neuroscience-search {
  min-height: 52px;
  border: 1px solid rgba(158, 178, 207, .3);
  border-radius: 16px;
  background: rgba(21, 31, 54, .92);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
}

.neuroscience-search span {
  width: 20px;
  height: 20px;
  display: inline-block;
  background: currentColor;
  -webkit-mask: var(--search-icon) center / contain no-repeat;
          mask: var(--search-icon) center / contain no-repeat;
  color: #9eb2cf;
  font-size: 0;
  --icon: var(--search-icon);
}

.neuroscience-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 750;
}

.neuroscience-search input::placeholder {
  color: #9eb2cf;
}

.neuroscience-displays {
  display: grid;
  gap: 22px;
}

.neuroscience-display {
  margin: 0;
  border: 1px solid rgba(158, 178, 207, .28);
  border-radius: 18px;
  background: #f5f7fb;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .2);
}

.neuroscience-display img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 1120px) {
  .test-grid {
    grid-template-columns: minmax(0, 520px);
  }

  .adaptive-panel {
    position: static;
  }

  .diploma-builder {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .rail {
    padding: 24px 12px;
    gap: 34px;
  }

  .rail-logo {
    width: 46px;
    height: 46px;
  }

  .rail-nav {
    gap: 20px;
  }

  .home-wrap,
  .test-wrap,
  .report-wrap,
  .leader-wrap,
  .learn-wrap,
  .diploma-wrap,
  .riddle-wrap,
  .neuroscience-wrap,
  .utility-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .neuroscience-shell {
    padding: 16px;
    border-radius: 18px;
  }

  .neuroscience-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .domain-grid,
  .shortcut-grid,
  .rank-grid,
  .choices,
  .badge-grid,
  .learn-stats,
  .lesson-grid,
  .practice-grid {
    grid-template-columns: 1fr;
  }

  .lesson-card,
  .coach-card {
    grid-template-columns: 1fr;
  }

  .riddle-wrap {
    width: calc(100vw - 92px);
    margin-top: 24px;
  }

  .riddle-card {
    padding: 20px;
  }

  .riddle-card h3 {
    font-size: 1.2rem;
  }

  .riddle-actions {
    grid-template-columns: 1fr;
  }

  .diploma-wrap {
    width: calc(100vw - 92px);
    margin-top: 24px;
  }

  .diploma-form,
  .diploma-document {
    padding: 16px;
  }

  .diploma-border {
    min-height: auto;
    padding: 10px;
  }

  .diploma-inner {
    min-height: auto;
    padding: 28px 18px 24px;
  }

  .diploma-signatures {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .criteria-grid,
  .score-table [role="row"] {
    grid-template-columns: 1fr;
  }

  .question-card {
    padding: 20px;
  }

  .symbol-row {
    gap: 9px;
    font-size: 1.35rem;
  }

  .leader-row {
    grid-template-columns: 36px 1fr;
  }

  .leader-score {
    grid-column: 2;
    justify-self: start;
  }
}

@media print {
  body {
    background: #fff;
  }

  .rail,
  .diploma-form,
  .page-title {
    display: none;
  }

  .app-shell,
  .screen,
  .view.active,
  .diploma-wrap,
  .diploma-builder {
    display: block;
    width: 100%;
    min-height: auto;
    margin: 0;
    padding: 0;
  }

  .diploma-document {
    box-shadow: none;
    border-radius: 0;
  }
}
