:root {
  --pcv-bg: #f8f6ff;
  --pcv-surface: rgba(255, 255, 255, 0.84);
  --pcv-surface-strong: #fffaf2;
  --pcv-border: rgba(74, 45, 183, 0.14);
  --pcv-text: #231a4d;
  --pcv-muted: #645f8e;
  --pcv-primary: #4a2db7;
  --pcv-secondary: #fd9b00;
  --pcv-accent: #0087e7;
  --pcv-tertiary: #00bcbc;
  --pcv-pop: #fc5c99;
  --pcv-success: #00a695;
  --pcv-shadow: 0 24px 60px rgba(74, 45, 183, 0.15);
  --pcv-radius: 28px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--pcv-text);
  background:
    radial-gradient(circle at 8% 14%, rgba(252, 92, 153, 0.2), transparent 18%),
    radial-gradient(circle at 86% 12%, rgba(0, 135, 231, 0.18), transparent 22%),
    radial-gradient(circle at 32% 92%, rgba(253, 155, 0, 0.18), transparent 25%),
    radial-gradient(circle at 72% 80%, rgba(0, 188, 190, 0.14), transparent 22%),
    linear-gradient(180deg, #fffdfc 0%, var(--pcv-bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  position: relative;
  overflow: hidden;
}

.app-shell::before,
.app-shell::after {
  position: fixed;
  content: "";
  inset: auto;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.app-shell::before {
  top: -8rem;
  right: -10rem;
  background: rgba(74, 45, 183, 0.2);
}

.app-shell::after {
  bottom: -14rem;
  left: -10rem;
  background: rgba(253, 155, 0, 0.18);
}

.site-header,
#app {
  position: relative;
}

.site-header {
  z-index: 1200;
}

#app {
  z-index: 1;
}

.navbar {
  padding-top: 1rem;
}

.navbar .container {
  background:
    linear-gradient(120deg, rgba(74, 45, 183, 0.96), rgba(0, 135, 231, 0.9) 52%, rgba(0, 188, 190, 0.88));
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(8, 15, 35, 0.22);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 20px rgba(35, 26, 77, 0.2));
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-mark {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.brand-submark {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.navbar-nav .nav-link {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.nav-user-pill,
.nav-env-pill,
.nav-logout,
.nav-audience {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}

.nav-user-pill {
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
}

.nav-profile-details {
  position: relative;
}

.nav-profile-details[open] {
  z-index: 1210;
}

.nav-profile-details summary {
  list-style: none;
  cursor: pointer;
}

.nav-profile-details summary::-webkit-details-marker {
  display: none;
}

.nav-profile-caret {
  margin-left: 0.45rem;
  font-size: 0.74rem;
  opacity: 0.85;
}

.nav-profile-details.is-active .nav-user-pill,
.nav-profile-details[open] .nav-user-pill {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.nav-profile-details[open] .nav-profile-caret {
  transform: rotate(180deg);
}

.nav-profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.55rem);
  min-width: 15rem;
  padding: 0.45rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(12, 16, 34, 0.96);
  box-shadow: 0 10px 28px rgba(9, 12, 28, 0.38);
  z-index: 1220;
}

.nav-profile-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 600;
  border-radius: 0.7rem;
  padding: 0.58rem 0.72rem;
}

.nav-profile-action:hover,
.nav-profile-action:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav-profile-action-danger {
  color: #ffd6d6;
}

.nav-profile-action-danger:hover,
.nav-profile-action-danger:focus {
  background: rgba(198, 40, 40, 0.26);
  color: #fff;
}

.nav-env-pill {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-env-pill.is-live {
  background: rgba(0, 166, 149, 0.18);
  color: #f4fffd;
}

.nav-env-pill.is-mock {
  background: rgba(253, 155, 0, 0.2);
  color: #fff8ec;
}

.nav-logout {
  border: 0;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
}

.nav-audience {
  border: 0;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
  white-space: nowrap;
}

.nav-audience:hover,
.nav-audience:focus {
  background: rgba(255, 255, 255, 0.2);
}

.page-section {
  padding: 2rem 0 0;
}

.home-main {
  padding-bottom: 2rem;
}

.home-main .home-block {
  margin-top: 0;
}

.home-main .home-block + .home-block {
  margin-top: 0.35rem;
}

.home-main .section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.7rem);
}

.home-main .hero-title {
  font-size: clamp(2.7rem, 6.8vw, 5.2rem);
}

.home-main .content-panel {
  padding: 1.7rem;
}

.home-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.home-main .news-card,
.home-main .contact-card {
  min-height: 100%;
}

.hero-panel,
.content-panel,
.subject-card,
.news-card,
.contact-card,
.metric-card,
.api-card {
  background: var(--pcv-surface);
  border: 1px solid var(--pcv-border);
  border-radius: var(--pcv-radius);
  box-shadow: var(--pcv-shadow);
  backdrop-filter: blur(14px);
}

.hero-panel {
  padding: 2.4rem;
  background:
    radial-gradient(circle at top right, rgba(0, 135, 231, 0.2), transparent 28%),
    radial-gradient(circle at 18% 80%, rgba(253, 155, 0, 0.18), transparent 24%),
    radial-gradient(circle at 72% 18%, rgba(0, 188, 190, 0.14), transparent 22%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(245, 244, 255, 0.92));
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(74, 45, 183, 0.1);
  color: var(--pcv-primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker {
  max-width: 100%;
  font-size: 0.74rem;
  line-height: 1.25;
  letter-spacing: 0.05em;
}

.hero-title,
.section-title {
  letter-spacing: -0.04em;
}

.hero-title {
  max-width: 12ch;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.08;
}

.hero-lead,
.section-lead,
.card-copy {
  color: var(--pcv-muted);
  font-size: 1.02rem;
}

.mission-card-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.mission-card-icon-wrap {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 1px rgba(35, 26, 77, 0.08);
  flex: 0 0 auto;
}

.mission-card-icon {
  width: 1.7rem;
  height: 1.7rem;
  display: block;
  object-fit: contain;
}

.mission-tag-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.mission-tag-icon {
  width: 1rem;
  height: 1rem;
  display: block;
  object-fit: contain;
}

.mission-title-with-icon {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.mission-title-icon-wrap {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(35, 26, 77, 0.1);
  flex: 0 0 auto;
}

.mission-title-icon {
  width: 1.45rem;
  height: 1.45rem;
  object-fit: contain;
  display: block;
}

.subject-mission-type-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 135, 231, 0.1);
  color: var(--pcv-accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.subject-mission-filter,
.subject-mission-group,
.subject-mission-empty {
  border-radius: 1.6rem;
}

.subject-mission-filter {
  padding: 1.5rem;
}

.subject-mission-filter-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.subject-mission-filter-kicker,
.subject-mission-group-kicker {
  color: var(--pcv-primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subject-mission-filter-title,
.subject-mission-group-title {
  letter-spacing: -0.03em;
}

.subject-mission-filter-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.subject-mission-summary-pill,
.subject-mission-group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(74, 45, 183, 0.08);
  color: var(--pcv-primary);
  font-size: 0.88rem;
  font-weight: 700;
}

.subject-mission-search-row {
  display: grid;
  gap: 0.6rem;
}

.subject-mission-search-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--pcv-text);
}

.subject-mission-search-control {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.subject-mission-search-input {
  flex: 1 1 18rem;
  min-height: 3.25rem;
  padding-inline: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(74, 45, 183, 0.16);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.subject-mission-search-input:focus {
  border-color: rgba(0, 135, 231, 0.5);
  box-shadow: 0 0 0 0.25rem rgba(0, 135, 231, 0.14);
}

.subject-mission-search-clear {
  border: 0;
  border-radius: 999px;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  background: rgba(74, 45, 183, 0.08);
  color: var(--pcv-primary);
  font-weight: 700;
}

.subject-mission-search-clear:hover,
.subject-mission-search-clear:focus-visible {
  background: rgba(74, 45, 183, 0.14);
}

.subject-mission-groups {
  display: grid;
  gap: 1.2rem;
}

.subject-mission-group {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(74, 45, 183, 0.12);
  box-shadow: 0 20px 42px rgba(74, 45, 183, 0.08);
  backdrop-filter: blur(10px);
}

.subject-mission-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.subject-mission-empty {
  padding: 1.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.hero-main-copy,
.hero-main-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.hero-cta-link {
  color: var(--pcv-primary);
  font-weight: 800;
  text-decoration: none;
}

.hero-cta-link:hover,
.hero-cta-link:focus-visible {
  text-decoration: underline;
}

.hero-status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-start-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.hero-start-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(74, 45, 183, 0.12);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.8);
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.hero-start-card:hover,
.hero-start-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(26, 35, 72, 0.13);
  border-color: rgba(0, 135, 231, 0.28);
}

.hero-start-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-start-copy {
  color: var(--pcv-muted);
  font-size: 0.94rem;
}

.hero-start-link {
  color: var(--pcv-primary);
  font-weight: 800;
}

.hero-side-stack {
  display: grid;
  gap: 1rem;
}

.hero-side-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1rem;
  align-items: stretch;
}

.hero-interactive-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.hero-interactive-link:hover,
.hero-interactive-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(26, 35, 72, 0.2);
  border-color: rgba(0, 135, 231, 0.34);
}

.hero-interactive-link:focus-visible {
  outline: 2px solid rgba(0, 135, 231, 0.5);
  outline-offset: 2px;
}

.hero-burst {
  position: relative;
  min-height: 100%;
  padding: 1.6rem;
  border-radius: 2rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(74, 45, 183, 0.96), rgba(0, 135, 231, 0.92) 58%, rgba(0, 188, 190, 0.9));
  color: #fff;
}

.hero-visual {
  position: relative;
  min-height: 18rem;
  border: 1px solid rgba(74, 45, 183, 0.14);
  border-radius: 2rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.68), transparent 42%),
    radial-gradient(circle at 84% 72%, rgba(0, 188, 190, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(74, 45, 183, 0.18), rgba(0, 135, 231, 0.14), rgba(253, 155, 0, 0.16));
  box-shadow: 0 16px 36px rgba(26, 35, 72, 0.16);
}

.hero-visual-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(74, 45, 183, 0.12);
  box-shadow: 0 14px 28px rgba(26, 35, 72, 0.12);
}

.hero-visual-badge strong {
  font-size: 1.2rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-visual-badge span {
  font-size: 0.77rem;
  font-weight: 700;
  color: var(--pcv-muted);
}

.hero-visual-badge-top {
  top: 1rem;
  left: 1rem;
}

.hero-visual-badge-bottom {
  right: 1rem;
  bottom: 1rem;
}

.hero-visual::after {
  position: absolute;
  content: "";
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.45) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.24;
  pointer-events: none;
}

.hero-visual-image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  margin-top: 1.2rem;
  animation: float-ship 6.5s ease-in-out infinite;
}

.hero-burst::before,
.hero-burst::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  opacity: 0.18;
}

.hero-burst::before {
  width: 8rem;
  height: 8rem;
  top: -2rem;
  right: -1.5rem;
  background: #fff;
}

.hero-burst::after {
  width: 5rem;
  height: 5rem;
  bottom: -1rem;
  left: -1rem;
  background: #fd9b00;
}

.burst-label {
  position: relative;
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.burst-title {
  position: relative;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.burst-copy {
  position: relative;
  color: rgba(255, 255, 255, 0.84);
}

.metric-card,
.api-card,
.subject-card,
.news-card,
.contact-card {
  height: 100%;
  padding: 1.4rem;
}

.hero-grid .metric-card {
  min-height: 8.4rem;
  padding: 1rem;
  border-radius: 1.35rem;
}

.metric-card:nth-child(1) {
  background: linear-gradient(135deg, rgba(74, 45, 183, 0.12), rgba(255, 255, 255, 0.92));
}

.metric-card:nth-child(2) {
  background: linear-gradient(135deg, rgba(0, 135, 231, 0.12), rgba(255, 255, 255, 0.92));
}

.metric-card:nth-child(3) {
  background: linear-gradient(135deg, rgba(253, 155, 0, 0.14), rgba(255, 255, 255, 0.92));
}

.metric-card:nth-child(4) {
  background: linear-gradient(135deg, rgba(0, 188, 190, 0.14), rgba(255, 255, 255, 0.92));
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.metric-label {
  color: var(--pcv-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.hero-grid .metric-card {
  min-height: 100%;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
}

.subject-icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
}

.subject-illustration-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.subject-illustration {
  width: 3.3rem;
  height: 3.3rem;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(35, 26, 77, 0.2));
}

.subject-icon.math {
  background: linear-gradient(135deg, #4a2db7, #0087e7);
}

.subject-icon.chemistry {
  background: linear-gradient(135deg, #fd9b00, #00bcbc);
}

.subject-icon.czech {
  background: linear-gradient(135deg, #4a2db7, #fc5c99);
}

.subject-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.subject-card::after {
  position: absolute;
  content: "";
  width: 8rem;
  height: 8rem;
  right: -2rem;
  bottom: -2rem;
  border-radius: 999px;
  opacity: 0.13;
  pointer-events: none;
}

.subject-card.math {
  background: linear-gradient(135deg, rgba(74, 45, 183, 0.12), rgba(255, 255, 255, 0.94));
}

.subject-card.math::after {
  background: #0087e7;
}

.subject-card.chemistry {
  background: linear-gradient(135deg, rgba(253, 155, 0, 0.14), rgba(255, 255, 255, 0.94));
}

.subject-card.chemistry::after {
  background: #00bcbc;
}

.subject-card.czech {
  background: linear-gradient(135deg, rgba(252, 92, 153, 0.14), rgba(255, 255, 255, 0.94));
}

.subject-card.czech::after {
  background: #fc5c99;
}

.subject-hook {
  position: relative;
  padding: 0.9rem 1rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(29, 39, 65, 0.08);
  font-weight: 700;
  color: var(--pcv-text);
}

.subject-hook strong {
  color: var(--pcv-pop);
}

.subject-card.math .subject-hook strong {
  color: #4a2db7;
}

.subject-card.chemistry .subject-hook strong {
  color: #fd9b00;
}

.subject-card.czech .subject-hook strong {
  color: #fc5c99;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(93, 103, 133, 0.12);
  color: var(--pcv-text);
  font-size: 0.84rem;
  font-weight: 700;
}

.tag-active {
  background: rgba(74, 45, 183, 0.2);
  color: #2b1978;
}

.tag-ok {
  background: rgba(0, 143, 122, 0.16);
  color: #0d6d5d;
}

.tag-danger {
  background: rgba(198, 40, 40, 0.14);
  color: #7f1a1a;
}

.tag-warning {
  background: rgba(255, 145, 0, 0.2);
  color: #8c4a00;
}

.countdown-pulse {
  animation: countdown-pulse 0.85s ease-in-out infinite;
}

@keyframes countdown-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.26);
  }
  60% {
    transform: scale(1.045);
    box-shadow: 0 0 0 10px rgba(198, 40, 40, 0.04);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.02);
  }
}

.mission-outcome {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 3rem 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid transparent;
}

.mission-outcome-icon {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mission-outcome-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mission-outcome-success {
  color: #0f6f5f;
  background: linear-gradient(135deg, rgba(0, 143, 122, 0.16), rgba(0, 143, 122, 0.06));
  border-color: rgba(0, 143, 122, 0.28);
}

.mission-outcome-danger {
  color: #8d2222;
  background: linear-gradient(135deg, rgba(198, 40, 40, 0.16), rgba(198, 40, 40, 0.05));
  border-color: rgba(198, 40, 40, 0.28);
}

.subject-card .tag {
  background: rgba(255, 255, 255, 0.68);
}

.subject-card-cta {
  margin-top: auto;
}

.subject-card-cta .btn {
  font-weight: 800;
  letter-spacing: 0.01em;
}

.subject-card-tags {
  margin-top: 0.35rem;
  padding-top: 0.7rem;
  border-top: 1px dashed rgba(35, 26, 77, 0.14);
}

.subject-card-tags .tag-list {
  gap: 0.45rem;
}

.timeline-date {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--pcv-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-role {
  color: var(--pcv-muted);
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pcv-primary), var(--pcv-accent));
  border: 0;
}

.btn-outline-dark {
  border-color: rgba(29, 39, 65, 0.15);
}

.content-panel {
  padding: 1.5rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 240, 0.88));
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(0, 166, 149, 0.12);
  color: var(--pcv-success);
  font-size: 0.82rem;
  font-weight: 800;
}

.status-badge::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: currentColor;
}

.api-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(245, 246, 255, 0.92));
}

.news-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 244, 226, 0.92));
}

.contact-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 239, 246, 0.92));
}

.player-card,
.galaxy-panel,
.badge-card,
.rank-card,
.reward-card,
.player-stat,
.world-node,
.auth-card,
.auth-promo,
.profile-card,
.result-table,
.result-card,
.result-row {
  border: 1px solid var(--pcv-border);
  border-radius: var(--pcv-radius);
  box-shadow: var(--pcv-shadow);
  backdrop-filter: blur(14px);
}

.player-card,
.galaxy-panel,
.auth-card,
.auth-promo,
.profile-card,
.result-table {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(244, 246, 255, 0.92));
}

.auth-shell {
  padding-top: 0.25rem;
}

.auth-shell-compact {
  max-width: 54rem;
  margin: 0 auto;
}

.auth-promo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(74, 45, 183, 0.08), rgba(0, 188, 190, 0.08), rgba(253, 155, 0, 0.08)),
    rgba(255, 255, 255, 0.92);
}

.auth-promo-top {
  justify-content: flex-start;
}

.auth-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 245, 255, 0.94));
}

.school-request-hint {
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.025);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--pcv-radius);
}

.school-ac-wrapper {
  position: relative;
}

.school-ac-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 200;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--pcv-radius);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  max-height: 18rem;
  overflow-y: auto;
}

.school-ac-item {
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-size: 0.97rem;
  color: var(--pcv-text);
  transition: background 80ms;
}

.school-ac-item:hover,
.school-ac-item--active {
  background: rgba(74, 45, 183, 0.08);
  color: var(--pcv-primary, #4a2db7);
}

.school-ac-item--hint {
  cursor: default;
  color: var(--pcv-text-muted, #6c757d);
  font-size: 0.9rem;
}

.school-ac-item--hint:hover {
  background: none;
  color: var(--pcv-text-muted, #6c757d);
}

.auth-alert {
  position: relative;
  padding-right: 3rem;
  border: 0;
  border-radius: 1.2rem;
}

.mission-guest-cta {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(253, 155, 0, 0.5);
  background:
    linear-gradient(135deg, rgba(253, 155, 0, 0.16), rgba(255, 255, 255, 0.96));
  box-shadow: 0 10px 24px rgba(253, 155, 0, 0.16);
}

.mission-guest-cta-title {
  font-size: 1.02rem;
  font-weight: 800;
}

.mission-guest-cta-copy {
  color: var(--pcv-text);
}

.toast-notification {
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast-notification.is-hiding {
  opacity: 0;
  transform: translateY(6px);
}

.toast-close-btn {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: currentColor;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.toast-close-btn:hover,
.toast-close-btn:focus-visible {
  background: rgba(15, 23, 42, 0.14);
}

.auth-input {
  border-radius: 1rem;
  border-color: rgba(74, 45, 183, 0.14);
  background: rgba(255, 255, 255, 0.9);
}

.auth-input:focus {
  border-color: rgba(0, 135, 231, 0.4);
  box-shadow: 0 0 0 0.25rem rgba(0, 135, 231, 0.12);
}

.player-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, rgba(74, 45, 183, 0.96), rgba(252, 92, 153, 0.92));
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
}

.xp-meter {
  position: relative;
  width: 100%;
  height: 0.95rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(29, 39, 65, 0.08);
}

.xp-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--pcv-primary), var(--pcv-accent), var(--pcv-secondary));
}

.player-stat {
  height: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.76);
}

.player-stat-value {
  font-size: 1.35rem;
  font-weight: 800;
}

.player-stat-label {
  color: var(--pcv-muted);
  font-weight: 700;
}

.galaxy-track {
  display: block;
}

.galaxy-map-frame {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.6rem;
  background:
    radial-gradient(circle at top, rgba(14, 165, 233, 0.1), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.1), transparent 25%),
    rgba(7, 12, 27, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.galaxy-map-svg {
  display: block;
  width: 100%;
  height: auto;
}

.galaxy-map-world {
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
}

.galaxy-map-world:hover,
.galaxy-map-world:focus-visible {
  transform: translateY(-3px);
}

.galaxy-map-world:focus-visible {
  outline: none;
}

.galaxy-map-world-current {
  filter: drop-shadow(0 0 16px rgba(34, 197, 94, 0.28));
}

.galaxy-map-world-locked {
  cursor: not-allowed;
  opacity: 0.45;
  filter: grayscale(1);
  pointer-events: none;
}

.galaxy-map-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.subject-planet-map {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.6rem;
  background:
    radial-gradient(circle at top left, rgba(107, 86, 240, 0.12), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.10), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(245, 158, 11, 0.08), transparent 30%),
    rgba(7, 12, 27, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.subject-planet-svg {
  display: block;
  width: 100%;
  height: auto;
}

.sp-planet-link {
  cursor: pointer;
}

.sp-planet-link:hover circle:not([fill^="rgba"]),
.sp-planet-link:focus-visible circle:not([fill^="rgba"]) {
  filter: brightness(1.15);
}

.sp-planet-link text {
  transition: fill 160ms ease;
}

.sp-planet-link:hover text:first-of-type,
.sp-planet-link:focus-visible text:first-of-type {
  fill: #ffffff;
}

.sp-planet-link:focus-visible {
  outline: none;
}

.subject-hero-planet {
  margin-bottom: 1rem;
  border-radius: 1.35rem;
  padding: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.1), transparent 35%),
    radial-gradient(circle at 20% 80%, rgba(96, 165, 250, 0.08), transparent 35%),
    rgba(7, 12, 27, 0.92);
}

.subject-hero-planet-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
}

.galaxy-list-intro {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.world-node {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.76);
}

.world-node.unlocked {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(237, 250, 246, 0.9));
}

.world-node.current {
  background: linear-gradient(135deg, rgba(230, 242, 255, 0.96), rgba(255, 255, 255, 0.92));
}

.world-node.locked {
  opacity: 0.78;
}

.world-marker {
  display: flex;
  align-items: center;
  justify-content: center;
}

.world-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  background: rgba(29, 39, 65, 0.08);
  font-weight: 800;
}

.world-node.math .world-index {
  background: rgba(74, 45, 183, 0.12);
  color: #4a2db7;
}

.world-node.chemistry .world-index {
  background: rgba(253, 155, 0, 0.16);
  color: #fd9b00;
}

.world-node.czech .world-index {
  background: rgba(252, 92, 153, 0.16);
  color: #fc5c99;
}

.badge-grid,
.reward-grid {
  display: grid;
  gap: 1rem;
}

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

.badge-card {
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.86);
}

.badge-card.earned {
  background: linear-gradient(135deg, rgba(255, 251, 232, 0.98), rgba(255, 255, 255, 0.92));
}

.badge-card.in-progress {
  background: linear-gradient(135deg, rgba(236, 245, 255, 0.96), rgba(255, 255, 255, 0.9));
}

.badge-card.locked {
  opacity: 0.72;
}

.badge-card.badge-rarity-common {
  border-color: rgba(108, 128, 162, 0.24);
}

.badge-card.badge-rarity-rare {
  border-color: rgba(68, 167, 218, 0.3);
}

.badge-card.badge-rarity-epic {
  border-color: rgba(188, 96, 165, 0.33);
}

.badge-card.badge-rarity-legendary {
  border-color: rgba(215, 158, 49, 0.38);
  box-shadow: 0 18px 36px rgba(215, 158, 49, 0.2);
}

.badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.75rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(74, 45, 183, 0.14), rgba(0, 188, 190, 0.16));
  font-weight: 800;
}

.badge-icon svg {
  width: 2.7rem;
  height: 2.7rem;
}

.tag.tag-rarity {
  background: rgba(17, 24, 39, 0.08);
}

.tag.tag-unlocked {
  background: rgba(0, 166, 149, 0.16);
}

.tag.tag-locked {
  background: rgba(100, 95, 142, 0.13);
}

.badge-unlock-stack {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1085;
  display: grid;
  gap: 0.75rem;
  max-width: min(92vw, 360px);
}

.badge-unlock-toast {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 2.7rem 0.8rem 0.8rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(74, 45, 183, 0.22);
  box-shadow: 0 14px 34px rgba(20, 29, 57, 0.22);
}

.badge-unlock-icon {
  width: 2.5rem;
  height: 2.5rem;
}

.badge-unlock-icon svg {
  width: 100%;
  height: 100%;
}

.badge-unlock-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  font-weight: 800;
  text-transform: uppercase;
  color: #2f1a85;
}

.badge-unlock-title {
  font-weight: 700;
}

.badge-title {
  margin-bottom: 0.4rem;
  font-weight: 800;
}

.badge-copy {
  color: var(--pcv-muted);
}

.rank-trail {
  display: grid;
  gap: 0.9rem;
}

.rank-card {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.78);
}

.rank-card.done {
  background: linear-gradient(135deg, rgba(238, 251, 245, 0.98), rgba(255, 255, 255, 0.92));
}

.rank-card.current {
  background: linear-gradient(135deg, rgba(232, 242, 255, 0.98), rgba(255, 255, 255, 0.92));
}

.rank-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.45rem;
}

.rank-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: rgba(74, 45, 183, 0.1);
  overflow: hidden;
}

.rank-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.rank-xp {
  color: var(--pcv-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rank-title {
  font-size: 1.02rem;
  font-weight: 800;
}

.rank-meta {
  color: var(--pcv-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.player-rank-line {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.player-earned-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.player-earned-badge {
  position: relative;
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(74, 45, 183, 0.08);
  border: 1px solid rgba(74, 45, 183, 0.18);
  align-items: center;
  justify-content: center;
  cursor: help;
}

.player-earned-badge svg {
  width: 1.7rem;
  height: 1.7rem;
}

.player-earned-badge::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  min-width: 9rem;
  max-width: 15rem;
  padding: 0.45rem 0.6rem;
  border-radius: 0.55rem;
  background: rgba(13, 20, 38, 0.96);
  color: #f7f9ff;
  font-size: 0.72rem;
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 10px 22px rgba(7, 11, 24, 0.28);
  z-index: 20;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.player-earned-badge::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.12rem);
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  border: 0.32rem solid transparent;
  border-top-color: rgba(13, 20, 38, 0.96);
  z-index: 20;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.player-earned-badge:hover::after,
.player-earned-badge:hover::before,
.player-earned-badge:focus-visible::after,
.player-earned-badge:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.badge-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.badge-filter-btn {
  border: 1px solid rgba(74, 45, 183, 0.2);
  background: rgba(255, 255, 255, 0.82);
  color: var(--pcv-text);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.badge-filter-btn:hover {
  border-color: rgba(74, 45, 183, 0.34);
  transform: translateY(-1px);
}

.badge-filter-btn.active {
  background: rgba(74, 45, 183, 0.14);
  border-color: rgba(74, 45, 183, 0.44);
}

.player-rank-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(74, 45, 183, 0.1);
  overflow: hidden;
}

.player-rank-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.reward-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.reward-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(74, 45, 183, 0.1);
  color: var(--pcv-text);
  font-size: 0.84rem;
  font-weight: 800;
}

.reward-pill-rank {
  gap: 0.45rem;
}

.reward-pill-icon {
  width: 1.2rem;
  height: 1.2rem;
  display: inline-flex;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 999px;
}

.reward-pill-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.reward-grid {
  grid-template-columns: 1fr;
}

.world-view-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.world-view-card {
  border: 1px solid var(--pcv-border);
  border-radius: var(--pcv-radius);
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.84);
}

.world-view-card.world-view-current {
  background: linear-gradient(135deg, rgba(232, 242, 255, 0.98), rgba(255, 255, 255, 0.92));
}

.world-view-card.world-view-unlocked {
  background: linear-gradient(135deg, rgba(238, 251, 245, 0.98), rgba(255, 255, 255, 0.92));
}

.world-view-card.world-view-locked {
  opacity: 0.84;
}

.world-view-card.world-view-locked-minimal {
  background: linear-gradient(135deg, rgba(241, 245, 249, 0.95), rgba(248, 250, 252, 0.92));
  border-style: dashed;
}

.world-view-type {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pcv-muted);
}

.pcv-world-options {
  display: grid;
  gap: 0.55rem;
}

.pcv-world-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--pcv-border);
  border-radius: 0.75rem;
  padding: 0.45rem 0.65rem;
  background: rgba(255, 255, 255, 0.9);
}

.pcv-world-step + .pcv-world-step {
  margin-top: 0.75rem;
}

.mini-game-container {
  border-top: 1px dashed rgba(29, 39, 65, 0.18);
  padding-top: 0.75rem;
}

.mini-game-host {
  border: 1px solid rgba(29, 39, 65, 0.12);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.7rem;
  min-height: 3.2rem;
}

.mini-game-host.is-active {
  background: rgba(255, 255, 255, 0.88);
}

.mini-game-canvas {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0 auto;
  border-radius: 0.7rem;
  border: 1px solid rgba(29, 39, 65, 0.14);
  touch-action: none;
}

.mini-game-hud {
  font-weight: 700;
  color: var(--pcv-muted);
}

.mini-game-shell {
  border-radius: 0.85rem;
  padding: 0.55rem;
}

.mini-game-theme-nebula {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.15), rgba(124, 58, 237, 0.14));
}

.mini-game-theme-planets {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.14), rgba(59, 130, 246, 0.14));
}

.mini-game-theme-fleet {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.14), rgba(56, 189, 248, 0.14));
}

.mini-game-theme-map {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(14, 116, 144, 0.14));
}

.mini-game-theme-galaxy {
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.14), rgba(79, 70, 229, 0.14));
}

/* App modal system (confirm + minigame + in-exercise) */
body.pcv-modal-open {
  overflow: hidden;
}

.pcv-confirm-modal-wrapper {
  position: fixed;
  inset: 0;
  z-index: 1300;
}

.pcv-confirm-modal-wrapper .pcv-modal,
.pcv-modal {
  position: fixed;
  inset: 0;
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 1310;
}

.pcv-confirm-modal-wrapper .modal-backdrop,
body.pcv-modal-open > .modal-backdrop.show {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 24, 0.58);
  backdrop-filter: blur(2px);
  z-index: 1305;
}

.pcv-modal .modal-dialog {
  margin: auto 0;
  width: 100%;
  max-width: min(44rem, calc(100vw - 2rem));
}

.pcv-modal .modal-content.pcv-modal-card {
  border: 1px solid rgba(33, 43, 67, 0.22);
  border-radius: 1rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.99), rgba(246, 249, 255, 0.95));
  box-shadow: 0 16px 40px rgba(14, 20, 38, 0.28);
  overflow: hidden;
  max-height: calc(100dvh - 2rem);
  display: flex;
  flex-direction: column;
}

.pcv-modal .modal-content.pcv-modal-card .modal-header,
.pcv-modal .modal-content.pcv-modal-card .modal-body,
.pcv-modal .modal-content.pcv-modal-card .modal-footer {
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

.pcv-modal .modal-content.pcv-modal-card .modal-header {
  padding-top: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(29, 39, 65, 0.1);
}

.pcv-modal .modal-content.pcv-modal-card .modal-body {
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.pcv-modal .modal-content.pcv-modal-card .modal-footer {
  padding-top: 0.8rem;
  padding-bottom: 0.95rem;
  border-top: 1px solid rgba(29, 39, 65, 0.1);
  gap: 0.65rem;
}

.pcv-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pcv-modal-badge-primary {
  color: #243e7c;
  background: rgba(74, 120, 232, 0.16);
}

.pcv-modal-badge-warning {
  color: #6b4f00;
  background: rgba(247, 181, 0, 0.2);
}

.pcv-modal-badge-danger {
  color: #7a1c1c;
  background: rgba(220, 53, 69, 0.17);
}

.pcv-world-modal-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.95rem;
}

.pcv-world-modal-icon {
  flex: 0 0 auto;
}

.pcv-world-modal-copy {
  min-width: 0;
}

.pcv-world-story {
  color: rgba(29, 39, 65, 0.9);
}

.pcv-world-locked-panel {
  border: 1px dashed rgba(198, 40, 40, 0.35);
  border-radius: 0.8rem;
  background: rgba(198, 40, 40, 0.06);
  color: #692121;
  padding: 0.75rem 0.85rem;
}

.audience-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 1320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 12, 24, 0.56);
  backdrop-filter: blur(2px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.audience-picker-dialog {
  width: min(64rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  border-radius: 1.25rem;
  border: 1px solid rgba(29, 39, 65, 0.14);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.96));
  box-shadow: 0 24px 54px rgba(10, 16, 34, 0.32);
  padding: 1.15rem;
}

.audience-picker-header {
  text-align: center;
}

.audience-picker-body {
  margin-top: 0.25rem;
}

.audience-picker-footer {
  margin-top: 0.75rem;
  display: flex;
  justify-content: center;
}

.audience-card {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 0.35rem;
  min-height: 100%;
  padding: 1rem;
  border: 1px solid rgba(29, 39, 65, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--pcv-text);
  text-align: left;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.audience-card:hover,
.audience-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(74, 45, 183, 0.3);
  box-shadow: 0 10px 24px rgba(18, 27, 49, 0.14);
}

.audience-card.is-active {
  border-color: rgba(74, 45, 183, 0.42);
  background: linear-gradient(140deg, rgba(74, 45, 183, 0.12), rgba(0, 135, 231, 0.08));
  box-shadow: 0 0 0 0.2rem rgba(74, 45, 183, 0.14);
}

.audience-card.is-recommended {
  border-color: rgba(0, 143, 122, 0.36);
}

.audience-card-badge {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 143, 122, 0.14);
  color: #0d6a5a;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.audience-card-title {
  font-size: 1.12rem;
  font-weight: 800;
}

.audience-card-age {
  color: var(--pcv-primary);
  font-size: 0.85rem;
  font-weight: 700;
}

.audience-card-pitch {
  color: var(--pcv-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (max-width: 767.98px) {
  .pcv-confirm-modal-wrapper .pcv-modal {
    align-items: flex-end;
    padding: 0;
  }

  .pcv-modal .modal-dialog {
    max-width: 100vw;
    width: 100%;
    margin: 0;
  }

  .pcv-modal .modal-content.pcv-modal-card {
    border-radius: 1rem 1rem 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    max-height: 88dvh;
    display: flex;
    flex-direction: column;
  }

  .pcv-modal .modal-content.pcv-modal-card .modal-body {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pcv-modal .modal-content.pcv-modal-card .modal-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .pcv-modal .modal-content.pcv-modal-card .modal-footer .btn {
    width: 100%;
  }

  .pcv-world-modal-head {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .pcv-world-modal-copy {
    text-align: center;
  }

  .audience-picker-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .audience-picker-dialog {
    width: 100%;
    max-height: 92dvh;
    border-radius: 1rem 1rem 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 1rem;
  }
}

.mini-game-theme-core {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.14), rgba(245, 158, 11, 0.14));
}

.mini-game-theme-nebula .mini-game-hud,
.mini-game-theme-planets .mini-game-hud,
.mini-game-theme-fleet .mini-game-hud,
.mini-game-theme-map .mini-game-hud,
.mini-game-theme-galaxy .mini-game-hud,
.mini-game-theme-core .mini-game-hud {
  color: #0f172a;
}

.reward-card {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.76);
}

.reward-value {
  font-size: 1.05rem;
  font-weight: 800;
}

.reward-label,
.subject-progress-title {
  color: var(--pcv-muted);
  font-weight: 700;
}

.subject-progress-title {
  font-size: 1.05rem;
}

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

.profile-item {
  padding: 1rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(74, 45, 183, 0.08);
}

.profile-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--pcv-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.result-stack {
  display: grid;
  gap: 1.2rem;
}

.result-card,
.result-row {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.8);
}

.result-card {
  display: flex;
  flex-direction: column;
  border: 1.5px solid rgba(74, 45, 183, 0.12);
  border-radius: 1.2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 243, 255, 0.8));
  box-shadow: 0 8px 20px rgba(74, 45, 183, 0.08);
  transition: all 180ms ease;
  overflow: hidden;
}

.result-card:hover,
.result-card:focus-visible {
  border-color: rgba(74, 45, 183, 0.24);
  box-shadow: 0 12px 32px rgba(74, 45, 183, 0.16);
  transform: translateY(-2px);
}

.result-card-link {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.result-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0;
  margin-bottom: 0;
}

.result-card-title-block {
  flex: 1 1 auto;
  min-width: 0;
}

.result-card-title {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--pcv-text);
  word-break: break-word;
}

.result-card-score {
  flex: 0 0 auto;
  min-width: 4.5rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 166, 149, 0.2), rgba(0, 188, 190, 0.15));
  color: #0a7f7a;
  border: 1px solid rgba(0, 166, 149, 0.3);
  border-radius: 0.85rem;
  padding: 0.5rem 0.7rem;
  font-size: 0.95rem;
  font-weight: 800;
}

.result-card-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(74, 45, 183, 0.1), transparent 80%);
  margin: 0.8rem 0;
}

.result-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0;
}

.result-card-metrics {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pcv-muted);
}

.result-metric-item {
  display: inline-flex;
  align-items: center;
}

.result-metric-divider {
  opacity: 0.4;
  margin: 0 0.2rem;
}

.result-card-student {
  font-size: 0.9rem;
  margin: 0;
  color: #5a5570;
  line-height: 1.4;
}

.result-card-student .fw-600 {
  font-weight: 600;
  color: var(--pcv-text);
}

.result-card-date {
  font-size: 0.85rem;
  margin: 0;
  color: #8b84a3;
  font-weight: 500;
}

.table {
  display: grid;
  gap: 1rem;
}

.result-table {
  display: grid;
  gap: 1rem;
}

.result-row {
  display: flex;
  gap: 1rem;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.8);
}

.result-row-checkbox {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-row-checkbox input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}

.result-row-link {
  flex: 1 1 auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.8fr) repeat(4, minmax(0, 1fr));
  align-items: center;
  text-decoration: none;
  color: inherit;
}

/* Secret result row */
.result-row-secret {
  background: rgba(245, 240, 255, 0.7);
  border-color: rgba(120, 80, 220, 0.2);
}

.result-row-secret .result-row-link {
  opacity: 0.75;
}

.result-secret-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6a35c8;
  background: rgba(106, 53, 200, 0.1);
  border: 1px solid rgba(106, 53, 200, 0.2);
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  vertical-align: middle;
}

/* Secret operation toolbar */
.pcv-secret-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  background: linear-gradient(135deg, rgba(106, 53, 200, 0.08), rgba(74, 45, 183, 0.06));
  border: 1px solid rgba(106, 53, 200, 0.25);
  border-radius: var(--pcv-radius);
  margin-bottom: 0.75rem;
  animation: pcv-modal-pop 180ms ease-out;
}

.pcv-secret-toolbar-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pcv-secret-toolbar-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.pcv-btn-secret {
  background: linear-gradient(135deg, #6a35c8, #4a2db7);
  color: #fff;
  border: none;
  font-weight: 700;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.pcv-btn-secret:hover {
  color: #fff;
  opacity: 0.85;
}

/* Secret select bar */
.pcv-secret-select-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.25rem;
}

.pcv-secret-select-hint {
  font-size: 0.8rem;
  color: #6a35c8;
  opacity: 0.7;
  margin-left: auto;
}

.result-metric {
  display: grid;
  gap: 0.15rem;
}

.result-metric-value {
  font-weight: 800;
}

.result-metric-label {
  color: var(--pcv-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.content-textarea {
  min-height: 20rem;
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  white-space: pre;
}

.mockup-card,
.challenge-screen,
.question-panel,
.mockup-sidepanel {
  border: 1px solid var(--pcv-border);
  border-radius: var(--pcv-radius);
  box-shadow: var(--pcv-shadow);
  backdrop-filter: blur(14px);
}

.mockup-card {
  height: 100%;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(252, 244, 228, 0.92));
}

.mockup-card.math,
.challenge-screen.math {
  background: linear-gradient(135deg, rgba(241, 238, 255, 0.95), rgba(255, 255, 255, 0.92));
}

.mockup-card.chemistry,
.challenge-screen.chemistry {
  background: linear-gradient(135deg, rgba(255, 248, 231, 0.95), rgba(240, 255, 253, 0.92));
}

.mockup-card.czech,
.challenge-screen.czech {
  background: linear-gradient(135deg, rgba(255, 240, 246, 0.95), rgba(248, 243, 255, 0.92));
}

.mockup-hook {
  padding: 0.9rem 1rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(29, 39, 65, 0.08);
  color: var(--pcv-text);
}

.mockup-hook strong {
  color: var(--pcv-primary);
}

.challenge-screen {
  padding: 1.75rem;
}

.challenge-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.question-panel,
.mockup-sidepanel {
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.72);
}

.mission-step-row-invalid {
  border-color: rgba(220, 53, 69, 0.55) !important;
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.08), rgba(255, 255, 255, 0.88));
  box-shadow: 0 0 0 0.14rem rgba(220, 53, 69, 0.12);
}

.mission-step-row-invalid [data-role="step-order"] {
  color: #b42333;
}

.question-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.question-speed-countdown-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.question-speed-countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 7.2rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 45, 183, 0.24);
  background: rgba(74, 45, 183, 0.1);
  color: #2b1978;
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.question-speed-countdown.is-safe {
  background: rgba(0, 143, 122, 0.14);
  border-color: rgba(0, 143, 122, 0.35);
  color: #0d6d5d;
}

.question-speed-countdown.is-warning {
  background: rgba(255, 145, 0, 0.18);
  border-color: rgba(255, 145, 0, 0.42);
  color: #8c4a00;
}

.question-speed-countdown.is-critical {
  background: rgba(198, 40, 40, 0.18);
  border-color: rgba(198, 40, 40, 0.45);
  color: #7f1a1a;
}

.question-speed-countdown-note {
  font-size: 0.85rem;
  color: var(--pcv-muted);
  font-weight: 700;
}

.exercise-task-lead {
  padding: 0.8rem 0.95rem;
  border-radius: 0.95rem;
  border: 1px solid rgba(29, 39, 65, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

.exercise-task-title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pcv-muted);
}

.exercise-task-title.case-sensitive {
  text-transform: none;
}

.exercise-task-instruction {
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  line-height: 1.28;
  font-weight: 800;
  color: #1d2741;
}

.exercise-tip-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(214, 145, 21, 0.28);
  background:
    radial-gradient(circle at top right, rgba(255, 214, 102, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(255, 247, 214, 0.98), rgba(255, 239, 181, 0.94));
}

.exercise-tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(219, 143, 0, 0.18);
  color: #9a5a00;
  font-weight: 900;
  font-size: 1.05rem;
  box-shadow: inset 0 0 0 1px rgba(214, 145, 21, 0.18);
}

.exercise-tip-label {
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a5a00;
}

.exercise-tip-list {
  display: grid;
  gap: 0.4rem;
}

.exercise-tip-text {
  color: #5f430f;
  font-weight: 700;
  line-height: 1.45;
}

.exercise-tip-code {
  display: inline-block;
  padding: 0.05rem 0.35rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(154, 90, 0, 0.28);
  background: rgba(255, 255, 255, 0.75);
  color: #6d3f00;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92em;
  font-weight: 700;
}

.math-fraction {
  display: inline-grid;
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: center;
  margin: 0 0.12em;
  vertical-align: middle;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.math-fraction-top {
  display: block;
  padding: 0 0.24em 0.1em;
  border-bottom: 2px solid currentColor;
  font-size: 0.84em;
}

.math-fraction-bottom {
  display: block;
  padding: 0.1em 0.24em 0;
  font-size: 0.84em;
}

.math-power {
  display: inline-flex;
  align-items: flex-start;
  vertical-align: baseline;
  line-height: 1;
}

.math-power-base {
  line-height: 1;
}

.math-power-exp {
  margin-left: 0.04em;
  font-size: 0.72em;
  line-height: 1;
  font-weight: 700;
}

.math-sqrt {
  display: inline-flex;
  align-items: flex-start;
  vertical-align: middle;
  line-height: 1;
  margin: 0 0.08em;
}

.math-sqrt-symbol {
  font-size: 1.08em;
  font-weight: 800;
  line-height: 1;
  margin-right: 0.06em;
}

.math-sqrt-radicand {
  display: inline-block;
  padding: 0.03em 0.22em 0;
  border-top: 2px solid currentColor;
  line-height: 1.1;
}

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

.difficulty-picker {
  display: grid;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--pcv-border);
  border-radius: var(--pcv-radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--pcv-shadow);
}

.difficulty-picker-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.difficulty-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.8rem;
}

.difficulty-picker-group {
  display: grid;
  gap: 0.65rem;
}

.difficulty-picker-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.difficulty-picker-group-label {
  margin: 0;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pcv-muted);
  font-weight: 800;
}

.difficulty-picker-hint {
  font-size: 0.8rem;
  color: var(--pcv-muted);
  font-weight: 700;
}

.difficulty-choice-grid-mode {
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.difficulty-choice-mode {
  border-style: dashed;
}

.difficulty-choice-mode.active {
  border-style: solid;
}

.question-count-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.8rem;
}

.difficulty-choice {
  display: grid;
  gap: 0.3rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(29, 39, 65, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--pcv-text);
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.difficulty-choice-icon-wrap {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px rgba(35, 26, 77, 0.08);
  margin-bottom: 0.1rem;
}

.difficulty-choice-icon {
  width: 1.45rem;
  height: 1.45rem;
  object-fit: contain;
  display: block;
}

.difficulty-choice:hover:not(:disabled),
.difficulty-choice:focus-visible {
  border-color: rgba(74, 45, 183, 0.28);
  box-shadow: 0 0 0 0.18rem rgba(74, 45, 183, 0.12);
  transform: translateY(-1px);
}

.difficulty-choice.active {
  border-color: rgba(74, 45, 183, 0.42);
  background: linear-gradient(135deg, rgba(74, 45, 183, 0.12), rgba(0, 135, 231, 0.08));
  box-shadow: 0 0 0 0.18rem rgba(74, 45, 183, 0.1);
}

.difficulty-choice-title {
  font-weight: 800;
}

.difficulty-choice-copy {
  color: var(--pcv-muted);
  font-size: 0.9rem;
}

.count-choice {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid rgba(29, 39, 65, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--pcv-text);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.count-choice:hover:not(:disabled),
.count-choice:focus-visible {
  border-color: rgba(74, 45, 183, 0.28);
  box-shadow: 0 0 0 0.18rem rgba(74, 45, 183, 0.12);
  transform: translateY(-1px);
}

.count-choice.active {
  border-color: rgba(74, 45, 183, 0.42);
  background: linear-gradient(135deg, rgba(74, 45, 183, 0.12), rgba(0, 135, 231, 0.08));
  box-shadow: 0 0 0 0.18rem rgba(74, 45, 183, 0.1);
}

.count-choice-value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.count-choice-copy {
  color: var(--pcv-muted);
  font-size: 0.85rem;
}

.exercise-setup-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.exercise-visual-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(29, 39, 65, 0.08);
  border-radius: 1.4rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(243, 249, 255, 0.94));
}

.exercise-visual-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

.exercise-visual-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.cube-canvas-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
  border: 1px solid rgba(116, 148, 199, 0.24);
  background:
    radial-gradient(circle at top right, rgba(0, 135, 231, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff, #eff6ff 65%, #e9f2ff);
}

.cube-canvas-toolbar {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
}

.cube-reset-btn {
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(116, 148, 199, 0.38);
}

.exercise-cube-canvas {
  display: block;
  width: 100%;
  min-height: 19rem;
  cursor: grab;
  touch-action: none;
}

.exercise-cube-canvas.dragging {
  cursor: grabbing;
}

.exercise-visual-card-grid {
  background:
    radial-gradient(circle at top right, rgba(0, 135, 231, 0.12), transparent 28%),
    radial-gradient(circle at left bottom, rgba(253, 155, 0, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 249, 255, 0.95));
}

.exercise-visual-card-geometry {
  background:
    radial-gradient(circle at top right, rgba(40, 124, 190, 0.12), transparent 30%),
    radial-gradient(circle at left bottom, rgba(28, 86, 141, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 255, 0.96));
}

.exercise-visual-card-matrix,
.exercise-visual-card-logic {
  background:
    radial-gradient(circle at top right, rgba(57, 133, 94, 0.14), transparent 30%),
    radial-gradient(circle at left bottom, rgba(232, 145, 33, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 252, 246, 0.96));
}

.matrix-board,
.logic-grid-board {
  display: grid;
  grid-template-columns: repeat(var(--logic-cols, 2), minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 24rem;
  width: 100%;
}

.matrix-cell,
.logic-grid-cell {
  position: relative;
  min-height: 4.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  border: 2px solid rgba(29, 39, 65, 0.16);
  background: rgba(255, 255, 255, 0.94);
  color: #1e2f4d;
  font-size: 1.75rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(29, 39, 65, 0.1);
}

.matrix-cell-missing,
.logic-grid-cell-missing {
  border-color: rgba(198, 40, 40, 0.3);
  color: #9d1d1d;
  background: linear-gradient(180deg, rgba(255, 241, 241, 0.98), rgba(255, 251, 251, 0.98));
}

.logic-grid-cell-pattern {
  min-height: 3.6rem;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: 1.5rem;
}

.logic-grid-cell-cage {
  border-color: rgba(53, 111, 174, 0.08);
  background: linear-gradient(180deg, rgba(230, 243, 255, 0.92), rgba(250, 254, 255, 0.96));
}

.logic-cage-edge-left {
  border-left: 3px solid rgba(53, 111, 174, 0.75);
}

.logic-cage-edge-right {
  border-right: 3px solid rgba(53, 111, 174, 0.75);
}

.logic-cage-edge-top {
  border-top: 3px solid rgba(53, 111, 174, 0.75);
}

.logic-cage-edge-bottom {
  border-bottom: 3px solid rgba(53, 111, 174, 0.75);
}

.logic-cage-badge {
  position: absolute;
  top: 0.28rem;
  left: 0.32rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.45rem;
  height: 1.1rem;
  padding: 0 0.32rem;
  border-radius: 0.45rem;
  background: rgba(33, 85, 145, 0.92);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
}

.logic-visual-note {
  color: #2f4f77;
  font-size: 0.88rem;
  font-weight: 700;
}

/* Palette legend for mirror patterns */
.palette-legend {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(74, 45, 183, 0.06), rgba(0, 135, 231, 0.04));
  border: 1px solid rgba(74, 45, 183, 0.15);
  border-radius: 0.9rem;
}

.palette-legend-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pcv-primary);
  margin: 0;
}

.palette-symbols {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.palette-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.4rem;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1.5px solid rgba(29, 39, 65, 0.2);
  color: #1e2f4d;
  font-size: 1.3rem;
  font-weight: 800;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  box-shadow: 0 4px 12px rgba(29, 39, 65, 0.08);
  transition: all 120ms ease;
  cursor: pointer;
}

.palette-symbol:hover:not(:disabled) {
  border-color: rgba(74, 45, 183, 0.3);
  box-shadow: 0 6px 16px rgba(74, 45, 183, 0.12);
  transform: scale(1.05);
}

.palette-symbol:active:not(:disabled) {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(74, 45, 183, 0.1);
}

.palette-symbol:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.nonogram-clues-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.logic-clue-title {
  margin-bottom: 0.35rem;
  font-weight: 800;
  color: #29486f;
}

.logic-clue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.logic-clue-list li {
  padding: 0.4rem 0.55rem;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(41, 72, 111, 0.14);
  color: #1d3556;
  font-size: 0.88rem;
}

.logic-sequence-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.logic-sequence-chip {
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(41, 72, 111, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: #20395c;
  font-weight: 800;
}

.logic-sequence-chip-missing {
  border-color: rgba(198, 40, 40, 0.3);
  color: #9d1d1d;
  background: linear-gradient(180deg, rgba(255, 241, 241, 0.98), rgba(255, 251, 251, 0.98));
}

.projection-panels {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.projection-panel {
  position: relative;
  display: grid;
  gap: 0.55rem;
  padding: 0.7rem;
  border: 1px solid rgba(29, 39, 65, 0.12);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.9);
}

.projection-title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #29486f;
}

.projection-missing-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  min-width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(198, 40, 40, 0.15);
  color: #9d1d1d;
  font-weight: 800;
  font-size: 0.88rem;
}

.projection-top-grid {
  display: grid;
  grid-template-columns: repeat(var(--projection-top-cols, 3), minmax(0, 1fr));
  gap: 0.35rem;
}

.projection-top-cell {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0.45rem;
  border: 1px dashed rgba(45, 74, 112, 0.28);
  background: rgba(255, 255, 255, 0.82);
}

.projection-top-cell-filled {
  border: 1px solid rgba(34, 95, 155, 0.45);
  background: linear-gradient(145deg, rgba(130, 178, 225, 0.72), rgba(76, 145, 210, 0.85));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.projection-bars-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(1.35rem, 1fr));
  gap: 0.35rem;
  align-items: end;
  min-height: 6.3rem;
}

.projection-bar {
  display: grid;
  align-items: end;
  gap: 0.25rem;
  height: 5.6rem;
}

.projection-bar-fill {
  width: 100%;
  min-height: 0.5rem;
  border-radius: 0.35rem 0.35rem 0.2rem 0.2rem;
  background: linear-gradient(180deg, rgba(35, 123, 198, 0.95), rgba(22, 88, 153, 0.92));
  align-self: end;
}

.projection-bar-unknown {
  opacity: 0.86;
}

.projection-bar-fill-unknown {
  height: 72% !important;
  background: transparent;
  border: 2px dashed rgba(68, 89, 118, 0.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.projection-bar-label {
  text-align: center;
  font-size: 0.76rem;
  font-weight: 800;
  color: #28496f;
}

.projection-bar-unknown .projection-bar-label {
  display: none;
}

.cube-net-grid {
  display: grid;
  grid-template-columns: repeat(var(--cube-net-cols, 4), minmax(0, 2.4rem));
  gap: 0.3rem;
  justify-content: start;
}

.cube-net-cell {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.42rem;
}

.cube-net-cell-face {
  border: 1.5px solid rgba(34, 95, 155, 0.5);
  background: linear-gradient(145deg, rgba(136, 184, 229, 0.9), rgba(76, 145, 210, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54), 0 4px 10px rgba(34, 95, 155, 0.16);
}

.cube-net-cell-empty {
  border: 1px dashed rgba(45, 74, 112, 0.2);
  background: rgba(255, 255, 255, 0.55);
}

/* ── Mentální rotace ─────────────────────────────────────────────────── */
.rotation-panels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
}

.rotation-panel {
  background: #fff;
  border: 1.5px solid rgba(34, 95, 155, 0.18);
  border-radius: 0.7rem;
  padding: 0.75rem 0.9rem 0.9rem;
  box-shadow: 0 2px 8px rgba(34, 95, 155, 0.07);
}

.rotation-panel-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #29486f;
  margin-bottom: 0.6rem;
}

.rotation-height-grid {
  display: grid;
  grid-template-columns: repeat(var(--rotation-grid-cols, 3), minmax(0, 2.4rem));
  gap: 0.25rem;
  justify-content: start;
}

.rotation-height-cell {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.4rem;
  border: 1.5px solid rgba(34, 95, 155, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e3a5f;
}

.rotation-cell-target {
  border-color: rgba(198, 40, 40, 0.5);
  color: #9d1d1d;
  font-size: 1.1rem;
}

.rotation-arrow-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  color: #4a7ab5;
}

.rotation-arrow-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #4a7ab5;
  letter-spacing: 0.03em;
}

.rotation-arrow {
  font-size: 1.8rem;
  line-height: 1;
}

@media (max-width: 575.98px) {
  .rotation-panels {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .rotation-arrow-wrap {
    flex-direction: row;
    gap: 0.4rem;
  }
}

.geometry-visual-svg {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  border: 1px solid rgba(116, 148, 199, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(235, 244, 255, 0.96));
}

.geometry-shape {
  fill: rgba(0, 135, 231, 0.12);
  stroke: rgba(31, 69, 128, 0.86);
  stroke-width: 2.5;
}

.geometry-helper {
  fill: none;
  stroke: rgba(31, 69, 128, 0.64);
  stroke-width: 1.8;
  stroke-dasharray: 5 4;
}

.geometry-text {
  fill: #1f3f72;
  font-size: 12px;
  font-weight: 700;
}

.button-grid-board {
  display: grid;
  grid-template-columns: repeat(var(--board-cols, 5), minmax(0, 1fr));
  gap: 0.9rem;
  padding: 0.25rem;
}

.grid-choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.6rem;
  padding: 0.8rem;
  border: 2px solid rgba(29, 39, 65, 0.14);
  color: #1d2741;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(29, 39, 65, 0.1);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    filter 160ms ease;
}

.grid-choice:hover:not(:disabled),
.grid-choice:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(29, 39, 65, 0.14);
  border-color: rgba(29, 39, 65, 0.3);
}

.grid-choice:disabled {
  cursor: default;
}

.grid-choice-circle {
  width: min(100%, 4.2rem);
  min-height: 4.2rem;
  aspect-ratio: 1 / 1;
  justify-self: center;
  border-radius: 50%;
}

.grid-choice-square {
  border-radius: 1rem;
}

.grid-choice-capsule {
  width: 100%;
  min-height: 3.2rem;
  justify-self: stretch;
  border-radius: 999px;
}

.grid-choice-red {
  background: linear-gradient(180deg, #ffd8d4, #ffb4aa);
}

.grid-choice-blue {
  background: linear-gradient(180deg, #d8ebff, #9dcbff);
}

.grid-choice-green {
  background: linear-gradient(180deg, #ddf7e7, #a6e3bf);
}

.grid-choice-orange {
  background: linear-gradient(180deg, #ffe7cf, #ffc183);
}

.grid-choice-yellow {
  background: linear-gradient(180deg, #fff2bf, #ffd96e);
}

.grid-choice-label {
  position: relative;
  z-index: 1;
}

.grid-choice.active {
  border-color: rgba(74, 45, 183, 0.7);
  box-shadow: 0 0 0 0.22rem rgba(74, 45, 183, 0.16), 0 18px 30px rgba(74, 45, 183, 0.15);
}

.grid-choice.success {
  border-color: rgba(0, 143, 122, 0.72);
  box-shadow: 0 0 0 0.22rem rgba(0, 143, 122, 0.14), 0 18px 30px rgba(0, 143, 122, 0.12);
}

.grid-choice.danger {
  border-color: rgba(198, 40, 40, 0.65);
  box-shadow: 0 0 0 0.22rem rgba(198, 40, 40, 0.12), 0 18px 30px rgba(198, 40, 40, 0.12);
}

.cube-review-grid {
  display: grid;
  grid-template-columns: repeat(var(--cube-review-cols, 3), minmax(0, 1fr));
  gap: 0.65rem;
}

.cube-review-cell {
  display: grid;
  gap: 0.25rem;
  align-items: center;
  justify-items: center;
  min-height: 3.6rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(29, 39, 65, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 245, 255, 0.92));
}

.cube-review-pos {
  font-size: 0.72rem;
  color: var(--pcv-muted);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.cube-review-value {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  color: #1d2741;
}

.choice-pill {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(29, 39, 65, 0.12);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  color: var(--pcv-text);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.choice-pill:hover:not(:disabled),
.choice-pill:focus-visible {
  border-color: rgba(74, 45, 183, 0.26);
  box-shadow: 0 0 0 0.18rem rgba(74, 45, 183, 0.12);
  transform: translateY(-1px);
}

.choice-pill.active {
  border-color: rgba(74, 45, 183, 0.4);
  background: linear-gradient(135deg, rgba(74, 45, 183, 0.14), rgba(0, 135, 231, 0.08));
  box-shadow: 0 0 0 0.2rem rgba(74, 45, 183, 0.12);
}

.choice-pill.success {
  border-color: rgba(0, 143, 122, 0.28);
  background: rgba(0, 143, 122, 0.12);
}

.choice-pill.danger {
  border-color: rgba(198, 40, 40, 0.3);
  background: rgba(198, 40, 40, 0.12);
}

.choice-pill.active .choice-key,
.choice-pill.success .choice-key,
.choice-pill.danger .choice-key {
  color: #fff;
}

.choice-pill.active .choice-key {
  background: rgba(74, 45, 183, 0.9);
}

.choice-pill.correct {
  border-color: rgba(0, 143, 122, 0.22);
  background: rgba(0, 143, 122, 0.1);
}

.choice-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(74, 45, 183, 0.12);
  font-weight: 800;
}

.choice-pill.success .choice-key {
  background: rgba(0, 143, 122, 0.9);
}

.choice-pill.danger .choice-key {
  background: rgba(198, 40, 40, 0.86);
}

/* ── True / False question ───────────────────────────────── */
.true-false-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.true-false-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.5rem 1rem;
  border: 2px solid rgba(29, 39, 65, 0.14);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.88);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--pcv-text);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.true-false-btn:hover:not(:disabled),
.true-false-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 0 0.2rem rgba(74, 45, 183, 0.14);
}

.true-false-btn.tf-true:hover:not(:disabled),
.true-false-btn.tf-true:focus-visible {
  border-color: rgba(0, 143, 122, 0.4);
  box-shadow: 0 0 0 0.2rem rgba(0, 143, 122, 0.14);
}

.true-false-btn.tf-false:hover:not(:disabled),
.true-false-btn.tf-false:focus-visible {
  border-color: rgba(198, 40, 40, 0.38);
  box-shadow: 0 0 0 0.2rem rgba(198, 40, 40, 0.12);
}

.true-false-btn.active.tf-true {
  border-color: rgba(0, 143, 122, 0.6);
  background: rgba(0, 143, 122, 0.12);
}

.true-false-btn.active.tf-false {
  border-color: rgba(198, 40, 40, 0.5);
  background: rgba(198, 40, 40, 0.1);
}

.true-false-icon {
  font-size: 2rem;
  line-height: 1;
}

/* ── Inline-blank prompt (multiple_choice with __ in text) ─── */
.inline-blank-prompt {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.6;
  color: #1d2741;
  word-break: break-word;
}

.inline-blank-text {
  white-space: pre-wrap;
}

.fill-in-blank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  min-height: 1.9rem;
  padding: 0.1rem 0.6rem;
  border-radius: 0.45rem 0.45rem 0 0;
  border-bottom: 3px solid rgba(74, 45, 183, 0.6);
  background: rgba(74, 45, 183, 0.08);
  font-weight: 900;
  color: rgba(74, 45, 183, 0.5);
  font-size: 0.95em;
  letter-spacing: 0.15em;
  vertical-align: baseline;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.fill-in-blank.filled {
  color: rgba(74, 45, 183, 0.9);
  background: rgba(74, 45, 183, 0.13);
  border-color: rgba(74, 45, 183, 0.8);
  letter-spacing: 0;
}

/* ── Letter chip buttons ──────────────────────────────────── */
.letter-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.letter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.4rem;
  min-height: 3.4rem;
  padding: 0.45rem 1rem;
  border: 2px solid rgba(29, 39, 65, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--pcv-text);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.letter-chip:hover:not(:disabled),
.letter-chip:focus-visible {
  border-color: rgba(74, 45, 183, 0.38);
  box-shadow: 0 0 0 0.18rem rgba(74, 45, 183, 0.14);
  transform: translateY(-2px);
}

.letter-chip.active {
  border-color: rgba(74, 45, 183, 0.6);
  background: linear-gradient(135deg, rgba(74, 45, 183, 0.16), rgba(0, 135, 231, 0.1));
  box-shadow: 0 0 0 0.2rem rgba(74, 45, 183, 0.14);
  color: rgba(74, 45, 183, 0.95);
}

.letter-chip.success {
  border-color: rgba(0, 143, 122, 0.5);
  background: rgba(0, 143, 122, 0.12);
  color: rgba(0, 143, 122, 0.9);
}

.letter-chip.danger {
  border-color: rgba(198, 40, 40, 0.48);
  background: rgba(198, 40, 40, 0.1);
  color: rgba(198, 40, 40, 0.9);
}

/* ── Fill-in text input question ─────────────────────────── */
.fill-in-form {
  display: grid;
  gap: 1rem;
}

.fill-in-prompt-text {
  display: block;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.6;
  color: #1d2741;
  word-break: normal;
  overflow-wrap: normal;
}

.fill-in-input {
  display: inline-block;
  min-width: 2ch;
  max-width: min(24ch, 100%);
  width: var(--fill-in-size, 8ch);
  padding: 0.1rem 0.5rem;
  border: none;
  border-bottom: 3px solid rgba(74, 45, 183, 0.7);
  background: rgba(74, 45, 183, 0.07);
  border-radius: 0.4rem 0.4rem 0 0;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 800;
  color: #1d2741;
  text-align: center;
  outline: none;
  vertical-align: baseline;
  transition: border-color 160ms ease, background 160ms ease;
}

.fill-in-inline-word {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.fill-in-input:focus {
  border-color: rgba(74, 45, 183, 1);
  background: rgba(74, 45, 183, 0.11);
}

.issue-report-panel {
  border: 1px solid rgba(29, 39, 65, 0.14);
  border-radius: 1rem;
  padding: 1rem;
  background: linear-gradient(145deg, rgba(255, 251, 237, 0.96) 0%, rgba(255, 244, 214, 0.82) 100%);
}

.issue-report-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a4b00;
}

.issue-report-kicker::before {
  content: "🏅";
}

.issue-report-form textarea {
  resize: vertical;
  min-height: 120px;
}

.issue-status-tag {
  border: 1px solid transparent;
  font-weight: 700;
}

.issue-status-submitted {
  color: #6b7280;
  background: rgba(107, 114, 128, 0.14);
  border-color: rgba(107, 114, 128, 0.32);
}

.issue-status-in-review {
  color: #0c4a6e;
  background: rgba(14, 165, 233, 0.16);
  border-color: rgba(14, 165, 233, 0.36);
}

.issue-status-rewarded {
  color: #14532d;
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.38);
}

.issue-status-rejected {
  color: #7f1d1d;
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.36);
}

.exercise-progress-bar {
  width: 100%;
  height: 0.7rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(29, 39, 65, 0.08);
}

.exercise-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(74, 45, 183, 0.9), rgba(0, 135, 231, 0.88));
  transition: width 180ms ease;
}

.progress-stack {
  display: grid;
  gap: 0.9rem;
}

.progress-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(29, 39, 65, 0.08);
}

.progress-step.current {
  border-color: rgba(74, 45, 183, 0.16);
  background: rgba(74, 45, 183, 0.08);
}

.progress-step.done {
  border-color: rgba(0, 143, 122, 0.16);
  background: rgba(0, 143, 122, 0.08);
}

.progress-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(29, 29, 69, 0.08);
  font-weight: 800;
}

.cube-stage,
.number-stage,
.formula-stage {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(29, 39, 65, 0.08);
}

.cube-row {
  display: flex;
  gap: 0.7rem;
}

.cube-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 1rem;
  font-weight: 800;
  font-size: 1.15rem;
}

.cube-cell.filled {
  background: linear-gradient(135deg, rgba(74, 45, 183, 0.9), rgba(0, 135, 231, 0.92));
  color: #fff;
  box-shadow: 0 16px 24px rgba(74, 45, 183, 0.18);
}

.cube-cell.ghost {
  background: rgba(74, 45, 183, 0.08);
  color: rgba(29, 29, 69, 0.42);
  border: 1px dashed rgba(74, 45, 183, 0.18);
}

.number-stage {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.number-chip,
.formula-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(29, 39, 65, 0.08);
}

.number-chip.start,
.formula-card.focus {
  background: rgba(74, 45, 183, 0.1);
  border-color: rgba(74, 45, 183, 0.2);
}

.number-chip.goal {
  background: rgba(0, 143, 122, 0.1);
  border-color: rgba(0, 143, 122, 0.2);
}

.number-chip.hint,
.formula-card.hint {
  background: rgba(253, 155, 0, 0.12);
  border-color: rgba(253, 155, 0, 0.18);
}

.number-main,
.formula-card strong {
  font-size: 1.35rem;
  font-weight: 800;
}

.number-note,
.formula-label {
  color: var(--pcv-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 500ms ease forwards;
}

.fade-up-delay-1 {
  animation-delay: 80ms;
}

.fade-up-delay-2 {
  animation-delay: 160ms;
}

.fade-up-delay-3 {
  animation-delay: 240ms;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-ship {
  0% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-6px) translateX(2px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

@media (max-width: 991.98px) {
  .navbar .container {
    border-radius: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .navbar-brand {
    gap: 0.7rem;
  }

  .brand-logo {
    width: 3.4rem;
    height: 3.4rem;
  }

  .hero-panel {
    padding: 1.5rem;
  }

  .hero-title {
    max-width: none;
  }

  .home-main .section-title {
    font-size: clamp(1.55rem, 6vw, 2.2rem);
  }

  .hero-visual {
    border-radius: 1.6rem;
  }

  .challenge-screen {
    padding: 1.25rem;
  }

  .result-row {
    grid-template-columns: 1fr 1fr;
  }

  .exercise-visual-head,
  .exercise-visual-stats {
    justify-content: flex-start;
  }

  .mission-card-icon-wrap {
    width: 2.45rem;
    height: 2.45rem;
  }

  .mission-card-icon {
    width: 1.85rem;
    height: 1.85rem;
  }

  .mission-title-icon-wrap {
    width: 2.25rem;
    height: 2.25rem;
  }

  .mission-title-icon {
    width: 1.55rem;
    height: 1.55rem;
  }

  .mission-tag-icon {
    width: 1.05rem;
    height: 1.05rem;
  }

  .subject-mission-filter,
  .subject-mission-group,
  .subject-mission-empty {
    padding: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .page-section {
    padding-top: 1.25rem;
  }

  .home-main {
    padding-bottom: 1.25rem;
  }

  .home-main .content-panel,
  .home-main .hero-panel,
  .home-main .auth-promo,
  .home-main .player-card,
  .home-main .galaxy-panel {
    padding: 1.2rem;
  }

  .home-main .section-title {
    font-size: clamp(1.35rem, 7vw, 1.9rem);
  }

  .hero-panel,
  .content-panel,
  .subject-card,
  .news-card,
  .contact-card,
  .metric-card,
  .api-card,
  .mockup-card,
  .challenge-screen,
  .question-panel,
  .mockup-sidepanel {
    border-radius: 1.5rem;
  }

  .content-panel,
  .challenge-screen,
  .question-panel,
  .subject-mission-filter,
  .subject-mission-group,
  .subject-mission-empty,
  .difficulty-picker {
    padding: 1rem;
  }

  .challenge-screen .row,
  .content-panel .row {
    --bs-gutter-x: 0.9rem;
  }

  .hero-kicker {
    font-size: 0.7rem;
    line-height: 1.2;
  }

  .choices-grid,
  .number-stage,
  .badge-grid,
  .reward-grid,
  .profile-grid,
  .result-row {
    grid-template-columns: 1fr;
  }

  .difficulty-choice-grid,
  .difficulty-choice-grid-mode,
  .question-count-grid {
    grid-template-columns: 1fr;
  }

  .count-choice,
  .difficulty-choice {
    min-height: 0;
    padding: 0.8rem 0.9rem;
  }

  .world-view-grid {
    grid-template-columns: 1fr;
  }

  .hero-start-grid,
  .hero-grid,
  .hero-side-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 14rem;
  }

  .hero-visual-badge {
    position: static;
    margin: 0.75rem 0.75rem 0;
  }

  .hero-visual-image {
    margin-top: 0.2rem;
  }

  .button-grid-board {
    gap: 0.65rem;
  }

  .projection-panels {
    grid-template-columns: 1fr;
  }

  .cube-net-grid {
    grid-template-columns: repeat(var(--cube-net-cols, 4), minmax(0, 2rem));
  }

  .cube-net-cell {
    width: 2rem;
    height: 2rem;
  }

  .subject-illustration {
    width: 2.8rem;
    height: 2.8rem;
  }

  .grid-choice {
    min-height: 3.7rem;
    font-size: 1rem;
  }

  .cube-cell {
    width: 3.2rem;
    height: 3.2rem;
  }

  .mission-card-head {
    gap: 0.8rem;
  }

  .mission-card-icon-wrap {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 0.85rem;
  }

  .mission-card-icon {
    width: 2rem;
    height: 2rem;
  }

  .mission-title-with-icon {
    gap: 0.8rem;
    align-items: flex-start;
  }

  .mission-title-icon-wrap {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.8rem;
    margin-top: 0.06rem;
  }

  .mission-title-icon {
    width: 1.7rem;
    height: 1.7rem;
  }

  .mission-tag-link {
    gap: 0.45rem;
  }

  .mission-tag-icon {
    width: 1.15rem;
    height: 1.15rem;
  }

  .subject-mission-filter-head,
  .subject-mission-group-head,
  .subject-mission-search-control {
    flex-direction: column;
    align-items: stretch;
  }

  .subject-mission-search-input,
  .subject-mission-search-control .form-select,
  .subject-mission-search-clear {
    width: 100%;
    flex: 1 1 100%;
  }

  .subject-mission-search-input,
  .subject-mission-search-control .form-select {
    min-height: 3rem;
  }

  .subject-mission-filter-title,
  .subject-mission-group-title {
    font-size: 1.1rem;
  }

  .result-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.85rem;
  }

  .result-row-link {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .result-row-checkbox {
    justify-content: flex-start;
  }

  .question-panel .btn-lg,
  .challenge-screen .btn-lg,
  .content-panel .btn-lg {
    width: 100%;
  }

  .subject-mission-summary-pill,
  .subject-mission-group-count,
  .subject-mission-search-clear {
    justify-content: center;
  }

}


@media (max-width: 991.98px) {
  .hero-start-grid {
    grid-template-columns: 1fr;
  }

  .hero-side-grid {
    grid-template-columns: 1fr;
  }

  .exercise-cube-canvas {
    min-height: 13rem;
  }

  .nav-env-pill,
  .nav-user-pill {
    width: 100%;
    justify-content: center;
  }

  .nav-profile-menu {
    width: 100%;
  }

  .nav-profile-details {
    width: 100%;
  }

  .nav-profile-dropdown {
    position: absolute;
    right: 0;
    left: 0;
    top: calc(100% + 0.45rem);
    margin-top: 0;
    width: auto;
    min-width: 0;
  }
}

@media (max-width: 767.98px) {
  .table-responsive,
  .api-card.overflow-auto {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-responsive .table,
  .api-card.overflow-auto > .table {
    min-width: 38rem;
    font-size: 0.88rem;
  }

  .table-responsive .table th,
  .table-responsive .table td,
  .api-card.overflow-auto > .table th,
  .api-card.overflow-auto > .table td {
    white-space: nowrap;
    vertical-align: middle;
  }

  .table-responsive .table td .btn,
  .api-card.overflow-auto > .table td .btn {
    width: 100%;
    margin-right: 0 !important;
    margin-bottom: 0.35rem;
  }

  .table-responsive .table td .btn:last-child,
  .api-card.overflow-auto > .table td .btn:last-child {
    margin-bottom: 0;
  }

  [data-form="question-admin-edit"] .row.g-2.mb-2.align-items-center > .col-1,
  [data-form="question-admin-edit"] .row.g-2.mb-2.align-items-center > .col-7,
  [data-form="question-admin-edit"] .row.g-2.mb-2.align-items-center > .col-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  [data-form="question-admin-edit"] .row.g-2.mb-2.align-items-center > .col-1 {
    text-align: left !important;
  }

  [data-mission-step-row] > .d-flex.justify-content-between.align-items-center {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.55rem;
  }

  [data-mission-step-row] > .d-flex.justify-content-between.align-items-center > .d-flex.align-items-center.gap-2 {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  [data-content-row="contact-item"] {
    flex-direction: column;
    align-items: stretch !important;
  }

  [data-content-row="contact-item"] > .btn {
    width: 100%;
  }

  [data-form="question-admin-filter"] .col-md-2.d-grid.gap-2 .btn {
    min-height: 2.75rem;
  }

  .btn-group[aria-label="Počet položek na stránku"] {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .btn-group[aria-label="Počet položek na stránku"] .btn {
    width: 100%;
  }
}

@media (max-width: 479.98px) {
  .navbar .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .navbar-brand {
    gap: 0.5rem;
    min-width: 0;
    max-width: calc(100% - 3.2rem);
    margin-right: 0.45rem;
  }

  .brand-logo {
    width: 2.65rem;
    height: 2.65rem;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-mark {
    font-size: 0.98rem;
    line-height: 1.05;
  }

  .brand-submark {
    font-size: 0.56rem;
    letter-spacing: 0.08em;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .navbar-toggler {
    padding: 0.18rem 0.32rem;
    margin-left: auto;
    flex: 0 0 auto;
  }
}

@media (max-width: 359.98px) {
  .navbar .container {
    border-radius: 1.45rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .brand-logo {
    width: 3rem;
    height: 3rem;
  }

  .brand-mark {
    font-size: 1.02rem;
  }

  .navbar-nav .nav-link,
  .nav-user-pill,
  .nav-env-pill,
  .nav-logout,
  .nav-audience {
    min-height: 2.35rem;
    padding: 0.5rem 0.8rem;
    font-size: 0.89rem;
  }

  .page-section {
    padding-top: 1rem;
  }

  .section-title {
    font-size: clamp(1.18rem, 7.2vw, 1.45rem);
  }

  .content-panel,
  .challenge-screen,
  .question-panel,
  .subject-mission-filter,
  .subject-mission-group,
  .subject-mission-empty,
  .difficulty-picker {
    padding: 0.85rem;
    border-radius: 1.2rem;
  }

  .subject-mission-summary-pill,
  .subject-mission-group-count {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
  }

  .table-responsive .table,
  .api-card.overflow-auto > .table {
    min-width: 34rem;
    font-size: 0.84rem;
  }

  .result-row {
    padding: 0.75rem;
  }

  .result-row-link {
    gap: 0.4rem;
  }

  .result-metric-value {
    font-size: 0.94rem;
  }

  .result-metric-label {
    font-size: 0.74rem;
  }

  .pcv-secret-toolbar,
  .pcv-secret-toolbar-info,
  .pcv-secret-select-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .pcv-btn-secret {
    width: 100%;
    text-align: center;
  }

  .pcv-secret-select-hint {
    margin-left: 0;
  }

  form[data-form="results-filter"] .btn,
  form[data-form="students-filter"] .btn,
  form[data-form="question-admin-filter"] .btn {
    width: 100%;
  }

  [data-form="question-admin-edit"] .d-flex.gap-4 {
    flex-direction: column;
    gap: 0.6rem !important;
  }

  [data-form="mission-admin-edit"] .btn,
  [data-form="content-admin"] .btn {
    width: 100%;
  }
}

/* Result Detail & Review Styles */
.review-list {
  display: grid;
  gap: 1.15rem;
}

.review-row {
  padding: 1.5rem;
  border-radius: 1.2rem;
  border: 1.5px solid rgba(74, 45, 183, 0.12);
  border-left: 5px solid rgba(74, 45, 183, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 243, 255, 0.8));
  box-shadow: 0 8px 20px rgba(74, 45, 183, 0.08);
  margin-bottom: 0;
  transition: all 180ms ease;
}

.review-row:hover {
  border-color: rgba(74, 45, 183, 0.24);
  border-left-color: rgba(74, 45, 183, 0.36);
  box-shadow: 0 12px 32px rgba(74, 45, 183, 0.16);
  transform: translateY(-2px);
}

.review-row-correct {
  border-left-color: rgba(0, 143, 122, 0.78);
  border-color: rgba(0, 143, 122, 0.24);
  background: linear-gradient(135deg, rgba(0, 143, 122, 0.11), rgba(0, 143, 122, 0.06));
  box-shadow: 0 8px 20px rgba(0, 143, 122, 0.12);
}

.review-row-correct:hover {
  border-color: rgba(0, 143, 122, 0.38);
  border-left-color: rgba(0, 143, 122, 0.95);
  box-shadow: 0 12px 32px rgba(0, 143, 122, 0.18);
}

.review-row-wrong {
  border-left-color: rgba(198, 40, 40, 0.82);
  border-color: rgba(198, 40, 40, 0.24);
  background: linear-gradient(135deg, rgba(198, 40, 40, 0.1), rgba(198, 40, 40, 0.05));
  box-shadow: 0 8px 20px rgba(198, 40, 40, 0.12);
}

.review-row-wrong:hover {
  border-color: rgba(198, 40, 40, 0.38);
  border-left-color: rgba(198, 40, 40, 0.96);
  box-shadow: 0 12px 32px rgba(198, 40, 40, 0.18);
}

.review-row-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0;
}

.review-row-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  height: 1.8rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--pcv-primary);
  background: rgba(74, 45, 183, 0.1);
  border-radius: 0.5rem;
  flex: 0 0 auto;
}

.review-row-prompt {
  flex: 1 1 auto;
  font-size: 1rem;
  font-weight: 700;
  color: var(--pcv-text);
  line-height: 1.4;
  margin: 0;
}

.review-row-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(74, 45, 183, 0.1), transparent 80%);
  margin: 0.8rem 0;
}

.review-row-visual {
  margin-bottom: 0.8rem;
}

.review-row-body {
  margin-bottom: 0.6rem;
}

.review-row-explanation {
  margin-bottom: 0;
}

.review-options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}

.review-option {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: #f0f0f0;
  border: 1px solid #ddd;
  font-size: 0.95rem;
  font-family: monospace;
}

.review-option strong {
  margin-right: 0.25rem;
  font-weight: bold;
}

.review-option-correct {
  background: rgba(0, 143, 122, 0.14);
  border-color: rgba(0, 143, 122, 0.36);
  color: #0d6d5d;
}

.review-option-wrong {
  background: rgba(198, 40, 40, 0.14);
  border-color: rgba(198, 40, 40, 0.36);
  color: #7f1a1a;
}

/* Question List Navigation */
.question-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(2.5rem, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.question-list-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  border-radius: 0.5rem;
  border: 2px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-weight: 500;
  position: relative;
  transition: all 0.2s ease;
}

.question-list-item:hover {
  border-color: #7b2cbf;
  background: #f9f7ff;
}

.question-list-item.active {
  border-color: #7b2cbf;
  background: #7b2cbf;
  color: white;
}

.question-list-item.correct {
  border-color: #28a745;
  color: #28a745;
}

.question-list-item.correct.active {
  background: #28a745;
  color: white;
}

.question-list-item.wrong {
  border-color: #dc3545;
  color: #dc3545;
}

.question-list-item.wrong.active {
  background: #dc3545;
  color: white;
}

.question-list-item.answered {
  border-color: #28a745;
  color: #1f7a33;
}

.question-list-item.answered.active {
  background: #28a745;
  color: #fff;
}

.question-list-item.todo {
  border-color: #e67e22;
  color: #b85b07;
  background: #fff5e9;
}

.question-list-item.todo.active {
  background: #e67e22;
  color: #fff;
}

.question-list-item.skipped {
  border-color: #6c757d;
  color: #495057;
  background: #f5f6f7;
}

.question-list-item.skipped.active {
  background: #6c757d;
  color: #fff;
}

.question-list-item.pending {
  border-color: #d0d4da;
  color: #8a93a0;
}

.question-list-number {
  display: block;
  font-size: 0.85rem;
}

.question-list-mark {
  position: absolute;
  top: -0.5rem;
}

@keyframes pcv-modal-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
