body {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 224, 139, .42), transparent 28%),
    radial-gradient(circle at 86% 14%, rgba(226, 155, 255, .34), transparent 26%),
    linear-gradient(180deg, #6eb3ff 0%, #85c8ff 48%, #b9e2ff 100%) !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px),
    radial-gradient(circle at 0 100%, rgba(255,255,255,.35) 0 9%, transparent 9.2%),
    radial-gradient(circle at 96% 100%, rgba(255,255,255,.22) 0 13%, transparent 13.2%);
  background-size: 42px 42px, 42px 42px, 560px 260px, 620px 270px;
}

.top,
.topbar {
  display: none !important;
}

.top img,
.topbar .logo img {
  border-radius: 20px;
  box-shadow: 0 10px 22px rgba(25, 73, 129, .18);
}

.back,
.crumb,
.lang {
  border: 3px solid rgba(27,24,70,.12) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #171158 !important;
  box-shadow: 0 8px 0 rgba(27,24,70,.08);
  padding: 10px 15px !important;
  font-weight: 1000 !important;
  transition: transform .16s ease, box-shadow .16s ease;
}

.back:hover,
.crumb:hover,
.lang:hover,
.send:hover {
  transform: translateY(-3px) scale(1.02);
}

main {
  width: min(1120px, calc(100% - 28px)) !important;
  margin-top: max(28px, env(safe-area-inset-top)) !important;
}

.portal-back-fab {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  inset-inline-start: max(14px, env(safe-area-inset-left));
  z-index: 3200;
  display: grid;
  place-items: center;
  width: clamp(62px, 10vw, 86px);
  height: clamp(62px, 10vw, 86px);
  border-radius: 50%;
  text-decoration: none;
  filter: drop-shadow(0 12px 14px rgba(23, 55, 95, .28));
  transition: transform .16s ease, filter .16s ease;
}

.portal-back-fab:hover,
.portal-back-fab:focus-visible {
  transform: translateY(-3px) scale(1.06);
  filter: drop-shadow(0 16px 18px rgba(23, 55, 95, .34));
}

.portal-back-fab img {
  display: block;
  width: 100%;
  height: 100%;
}

.eyebrow,
.tag {
  border-radius: 999px !important;
  background: #fff2b8 !important;
  color: #1b2460 !important;
  box-shadow: 0 7px 0 rgba(255,178,41,.25);
}

h1 {
  color: #171158 !important;
  text-shadow: 0 4px 0 rgba(255,255,255,.68);
}

.intro,
.note,
.section-note {
  color: #345071 !important;
  font-weight: 800;
}

.video-shell {
  position: relative;
  overflow: visible !important;
  border: 10px solid #fff !important;
  border-radius: 36px !important;
  background: linear-gradient(135deg, #171158, #101622) !important;
  box-shadow: 0 18px 0 rgba(82,106,203,.18), 0 28px 58px rgba(16,62,121,.22) !important;
}

.video-shell::before {
  content: "Lingurise";
  position: absolute;
  top: -24px;
  inset-inline-start: 28px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 17px;
  border: 4px solid #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #6844f1, #2d9cff);
  color: #fff;
  font-weight: 1000;
  letter-spacing: .3px;
  box-shadow: 0 8px 0 rgba(27,24,70,.18);
}

.video-shell::after {
  content: "▶";
  position: absolute;
  top: -28px;
  inset-inline-end: 30px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7a59, #ffd447);
  color: #fff;
  text-shadow: 0 2px 0 rgba(0,0,0,.18);
  box-shadow: 0 8px 0 rgba(82,70,130,.18);
}

.video-shell video {
  overflow: hidden;
  border-radius: 25px;
  background: #101622;
}

.lesson-section,
.card {
  border: 4px solid rgba(255,255,255,.82) !important;
  border-radius: 32px !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: 0 12px 0 rgba(82,106,203,.12), 0 20px 38px rgba(16,62,121,.14) !important;
}

.section-kicker,
.step {
  color: #ff7900 !important;
  font-weight: 1000 !important;
}

.word,
.color,
.quiz-question {
  border: 3px solid rgba(73,80,170,.12) !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 7px 0 rgba(27,24,70,.05);
}

.quiz-option {
  border: 2px solid rgba(73,80,170,.12) !important;
  border-radius: 16px !important;
  transition: transform .14s ease, background .14s ease;
}

.quiz-option:hover {
  transform: translateY(-2px);
  background: #eef8ff !important;
}

.send {
  border: 3px solid rgba(27,24,70,.08) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #6844f1, #2d9cff) !important;
  box-shadow: 0 10px 0 rgba(43,34,126,.22), 0 18px 30px rgba(45,127,249,.22);
  color: #fff !important;
  font-weight: 1000 !important;
}

.quiz-result {
  border: 3px solid rgba(45,127,249,.12);
  border-radius: 24px !important;
  background: #eff8ff !important;
}

@media (max-width: 680px) {
  .video-shell {
    border-width: 6px !important;
    border-radius: 24px !important;
    margin-top: 34px !important;
  }
  .video-shell::before {
    inset-inline-start: 16px;
    top: -22px;
    min-height: 36px;
    font-size: .82rem;
  }
  .video-shell::after {
    inset-inline-end: 16px;
    top: -23px;
    width: 46px;
    height: 46px;
  }
}
