:root {
  color-scheme: dark;
  --bg: #0b1220;
  --bg-2: #111827;
  --surface: #162033;
  --surface-2: #1d2a40;
  --border: rgba(226, 232, 240, 0.14);
  --text: #f8fafc;
  --muted: #a8b3c7;
  --emerald: #22c55e;
  --emerald-2: #064e3b;
  --gold: #fbbf24;
  --coral: #fb7185;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  touch-action: manipulation;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.boot,
.screen-state {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.app-busy .tile,
.app-busy .card,
.app-busy .nav-item,
.app-busy .primary,
.app-busy .secondary,
.app-busy .ghost {
  pointer-events: none;
}

.loader {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(248, 250, 252, 0.22);
  border-top-color: var(--emerald);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.brand-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--emerald), var(--gold));
  color: #07111f;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.app-shell {
  min-height: 100svh;
  min-height: 100dvh;
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: rgba(11, 18, 32, 0.98);
  border-bottom: 1px solid var(--border);
}

.topbar-row,
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-row {
  justify-content: space-between;
}

.page {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 18px 16px 28px;
}

.page.narrow {
  width: min(560px, 100%);
}

.page.frameless {
  width: min(980px, 100%);
  padding: 10px 10px calc(18px + env(safe-area-inset-bottom));
}

.hero {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 10%, rgba(34, 197, 94, 0.22), transparent 34%),
    radial-gradient(circle at 90% 0%, rgba(251, 191, 36, 0.16), transparent 32%),
    var(--surface);
  box-shadow: var(--shadow);
}

.auth-page {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  background:
    linear-gradient(145deg, rgba(5, 15, 25, 0.98), rgba(11, 18, 32, 0.94)),
    radial-gradient(circle at 12% 8%, rgba(20, 184, 166, 0.2), transparent 38%);
}

.auth-page::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(30deg, transparent 46%, rgba(255, 255, 255, 0.13) 47% 49%, transparent 50%),
    linear-gradient(150deg, transparent 46%, rgba(255, 255, 255, 0.09) 47% 49%, transparent 50%);
  background-size: 84px 48px;
  mask-image: linear-gradient(to right, #000, transparent 44%, transparent 60%, #000);
}

.auth-orbit {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(4px);
  pointer-events: none;
}

.auth-orbit-one {
  width: min(42vw, 560px);
  aspect-ratio: 1;
  top: -24%;
  left: -12%;
  background: rgba(20, 184, 166, 0.13);
  box-shadow: 0 0 120px rgba(20, 184, 166, 0.18);
}

.auth-orbit-two {
  width: min(36vw, 480px);
  aspect-ratio: 1;
  right: -14%;
  bottom: -26%;
  background: rgba(244, 183, 64, 0.1);
  box-shadow: 0 0 120px rgba(244, 183, 64, 0.14);
}

.auth-shell {
  width: min(100%, 1020px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  background: rgba(14, 25, 40, 0.88);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.auth-story,
.auth-panel {
  min-width: 0;
  padding: clamp(30px, 5vw, 56px);
}

.auth-story {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 54px;
  background:
    radial-gradient(circle at 78% 18%, rgba(244, 183, 64, 0.15), transparent 26%),
    linear-gradient(155deg, rgba(20, 184, 166, 0.18), rgba(6, 78, 59, 0.03));
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-brand img {
  width: 68px;
  height: 68px;
  border-radius: 19px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.auth-brand div {
  display: grid;
  gap: 3px;
}

.auth-brand strong {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.auth-brand span,
.auth-panel-heading p,
.auth-message p {
  color: var(--muted);
}

.auth-brand span {
  font-size: 13px;
}

.auth-message {
  max-width: 560px;
}

.auth-kicker,
.auth-panel-heading > span {
  display: inline-block;
  margin-bottom: 13px;
  color: #5eead4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.auth-message h1 {
  max-width: 540px;
  margin-bottom: 18px;
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 0.98;
}

.auth-message p {
  max-width: 520px;
  margin-bottom: 0;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.55;
}

.auth-benefits {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #dbe7f5;
  font-size: 14px;
}

.auth-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-benefits li span {
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.16);
  color: #5eead4;
  font-weight: 900;
}

.auth-panel {
  align-self: center;
  background: rgba(16, 25, 40, 0.72);
}

.auth-panel-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(27px, 3vw, 35px);
  line-height: 1.08;
}

.auth-panel-heading p {
  margin-bottom: 0;
  line-height: 1.5;
}

.auth-error {
  margin-top: 20px;
  padding: 13px 15px;
  border: 1px solid rgba(251, 113, 133, 0.38);
  border-radius: 14px;
  background: rgba(251, 113, 133, 0.11);
  color: #fecdd3;
  font-size: 14px;
}

.auth-actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.auth-provider {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 30px 1fr 24px;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 0;
  border-radius: 17px;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.auth-provider:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.auth-provider:active {
  transform: translateY(1px);
}

.auth-provider:focus-visible {
  outline: 3px solid rgba(94, 234, 212, 0.6);
  outline-offset: 3px;
}

.auth-provider-yandex {
  background: #fff;
  color: #111827;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.2);
}

.auth-provider-yandex .auth-provider-icon {
  color: #fc3f1d;
  font-size: 22px;
  font-weight: 900;
}

.auth-provider-telegram {
  background: #229ed9;
  color: #fff;
  box-shadow: 0 9px 24px rgba(34, 158, 217, 0.16);
}

.auth-provider-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
}

.auth-provider-arrow {
  justify-self: end;
  opacity: 0.62;
  font-size: 21px;
}

.auth-save-note {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid rgba(94, 234, 212, 0.16);
  border-radius: 16px;
  background: rgba(20, 184, 166, 0.07);
}

.auth-save-note > span {
  color: var(--gold);
  text-align: center;
}

.auth-save-note p,
.auth-legal {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.auth-save-note strong {
  color: var(--text);
}

.auth-legal {
  margin-top: 18px;
  text-align: center;
}

.auth-legal a {
  color: #cbd5e1;
  text-underline-offset: 3px;
}

@media (max-width: 760px) {
  .auth-page {
    display: block;
    padding: max(16px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom));
  }

  .auth-shell {
    grid-template-columns: 1fr;
    border-radius: 26px;
  }

  .auth-story,
  .auth-panel {
    padding: 26px 22px;
  }

  .auth-story {
    gap: 28px;
  }

  .auth-message h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .auth-benefits {
    display: none;
  }

  .auth-panel {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 380px) {
  .auth-story,
  .auth-panel {
    padding: 22px 18px;
  }

  .auth-brand img {
    width: 58px;
    height: 58px;
  }

  .auth-message h1 {
    font-size: 33px;
  }
}

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

h1 {
  margin-bottom: 8px;
  font-size: clamp(28px, 8vw, 44px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

h2 {
  margin-bottom: 12px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 8px;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.list {
  display: grid;
  gap: 12px;
}

.materials-intro {
  padding: 22px;
  margin-bottom: 18px;
  border: 1px solid rgba(251, 191, 36, 0.24);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(34, 197, 94, 0.08) 70%, var(--surface));
}

.materials-intro h2 { margin: 12px 0 8px; line-height: 1.15; }
.materials-intro p { margin: 0; line-height: 1.5; }
.materials-section { margin: 14px 0 22px; }
.materials-section h3, .materials-library-title { margin: 0 0 12px; }
.materials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 12px; }
.materials-pick {
  display: flex;
  gap: 14px;
  min-height: 156px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.materials-pick:hover, .materials-pick:focus-visible { border-color: rgba(251, 191, 36, 0.55); }
.materials-pick-art {
  display: grid;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.24), rgba(34, 197, 94, 0.2));
  color: var(--gold);
  font-size: 25px;
}
.materials-pick-body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.materials-pick-body strong { font-size: 17px; line-height: 1.25; }
.materials-pick-body > .muted { font-size: 14px; line-height: 1.4; }
.materials-pick-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--gold); font-size: 13px; }
.materials-pick-meta .badge { padding: 3px 8px; font-size: 12px; }
.materials-source { margin-top: 14px; font-size: 13px; }

.card,
.tile {
  display: block;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  text-decoration: none;
}

button.card,
button.tile {
  cursor: pointer;
}

.more-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.more-contact-copy { flex: 1 1 180px; min-width: 0; }
.more-contact-copy h3 { font-size: 16px; line-height: 1.35; }
.more-contact-copy p { margin: 4px 0 0; font-size: 14px; }

.more-contact-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid rgba(34, 197, 94, 0.32);
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
  font-size: 14px;
  font-weight: 700;
}

.more-contact:is(:hover, :focus-visible) .more-contact-action { background: rgba(34, 197, 94, 0.22); }
.more-contact:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; }

.course-locked {
  font: inherit;
}

.course-locked:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.course-coming-soon-notice {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  width: min(90vw, 420px);
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  text-align: center;
  transform: translateX(-50%);
}

.course-unavailable {
  max-width: 480px;
  margin: 32px auto;
  text-align: center;
}

.course-unavailable-icon {
  font-size: 42px;
}

.tile:active,
.card:active,
.primary:active,
.secondary:active,
.ghost:active {
  transform: translateY(1px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
  font-size: 13px;
}

.badge.gold {
  background: rgba(251, 191, 36, 0.14);
  color: #fde68a;
}

.coin-amount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  vertical-align: middle;
  white-space: nowrap;
  color: #fde68a;
  font-weight: 900;
}

.coin-icon {
  width: 1.08em;
  height: 1.08em;
  display: inline-block;
  border-radius: 999px;
  color: transparent;
  background: radial-gradient(circle at 34% 28%, #fff7c2 0 12%, transparent 13%),
    linear-gradient(135deg, #fde68a, #fbbf24 58%, #b45309);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 2px 8px rgba(251, 191, 36, 0.28);
}

.coin-icon::after {
  content: "";
  display: block;
  width: 45%;
  height: 45%;
  margin: 27%;
  border-radius: 999px;
  border: 1px solid rgba(255, 247, 204, 0.68);
}

.avatar {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.18);
  color: #bbf7d0;
  font-weight: 800;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.primary,
.secondary,
.ghost,
.danger {
  min-height: 46px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

.primary {
  background: var(--emerald);
  color: #04130b;
  font-weight: 800;
}

.secondary {
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.ghost {
  background: transparent;
  border: 1px solid var(--border);
}

.danger {
  background: rgba(251, 113, 133, 0.16);
  color: #fecdd3;
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(11, 18, 32, 0.96);
  border-top: 1px solid var(--border);
}

.nav-item {
  display: grid;
  gap: 2px;
  place-items: center;
  min-height: 56px;
  border-radius: 18px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
}

.nav-item.active {
  background: rgba(34, 197, 94, 0.14);
  color: var(--text);
}

.nav-icon {
  font-size: 21px;
}

.form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #0f172a;
  color: var(--text);
  outline: none;
}

.textarea {
  min-height: 110px;
  resize: vertical;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: rgba(34, 197, 94, 0.75);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
}

.choice-grid {
  display: grid;
  gap: 10px;
}

.choice {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #0f172a;
  color: var(--text);
  text-align: left;
}

.choice.selected {
  border-color: var(--emerald);
  background: rgba(34, 197, 94, 0.16);
}

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 12px;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.filter.active {
  border-color: var(--emerald);
  background: rgba(34, 197, 94, 0.16);
}

.result.ok {
  border-color: rgba(34, 197, 94, 0.6);
}

.result.bad {
  border-color: rgba(251, 113, 133, 0.6);
}

.media-cover {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 20px;
  background: var(--surface-2);
}

audio,
video {
  width: 100%;
  margin-top: 14px;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.chat {
  display: grid;
  gap: 10px;
}

.message {
  padding: 14px;
  border-radius: 18px;
  background: var(--surface);
  white-space: pre-wrap;
}

.message.user {
  margin-left: 28px;
  background: var(--emerald-2);
}

.message.assistant {
  margin-right: 28px;
}

.guided-card {
  position: relative;
  overflow: hidden;
}

.guided-card::before {
  content: "";
  position: absolute;
  inset: -120px -80px auto auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(241, 194, 107, 0.22), transparent 65%);
  pointer-events: none;
}

.guided-word {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin: 8px 0 16px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(241, 194, 107, 0.36);
  background: rgba(241, 194, 107, 0.1);
}

.guided-word span {
  color: var(--gold);
  font-size: 20px;
  font-weight: 800;
}

.guided-word small {
  color: var(--muted);
}

.guided-chat {
  margin: 12px 0 16px;
}

.guided-chat .message.assistant {
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    var(--surface);
}

.guided-chat .message.user {
  border: 1px solid rgba(48, 176, 137, 0.38);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.guided-input-row {
  display: grid;
  gap: 10px;
}

.guided-complete {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(48, 176, 137, 0.35);
  background: rgba(48, 176, 137, 0.1);
}

.batyr-secret {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.08);
}

.batyr-secret img,
.batyr-secret-bear {
  width: 52px;
  height: 62px;
  object-fit: contain;
}

.batyr-secret-word {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #fbbf24;
  overflow-wrap: anywhere;
}

.vocab-game {
  display: grid;
  gap: 14px;
}

.vocab-hud {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.vocab-hud::-webkit-scrollbar {
  display: none;
}

.vocab-arena {
  position: relative;
  height: min(56svh, 480px);
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 26px;
  background:
    radial-gradient(circle at 20% 20%, rgba(34, 197, 94, 0.14), transparent 34%),
    radial-gradient(circle at 80% 0%, rgba(251, 191, 36, 0.12), transparent 28%),
    #07111f;
  box-shadow: var(--shadow);
  contain: layout paint;
  overscroll-behavior: contain;
}

.vocab-arena::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 42%, rgba(255, 255, 255, 0.05) 48%, transparent 56%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 34px);
  opacity: 0.5;
  animation: arena-shimmer 7s linear infinite;
}

.vocab-ambient {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.34;
  pointer-events: none;
  will-change: transform;
}

.vocab-ambient.orb-a {
  left: -70px;
  top: 26px;
  background: rgba(34, 197, 94, 0.36);
  animation: vocab-orb-a 6.8s ease-in-out infinite alternate;
}

.vocab-ambient.orb-b {
  right: -76px;
  bottom: 16px;
  background: rgba(251, 191, 36, 0.31);
  animation: vocab-orb-b 7.6s ease-in-out infinite alternate;
}

.fall-layer {
  position: absolute;
  inset: 0;
  contain: layout paint style;
  pointer-events: none;
}

.fall-word {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 84px;
  padding: 10px 12px;
  border: 1px solid rgba(248, 250, 252, 0.2);
  border-radius: 999px;
  background: rgba(29, 42, 64, 0.92);
  color: var(--text);
  text-align: center;
  font-weight: 900;
  will-change: transform;
  backface-visibility: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.fall-word::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 18%, rgba(255, 255, 255, 0.14) 34%, transparent 52%);
  transform: translateX(-120%);
  animation: word-glint 3.6s ease-in-out infinite;
}

.fall-word.diff-4,
.fall-word.diff-5 {
  border-color: rgba(251, 191, 36, 0.56);
  background: rgba(78, 54, 18, 0.92);
}

.fall-word.target {
  border-color: rgba(45, 212, 191, 0.92);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.1), 0 18px 42px rgba(20, 184, 166, 0.25);
}

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

.drag-hint {
  margin: -2px 2px -4px;
  text-align: center;
  font-size: 13px;
}

.vocab-basket {
  cursor: grab;
  touch-action: none;
  user-select: none;
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 20% 0%, rgba(251, 191, 36, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(31, 45, 68, 0.98), rgba(15, 23, 42, 0.98));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.11);
  transform: translateZ(0);
  transition: transform 130ms ease, border-color 130ms ease, box-shadow 130ms ease;
}

.vocab-basket:active {
  cursor: grabbing;
  transform: scale(0.98);
  border-color: rgba(251, 191, 36, 0.58);
}

.vocab-basket.dragging {
  opacity: 0.42;
}

.vocab-drag-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 80;
  min-width: min(220px, 72vw);
  pointer-events: none;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
  opacity: 0.96;
  will-change: transform;
  backface-visibility: hidden;
}

.vocab-drag-lock,
.vocab-drag-lock body {
  overscroll-behavior: none;
}

@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .vocab-arena::before,
  .vocab-ambient,
  .fall-word::after {
    animation: none;
  }

  .vocab-ambient {
    display: none;
  }

  .fall-word {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
  }
}

.vocab-burst {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 8;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  pointer-events: none;
  will-change: transform, opacity;
  animation: vocab-burst 720ms ease-out forwards;
}

.vocab-burst.ok {
  color: #fef3c7;
  background: rgba(251, 191, 36, 0.22);
  border: 1px solid rgba(251, 191, 36, 0.5);
}

.vocab-burst.bad {
  color: #fecdd3;
  background: rgba(251, 113, 133, 0.18);
  border: 1px solid rgba(251, 113, 133, 0.42);
}

@keyframes arena-shimmer {
  from { background-position: -180px 0, 0 0; }
  to { background-position: 220px 0, 0 34px; }
}

@keyframes vocab-orb-a {
  from { transform: translate3d(0, 0, 0) scale(0.92); }
  to { transform: translate3d(38px, 32px, 0) scale(1.12); }
}

@keyframes vocab-orb-b {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-36px, -28px, 0) scale(1.16); }
}

@keyframes word-glint {
  0%, 68% { transform: translateX(-120%); }
  100% { transform: translateX(140%); }
}

@keyframes vocab-burst {
  0% { opacity: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) translate(-50%, -40%) scale(0.82); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) translate(-50%, -115%) scale(1.08); }
}

.game-start-card {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.reward-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  animation: reward-pop 420ms cubic-bezier(0.2, 1.25, 0.3, 1) both;
}

.reward-card::before {
  content: "";
  position: absolute;
  inset: -35% -18% auto;
  height: 150px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.2), transparent 62%);
}

.reward-success {
  border-color: rgba(34, 197, 94, 0.42);
  box-shadow: 0 18px 52px rgba(34, 197, 94, 0.14);
}

.reward-miss {
  border-color: rgba(251, 113, 133, 0.34);
}

.reward-medal {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.95), rgba(34, 197, 94, 0.86));
  color: #07111f;
  font-size: 34px;
  box-shadow: 0 14px 34px rgba(251, 191, 36, 0.22);
}

.reward-coins {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.reward-layer {
  position: fixed;
  left: 50%;
  top: 46%;
  z-index: 200;
  width: 1px;
  height: 1px;
  pointer-events: none;
  contain: layout paint;
}

.reward-confetti,
.reward-coin {
  position: absolute;
  left: 0;
  top: 0;
  width: 9px;
  height: 13px;
  border-radius: 3px;
  background: var(--emerald);
  opacity: 0;
  will-change: transform, opacity;
  animation: reward-fly 900ms cubic-bezier(0.18, 0.9, 0.28, 1) forwards;
}

.reward-confetti:nth-child(4n + 1) { background: #fbbf24; }
.reward-confetti:nth-child(4n + 2) { background: #22c55e; }
.reward-confetti:nth-child(4n + 3) { background: #60a5fa; }

.reward-coin {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fde68a, #fbbf24 58%, #b45309);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.reward-layer.bad .reward-confetti,
.reward-layer.bad .reward-coin {
  background: #fb7185;
  box-shadow: none;
}

.reward-float-label {
  position: absolute;
  left: 50%;
  top: -22px;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(251, 191, 36, 0.34);
  box-shadow: var(--shadow);
  animation: reward-float 1000ms ease-out forwards;
}

@keyframes reward-pop {
  0% { opacity: 0; transform: translateY(10px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes reward-fly {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(0.72);
  }
  14% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate3d(var(--x), var(--y), 0) rotate(var(--r)) scale(1);
  }
}

@keyframes reward-float {
  0% { opacity: 0; transform: translate(-50%, 8px) scale(0.92); }
  18% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -48px) scale(1.04); }
}

.mascot-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.mascot-balance {
  min-width: 132px;
  padding: 14px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 22px;
  background: rgba(11, 18, 32, 0.42);
  text-align: center;
}

.mascot-balance .coin-amount {
  margin-top: 6px;
  font-size: 24px;
}

.mascot-scene-card {
  margin: 14px 0 16px;
  border: 1px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  background: #07111f;
  box-shadow: var(--shadow);
  contain: layout paint;
}

.mascot-scene {
  position: relative;
  height: min(72vw, 560px);
  min-height: 330px;
  overflow: hidden;
  background: linear-gradient(180deg, #173862 0%, #0b1220 48%, #164a36 49%, #123d2f 100%);
  transform: translateZ(0);
}

.mascot-sun {
  position: absolute;
  right: 13%;
  top: 10%;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #fcd34d;
  box-shadow: 0 0 0 18px rgba(251, 191, 36, 0.12);
  animation: mascot-pulse 4.8s ease-in-out infinite alternate;
}

.mascot-mountains,
.mascot-meadow {
  position: absolute;
  inset: auto 0 0;
}

.mascot-mountains {
  height: 58%;
  bottom: 34%;
  background:
    linear-gradient(135deg, transparent 0 18%, #203a55 18% 36%, transparent 36%),
    linear-gradient(225deg, transparent 0 20%, #1e405d 20% 42%, transparent 42%),
    linear-gradient(160deg, transparent 0 50%, #1d5b4b 50% 70%, transparent 70%);
  opacity: 0.96;
}

.mascot-meadow {
  height: 52%;
  background:
    radial-gradient(circle at 16% 68%, rgba(251, 191, 36, 0.14), transparent 20%),
    radial-gradient(circle at 72% 78%, rgba(34, 197, 94, 0.18), transparent 24%),
    linear-gradient(180deg, #1d6b4d, #123d2f);
}

.scene-level-badge {
  position: absolute;
  left: 16px;
  top: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.62);
  font-weight: 900;
}

.mascot-yurt {
  position: absolute;
  left: 36%;
  top: 43%;
  width: var(--yurt-w);
  height: var(--yurt-h);
  transform: translateX(-50%);
}

.yurt-roof,
.yurt-body,
.yurt-door,
.yurt-ornament {
  position: absolute;
  display: block;
}

.yurt-roof {
  left: 9%;
  top: 0;
  width: 82%;
  height: 46%;
  border-radius: 90px 90px 18px 18px;
  background: linear-gradient(180deg, #f4e7c5, #d6b36a);
}

.yurt-body {
  left: 0;
  right: 0;
  bottom: 0;
  height: 68%;
  border-radius: 24px 24px 18px 18px;
  background: #f4e7c5;
  box-shadow: inset 0 -18px 0 rgba(146, 64, 14, 0.1);
}

.yurt-door {
  left: 41%;
  bottom: 0;
  width: 18%;
  height: 42%;
  border-radius: 14px 14px 4px 4px;
  background: #7c2d12;
}

.yurt-ornament {
  left: 13%;
  right: 13%;
  top: var(--ornament-top);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b91c1c, #fbbf24, #0f766e);
}

.mascot-character {
  position: absolute;
  left: 21%;
  top: 53%;
  width: 72px;
  height: 126px;
  animation: mascot-bob 3.4s ease-in-out infinite alternate;
}

.character-glow,
.character-head,
.character-hat,
.character-body,
.character-kurai {
  position: absolute;
  display: block;
}

.character-glow {
  inset: 10px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.12);
  opacity: 0;
}

.character-head {
  left: 24px;
  top: 14px;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  background: #f1c27d;
}

.character-hat {
  left: 16px;
  top: 6px;
  width: 40px;
  height: 20px;
  border-radius: 40px 40px 8px 8px;
  border-top: 8px solid #fbbf24;
  opacity: 0;
}

.character-body {
  left: 17px;
  top: 42px;
  width: 40px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(180deg, #0f766e, #1f2937);
  box-shadow: inset 0 18px 0 rgba(251, 191, 36, calc(var(--character) * 0.05));
}

.character-kurai {
  left: 55px;
  top: 34px;
  width: 5px;
  height: 54px;
  border-radius: 999px;
  background: #e5e7eb;
  transform: rotate(28deg);
  opacity: 0;
}

.mascot-character.level-1 .character-hat,
.mascot-character.level-2 .character-hat,
.mascot-character.level-3 .character-hat,
.mascot-character.level-4 .character-hat,
.mascot-character.level-5 .character-hat {
  opacity: 1;
}

.mascot-character.level-2 .character-glow { opacity: 0.24; }
.mascot-character.level-3 .character-glow { opacity: 0.34; }
.mascot-character.level-4 .character-glow { opacity: 0.46; }
.mascot-character.level-5 .character-glow { opacity: 0.58; }

.mascot-character.level-4 .character-kurai,
.mascot-character.level-5 .character-kurai {
  opacity: 1;
}

.hive {
  position: absolute;
  left: var(--x);
  top: var(--top);
  width: 34px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(180deg, #fbbf24, #b45309);
  box-shadow: inset 0 8px 0 rgba(255, 255, 255, 0.18);
}

.hive::after {
  content: "";
  position: absolute;
  left: 13px;
  bottom: 7px;
  width: 8px;
  height: 6px;
  border-radius: 999px 999px 2px 2px;
  background: #07111f;
}

.bee {
  position: absolute;
  left: var(--x);
  top: 54%;
  width: 8px;
  height: 5px;
  border-radius: 999px;
  background: #fbbf24;
  animation: bee-drift 4.2s ease-in-out infinite alternate;
  animation-delay: var(--delay);
}

.bee::after {
  content: "";
  position: absolute;
  left: 2px;
  top: -3px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
}

.horse {
  position: absolute;
  left: var(--x);
  top: var(--top);
  width: 48px;
  height: 28px;
  border-radius: 18px 20px 12px 12px;
  background: #92400e;
  animation: horse-bob 1.9s ease-in-out infinite alternate;
  animation-delay: var(--delay);
}

.horse::before {
  content: "";
  position: absolute;
  right: -8px;
  top: -5px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: inherit;
}

.horse::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: -13px;
  width: 29px;
  height: 16px;
  border-left: 4px solid currentColor;
  border-right: 4px solid currentColor;
  color: inherit;
}

.horse-1 { background: #7c2d12; }
.horse-2 { background: #3f2a1d; }
.horse-3 { background: #c2410c; }
.horse-4 { background: #fde68a; color: #d97706; }

.mascot-upgrades {
  margin-top: 12px;
}

.mascot-upgrade {
  display: grid;
  gap: 14px;
}

.mascot-upgrade-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(251, 191, 36, 0.14);
  font-size: 23px;
}

.mascot-level-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mascot-dots {
  display: flex;
  gap: 6px;
}

.mascot-dots span {
  width: 22px;
  height: 10px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.16);
}

.mascot-dots span.filled {
  background: var(--gold);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.24);
}

.mascot-purchase-toast {
  margin-bottom: 12px;
}

@keyframes mascot-pulse {
  from { transform: scale(0.96); opacity: 0.9; }
  to { transform: scale(1.06); opacity: 1; }
}

@keyframes mascot-bob {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -7px, 0); }
}

@keyframes bee-drift {
  from { transform: translate3d(-10px, 3px, 0); }
  to { transform: translate3d(18px, -18px, 0); }
}

@keyframes horse-bob {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(4px, -5px, 0); }
}

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

  .mascot-balance {
    text-align: left;
  }
}

.yaylau-web-hub {
  position: relative;
  min-height: calc(100svh - 108px - env(safe-area-inset-bottom));
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.12);
  border-radius: 28px;
  background: #07111f;
  box-shadow: var(--shadow);
  contain: layout paint;
}

.yaylau-web-hub .mascot-scene {
  height: clamp(560px, calc(100svh - 96px - env(safe-area-inset-bottom)), 760px);
  min-height: 560px;
  border-radius: 0;
  isolation: isolate;
  background: #10251e;
}

.yaylau-bg,
.yaylau-layer,
.yaylau-bear {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

.yaylau-bg,
.yaylau-layer {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yaylau-bg {
  z-index: 0;
}

.yaylau-layer {
  z-index: 2;
}

.yaylau-yurt-layer,
.yaylau-apiary-layer,
.yaylau-horses-layer {
  will-change: transform;
  transform: translateZ(0);
}

.yaylau-yurt-layer {
  transform-origin: 24% 80%;
  animation: yaylau-yurt-breathe 5.8s ease-in-out infinite alternate;
}

.yaylau-apiary-layer {
  transform-origin: 80% 78%;
  animation: yaylau-apiary-breathe 3.8s ease-in-out infinite alternate;
}

.yaylau-horses-layer {
  transform-origin: 62% 50%;
  animation: yaylau-horse-drift 4.6s ease-in-out infinite alternate;
}

.mascot-scene.celebrate-yurt .yaylau-yurt-layer,
.mascot-scene.celebrate-apiary .yaylau-apiary-layer,
.mascot-scene.celebrate-horses .yaylau-horses-layer {
  animation: yaylau-zone-pop 920ms cubic-bezier(0.18, 1.2, 0.24, 1) both;
}

.mascot-scene.celebrate-character .yaylau-bear {
  animation: yaylau-bear-pop 920ms cubic-bezier(0.18, 1.2, 0.24, 1) both;
}

.yaylau-bear {
  z-index: 4;
  left: 51%;
  bottom: clamp(154px, 24%, 210px);
  width: clamp(142px, 24%, 250px);
  height: auto;
  animation: yaylau-bear-breathe 4.8s ease-in-out infinite alternate;
}

.yaylau-fire-glow,
.yaylau-yurt-glow {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  pointer-events: none;
}

.yaylau-fire-glow {
  left: 6%;
  bottom: 14%;
  width: 20%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 214, 102, 0.28), rgba(255, 122, 26, 0.12) 40%, transparent 70%);
  animation: yaylau-fire-pulse 2.4s ease-in-out infinite alternate;
}

.yaylau-yurt-glow {
  left: 14%;
  top: 34%;
  width: 26%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 210, 102, 0.12), transparent 68%);
}

.yaylau-bees {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
}

.yaylau-bees span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 10px;
  height: 7px;
  border-radius: 999px;
  background: #ffd24a;
  animation: yaylau-bee-float 2.8s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -180ms);
}

.time-morning .mascot-scene {
  background: linear-gradient(180deg, #75b8d9 0%, #f4c46e 45%, #2b966f 46%, #15513c 100%);
}

.time-day .mascot-scene {
  background: linear-gradient(180deg, #58b6e7 0%, #91d9f2 44%, #34a169 45%, #176044 100%);
}

.time-evening .mascot-scene {
  background: linear-gradient(180deg, #523276 0%, #d97762 44%, #226855 45%, #153b31 100%);
}

.time-night .mascot-scene {
  background: linear-gradient(180deg, #08122d 0%, #17254a 44%, #173b33 45%, #0f2d27 100%);
}

.yaylau-web-hud {
  position: absolute;
  z-index: 8;
  left: 12px;
  right: 12px;
  top: 12px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background: rgba(7, 17, 31, 0.66);
}

.yaylau-web-hud h1,
.yaylau-web-hud p {
  margin: 0;
}

.yaylau-web-hud h1 {
  font-size: 22px;
  letter-spacing: 0;
}

.yaylau-web-hud p,
.yaylau-balance span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.yaylau-back {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-decoration: none;
  font-size: 30px;
  font-weight: 800;
}

.yaylau-balance {
  min-width: 108px;
  text-align: right;
}

.yaylau-balance .coin-amount {
  justify-content: flex-end;
  font-size: 18px;
  font-weight: 950;
}

.yaylau-quick-actions {
  position: absolute;
  z-index: 8;
  left: 14px;
  right: 14px;
  top: 86px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.yaylau-quick-actions a {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.55);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.yaylau-quick-actions .yaylau-learn {
  border-color: rgba(251, 191, 36, 0.45);
  background: linear-gradient(135deg, #f59e0b, #facc15);
  color: #231306;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.24);
}

.yaylau-unlock-toast {
  position: absolute;
  z-index: 9;
  left: 50%;
  top: 92px;
  width: min(360px, calc(100% - 36px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(251, 191, 36, 0.36);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: var(--shadow);
  animation: reward-float 1200ms ease-out forwards;
}

.mascot-scene .mascot-sky {
  position: absolute;
  inset: 0 0 46%;
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.22), transparent 9%),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.16), transparent 14%);
}

.time-night .mascot-scene .mascot-sky {
  background:
    radial-gradient(circle at 78% 15%, rgba(236, 244, 255, 0.88), transparent 4%),
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.48), transparent 1px),
    radial-gradient(circle at 36% 10%, rgba(255, 255, 255, 0.44), transparent 1px),
    radial-gradient(circle at 58% 22%, rgba(255, 255, 255, 0.38), transparent 1px);
}

.mascot-cloud {
  position: absolute;
  z-index: 1;
  width: 116px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  animation: cloud-drift 9s ease-in-out infinite alternate;
}

.time-night .mascot-cloud {
  opacity: 0.28;
}

.cloud-one {
  left: 10%;
  top: 15%;
}

.cloud-two {
  right: 18%;
  top: 24%;
  width: 86px;
  animation-delay: -3s;
}

.mascot-zone {
  position: absolute;
  z-index: 5;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.zone-yurt {
  left: 4%;
  top: 42%;
  width: 40%;
  height: 34%;
}

.zone-apiary {
  right: 2%;
  top: 52%;
  width: 34%;
  height: 26%;
}

.zone-horses {
  right: 8%;
  top: 28%;
  width: 42%;
  height: 22%;
}

.zone-character {
  left: 34%;
  top: 56%;
  width: 34%;
  height: 30%;
}

.mascot-scene::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(251, 191, 36, 0.18), rgba(251, 191, 36, 0.08) 42%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.mascot-scene.selected-yurt::after {
  left: 28%;
  top: 60%;
  background:
    radial-gradient(circle, rgba(34, 197, 94, 0.18), rgba(34, 197, 94, 0.08) 42%, transparent 70%);
}

.mascot-scene.selected-apiary::after {
  left: 82%;
  top: 68%;
}

.mascot-scene.selected-horses::after {
  left: 72%;
  top: 38%;
  background:
    radial-gradient(circle, rgba(217, 119, 6, 0.18), rgba(217, 119, 6, 0.08) 42%, transparent 70%);
}

.mascot-scene.selected-character::after {
  left: 48%;
  top: 72%;
}

.yaylau-web-hub .mascot-sun {
  z-index: 1;
}

.time-evening .mascot-sun {
  top: 22%;
  background: #f59e0b;
  box-shadow: 0 0 0 18px rgba(251, 146, 60, 0.12);
}

.time-night .mascot-sun {
  background: #e5eefc;
  box-shadow: 0 0 0 18px rgba(229, 238, 252, 0.12);
}

.yaylau-web-hub .mascot-mountains {
  z-index: 1;
  height: 48%;
  bottom: 43%;
  background:
    linear-gradient(132deg, transparent 0 19%, rgba(62, 102, 126, 0.92) 19% 38%, transparent 38%),
    linear-gradient(224deg, transparent 0 24%, rgba(35, 76, 99, 0.9) 24% 45%, transparent 45%),
    linear-gradient(160deg, transparent 0 48%, rgba(42, 125, 100, 0.86) 48% 72%, transparent 72%);
}

.yaylau-web-hub .mascot-meadow {
  z-index: 1;
  height: 56%;
  background:
    radial-gradient(circle at 18% 64%, rgba(251, 191, 36, 0.13), transparent 18%),
    radial-gradient(circle at 76% 74%, rgba(16, 185, 129, 0.2), transparent 24%),
    linear-gradient(180deg, rgba(70, 176, 99, 0.9), rgba(19, 77, 55, 0.98));
}

.yaylau-web-hub .mascot-yurt {
  z-index: 3;
  left: 25%;
  top: 48%;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.22));
}

.time-evening .yurt-door,
.time-night .yurt-door {
  box-shadow: 0 0 28px rgba(251, 191, 36, 0.36);
}

.yaylau-web-hub .mascot-character {
  z-index: 4;
  left: 46%;
  top: 61%;
  width: 88px;
  height: 132px;
}

.character-face {
  position: absolute;
  left: 29px;
  top: 26px;
  width: 30px;
  height: 14px;
  border-radius: 0 0 999px 999px;
  border-bottom: 2px solid #7c2d12;
}

.yaylau-web-hub .character-head {
  left: 29px;
  width: 31px;
  height: 31px;
}

.yaylau-web-hub .character-body {
  left: 22px;
  width: 48px;
  height: 64px;
}

.yaylau-web-hub .character-hat {
  left: 20px;
  width: 50px;
}

.yaylau-web-hub .character-kurai {
  left: 70px;
}

.yaylau-web-hub .mascot-apiary {
  position: absolute;
  z-index: 3;
  inset: 0;
}

.yaylau-web-hub .hive {
  width: 38px;
  height: 31px;
}

.yaylau-web-hub .bee {
  z-index: 4;
}

.yaylau-web-hub .mascot-horses {
  position: absolute;
  z-index: 2;
  inset: 0;
}

.yaylau-web-hub .horse {
  top: var(--top);
  opacity: var(--horse-opacity);
  transform: scale(0.82);
}

.yaylau-web-hub .scene-level-badge {
  z-index: 6;
  top: 132px;
  left: 14px;
}

.yaylau-upgrade-dock {
  position: absolute;
  z-index: 8;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  background: rgba(7, 17, 31, 0.72);
  box-shadow: var(--shadow);
}

.yaylau-zone-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 12px;
}

.yaylau-zone-tab {
  min-width: 0;
  min-height: 64px;
  display: grid;
  place-items: center;
  gap: 1px;
  padding: 7px 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.yaylau-zone-tab.active {
  border-color: rgba(251, 191, 36, 0.34);
  background: rgba(251, 191, 36, 0.16);
  color: var(--text);
}

.yaylau-zone-tab span {
  font-size: 20px;
  line-height: 1;
}

.yaylau-zone-tab strong,
.yaylau-zone-tab small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yaylau-zone-tab strong {
  font-size: 11px;
}

.yaylau-zone-tab small {
  color: var(--gold);
  font-weight: 900;
}

.yaylau-selected-upgrade {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.yaylau-selected-upgrade h3,
.yaylau-selected-upgrade p {
  margin: 0;
}

.yaylau-selected-upgrade p {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.28;
}

.yaylau-selected-upgrade .primary {
  min-width: 132px;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .page.frameless {
    padding: 10px 8px calc(18px + env(safe-area-inset-bottom));
  }

  .yaylau-web-hub {
    min-height: calc(100svh - 168px);
    border-radius: 22px;
  }

  .yaylau-web-hub .mascot-scene {
    height: calc(100svh - 104px - env(safe-area-inset-bottom));
    min-height: 560px;
  }

  .yaylau-web-hud {
    grid-template-columns: 38px 1fr auto;
    top: 8px;
    left: 8px;
    right: 8px;
    padding: 8px;
    border-radius: 18px;
  }

  .yaylau-back {
    width: 36px;
    height: 36px;
  }

  .yaylau-balance {
    min-width: 86px;
  }

  .yaylau-web-hud h1 {
    font-size: 18px;
  }

  .yaylau-quick-actions {
    top: 70px;
    left: 10px;
    right: 10px;
    gap: 6px;
  }

  .yaylau-quick-actions a {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .yaylau-bear {
    left: 53%;
    bottom: 230px;
    width: clamp(136px, 40%, 190px);
  }

  .yaylau-web-hub .scene-level-badge {
    top: 112px;
  }

  .yaylau-selected-upgrade {
    grid-template-columns: 1fr;
  }

  .yaylau-selected-upgrade .primary {
    width: 100%;
  }
}

@keyframes cloud-drift {
  from { transform: translate3d(-10px, 0, 0); }
  to { transform: translate3d(16px, 4px, 0); }
}

@keyframes yaylau-bear-breathe {
  from { transform: translate3d(-50%, 0, 0) scale(1); }
  to { transform: translate3d(-50%, -5px, 0) scale(1.015); }
}

@keyframes yaylau-fire-pulse {
  from { opacity: 0.72; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1.06); }
}

@keyframes yaylau-bee-float {
  from { transform: translate3d(-7px, -2px, 0); }
  to { transform: translate3d(9px, 5px, 0); }
}

@keyframes yaylau-yurt-breathe {
  from { transform: translate3d(0, 0, 0) scale(0.998); }
  to { transform: translate3d(0, -1px, 0) scale(1.003); }
}

@keyframes yaylau-apiary-breathe {
  from { transform: translate3d(0, 1px, 0) scale(0.998); }
  to { transform: translate3d(0, -3px, 0) scale(1.004); }
}

@keyframes yaylau-horse-drift {
  from { transform: translate3d(-3px, 1px, 0) scale(0.999); }
  to { transform: translate3d(5px, -2px, 0) scale(1.003); }
}

@keyframes yaylau-zone-pop {
  0% { transform: translate3d(0, 8px, 0) scale(0.96); }
  36% { transform: translate3d(0, -5px, 0) scale(1.075); }
  68% { transform: translate3d(0, 1px, 0) scale(0.995); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes yaylau-bear-pop {
  0% { transform: translate3d(-50%, 8px, 0) scale(0.96); }
  36% { transform: translate3d(-50%, -5px, 0) scale(1.075); }
  68% { transform: translate3d(-50%, 1px, 0) scale(0.995); }
  100% { transform: translate3d(-50%, 0, 0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .yaylau-web-hub *,
  .yaylau-web-hub *::before,
  .yaylau-web-hub *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .mascot-sun,
  .mascot-character,
  .bee,
  .horse,
  .mascot-cloud,
  .yaylau-yurt-layer,
  .yaylau-apiary-layer,
  .yaylau-horses-layer,
  .yaylau-bear,
  .yaylau-fire-glow,
  .yaylau-bees span {
    transform: none !important;
  }
}

.learning-v2-gallery-stage {
  --learning-green: #35d399;
  --learning-blue: #4fc3f7;
  min-height: 100svh;
  color: #f8fafc;
  background:
    radial-gradient(circle at 72% -10%, rgba(79, 195, 247, .12), transparent 31%),
    radial-gradient(circle at 15% 20%, rgba(53, 211, 153, .07), transparent 26%),
    #0d1625;
}

.learning-v2-gallery-header {
  min-height: 104px;
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: calc(14px + env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) 14px max(22px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(226, 232, 240, .11);
  background: rgba(13, 22, 37, .94);
  backdrop-filter: blur(18px);
}

.learning-v2-gallery-header .learning-v2-exit {
  grid-area: auto;
}

.learning-v2-gallery-header h1 {
  margin: 2px 0 3px;
  font-size: clamp(22px, 3vw, 31px);
  letter-spacing: -.03em;
}

.learning-v2-gallery-header p {
  max-width: 760px;
  margin: 0;
  color: #8d9aad;
  font-size: 12px;
  line-height: 1.45;
}

.learning-v2-gallery-counter {
  min-width: 64px;
  padding: 9px 12px;
  border: 1px solid rgba(79, 195, 247, .23);
  border-radius: 13px;
  background: rgba(79, 195, 247, .08);
  color: #a8e5ff;
  font-size: 13px;
  font-weight: 950;
  text-align: center;
}

.learning-v2-gallery-layout {
  width: min(1440px, 100%);
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 42px);
  margin: 0 auto;
  padding: 26px clamp(18px, 4vw, 56px) 48px;
}

.learning-v2-gallery-nav {
  align-self: start;
  max-height: calc(100svh - 156px);
  position: sticky;
  top: 128px;
  display: grid;
  gap: 7px;
  overflow-y: auto;
  padding: 4px 7px 4px 4px;
  scrollbar-color: #33465f transparent;
}

.learning-v2-gallery-nav button {
  min-height: 54px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 11px 8px 8px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: #8390a3;
  text-align: left;
  cursor: pointer;
}

.learning-v2-gallery-nav button:hover {
  background: rgba(255, 255, 255, .04);
  color: #dce6f2;
}

.learning-v2-gallery-nav button.is-active {
  border-color: rgba(53, 211, 153, .29);
  background: rgba(53, 211, 153, .1);
  color: #eafff7;
}

.learning-v2-gallery-nav strong {
  min-height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #1b293d;
  color: #a9b6c7;
  font-size: 12px;
}

.learning-v2-gallery-nav button.is-active strong {
  background: #35d399;
  color: #073b2d;
}

.learning-v2-gallery-nav span {
  overflow: hidden;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.learning-v2-gallery-preview {
  min-width: 0;
}

.learning-v2-gallery-toolbar {
  width: min(780px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto 13px;
}

.learning-v2-gallery-toolbar > div:first-child {
  display: grid;
  gap: 3px;
}

.learning-v2-gallery-toolbar small {
  color: #708096;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
}

.learning-v2-gallery-toolbar strong {
  color: #c7d3e1;
  font-size: 12px;
  text-transform: uppercase;
}

.learning-v2-gallery-arrows {
  display: flex;
  gap: 8px;
}

.learning-v2-gallery-arrows button,
.learning-v2-gallery-actions button {
  min-width: 42px;
  min-height: 40px;
  border: 1px solid #3a4b62;
  border-bottom-width: 3px;
  border-radius: 12px;
  background: #1a293d;
  color: #e6eef8;
  font-weight: 900;
  cursor: pointer;
}

.learning-v2-gallery-arrows button:disabled {
  opacity: .35;
  cursor: default;
}

.learning-v2-gallery-device {
  width: min(780px, 100%);
  min-height: 640px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid rgba(226, 232, 240, .13);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(26, 40, 60, .92), rgba(14, 25, 41, .96));
  box-shadow: 0 28px 70px rgba(0, 0, 0, .28);
}

.learning-v2-gallery-device .learning-v2-exercise {
  width: 100%;
}

.learning-v2-gallery-device .learning-v2-exercise.is-mission {
  padding: 22px;
  border: 1px solid rgba(245, 191, 69, .25);
  border-radius: 24px;
  background: rgba(245, 191, 69, .055);
}

.learning-v2-gallery-safety {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 9px 11px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 13px;
  background: rgba(148, 163, 184, .055);
  color: #8e9cb0;
  font-size: 11px;
}

.learning-v2-gallery-safety strong {
  padding: 4px 7px;
  border-radius: 7px;
  background: rgba(53, 211, 153, .12);
  color: #75e1be;
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.learning-v2-match-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.learning-v2-match-column {
  display: grid;
  align-content: start;
  gap: 9px;
}

.learning-v2-match-column > small {
  padding: 0 4px;
  color: #728197;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.learning-v2-match-tile {
  min-height: 59px;
  padding: 11px 13px;
  border: 1px solid #3a4b62;
  border-bottom-width: 4px;
  border-radius: 16px;
  background: #19283c;
  color: #eff5fc;
  font-weight: 800;
  cursor: pointer;
}

.learning-v2-match-tile.is-active {
  border-color: #4fc3f7;
  background: rgba(79, 195, 247, .13);
  color: #ccefff;
}

.learning-v2-match-tile.is-linked {
  border-color: #249675;
  background: rgba(53, 211, 153, .13);
  color: #b9f3df;
  opacity: 1;
}

.learning-v2-match-status {
  margin: 12px 3px 0;
  color: #7d8ba0;
  font-size: 11px;
  line-height: 1.4;
}

.learning-v2-gallery-speech-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px dashed rgba(79, 195, 247, .31);
  border-radius: 17px;
  background: rgba(79, 195, 247, .07);
  color: #c7edfe;
}

.learning-v2-gallery-speech-shell > span:nth-child(2) {
  min-width: 0;
  display: grid;
  flex: 1;
  gap: 2px;
}

.learning-v2-gallery-speech-shell small {
  color: #789fb2;
  font-size: 11px;
  line-height: 1.4;
}

.learning-v2-gallery-offline {
  padding: 6px 8px;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 9px;
  color: #8c9aae;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .07em;
  white-space: nowrap;
}

.learning-v2-gallery-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(226, 232, 240, .1);
}

.learning-v2-gallery-actions span {
  color: #75849a;
  font-size: 11px;
  line-height: 1.4;
}

.learning-v2-gallery-actions button {
  flex: 0 0 auto;
  padding: 8px 13px;
  font-size: 11px;
}

.learning-v2-gallery-stage button:focus-visible,
.learning-v2-gallery-stage a:focus-visible {
  outline: 3px solid rgba(79, 195, 247, .52);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .learning-v2-gallery-header {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .learning-v2-gallery-header p {
    display: none;
  }

  .learning-v2-gallery-layout {
    grid-template-columns: 1fr;
    padding: 17px 14px 36px;
  }

  .learning-v2-gallery-nav {
    max-height: none;
    position: static;
    display: flex;
    overflow-x: auto;
    padding: 3px 2px 8px;
    scroll-snap-type: x proximity;
  }

  .learning-v2-gallery-nav button {
    min-width: 118px;
    grid-template-columns: 40px minmax(0, 1fr);
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .learning-v2-gallery-device {
    min-height: 590px;
  }
}

@media (max-width: 520px) {
  .learning-v2-gallery-header {
    min-height: 84px;
    gap: 9px;
    padding-right: 13px;
    padding-left: 13px;
  }

  .learning-v2-gallery-header h1 {
    font-size: 20px;
  }

  .learning-v2-gallery-header .learning-v2-eyebrow {
    font-size: 9px;
  }

  .learning-v2-gallery-counter {
    min-width: 52px;
    padding: 7px 8px;
  }

  .learning-v2-gallery-device {
    min-height: 520px;
    padding: 21px 16px;
    border-radius: 23px;
  }

  .learning-v2-gallery-device .learning-v2-exercise.is-mission {
    padding: 15px;
  }

  .learning-v2-match-board {
    gap: 8px;
  }

  .learning-v2-match-tile {
    min-height: 55px;
    padding: 9px;
    font-size: 12px;
  }

  .learning-v2-gallery-speech-shell {
    align-items: flex-start;
  }

  .learning-v2-gallery-offline {
    display: none;
  }

  .learning-v2-gallery-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

.pet-web-hub {
  position: relative;
  min-height: calc(100svh - 76px);
  overflow: hidden;
  color: #fffaf0;
  background: #21160e;
  isolation: isolate;
}

.pet-room-bg,
.pet-room-vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pet-room-bg {
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.pet-room-vignette {
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(34, 20, 9, .14), transparent 36%, rgba(25, 13, 6, .54)),
    radial-gradient(circle at 50% 42%, transparent 0 34%, rgba(16, 8, 4, .24) 76%);
}

.pet-hud {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 38px;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 22px;
  background: rgba(42, 27, 18, .84);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
}

.pet-round-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, .13);
  font-size: 24px;
  font-weight: 900;
}

.pet-title {
  min-width: 0;
}

.pet-title h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.05;
}

.pet-title p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pet-balance {
  display: grid;
  place-items: center;
  min-width: 68px;
  font-weight: 900;
}

.pet-meter {
  min-width: 0;
  grid-row: 2;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 14px;
  background: rgba(255, 255, 255, .10);
}

.pet-meter span,
.pet-meter strong {
  display: inline-block;
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 900;
}

.pet-meter strong {
  float: right;
  color: #ffbe55;
}

.pet-meter.heart strong {
  color: #ff7c9a;
}

.pet-meter.growth strong {
  color: #47e0bd;
}

.pet-meter i {
  display: block;
  clear: both;
  height: 6px;
  margin-top: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffbe55 var(--value), rgba(0, 0, 0, .26) var(--value));
}

.pet-meter.heart i {
  background: linear-gradient(90deg, #ff7c9a var(--value), rgba(0, 0, 0, .26) var(--value));
}

.pet-meter.growth i {
  background: linear-gradient(90deg, #47e0bd var(--value), rgba(0, 0, 0, .26) var(--value));
}

.pet-stage {
  position: absolute;
  inset: 118px 0 250px;
  display: grid;
  place-items: end center;
  pointer-events: none;
}

.pet-character-button {
  position: relative;
  display: block;
  width: min(78vw, 430px);
  height: min(52svh, 500px);
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
}

.pet-character-shell {
  --pet-growth-scale: .78;
  --hat-x: 30%;
  --hat-y: 30%;
  --hat-width: 37%;
  --hat-rotation: -3deg;
  position: absolute;
  inset: 0;
  display: block;
  transform: scale(var(--pet-growth-scale));
  transform-origin: 50% 100%;
  transition: transform .85s cubic-bezier(.2, .8, .2, 1);
  filter: drop-shadow(0 22px 18px rgba(0, 0, 0, .28));
}

.pet-rive-crop {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.pet-rive-crop::after {
  content: '';
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  bottom: 0;
  width: 7.5%;
  background: #fff7ef;
  pointer-events: none;
}

.pet-rive-canvas {
  display: block;
  width: 100%;
  height: 100%;
  transform: translateX(-28%) scale(1.46);
  transform-origin: 0 50%;
  touch-action: pan-y;
}

.pet-accessory {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  user-select: none;
  transition:
    left .32s ease-out,
    top .32s ease-out,
    width .32s ease-out,
    transform .32s ease-out;
}

.pet-tubeteika {
  left: var(--hat-x);
  top: var(--hat-y);
  width: var(--hat-width);
  transform: rotate(var(--hat-rotation));
  transform-origin: 50% 80%;
  filter: drop-shadow(0 5px 4px rgba(0, 0, 0, .22));
  opacity: 0;
}

.pet-character-shell.is-loaded .pet-tubeteika {
  opacity: 1;
}

.pet-character-shell[data-pose="focus"] {
  --hat-x: 30%;
  --hat-y: 31%;
  --hat-width: 37%;
  --hat-rotation: 1deg;
}

.pet-character-shell[data-pose="break"] {
  --hat-x: 30%;
  --hat-y: 32%;
  --hat-width: 37%;
  --hat-rotation: 5deg;
}

.pet-character-shell[data-pose="sleep"] {
  --hat-x: 29%;
  --hat-y: 34%;
  --hat-width: 38%;
  --hat-rotation: -12deg;
}

.pet-character-shell[data-pose="eating"] {
  --hat-x: 30%;
  --hat-y: 32%;
  --hat-width: 37%;
  --hat-rotation: 2deg;
}

.pet-level-flash,
.pet-level-particles {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
}

.pet-level-flash {
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 246, 177, .82), transparent 64%);
}

.pet-level-particles i {
  --angle: calc(var(--i) * 30deg);
  position: absolute;
  left: 50%;
  top: 47%;
  width: 7px;
  height: 16px;
  border-radius: 5px;
  background: #ffd76a;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-36px);
}

.pet-character-shell.is-leveling-up {
  animation: pet-character-level-up 1.1s cubic-bezier(.2, .8, .2, 1);
}

.pet-character-shell.is-leveling-up .pet-level-flash {
  animation: pet-level-flash 1.05s ease-out;
}

.pet-character-shell.is-leveling-up .pet-level-particles {
  opacity: 1;
}

.pet-character-shell.is-leveling-up .pet-level-particles i {
  animation: pet-level-particle 1.05s ease-out both;
}

.pet-character-failed::after {
  content: 'Персонаж временно недоступен';
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(42, 27, 18, .8);
  font-size: 12px;
  white-space: nowrap;
}

.pet-offline-banner {
  position: absolute;
  z-index: 8;
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  top: calc(112px + env(safe-area-inset-top));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(255, 194, 94, .55);
  border-radius: 8px;
  color: #fff7e5;
  background: rgba(82, 44, 26, .94);
}

.pet-offline-banner strong,
.pet-offline-banner span {
  min-width: 0;
}

.pet-offline-banner span {
  color: rgba(255, 247, 229, .76);
  font-size: 12px;
}

.pet-offline-banner button {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 38px;
  border: 0;
  color: #16332f;
  background: #f8c257;
}

.yayleu-embed-host {
  position: relative;
  min-height: 100svh;
  background: #f4f1e9;
}

.yayleu-embed-frame {
  display: block;
  width: 100%;
  height: 100svh;
  min-height: 620px;
  border: 0;
  background: #f4f1e9;
}

.yayleu-embed-back,
.yayleu-embed-refresh {
  position: absolute;
  z-index: 3;
  top: max(12px, env(safe-area-inset-top));
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(22, 52, 47, .16);
  border-radius: 50%;
  color: #16342f;
  background: rgba(255, 253, 248, .93);
  box-shadow: 0 5px 14px rgba(22, 52, 47, .12);
  font-size: 32px;
  line-height: 1;
}

.yayleu-embed-back {
  left: max(12px, env(safe-area-inset-left));
  text-decoration: none;
}

.yayleu-embed-refresh {
  right: max(12px, env(safe-area-inset-right));
  padding: 0;
  font-size: 24px;
}

.yayleu-embed-notice {
  position: absolute;
  z-index: 4;
  left: 14px;
  right: 14px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(138, 91, 33, .25);
  border-radius: 8px;
  color: #583818;
  background: rgba(253, 242, 221, .97);
}

.yayleu-embed-notice span { font-size: 12px; }

.yayleu-embed-notice button {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 36px;
  border: 0;
  color: #fffdf8;
  background: #176b59;
}

@media (max-width: 779px) {
  .page.frameless {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .yayleu-embed-host {
    position: fixed;
    z-index: 18;
    inset: 0 0 calc(72px + env(safe-area-inset-bottom));
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .yayleu-embed-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .bottom-nav {
    z-index: 50;
  }
}

.pet-bear-button {
  pointer-events: auto;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transform-origin: center bottom;
  animation: pet-breathe 3.2s ease-in-out infinite alternate;
}

.pet-bear-button:disabled {
  cursor: default;
}

.pet-bear {
  display: block;
  width: min(66vw, 430px);
  max-height: min(54svh, 500px);
  object-fit: contain;
  filter: drop-shadow(0 22px 18px rgba(0, 0, 0, .30));
}

.mood-sad .pet-bear,
.mood-hungry .pet-bear {
  filter: saturate(.78) drop-shadow(0 22px 18px rgba(0, 0, 0, .32));
}

.pet-mood-bubble {
  align-self: start;
  margin-top: 8px;
  max-width: min(82vw, 380px);
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(42, 27, 18, .82);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .18);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.pet-reaction {
  position: absolute;
  left: 50%;
  bottom: 28%;
  width: 112px;
  height: 112px;
  transform: translateX(-50%);
  animation: pet-feed-pop .9s ease-out forwards;
}

.pet-reaction > img:first-child {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: contain;
}

.pet-reaction .pet-sparkles {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 190px;
  transform: translate(-50%, -50%);
  opacity: .92;
}

.pet-heart {
  display: grid;
  place-items: center;
  color: #ff7c9a;
  font-size: 86px;
  font-weight: 900;
  text-shadow: 0 8px 20px rgba(0, 0, 0, .22);
}

.pet-dock {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 24px;
  background: rgba(42, 27, 18, .88);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .26);
}

.pet-shortcuts,
.pet-care-row {
  display: grid;
  grid-template-columns: 1.4fr .8fr .8fr;
  gap: 8px;
}

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

.pet-care-row.has-cta {
  grid-template-columns: 1fr 1fr;
}

.pet-shortcuts a,
.pet-care-row a,
.pet-care-row button {
  min-height: 42px;
  padding: 0 10px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.pet-food-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pet-food {
  min-width: 0;
  min-height: 112px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 3px;
  justify-items: center;
  padding: 7px 5px;
  border: 0;
  border-radius: 18px;
  color: #fffaf0;
  background: rgba(255, 255, 255, .13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10);
}

.pet-food.disabled {
  opacity: .52;
}

.pet-food img {
  width: 100%;
  min-width: 0;
  height: 58px;
  object-fit: contain;
}

.pet-food strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.pet-food span {
  font-size: 11px;
  font-weight: 900;
}

@media (min-width: 780px) {
  .pet-web-hub {
    min-height: 100svh;
  }

  .pet-hud {
    left: 24px;
    right: 24px;
    grid-template-columns: 42px minmax(0, 1fr) auto 42px repeat(3, minmax(120px, 160px));
  }

  .pet-meter {
    grid-row: 1;
  }

  .pet-stage {
    inset: 92px 360px 24px 24px;
  }

  .pet-bear {
    width: min(42vw, 520px);
    max-height: min(74svh, 620px);
  }

  .pet-character-button {
    width: min(42vw, 520px);
    height: min(74svh, 620px);
  }

  .pet-dock {
    left: auto;
    top: 112px;
    right: 24px;
    bottom: 24px;
    width: 320px;
    align-content: start;
  }

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

/* Scalable topographic learning path */
.level-map-shell {
  --map-teal: #14b8a6;
  --map-teal-deep: #0f766e;
  width: min(720px, 100%);
  margin: 0 auto;
}

.level-map-summary {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px 17px 17px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  background: rgba(20, 28, 42, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.level-map-summary-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(20, 184, 166, 0.15);
  color: #5eead4;
  font-size: 20px;
  font-weight: 900;
}

.level-map-summary-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.level-map-summary-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.level-map-summary-copy span,
.level-map-balance small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.level-map-balance {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.level-map-balance small {
  font-size: 9px;
  letter-spacing: 0.08em;
}

.level-map-progress {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #0c1624;
}

.level-map-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--map-teal-deep), var(--map-teal), #f4b740);
  box-shadow: 0 0 12px rgba(20, 184, 166, 0.34);
}

.level-map {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 620px;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 34px;
  background-color: #08111f;
  background-image:
    radial-gradient(circle at 74% 8%, rgba(20, 184, 166, 0.06), transparent 24%),
    radial-gradient(circle at 18% 46%, rgba(244, 183, 64, 0.045), transparent 22%),
    repeating-radial-gradient(ellipse at 55% 0%, transparent 0 42px, rgba(74, 97, 128, 0.14) 43px 44px, transparent 45px 83px),
    linear-gradient(180deg, #091321, #07101c 56%, #08121f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 20px 54px rgba(0, 0, 0, 0.24);
  contain: layout paint;
}

.level-map::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.48;
  background:
    repeating-linear-gradient(2deg, transparent 0 77px, rgba(79, 105, 137, 0.14) 78px 79px, transparent 80px 154px),
    radial-gradient(ellipse at 90% 38%, transparent 0 62px, rgba(79, 105, 137, 0.14) 63px 64px, transparent 65px 124px);
}

.level-map-river {
  position: absolute;
  z-index: 0;
  left: 3.5%;
  top: -40px;
  bottom: -40px;
  width: 22px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(20, 63, 84, 0.26), rgba(32, 103, 126, 0.52), rgba(68, 151, 163, 0.2));
  box-shadow: inset -2px 0 rgba(112, 214, 220, 0.16), 0 0 28px rgba(31, 111, 135, 0.12);
  transform: rotate(-1.2deg) translateZ(0);
}

.level-map-routes {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.level-map-route-shadow,
.level-map-route-base,
.level-map-route-active {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.level-map-route-shadow {
  stroke: rgba(0, 0, 0, 0.42);
  stroke-width: 17;
}

.level-map-route-base {
  stroke: #26354a;
  stroke-width: 11;
}

.level-map-route-active {
  stroke: #17aa98;
  stroke-width: 5;
  filter: drop-shadow(0 0 5px rgba(20, 184, 166, 0.28));
}

.level-map-node {
  position: absolute;
  z-index: 3;
  left: clamp(82px, var(--node-x), calc(100% - 82px));
  top: var(--node-y);
  width: 164px;
  min-height: 124px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transform-origin: center;
  transition: transform 130ms ease, filter 180ms ease;
}

.level-map-node:active {
  transform: translate(-50%, -50%) scale(0.96);
}

.level-map-node:focus-visible {
  outline: 3px solid rgba(94, 234, 212, 0.72);
  outline-offset: 5px;
  border-radius: 22px;
}

.level-map-disc {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 3px solid #f4b740;
  border-radius: 50%;
  background: linear-gradient(145deg, #26cbb2, #0f766e);
  box-shadow: 0 9px 18px rgba(0, 0, 0, 0.38), inset 0 2px rgba(255, 255, 255, 0.24), 0 0 18px rgba(20, 184, 166, 0.2);
  color: white;
  font-size: 30px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
}

.level-map-node.is-current .level-map-disc {
  width: 80px;
  height: 80px;
  border-color: #b8fff1;
  background: linear-gradient(145deg, #38d8be, #0c8177);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), inset 0 2px rgba(255, 255, 255, 0.28), 0 0 26px rgba(20, 184, 166, 0.38);
}

.level-map-node.is-current::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 92px;
  height: 92px;
  border: 2px solid rgba(244, 183, 64, 0.72);
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.16);
  transform: translateX(-50%);
  animation: level-map-pulse 1.55s ease-in-out infinite alternate;
}

.level-map-node.is-locked .level-map-disc {
  border-color: #34445c;
  background: linear-gradient(145deg, #253247, #121c2c);
  box-shadow: 0 9px 18px rgba(0, 0, 0, 0.44), inset 0 2px rgba(255, 255, 255, 0.07);
  color: #9aa7b8;
  font-size: 25px;
  filter: saturate(0.58);
}

.level-map-current-flag {
  position: absolute;
  z-index: 5;
  top: -10px;
  left: 50%;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f4b740;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.34);
  color: #173c34;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.08em;
  transform: translateX(-50%);
}

.level-map-node-copy {
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 47px;
  display: grid;
  align-content: center;
  gap: 2px;
  margin-top: 5px;
  padding: 5px 8px 7px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: rgba(8, 17, 31, 0.88);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  text-align: center;
}

.level-map-node.is-current .level-map-node-copy {
  border-color: rgba(20, 184, 166, 0.58);
}

.level-map-node-copy small {
  color: #f4b740;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.level-map-node-copy strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 12px;
  line-height: 1.08;
}

.level-map-node.is-locked .level-map-node-copy small,
.level-map-node.is-locked .level-map-node-copy strong {
  color: #8290a5;
}

.level-map-landmark {
  position: absolute;
  z-index: 0;
  top: var(--landmark-y);
  right: 22px;
  width: 38px;
  height: 84px;
  opacity: 0.38;
}

.level-map-landmark.is-forest i {
  position: relative;
  display: block;
  width: 0;
  height: 0;
  margin: 2px 0 4px 10px;
  border-right: 8px solid transparent;
  border-bottom: 17px solid #0f766e;
  border-left: 8px solid transparent;
}

.level-map-landmark.is-forest i:nth-child(even) {
  margin-left: 23px;
  margin-top: -11px;
}

.level-map-landmark.is-ornament i {
  display: block;
  width: 11px;
  height: 11px;
  margin: 5px 0 0 14px;
  border: 1.5px solid #f4b740;
  transform: rotate(45deg);
}

.level-map-locate {
  position: fixed;
  right: 16px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  z-index: 19;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20, 184, 166, 0.48);
  border-radius: 15px;
  background: rgba(29, 42, 64, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
  color: #5eead4;
  font-size: 23px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 180ms ease;
}

.level-map-locate.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.level-map-empty {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 220px;
  text-align: center;
}

.level-map-empty > span {
  color: var(--muted);
  font-size: 42px;
}

.level-sheet-open {
  overflow: hidden;
}

.level-map-sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  align-items: end;
  padding: 12px;
  background: rgba(2, 7, 15, 0.76);
  backdrop-filter: blur(8px);
  animation: level-map-sheet-fade 180ms ease-out both;
}

.level-map-sheet-card {
  position: relative;
  width: min(540px, 100%);
  max-height: min(680px, calc(100svh - 24px));
  margin: 0 auto;
  overflow: auto;
  padding: 24px 22px calc(20px + env(safe-area-inset-bottom));
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 28px 28px 22px 22px;
  background: #1b293d;
  box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.48);
  animation: level-map-sheet-rise 230ms cubic-bezier(0.18, 0.9, 0.28, 1) both;
}

.level-map-sheet-card::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  transform: translateX(-50%);
}

.level-map-sheet-close {
  position: absolute;
  z-index: 2;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: rgba(8, 17, 31, 0.62);
  color: var(--muted);
  font-size: 25px;
  cursor: pointer;
}

.level-map-sheet-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding-right: 38px;
}

.level-map-sheet-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20, 184, 166, 0.38);
  border-radius: 16px;
  background: rgba(20, 184, 166, 0.14);
  color: #5eead4;
  font-size: 24px;
  font-weight: 900;
}

.level-map-sheet-card.is-completed .level-map-sheet-icon {
  border-color: rgba(244, 183, 64, 0.38);
  background: rgba(244, 183, 64, 0.13);
  color: #f4b740;
}

.level-map-sheet-card.is-locked .level-map-sheet-icon {
  border-color: var(--border);
  background: rgba(8, 17, 31, 0.52);
  color: var(--muted);
}

.level-map-sheet-heading small {
  color: #5eead4;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.06em;
}

.level-map-sheet-card.is-completed .level-map-sheet-heading small {
  color: #f4b740;
}

.level-map-sheet-card.is-locked .level-map-sheet-heading small {
  color: var(--muted);
}

.level-map-sheet-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(22px, 7vw, 29px);
  line-height: 1.08;
}

.level-map-sheet-card > p {
  margin: 18px 0 14px;
  color: rgba(248, 250, 252, 0.74);
  line-height: 1.45;
}

.level-map-task-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(8, 17, 31, 0.52);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.level-map-sheet-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  background: #14b8a6;
  color: #041713;
}

.level-map-locked-note {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(8, 17, 31, 0.58);
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}

@keyframes level-map-pulse {
  from { opacity: 0.38; transform: translateX(-50%) scale(0.94); }
  to { opacity: 0.78; transform: translateX(-50%) scale(1.12); }
}

@keyframes level-map-sheet-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes level-map-sheet-rise {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 520px) {
  .page:has(.level-map-shell) {
    padding-right: 10px;
    padding-left: 10px;
  }

  .level-map-summary {
    gap: 9px;
    padding-right: 13px;
    padding-left: 13px;
  }

  .level-map-summary-icon {
    width: 36px;
    height: 36px;
  }

  .level-map-summary-copy strong { font-size: 15px; }
  .level-map-summary-copy span { font-size: 10px; }
  .level-map-balance small { display: none; }
  .level-map-node { width: 160px; }
  .level-map { border-radius: 27px; }
}

@media (min-width: 780px) {
  .level-map-locate {
    right: 22px;
    bottom: 22px;
  }

  .level-map-sheet {
    place-items: center;
  }

  .level-map-sheet-card {
    border-radius: 28px;
    padding-bottom: 24px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .level-map-node,
  .level-map-locate,
  .level-map-sheet,
  .level-map-sheet-card,
  .level-map-node.is-current::before {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Word Fall: fixed-height, touch-first game surface shared by browser and PWA. */
.game-launch {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px;
  color: #173b35;
  border: 1px solid #cddbd3;
  border-radius: 8px;
  background: #f7f6f0;
}

.game-launch-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #173b35;
  background: #f2bf3f;
  font-size: 29px;
}

.game-launch-kicker {
  color: #176e59;
  font-size: 11px;
  font-weight: 900;
}

.game-launch h1 {
  margin: 3px 0 5px;
  color: #173b35;
  font-size: 30px;
  letter-spacing: 0;
}

.game-launch p { margin: 0; color: #61736d; }

.game-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.game-stat-strip > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.game-stat-strip strong,
.game-stat-strip span { display: block; }
.game-stat-strip strong { color: var(--gold); font-size: 21px; }
.game-stat-strip span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.game-history-title { margin: 22px 0 10px; font-size: 20px; letter-spacing: 0; }
.game-history .tile { border-radius: 8px; }

.vocab-game {
  --game-paper: #f7f6f0;
  --game-ink: #173b35;
  --game-green: #176e59;
  --game-mint: #ddefe6;
  --game-gold: #f2bf3f;
  --game-coral: #e86f5a;
  --game-line: #d8e2dc;
  width: min(100%, 760px);
  height: calc(100svh - 98px - env(safe-area-inset-bottom));
  height: calc(100dvh - 98px - env(safe-area-inset-bottom));
  min-height: 540px;
  margin: 0 auto;
  padding-top: env(safe-area-inset-top);
  display: grid;
  grid-template-rows: 38px auto minmax(210px, 1fr) 30px 114px;
  gap: 8px;
  overflow: hidden;
  color: var(--game-ink);
  background: var(--game-paper);
}

.vocab-game-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.vocab-game-top strong {
  overflow: hidden;
  color: var(--game-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vocab-back {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--game-line);
  border-radius: 7px;
  color: var(--game-ink);
  background: #fff;
  text-decoration: none;
  font-size: 21px;
  font-weight: 900;
}

.vocab-hud {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px 14px;
  overflow: visible;
  padding: 10px 12px 9px;
  border: 1px solid var(--game-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(38, 62, 54, .07);
}

.vocab-earned small,
.vocab-clock small {
  display: block;
  margin-bottom: 2px;
  color: #61736d;
  font-size: 9px;
  font-weight: 900;
}

.vocab-earned strong {
  display: block;
  color: #896313;
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
}

.vocab-earned .coin-amount { color: inherit; }
.vocab-earned .coin-icon { width: 23px; height: 23px; }
.vocab-clock { text-align: right; }
.vocab-clock strong { color: var(--game-ink); font-size: 17px; }

.vocab-lives {
  min-width: 54px;
  color: var(--game-coral);
  font-size: 19px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.vocab-hud-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.vocab-hud-row span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 6px;
  color: var(--game-green);
  background: var(--game-mint);
  font-size: 11px;
  font-weight: 900;
}

.vocab-hud-row span.gold { color: #75530c; background: #fff1b8; }
.vocab-hud-row b {
  min-width: 0;
  margin-left: auto;
  overflow: hidden;
  color: var(--game-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.vocab-tempo-track {
  grid-column: 1 / -1;
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--game-mint);
}

.vocab-tempo-track > i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--game-green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms linear;
}

.vocab-arena {
  position: relative;
  height: auto;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--game-line);
  border-radius: 8px;
  background:
    linear-gradient(155deg, transparent 0 23%, rgba(88, 133, 113, .12) 23.2% 34%, transparent 34.2%),
    repeating-linear-gradient(180deg, transparent 0 41px, rgba(80, 114, 103, .08) 41px 42px),
    linear-gradient(180deg, #e4f2ea 0 52%, #f7f3de 100%);
  box-shadow: none;
  contain: layout paint;
  overscroll-behavior: contain;
  touch-action: none;
}

.vocab-arena::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 55px;
  pointer-events: none;
  border-top: 2px solid rgba(232, 111, 90, .38);
  background: rgba(232, 111, 90, .08);
  opacity: 1;
  animation: none;
}

.fall-layer { position: absolute; inset: 0; contain: layout paint style; pointer-events: none; }

.fall-word {
  position: absolute;
  top: 0;
  left: 0;
  height: 46px;
  min-width: 112px;
  max-width: 196px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  overflow: hidden;
  border: 1px solid #b7c9c0;
  border-radius: 8px;
  color: var(--game-ink);
  background: #fff;
  box-shadow: 0 4px 0 rgba(38, 62, 54, .13);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 950;
  will-change: transform;
  backface-visibility: hidden;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.fall-word::after { content: none; animation: none; }
.fall-word.diff-4,
.fall-word.diff-5 { color: #fff; border-color: #6fae98; background: var(--game-ink); }
.fall-word.target { border: 3px solid var(--game-green); box-shadow: 0 0 0 5px rgba(23, 110, 89, .13), 0 4px 0 rgba(38, 62, 54, .13); }
.fall-word.bonus { color: var(--game-ink); border-color: #ad7c13; background: var(--game-gold); }
.fall-word.bonus small { position: absolute; top: 3px; right: 6px; color: #76520b; font-size: 9px; }
.fall-word-star { color: #76520b; font-size: 15px; }

.vocab-target {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--game-ink);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 900;
}

.vocab-target.bonus { color: #79570f; }

.vocab-options {
  height: 114px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vocab-basket.choice {
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 7px 9px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  overflow: hidden;
  border: 1px solid var(--game-line);
  border-radius: 8px;
  color: var(--game-ink);
  background: #fff;
  box-shadow: none;
  overflow-wrap: anywhere;
  white-space: normal;
  font-size: 14px;
  line-height: 1.15;
  font-weight: 900;
  transform: translateZ(0);
  transition: transform 100ms ease, border-color 100ms ease, background 100ms ease;
}

.vocab-basket.choice:active { transform: scale(.98); border-color: var(--game-green); background: #f1faf5; }
.vocab-basket.dragging { opacity: .35; }

.vocab-drag-ghost {
  position: fixed;
  z-index: 1300;
  width: min(220px, 66vw) !important;
  height: 54px !important;
  pointer-events: none;
  color: var(--game-ink) !important;
  border: 2px solid #ad7c13 !important;
  background: var(--game-gold) !important;
  box-shadow: 0 14px 30px rgba(38, 62, 54, .22) !important;
  opacity: .98;
  will-change: transform;
}

.vocab-drag-lock,
.vocab-drag-lock body { overflow: hidden; overscroll-behavior: none; }

.vocab-feedback,
.vocab-minute-moment {
  position: absolute;
  z-index: 9;
  left: 10px;
  right: 10px;
  pointer-events: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
}

.vocab-feedback { bottom: 10px; padding: 9px 11px; color: var(--game-ink); border: 1px solid #83bba7; background: #f1faf5; animation: vocab-feedback-in 180ms ease-out both; }
.vocab-feedback.wrong { border-color: #e99a8a; background: #ffe9e4; }
.vocab-feedback.bonus { border-color: #d7a62c; background: #fff3bf; }
.vocab-feedback strong { font-weight: 950; }

.vocab-minute-moment {
  top: 10px;
  left: 50%;
  right: auto;
  width: max-content;
  max-width: calc(100% - 24px);
  padding: 9px 14px;
  color: #fff;
  border: 2px solid var(--game-gold);
  background: var(--game-ink);
  opacity: 0;
  transform: translateX(-50%) scale(.86);
}

.vocab-minute-moment.show { animation: vocab-minute-pop 1650ms cubic-bezier(.16, .84, .22, 1) both; }
.vocab-burst { border-radius: 7px; }
.vocab-burst.ok { color: var(--game-green); border-color: #83bba7; background: #f1faf5; }
.vocab-burst.bad { color: #9a3f30; border-color: #e99a8a; background: #ffe9e4; }
.vocab-burst.bonus { color: #76520b; border: 1px solid #d7a62c; background: #fff3bf; }

.game-start-card {
  color: var(--game-ink);
  border: 1px solid var(--game-line);
  border-radius: 8px;
  background: #fff;
}

.vocab-result-screen {
  position: fixed;
  z-index: 1200;
  inset: 0;
  overflow: auto;
  color: var(--game-ink);
  background: var(--game-paper);
  animation: vocab-result-enter 320ms ease-out both;
}

.vocab-result-content {
  position: relative;
  z-index: 2;
  width: min(100%, 440px);
  min-height: 100%;
  margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top)) 18px calc(20px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.vocab-result-kicker { padding: 6px 12px; border-radius: 99px; color: var(--game-ink); background: var(--game-mint); font-size: 11px; font-weight: 950; }
.vocab-result-screen.record .vocab-result-kicker { background: var(--game-gold); }
.vocab-result-content h1 { margin: 9px 0 3px; color: var(--game-ink); font-size: 31px; letter-spacing: 0; }
.vocab-result-content > p { margin: 0; color: #61736d; font-size: 14px; }
.vocab-result-batyr { width: 190px; height: 220px; margin: 2px auto 0; }
.vocab-result-batyr batyr-character { display: block; width: 100%; height: 100%; pointer-events: none; }
.vocab-result-flag { padding: 22px 0; color: var(--game-green); font-size: 62px; line-height: 1; }

.vocab-result-reward {
  width: 100%;
  padding: 14px 16px 12px;
  border: 1px solid var(--game-line);
  border-radius: 8px;
  background: #fff;
}

.vocab-result-reward > small { display: block; color: #61736d; font-size: 10px; font-weight: 950; }
.vocab-result-reward > strong { display: block; margin: 2px 0 9px; color: #896313; font-size: 32px; }
.vocab-result-reward > strong .coin-icon { width: 34px; height: 34px; }
.vocab-result-reward > div { display: flex; justify-content: space-between; gap: 12px; padding-top: 5px; color: #61736d; font-size: 13px; }
.vocab-result-reward > div .coin-amount { color: var(--game-ink); font-weight: 950; }
.vocab-result-reward > div.record-line,
.vocab-result-reward > div.record-line .coin-amount { color: var(--game-green); font-weight: 950; }

.vocab-result-metrics { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 9px; }
.vocab-result-metrics > div { padding: 9px 5px; border-radius: 7px; background: var(--game-mint); }
.vocab-result-metrics strong,
.vocab-result-metrics span { display: block; }
.vocab-result-metrics strong { font-size: 17px; }
.vocab-result-metrics span { color: #61736d; font-size: 10px; }
.vocab-result-summary { margin: 9px 0 14px !important; font-size: 12px !important; font-weight: 750; }
.vocab-result-content > .primary { width: 100%; min-height: 52px; margin-top: auto; border-radius: 8px; background: var(--game-green); }
.vocab-result-exit { margin-top: 12px; color: var(--game-green); font-weight: 850; text-decoration: none; }

.vocab-record-confetti i {
  position: fixed;
  z-index: 1;
  left: calc((var(--i) + 1) * 2.85%);
  top: -18px;
  width: 7px;
  height: 13px;
  border-radius: 2px;
  background: hsl(calc(var(--i) * 43), 68%, 54%);
  animation: vocab-record-confetti 2500ms ease-out both;
  animation-delay: calc(var(--i) * 17ms);
}

@keyframes vocab-feedback-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes vocab-minute-pop {
  0% { opacity: 0; transform: translateX(-50%) scale(.86); }
  16%, 72% { opacity: 1; transform: translateX(-50%) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-12px) scale(.96); }
}

@keyframes vocab-result-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes vocab-record-confetti {
  0% { opacity: 0; transform: translateY(0) rotate(0); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translateY(72vh) rotate(520deg); }
}

@media (max-width: 520px) {
  .game-launch { grid-template-columns: auto 1fr; padding: 16px; }
  .game-launch .primary { grid-column: 1 / -1; width: 100%; }
  .game-stat-strip > div { padding: 10px 8px; }
  .game-stat-strip strong { font-size: 17px; }
  .vocab-game { min-height: 0; }
}

@media (max-width: 779px) {
  .app-shell.is-vocab-sprint {
    position: fixed;
    inset: 0 0 auto;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    padding-bottom: 0;
    overflow: hidden;
    background: #f7f6f0;
  }

  .app-shell.is-vocab-sprint > main {
    position: absolute;
    inset: 0 0 calc(72px + env(safe-area-inset-bottom));
    min-height: 0;
    overflow: hidden;
    background: #f7f6f0;
  }

  .app-shell.is-vocab-sprint .page.frameless {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: max(8px, env(safe-area-inset-top)) 10px 8px;
    overflow: hidden;
    background: #f7f6f0;
  }

  .app-shell.is-vocab-sprint .vocab-game {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding-top: 0;
  }
}

@media (max-height: 700px) and (max-width: 779px) {
  .vocab-game {
    grid-template-rows: 34px auto minmax(180px, 1fr) 26px 100px;
    gap: 6px;
  }
  .vocab-hud { padding-top: 7px; padding-bottom: 7px; }
  .vocab-options { height: 100px; }
  .vocab-result-batyr { width: 150px; height: 170px; }
}

@media (min-width: 780px) {
  .vocab-game { height: calc(100svh - 20px); height: calc(100dvh - 20px); min-height: 610px; }
}

@media (prefers-reduced-motion: reduce) {
  .vocab-tempo-track > i,
  .fall-word,
  .vocab-feedback,
  .vocab-minute-moment,
  .vocab-result-screen,
  .vocab-record-confetti i { animation: none !important; transition: none !important; }
  .vocab-minute-moment.show { opacity: 1; transform: translateX(-50%); }
  .vocab-record-confetti { display: none; }
}
/* Batyr-led session moments and first-run tour. */
.batyr-session-layer {
  position: fixed;
  z-index: 100;
  inset: 0;
  overflow: hidden;
  color: #173c34;
  font-family: inherit;
}

.batyr-session-layer.is-tour {
  pointer-events: none;
}

.batyr-session-layer.is-reward,
.batyr-session-layer.is-daily {
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  background: rgba(10, 35, 28, .52);
}

.batyr-session-card,
.batyr-welcome-card {
  border: 1px solid rgba(24, 91, 72, .14);
  border-radius: 8px;
  color: #173c34;
  background: #fffdf7;
  box-shadow: 0 24px 65px rgba(7, 29, 23, .28);
}

.batyr-session-card {
  position: absolute;
  right: 12px;
  bottom: calc(86px + env(safe-area-inset-bottom));
  left: 12px;
  width: min(450px, calc(100% - 24px));
  min-height: 174px;
  margin: 0 auto;
  padding: 18px 18px 15px 132px;
  pointer-events: auto;
}

.batyr-session-kicker {
  display: block;
  margin-bottom: 5px;
  color: #9b6b13;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.batyr-session-card h2,
.batyr-welcome-card h2 {
  margin: 0 0 7px;
  color: #173c34;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
}

.batyr-session-card p,
.batyr-welcome-card p {
  margin: 0;
  color: #58716a;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.42;
}

.batyr-session-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 14px;
}

.batyr-session-primary,
.batyr-session-skip {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 850;
}

.batyr-session-primary {
  padding: 0 16px;
  border: 1px solid #126652;
  color: white;
  background: #126652;
  box-shadow: 0 6px 14px rgba(18, 102, 82, .2);
}

.batyr-session-skip {
  padding: 0 10px;
  border: 0;
  color: #6b7d77;
  background: transparent;
}

.batyr-guide-character {
  position: absolute;
  z-index: 2;
  bottom: calc(92px + env(safe-area-inset-bottom));
  left: max(14px, calc(50% - 222px));
  width: 126px;
  height: 168px;
  pointer-events: none;
  animation: batyrGuideArrive .55s cubic-bezier(.2, .9, .25, 1.15) both;
}

.batyr-tour-progress {
  display: flex;
  gap: 4px;
  margin-top: 12px;
  padding-left: 2px;
}

.batyr-tour-progress i {
  width: 15px;
  height: 4px;
  border-radius: 99px;
  background: #dfe7e2;
}

.batyr-tour-progress i.active {
  background: #d6a332;
}

.batyr-tour-target {
  position: relative;
  z-index: 95 !important;
  outline: 3px solid #f2bf3f !important;
  outline-offset: 4px;
  box-shadow: 0 0 0 8px rgba(242, 191, 63, .2), 0 14px 30px rgba(12, 49, 39, .25) !important;
  animation: batyrTargetPulse 1.4s ease-in-out infinite;
}

.batyr-tour-nav-target {
  position: relative;
  z-index: 101;
  outline: 3px solid #f2bf3f;
  outline-offset: -3px;
  box-shadow: 0 0 0 5px rgba(242, 191, 63, .2);
  animation: batyrTargetPulse 1.4s ease-in-out infinite;
}

.batyr-tour-focus {
  position: fixed;
  z-index: 101;
  pointer-events: none;
  opacity: 0;
  border: 3px solid #f2bf3f;
  border-radius: 10px;
  box-shadow: 0 0 0 7px rgba(242, 191, 63, .24), 0 12px 28px rgba(12, 49, 39, .25);
  animation: batyrTargetPulse 1.4s ease-in-out infinite;
}

.batyr-tour-focus.is-visible {
  opacity: 1;
}

.batyr-tour-pointer {
  position: fixed;
  z-index: 102;
  width: min(190px, calc(100vw - 16px));
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transform: translateX(-50%);
  animation: batyrPointer 1s ease-in-out infinite;
}

.batyr-tour-pointer.is-visible {
  opacity: 1;
}

.batyr-tour-pointer.points-up {
  flex-direction: column-reverse;
}

.batyr-tour-pointer small {
  max-width: 100%;
  padding: 5px 10px;
  overflow: hidden;
  border-radius: 99px;
  color: #fff;
  background: #173c34;
  box-shadow: 0 5px 14px rgba(12, 49, 39, .24);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.batyr-tour-pointer span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  color: #173c34;
  background: #f2bf3f;
  box-shadow: 0 6px 16px rgba(48, 38, 9, .25);
  font-size: 27px;
  line-height: 1;
  font-weight: 950;
}

.batyr-welcome-card {
  position: relative;
  width: min(430px, 100%);
  padding: 236px 24px 22px;
  text-align: center;
  animation: batyrWelcomeIn .48s cubic-bezier(.2, .86, .24, 1.08) both;
}

.batyr-welcome-character {
  position: absolute;
  top: -18px;
  left: 50%;
  width: 220px;
  height: 260px;
  transform: translateX(-50%);
}

.batyr-welcome-card .batyr-session-primary {
  width: 100%;
  margin-top: 16px;
}

.batyr-session-reward {
  width: max-content;
  margin: 9px auto 10px;
  padding: 8px 13px;
  border: 1px solid #e4b63a;
  border-radius: 8px;
  color: #6d4d0b;
  background: #fff1b4;
  font-size: 21px;
  font-weight: 900;
}

.batyr-session-reward .coin-amount {
  color: #6d4d0b;
}

.batyr-session-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.batyr-session-confetti i {
  position: absolute;
  top: -24px;
  left: calc(5% + var(--i) * 5.1%);
  width: 8px;
  height: 18px;
  border-radius: 2px;
  background: #f4bd37;
  animation: batyrSessionConfetti 2.5s cubic-bezier(.15, .7, .25, 1) calc(var(--i) * 45ms) both;
}

.batyr-session-confetti i:nth-child(3n + 2) {
  background: #2fa47d;
}

.batyr-session-confetti i:nth-child(3n) {
  background: #cf5b52;
}

@keyframes batyrGuideArrive {
  from { opacity: 0; transform: translate(-28px, 16px) scale(.9); }
  to { opacity: 1; transform: translate(0, 0) scale(1); }
}

@keyframes batyrWelcomeIn {
  from { opacity: 0; transform: translateY(30px) scale(.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes batyrTargetPulse {
  50% { outline-offset: 7px; }
}

@keyframes batyrPointer {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -7px); }
}

@keyframes batyrSessionConfetti {
  0% { opacity: 0; transform: translateY(-10px) rotate(0); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translateY(105vh) rotate(390deg); }
}

@media (max-width: 480px) {
  .batyr-session-card {
    min-height: 180px;
    padding: 16px 14px 14px 116px;
  }

  .batyr-guide-character {
    left: 4px;
    width: 116px;
    height: 156px;
  }

  .batyr-session-card h2,
  .batyr-welcome-card h2 {
    font-size: 23px;
  }

  .batyr-session-card p,
  .batyr-welcome-card p {
    font-size: 13px;
  }

  .batyr-session-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    gap: 3px;
  }

  .batyr-session-primary {
    width: 100%;
  }

  .batyr-session-skip {
    min-height: 34px;
  }
}

@media (max-height: 690px) {
  .batyr-session-card {
    bottom: calc(76px + env(safe-area-inset-bottom));
    min-height: 156px;
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .batyr-guide-character {
    bottom: calc(80px + env(safe-area-inset-bottom));
    height: 142px;
  }

  .batyr-session-card p {
    font-size: 12px;
    line-height: 1.35;
  }

  .batyr-session-actions {
    margin-top: 9px;
  }

  .batyr-welcome-card {
    padding-top: 190px;
  }

  .batyr-welcome-character {
    width: 180px;
    height: 215px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .batyr-guide-character,
  .batyr-welcome-card,
  .batyr-tour-target,
  .batyr-tour-nav-target,
  .batyr-tour-focus,
  .batyr-tour-pointer,
  .batyr-session-confetti i {
    animation: none !important;
  }

  .batyr-session-confetti {
    display: none;
  }
}


@media (max-width: 430px) {
  .pet-title h1 {
    font-size: 18px;
  }

  .pet-hud {
    grid-template-columns: 36px minmax(0, 1fr) auto 36px;
    gap: 6px;
  }

  .pet-round-button {
    width: 36px;
    height: 36px;
  }

  .pet-stage {
    inset: 116px 0 236px;
  }

  .pet-bear {
    width: min(72vw, 360px);
  }

  .pet-character-button {
    width: min(82vw, 380px);
    height: min(50svh, 460px);
  }

  .pet-food {
    min-height: 104px;
  }

  .pet-food img {
    height: 52px;
  }
}

@media (max-height: 720px) {
  .pet-stage {
    inset: 108px 0 214px;
  }

  .pet-dock {
    gap: 8px;
    padding: 10px;
  }

  .pet-food {
    min-height: 94px;
  }

  .pet-food img {
    height: 46px;
  }
}

@keyframes pet-breathe {
  from { transform: translate3d(0, 3px, 0) scale(1); }
  to { transform: translate3d(0, -5px, 0) scale(1.018); }
}

@keyframes pet-feed-pop {
  0% { opacity: 0; transform: translate3d(-50%, 80px, 0) scale(.70); }
  28% { opacity: 1; transform: translate3d(-50%, 4px, 0) scale(1.04); }
  100% { opacity: 0; transform: translate3d(-50%, -120px, 0) scale(.92); }
}

@keyframes pet-character-level-up {
  0% { transform: scale(var(--pet-growth-scale)); }
  36% { transform: scale(calc(var(--pet-growth-scale) * 1.14)); }
  65% { transform: scale(calc(var(--pet-growth-scale) * .97)); }
  100% { transform: scale(var(--pet-growth-scale)); }
}

@keyframes pet-level-flash {
  0% { opacity: 0; transform: scale(.45); }
  24% { opacity: .9; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.35); }
}

@keyframes pet-level-particle {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-30px) scale(.6);
  }
  22% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-190px) rotate(180deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pet-web-hub *,
  .pet-web-hub *::before,
  .pet-web-hub *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .pet-bear-button {
    transform: none !important;
  }

  .pet-character-shell {
    transition: none !important;
  }
}

.hidden {
  display: none !important;
}

.batyr-celebration {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: calc(20px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom));
  overflow: hidden;
  background: rgba(9, 45, 43, 0.94);
  opacity: 0;
  transition: opacity 180ms ease;
}

.batyr-celebration.is-visible { opacity: 1; }

.batyr-celebration-card {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  text-align: center;
  color: white;
}

.batyr-celebration-card h1 {
  margin: 0;
  font-size: clamp(30px, 9vw, 42px);
  letter-spacing: 0;
}

.batyr-celebration-card > p {
  margin: 7px 0 2px;
  color: #c6ded6;
  font-size: 17px;
}

.batyr-celebration-bear {
  display: block;
  width: min(58vw, 240px);
  height: min(40vh, 270px);
  margin: 0 auto -4px;
  animation: batyr-jump 800ms cubic-bezier(.18, 1.22, .35, 1) both;
}

.batyr-growth-card {
  padding: 16px 18px;
  border: 1px solid #56b28d;
  border-radius: 18px;
  background: #103b38;
  text-align: left;
}

.batyr-growth-card > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
}

.batyr-growth-card b,
.batyr-celebration-tenke { color: #f4d06e; }

.batyr-growth-card > span {
  display: block;
  height: 12px;
  margin: 11px 0 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #275754;
}

.batyr-growth-card > span > i {
  display: block;
  width: calc(var(--progress) * 100%);
  height: 100%;
  border-radius: inherit;
  background: #f4d06e;
  transition: width 1100ms cubic-bezier(.2, .85, .2, 1);
}

.batyr-growth-card small { color: #c6ded6; }
.batyr-celebration-tenke { margin: 14px 0; font-size: 20px; font-weight: 900; }

.batyr-celebration button {
  width: 100%;
  min-height: 54px;
  margin-top: 16px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: #30b089;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
}

.batyr-celebration button:disabled { opacity: 0; }

.batyr-celebration-confetti i {
  position: absolute;
  left: 50%;
  top: 43%;
  width: 8px;
  height: 15px;
  border-radius: 2px;
  background: hsl(calc(var(--i) * 29), 80%, 64%);
  transform: rotate(calc(var(--i) * 31deg)) translateY(-30px);
  animation: batyr-confetti 1150ms ease-out both;
  animation-delay: calc(var(--i) * 14ms);
}

@keyframes batyr-jump {
  0% { opacity: 0; transform: translateY(42px) scale(.75); }
  48% { opacity: 1; transform: translateY(-18px) scale(1.06); }
  72% { transform: translateY(6px) scale(.98); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes batyr-confetti {
  0% { opacity: 0; }
  16% { opacity: 1; }
  100% { opacity: 0; transform: rotate(calc(var(--i) * 31deg + 360deg)) translate(calc((var(--i) - 12) * 14px), 250px); }
}

.batyr-celebration.reduced .batyr-celebration-bear,
.batyr-celebration.reduced .batyr-growth-card > span > i { animation: none; transition: none; }

.batyr-victory {
  position: fixed;
  z-index: 1200;
  inset: 0;
  overflow: hidden;
  color: #183b35;
  background: #f8f7f2;
  opacity: 0;
  transition: opacity 220ms ease;
}

.batyr-victory.is-visible { opacity: 1; }
.batyr-victory.is-leaving { opacity: 0; }

.batyr-victory-band {
  position: absolute;
  inset: 0 0 auto;
  height: 38%;
  background: #dff1e7;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 0 100%);
}

.batyr-victory-content {
  position: relative;
  z-index: 2;
  width: min(100%, 440px);
  min-height: 100%;
  margin: 0 auto;
  padding: calc(22px + env(safe-area-inset-top)) 20px calc(18px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: batyr-victory-enter 540ms cubic-bezier(.2, .86, .24, 1) both;
}

.batyr-victory-kicker {
  min-height: 30px;
  padding: 7px 13px 6px;
  border: 1px solid #e2b63d;
  border-radius: 99px;
  color: #705315;
  background: #fff0b4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.batyr-victory.is-level-up .batyr-victory-kicker {
  color: #fff;
  border-color: #176e59;
  background: #176e59;
  animation: batyr-level-kicker 900ms ease-in-out 1450ms both;
}

.batyr-victory h1 {
  margin: 12px 0 4px;
  color: #153d35;
  font-size: 36px;
  line-height: 1.04;
  font-weight: 950;
  letter-spacing: 0;
}

.batyr-victory-content > p {
  margin: 0;
  color: #55716a;
  font-size: 16px;
  font-weight: 650;
}

.batyr-victory-character {
  position: relative;
  width: min(64vw, 240px);
  height: min(36vh, 305px);
  min-height: 225px;
  margin: 7px auto 2px;
  overflow: visible;
  border: 0;
  background: transparent;
  opacity: 0;
  transform: translateY(46px) scale(.78);
  animation: batyr-character-arrive 760ms cubic-bezier(.14, 1.12, .28, 1) 180ms forwards;
}

.batyr-victory-character iframe,
.batyr-victory-character batyr-character {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent !important;
  pointer-events: none;
}

.batyr-victory-rays {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 48%;
  width: 235px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-conic-gradient(from 8deg, rgba(239, 190, 60, .2) 0 9deg, transparent 9deg 21deg);
  transform: translate(-50%, -50%);
  animation: batyr-rays-turn 14s linear infinite;
}

.batyr-victory-progress {
  width: 100%;
  padding: 15px 16px 14px;
  border: 1px solid #dce6df;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(33, 69, 59, .08);
  text-align: left;
}

.batyr-victory-progress-head,
.batyr-victory-reward {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.batyr-victory-progress-head strong { font-size: 16px; }
.batyr-victory-progress-head b { color: #16805f; font-size: 14px; }

.batyr-victory-track {
  display: block;
  height: 14px;
  margin: 11px 0 8px;
  overflow: hidden;
  border: 2px solid #e3e9e4;
  border-radius: 99px;
  background: #edf1ed;
}

.batyr-victory-track > i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e9a928, #ffd96a 76%, #fff0ad);
  box-shadow: inset 0 -2px rgba(123, 86, 10, .14);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.batyr-victory-progress small { color: #70827d; font-size: 13px; }

.batyr-victory.stage-changed .batyr-victory-progress {
  animation: batyr-progress-level 720ms cubic-bezier(.2, .9, .24, 1);
  border-color: #e2b63d;
}

.batyr-victory-reward {
  width: 100%;
  min-height: 36px;
  margin-top: 9px;
  color: #6b5a31;
  font-size: 14px;
  font-weight: 750;
}

.batyr-victory-reward .coin-amount {
  color: #8d6816;
  font-size: 19px;
  font-weight: 950;
}

.batyr-victory button {
  width: 100%;
  min-height: 54px;
  margin-top: auto;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #176e59;
  box-shadow: 0 5px 0 #0d4e3e;
  font: inherit;
  font-size: 17px;
  font-weight: 900;
  transition: opacity 180ms ease, transform 120ms ease;
}

.batyr-victory button:active { transform: translateY(3px); box-shadow: 0 2px 0 #0d4e3e; }
.batyr-victory button:disabled { opacity: 0; pointer-events: none; }

.batyr-victory-confetti i {
  --angle: calc(var(--i) * 31deg);
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 37%;
  width: 8px;
  height: 15px;
  border-radius: 2px;
  background: hsl(calc(var(--i) * 47), 72%, 56%);
  opacity: 0;
  transform: rotate(var(--angle));
  animation: batyr-victory-confetti 2450ms cubic-bezier(.16, .72, .22, 1) both;
  animation-delay: calc(300ms + var(--i) * 13ms);
}

.batyr-victory.is-level-up .batyr-victory-confetti i:nth-child(3n) {
  animation-delay: calc(2100ms + var(--i) * 10ms);
}

@keyframes batyr-victory-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes batyr-character-arrive {
  58% { opacity: 1; transform: translateY(-12px) scale(1.045); }
  78% { opacity: 1; transform: translateY(5px) scale(.985); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes batyr-rays-turn {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes batyr-victory-confetti {
  0% { opacity: 0; transform: translate(0, 0) rotate(var(--angle)) scale(.5); }
  12% { opacity: 1; }
  100% {
    opacity: 0;
    transform: translate(calc((var(--i) - 22) * 13px), calc(150px + (var(--i) % 6) * 26px)) rotate(calc(var(--angle) + 420deg));
  }
}

@keyframes batyr-progress-level {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.035); box-shadow: 0 15px 38px rgba(226, 182, 61, .2); }
}

@keyframes batyr-level-kicker {
  45% { transform: scale(1.12); }
}

.batyr-victory.reduced *,
.batyr-victory.reduced *::before,
.batyr-victory.reduced *::after {
  animation: none !important;
  transition: none !important;
}

.batyr-victory.reduced,
.batyr-victory.reduced .batyr-victory-content,
.batyr-victory.reduced .batyr-victory-character {
  opacity: 1;
  transform: none;
}

@media (max-height: 720px) and (max-width: 600px) {
  .batyr-victory-content { padding-top: calc(12px + env(safe-area-inset-top)); }
  .batyr-victory h1 { margin-top: 8px; font-size: 30px; }
  .batyr-victory-character { width: 180px; height: 225px; min-height: 190px; }
  .batyr-victory-progress { padding-top: 12px; padding-bottom: 11px; }
}

@media (max-height: 720px) and (min-width: 601px) {
  .batyr-victory-content { padding-top: calc(12px + env(safe-area-inset-top)); }
  .batyr-victory h1 { margin-top: 8px; font-size: 31px; }
  .batyr-victory-character { width: 250px; height: 290px; min-height: 250px; }
  .batyr-victory-progress { padding-top: 12px; padding-bottom: 11px; }
}

@media (max-width: 390px) {
  .batyr-victory-content { padding-left: 16px; padding-right: 16px; }
  .batyr-victory h1 { font-size: 31px; }
}

@media (min-width: 780px) {
  .app-shell {
    padding-bottom: 0;
    padding-left: 88px;
  }

  .bottom-nav {
    top: 0;
    right: auto;
    width: 88px;
    grid-template-columns: 1fr;
    grid-auto-rows: min-content;
    padding: calc(16px + env(safe-area-inset-top)) 10px 16px;
    border-top: 0;
    border-right: 1px solid var(--border);
  }
}

.app-shell.is-learning-stage {
  min-height: 100svh;
  padding: 0;
}

.app-shell.is-learning-stage > main {
  min-height: 100svh;
}

.app-shell.is-learning-stage .bottom-nav {
  display: none;
}

.learning-v2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #65d7bd;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.learning-v2-overview,
.learning-v2-part-map {
  --learning-green: #35d399;
  --learning-green-dark: #0d9b70;
  --learning-gold: #f5bf45;
  --learning-blue: #4fc3f7;
  padding-bottom: 34px;
}

.learning-v2-overview-hero,
.learning-v2-part-hero {
  overflow: hidden;
  position: relative;
  padding: clamp(22px, 5vw, 38px);
  border: 1px solid rgba(101, 215, 189, .2);
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 10%, rgba(245, 191, 69, .2), transparent 31%),
    radial-gradient(circle at 8% 95%, rgba(53, 211, 153, .18), transparent 36%),
    linear-gradient(150deg, #17283c, #111c2d);
  box-shadow: 0 20px 56px rgba(0, 0, 0, .22);
}

.learning-v2-overview-hero::after,
.learning-v2-part-hero::after {
  position: absolute;
  width: 160px;
  height: 160px;
  right: -48px;
  bottom: -78px;
  border: 22px solid rgba(255, 255, 255, .025);
  border-radius: 50%;
  content: "";
}

.learning-v2-overview-hero h1,
.learning-v2-part-hero h1 {
  max-width: 650px;
  margin: 12px 0 10px;
  font-size: clamp(32px, 6vw, 50px);
  line-height: 1.02;
}

.learning-v2-overview-hero > p,
.learning-v2-part-hero > p {
  max-width: 650px;
  margin: 0;
  color: #c5cfdd;
  font-size: 16px;
  line-height: 1.55;
}

.learning-v2-internal-note,
.learning-v2-map-notice {
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 22px;
  padding: 11px 14px;
  border: 1px solid rgba(245, 191, 69, .28);
  border-radius: 14px;
  background: rgba(245, 191, 69, .1);
  color: #ffe4a3;
}

.learning-v2-internal-note > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: rgba(245, 191, 69, .16);
  font-size: 20px;
}

.learning-v2-internal-note div,
.learning-v2-level-copy {
  display: grid;
  gap: 3px;
}

.learning-v2-internal-note small {
  color: rgba(255, 240, 199, .72);
}

.learning-v2-level-road {
  width: min(700px, 100%);
  display: grid;
  gap: 14px;
  margin: 26px auto 0;
}

.learning-v2-level-step {
  position: relative;
  min-height: 116px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 17px;
  padding: 16px 20px;
  border: 1px solid rgba(226, 232, 240, .14);
  border-bottom-width: 4px;
  border-radius: 24px;
  background: #162337;
  color: #f8fafc;
  text-decoration: none;
  transition: border-color .16s ease, transform .16s ease, background .16s ease;
}

a.learning-v2-level-step:hover {
  border-color: rgba(101, 215, 189, .45);
  background: #1a2a40;
  transform: translateY(-2px);
}

a.learning-v2-level-step:active {
  border-bottom-width: 1px;
  transform: translateY(3px);
}

.learning-v2-level-node {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, .12);
  border-bottom-width: 6px;
  border-radius: 24px;
  background: #26374f;
  font-size: 25px;
  font-weight: 950;
}

.learning-v2-level-copy small {
  color: #65d7bd;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.learning-v2-level-copy strong {
  font-size: 20px;
  line-height: 1.18;
}

.learning-v2-level-copy > span {
  color: #aebacc;
  font-size: 14px;
  line-height: 1.42;
}

.learning-v2-level-step.is-completed .learning-v2-level-node {
  border-color: #0b815e;
  background: #35d399;
  color: #062d20;
}

.learning-v2-level-step.is-in_progress .learning-v2-level-node,
.learning-v2-level-step.is-refresh_due .learning-v2-level-node {
  border-color: #248cb9;
  background: #4fc3f7;
  color: #06273a;
}

.learning-v2-level-step.is-locked {
  opacity: .54;
}

.learning-v2-back-link {
  position: relative;
  z-index: 1;
  display: block;
  width: fit-content;
  margin-bottom: 24px;
  color: #c5cfdd;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.learning-v2-part-road {
  width: min(720px, 100%);
  position: relative;
  display: grid;
  gap: 3px;
  margin: 24px auto 0;
  padding: 10px 0 30px;
}

.learning-v2-part-step {
  min-height: 148px;
  position: relative;
  display: grid;
  place-items: center;
}

.learning-v2-road-line {
  width: 5px;
  position: absolute;
  z-index: 0;
  top: 83px;
  bottom: -68px;
  left: calc(50% - 2px);
  border-radius: 999px;
  background: repeating-linear-gradient(to bottom, rgba(101, 215, 189, .4) 0 9px, transparent 9px 17px);
}

.learning-v2-part-step:last-child .learning-v2-road-line {
  display: none;
}

.learning-v2-part-node {
  width: min(590px, 100%);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.learning-v2-part-step:nth-child(odd) .learning-v2-part-node {
  transform: translateX(-54px);
}

.learning-v2-part-step:nth-child(even) .learning-v2-part-node {
  flex-direction: row-reverse;
  transform: translateX(54px);
}

.learning-v2-part-orb {
  width: 78px;
  height: 72px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid #0a8f68;
  border-bottom-width: 7px;
  border-radius: 27px;
  background: #35d399;
  color: #063528;
  box-shadow: 0 10px 26px rgba(53, 211, 153, .19);
  font-size: 25px;
  font-weight: 950;
  transition: transform .14s ease, border-bottom-width .14s ease;
}

.learning-v2-part-card {
  width: min(350px, calc(100% - 96px));
  display: grid;
  gap: 3px;
  padding: 14px 17px;
  border: 1px solid rgba(226, 232, 240, .13);
  border-radius: 18px;
  background: rgba(22, 35, 55, .93);
  text-align: left;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .15);
  transition: border-color .14s ease, transform .14s ease;
}

.learning-v2-part-step:nth-child(even) .learning-v2-part-card {
  text-align: right;
}

.learning-v2-part-card small {
  color: #65d7bd;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.learning-v2-part-card strong {
  color: #f8fafc;
  font-size: 17px;
  line-height: 1.25;
}

.learning-v2-part-card > span {
  color: #9eabba;
  font-size: 13px;
  line-height: 1.35;
}

.learning-v2-part-node:not(:disabled):hover .learning-v2-part-card {
  border-color: rgba(101, 215, 189, .45);
  transform: translateY(-2px);
}

.learning-v2-part-node:not(:disabled):active .learning-v2-part-orb {
  border-bottom-width: 2px;
  transform: translateY(5px);
}

.learning-v2-part-step.is-in_progress .learning-v2-part-orb {
  border-color: #247ea6;
  background: #4fc3f7;
  color: #052d42;
  box-shadow: 0 0 0 7px rgba(79, 195, 247, .1), 0 12px 28px rgba(79, 195, 247, .18);
}

.learning-v2-part-step.is-completed .learning-v2-part-orb {
  border-color: #a87912;
  background: #f5bf45;
  color: #392701;
}

.learning-v2-part-step.is-completed .learning-v2-part-card small {
  color: #f5bf45;
}

.learning-v2-part-step.is-mission .learning-v2-part-orb {
  border-radius: 50%;
}

.learning-v2-part-step.is-locked .learning-v2-part-orb {
  border-color: #27364b;
  background: #3b495c;
  color: #8592a4;
  box-shadow: none;
}

.learning-v2-part-step.is-locked .learning-v2-part-card {
  opacity: .58;
}

.learning-v2-part-node:disabled {
  cursor: default;
}

.learning-v2-lesson-stage {
  --learning-green: #35d399;
  --learning-green-dark: #0b8e68;
  --learning-red: #fb7185;
  --learning-blue: #4fc3f7;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  color: #f8fafc;
  background:
    radial-gradient(circle at 50% -20%, rgba(79, 195, 247, .08), transparent 34%),
    #0d1625;
}

.learning-v2-lesson-header {
  min-height: 76px;
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  grid-template-areas:
    "exit progress count"
    "name name name";
  align-items: center;
  column-gap: 14px;
  row-gap: 7px;
  padding: calc(12px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 11px max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(226, 232, 240, .11);
  background: rgba(13, 22, 37, .94);
  backdrop-filter: blur(16px);
}

.learning-v2-exit {
  grid-area: exit;
  width: 48px;
  height: 48px;
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #93a1b4;
  text-decoration: none;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.learning-v2-exit:hover {
  background: rgba(255, 255, 255, .06);
  color: #f8fafc;
}

.learning-v2-progress-track {
  grid-area: progress;
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: #243248;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, .24);
}

.learning-v2-progress-track > span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #31c995, #64e1b5);
  box-shadow: 0 0 14px rgba(53, 211, 153, .25);
  transition: width .32s cubic-bezier(.2, .8, .2, 1);
}

.learning-v2-progress-count {
  grid-area: count;
  color: #9eabba;
  font-size: 12px;
  font-weight: 900;
}

.learning-v2-part-name {
  grid-area: name;
  overflow: hidden;
  color: #718096;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.learning-v2-lesson-main {
  width: 100%;
  padding: clamp(24px, 5vh, 52px) 18px calc(138px + env(safe-area-inset-bottom));
}

.learning-v2-exercise {
  width: min(690px, 100%);
  margin: 0 auto;
}

.learning-v2-exercise-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
  color: #65d7bd;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.learning-v2-exercise-meta small {
  padding: 5px 9px;
  border: 1px solid rgba(79, 195, 247, .22);
  border-radius: 999px;
  background: rgba(79, 195, 247, .08);
  color: #9bdcf7;
  font-size: 10px;
  letter-spacing: .05em;
}

.learning-v2-exercise h1 {
  margin: 0 0 24px;
  font-size: clamp(26px, 5vw, 38px);
  line-height: 1.16;
  letter-spacing: -.035em;
}

.learning-v2-scene {
  min-height: 154px;
  overflow: hidden;
  position: relative;
  display: grid;
  align-content: end;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid rgba(79, 195, 247, .16);
  border-radius: 25px;
  background:
    radial-gradient(circle at 12% 20%, rgba(245, 191, 69, .2), transparent 24%),
    linear-gradient(180deg, #1b3650 0 62%, #173c38 62% 100%);
}

.learning-v2-scene::before {
  position: absolute;
  inset: auto -5% 29px;
  height: 28px;
  border-radius: 50%;
  background: rgba(10, 36, 35, .42);
  content: "";
}

.learning-v2-scene-people {
  position: absolute;
  inset: 16px 17% 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.learning-v2-scene-people > span {
  width: 47px;
  height: 67px;
  position: relative;
  display: block;
  border-radius: 24px 24px 15px 15px;
  background: linear-gradient(145deg, #57d5ad, #169a75);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .22);
}

.learning-v2-scene-people > span::before {
  width: 29px;
  height: 29px;
  position: absolute;
  top: -14px;
  left: 9px;
  border: 4px solid #1b3650;
  border-radius: 50%;
  background: #f2c99c;
  content: "";
}

.learning-v2-scene-people > span:last-child {
  background: linear-gradient(145deg, #f5bf45, #d58a22);
}

.learning-v2-scene-people i {
  width: 35%;
  border-top: 3px dotted rgba(255, 255, 255, .27);
}

.learning-v2-scene p {
  position: relative;
  z-index: 2;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 8px 11px;
  border-radius: 11px;
  background: rgba(8, 18, 31, .76);
  color: #d8e2ee;
  font-size: 13px;
  line-height: 1.38;
}

.learning-v2-audio-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -5px 0 24px;
  padding: 14px;
  border: 1px solid rgba(79, 195, 247, .24);
  border-radius: 20px;
  background: rgba(79, 195, 247, .075);
}

.learning-v2-audio-icon {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 16px;
  background: #4fc3f7;
  color: #062b3e;
  font-size: 25px;
  font-weight: 950;
}

.learning-v2-audio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.learning-v2-audio-button {
  min-height: 45px;
  padding: 9px 15px;
  border: 1px solid #2688b2;
  border-bottom-width: 4px;
  border-radius: 14px;
  background: #4fc3f7;
  color: #062b3e;
  font-weight: 900;
  cursor: pointer;
}

.learning-v2-audio-button.is-slow {
  border-color: rgba(79, 195, 247, .28);
  background: #223850;
  color: #c7eefe;
}

.learning-v2-audio-button:active {
  border-bottom-width: 1px;
  transform: translateY(3px);
}

.learning-v2-audio-card.is-unavailable {
  border-style: dashed;
  border-color: rgba(148, 163, 184, .22);
  background: rgba(148, 163, 184, .055);
}

.learning-v2-audio-card.is-unavailable .learning-v2-audio-icon {
  background: #29384b;
  color: #7e8da1;
}

.learning-v2-audio-card.is-unavailable > span:last-child {
  display: grid;
  gap: 3px;
}

.learning-v2-audio-card.is-unavailable strong {
  color: #c1cad6;
  font-size: 14px;
}

.learning-v2-audio-card.is-unavailable small {
  color: #7f8da0;
  font-size: 12px;
  line-height: 1.4;
}

.learning-v2-answer-zone {
  margin-top: 4px;
}

.learning-v2-choice-list {
  display: grid;
  gap: 11px;
}

.learning-v2-choice {
  min-height: 65px;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 12px 16px;
  border: 1px solid #35445a;
  border-bottom-width: 4px;
  border-radius: 18px;
  background: #172438;
  color: #f4f7fb;
  text-align: left;
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease, transform .14s ease;
}

.learning-v2-choice:hover:not(:disabled) {
  border-color: #56677e;
  background: #1b2a40;
}

.learning-v2-choice:active:not(:disabled) {
  border-bottom-width: 1px;
  transform: translateY(3px);
}

.learning-v2-choice.is-selected {
  border-color: #279bba;
  background: rgba(79, 195, 247, .14);
  color: #e8f8ff;
}

.learning-v2-choice-key {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border: 1px solid #45556c;
  border-radius: 11px;
  color: #91a0b4;
  font-size: 13px;
  font-weight: 900;
}

.learning-v2-choice.is-selected .learning-v2-choice-key {
  border-color: #4fc3f7;
  background: #4fc3f7;
  color: #062b3e;
}

.learning-v2-answer-tray {
  min-height: 76px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 13px 8px;
  border-top: 2px solid #304056;
  border-bottom: 2px solid #304056;
  color: #718096;
}

.learning-v2-cloze-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(148, 163, 184, .06);
  color: #c9d3df;
  font-size: 17px;
  font-weight: 750;
}

.learning-v2-cloze-line i {
  min-width: 72px;
  padding-bottom: 3px;
  border-bottom: 2px solid #4fc3f7;
  color: #8ddfff;
  font-style: normal;
  letter-spacing: .06em;
  text-align: center;
}

.learning-v2-answer-tray.has-answer {
  color: #f8fafc;
}

.learning-v2-dialogue-history {
  display: grid;
  gap: 9px;
  margin: 4px 0 18px;
}

.learning-v2-dialogue-turn {
  display: grid;
  gap: 7px;
}

.learning-v2-dialogue-turn p,
.learning-v2-dialogue-turn strong {
  width: fit-content;
  max-width: min(88%, 520px);
  margin: 0;
  padding: 10px 13px;
  border-radius: 16px;
  line-height: 1.35;
}

.learning-v2-dialogue-turn p {
  border: 1px solid #34445a;
  border-bottom-left-radius: 5px;
  background: #18263a;
  color: #9eabba;
  font-size: 13px;
}

.learning-v2-dialogue-turn strong {
  justify-self: end;
  border-bottom-right-radius: 5px;
  background: rgba(53, 211, 153, .15);
  color: #eafff7;
}

.learning-v2-scene-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.learning-v2-scene-slot {
  min-height: 96px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 12px;
  border: 2px dashed #3b4a60;
  border-radius: 18px;
  background: #172338;
  color: #718096;
  text-align: center;
}

.learning-v2-scene-slot small {
  color: #91a0b4;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.learning-v2-scene-slot.has-answer {
  border-style: solid;
  border-color: #35d399;
  background: rgba(53, 211, 153, .1);
}

.learning-v2-scene-slot button {
  min-height: 42px;
  padding: 8px 11px;
  border: 0;
  border-radius: 12px;
  background: rgba(53, 211, 153, .16);
  color: #eafff7;
  font-weight: 900;
  cursor: pointer;
}

.learning-v2-answer-tray > button,
.learning-v2-token {
  min-height: 49px;
  padding: 10px 15px;
  border: 1px solid #46566c;
  border-bottom-width: 4px;
  border-radius: 14px;
  background: #1b2a40;
  color: #f4f7fb;
  font-weight: 800;
  cursor: pointer;
}

.learning-v2-answer-tray > button {
  border-color: #278e70;
  background: rgba(53, 211, 153, .13);
}

.learning-v2-token-bank {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding-top: 18px;
}

.learning-v2-token:active:not(:disabled),
.learning-v2-answer-tray > button:active {
  border-bottom-width: 1px;
  transform: translateY(3px);
}

.learning-v2-token.is-selected {
  opacity: .32;
}

.learning-v2-text-answer {
  display: grid;
  gap: 8px;
  color: #9eabba;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.learning-v2-input {
  width: 100%;
  min-height: 62px;
  padding: 14px 16px;
  border: 2px solid #35465d;
  border-radius: 17px;
  outline: 0;
  background: #142135;
  color: #f8fafc;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.learning-v2-input:focus {
  border-color: #4fc3f7;
  box-shadow: 0 0 0 4px rgba(79, 195, 247, .09);
}

.learning-v2-fallback-note,
.learning-v2-speech-slot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 13px 14px;
  border: 1px solid rgba(245, 191, 69, .23);
  border-radius: 16px;
  background: rgba(245, 191, 69, .075);
  color: #f8dfa2;
}

.learning-v2-fallback-switch {
  display: block;
  margin: -7px auto 8px;
  padding: 9px 13px;
  border: 0;
  background: transparent;
  color: #8ddfff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.learning-v2-fallback-switch:hover,
.learning-v2-fallback-switch:focus-visible {
  color: #d9f5ff;
  text-decoration: underline;
}

.learning-v2-fallback-note > span:first-child,
.learning-v2-mic {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  background: rgba(245, 191, 69, .14);
  font-size: 20px;
}

.learning-v2-fallback-note > span:last-child,
.learning-v2-speech-slot > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.learning-v2-fallback-note small,
.learning-v2-speech-slot small {
  color: rgba(255, 227, 160, .68);
  font-size: 12px;
  line-height: 1.35;
}

.learning-v2-speech-slot {
  border-color: rgba(79, 195, 247, .24);
  background: rgba(79, 195, 247, .075);
  color: #c7edfe;
}

.learning-v2-speech-slot > span:nth-child(2) {
  flex: 1;
}

.learning-v2-speech-slot small {
  color: #7fb3c9;
}

.learning-v2-mic {
  position: relative;
  background: rgba(79, 195, 247, .14);
}

.learning-v2-mic i {
  width: 11px;
  height: 19px;
  display: block;
  position: relative;
  border: 2px solid #80dcff;
  border-radius: 999px;
}

.learning-v2-mic i::before {
  width: 19px;
  height: 12px;
  position: absolute;
  top: 8px;
  left: 50%;
  border: 2px solid #80dcff;
  border-top: 0;
  border-radius: 0 0 999px 999px;
  content: "";
  transform: translateX(-50%);
}

.learning-v2-mic i::after {
  width: 11px;
  height: 2px;
  position: absolute;
  top: 22px;
  left: 50%;
  border-radius: 999px;
  background: #80dcff;
  content: "";
  transform: translateX(-50%);
}

.learning-v2-speech-slot time {
  min-width: 47px;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(79, 195, 247, .11);
  color: #aee8ff;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  text-align: center;
}

.learning-v2-speech-slot time:empty {
  display: none;
}

.learning-v2-speech-slot.is-recording {
  border-color: rgba(251, 113, 133, .52);
  background: rgba(251, 113, 133, .1);
  color: #fecdd3;
}

.learning-v2-speech-slot.is-recording .learning-v2-mic {
  background: rgba(251, 113, 133, .18);
  animation: learning-v2-mic-pulse 1.1s ease-in-out infinite;
}

.learning-v2-speech-slot.is-recording .learning-v2-mic i,
.learning-v2-speech-slot.is-recording .learning-v2-mic i::before {
  border-color: #fb7185;
}

.learning-v2-speech-slot.is-recording .learning-v2-mic i::after {
  background: #fb7185;
}

.learning-v2-speech-slot.is-recording small {
  color: #eaa6b2;
}

.learning-v2-speech-slot.is-recording time {
  background: rgba(251, 113, 133, .16);
  color: #fecdd3;
}

.learning-v2-check-button.is-recording {
  border-color: #b43c51;
  background: #fb7185;
  color: #3e0913;
}

.learning-v2-check-button.is-processing {
  border-color: #257da3;
  background: #4fc3f7;
  color: #062b3e;
}

.learning-v2-hint-space {
  margin-top: 20px;
}

.learning-v2-hint-card {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 11px;
  padding: 14px;
  border: 1px solid rgba(245, 191, 69, .25);
  border-radius: 17px;
  background: rgba(245, 191, 69, .075);
  color: #f8dfa2;
}

.learning-v2-hint-card > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(245, 191, 69, .15);
}

.learning-v2-hint-card p {
  margin: 4px 0 0;
  color: #d5c392;
  font-size: 13px;
  line-height: 1.45;
}

.learning-v2-hint-progress {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 11px;
}

.learning-v2-hint-progress span {
  width: 18px;
  height: 4px;
  border-radius: 999px;
  background: #2e3c50;
}

.learning-v2-hint-progress span.is-used {
  background: #f5bf45;
}

.learning-v2-inline-error {
  min-height: 20px;
  margin-top: 12px;
  color: #fda4af;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.learning-v2-action-bar,
.learning-v2-feedback-sheet {
  position: fixed;
  z-index: 40;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(226, 232, 240, .12);
  background: rgba(15, 25, 41, .97);
  backdrop-filter: blur(18px);
  transform: translateZ(0);
}

.learning-v2-action-inner,
.learning-v2-feedback-inner {
  width: min(690px, 100%);
  display: grid;
  grid-template-columns: auto minmax(190px, 1fr);
  gap: 12px;
  margin: 0 auto;
}

.learning-v2-action-inner.is-single {
  grid-template-columns: minmax(190px, 390px);
  justify-content: center;
}

.learning-v2-hint-button,
.learning-v2-check-button,
.learning-v2-continue-button {
  min-height: 54px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-bottom-width: 5px;
  border-radius: 17px;
  font-weight: 950;
  cursor: pointer;
  transition: filter .14s ease, transform .14s ease, border-bottom-width .14s ease;
}

.learning-v2-hint-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-color: #405069;
  background: #1c2a40;
  color: #d7dfeb;
}

.learning-v2-check-button,
.learning-v2-continue-button {
  border-color: #0d8b65;
  background: #35d399;
  color: #052d21;
  font-size: 15px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.learning-v2-hint-button:active:not(:disabled),
.learning-v2-check-button:active:not(:disabled),
.learning-v2-continue-button:active:not(:disabled) {
  border-bottom-width: 1px;
  transform: translateY(4px);
}

.learning-v2-hint-button:disabled,
.learning-v2-check-button:disabled,
.learning-v2-continue-button:disabled {
  border-color: #27364b;
  background: #2b394c;
  color: #718096;
  cursor: default;
}

.learning-v2-feedback-sheet {
  animation: learning-v2-sheet-up .22s ease-out both;
}

.learning-v2-feedback-sheet.is-success {
  border-top-color: rgba(53, 211, 153, .38);
  background: rgba(11, 57, 44, .98);
}

.learning-v2-feedback-sheet.is-danger {
  border-top-color: rgba(251, 113, 133, .42);
  background: rgba(65, 24, 35, .98);
}

.learning-v2-feedback-sheet.is-neutral {
  border-top-color: rgba(79, 195, 247, .4);
  background: rgba(18, 48, 65, .98);
}

.learning-v2-feedback-inner {
  grid-template-columns: 48px minmax(0, 1fr) minmax(150px, 220px);
  align-items: center;
}

.learning-v2-feedback-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: #6ee7b7;
  font-size: 25px;
  font-weight: 950;
}

.learning-v2-feedback-sheet.is-danger .learning-v2-feedback-icon {
  color: #fda4af;
}

.learning-v2-feedback-sheet.is-neutral .learning-v2-feedback-icon {
  color: #7dd3fc;
}

.learning-v2-feedback-copy strong {
  display: block;
  color: #ecfdf5;
  font-size: 19px;
}

.learning-v2-feedback-copy p {
  margin: 4px 0 0;
  color: rgba(236, 253, 245, .73);
  font-size: 13px;
  line-height: 1.4;
}

.learning-v2-feedback-sheet.is-danger .learning-v2-continue-button {
  border-color: #b43c51;
  background: #fb7185;
  color: #3e0913;
}

.learning-v2-feedback-sheet.is-neutral .learning-v2-continue-button {
  border-color: #257da3;
  background: #4fc3f7;
  color: #062b3e;
}

.learning-v2-ready-content,
.learning-v2-completion-content {
  width: min(620px, 100%);
  display: grid;
  align-content: center;
  justify-items: center;
  margin: 0 auto;
  padding: 60px 22px calc(130px + env(safe-area-inset-bottom));
  text-align: center;
}

.learning-v2-ready-mark,
.learning-v2-completion-burst > span {
  width: 105px;
  height: 98px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border: 3px solid #0c8c66;
  border-bottom-width: 9px;
  border-radius: 35px;
  background: #35d399;
  color: #063528;
  box-shadow: 0 18px 44px rgba(53, 211, 153, .2);
  font-size: 50px;
  font-weight: 950;
  animation: learning-v2-ready-pop .38s cubic-bezier(.2, .9, .25, 1.25) both;
}

.learning-v2-ready-content h1,
.learning-v2-completion-content h1 {
  margin: 12px 0 8px;
  font-size: clamp(35px, 8vw, 54px);
}

.learning-v2-ready-content p,
.learning-v2-completion-content p {
  max-width: 480px;
  margin: 0;
  color: #9eabba;
  font-size: 16px;
  line-height: 1.5;
}

.learning-v2-mission-results {
  display: grid;
  gap: 6px;
  width: min(360px, 100%);
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(73, 217, 162, .24);
  border-radius: 16px;
  background: rgba(53, 211, 153, .08);
  color: #d5eee5;
  font-size: 14px;
  font-weight: 750;
}

.learning-v2-completion-burst {
  position: relative;
}

.learning-v2-completion-burst::before,
.learning-v2-completion-burst::after {
  position: absolute;
  inset: -18px;
  border: 2px dotted rgba(245, 191, 69, .42);
  border-radius: 42%;
  content: "";
  animation: learning-v2-burst-turn 9s linear infinite;
}

.learning-v2-completion-burst::after {
  inset: -33px;
  border-color: rgba(53, 211, 153, .2);
  animation-direction: reverse;
}

.learning-v2-lesson-stage.is-neutral .learning-v2-completion-burst > span {
  border-color: #277da3;
  background: #4fc3f7;
  color: #062b3e;
  box-shadow: 0 18px 44px rgba(79, 195, 247, .18);
}

@keyframes learning-v2-sheet-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes learning-v2-ready-pop {
  from { opacity: 0; transform: scale(.76) rotate(-6deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes learning-v2-mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 113, 133, .08); }
  50% { box-shadow: 0 0 0 8px rgba(251, 113, 133, .12); }
}

@keyframes learning-v2-burst-turn {
  to { transform: rotate(360deg); }
}


@media (pointer: coarse) {
  .learning-v2-action-bar,
  .learning-v2-feedback-sheet {
    background: #0f1929;
    backdrop-filter: none;
  }
}

@media (max-width: 620px) {
  .learning-v2-overview-hero,
  .learning-v2-part-hero {
    padding: 22px 19px;
    border-radius: 24px;
  }

  .learning-v2-level-step {
    min-height: 105px;
    grid-template-columns: 59px minmax(0, 1fr);
    gap: 13px;
    padding: 14px;
    border-radius: 20px;
  }

  .learning-v2-level-node {
    width: 57px;
    height: 57px;
    border-radius: 20px;
    font-size: 21px;
  }

  .learning-v2-level-copy strong {
    font-size: 17px;
  }

  .learning-v2-level-copy > span {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .learning-v2-part-step:nth-child(odd) .learning-v2-part-node {
    transform: translateX(-16px);
  }

  .learning-v2-part-step:nth-child(even) .learning-v2-part-node {
    transform: translateX(16px);
  }

  .learning-v2-part-orb {
    width: 66px;
    height: 62px;
    border-radius: 23px;
  }

  .learning-v2-part-card {
    width: min(275px, calc(100% - 80px));
    padding: 12px 13px;
  }

  .learning-v2-lesson-main {
    padding-top: 25px;
  }

  .learning-v2-exercise h1 {
    margin-bottom: 20px;
    font-size: 27px;
  }

  .learning-v2-scene {
    min-height: 138px;
  }

  .learning-v2-feedback-inner {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .learning-v2-feedback-icon {
    width: 40px;
    height: 40px;
    font-size: 21px;
  }

  .learning-v2-feedback-copy strong {
    font-size: 17px;
  }

  .learning-v2-feedback-copy p {
    font-size: 12px;
  }

  .learning-v2-continue-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .learning-v2-action-inner {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 8px;
  }

  .learning-v2-hint-button,
  .learning-v2-check-button {
    min-width: 0;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 12px;
  }

  .learning-v2-audio-card {
    align-items: flex-start;
  }

  .learning-v2-audio-actions {
    flex: 1;
  }

  .learning-v2-audio-button {
    flex: 1;
  }

  .learning-v2-fallback-note,
  .learning-v2-speech-slot {
    align-items: flex-start;
  }

  .learning-v2-scene-slots {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .learning-v2-level-step,
  .learning-v2-part-orb,
  .learning-v2-part-card,
  .learning-v2-progress-track > span,
  .learning-v2-feedback-sheet,
  .learning-v2-ready-mark,
  .learning-v2-speech-slot.is-recording .learning-v2-mic,
  .learning-v2-completion-burst::before,
  .learning-v2-completion-burst::after {
    animation: none !important;
    transition: none !important;
  }

  .voice-companion-orb.is-listening { animation: none !important; }
}
