:root {
  --bg: #050817;
  --bg-2: #0b1026;
  --card: rgba(18, 24, 50, 0.76);
  --card-strong: rgba(24, 32, 66, 0.94);
  --line: rgba(164, 182, 255, 0.15);
  --line-strong: rgba(164, 182, 255, 0.28);
  --text: #eef1ff;
  --muted: #98a4c9;
  --mint: #6ef2c0;
  --mint-deep: #20b98a;
  --cyan: #59d8ff;
  --violet: #b38cff;
  --gold: #ffd166;
  --pink: #ff8fc7;
  --danger: #ff7b8a;
  --radius: 22px;
  --nav-h: 74px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "SF Pro Display", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  line-height: 1.4;
}

/* ВК открывает игру в iframe фиксированной высоты — прокручиваем внутри приложения. */
body.is-embedded {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

body.is-embedded #app {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.hidden {
  display: none !important;
}

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

.fine {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

b {
  color: var(--text);
}

/* ---------- Космический фон ---------- */

.space-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 84% -10%, rgba(124, 92, 255, 0.24), transparent 62%),
    radial-gradient(ellipse 65% 45% at 8% 102%, rgba(0, 220, 190, 0.13), transparent 60%),
    linear-gradient(180deg, #070b1e 0%, #0a0920 55%, #050817 100%);
}

.stars {
  position: absolute;
  inset: -25%;
  background-repeat: repeat;
  will-change: transform;
}

.stars-1 {
  opacity: 0.6;
  background-image:
    radial-gradient(1.5px 1.5px at 25px 35px, #ffffff, transparent 60%),
    radial-gradient(1px 1px at 120px 90px, #cfe0ff, transparent 60%),
    radial-gradient(1.8px 1.8px at 190px 40px, #ffffff, transparent 60%),
    radial-gradient(1px 1px at 80px 180px, #9fb6ff, transparent 60%),
    radial-gradient(1.2px 1.2px at 210px 160px, #ffffff, transparent 60%),
    radial-gradient(1px 1px at 160px 220px, #ffd9f0, transparent 60%);
  background-size: 240px 240px;
  animation: starDrift 140s linear infinite;
}

.stars-2 {
  opacity: 0.4;
  background-image:
    radial-gradient(1px 1px at 40px 60px, #ffffff, transparent 60%),
    radial-gradient(1.4px 1.4px at 110px 20px, #b8c9ff, transparent 60%),
    radial-gradient(1px 1px at 20px 120px, #ffffff, transparent 60%),
    radial-gradient(1px 1px at 130px 130px, #ffd9f0, transparent 60%);
  background-size: 150px 150px;
  animation: starDrift 90s linear infinite reverse;
}

.nebula {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(74px);
  opacity: 0.38;
}

.nebula-1 {
  top: 12%;
  right: -160px;
  background: #6c3cff;
}

.nebula-2 {
  bottom: 4%;
  left: -170px;
  background: #00b98d;
  opacity: 0.18;
}

@keyframes starDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-120px, 90px, 0); }
}

/* ---------- Каркас ---------- */

#app {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  min-height: 100dvh;
  margin: 0 auto;
  padding-bottom: calc(var(--nav-h) + 26px + env(safe-area-inset-bottom));
}

body.is-tutorial #app {
  padding-bottom: 150px;
}

body.is-tutorial .bottom-nav {
  display: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  background: linear-gradient(180deg, rgba(7, 11, 30, 0.96) 20%, rgba(7, 11, 30, 0.72) 75%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 12px;
  font-size: 20px;
  background: linear-gradient(145deg, rgba(179, 140, 255, 0.3), rgba(110, 242, 192, 0.16));
  border: 1px solid rgba(179, 140, 255, 0.3);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

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

.brand-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.8px;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-sub {
  max-width: 160px;
  overflow: hidden;
  color: #a9bbf0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wallet {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
}

.res-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 44px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 21, 46, 0.82);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.res-pill:hover {
  border-color: var(--line-strong);
  background: rgba(30, 40, 78, 0.9);
}

.res-pill.crystals {
  border-color: rgba(179, 140, 255, 0.3);
  background: rgba(179, 140, 255, 0.08);
}

.res-pill.crystals .res-ico {
  font-size: 12px;
}

.res-pill:active {
  transform: scale(0.97);
}

.res-ico {
  display: grid;
  place-items: center;
  font-size: 13px;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ico-food {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  flex: none;
  vertical-align: -0.18em;
}

.btn-icon-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-icon-label .ico-food {
  width: 1.2em;
  height: 1.2em;
  vertical-align: 0;
}

.res-ico .ico-food {
  width: 15px;
  height: 15px;
  vertical-align: 0;
}

.res-cap {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
}

.res-timer {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
}

.res-timer:empty {
  display: none;
}

.energy-note {
  display: none;
}

.screen {
  padding: 4px 14px 22px;
  animation: screenIn 0.3s ease both;
}

.screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 2px 16px;
}

.screen-head h1 {
  margin: 2px 0 0;
  font-size: 29px;
  letter-spacing: -0.6px;
  line-height: 1.08;
}

.screen-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border: 1px solid rgba(179, 140, 255, 0.3);
  border-radius: 18px;
  background: radial-gradient(circle at 35% 30%, rgba(179, 140, 255, 0.32), rgba(28, 24, 64, 0.8));
  font-size: 26px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.eyebrow {
  color: var(--mint);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

@keyframes screenIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s, filter 0.2s, background 0.2s, opacity 0.2s;
}

.btn:hover {
  filter: brightness(1.06);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn:disabled {
  opacity: 0.45;
  filter: grayscale(0.4);
  cursor: not-allowed;
  transform: none;
}

.btn.primary {
  background: linear-gradient(135deg, var(--mint) 0%, #55e0ff 100%);
  color: #04271da8;
  color: #04271d;
  box-shadow: 0 10px 26px rgba(74, 232, 190, 0.2);
}

.btn.gold {
  background: linear-gradient(135deg, #ffe29a 0%, var(--gold) 100%);
  color: #3b2700;
  box-shadow: 0 8px 18px rgba(255, 209, 102, 0.16);
}

.btn.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.btn.danger {
  color: var(--danger);
}

.btn.small {
  padding: 8px 11px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
}

.btn.big {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
}

.btn-sub {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  opacity: 0.68;
}

/* ---------- Главный экран ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 208px;
  margin-top: 4px;
  padding: 20px 18px;
  overflow: hidden;
  border-color: rgba(179, 140, 255, 0.27);
  background:
    radial-gradient(ellipse 80% 80% at 92% 6%, rgba(179, 140, 255, 0.34), transparent 58%),
    linear-gradient(135deg, rgba(94, 68, 200, 0.35), rgba(20, 40, 90, 0.56) 55%, rgba(15, 60, 70, 0.34));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(8, 10, 26, 0.38));
  pointer-events: none;
}

.hero-planet {
  position: absolute;
  top: -48px;
  right: -42px;
  width: 210px;
  height: 210px;
  opacity: 0.94;
  pointer-events: none;
}

.planet {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 152px;
  height: 152px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 33% 28%, rgba(255, 255, 255, 0.55), transparent 9%),
    radial-gradient(circle at 36% 32%, #d0b8ff 0%, #8b66e8 34%, #5738a8 62%, #2b1a63 100%);
  box-shadow:
    inset -18px -20px 34px rgba(0, 0, 0, 0.5),
    inset 8px 8px 22px rgba(255, 255, 255, 0.16),
    0 0 58px rgba(160, 120, 255, 0.42);
}

.planet::before,
.planet::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(40, 22, 84, 0.32);
  box-shadow: inset 3px 4px 7px rgba(0, 0, 0, 0.3);
}

.planet::before {
  top: 48px;
  left: 28px;
  width: 30px;
  height: 22px;
}

.planet::after {
  right: 30px;
  bottom: 40px;
  width: 40px;
  height: 28px;
}

.planet-ring {
  position: absolute;
  top: 64px;
  left: -4px;
  width: 236px;
  height: 74px;
  border: 2px solid rgba(216, 199, 255, 0.38);
  border-top-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: rotate(-18deg);
  box-shadow: 0 0 18px rgba(179, 140, 255, 0.12);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 76%;
  max-width: 330px;
}

.hero-copy h1 {
  margin: 5px 0 7px;
  font-size: 30px;
  letter-spacing: -0.9px;
  line-height: 1.04;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.3);
}

.hero-copy p {
  margin: 0;
  color: #c0c9e8;
  font-size: 12.5px;
  line-height: 1.45;
}

.hero-copy .btn {
  margin-top: 13px;
  padding: 10px 16px;
  border-radius: 13px;
  font-size: 12.5px;
}

.hero-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  padding: 5px 9px;
  border: 1px solid rgba(255, 209, 102, 0.45);
  border-radius: 99px;
  background: rgba(59, 39, 0, 0.55);
  color: var(--gold);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 1.3px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.level-card {
  margin-top: 12px;
  padding: 12px 14px;
  border-color: rgba(179, 140, 255, 0.22);
  background:
    radial-gradient(circle at 100% 0, rgba(179, 140, 255, 0.14), transparent 48%),
    rgba(18, 24, 50, 0.72);
}

.level-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.level-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid rgba(255, 209, 102, 0.34);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 209, 102, 0.16), rgba(179, 140, 255, 0.1));
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.level-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  line-height: 1.25;
}

.level-copy b {
  overflow: hidden;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.level-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.level-rep {
  flex: none;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.level-bar {
  height: 6px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.level-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  box-shadow: 0 0 12px rgba(179, 140, 255, 0.35);
  transition: width 0.4s ease;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 24px 2px 10px;
}

.section-head h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.2px;
}

.pill {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
}

.grogli-grid {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.grogli-card {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(164, 182, 255, 0.14);
  border-radius: 20px;
  background:
    radial-gradient(circle at 8% 20%, var(--glow, rgba(110, 242, 192, 0.16)), transparent 46%),
    linear-gradient(160deg, rgba(35, 45, 86, 0.82), rgba(14, 19, 42, 0.92));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  animation: cardIn 0.32s ease both;
}

.grogli-card.cub {
  border-color: rgba(110, 242, 192, 0.26);
}

.grogli-card.egg {
  border-color: rgba(255, 209, 102, 0.32);
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 209, 102, 0.15), transparent 46%),
    linear-gradient(160deg, rgba(58, 47, 70, 0.82), rgba(19, 19, 42, 0.94));
}

.grogli-avatar {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 104px;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 62%, var(--glow, rgba(110, 242, 192, 0.19)), rgba(255, 255, 255, 0.018) 70%);
}

.grogli-avatar svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 112px;
  filter: drop-shadow(0 10px 13px rgba(0, 0, 0, 0.34));
}

.grogli-avatar.cub svg {
  transform: scale(0.87) translateY(5px);
}

.grogli-avatar.egg svg {
  width: 88%;
  animation: eggWobble 3.4s ease-in-out infinite;
}

.grogli-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 2px 0;
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.grogli-info h3 {
  margin: 0;
  overflow: hidden;
  font-size: 16.5px;
  letter-spacing: -0.2px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  flex: none;
  padding: 3px 7px;
  border-radius: 99px;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.badge.adult {
  border: 1px solid rgba(110, 242, 192, 0.3);
  background: rgba(110, 242, 192, 0.1);
  color: var(--mint);
}

.badge.cub {
  border: 1px solid rgba(89, 216, 255, 0.3);
  background: rgba(89, 216, 255, 0.1);
  color: var(--cyan);
}

.badge.egg {
  border: 1px solid rgba(255, 209, 102, 0.32);
  background: rgba(255, 209, 102, 0.1);
  color: var(--gold);
}

.grogli-kind {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10.5px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
}

.card-actions .btn {
  flex: 1 1 auto;
}

.feed-progress {
  height: 8px;
  margin: 10px 0 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
}

.feed-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--cyan));
  box-shadow: 0 0 12px rgba(110, 242, 192, 0.4);
  transition: width 0.35s ease;
}

.feed-label {
  color: var(--muted);
  font-size: 10.5px;
}

.egg-timer {
  margin: 9px 0 0;
  color: var(--gold);
  font-size: 11px;
  font-weight: 600;
}

.empty {
  padding: 26px 22px 24px;
  text-align: center;
}

.empty-ico {
  margin-bottom: 4px;
  font-size: 42px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.empty h3 {
  margin: 0 0 5px;
  font-size: 17px;
}

.empty p {
  max-width: 300px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  max-width: 100%;
  margin-top: 18px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 10.5px;
  text-align: center;
}

.stats-row span {
  white-space: nowrap;
}

.stats-row b {
  color: #cfd8f5;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes eggWobble {
  0%, 78%, 100% { transform: rotate(0deg); }
  82% { transform: rotate(-5deg); }
  86% { transform: rotate(5deg); }
  90% { transform: rotate(-3deg); }
  94% { transform: rotate(2deg); }
}

/* ---------- Экспедиция ---------- */

.exp-idle,
.exp-search,
.exp-result,
.exp-flight {
  padding: 20px;
}

.exp-scene {
  position: relative;
  display: grid;
  place-items: center;
  height: 168px;
  margin: -4px 0 14px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 52%, rgba(156, 120, 255, 0.2), transparent 56%),
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.1) 0 1px, transparent 2px),
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.14) 0 1px, transparent 2px),
    linear-gradient(180deg, rgba(9, 12, 32, 0.6), rgba(20, 17, 48, 0.6));
  border: 1px solid rgba(164, 182, 255, 0.1);
}

.exp-planet-big {
  position: relative;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.55), transparent 8%),
    radial-gradient(circle at 36% 32%, #cbb2ff 0%, #8a63e4 38%, #56349e 67%, #281957 100%);
  box-shadow:
    inset -14px -16px 28px rgba(0, 0, 0, 0.48),
    0 0 46px rgba(160, 120, 255, 0.35);
  animation: floatPlanet 7s ease-in-out infinite;
}

.exp-planet-big::before {
  content: "";
  position: absolute;
  top: 60px;
  left: 17px;
  width: 24px;
  height: 17px;
  border-radius: 50%;
  background: rgba(40, 22, 84, 0.35);
}

.exp-planet-big::after {
  content: "";
  position: absolute;
  top: 68px;
  left: -54px;
  width: 226px;
  height: 62px;
  border: 2px solid rgba(216, 199, 255, 0.32);
  border-radius: 50%;
  transform: rotate(-17deg);
}

.exp-spark {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
  animation: twinkle 3s ease-in-out infinite;
}

.exp-spark-1 { top: 24px; left: 60px; }
.exp-spark-2 { top: 48px; right: 52px; animation-delay: 0.9s; }
.exp-spark-3 { bottom: 30px; left: 100px; animation-delay: 1.7s; }

.exp-idle h2,
.exp-flight h2,
.exp-search h2,
.exp-result h2 {
  margin: 0 0 6px;
  font-size: 21px;
  letter-spacing: -0.4px;
  text-align: center;
}

.exp-idle > p,
.exp-flight > p,
.exp-search > p,
.exp-result > p {
  margin: 0 auto;
  max-width: 380px;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
}

.cost-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 14px 0;
}

.cost-chip {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  color: #d8e0fa;
  font-size: 11px;
  font-weight: 700;
}

.exp-idle .fine,
.exp-search .fine {
  text-align: center;
}

/* Полёт */

.exp-flight {
  padding-top: 26px;
}

.flight-scene {
  position: relative;
  display: grid;
  place-items: center;
  height: 210px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 72%, rgba(90, 232, 255, 0.12), transparent 40%),
    linear-gradient(180deg, #080c22, #10153a 70%, #191442);
  border: 1px solid rgba(164, 182, 255, 0.12);
}

.rocket {
  position: relative;
  z-index: 2;
  font-size: 56px;
  transform: rotate(-2deg);
  filter: drop-shadow(0 0 18px rgba(89, 216, 255, 0.4));
  animation: rocketFly 2.6s ease-in-out infinite;
}

.speed-lines {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 18px,
    rgba(160, 200, 255, 0.25) 18px 19px,
    transparent 19px 40px
  );
  animation: speedLines 0.55s linear infinite;
}

.flight-stars {
  position: absolute;
  top: 34px;
  left: 26%;
  color: #fff;
  font-size: 12px;
  opacity: 0.65;
  animation: twinkle 1.8s ease-in-out infinite;
}

.flight-bar {
  height: 7px;
  margin: 18px auto 0;
  max-width: 300px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
}

.flight-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--cyan));
  box-shadow: 0 0 14px rgba(110, 242, 192, 0.5);
}

.flight-timer {
  margin: 8px 0 0;
  color: var(--mint);
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 16px rgba(110, 242, 192, 0.25);
}

.flight-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 8px;
}

.flight-actions .btn {
  min-width: 150px;
}

.exp-flight .flight-note {
  margin: 0 auto;
  max-width: 340px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

/* Поиск */

.search-scene {
  position: relative;
  height: 224px;
  margin: -4px 0 16px;
  overflow: hidden;
  border: 1px solid rgba(164, 182, 255, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 68% 18%, rgba(179, 140, 255, 0.22), transparent 42%),
    radial-gradient(1px 1px at 18% 18%, rgba(255, 255, 255, 0.7), transparent 2px),
    linear-gradient(180deg, #0c1130 0%, #191b4a 58%, #2d1e57 100%);
}

.search-planet {
  position: absolute;
  top: -40px;
  right: -36px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #c7afff, #6843b8 50%, #2c1a60 100%);
  box-shadow: inset -16px -18px 28px rgba(0, 0, 0, 0.42), 0 0 42px rgba(160, 120, 255, 0.24);
  opacity: 0.5;
}

.search-grass {
  position: absolute;
  z-index: 2;
  right: -10%;
  bottom: -56px;
  left: -10%;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2c215b, #171233 65%);
  box-shadow: 0 -10px 30px rgba(110, 242, 192, 0.05);
}

.grogli-peek {
  position: absolute;
  z-index: 1;
  bottom: 18px;
  left: 50%;
  width: 150px;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 22px rgba(110, 242, 192, 0.28));
  animation: peek 3s ease-in-out infinite;
}

.grogli-peek svg {
  display: block;
  width: 100%;
  height: auto;
}

.search-rock {
  position: absolute;
  z-index: 3;
  bottom: 34px;
  border-radius: 50% 50% 20% 20%;
  background: linear-gradient(160deg, #3a3370, #211a47);
  box-shadow: inset -4px -5px 9px rgba(0, 0, 0, 0.35);
}

.search-rock-1 {
  left: 20px;
  width: 56px;
  height: 38px;
}

.search-rock-2 {
  right: 30px;
  bottom: 24px;
  width: 40px;
  height: 26px;
}

.search-scene + h2 {
  margin-top: 2px;
}

.exp-search .btn {
  margin-top: 12px;
}

#btn-return-empty {
  width: 100%;
  margin-top: 8px;
}

/* Результат */

.exp-result {
  position: relative;
  overflow: hidden;
  padding-top: 28px;
}

.result-glow {
  position: absolute;
  top: -90px;
  left: 50%;
  width: 300px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 242, 192, 0.22), transparent 68%);
  transform: translateX(-50%);
  pointer-events: none;
}

.result-avatars {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}

.result-avatar {
  width: 112px;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.35));
  animation: avatarIn 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.25) both;
}

.result-avatar:nth-child(2) {
  animation-delay: 0.12s;
}

.result-avatar svg {
  display: block;
  width: 100%;
  height: auto;
}

.reward-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 14px 0 2px;
}

.reward-line:empty {
  display: none;
}

.reward-line span {
  padding: 6px 11px;
  border: 1px solid rgba(255, 209, 102, 0.3);
  border-radius: 99px;
  background: rgba(255, 209, 102, 0.09);
  color: var(--gold);
  font-size: 11.5px;
  font-weight: 700;
}

.exp-result .btn {
  margin-top: 14px;
}

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

@keyframes twinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

@keyframes rocketFly {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-11px) rotate(-2deg); }
}

@keyframes speedLines {
  from { transform: translateY(-40px); }
  to { transform: translateY(0); }
}

@keyframes peek {
  0%, 100% { transform: translateX(-50%) translateY(14px); }
  45%, 55% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes avatarIn {
  from { opacity: 0; transform: scale(0.7) translateY(18px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---------- Магазин ---------- */

.shop-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-card {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px;
}

.shop-ico {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  font-size: 24px;
}

.shop-ico.food {
  border: 1px solid rgba(255, 209, 102, 0.25);
  background: rgba(255, 209, 102, 0.08);
}

.shop-ico .ico-food {
  width: 28px;
  height: 28px;
  vertical-align: 0;
}

.shop-ico.energy {
  border: 1px solid rgba(89, 216, 255, 0.25);
  background: rgba(89, 216, 255, 0.08);
}

.shop-ico.habitat {
  border: 1px solid rgba(110, 242, 192, 0.25);
  background: rgba(110, 242, 192, 0.08);
}

.shop-ico.ship {
  border: 1px solid rgba(255, 209, 102, 0.25);
  background: rgba(255, 209, 102, 0.08);
}

.shop-ico.scanner {
  border: 1px solid rgba(179, 140, 255, 0.25);
  background: rgba(179, 140, 255, 0.08);
}

.shop-ico.crystal {
  border: 1px solid rgba(89, 216, 255, 0.3);
  background: rgba(89, 216, 255, 0.1);
  color: #a8ecff;
}

.shop-ico.ad {
  border: 1px solid rgba(255, 143, 176, 0.3);
  background: rgba(255, 143, 176, 0.1);
  color: #ffd3e0;
}

.shop-card.locked {
  border-style: dashed;
  opacity: 0.62;
}

.shop-info {
  min-width: 0;
}

.shop-info h3 {
  margin: 0;
  font-size: 14.5px;
}

.shop-info p {
  margin: 2px 0 0;
  font-size: 10.5px;
  line-height: 1.35;
}

.shop-card .btn {
  flex: none;
  white-space: nowrap;
}

.howto,
.settings {
  margin-top: 14px;
  padding: 18px;
}

.howto h3,
.settings h3 {
  margin: 0 0 10px;
  font-size: 15.5px;
}

.howto ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.howto li {
  position: relative;
  margin: 0 0 8px;
  padding-left: 17px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}

.howto li::before {
  content: "✦";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--mint);
  font-size: 9px;
}

.howto li:last-child {
  margin-bottom: 0;
}

.settings-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.settings .fine {
  margin-top: 12px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
  font-size: 11.5px;
}

.legal-links a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-links a:hover {
  color: var(--text);
}

.guest-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 13px 15px;
  border-color: rgba(110, 242, 192, 0.28);
  background: linear-gradient(135deg, rgba(110, 242, 192, 0.08), rgba(179, 140, 255, 0.08));
}

.guest-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 180px;
  flex: 1 1 220px;
}

.guest-copy b {
  font-size: 13px;
}

.guest-copy span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.guest-bar .settings-row {
  flex: none;
}

.fine.account-error.error {
  color: var(--danger);
}

.recovery-code {
  margin: 14px 0 4px;
  padding: 14px;
  border: 1px dashed rgba(110, 242, 192, 0.5);
  border-radius: 14px;
  background: rgba(110, 242, 192, 0.08);
  color: var(--mint);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 18px;
  letter-spacing: 1.5px;
  text-align: center;
  word-break: break-all;
  user-select: all;
}

/* ---------- Нижнее меню ---------- */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 35;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  width: 100%;
  max-width: 560px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(164, 182, 255, 0.13);
  background: rgba(8, 12, 30, 0.93);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 7px 4px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.nav-btn span {
  font-size: 20px;
  line-height: 1.1;
  filter: grayscale(0.55);
  transition: filter 0.2s, transform 0.2s;
}

.nav-btn.active {
  background: rgba(110, 242, 192, 0.08);
  color: var(--mint);
}

.nav-btn.active span {
  filter: none;
  transform: translateY(-1px);
}

/* ---------- Помощник ---------- */

.coach {
  position: fixed;
  bottom: calc(14px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: min(92%, 520px);
  pointer-events: none;
  transform: translateX(-50%);
  animation: coachIn 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.15) both;
}

.coach-robot {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--mint), #3ec8ff);
  box-shadow: 0 8px 22px rgba(60, 230, 200, 0.28);
  font-size: 23px;
}

.coach-bubble {
  position: relative;
  padding: 9px 13px 10px;
  border: 1px solid rgba(110, 242, 192, 0.4);
  border-radius: 16px;
  background: rgba(14, 21, 46, 0.97);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.coach-bubble::before {
  content: "";
  position: absolute;
  top: 18px;
  left: -7px;
  width: 12px;
  height: 12px;
  border-bottom: 1px solid rgba(110, 242, 192, 0.4);
  border-left: 1px solid rgba(110, 242, 192, 0.4);
  background: rgba(14, 21, 46, 0.97);
  transform: rotate(45deg);
}

.coach-name {
  color: var(--mint);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.coach-bubble p {
  margin: 3px 0 0;
  color: #e1e7ff;
  font-size: 12.5px;
  line-height: 1.4;
}

.tut-target {
  position: relative;
  z-index: 2;
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 15px;
  animation: tutPulse 1.5s ease-in-out infinite;
}

@keyframes tutPulse {
  0%, 100% { outline-color: rgba(255, 209, 102, 0.95); outline-offset: 3px; }
  50% { outline-color: rgba(255, 209, 102, 0.35); outline-offset: 6px; }
}

@keyframes coachIn {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- Модальные окна ---------- */

.modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 15, 0.74);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.modal {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  max-height: 88dvh;
  padding: 22px;
  overflow-y: auto;
  border-radius: 26px;
  background: linear-gradient(165deg, #1b2448, #101528);
  animation: modalIn 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.modal h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.modal p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.modal p:last-child {
  margin-bottom: 0;
}

.modal .modal-hero {
  margin: 0 auto 10px;
  font-size: 46px;
  line-height: 1;
  text-align: center;
  animation: floatRobot 3.6s ease-in-out infinite;
}

.modal .modal-kicker {
  margin: 0 0 4px;
  color: var(--mint);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-align: center;
  text-transform: uppercase;
}

.modal .modal-center {
  text-align: center;
}

.modal ul {
  margin: 10px 0 4px;
  padding: 0;
  list-style: none;
}

.modal li {
  position: relative;
  margin: 0 0 7px;
  padding-left: 17px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.modal li::before {
  content: "✦";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--mint);
  font-size: 9px;
}

.modal-input {
  width: 100%;
  margin: 10px 0 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s;
}

.modal-input::placeholder {
  color: #727fa4;
}

.modal-input:focus {
  border-color: var(--mint);
}

.modal-consent {
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
  text-align: center;
}

.modal-consent a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.modal-actions .btn {
  padding: 13px;
  border-radius: 14px;
  font-size: 13.5px;
}

.modal.small {
  max-width: 380px;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes floatRobot {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-7px) rotate(3deg); }
}

/* ---------- Тост и конфетти ---------- */

.toast {
  position: fixed;
  top: calc(70px + env(safe-area-inset-top));
  left: 50%;
  z-index: 80;
  max-width: 92%;
  padding: 9px 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(14, 20, 42, 0.97);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -14px);
  transition: opacity 0.25s, transform 0.25s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

#fx {
  position: fixed;
  inset: 0;
  z-index: 55;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- Планеты и Мурлоука ---------- */

.sector-tabs {
  display: flex;
  gap: 8px;
  margin: 10px 0 12px;
}

.sector-tab {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 24, 50, 0.66);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.sector-tab b {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sector-tab small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sector-tab:hover {
  border-color: var(--line-strong);
}

.sector-tab:active {
  transform: scale(0.98);
}

.sector-tab.active {
  border-color: rgba(110, 242, 192, 0.55);
  background: linear-gradient(135deg, rgba(110, 242, 192, 0.1), rgba(24, 32, 66, 0.8));
  box-shadow: 0 0 0 1px rgba(110, 242, 192, 0.08);
}

.sector-tab.locked {
  border-style: dashed;
  opacity: 0.62;
}

.sector-tab.locked small {
  color: #aab5d8;
}

.sector-tab.developing {
  border-style: dashed;
  background: rgba(179, 140, 255, 0.06);
}

.sector-tab.developing small {
  color: #cbb8ff;
}

.sector-tab.developing.active {
  border-color: rgba(179, 140, 255, 0.6);
  background: linear-gradient(135deg, rgba(179, 140, 255, 0.14), rgba(24, 32, 66, 0.8));
  box-shadow: 0 0 0 1px rgba(179, 140, 255, 0.1);
}

.sector-teaser {
  display: grid;
  justify-items: center;
  gap: 16px;
  margin-bottom: 12px;
  padding: 22px 18px;
  border: 1px solid rgba(179, 140, 255, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(179, 140, 255, 0.14), transparent 55%),
    rgba(12, 16, 38, 0.72);
  text-align: center;
}

.teaser-radar {
  position: relative;
  width: 156px;
  height: 156px;
  overflow: hidden;
  border: 1px solid rgba(110, 242, 192, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(110, 242, 192, 0.1), rgba(7, 11, 30, 0.86) 72%);
  box-shadow:
    inset 0 0 28px rgba(110, 242, 192, 0.08),
    0 0 30px rgba(110, 242, 192, 0.08);
}

.teaser-radar::before {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49.6%, rgba(110, 242, 192, 0.12) 49.6% 50.4%, transparent 50.4%),
    linear-gradient(0deg, transparent 49.6%, rgba(110, 242, 192, 0.12) 49.6% 50.4%, transparent 50.4%);
  content: '';
}

.teaser-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 308deg, rgba(110, 242, 192, 0.3) 342deg, transparent 360deg);
  animation: radarSweep 3.8s linear infinite;
}

.teaser-ring {
  position: absolute;
  border: 1px solid rgba(110, 242, 192, 0.16);
  border-radius: 50%;
}

.teaser-ring-1 { inset: 10%; }
.teaser-ring-2 { inset: 28%; }
.teaser-ring-3 { inset: 44%; }

.teaser-blip {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  opacity: 0;
  animation: teaserBlip 3.2s ease-in-out infinite;
}

.teaser-blip-1 { top: 27%; left: 62%; animation-delay: 0.2s; }
.teaser-blip-2 { top: 63%; left: 33%; animation-delay: 1.1s; }
.teaser-blip-3 { top: 71%; left: 68%; animation-delay: 2.2s; }

.teaser-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 30px;
  filter: drop-shadow(0 0 12px rgba(110, 242, 192, 0.5));
}

.teaser-copy {
  display: grid;
  justify-items: center;
  gap: 6px;
  max-width: 460px;
}

.teaser-copy h2 {
  margin: 0;
  font-size: 22px;
}

.teaser-copy .eyebrow {
  color: #cbb8ff;
}

.teaser-copy .muted {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
}

.teaser-phrase {
  position: relative;
  width: 100%;
  min-height: 20px;
  margin: 2px 0;
  color: var(--mint);
  font-size: 12px;
  font-weight: 600;
}

.teaser-phrase span {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: teaserPhrase 16s infinite;
}

.teaser-phrase span:nth-child(1) { animation-delay: 0s; }
.teaser-phrase span:nth-child(2) { animation-delay: 4s; }
.teaser-phrase span:nth-child(3) { animation-delay: 8s; }
.teaser-phrase span:nth-child(4) { animation-delay: 12s; }

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

@keyframes teaserBlip {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes teaserPhrase {
  0%, 2% { opacity: 0; transform: translateY(6px); }
  6%, 22% { opacity: 1; transform: translateY(0); }
  27%, 100% { opacity: 0; transform: translateY(-5px); }
}

.destinations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.dest-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 9px 8px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(18, 24, 50, 0.7);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.dest-card:hover {
  border-color: var(--line-strong);
}

.dest-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.dest-card:active {
  transform: scale(0.98);
}

.dest-card:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.dest-card.active {
  border-color: rgba(110, 242, 192, 0.55);
  background: linear-gradient(135deg, rgba(110, 242, 192, 0.11), rgba(24, 32, 66, 0.8));
  box-shadow: 0 0 0 1px rgba(110, 242, 192, 0.08), 0 8px 18px rgba(0, 0, 0, 0.16);
}

.dest-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: none;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 15px;
}

.dest-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.dest-copy b {
  overflow: hidden;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dest-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dest-badge {
  position: absolute;
  top: -6px;
  right: 7px;
  padding: 2px 6px;
  border: 1px solid rgba(255, 209, 102, 0.4);
  border-radius: 99px;
  background: #3d2a08;
  color: var(--gold);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.dest-card.locked {
  border-style: dashed;
  opacity: 0.62;
}

.dest-card.locked .dest-copy b {
  color: #aeb8d8;
}

.dest-badge.lock {
  border-color: rgba(164, 182, 255, 0.24);
  background: #161c36;
  color: #aab5d8;
  text-transform: none;
  letter-spacing: 0;
}

.dest-card.unknown:not(.locked) .dest-icon {
  border: 1px dashed rgba(179, 140, 255, 0.4);
  background: rgba(179, 140, 255, 0.08);
  color: #cfc0ff;
}

.dest-badge.unknown {
  border-color: rgba(179, 140, 255, 0.36);
  background: #221a3d;
  color: #cbb8ff;
  text-transform: none;
  letter-spacing: 0;
}

.dest-card.locked.active {
  border-color: var(--line);
  background: rgba(18, 24, 50, 0.7);
}

.exp-scene-grogli,
.exp-scene-murloouka {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.exp-scene.murloouka-scene {
  background:
    radial-gradient(circle at 28% 22%, rgba(225, 214, 255, 0.14), transparent 24%),
    radial-gradient(circle at 50% 58%, rgba(75, 230, 160, 0.14), transparent 55%),
    radial-gradient(circle at 78% 75%, rgba(255, 75, 75, 0.12), transparent 46%),
    linear-gradient(180deg, #10132f 0%, #1d1747 58%, #2a1650 100%);
}

.scene-moon {
  position: absolute;
  top: 15px;
  left: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, #ffffff 0 2px, transparent 3px),
    radial-gradient(circle at 62% 58%, rgba(88, 71, 130, 0.35) 0 5px, transparent 6px),
    radial-gradient(circle at 40% 72%, rgba(88, 71, 130, 0.28) 0 4px, transparent 5px),
    radial-gradient(circle at 35% 30%, #f4ecff, #cfc2e8 55%, #9f8cc4 100%);
  box-shadow: 0 0 30px rgba(225, 214, 255, 0.28);
  opacity: 0.9;
}

.scene-crystal {
  position: absolute;
  bottom: 4px;
  background: linear-gradient(160deg, rgba(216, 180, 255, 0.85), rgba(96, 48, 168, 0.55));
  clip-path: polygon(50% 0, 82% 38%, 68% 100%, 30% 100%, 16% 36%);
  filter: drop-shadow(0 0 10px rgba(179, 140, 255, 0.4));
}

.scene-crystal-1 {
  left: 14px;
  width: 34px;
  height: 66px;
  transform: rotate(-8deg);
}

.scene-crystal-2 {
  right: 22px;
  width: 25px;
  height: 48px;
  transform: rotate(9deg);
  opacity: 0.75;
}

.scene-murloouka-art {
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 225px;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 20px rgba(255, 75, 75, 0.2));
}

.scene-murloouka-art svg {
  display: block;
  width: 100%;
  height: auto;
}

.scene-rare {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  max-width: 55%;
  padding: 4px 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 209, 102, 0.4);
  border-radius: 99px;
  background: rgba(38, 25, 4, 0.65);
  color: var(--gold);
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-mode-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  padding: 4px 9px;
  border: 1px solid rgba(164, 182, 255, 0.28);
  border-radius: 99px;
  background: rgba(18, 24, 50, 0.72);
  color: #dbe4ff;
  font-family: inherit;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.scene-mode-btn:hover {
  border-color: rgba(110, 242, 192, 0.5);
  background: rgba(24, 32, 66, 0.88);
}

.scene-mode-btn:active {
  transform: scale(0.96);
}

.scene-unknown {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 5px;
  pointer-events: none;
  text-align: center;
}

.scene-unknown-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px dashed rgba(199, 180, 255, 0.5);
  border-radius: 50%;
  background: rgba(30, 20, 58, 0.55);
  color: #d9c8ff;
  font-size: 20px;
  font-weight: 800;
  text-shadow: 0 0 14px rgba(179, 140, 255, 0.8);
  animation: unknownPulse 2.8s ease-in-out infinite;
}

.scene-unknown-text {
  color: #c8bce6;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(6, 8, 20, 0.85);
}

.exp-scene.landscape-mode .scene-murloouka-art,
.exp-scene.unknown-scene .scene-murloouka-art {
  opacity: 0;
  visibility: hidden;
}

.exp-scene.unknown-scene .scene-rare {
  opacity: 0.75;
}

.grogli-scene-art {
  width: 122px;
  bottom: 0;
  filter: drop-shadow(0 0 18px rgba(110, 242, 192, 0.22));
}

@keyframes unknownPulse {
  0%, 100% { transform: scale(1); opacity: 0.82; }
  50% { transform: scale(1.08); opacity: 1; }
}

.exp-scene.lumikryl-scene {
  background: linear-gradient(180deg, #07041a 0%, #2c1248 62%, #3a1a4c 100%);
}

.scene-stars {
  position: absolute;
  top: 28px;
  right: 34px;
  color: #ffe6ff;
  font-size: 14px;
  letter-spacing: 12px;
  opacity: 0.6;
  text-shadow: 0 0 12px #ff9ecb;
  animation: twinkle 3s ease-in-out infinite;
}

.scene-murloouka-art.lumikryl-art {
  z-index: 1;
  width: 200px;
  bottom: 0;
  filter: drop-shadow(0 0 24px rgba(255, 158, 203, 0.22));
}

.exp-scene.kriozhil-scene {
  background: linear-gradient(180deg, #050d1c 0%, #123d57 62%, #0e2c44 100%);
}

.scene-aurora {
  position: absolute;
  top: -26px;
  width: 230px;
  height: 120px;
  border-radius: 50%;
  filter: blur(16px);
  pointer-events: none;
  animation: auroraShift 13s ease-in-out infinite alternate;
}

.scene-aurora.aurora-1 {
  left: -40px;
  background: radial-gradient(ellipse at 50% 50%, rgba(110, 255, 205, 0.62), transparent 66%);
}

.scene-aurora.aurora-2 {
  right: -50px;
  background: radial-gradient(ellipse at 50% 50%, rgba(130, 205, 255, 0.52), transparent 66%);
  animation-delay: -6s;
  animation-duration: 17s;
}

@keyframes auroraShift {
  0% { transform: translate3d(-10px, 0, 0) scale(1); opacity: 0.3; }
  50% { opacity: 0.65; }
  100% { transform: translate3d(16px, 10px, 0) scale(1.18); opacity: 0.4; }
}

.scene-moon.ice-moon {
  top: 16px;
  left: 26px;
  right: auto;
  width: 34px;
  height: 34px;
  background: radial-gradient(circle at 34% 30%, #ffffff, #d6f3ff 55%, #8fc6e2 100%);
  box-shadow: 0 0 30px rgba(170, 230, 255, 0.55);
  opacity: 0.95;
}

.scene-peak {
  position: absolute;
  bottom: 0;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.scene-peak.peak-far-1 {
  left: -26px;
  width: 96px;
  height: 84px;
  opacity: 0.55;
  background: linear-gradient(180deg, #e6fbff 0 14%, #4d86a6 14% 58%, #1d4258 100%);
}

.scene-peak.peak-far-2 {
  right: -30px;
  width: 104px;
  height: 92px;
  opacity: 0.5;
  background: linear-gradient(180deg, #e6fbff 0 12%, #4a82a2 12% 56%, #1b3f55 100%);
}

.scene-snowdrift {
  position: absolute;
  right: -12%;
  bottom: -26px;
  left: -12%;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 0%, rgba(226, 249, 255, 0.55), rgba(150, 210, 235, 0.18) 52%, transparent 74%);
  pointer-events: none;
}

.scene-snow {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.scene-snow span {
  position: absolute;
  top: -14px;
  color: #eafcff;
  line-height: 1;
  opacity: 0;
  text-shadow: 0 0 8px rgba(150, 225, 255, 0.9);
  animation-name: sceneSnowFall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes sceneSnowFall {
  0% { transform: translate3d(0, -12px, 0) rotate(0deg); opacity: 0; }
  12% { opacity: 0.85; }
  85% { opacity: 0.7; }
  100% { transform: translate3d(16px, 190px, 0) rotate(180deg); opacity: 0; }
}

.scene-murloouka-art.kriozhil-art {
  z-index: 1;
  width: 205px;
  bottom: 0;
  filter: drop-shadow(0 0 24px rgba(89, 216, 255, 0.24));
}

.kriozhil-svg .krio-flake {
  animation: krioFlake 5s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.kriozhil-svg .flake-b { animation-delay: -1.7s; }
.kriozhil-svg .flake-c { animation-delay: -3.1s; }
.kriozhil-svg .flake-d { animation-delay: -2.4s; }

@keyframes krioFlake {
  0%, 100% { opacity: 0.35; transform: translateY(0) scale(1); }
  50% { opacity: 1; transform: translateY(-3px) scale(1.08); }
}

.exp-scene.plasmik-scene {
  background: linear-gradient(180deg, #100417 0%, #4a1230 65%, #3a0d22 100%);
}

.scene-reef {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 68px;
  background: linear-gradient(180deg, rgba(255, 122, 69, 0.55), rgba(112, 18, 58, 0.8));
  clip-path: polygon(0 100%, 0 55%, 8% 78%, 16% 28%, 24% 70%, 34% 18%, 44% 66%, 55% 34%, 64% 72%, 74% 24%, 84% 68%, 93% 40%, 100% 72%, 100% 100%);
  filter: drop-shadow(0 -4px 12px rgba(255, 138, 76, 0.3));
}

.scene-plasma-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff8c9, #ff9a4d 55%, rgba(255, 61, 127, 0) 72%);
  filter: drop-shadow(0 0 16px rgba(255, 138, 76, 0.5));
  animation: orbFloat 5.5s ease-in-out infinite;
}

.scene-plasma-orb.orb-1 {
  top: 34px;
  left: 30px;
  width: 44px;
  height: 44px;
  opacity: 0.8;
}

.scene-plasma-orb.orb-2 {
  top: 66px;
  right: 42px;
  width: 28px;
  height: 28px;
  opacity: 0.65;
  animation-delay: 1.4s;
}

.scene-plasma-orb.orb-3 {
  top: 22px;
  right: 92px;
  width: 16px;
  height: 16px;
  opacity: 0.55;
  animation-delay: 2.6s;
}

.scene-murloouka-art.plasmik-art {
  z-index: 1;
  width: 210px;
  bottom: 2px;
  filter: drop-shadow(0 0 26px rgba(255, 138, 76, 0.3));
}

.exp-scene.eholit-scene {
  background: linear-gradient(180deg, #0b0820 0%, #33234f 62%, #150e2a 100%);
}

.scene-monolith {
  position: absolute;
  bottom: 0;
  background: linear-gradient(180deg, rgba(154, 144, 194, 0.42), rgba(58, 48, 96, 0.72));
  clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 0 12px rgba(179, 140, 255, 0.18));
}

.scene-monolith.mono-1 {
  left: 16px;
  width: 36px;
  height: 92px;
  opacity: 0.55;
}

.scene-monolith.mono-2 {
  right: 24px;
  width: 44px;
  height: 128px;
  opacity: 0.6;
}

.scene-monolith.mono-3 {
  right: 82px;
  width: 24px;
  height: 66px;
  opacity: 0.4;
}

.scene-echo-ring {
  position: absolute;
  top: 48%;
  left: 50%;
  border: 1px solid rgba(126, 247, 230, 0.32);
  border-radius: 50%;
  animation: echoPulse 3.8s ease-out infinite;
}

.scene-echo-ring.ring-1 {
  width: 168px;
  height: 168px;
}

.scene-echo-ring.ring-2 {
  width: 252px;
  height: 252px;
  animation-delay: 1.9s;
}

.scene-murloouka-art.eholit-art {
  z-index: 1;
  width: 198px;
  bottom: 0;
  filter: drop-shadow(0 0 24px rgba(126, 247, 230, 0.22));
}

.eholit-svg .eho-shard {
  transform-box: fill-box;
  transform-origin: center;
  animation: ehoShard 7s ease-in-out infinite;
}

.eholit-svg .shard-b {
  animation-duration: 8.4s;
  animation-delay: -2.2s;
}

.eholit-svg .shard-c {
  animation-duration: 6.2s;
  animation-delay: -4.1s;
}

.eholit-svg .shard-d {
  animation-duration: 7.6s;
  animation-delay: -1.3s;
}

.eholit-svg .eho-wave {
  transform-box: fill-box;
  transform-origin: center;
  animation: ehoWave 6s ease-in-out infinite;
}

.eholit-svg .w2 {
  animation-duration: 7.4s;
  animation-delay: -3s;
}

@keyframes ehoShard {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-4px) rotate(5deg); }
}

@keyframes ehoWave {
  0%, 100% { opacity: 0.12; transform: scale(0.96); }
  50% { opacity: 0.42; transform: scale(1.03); }
}

.exp-scene.starwhale-scene {
  background: linear-gradient(180deg, #040817 0%, #12305c 62%, #0a2040 100%);
}

.scene-moon.starwhale-moon {
  width: 54px;
  height: 54px;
  opacity: 0.5;
  background: radial-gradient(circle at 35% 30%, #dcefff, #6aa9ff 60%, #3455a8 100%);
}

.scene-murloouka-art.starwhale-art {
  z-index: 1;
  width: 258px;
  bottom: 0;
  filter: drop-shadow(0 0 26px rgba(120, 180, 255, 0.28));
}

.starwhale-art svg {
  transform-origin: 50% 92%;
  animation: whaleBob 6.5s ease-in-out infinite;
}

.starwhale-svg .whale-spout {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: whaleSpout 5.6s ease-in-out infinite;
}

.starwhale-svg .whale-trail {
  transform-box: fill-box;
  transform-origin: center;
  animation: whaleTrail 5s ease-in-out infinite;
}

@keyframes whaleBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes whaleSpout {
  0%, 100% { opacity: 0.45; transform: translateY(0) scale(1); }
  50% { opacity: 1; transform: translateY(-4px) scale(1.04); }
}

@keyframes whaleTrail {
  0%, 100% { opacity: 0.35; transform: translateX(0); }
  50% { opacity: 0.9; transform: translateX(-3px); }
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes echoPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.72);
    opacity: 0.55;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.28);
    opacity: 0;
  }
}

/* ---------- Второй сектор: сцены ---------- */

.exp-scene.aurilon-scene {
  background:
    radial-gradient(circle at 26% 18%, rgba(127, 212, 255, 0.24), transparent 40%),
    radial-gradient(circle at 74% 72%, rgba(255, 158, 214, 0.18), transparent 46%),
    linear-gradient(180deg, #08162c 0%, #183b57 55%, #3c2a62 100%);
}

.scene-aurora {
  position: absolute;
  top: -38px;
  left: -20px;
  width: 360px;
  height: 132px;
  background: linear-gradient(100deg, transparent 8%, rgba(168, 255, 242, 0.55) 32%, rgba(199, 165, 255, 0.5) 56%, rgba(255, 158, 214, 0.4) 78%, transparent 96%);
  filter: blur(18px);
  transform: rotate(-7deg);
}

.scene-glass {
  position: absolute;
  width: 34px;
  height: 72px;
  clip-path: polygon(50% 0, 100% 28%, 82% 100%, 18% 100%, 0 28%);
  background: linear-gradient(150deg, rgba(235, 255, 255, 0.7), rgba(127, 212, 255, 0.16));
  box-shadow: 0 0 18px rgba(168, 255, 242, 0.25);
}

.scene-glass.shard-a {
  left: 24px;
  bottom: 10px;
  opacity: 0.55;
  transform: rotate(-14deg);
}

.scene-glass.shard-b {
  right: 32px;
  bottom: 18px;
  width: 24px;
  height: 52px;
  opacity: 0.42;
  transform: rotate(12deg);
}

.scene-murloouka-art.aurilon-art {
  width: 238px;
  bottom: 0;
  filter: drop-shadow(0 0 26px rgba(127, 212, 255, 0.3));
}

.exp-scene.kryptocit-scene {
  background:
    radial-gradient(circle at 44% 26%, rgba(255, 198, 92, 0.2), transparent 40%),
    radial-gradient(circle at 74% 76%, rgba(126, 230, 212, 0.1), transparent 46%),
    linear-gradient(180deg, #1c1009 0%, #3b2410 56%, #5a3513 100%);
}

.scene-hive {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    repeating-linear-gradient(60deg, transparent 0 20px, rgba(255, 198, 92, 0.32) 20px 22px),
    repeating-linear-gradient(-60deg, transparent 0 20px, rgba(255, 198, 92, 0.2) 20px 22px);
}

.scene-amber {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 190px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 120, 0.34), transparent 68%);
  filter: blur(12px);
  transform: translateX(-50%);
}

.scene-murloouka-art.kryptocit-art {
  width: 212px;
  bottom: 0;
  filter: drop-shadow(0 0 24px rgba(255, 198, 92, 0.26));
}

.exp-scene.miceloid-scene {
  background:
    radial-gradient(circle at 28% 22%, rgba(228, 154, 255, 0.22), transparent 42%),
    radial-gradient(circle at 72% 70%, rgba(255, 158, 203, 0.14), transparent 48%),
    linear-gradient(180deg, #1a0d2b 0%, #35194c 58%, #4d2460 100%);
}

.scene-spores {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image: radial-gradient(circle, rgba(246, 214, 255, 0.8) 0 1.5px, transparent 2px);
  background-size: 36px 32px;
}

.scene-mushroom-cloud {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 250px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(228, 154, 255, 0.25), transparent 70%);
  filter: blur(16px);
  transform: translateX(-50%);
}

.scene-murloouka-art.miceloid-art {
  width: 208px;
  bottom: 0;
  filter: drop-shadow(0 0 24px rgba(228, 154, 255, 0.28));
}

.exp-scene.serpens-scene {
  background:
    radial-gradient(circle at 66% 26%, rgba(101, 227, 176, 0.18), transparent 42%),
    radial-gradient(circle at 30% 74%, rgba(84, 143, 216, 0.14), transparent 46%),
    linear-gradient(180deg, #07171d 0%, #10313a 56%, #183f4a 100%);
}

.scene-orbit {
  position: absolute;
  top: 38px;
  left: 22px;
  width: 276px;
  height: 96px;
  border: 1px solid rgba(141, 245, 208, 0.34);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.scene-planet.serpens-planet {
  position: absolute;
  top: 60%;
  left: 49%;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.75) 0 6%, transparent 22%),
    radial-gradient(circle at 34% 28%, #c6f6ff 0%, #6fa6e8 32%, #3a66b4 62%, #1d2757 100%);
  box-shadow:
    inset -12px -14px 22px rgba(0, 0, 0, 0.42),
    0 0 30px rgba(90, 140, 220, 0.32);
}

.scene-planet.serpens-planet::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 176%;
  height: 46%;
  border: 2px solid rgba(141, 245, 208, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
}

.scene-orbit.orbit-2 {
  top: 22px;
  left: 2px;
  width: 316px;
  height: 128px;
  opacity: 0.5;
  transform: rotate(-10deg);
}

.scene-murloouka-art.serpens-art {
  width: 220px;
  bottom: 0;
  filter: drop-shadow(0 0 24px rgba(101, 227, 176, 0.28));
}

.exp-scene.tiktak-scene {
  background:
    radial-gradient(circle at 50% 42%, rgba(224, 166, 75, 0.18), transparent 48%),
    radial-gradient(circle at 18% 18%, rgba(255, 232, 170, 0.1), transparent 34%),
    linear-gradient(180deg, #1a1208 0%, #33210f 58%, #4a3017 100%);
}

.scene-clock {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 150px;
  height: 150px;
  border: 2px dashed rgba(255, 232, 170, 0.25);
  border-radius: 50%;
  transform: translateX(-50%);
}

.scene-gear {
  position: absolute;
  border: 7px dotted rgba(255, 232, 170, 0.28);
  border-radius: 50%;
}

.scene-gear.gear-a {
  top: 20px;
  left: 26px;
  width: 64px;
  height: 64px;
}

.scene-gear.gear-b {
  right: 30px;
  bottom: 22px;
  width: 86px;
  height: 86px;
  opacity: 0.7;
}

.scene-murloouka-art.tiktak-art {
  width: 205px;
  bottom: 0;
  filter: drop-shadow(0 0 24px rgba(224, 166, 75, 0.3));
}

.exp-scene.gelios-scene {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 200, 74, 0.24), transparent 42%),
    radial-gradient(circle at 76% 68%, rgba(255, 122, 58, 0.16), transparent 46%),
    linear-gradient(180deg, #27100a 0%, #521b12 56%, #7a2a16 100%);
}

.scene-sun {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff6b8, #ffc84a 45%, #ff7a3a 75%, rgba(214, 59, 74, 0) 100%);
  filter: blur(1px);
  opacity: 0.6;
  transform: translateX(-50%);
}

.scene-flare {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 88px;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 122, 58, 0.45), transparent 68%);
  filter: blur(10px);
}

.scene-murloouka-art.gelios-art {
  width: 220px;
  bottom: 0;
  filter: drop-shadow(0 0 26px rgba(255, 178, 62, 0.32));
}

.exp-scene.umbrion-scene {
  background:
    radial-gradient(circle at 48% 42%, rgba(90, 63, 158, 0.2), transparent 42%),
    radial-gradient(circle at 76% 74%, rgba(43, 28, 80, 0.24), transparent 46%),
    linear-gradient(180deg, #070512 0%, #130d2a 56%, #1d1338 100%);
}

.scene-void {
  position: absolute;
  top: 36px;
  left: 50%;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle, #020108 0 44%, rgba(90, 63, 158, 0.28) 68%, transparent 76%);
  transform: translateX(-50%);
}

.scene-shadow {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 82px;
  background: radial-gradient(ellipse at 50% 100%, rgba(90, 63, 158, 0.32), transparent 72%);
  filter: blur(12px);
}

.scene-murloouka-art.umbrion-art {
  width: 222px;
  bottom: 0;
  filter: drop-shadow(0 0 26px rgba(143, 117, 214, 0.26));
}

.umbrion-svg .umbra-wisp {
  transform-box: fill-box;
  transform-origin: center;
  animation: umbraWisp 7.4s ease-in-out infinite;
}

.umbrion-svg .wisp-b {
  animation-duration: 8.8s;
  animation-delay: -3.1s;
}

.umbrion-svg .umbra-eye-glow {
  transform-box: fill-box;
  transform-origin: center;
  animation: umbraEye 3.6s ease-in-out infinite;
}

.umbrion-svg .eye-b { animation-delay: -1.2s; }
.umbrion-svg .eye-c { animation-delay: -2.4s; }

.umbrion-svg .umbra-ground {
  transform-box: fill-box;
  transform-origin: center;
  animation: umbraGround 4.8s ease-in-out infinite;
}

.umbrion-svg .umbra-aura {
  transform-box: fill-box;
  transform-origin: center;
  animation: umbraAura 6.4s ease-in-out infinite;
}

@keyframes umbraAura {
  0%, 100% { opacity: 0.1; transform: scale(0.96); }
  50% { opacity: 0.24; transform: scale(1.06); }
}

.umbrion-svg .umbra-ring ellipse {
  animation: umbraDash 11s linear infinite;
}

.umbrion-svg .ring-b ellipse {
  animation-duration: 15s;
  animation-direction: reverse;
}

@keyframes umbraWisp {
  0%, 100% { opacity: 0.14; transform: translate3d(0, 0, 0) scale(1); }
  50% { opacity: 0.5; transform: translate3d(-8px, -10px, 0) scale(1.1); }
}

@keyframes umbraEye {
  0%, 100% { opacity: 0.35; transform: scale(0.86); }
  50% { opacity: 1; transform: scale(1.14); }
}

@keyframes umbraGround {
  0%, 100% { transform: scaleX(1); opacity: 0.42; }
  50% { transform: scaleX(0.9); opacity: 0.3; }
}

@keyframes umbraDash {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -220; }
}

.exp-scene.korallon-scene {
  background:
    radial-gradient(circle at 26% 18%, rgba(185, 255, 242, 0.18), transparent 40%),
    radial-gradient(circle at 74% 70%, rgba(255, 143, 189, 0.18), transparent 48%),
    linear-gradient(180deg, #071b22 0%, #0f3a46 56%, #1b4e58 100%);
}

.scene-reef2 {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 64px;
  background:
    radial-gradient(circle at 12% 100%, rgba(255, 143, 189, 0.55) 0 14px, transparent 15px),
    radial-gradient(circle at 26% 100%, rgba(255, 143, 189, 0.4) 0 22px, transparent 23px),
    radial-gradient(circle at 44% 100%, rgba(255, 143, 189, 0.32) 0 12px, transparent 13px),
    radial-gradient(circle at 70% 100%, rgba(255, 143, 189, 0.42) 0 18px, transparent 19px),
    radial-gradient(circle at 88% 100%, rgba(255, 143, 189, 0.5) 0 16px, transparent 17px),
    linear-gradient(180deg, transparent, rgba(142, 47, 98, 0.55));
  filter: drop-shadow(0 -4px 12px rgba(255, 143, 189, 0.2));
}

.scene-bubbles {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(circle, rgba(185, 255, 242, 0.65) 0 2px, transparent 3px);
  background-size: 48px 54px;
}

.scene-murloouka-art.korallon-art {
  width: 214px;
  bottom: 0;
  filter: drop-shadow(0 0 24px rgba(255, 143, 189, 0.28));
}

.exp-scene.drakonid-scene {
  background:
    radial-gradient(circle at 52% 8%, rgba(255, 170, 90, 0.3), transparent 46%),
    radial-gradient(circle at 10% 58%, rgba(255, 92, 60, 0.22), transparent 52%),
    radial-gradient(circle at 92% 52%, rgba(255, 122, 77, 0.2), transparent 50%),
    linear-gradient(180deg, #1a0620 0%, #2e0a22 42%, #4a1028 74%, #24070f 100%);
}

.scene-volcanoes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.scene-volcanoes .volcano-crater {
  transform-box: fill-box;
  transform-origin: center;
  animation: volcanoCrater 3.4s ease-in-out infinite;
}

.scene-volcanoes .crater-left { animation-delay: -1.2s; }
.scene-volcanoes .crater-right { animation-delay: -2.3s; }

.scene-volcanoes .volcano-flow {
  animation: volcanoFlow 4.2s ease-in-out infinite;
}

.scene-volcanoes .flow-left { animation-delay: -1.4s; }
.scene-volcanoes .flow-right { animation-delay: -2.8s; }

.scene-volcanoes .volcano-flow-glow {
  stroke-dasharray: 5 9;
  animation: lavaDash 1.8s linear infinite;
}

.scene-volcanoes .glow-left { animation-delay: -0.6s; }
.scene-volcanoes .glow-right { animation-delay: -1.1s; }

.scene-volcanoes .volcano-smoke {
  transform-box: fill-box;
  transform-origin: center;
  animation: volcanoSmoke 6.4s ease-in-out infinite;
}

.scene-volcanoes .smoke-b { animation-delay: -2.2s; animation-duration: 7.2s; }
.scene-volcanoes .smoke-c { animation-delay: -4.1s; animation-duration: 5.8s; }

.scene-volcanoes .volcano-ember {
  transform-box: fill-box;
  transform-origin: center;
  animation: volcanoEmber 4.6s linear infinite;
}

.scene-volcanoes .ember-b { animation-delay: -1.6s; animation-duration: 5.2s; }
.scene-volcanoes .ember-c { animation-delay: -3.1s; animation-duration: 4.1s; }
.scene-volcanoes .ember-d { animation-delay: -0.9s; animation-duration: 5.5s; }
.scene-volcanoes .ember-e { animation-delay: -2.7s; animation-duration: 4.8s; }
.scene-volcanoes .ember-f { animation-delay: -4.2s; animation-duration: 5.9s; }

.scene-volcanoes .scene-lava-pool {
  transform-box: fill-box;
  transform-origin: center;
  animation: lavaPool 5.4s ease-in-out infinite;
}

.scene-volcanoes .pool-side { animation-delay: -2.2s; }

.scene-volcanoes .lava-bubble {
  transform-box: fill-box;
  transform-origin: center;
  animation: lavaBubble 3.2s ease-in-out infinite;
}

.scene-volcanoes .bubble-b { animation-delay: -1.1s; animation-duration: 2.7s; }
.scene-volcanoes .bubble-c { animation-delay: -2.1s; animation-duration: 3.6s; }
.scene-volcanoes .bubble-d { animation-delay: -0.6s; animation-duration: 2.9s; }

.scene-volcanoes .volcano-spark {
  transform-box: fill-box;
  transform-origin: center;
  animation: volcanoSpark 2.9s ease-out infinite;
}

.scene-volcanoes .spark-b { animation-delay: -1.1s; animation-duration: 3.2s; }
.scene-volcanoes .spark-c { animation-delay: -2.2s; animation-duration: 2.6s; }
.scene-volcanoes .spark-d { animation-delay: -0.7s; animation-duration: 3.1s; }
.scene-volcanoes .spark-e { animation-delay: -1.8s; animation-duration: 2.8s; }
.scene-volcanoes .spark-f { animation-delay: -2.6s; animation-duration: 3.4s; }

@keyframes lavaBubble {
  0%, 100% { opacity: 0.2; transform: scale(0.7); }
  50% { opacity: 0.95; transform: scale(1.25); }
}

@keyframes volcanoSpark {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(-2px, -30px) scale(1); }
}

@keyframes volcanoCrater {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.14); }
}

@keyframes volcanoFlow {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}

@keyframes lavaDash {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -28; }
}

@keyframes volcanoSmoke {
  0%, 100% { opacity: 0.28; transform: translate(0, 0) scale(0.95); }
  50% { opacity: 0.55; transform: translate(-7px, -12px) scale(1.12); }
}

@keyframes volcanoEmber {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(-9px, -46px) scale(1.1); }
}

@keyframes lavaPool {
  0%, 100% { opacity: 0.35; transform: scaleX(0.95); }
  50% { opacity: 0.65; transform: scaleX(1.04); }
}

@keyframes sceneLavaPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.95; }
}

@keyframes cometGlide {
  0%, 100% { transform: rotate(-20deg) translateX(0); opacity: 0.75; }
  50% { transform: rotate(-20deg) translateX(-10px); opacity: 1; }
}

.scene-comet {
  position: absolute;
  top: 44px;
  right: -32px;
  width: 236px;
  height: 6px;
  background: linear-gradient(90deg, transparent, #ffd27a 55%, #ff7a4d);
  filter: drop-shadow(0 0 10px rgba(255, 122, 77, 0.55));
  transform: rotate(-20deg);
  animation: cometGlide 9s ease-in-out infinite;
}

.scene-lava {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 76px;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 122, 77, 0.5), transparent 70%);
  filter: blur(9px);
  animation: sceneLavaPulse 5.2s ease-in-out infinite;
}

.scene-murloouka-art.drakonid-art {
  width: 236px;
  bottom: 0;
  filter: drop-shadow(0 0 26px rgba(255, 122, 77, 0.28));
}

/* Планета X — живой пейзаж Гроглов */

.exp-scene-grogli.grogli-scene {
  background:
    radial-gradient(circle at 50% 120%, rgba(110, 242, 192, 0.2), transparent 58%),
    linear-gradient(180deg, #0f0b29 0%, #1c1850 52%, #14383f 100%);
}

.grogli-landscape {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.grogli-landscape svg {
  display: block;
  width: 100%;
  height: 100%;
}

.grogli-landscape .grog-planet {
  position: absolute;
  top: 18px;
  left: 10%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.75), transparent 22%),
    radial-gradient(circle at 36% 32%, #ead9ff 0%, #a279f2 45%, #452780 100%);
  box-shadow: 0 0 20px rgba(160, 120, 255, 0.35);
}

.grogli-landscape .grog-planet::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 62px;
  height: 14px;
  margin: -7px 0 0 -31px;
  border: 2px solid rgba(217, 200, 255, 0.5);
  border-radius: 50%;
  transform: rotate(-16deg);
}

.grogli-landscape .grog-moon {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #ffffff, transparent 24%),
    radial-gradient(circle at 38% 34%, #fdf7ff 0%, #cfc2f0 62%, #9c8ac4 100%);
  box-shadow: 0 0 14px rgba(220, 208, 255, 0.35);
}

.grogli-scene-art {
  z-index: 1;
}

.grogli-landscape .grog-aurora {
  transform-box: fill-box;
  transform-origin: center;
  animation: grogAurora 12s ease-in-out infinite;
}

.grogli-landscape .aurora-2 {
  animation-duration: 16s;
  animation-direction: reverse;
}

.grogli-landscape .grog-planet,
.grogli-landscape .grog-moon,
.grogli-landscape .grog-island {
  transform-box: fill-box;
  transform-origin: center;
  animation: grogFloat 8s ease-in-out infinite;
}

.grogli-landscape .grog-moon { animation-duration: 6.4s; animation-delay: -2.2s; }
.grogli-landscape .island-a { animation-duration: 6.8s; animation-delay: -1.1s; }
.grogli-landscape .island-b { animation-duration: 8.6s; animation-delay: -3.4s; }

.grogli-landscape .grog-shroom {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: grogSway 7s ease-in-out infinite;
}

.grogli-landscape .shroom-b { animation-duration: 8.2s; animation-delay: -1.8s; }
.grogli-landscape .shroom-c { animation-duration: 7.6s; animation-delay: -3.2s; }
.grogli-landscape .shroom-d { animation-duration: 9s; animation-delay: -0.9s; }

.grogli-landscape .grog-cap {
  animation: grogCapGlow 4.8s ease-in-out infinite;
}

.grogli-landscape .shroom-b .grog-cap { animation-delay: -1.6s; }
.grogli-landscape .shroom-c .grog-cap { animation-delay: -3.1s; }
.grogli-landscape .shroom-d .grog-cap { animation-delay: -2.2s; }

.grogli-landscape .grog-grass g {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: grogSway 5.4s ease-in-out infinite;
}

.grogli-landscape .grass-b { animation-delay: -1.2s; animation-duration: 6.2s; }
.grogli-landscape .grass-c { animation-delay: -2.4s; animation-duration: 5.8s; }
.grogli-landscape .grass-d { animation-delay: -0.7s; animation-duration: 6.8s; }
.grogli-landscape .grass-e { animation-delay: -3.3s; animation-duration: 5.1s; }

.grogli-landscape .grog-twinkle {
  animation: grogTwinkle 3.6s ease-in-out infinite;
}

.grogli-landscape .grog-spore {
  transform-box: fill-box;
  transform-origin: center;
  animation: grogSpore 7.4s ease-in-out infinite;
}

.grogli-landscape .grog-ripple {
  transform-box: fill-box;
  transform-origin: center;
  animation: grogRipple 5.6s ease-out infinite;
}

.grogli-landscape .ripple-2 {
  animation-delay: -2.8s;
  animation-duration: 6.6s;
}

.grogli-landscape .grog-shot {
  opacity: 0;
  animation: grogShot 13s ease-in infinite;
}

@keyframes grogAurora {
  0%, 100% { transform: translateX(-5px) scaleY(1); opacity: 0.8; }
  50% { transform: translateX(7px) scaleY(1.07); opacity: 1; }
}

@keyframes grogFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3.2px); }
}

@keyframes grogSway {
  0%, 100% { transform: rotate(-1.6deg); }
  50% { transform: rotate(1.8deg); }
}

@keyframes grogCapGlow {
  0%, 100% { opacity: 0.84; }
  50% { opacity: 1; }
}

@keyframes grogSpore {
  0% { opacity: 0; transform: translate(0, 6px) scale(0.7); }
  18% { opacity: 0.9; }
  70% { opacity: 0.5; }
  100% { opacity: 0; transform: translate(-6px, -38px) scale(1.05); }
}

@keyframes grogRipple {
  0% { opacity: 0.5; transform: scale(0.72, 0.9); }
  100% { opacity: 0; transform: scale(1.24, 1.1); }
}

@keyframes grogTwinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.95; }
}

@keyframes grogShot {
  0%, 86% { opacity: 0; transform: translate(316px, 14px); }
  88% { opacity: 0.95; transform: translate(308px, 19px); }
  94%, 100% { opacity: 0; transform: translate(224px, 52px); }
}

.exp-scene-grogli.grogli-scene {
  cursor: pointer;
}

.grogli-scene-art.grogli-bounce svg {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: grogBounce 0.62s ease;
}

@keyframes grogBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-6px) scale(1.03); }
  62% { transform: translateY(0) scale(0.99); }
  82% { transform: translateY(-2px) scale(1.01); }
}

/* Кристальная луна — анимированный пейзаж */

.exp-scene.murloouka-scene {
  background:
    radial-gradient(circle at 50% 115%, rgba(140, 120, 255, 0.2), transparent 62%),
    linear-gradient(180deg, #080b24 0%, #171243 52%, #141a44 100%);
}

.murloouka-landscape {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.murloouka-landscape svg {
  display: block;
  width: 100%;
  height: 100%;
}

.scene-murloouka-art {
  z-index: 1;
}

.murloouka-landscape .murl-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: murlHalo 5.8s ease-in-out infinite;
}

.murloouka-landscape .crystal-l2 .murl-halo,
.murloouka-landscape .crystal-r2 .murl-halo {
  animation-delay: -2s;
  animation-duration: 6.6s;
}

.murloouka-landscape .murl-glint {
  animation: murlGlint 4.6s ease-in-out infinite;
}

.murloouka-landscape .crystal-l2 .murl-glint,
.murloouka-landscape .crystal-r2 .murl-glint {
  animation-delay: -1.5s;
  animation-duration: 5.4s;
}

.murloouka-landscape .crystal-l3 .murl-glint,
.murloouka-landscape .crystal-r3 .murl-glint {
  animation-delay: -2.8s;
  animation-duration: 6.2s;
}

.murloouka-landscape .murl-beam {
  animation: murlBeam 6.8s ease-in-out infinite;
}

.murloouka-landscape .beam-b {
  animation-delay: -3.2s;
  animation-duration: 7.6s;
}

.murloouka-landscape .murl-shard {
  transform-box: fill-box;
  transform-origin: center;
  animation: murlShard 7.2s ease-in-out infinite;
}

.murloouka-landscape .shard-b { animation-delay: -1.8s; animation-duration: 8.4s; }
.murloouka-landscape .shard-c { animation-delay: -3.3s; animation-duration: 6.4s; }
.murloouka-landscape .shard-d { animation-delay: -0.7s; animation-duration: 7.8s; }

.murloouka-landscape .murl-spark {
  transform-box: fill-box;
  transform-origin: center;
  animation: murlSpark 3.4s ease-in-out infinite;
}

.murloouka-landscape .spark-b { animation-delay: -1.1s; animation-duration: 4s; }
.murloouka-landscape .spark-c { animation-delay: -2.3s; animation-duration: 3.8s; }
.murloouka-landscape .spark-d { animation-delay: -0.6s; animation-duration: 4.4s; }
.murloouka-landscape .spark-e { animation-delay: -1.7s; animation-duration: 3.2s; }
.murloouka-landscape .spark-f { animation-delay: -2.9s; animation-duration: 4.1s; }

.murloouka-landscape .murl-twinkle {
  animation: murlTwinkle 3.8s ease-in-out infinite;
}

.murloouka-landscape .murl-nebula {
  transform-box: fill-box;
  transform-origin: center;
  animation: murlNebula 16s ease-in-out infinite;
}

.murloouka-landscape .murl-moon {
  transform-box: fill-box;
  transform-origin: center;
  animation: murlFloat 9s ease-in-out infinite;
}

@keyframes murlHalo {
  0%, 100% { opacity: 0.55; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes murlGlint {
  0%, 100% { opacity: 0.25; }
  45% { opacity: 0.95; }
  60% { opacity: 0.6; }
}

@keyframes murlBeam {
  0%, 100% { opacity: 0.04; }
  50% { opacity: 0.13; }
}

@keyframes murlShard {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-5px) rotate(6deg); }
}

@keyframes murlSpark {
  0%, 100% { opacity: 0.2; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes murlTwinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.9; }
}

@keyframes murlNebula {
  0%, 100% { transform: translateX(-4px) scale(1); }
  50% { transform: translateX(6px) scale(1.04); }
}

@keyframes murlFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.6px); }
}

.murloouka-landscape .murl-crystal {
  animation: murlHue 10s ease-in-out infinite;
}

.murloouka-landscape .crystal-l2,
.murloouka-landscape .crystal-r2 {
  animation-delay: -3.4s;
}

.murloouka-landscape .crystal-l3,
.murloouka-landscape .crystal-r3 {
  animation-delay: -6.2s;
}

.murloouka-landscape .murl-sheen {
  opacity: 0;
  animation: murlSheen 6.4s ease-in-out infinite;
}

.murloouka-landscape .sheen-b {
  animation-delay: -3.2s;
}

@keyframes murlHue {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(26deg); }
}

@keyframes murlSheen {
  0%, 52% { transform: translateX(-8px); opacity: 0; }
  58% { opacity: 0.85; }
  78% { opacity: 0.25; }
  88%, 100% { transform: translateX(64px); opacity: 0; }
}

/* Туманность Лира — анимированный пейзаж */

.lumikryl-landscape {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.lumikryl-landscape svg {
  display: block;
  width: 100%;
  height: 100%;
}

.lumikryl-landscape .lum-cloud {
  transform-box: fill-box;
  transform-origin: center;
  animation: lumCloud 26s ease-in-out infinite;
}

.lumikryl-landscape .cloud-b {
  animation-duration: 34s;
  animation-delay: -11s;
}

.lumikryl-landscape .lum-twinkle {
  animation: lumTwinkle 4.4s ease-in-out infinite;
}

.lumikryl-landscape .lum-planet {
  transform-box: fill-box;
  transform-origin: center;
  animation: lumPlanet 11s ease-in-out infinite;
}

.lumikryl-landscape .lum-moon-small {
  transform-box: fill-box;
  transform-origin: center;
  animation: lumPlanet 8s ease-in-out infinite;
  animation-delay: -3s;
}

.lumikryl-landscape .lum-flyer {
  transform-box: fill-box;
  transform-origin: center;
  animation: lumFly 19s ease-in-out infinite;
}

.lumikryl-landscape .flyer-b {
  animation-duration: 24s;
  animation-delay: -7s;
}

.lumikryl-landscape .flyer-c {
  animation-duration: 26s;
  animation-delay: -12s;
}

.lumikryl-landscape .lum-core {
  transform-box: fill-box;
  transform-origin: center;
  animation: lumCore 8.5s ease-in-out infinite;
}

.lumikryl-landscape .lum-stalk {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: lumSway 8s ease-in-out infinite;
}

.lumikryl-landscape .stalk-b {
  animation-duration: 6.6s;
  animation-delay: -1.8s;
}

.lumikryl-landscape .stalk-c {
  animation-duration: 9.4s;
  animation-delay: -4.2s;
}

.lumikryl-landscape .flora-right .stalk-a { animation-delay: -2.6s; }
.lumikryl-landscape .flora-right .stalk-b { animation-delay: -5.1s; }
.lumikryl-landscape .flora-right .stalk-c { animation-delay: -0.9s; }

.lumikryl-landscape .lum-beam {
  animation: lumBeam 13s ease-in-out infinite;
}

.lumikryl-landscape .beam-b {
  animation-delay: -6.5s;
  animation-duration: 17s;
}

.lumikryl-landscape .lum-mote {
  transform-box: fill-box;
  transform-origin: center;
  animation: lumMote 9s linear infinite;
}

.lumikryl-landscape .lum-shooting {
  animation: lumShoot 9s ease-in-out infinite;
}

.lumikryl-landscape .lum-spark {
  transform-box: fill-box;
  transform-origin: center;
  animation: lumSparkPulse 4.2s ease-in-out infinite;
}

.lumikryl-landscape .sp-b {
  animation-duration: 5.1s;
  animation-delay: -1.4s;
}

.lumikryl-landscape .sp-c {
  animation-duration: 4.7s;
  animation-delay: -2.7s;
}

.lumikryl-landscape .lum-firefly {
  transform-box: fill-box;
  transform-origin: center;
  animation: lumFire 6.5s ease-in-out infinite;
}

.lumikryl-landscape .ff-b {
  animation-duration: 8.2s;
  animation-delay: -2.4s;
}

.lumikryl-landscape .ff-c {
  animation-duration: 5.4s;
  animation-delay: -4.1s;
}

.lumikryl-landscape .ff-d {
  animation-duration: 7.6s;
  animation-delay: -1.2s;
}

.lumikryl-landscape .ff-e {
  animation-duration: 6.1s;
  animation-delay: -3.4s;
}

.lumikryl-landscape .ff-f {
  animation-duration: 8.8s;
  animation-delay: -5.6s;
}

@keyframes lumCloud {
  0%, 100% { transform: translate3d(-5px, 0, 0) scale(1); }
  50% { transform: translate3d(6px, -2px, 0) scale(1.05); }
}

@keyframes lumTwinkle {
  0%, 100% { opacity: 0.22; }
  50% { opacity: 0.95; }
}

@keyframes lumPlanet {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.4px); }
}

@keyframes lumFly {
  0%, 100% { transform: translate(0, 0) rotate(-5deg); }
  35% { transform: translate(6px, -5px) rotate(4deg); }
  70% { transform: translate(-3px, -2px) rotate(-2deg); }
}

@keyframes lumSway {
  0%, 100% { transform: rotate(-3.5deg); }
  50% { transform: rotate(3.5deg); }
}

@keyframes lumBeam {
  0%, 100% { opacity: 0.03; }
  50% { opacity: 0.1; }
}

@keyframes lumMote {
  0% { transform: translateY(8px); opacity: 0; }
  18% { opacity: 0.85; }
  72% { opacity: 0.45; }
  100% { transform: translateY(-54px); opacity: 0; }
}

@keyframes lumFire {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-4px); opacity: 1; }
}

@keyframes lumShoot {
  0%, 62%, 100% { opacity: 0.2; }
  70% { opacity: 0.9; }
  82% { opacity: 0.35; }
}

@keyframes lumSparkPulse {
  0%, 100% { opacity: 0.45; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.12); }
}

@keyframes lumCore {
  0%, 100% { opacity: 0.55; transform: scale(0.97); }
  50% { opacity: 0.85; transform: scale(1.05); }
}

/* Плазменный риф — анимированный пейзаж */

.plasmik-landscape {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.plasmik-landscape svg {
  display: block;
  width: 100%;
  height: 100%;
}

.plasmik-art svg {
  transform-origin: 50% 92%;
  animation: plazCreature 5.5s ease-in-out infinite;
}

.plasmik-aura {
  position: absolute;
  bottom: -6px;
  left: 50%;
  z-index: 0;
  width: 280px;
  height: 112px;
  background: radial-gradient(ellipse at 50% 70%, rgba(255, 138, 76, 0.3), transparent 66%);
  filter: blur(8px);
  transform: translateX(-50%);
  animation: plazAura 5.2s ease-in-out infinite;
}

@keyframes plazAura {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(0.96); }
  50% { opacity: 0.9; transform: translateX(-50%) scale(1.04); }
}

.plasmik-landscape .plaz-cloud {
  transform-box: fill-box;
  transform-origin: center;
  animation: plazCloud 24s ease-in-out infinite;
}

.plasmik-landscape .cloud-b {
  animation-duration: 32s;
  animation-delay: -9s;
}

.plasmik-landscape .plaz-twinkle {
  animation: plazTwinkle 4.8s ease-in-out infinite;
}

.plasmik-landscape .plaz-sun {
  transform-box: fill-box;
  transform-origin: center;
  animation: plazSun 7.5s ease-in-out infinite;
}

.plasmik-landscape .plaz-planet {
  transform-box: fill-box;
  transform-origin: center;
  animation: plazFloat 9s ease-in-out infinite;
}

.plasmik-landscape .plaz-orb {
  transform-box: fill-box;
  transform-origin: center;
  animation: plazOrb 6.4s ease-in-out infinite;
}

.plasmik-landscape .orb-b {
  animation-duration: 7.8s;
  animation-delay: -2.2s;
}

.plasmik-landscape .orb-c {
  animation-duration: 5.6s;
  animation-delay: -4.1s;
}

.plasmik-landscape .orb-d {
  animation-duration: 8.6s;
  animation-delay: -1.3s;
}

.plasmik-landscape .plaz-bolt {
  animation: plazBolt 4.6s steps(1, end) infinite;
}

.plasmik-landscape .bolt-b {
  animation-duration: 5.4s;
  animation-delay: -2.3s;
}

.plasmik-landscape .plaz-reef {
  filter: drop-shadow(0 0 6px rgba(255, 138, 76, 0.35));
  animation: plazReef 8s ease-in-out infinite;
}

.plasmik-landscape .reef-right {
  animation-delay: -3.8s;
  animation-duration: 9.4s;
}

.plasmik-landscape .plaz-ember {
  transform-box: fill-box;
  transform-origin: center;
  animation: plazEmber 7s linear infinite;
}

.plasmik-landscape .plaz-beam {
  filter: blur(4px);
  animation: plazBeam 11s ease-in-out infinite alternate;
}

.plasmik-landscape .beam-b {
  animation-delay: -5s;
  animation-duration: 15s;
}

@keyframes plazCloud {
  0%, 100% { transform: translate3d(-6px, 0, 0) scale(1); }
  50% { transform: translate3d(6px, -2px, 0) scale(1.04); }
}

@keyframes plazTwinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.95; }
}

@keyframes plazSun {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.05); opacity: 1; }
}

@keyframes plazFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes plazOrb {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(4px, -5px); }
  66% { transform: translate(-3px, 3px); }
}

@keyframes plazBolt {
  0%, 88%, 100% { opacity: 0.08; }
  89% { opacity: 0.85; }
  91% { opacity: 0.15; }
  92% { opacity: 0.7; }
  94% { opacity: 0.2; }
}

@keyframes plazReef {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

@keyframes plazEmber {
  0% { transform: translateY(6px); opacity: 0; }
  15% { opacity: 0.9; }
  70% { opacity: 0.5; }
  100% { transform: translateY(-46px); opacity: 0; }
}

@keyframes plazBeam {
  0%, 100% { opacity: 0.03; }
  50% { opacity: 0.1; }
}

@keyframes plazCreature {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Ледяной пояс — анимированный пейзаж */

.kriozhil-landscape {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.kriozhil-landscape svg {
  display: block;
  width: 100%;
  height: 100%;
}

.kriozhil-aura {
  position: absolute;
  bottom: -8px;
  left: 50%;
  z-index: 0;
  width: 270px;
  height: 96px;
  background: radial-gradient(ellipse at 50% 70%, rgba(143, 246, 255, 0.28), transparent 66%);
  filter: blur(8px);
  transform: translateX(-50%);
  animation: krioAura 6s ease-in-out infinite;
}

@keyframes krioAura {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(0.96); }
  50% { opacity: 0.9; transform: translateX(-50%) scale(1.05); }
}

.kriozhil-landscape .krio-twinkle {
  animation: krioTwinkle 5s ease-in-out infinite;
}

.kriozhil-landscape .krio-aurora {
  transform-box: fill-box;
  transform-origin: center;
  animation: krioAurora 14s ease-in-out infinite alternate;
}

.kriozhil-landscape .a2 {
  animation-duration: 19s;
  animation-delay: -7s;
}

.kriozhil-landscape .a3 {
  animation-duration: 11s;
  animation-delay: -3s;
}

.kriozhil-landscape .krio-moon {
  transform-box: fill-box;
  transform-origin: center;
  animation: krioFloat 10s ease-in-out infinite;
}

.kriozhil-landscape .krio-planet {
  transform-box: fill-box;
  transform-origin: center;
  animation: krioFloat 8s ease-in-out infinite;
  animation-delay: -3s;
}

.kriozhil-landscape .krio-cracks {
  animation: krioCrack 7s ease-in-out infinite;
}

.kriozhil-landscape .krio-crystals {
  filter: drop-shadow(0 0 6px rgba(143, 246, 255, 0.3));
  animation: krioShimmer 8s ease-in-out infinite;
}

.kriozhil-landscape .crystals-right {
  animation-duration: 9.6s;
  animation-delay: -4s;
}

.kriozhil-landscape .krio-spark {
  transform-box: fill-box;
  transform-origin: center;
  animation: krioSparkPulse 4.8s ease-in-out infinite;
}

.kriozhil-landscape .sp-b {
  animation-duration: 5.6s;
  animation-delay: -1.5s;
}

.kriozhil-landscape .sp-c {
  animation-duration: 6.2s;
  animation-delay: -2.8s;
}

.kriozhil-landscape .sp-d {
  animation-duration: 5.2s;
  animation-delay: -0.9s;
}

@keyframes krioTwinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.9; }
}

@keyframes krioAurora {
  0% { transform: translate3d(-6px, 0, 0) scaleY(1); opacity: 0.55; }
  50% { opacity: 0.9; }
  100% { transform: translate3d(8px, -4px, 0) scaleY(1.08); opacity: 0.65; }
}

@keyframes krioFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes krioCrack {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.8; }
}

@keyframes krioShimmer {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

@keyframes krioSparkPulse {
  0%, 100% { opacity: 0.25; transform: scale(0.75); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* Эхо-пустошь — анимированный пейзаж */

.eholit-landscape {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.eholit-landscape svg {
  display: block;
  width: 100%;
  height: 100%;
}

.eholit-aura {
  position: absolute;
  bottom: -8px;
  left: 50%;
  z-index: 0;
  width: 260px;
  height: 100px;
  background: radial-gradient(ellipse at 50% 70%, rgba(126, 247, 230, 0.24), transparent 66%);
  filter: blur(8px);
  transform: translateX(-50%);
  animation: ehoAura 6.5s ease-in-out infinite;
}

.eholit-landscape .eho-twinkle {
  animation: ehoTwinkle 5.2s ease-in-out infinite;
}

.eholit-landscape .eho-haze {
  transform-box: fill-box;
  transform-origin: center;
  animation: ehoHaze 26s ease-in-out infinite;
}

.eholit-landscape .eho-moon {
  transform-box: fill-box;
  transform-origin: center;
  animation: ehoFloat 11s ease-in-out infinite;
}

.eholit-landscape .eho-orbit {
  transform-box: fill-box;
  transform-origin: center;
  animation: ehoOrbit 10s ease-in-out infinite;
}

.eholit-landscape .eho-runes {
  animation: ehoRunes 3.8s ease-in-out infinite;
}

.eholit-landscape .eho-sonar {
  transform-box: fill-box;
  transform-origin: center;
  animation: ehoSonar 4.6s ease-out infinite;
}

.eholit-landscape .s2 {
  animation-delay: -1.5s;
}

.eholit-landscape .s3 {
  animation-delay: -3.1s;
}

.eholit-landscape .eho-cracks {
  animation: ehoCracks 7.4s ease-in-out infinite;
}

.eholit-landscape .eho-spire {
  animation: ehoSpire 9s ease-in-out infinite;
}

.eholit-landscape .spire-right {
  animation-delay: -4.2s;
  animation-duration: 10.6s;
}

.eholit-landscape .eho-rock {
  transform-box: fill-box;
  transform-origin: center;
  animation: ehoRock 7.5s ease-in-out infinite;
}

.eholit-landscape .eho-mote {
  transform-box: fill-box;
  transform-origin: center;
  animation: ehoMote 9s linear infinite;
}

@keyframes ehoTwinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.9; }
}

@keyframes ehoHaze {
  0%, 100% { transform: translate3d(-5px, 0, 0) scale(1); }
  50% { transform: translate3d(6px, -2px, 0) scale(1.04); }
}

@keyframes ehoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes ehoOrbit {
  0%, 100% { opacity: 0.2; transform: scale(0.98); }
  50% { opacity: 0.45; transform: scale(1.04); }
}

@keyframes ehoRunes {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes ehoSonar {
  0% { transform: scale(0.55); opacity: 0.55; }
  100% { transform: scale(1.45); opacity: 0; }
}

@keyframes ehoCracks {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.8; }
}

@keyframes ehoSpire {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

@keyframes ehoRock {
  0%, 100% { transform: translate(0, 0) rotate(-4deg); }
  50% { transform: translate(4px, -6px) rotate(5deg); }
}

@keyframes ehoMote {
  0% { transform: translateY(6px); opacity: 0; }
  15% { opacity: 0.85; }
  70% { opacity: 0.45; }
  100% { transform: translateY(-48px); opacity: 0; }
}

@keyframes ehoAura {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(0.96); }
  50% { opacity: 0.9; transform: translateX(-50%) scale(1.05); }
}

/* Звёздный океан — анимированный пейзаж */

.starwhale-landscape {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.starwhale-landscape svg {
  display: block;
  width: 100%;
  height: 100%;
}

.starwhale-aura {
  position: absolute;
  bottom: -8px;
  left: 50%;
  z-index: 0;
  width: 300px;
  height: 110px;
  background: radial-gradient(ellipse at 50% 70%, rgba(143, 199, 255, 0.26), transparent 66%);
  filter: blur(9px);
  transform: translateX(-50%);
  animation: whaleAura 7s ease-in-out infinite;
}

.starwhale-landscape .whale-twinkle {
  animation: whaleTwinkle 5.4s ease-in-out infinite;
}

.starwhale-landscape .whale-nebula {
  transform-box: fill-box;
  transform-origin: center;
  animation: whaleNebula 28s ease-in-out infinite;
}

.starwhale-landscape .whale-planet {
  transform-box: fill-box;
  transform-origin: center;
  animation: whaleFloat 12s ease-in-out infinite;
}

.starwhale-landscape .whale-moon {
  transform-box: fill-box;
  transform-origin: center;
  animation: whaleFloat 9s ease-in-out infinite;
  animation-delay: -3s;
}

.starwhale-landscape .whale-comet {
  animation: whaleComet 11s ease-in-out infinite;
}

.starwhale-landscape .whale-far {
  transform-box: fill-box;
  transform-origin: center;
  animation: whaleFar 16s ease-in-out infinite;
}

.starwhale-landscape .far-b {
  animation-duration: 21s;
  animation-delay: -6s;
}

.starwhale-landscape .whale-wave {
  animation: whaleWave 9s ease-in-out infinite alternate;
}

.starwhale-landscape .wave-b {
  animation-duration: 12s;
  animation-delay: -3s;
}

.starwhale-landscape .wave-c {
  animation-duration: 15s;
  animation-delay: -6s;
}

.starwhale-landscape .whale-glint {
  animation: whaleGlint 4.4s ease-in-out infinite;
}

.starwhale-landscape .whale-shimmer {
  animation: whaleShimmer 6s ease-in-out infinite;
}

.starwhale-landscape .whale-mote {
  transform-box: fill-box;
  transform-origin: center;
  animation: whaleMote 9s linear infinite;
}

@keyframes whaleTwinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.9; }
}

@keyframes whaleNebula {
  0%, 100% { transform: translate3d(-5px, 0, 0) scale(1); }
  50% { transform: translate3d(6px, -2px, 0) scale(1.04); }
}

@keyframes whaleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes whaleComet {
  0%, 68%, 100% { opacity: 0.35; }
  76% { opacity: 1; }
  86% { opacity: 0.5; }
}

@keyframes whaleShimmer {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.5; }
}

@keyframes whaleFar {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6px, -3px); }
}

@keyframes whaleWave {
  0% { transform: translateX(0); }
  100% { transform: translateX(-8px); }
}

@keyframes whaleGlint {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

@keyframes whaleMote {
  0% { transform: translateY(6px); opacity: 0; }
  15% { opacity: 0.85; }
  70% { opacity: 0.45; }
  100% { transform: translateY(-44px); opacity: 0; }
}

@keyframes whaleAura {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(0.96); }
  50% { opacity: 0.9; transform: translateX(-50%) scale(1.05); }
}

/* Второй сектор — общие анимированные пейзажи */

.sector2-landscape {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.sector2-landscape svg {
  display: block;
  width: 100%;
  height: 100%;
}

.s2-scene-art {
  z-index: 1;
}

.s2-scene-art svg {
  transform-origin: 50% 92%;
  animation: s2CreatureBob 6.4s ease-in-out infinite;
}

.s2-creature-aura {
  position: absolute;
  bottom: -8px;
  left: 50%;
  z-index: 0;
  width: 260px;
  height: 100px;
  background: radial-gradient(ellipse at 50% 70%, rgba(200, 230, 255, 0.22), transparent 66%);
  filter: blur(9px);
  transform: translateX(-50%);
  animation: s2Aura 6.8s ease-in-out infinite;
}

.sector2-landscape .s2-twinkle {
  animation: s2Twinkle 5.2s ease-in-out infinite;
}

.sector2-landscape .s2-nebula {
  transform-box: fill-box;
  transform-origin: center;
  animation: s2Nebula 27s ease-in-out infinite;
}

.sector2-landscape .s2-moon,
.sector2-landscape .s2-planet {
  transform-box: fill-box;
  transform-origin: center;
  animation: s2Float 11s ease-in-out infinite;
}

.sector2-landscape .s2-sun {
  transform-box: fill-box;
  transform-origin: center;
  animation: s2Sun 7.5s ease-in-out infinite;
}

.sector2-landscape .s2-void {
  transform-box: fill-box;
  transform-origin: center;
  animation: s2Void 9s ease-in-out infinite;
}

.sector2-landscape .s2-mote {
  transform-box: fill-box;
  transform-origin: center;
  animation: s2Mote 9s linear infinite;
}

.sector2-landscape .s2-glass {
  transform-box: fill-box;
  transform-origin: center;
  animation: s2Glass 9s ease-in-out infinite;
}

.sector2-landscape .s2-hive {
  animation: s2Hive 7s ease-in-out infinite;
}

.sector2-landscape .s2-shrooms {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: s2Shroom 9.5s ease-in-out infinite;
}

.sector2-landscape .s2-orbits {
  transform-box: view-box;
  transform-origin: 200px 118px;
  animation: s2Orbits 70s linear infinite;
}

.sector2-landscape .s2-clock {
  transform-box: fill-box;
  transform-origin: center;
  animation: s2Clock 90s linear infinite;
}

.sector2-landscape .s2-gear {
  transform-box: fill-box;
  transform-origin: center;
  animation: s2Gear 26s linear infinite;
}

.sector2-landscape .gear-slow {
  animation-duration: 40s;
  animation-direction: reverse;
}

.sector2-landscape .s2-flames {
  animation: s2Flames 2.8s ease-in-out infinite;
}

.sector2-landscape .s2-coral {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: s2Coral 8s ease-in-out infinite;
}

.sector2-landscape .s2-rays {
  animation: s2Rays 9s ease-in-out infinite;
}

.sector2-landscape .s2-void-shards {
  transform-box: fill-box;
  transform-origin: center;
  animation: s2Shards 10s ease-in-out infinite;
}

.sector2-landscape .s2-wisps {
  animation: s2Wisps 12s ease-in-out infinite;
}

@keyframes s2CreatureBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes s2Aura {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(0.96); }
  50% { opacity: 0.85; transform: translateX(-50%) scale(1.05); }
}

@keyframes s2Twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.9; }
}

@keyframes s2Nebula {
  0%, 100% { transform: translate3d(-5px, 0, 0) scale(1); }
  50% { transform: translate3d(6px, -2px, 0) scale(1.04); }
}

@keyframes s2Float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes s2Sun {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes s2Void {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes s2Mote {
  0% { transform: translateY(6px); opacity: 0; }
  15% { opacity: 0.85; }
  70% { opacity: 0.45; }
  100% { transform: translateY(-46px); opacity: 0; }
}

@keyframes s2Glass {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-4px) rotate(1.5deg); }
}

@keyframes s2Hive {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

@keyframes s2Shroom {
  0%, 100% { transform: rotate(-1.5deg); }
  50% { transform: rotate(1.5deg); }
}

@keyframes s2Orbits {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes s2Clock {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes s2Gear {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes s2Flames {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.85; }
}

@keyframes s2Coral {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

@keyframes s2Rays {
  0%, 100% { opacity: 0.05; }
  50% { opacity: 0.14; }
}

@keyframes s2Shards {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-5px) rotate(3deg); }
}

@keyframes s2Wisps {
  0%, 100% { opacity: 0.2; transform: translateX(-4px); }
  50% { opacity: 0.45; transform: translateX(4px); }
}

/* Второй сектор — движения существ */

.aurilon-svg .s2-wing-left {
  transform-box: fill-box;
  transform-origin: 100% 55%;
  animation: s2WingLeft 5s ease-in-out infinite;
}

.aurilon-svg .s2-wing-right {
  transform-box: fill-box;
  transform-origin: 0% 55%;
  animation: s2WingRight 5s ease-in-out infinite;
}

.kryptocit-svg .s2-antenna {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: s2Antenna 4.8s ease-in-out infinite;
}

.miceloid-svg .s2-cap {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: s2Cap 5.8s ease-in-out infinite;
}

.miceloid-svg .s2-mice-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: s2MiceHalo 6.8s ease-in-out infinite;
}

.miceloid-svg .s2-mice-eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: s2MiceBlink 7.4s ease-in-out infinite;
}

.miceloid-svg .s2-mice-spots {
  transform-box: fill-box;
  transform-origin: center;
  animation: s2MiceSpots 5.4s ease-in-out infinite;
}

.miceloid-svg .s2-mice-arm-left,
.miceloid-svg .s2-mice-arm-right {
  transform-box: fill-box;
  animation: s2MiceArm 6.2s ease-in-out infinite;
}

.miceloid-svg .s2-mice-arm-left {
  transform-origin: 100% 0%;
}

.miceloid-svg .s2-mice-arm-right {
  transform-origin: 0% 0%;
  animation-direction: reverse;
}

.miceloid-svg .s2-mice-spores circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: s2MiceSpore 7s ease-in-out infinite;
}

.miceloid-svg .s2-mice-spores circle:nth-child(2) {
  animation-delay: -1.2s;
  animation-duration: 8.4s;
}

.miceloid-svg .s2-mice-spores circle:nth-child(3) {
  animation-delay: -2.8s;
  animation-duration: 6.6s;
}

.miceloid-svg .s2-mice-spores circle:nth-child(4) {
  animation-delay: -0.6s;
  animation-duration: 7.8s;
}

.miceloid-svg .s2-mice-spores circle:nth-child(5) {
  animation-delay: -3.6s;
  animation-duration: 9.2s;
}

.miceloid-svg .s2-mice-spores circle:nth-child(6) {
  animation-delay: -4.4s;
  animation-duration: 8s;
}

.serpens-svg .s2-serpens-body {
  transform-box: fill-box;
  transform-origin: 50% 90%;
  animation: s2Sway 7.2s ease-in-out infinite;
}

.tiktak-svg .s2-hand-hour,
.tiktak-svg .s2-hand-minute {
  transform-box: view-box;
  transform-origin: 160px 142px;
}

.tiktak-svg .s2-hand-hour {
  animation: s2Turn 480s linear infinite;
}

.tiktak-svg .s2-hand-minute {
  animation: s2Turn 60s linear infinite;
}

.gelios-svg .s2-gelios-wing {
  transform-box: fill-box;
  transform-origin: 100% 100%;
  animation: s2GeliosWing 5.4s ease-in-out infinite;
}

.gelios-svg .s2-gelios-crest {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: s2Crest 4.6s ease-in-out infinite;
}

@keyframes s2WingLeft {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-3deg); }
}

@keyframes s2WingRight {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(3deg); }
}

@keyframes s2Antenna {
  0%, 100% { transform: rotate(-2.5deg); }
  50% { transform: rotate(2.5deg); }
}

@keyframes s2Cap {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.04) translateY(-1.5px); }
}

@keyframes s2MiceHalo {
  0%, 100% { opacity: 0.55; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes s2MiceBlink {
  0%, 88%, 100% { transform: scaleY(1); }
  92% { transform: scaleY(0.12); }
  95% { transform: scaleY(1); }
}

@keyframes s2MiceSpots {
  0%, 100% { opacity: 0.68; }
  50% { opacity: 1; }
}

@keyframes s2MiceArm {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-4deg); }
}

@keyframes s2MiceSpore {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  25% { opacity: 0.9; }
  55% { transform: translateY(-6px); opacity: 0.8; }
  80% { opacity: 0.4; }
}

@keyframes s2Sway {
  0%, 100% { transform: rotate(-1.2deg); }
  50% { transform: rotate(1.2deg); }
}

@keyframes s2Turn {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes s2GeliosWing {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-2deg); }
}

@keyframes s2Crest {
  0%, 100% { transform: rotate(-1.5deg); }
  50% { transform: rotate(1.5deg); }
}

/* Второй сектор — драконид и кораллон */

.drakonid-svg .s2-drak-wing-far,
.drakonid-svg .s2-drak-wing-near {
  transform-box: view-box;
  animation: s2DrakWing 6.2s ease-in-out infinite;
}

.drakonid-svg .s2-drak-wing-far {
  transform-origin: 196px 134px;
  animation-delay: -1.6s;
}

.drakonid-svg .s2-drak-wing-near {
  transform-origin: 184px 132px;
}

.korallon-svg .s2-korallon-branches {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: s2KorBranches 7.6s ease-in-out infinite;
}

@keyframes s2DrakWing {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-2.4deg); }
}

@keyframes s2KorBranches {
  0%, 100% { transform: rotate(-1.4deg); }
  50% { transform: rotate(1.4deg); }
}

/* Второй сектор — дополнительные детали пейзажей */

.sector2-landscape .s2-aurora {
  transform-box: fill-box;
  transform-origin: center;
  animation: s2Aurora 16s ease-in-out infinite;
}

.sector2-landscape .s2-hive-glow {
  animation: s2HiveGlow 3.6s ease-in-out infinite;
}

.sector2-landscape .s2-bee {
  transform-box: fill-box;
  transform-origin: center;
  animation: s2Bee 7s ease-in-out infinite;
}

.sector2-landscape .bee-b {
  animation-duration: 9s;
  animation-delay: -2.4s;
}

.sector2-landscape .bee-c {
  animation-duration: 8s;
  animation-delay: -4.6s;
}

.sector2-landscape .shadow-eye-pair {
  transform-box: fill-box;
  transform-origin: center;
  animation: s2ShadowEyes 7.8s ease-in-out infinite;
}

.sector2-landscape .shadow-eye-pair.pair-b {
  animation-delay: -3.2s;
}

.sector2-landscape .s2-shadow-tendrils {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: s2Tendrils 12s ease-in-out infinite;
}

.sector2-landscape .s2-fish-a,
.sector2-landscape .s2-fish-b,
.sector2-landscape .s2-fish-c {
  transform-box: fill-box;
  transform-origin: center;
  animation: s2Fish 14s ease-in-out infinite;
}

.sector2-landscape .s2-fish-b {
  animation-duration: 17s;
  animation-delay: -5s;
}

.sector2-landscape .s2-fish-c {
  animation-duration: 12s;
  animation-delay: -8s;
}

@keyframes s2Aurora {
  0%, 100% { opacity: 0.55; transform: translateX(-6px); }
  50% { opacity: 0.95; transform: translateX(6px); }
}

@keyframes s2HiveGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes s2Bee {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(5px, -4px); }
  50% { transform: translate(9px, 1px); }
  75% { transform: translate(4px, 4px); }
}

@keyframes s2ShadowEyes {
  0%, 86%, 100% { opacity: 0.5; transform: scaleY(1); }
  90% { opacity: 0.15; transform: scaleY(0.2); }
  94% { opacity: 0.5; transform: scaleY(1); }
}

@keyframes s2Tendrils {
  0%, 100% { transform: rotate(-1.6deg); opacity: 0.7; }
  50% { transform: rotate(1.6deg); opacity: 1; }
}

@keyframes s2Fish {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}

.grogli-card.species-murloouka {
  border-color: rgba(255, 107, 94, 0.22);
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 92, 92, 0.14), transparent 46%),
    radial-gradient(circle at 100% 100%, rgba(110, 242, 192, 0.09), transparent 45%),
    linear-gradient(160deg, rgba(43, 46, 80, 0.9), rgba(14, 19, 42, 0.94));
}

.grogli-card.species-murloouka.female {
  border-color: rgba(110, 242, 192, 0.26);
}

.grogli-card.species-plasmik {
  border-color: rgba(255, 138, 76, 0.24);
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 138, 76, 0.13), transparent 46%),
    radial-gradient(circle at 100% 100%, rgba(255, 61, 127, 0.1), transparent 45%),
    linear-gradient(160deg, rgba(48, 32, 62, 0.9), rgba(20, 14, 38, 0.94));
}

.grogli-card.species-eholit {
  border-color: rgba(126, 247, 230, 0.22);
  background:
    radial-gradient(circle at 8% 20%, rgba(179, 140, 255, 0.14), transparent 46%),
    radial-gradient(circle at 100% 100%, rgba(126, 247, 230, 0.1), transparent 45%),
    linear-gradient(160deg, rgba(39, 34, 66, 0.9), rgba(16, 14, 36, 0.94));
}

.grogli-card.species-starwhale {
  border-color: rgba(120, 180, 255, 0.24);
  background:
    radial-gradient(circle at 8% 20%, rgba(120, 180, 255, 0.15), transparent 46%),
    radial-gradient(circle at 100% 100%, rgba(179, 140, 255, 0.1), transparent 45%),
    linear-gradient(160deg, rgba(24, 38, 76, 0.92), rgba(10, 16, 40, 0.95));
}

.grogli-card.sector-2 {
  border-color: rgba(179, 140, 255, 0.24);
  background:
    radial-gradient(circle at 8% 18%, rgba(127, 212, 255, 0.13), transparent 46%),
    radial-gradient(circle at 100% 100%, rgba(255, 158, 214, 0.09), transparent 45%),
    linear-gradient(160deg, rgba(30, 27, 62, 0.92), rgba(11, 12, 34, 0.96));
}

.grogli-avatar.creature-photo {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 66%, rgba(110, 242, 192, 0.14), transparent 66%),
    radial-gradient(circle at 50% 10%, rgba(255, 92, 92, 0.1), transparent 45%);
}

.grogli-avatar.creature-photo svg {
  width: 116%;
  max-width: none;
  height: auto;
  max-height: none;
  transform: translateY(4px);
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.34));
}

.grogli-avatar.creature-photo .lumikryl-svg {
  width: 108%;
}

.grogli-avatar.creature-photo .kriozhil-svg {
  width: 118%;
  transform: translateY(3px);
}

.grogli-avatar.creature-photo .plasmik-svg {
  width: 110%;
  transform: translateY(8px);
}

.plasmik-svg .plasmik-bolt {
  animation: plazBolt 5.2s steps(1, end) infinite;
  animation-delay: -1.7s;
}

.grogli-avatar.creature-photo .eholit-svg {
  width: 100%;
}

.grogli-avatar.creature-photo .starwhale-svg {
  width: 128%;
  transform: translateY(10px);
}

.grogli-avatar.creature-photo .aurilon-svg {
  width: 130%;
  transform: translateY(5px);
}

.grogli-avatar.creature-photo .kryptocit-svg {
  width: 112%;
  transform: translateY(4px);
}

.grogli-avatar.creature-photo .miceloid-svg {
  width: 108%;
  transform: translateY(4px);
}

.grogli-avatar.creature-photo .serpens-svg {
  width: 114%;
  transform: translateY(4px);
}

.grogli-avatar.creature-photo .tiktak-svg {
  width: 104%;
  transform: translateY(2px);
}

.grogli-avatar.creature-photo .gelios-svg {
  width: 116%;
  transform: translateY(5px);
}

.grogli-avatar.creature-photo .umbrion-svg {
  width: 122%;
  transform: translateY(7px);
}

.grogli-avatar.creature-photo .korallon-svg {
  width: 108%;
  transform: translateY(4px);
}

.grogli-avatar.creature-photo .drakonid-svg {
  width: 112%;
  transform: translateY(4px);
}

.grogli-avatar.creature-photo .murloouka-svg {
  transform: translate(-10%, 4px);
}

.grogli-avatar.creature-photo.cub .murloouka-svg {
  transform: translate(-10%, 4px);
}

.badge-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex: none;
}

.badge.sex {
  font-size: 8px;
  letter-spacing: 0.3px;
}

.badge.sex.male {
  border: 1px solid rgba(255, 123, 138, 0.32);
  background: rgba(255, 123, 138, 0.1);
  color: #ff9aa4;
}

.badge.sex.female {
  border: 1px solid rgba(110, 242, 192, 0.3);
  background: rgba(110, 242, 192, 0.1);
  color: var(--mint);
}

.pregnancy-bar {
  height: 7px;
  margin: 9px 0 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
}

.pregnancy-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--gold));
  box-shadow: 0 0 12px rgba(255, 143, 199, 0.35);
  transition: width 0.5s linear;
}

.pill.over {
  border-color: rgba(255, 123, 138, 0.4);
  color: var(--danger);
}

.murloouka-peek {
  position: absolute;
  z-index: 1;
  bottom: 16px;
  left: 50%;
  width: 195px;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 22px rgba(255, 70, 70, 0.24));
  animation: peek 3s ease-in-out infinite;
}

.murloouka-peek svg {
  display: block;
  width: 100%;
  height: auto;
}

.search-scene.murloouka-search {
  background:
    radial-gradient(circle at 68% 18%, rgba(255, 92, 92, 0.17), transparent 40%),
    radial-gradient(circle at 18% 72%, rgba(179, 140, 255, 0.18), transparent 40%),
    radial-gradient(1px 1px at 18% 18%, rgba(255, 255, 255, 0.7), transparent 2px),
    linear-gradient(180deg, #0c1130 0%, #241b4e 58%, #3a1c50 100%);
}

.search-scene.lumikryl-search {
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 158, 203, 0.2), transparent 42%),
    radial-gradient(circle at 76% 66%, rgba(110, 242, 192, 0.15), transparent 46%),
    radial-gradient(1px 1px at 30% 22%, #fff, transparent 2px),
    linear-gradient(180deg, #160f33 0%, #281a4d 58%, #392052 100%);
}

.search-scene.kriozhil-search {
  background:
    radial-gradient(circle at 28% 20%, rgba(174, 231, 255, 0.18), transparent 36%),
    radial-gradient(circle at 74% 68%, rgba(89, 216, 255, 0.15), transparent 44%),
    radial-gradient(1px 1px at 70% 18%, rgba(255, 255, 255, 0.7), transparent 2px),
    linear-gradient(180deg, #0a1830 0%, #153451 58%, #21465e 100%);
}

.search-scene.plasmik-search {
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 180, 90, 0.22), transparent 40%),
    radial-gradient(circle at 76% 66%, rgba(255, 61, 127, 0.16), transparent 46%),
    radial-gradient(1px 1px at 26% 20%, #ffe9a3, transparent 2px),
    linear-gradient(180deg, #1c0a24 0%, #3d1132 58%, #591b30 100%);
}

.search-scene.eholit-search {
  background:
    radial-gradient(circle at 24% 20%, rgba(179, 140, 255, 0.2), transparent 38%),
    radial-gradient(circle at 76% 68%, rgba(126, 247, 230, 0.14), transparent 44%),
    radial-gradient(1px 1px at 72% 18%, rgba(255, 255, 255, 0.6), transparent 2px),
    linear-gradient(180deg, #120d26 0%, #241c45 58%, #352852 100%);
}

.search-scene.starwhale-search {
  background:
    radial-gradient(circle at 24% 22%, rgba(120, 180, 255, 0.2), transparent 40%),
    radial-gradient(circle at 76% 70%, rgba(179, 140, 255, 0.14), transparent 46%),
    radial-gradient(1px 1px at 20% 18%, #fff, transparent 2px),
    radial-gradient(1px 1px at 74% 26%, #dcefff, transparent 2px),
    linear-gradient(180deg, #060b24 0%, #0d1c47 58%, #102c58 100%);
}

.search-scene.aurilon-search {
  background:
    radial-gradient(circle at 28% 22%, rgba(168, 255, 242, 0.22), transparent 42%),
    radial-gradient(circle at 74% 68%, rgba(255, 158, 214, 0.16), transparent 46%),
    linear-gradient(180deg, #08162c 0%, #1b4058 58%, #3c2a62 100%);
}

.search-scene.kryptocit-search {
  background:
    radial-gradient(circle at 38% 24%, rgba(255, 198, 92, 0.2), transparent 40%),
    radial-gradient(circle at 76% 72%, rgba(126, 230, 212, 0.12), transparent 46%),
    linear-gradient(180deg, #1c1009 0%, #3b2410 58%, #5a3513 100%);
}

.search-scene.miceloid-search {
  background:
    radial-gradient(circle at 26% 20%, rgba(228, 154, 255, 0.22), transparent 42%),
    radial-gradient(circle at 74% 70%, rgba(255, 158, 203, 0.14), transparent 46%),
    linear-gradient(180deg, #1a0d2b 0%, #35194c 58%, #4d2460 100%);
}

.search-scene.serpens-search {
  background:
    radial-gradient(circle at 30% 22%, rgba(101, 227, 176, 0.2), transparent 42%),
    radial-gradient(circle at 76% 70%, rgba(84, 143, 216, 0.14), transparent 46%),
    linear-gradient(180deg, #07171d 0%, #10313a 58%, #183f4a 100%);
}

.search-scene.tiktak-search {
  background:
    radial-gradient(circle at 50% 24%, rgba(224, 166, 75, 0.2), transparent 44%),
    radial-gradient(circle at 22% 72%, rgba(255, 232, 170, 0.1), transparent 42%),
    linear-gradient(180deg, #1a1208 0%, #33210f 58%, #4a3017 100%);
}

.search-scene.gelios-search {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 200, 74, 0.24), transparent 44%),
    radial-gradient(circle at 76% 70%, rgba(255, 122, 58, 0.16), transparent 46%),
    linear-gradient(180deg, #27100a 0%, #521b12 58%, #7a2a16 100%);
}

.search-scene.umbrion-search {
  background:
    radial-gradient(circle at 48% 34%, rgba(90, 63, 158, 0.2), transparent 44%),
    radial-gradient(circle at 78% 74%, rgba(143, 117, 214, 0.1), transparent 42%),
    linear-gradient(180deg, #070512 0%, #130d2a 58%, #1d1338 100%);
}

.search-scene.korallon-search {
  background:
    radial-gradient(circle at 26% 20%, rgba(185, 255, 242, 0.18), transparent 40%),
    radial-gradient(circle at 74% 70%, rgba(255, 143, 189, 0.18), transparent 46%),
    linear-gradient(180deg, #071b22 0%, #0f3a46 58%, #1b4e58 100%);
}

.search-scene.drakonid-search {
  background:
    radial-gradient(circle at 52% 8%, rgba(255, 170, 90, 0.3), transparent 46%),
    radial-gradient(circle at 10% 58%, rgba(255, 92, 60, 0.22), transparent 52%),
    radial-gradient(circle at 92% 52%, rgba(255, 122, 77, 0.2), transparent 50%),
    linear-gradient(180deg, #1a0620 0%, #2e0a22 42%, #4a1028 74%, #24070f 100%);
}

.search-scene.drakonid-search::before {
  content: '';
  position: absolute;
  z-index: 0;
  right: -4%;
  bottom: 0;
  left: -4%;
  height: 138px;
  background:
    radial-gradient(ellipse at 22% 100%, rgba(255, 122, 77, 0.3), transparent 55%),
    linear-gradient(180deg, #7a2a4c, #3a1028 70%);
  clip-path: polygon(0 100%, 0 78%, 10% 62%, 16% 68%, 24% 48%, 31% 54%, 40% 30%, 47% 36%, 55% 16%, 62% 22%, 70% 40%, 77% 34%, 85% 56%, 91% 50%, 100% 70%, 100% 100%);
  opacity: 0.65;
}

.search-scene.drakonid-search .search-grass {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 122, 77, 0.28), transparent 42%),
    linear-gradient(180deg, #4a1530, #220814 65%);
  box-shadow: 0 -2px 24px rgba(255, 122, 77, 0.28);
}

.search-scene.drakonid-search .murloouka-peek {
  bottom: 36px;
  width: 205px;
}

.search-scene.drakonid-search .search-planet {
  background: radial-gradient(circle at 34% 30%, #ffc08a, #b04a3a 50%, #4a1020 100%);
  box-shadow: inset -16px -18px 28px rgba(0, 0, 0, 0.42), 0 0 42px rgba(255, 122, 77, 0.26);
  opacity: 0.55;
}

.search-scene.drakonid-search .search-rock {
  background: linear-gradient(160deg, #4a1a2e, #260a16);
  box-shadow: inset -4px -5px 9px rgba(0, 0, 0, 0.45), 0 0 12px rgba(255, 122, 77, 0.16);
}

.search-scene.drakonid-search::after {
  content: '';
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: -28px;
  left: 0;
  height: 104px;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 122, 77, 0.5), transparent 70%);
  filter: blur(10px);
  animation: sceneLavaPulse 5.2s ease-in-out infinite;
}

.result-avatar.special {
  width: 155px;
}

.result-avatar.special svg {
  overflow: visible;
}

.result-avatar.special + .result-avatar.special {
  width: 135px;
  margin-left: -18px;
}

.result-avatar.murloouka {
  width: 158px;
}

.result-avatar.murloouka svg {
  overflow: visible;
}

.result-avatar.murloouka + .result-avatar.murloouka {
  width: 135px;
  margin-left: -18px;
}

@media (max-width: 390px) {
  .dest-copy b {
    font-size: 9.5px;
  }

  .dest-copy small {
    font-size: 8px;
  }

  .dest-icon {
    width: 24px;
    height: 24px;
    font-size: 13px;
  }

  .scene-murloouka-art {
    width: 214px;
  }

  .result-avatar.murloouka {
    width: 140px;
  }
}

/* ---------- Адаптив ---------- */

@media (max-width: 520px) {
  .topbar {
    flex-wrap: wrap;
    row-gap: 6px;
  }

  .wallet {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }

  .res-pill {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
  }

  .res-timer {
    display: none;
  }

  .energy-note {
    display: block;
    flex: 1 1 100%;
    margin-top: -2px;
    color: var(--mint);
    font-size: 10px;
    font-weight: 600;
    text-align: left;
    letter-spacing: 0.2px;
    opacity: 0.85;
  }

  .energy-note:empty {
    display: none;
  }
}

@media (max-width: 390px) {
  .topbar {
    padding-right: 10px;
    padding-left: 10px;
  }

  .brand-title {
    font-size: 12.5px;
    letter-spacing: 1.3px;
  }

  .brand-mark {
    width: 33px;
    height: 33px;
    font-size: 18px;
  }

  .res-pill {
    padding: 6px 7px;
    font-size: 11.5px;
  }

  .res-timer {
    display: none;
  }

  .hero-copy {
    width: 82%;
  }

  .hero-copy h1 {
    font-size: 27px;
  }

  .hero-planet {
    right: -64px;
  }

  .screen {
    padding-right: 11px;
    padding-left: 11px;
  }

  .grogli-card {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .grogli-avatar {
    min-height: 94px;
  }

  .shop-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .shop-ico {
    width: 44px;
    height: 44px;
    font-size: 21px;
  }

  .shop-card .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .stats-row {
    flex-wrap: wrap;
    gap: 8px 12px;
  }
}

@media (min-width: 620px) {
  #app {
    border-right: 1px solid rgba(164, 182, 255, 0.07);
    border-left: 1px solid rgba(164, 182, 255, 0.07);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .teaser-phrase span {
    position: static;
    opacity: 1;
    animation: none;
  }

  .teaser-phrase span:not(:first-child) {
    display: none;
  }
}
/* Экран загрузки */

.boot {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background-color: #070b1e;
  background-image:
    radial-gradient(circle at 50% 36%, rgba(24, 38, 84, 0.85), rgba(7, 11, 30, 0) 72%);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.boot-hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-inner {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 24px;
}

.boot-radar {
  position: relative;
  width: 190px;
  height: 190px;
  overflow: hidden;
  border: 2px solid rgba(87, 240, 192, 0.45);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(15, 52, 62, 0.96), #071f29 72%);
  box-shadow:
    0 0 46px rgba(87, 240, 192, 0.18),
    inset 0 0 36px rgba(87, 240, 192, 0.1);
}

.boot-radar::before,
.boot-radar::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(87, 240, 192, 0.18);
}

.boot-radar::before { inset: 24px; }
.boot-radar::after { inset: 52px; }

.boot-sweep {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(87, 240, 192, 0.36),
    rgba(87, 240, 192, 0.12) 34deg,
    transparent 54deg,
    transparent 360deg
  );
  animation: bootSweep 2.4s linear infinite;
}

.boot-blip {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8dffd0;
  box-shadow: 0 0 8px rgba(141, 255, 208, 0.8);
  animation: bootBlip 2.6s ease-in-out infinite;
}

.blip-1 { top: 28%; left: 70%; }
.blip-2 { top: 66%; left: 24%; animation-delay: -0.9s; }
.blip-3 { top: 72%; left: 68%; animation-delay: -1.7s; }

.boot-grogli {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  margin: -52px 0 0 -48px;
}

.boot-grogli svg {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 50% 92%;
  animation: bootGrogliJump 1.7s ease-in-out infinite;
}

.boot-brand {
  color: #9fb4e8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
}

.boot-phrase {
  min-height: 1.4em;
  margin: 0;
  color: #bfffe0;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 0 18px rgba(87, 240, 192, 0.25);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.boot-phrase.swap {
  opacity: 0;
  transform: translateY(4px);
}

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

@keyframes bootBlip {
  0%, 100% { opacity: 0.25; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes bootGrogliJump {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  18% { transform: translateY(2px) scale(1.04, 0.94); }
  32% { transform: translateY(-10px) scale(0.97, 1.05); }
  48% { transform: translateY(0) scale(1, 1); }
  62% { transform: translateY(2px) scale(1.05, 0.93); }
  76% { transform: translateY(-3px) scale(0.99, 1.01); }
}
