﻿:root {
  color-scheme: dark;
  --bg: #05050b;
  --bg-deep: #060617;
  --panel: rgba(14, 19, 40, 0.7);
  --panel-strong: rgba(20, 26, 54, 0.92);
  --text: #edf3ff;
  --muted: #b3bdd7;
  --accent: #68e1ff;
  --accent-warm: #ffb454;
  --accent-rose: #ff6fb1;
  --accent-green: #6ef7c2;
  --glow: 0 0 25px rgba(104, 225, 255, 0.35);
  --font-title: "Space Grotesk", sans-serif;
  --font-body: "Rajdhani", sans-serif;
}

/* === Letters map === */
.letters-page .letters-grid-section.section {
  margin-top: 18px;
  padding-top: 0;
}

body.letters-page main {
  max-width: 1100px;
  width: auto;
  margin-left: 3vw;
  margin-right: 3vw;
  padding-top: 32px;
}

.letters-grid-section .section-title {
  max-width: 640px;
  margin-bottom: 18px;
}

.letters-grid-section {
  max-width: 1100px;
  margin-right: auto;
}

.letters-grid-section .section-title .eyebrow {
  margin-bottom: 6px;
}

.letters-grid-section .section-title h2 {
  margin-top: 0;
}

.letters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 18px;
  width: 100%;
}

.letter-card {
  position: relative;
  border-radius: 18px;
  padding: 18px 14px 14px;
  min-height: 120px;
  display: grid;
  place-items: center;
  gap: 10px;
  background: rgba(10, 16, 32, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 28px rgba(2, 6, 18, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.letter-card:hover {
  transform: translateY(-6px);
  border-color: rgba(120, 235, 255, 0.7);
  box-shadow: 0 22px 36px rgba(2, 8, 24, 0.45),
    0 0 26px rgba(120, 235, 255, 0.35),
    inset 0 0 0 1px rgba(120, 235, 255, 0.4);
}

.letter-card:focus-visible {
  outline: 2px solid rgba(104, 225, 255, 0.7);
  outline-offset: 4px;
}

.letter-card .letter {
  font-size: 2.2rem;
  font-weight: 700;
  color: #f2f7ff;
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
}

.letter-audio {
  border: none;
  background: transparent;
  color: rgba(104, 225, 255, 0.9);
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.letter-audio svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 720px) {
  .letters-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  .letter-card {
    min-height: 120px;
  }
  .letter-card .letter {
    font-size: 2.2rem;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: radial-gradient(circle at top, #151638, var(--bg));
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

html {
  overflow-y: scroll;
}


h1,
h2,
h3 {
  font-family: var(--font-title);
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

button,
input {
  font-family: var(--font-title);
}

.aurora {
  position: fixed;
  inset: -30vh -20vw;
  background: radial-gradient(circle at 20% 20%, rgba(104, 225, 255, 0.18), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(255, 111, 177, 0.15), transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(110, 247, 194, 0.15), transparent 55%);
  z-index: -2;
  animation: drift 18s ease-in-out infinite alternate;
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #f5f8ff;
  border-radius: 50%;
  opacity: 0.8;
  animation: twinkle var(--twinkle, 6s) infinite;
}

.starfield-deep {
  opacity: 0.4;
}

.starfield-mid {
  opacity: 0.7;
}

.starfield-near {
  opacity: 1;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 6vw;
  position: sticky;
  top: 0;
  backdrop-filter: blur(20px);
  background: linear-gradient(180deg, rgba(5, 5, 11, 0.85), rgba(5, 5, 11, 0.2));
  z-index: 10;
  width: 100%;
}

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

.brand-mark {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(104, 225, 255, 0.6);
  display: grid;
  place-items: center;
  box-shadow: var(--glow);
}

.brand-title {
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid rgba(104, 225, 255, 0.4);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sound-toggle .dot {
  width: 10px;
  height: 10px;
  background: var(--accent-rose);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 111, 177, 0.8);
}

.sound-toggle.active .dot {
  background: var(--accent-green);
  box-shadow: 0 0 12px rgba(110, 247, 194, 0.9);
}

.sound-toggle:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

main {
  padding: 12px 6vw 120px;
}

body:not(.world-page) main {
  padding-bottom: 70px;
}


.hero {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(260px, 0.9fr);
  gap: 40px;
  align-items: center;
  min-height: 85vh;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero-left h1 {
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  line-height: 1.05;
  margin-bottom: 18px;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
}

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

.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-green));
  color: #030512;
  border: none;
  padding: 14px 28px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: var(--glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(237, 243, 255, 0.2);
  padding: 14px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.primary:hover,
.ghost:hover {
  transform: translateY(-2px);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.meta-number {
  font-size: 22px;
  font-weight: 600;
}

.meta-label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hero-right {
  position: relative;
  height: 520px;
  display: grid;
  place-items: center;
}

.orbit-system {
  position: relative;
  width: min(520px, 100%);
  height: min(520px, 100%);
  display: grid;
  place-items: center;
  pointer-events: none;
  --planet-size: 44px;
}

.orbit-sun {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    #fff4c7,
    #ffbf6b 45%,
    #ff7d44 75%
  );
  box-shadow: 0 0 45px rgba(255, 190, 100, 0.6), 0 0 90px rgba(255, 130, 70, 0.35);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.orbit-sun::after {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 140, 0.25), transparent 65%);
  filter: blur(4px);
  opacity: 0.9;
}

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--ring-size);
  height: var(--ring-size);
  border-radius: 50%;
  border: 1px dashed rgba(237, 243, 255, 0.2);
  box-shadow: 0 0 30px rgba(104, 225, 255, 0.08);
  --ring-tilt: 0deg;
  --orbit-duration: 36s;
  --orbit-radius: 0px;
  transform: translate(-50%, -50%) rotate(var(--ring-tilt));
  transform-origin: center;
  animation: orbit-spin var(--orbit-duration) linear infinite;
  z-index: 1;
}

.orbit-ring-inner {
  --ring-size: 300px;
  --orbit-duration: 56s;
  --ring-tilt: 0deg;
  --orbit-radius: 150px;
}

.orbit-ring-outer {
  --ring-size: 430px;
  --orbit-duration: 92s;
  --ring-tilt: 0deg;
  --orbit-radius: 215px;
  border-style: solid;
  border-color: rgba(237, 243, 255, 0.12);
}

.orbit-planet {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--angle)) translateX(var(--orbit-radius));
  transform-origin: 0 0;
  z-index: 2;
}

.planet-body {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--planet-size);
  height: var(--planet-size);
  border-radius: 50%;
  overflow: hidden;
  clip-path: circle(50% at 50% 50%);
  background: rgba(7, 12, 24, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.32),
    0 0 16px rgba(104, 225, 255, 0.18),
    inset -6px -6px 12px rgba(255, 255, 255, 0.1),
    inset 10px 12px 16px rgba(0, 0, 0, 0.18);
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) rotate(0deg);
  animation: orbit-counter var(--orbit-duration) linear infinite;
}

.planet-body > .flag-badge {
  position: relative;
  z-index: 1;
}

.planet-body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.22) 100%);
  opacity: 0.55;
  filter: blur(1px);
  z-index: 2;
  pointer-events: none;
}

.planet-body::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 28% 25%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 55%);
  opacity: 0.6;
  z-index: 3;
  pointer-events: none;
}

.orbit-planet .flag-badge {
  position: static;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  transform: none;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
  border: none;
  box-shadow: none;
  background: transparent;
  display: grid;
  place-items: center;
}

.orbit-planet .flag-badge::after {
  opacity: 0;
}

.orbit-planet .flag-badge svg {
  width: 112%;
  height: 112%;
  display: block;
  justify-self: center;
  align-self: center;
}

.orbit-system .flag-badge[data-flag="de"] svg {
  transform: rotate(-90deg) scale(1.08);
  transform-origin: 50% 50%;
}

.orbit-system .flag-badge[data-flag="fr"] svg {
  transform: rotate(-60deg) scale(1.06);
  transform-origin: 50% 50%;
}

.orbit-system .flag-badge[data-flag="es"] svg {
  transform: rotate(-110deg) scale(1.08);
  transform-origin: 50% 50%;
}

.orbit-system .flag-badge[data-flag="ae"] svg {
  transform: translate(-6%, 0) rotate(-180deg) scale(1.06);
  transform-origin: 50% 50%;
}

.orbit-system .flag-badge[data-flag="pt"] svg {
  transform: rotate(30deg) scale(1.06);
  transform-origin: 50% 50%;
}

.portal {
  position: relative;
  width: 240px;
  height: 240px;
}

.portal-core {
  position: absolute;
  inset: 25%;
  background: radial-gradient(circle, rgba(104, 225, 255, 0.8), rgba(4, 6, 18, 0.3));
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(104, 225, 255, 0.8);
  animation: pulse 4s ease-in-out infinite;
}

.portal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(104, 225, 255, 0.4);
  box-shadow: 0 0 25px rgba(104, 225, 255, 0.25);
  animation: ripple 5s ease-in-out infinite;
}

.ring-two {
  inset: 18px;
  animation-delay: 1.5s;
}

.section {
  margin: 80px 0;
}

/* === English world: language selector styling (scrollable, polished) === */

.language-box {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 8px 0 0;
  padding: 12px;
  background: linear-gradient(140deg, rgba(255,255,255,0.14), rgba(12,16,32,0.28));
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(3,6,14,0.35), inset 0 1px 0 rgba(255,255,255,0.28);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
}

/* Place languages box to the left on the world page */
body.world-page .world-language .language-box {
  margin-left: 0;
  margin-right: auto;
  max-width: 360px;
  width: 100%;
}

@media (max-width: 880px) {
  body.world-page .world-language .language-box {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}

.language-search-wrap {
  display: grid;
  gap: 12px;
  margin-bottom: 8px;
}

.language-search {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(237,243,255,0.35);
  background: rgba(6,8,18,0.6);
  color: var(--text);
  font-weight: 600;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.35);
}

.language-shortcuts { display: none; }

.language-list {
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  scroll-behavior: smooth;
}

.language-list:focus {
  outline: none;
}

.language-pill {
  background: linear-gradient(180deg, rgba(18,22,40,0.55), rgba(10,14,28,0.65));
  border: 1px solid rgba(255,255,255,0.18);
  color: #f2f6ff;
  padding: 8px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 16px rgba(2, 6, 18, 0.35);
  transition: transform 180ms cubic-bezier(.2,.9,.3,1), box-shadow 180ms, background 180ms, color 180ms, border-color 180ms;
}



.language-pill:hover,
.language-pill:active {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0,0,0,0.5), 0 0 18px rgba(120,200,255,0.18);
  background: linear-gradient(180deg, rgba(28,34,54,0.72), rgba(18,22,38,0.85));
  color: #ffffff;
  border-color: rgba(255,255,255,0.32);
}

.language-pill:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(104,225,255,0.12);
}

.language-box::before,
.language-box::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  pointer-events: none;
  z-index: 2;
  border-radius: inherit;
}

.language-box::before {
  top: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 100%);
}

.language-box::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(6,8,18,0.35) 0%, rgba(6,8,18,0) 100%);
}

/* Custom thin scrollbar (WebKit) */
.language-list::-webkit-scrollbar {
  width: 10px;
}
.language-list::-webkit-scrollbar-track {
  background: transparent;
}
.language-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255,184,60,0.22), rgba(255,140,16,0.14));
  border-radius: 999px;
  border: 2px solid rgba(6,8,18,0.0);
}

/* Firefox scrollbar colors */
.language-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(104,225,255,0.18) transparent;
}

/* highlight matched pills and make them stand out */
.language-pill.match {
  transform: translateY(-6px) scale(1.02);
  z-index: 4;
  background: linear-gradient(120deg, rgba(255,184,60,0.18), rgba(255,140,16,0.12));
  color: #0b0b00;
  border-color: rgba(255,180,60,0.22);
  box-shadow: 0 26px 54px rgba(40,26,6,0.7);
}

/* Alphabetical grouping and quick index */
.alpha-group {
  padding: 6px 0 12px;
}
.alpha-letter {
  font-family: var(--font-title);
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 6px 0;
  padding: 6px 4px;
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, rgba(6,8,18,0.02), rgba(6,8,18,0));
  z-index: 3;
}
.alpha-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.alpha-index {
  position: absolute;
  top: 12px;
  right: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 6;
}
.alpha-index-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 700;
}
.alpha-index-btn:hover {
  background: rgba(255,184,60,0.12);
  color: #0b0b00;
}

@media (max-width: 680px) {
  .language-list {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    max-height: 220px;
  }
}

/* === Layout: left-align content only on the English world page === */
body.world-page main {
  max-width: 1100px;
  margin-left: 6vw;
  margin-right: auto;
  padding: 12px 0 120px;
}

body.world-page .section {
  margin-top: 120px;
}

body.world-page .section-title {
  margin-left: 0;
  margin-right: 0;
}

/* keep the hero grid layout but aligned to the left column */
.world-hero {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(260px, 0.9fr);
  gap: 40px;
  align-items: center;
}

@media (max-width: 880px) {
  body.world-page main {
    max-width: calc(100vw - 3rem);
    margin-left: 1.25rem;
  }
}

@media (max-width: 680px) {
  .language-list {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    max-height: 280px;
  }
}

#how,
#journey,
#worlds,
#guide,
#join {
  scroll-margin-top: 150px;
}

/* Home page: land a bit lower on Worlds section */
#worlds {
  scroll-margin-top: 80px;
}

#join.section {
  margin-top: 280px;
}

.section-title {
  max-width: 700px;
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  margin-bottom: 12px;
}

.section-title p {
  color: var(--muted);
  line-height: 1.6;
}

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

.card {
  background: var(--panel);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid rgba(237, 243, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.map-card {
  position: relative;
  border-radius: 18px;
  padding: 24px 22px 30px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 14, 28, 0.48);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 52px rgba(2, 6, 20, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -12px 28px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.map-card::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,0.35), transparent 38%),
    radial-gradient(circle at 86% 16%, rgba(104,225,255,0.28), transparent 38%),
    radial-gradient(circle at 18% 82%, rgba(255,111,177,0.22), transparent 42%),
    radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1.5px 1.5px at 70% 45%, rgba(255, 255, 255, 0.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 40% 75%, rgba(255, 255, 255, 0.4), transparent 60%);
  opacity: 0.85;
  z-index: 0;
}

.map-card::after {
  content: "";
  position: absolute;
  right: -10%;
  top: -18%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 30px rgba(104, 225, 255, 0.35);
  opacity: 0.65;
  z-index: 0;
}

.map-card .map-stamp {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.45);
  z-index: 2;
}

.map-card .map-icon {
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 28px;
  height: 28px;
  color: rgba(237, 243, 255, 0.9);
  opacity: 0.9;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
}

.map-card .map-icon svg {
  width: 28px;
  height: 28px;
}

.map-card h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
  z-index: 2;
  text-shadow: 0 8px 22px rgba(0,0,0,0.5);
  text-align: left;
}

.map-card.map-letters { background: linear-gradient(135deg, rgba(122, 214, 255, 0.78), rgba(12, 32, 58, 0.82)); }
.map-card.map-words { background: linear-gradient(135deg, rgba(255, 196, 118, 0.78), rgba(40, 26, 14, 0.82)); }
.map-card.map-phrases { background: linear-gradient(135deg, rgba(150, 230, 190, 0.78), rgba(10, 32, 26, 0.82)); }
.map-card.map-grammar { background: linear-gradient(135deg, rgba(255, 170, 220, 0.78), rgba(40, 16, 40, 0.82)); }

.map-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 52px rgba(2, 6, 20, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}


.card-number {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.worlds .section-title {
  text-align: center;
  margin: 0 auto 50px;
}

.worlds {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  transition: opacity 0.3s ease;
}

body.hide-worlds-overlap .worlds {
  opacity: 0;
  pointer-events: none;
}

.world-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 24px;
}

.world-card {
  background: var(--panel-strong);
  border-radius: 30px;
  padding: 18px;
  border: 1px solid rgba(237, 243, 255, 0.08);
  display: grid;
  gap: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.world-card.coming-soon {
  opacity: 0.55;
  cursor: not-allowed;
  filter: saturate(0.6);
}

.world-card.coming-soon:hover {
  transform: none;
  box-shadow: none;
}

.world-card.coming-soon .world-info,
.world-card.coming-soon .world-surface {
  opacity: 0.85;
}

.coming-soon-badge {
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 236, 255, 0.92);
  background: rgba(12, 20, 40, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  pointer-events: none;
  z-index: 3;
}

.dev-badge {
  position: fixed;
  left: 18px;
  bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10, 18, 36, 0.9);
  background: rgba(122, 236, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  z-index: 9999;
  pointer-events: none;
}

.world-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.world-card:focus-visible {
  outline: 2px solid rgba(104, 225, 255, 0.8);
  outline-offset: 4px;
}

.world-surface {
  height: 140px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
}

.flag-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(86px, 46%, 120px);
  aspect-ratio: 3 / 2;
  transform: translate(-50%, -50%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
  background: rgba(10, 14, 28, 0.35);
  display: grid;
  place-items: center;
  z-index: 2;
  pointer-events: none;
}

.flag-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 60%);
  opacity: 0.5;
}

.flag-badge svg {
  width: 100%;
  height: 100%;
  display: block;
}

.english {
  background: radial-gradient(circle at 30% 30%, #e6f4ff, #3a6dc5 70%);
}

.french {
  background: radial-gradient(circle at 30% 30%, #ffe0f4, #7c2f72 70%);
}

.dutch {
  background: radial-gradient(circle at 30% 30%, #def8ff, #256fa1 70%);
}

.swedish {
  background: radial-gradient(circle at 30% 30%, #fef1c9, #d4922d 70%);
}

.korean {
  background: radial-gradient(circle at 30% 30%, #e7fff3, #2a8b6d 70%);
}

.arabic {
  background: radial-gradient(circle at 30% 30%, #efe7ff, #4f2d91 70%);
}

.spanish {
  background: radial-gradient(circle at 30% 30%, #ffe7c5, #d85a2f 70%);
}

.german {
  background: radial-gradient(circle at 30% 30%, #e1ecff, #2f3f7d 70%);
}

.japanese {
  background: radial-gradient(circle at 30% 30%, #ffe4ef, #c44b6e 70%);
}

.chinese {
  background: radial-gradient(circle at 30% 30%, #fff2c4, #c53b3b 70%);
}

.portuguese {
  background: radial-gradient(circle at 30% 30%, #dfffe9, #2a8a62 70%);
}

.hindi {
  background: radial-gradient(circle at 30% 30%, #ffe7d6, #b6507f 70%);
}

.world-info h3 {
  margin: 0 0 6px;
}

.world-info p {
  margin: 0;
  color: var(--muted);
}

.journey-track {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.story-step {
  background: rgba(10, 16, 34, 0.8);
  border-radius: 24px;
  padding: 28px;
  border: 1px solid rgba(237, 243, 255, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  transform: translateY(10px) scale(0.98);
  opacity: 0.7;
}

.story-step.active {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  opacity: 1;
  border-color: rgba(104, 225, 255, 0.5);
}

.step-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--accent);
  margin-bottom: 12px;
}

.guide {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
  gap: 40px;
  align-items: center;
}

.guide-left {
  transition: opacity 0.3s ease;
}

body.hide-guide-overlap .guide-left {
  opacity: 0;
}

.guide-right {
  transition: opacity 0.3s ease;
  position: relative;
}

body.hide-guide-overlap .guide-right {
  opacity: 0;
}

.tap-bubble {
  display: none;
  position: absolute;
  right: 4%;
  top: 28%;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(19, 24, 48, 0.92);
  border: 1px solid rgba(104, 225, 255, 0.35);
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 14px 26px rgba(3, 6, 14, 0.35);
  backdrop-filter: blur(8px);
}

.tap-bubble::after {
  content: "";
  position: absolute;
  left: -6px;
  bottom: 10px;
  width: 10px;
  height: 10px;
  background: rgba(19, 24, 48, 0.92);
  transform: rotate(45deg);
  border-left: 1px solid rgba(104, 225, 255, 0.3);
  border-bottom: 1px solid rgba(104, 225, 255, 0.3);
}


.speech {
  background: rgba(19, 24, 48, 0.95);
  border-radius: 18px;
  padding: 18px 22px;
  margin: 20px 0;
  border: 1px solid rgba(104, 225, 255, 0.35);
  position: relative;
  box-shadow: 0 20px 35px rgba(3, 6, 14, 0.35);
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.speech::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: -10px;
  width: 18px;
  height: 18px;
  background: rgba(19, 24, 48, 0.9);
  transform: rotate(45deg);
  border-right: 1px solid rgba(104, 225, 255, 0.3);
  border-bottom: 1px solid rgba(104, 225, 255, 0.3);
}

.speech-text {
  flex: 1;
}

.speech-bars {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 18px;
}

.speech-bar {
  width: 4px;
  height: 6px;
  border-radius: 999px;
  background: rgba(104, 225, 255, 0.85);
  opacity: 0.7;
}

.speech.speaking .speech-bar {
  animation: voice 0.6s ease-in-out infinite;
}

.speech.speaking .speech-bar:nth-child(2) {
  animation-delay: 0.1s;
}

.speech.speaking .speech-bar:nth-child(3) {
  animation-delay: 0.2s;
}

/* === Intro overlay (welcome screen) === */
body.intro-active {
  overflow: hidden;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background-color: #05050b;
  background:
    radial-gradient(circle at 20% 20%, rgba(104, 225, 255, 0.18), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(255, 111, 177, 0.18), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(110, 247, 194, 0.16), transparent 55%),
    radial-gradient(circle at center, rgba(6, 8, 18, 0.92), rgba(5, 5, 12, 0.98));
  z-index: 999;
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

body.intro-active header,
body.intro-active main,
body.intro-active footer {
  opacity: 0;
  pointer-events: none;
}

/* === World page spacing & hero layout tweaks (tighten, professional) === */

body.world-page .nav {
  padding: 24px 6vw;
}

body.world-page main {
  padding-top: 8px;
}

body.world-page header,
body.world-page main,
body.world-page footer {
  position: relative;
  z-index: 2;
}

.world-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.world-ambient .world-nebula {
  position: absolute;
  width: 38vmax;
  height: 30vmax;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  mix-blend-mode: screen;
}

.world-ambient .nebula-a {
  top: 8%;
  left: -8%;
  background: radial-gradient(circle at 30% 35%, rgba(120, 220, 255, 0.55), transparent 65%);
}

.world-ambient .nebula-b {
  bottom: -6%;
  right: -6%;
  background: radial-gradient(circle at 60% 40%, rgba(255, 146, 205, 0.5), transparent 65%);
}

.world-ambient .world-planet {
  position: absolute;
  width: 18vmax;
  height: 18vmax;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f5fbff, #8fb7ff 45%, #3b5aa6 70%);
  box-shadow: 0 35px 70px rgba(3, 6, 20, 0.35);
  opacity: 0.95;
}

.world-ambient .planet-a {
  top: 22%;
  left: 75%;
}

.world-ambient .world-orbit,
.world-ambient .orbit-a {
  display: none;
}

body.world-page .section {
  margin-top: 120px;
}

body.world-page .world-maps {
  margin-top: 180px;
  margin-bottom: 28px;
}

body.world-page .world-hero {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(260px, 360px);
  grid-auto-rows: auto;
  gap: 24px;
  align-items: center;
  min-height: auto;
  padding: 0;
}

body.world-page .world-hero.section {
  margin-top: 44px;
}

body.world-page #language {
  scroll-margin-top: 160px;
}

body.world-page .world-hero > .section-title {
  grid-column: 1 / 2;
  margin-bottom: 8px;
}

body.world-page .world-hero > .hero-actions {
  grid-column: 1 / 2;
  margin-top: 12px;
}

body.world-page .section-title h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

body.world-page .eyebrow {
  margin-bottom: 12px;
}

/* restore slightly larger radii and shadows */
body.world-page .card,
body.world-page .world-card {
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.intro-overlay[aria-hidden="true"] {
  opacity: 0;
  pointer-events: none;
}

body.intro-leave .intro-overlay {
  opacity: 0;
  transform: scale(0.98);
}


.intro-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.intro-bg::before,
.intro-bg::after {
  content: "";
  position: absolute;
  inset: -10%;
  background-image:
    radial-gradient(2px 2px at 12% 20%, rgba(255, 255, 255, 0.8), transparent 50%),
    radial-gradient(1.5px 1.5px at 32% 70%, rgba(255, 255, 255, 0.7), transparent 50%),
    radial-gradient(2px 2px at 78% 35%, rgba(255, 255, 255, 0.8), transparent 50%),
    radial-gradient(1.5px 1.5px at 88% 18%, rgba(255, 255, 255, 0.6), transparent 50%),
    radial-gradient(2px 2px at 55% 55%, rgba(255, 255, 255, 0.7), transparent 50%),
    radial-gradient(1.5px 1.5px at 24% 40%, rgba(255, 255, 255, 0.6), transparent 50%);
  opacity: 0.6;
  animation: intro-stars 12s linear infinite;
}

.intro-bg::after {
  opacity: 0.4;
  transform: scale(1.1);
  animation-duration: 18s;
}

@keyframes intro-stars {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-20px);
  }
}

.intro-galaxy {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), rgba(104, 225, 255, 0.08), transparent 70%);
  filter: blur(2px);
  opacity: 0.7;
}

.intro-galaxy.galaxy-a {
  top: 8%;
  left: 6%;
}

.intro-galaxy.galaxy-b {
  bottom: 6%;
  right: 10%;
}

.intro-planet {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6), rgba(104, 225, 255, 0.2), rgba(20, 30, 60, 0.9));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.intro-planet.intro-planet-a {
  top: 16%;
  right: 18%;
}

.intro-planet.intro-planet-b {
  bottom: 14%;
  left: 12%;
  background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.7), rgba(255, 180, 90, 0.28), rgba(40, 30, 20, 0.9));
}

.intro-ring {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px dashed rgba(104, 225, 255, 0.2);
  top: 30%;
  left: 68%;
  opacity: 0.6;
}

.intro-comet {
  position: absolute;
  width: 180px;
  height: 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.35), transparent);
  opacity: 0.95;
  transform: rotate(-20deg);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
  animation: intro-comet 6s linear infinite;
}

.intro-comet::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 220, 160, 0.6), transparent 70%);
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(255, 220, 160, 0.7);
}

.intro-comet.comet-a {
  top: 25%;
  left: 20%;
  animation-delay: 0s;
}

.intro-comet.comet-b {
  top: 55%;
  left: 40%;
  animation-delay: 1.2s;
}

.intro-comet.comet-c {
  top: 70%;
  left: 10%;
  animation-delay: 2.4s;
}

@keyframes intro-comet {
  0% {
    transform: translateX(0) rotate(-20deg);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translateX(600px) rotate(-20deg);
    opacity: 0;
  }
}

.intro-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto auto;
  gap: 48px;
  align-items: center;
  padding: 24px;
}

.intro-mimi .intro-alien {
  transform: translateY(8px);
}

.intro-copy {
  max-width: 520px;
}

.intro-bubble {
  margin: 0 0 16px;
  position: relative;
  max-width: 520px;
  min-height: 48px;
  padding: 12px 22px;
}

.intro-bubble::after {
  left: -8px;
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.intro-button {
  min-width: 200px;
}

.intro-bubble .speech-text {
  font-size: 0.98rem;
  line-height: 1.5;
}

.intro-alien .alien-arm.right {
  animation: intro-wave 2.2s ease-in-out infinite;
  transform-origin: left center;
}

@keyframes intro-wave {
  0%,
  100% {
    transform: rotate(10deg);
  }
  50% {
    transform: rotate(-18deg);
  }
}

.mimi-chat + .ghost {
  margin-top: 14px;
}

.mimi-chat {
  background: rgba(12, 18, 36, 0.92);
  border-radius: 20px;
  padding: 10px;
  border: 1px solid rgba(104, 225, 255, 0.2);
  box-shadow: 0 18px 30px rgba(3, 6, 14, 0.35);
  display: grid;
  gap: 10px;
}

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

.chat-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent);
}

.chat-status {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(110, 247, 194, 0.7);
}

.chat-log {
  max-height: 190px;
  min-height: 120px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  padding-right: 4px;
}

.chat-message {
  display: flex;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-bubble {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 0 auto;
  max-width: 45%;
  padding: 6px 8px;
  border-radius: 16px;
  background: rgba(18, 24, 48, 0.85);
  border: 1px solid rgba(237, 243, 255, 0.08);
}

.chat-message.user .chat-bubble {
  background: rgba(104, 225, 255, 0.12);
  border-color: rgba(104, 225, 255, 0.35);
  border-radius: 16px 16px 6px 16px;
}

.chat-message.miri .chat-bubble {
  background: rgba(255, 111, 177, 0.1);
  border-color: rgba(255, 111, 177, 0.35);
}

.chat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 6px;
}

.chat-input {
  display: flex;
  gap: 10px;
  align-items: center;
}

.chat-input input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(237, 243, 255, 0.15);
  background: rgba(6, 8, 18, 0.6);
  color: var(--text);
}

.chat-input input:focus {
  outline: none;
  border-color: rgba(104, 225, 255, 0.6);
  box-shadow: 0 0 0 2px rgba(104, 225, 255, 0.15);
}

.chat-send {
  padding: 10px 18px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-chip {
  background: rgba(15, 20, 45, 0.85);
  border: 1px solid rgba(104, 225, 255, 0.2);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(104, 225, 255, 0.45);
  box-shadow: 0 10px 18px rgba(6, 10, 20, 0.4);
}

.chat-message.typing .chat-bubble {
  opacity: 0.75;
}

.chat-typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(104, 225, 255, 0.8);
  animation: chatPulse 1s ease-in-out infinite;
}

.chat-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

.alien {
  position: relative;
  width: 210px;
  margin: 112px auto 0;
  animation: float 6s ease-in-out infinite;
  --alien-skin: #aef3e2;
  --gaze-x: 0px;
  --gaze-y: 0px;
}

.alien-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at 50% 55%, rgba(110, 247, 194, 0.16), transparent 78%);
  filter: blur(26px);
  border-radius: 50%;
  opacity: 0.5;
}

.alien-head {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at 30% 30%, #dffff6, #41c5a8 70%);
  border-radius: 55% 55% 48% 48%;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 0 20px rgba(59, 191, 166, 0.45);
  animation: head-tilt 6s ease-in-out infinite;
  transform-origin: 50% 80%;
}

.alien-antenna {
  position: absolute;
  width: 10px;
  height: 50px;
  background: linear-gradient(#a8ffe6, #3bbfa6);
  top: -38px;
  left: 35px;
  border-radius: 999px;
}

.alien-antenna::after {
  content: "";
  position: absolute;
  top: -14px;
  left: -6px;
  width: 22px;
  height: 22px;
  background: #a8ffe6;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(110, 247, 194, 0.8);
}

.alien-antenna.right {
  left: auto;
  right: 35px;
}

.alien-eye {
  position: absolute;
  width: 30px;
  height: 46px;
  background: #04141b;
  border-radius: 50%;
  top: 50px;
  box-shadow: inset 0 0 12px rgba(104, 225, 255, 0.6);
  animation: blink 4.5s infinite;
}

.alien-eye.left {
  left: 32px;
}

.alien-eye.right {
  right: 32px;
}

.alien-eye::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  top: 10px;
  left: 10px;
  transform: translate(var(--gaze-x), var(--gaze-y));
  transition: transform 0.15s ease-out;
}

.alien-mouth {
  position: absolute;
  width: 50px;
  height: 20px;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
}

.alien-mouth svg {
  width: 100%;
  height: 100%;
  display: block;
}

.alien-mouth path {
  fill: none;
  stroke: #0c2a2b;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.alien-body {
  width: 170px;
  height: 190px;
  background: radial-gradient(circle at 30% 30%, #bfffe9, #2b8e86 70%);
  border-radius: 45% 45% 60% 60%;
  margin: -22px auto 0;
  position: relative;
  box-shadow: 0 0 20px rgba(59, 191, 166, 0.35);
  z-index: 2;
  animation: breathe 6s ease-in-out infinite;
  transform-origin: 50% 20%;
}

.alien-heart {
  position: absolute;
  width: 34px;
  height: 34px;
  background: #ff6fb1;
  border-radius: 50% 50% 40% 40%;
  top: 45px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  animation: pulse 3s ease-in-out infinite;
}

.alien-arm {
  position: absolute;
  width: 60px;
  height: 16px;
  background: #3bbfa6;
  border-radius: 999px;
  top: 80px;
}

.alien-arm.left {
  left: -24px;
  transform: rotate(-20deg);
}

.alien-arm.right {
  right: -24px;
  transform: rotate(20deg);
}

.alien:hover .alien-arm.left {
  animation: wave 1.2s ease-in-out infinite;
  transform-origin: right center;
}

.alien:hover .alien-arm.right {
  animation: wave 1.2s ease-in-out infinite;
  transform-origin: left center;
}

.alien:hover .alien-antenna {
  animation: wobble 1.1s ease-in-out infinite;
}

.alien.mood-happy .alien-blush {
  opacity: 0.8;
}

.alien.mood-curious .alien-eye {
  box-shadow: inset 0 0 16px rgba(104, 225, 255, 0.8);
}

.alien.mood-thinking .alien-eye {
  opacity: 0.85;
}

.alien-tail {
  position: relative;
  width: 120px;
  height: 26px;
  background: transparent;
  border-radius: 999px;
  margin: -6px auto 0;
  opacity: 0.45;
  z-index: 1;
}

.alien-tail::before {
  content: "";
  position: absolute;
  inset: 2px 0 0;
  background: radial-gradient(
    ellipse at 50% 40%,
    rgba(59, 191, 166, 0.55),
    rgba(59, 191, 166, 0.05) 70%,
    transparent 80%
  );
  border-radius: 999px;
  filter: blur(10px);
}

.alien-blush {
  position: absolute;
  width: 22px;
  height: 14px;
  background: rgba(255, 111, 177, 0.5);
  border-radius: 999px;
  top: 92px;
  filter: blur(0.5px);
}

.alien-blush.left {
  left: 18px;
}

.alien-blush.right {
  right: 18px;
}

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

.signal {
  padding: 24px;
  border-radius: 20px;
  background: rgba(15, 20, 45, 0.8);
  border: 1px solid rgba(237, 243, 255, 0.06);
}

.join-panel {
  background: linear-gradient(120deg, rgba(104, 225, 255, 0.14), rgba(255, 111, 177, 0.22));
  border-radius: 32px;
  padding: 40px;
  padding-bottom: 70px;
  border: 1px solid rgba(104, 225, 255, 0.4);
  box-shadow: 0 24px 50px rgba(3, 6, 14, 0.45);
  text-align: center;
  backdrop-filter: blur(10px);
  margin-top: 0;
  margin-bottom: 12px;
  position: relative;
}

.join-panel p {
  margin-bottom: 12px;
}

.join-status {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(680px, 90%);
  margin: 0;
}

.support-panel {
  margin-top: 18px;
  padding: 22px 26px;
  border-radius: 26px;
  background: linear-gradient(120deg, rgba(104, 225, 255, 0.12), rgba(255, 111, 177, 0.16));
  border: 1px solid rgba(155, 210, 255, 0.25);
  box-shadow: 0 18px 42px rgba(3, 6, 14, 0.4);
  backdrop-filter: blur(10px);
  transform: translateY(72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.support-copy {
  text-align: left;
  max-width: 720px;
}

.support-copy h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.support-copy p {
  margin: 0;
  color: var(--muted);
}

.support-button {
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(130, 240, 255, 0.45);
  background: linear-gradient(135deg, rgba(131, 255, 220, 0.95), rgba(120, 210, 255, 0.9));
  color: #0c1b26;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(40, 210, 255, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.support-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(40, 210, 255, 0.38);
}


/* Extra spacing above the feedback / join section to separate it from Mimi chat */
/* (removed per revert request) */

.join-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.join-actions input {
  min-width: 200px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(237, 243, 255, 0.2);
  background: rgba(6, 8, 18, 0.6);
  color: var(--text);
}

.join-actions textarea {
  min-width: min(460px, 90vw);
  min-height: 120px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(237, 243, 255, 0.25);
  background: rgba(6, 8, 18, 0.7);
  color: var(--text);
  resize: none;
}

.mobile-linebreak {
  display: none;
}

.join-actions .field-error {
  border-color: rgba(255, 95, 95, 0.9) !important;
  box-shadow: 0 0 0 1px rgba(255, 95, 95, 0.35), 0 0 14px rgba(255, 95, 95, 0.25) !important;
}

.footer {
  padding: 28px 6vw 44px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid rgba(237, 243, 255, 0.08);
}

.footer > :last-child {
  font-size: 12px;
  opacity: 0.85;
}

body:not(.world-page) .footer {
  padding: 24px 6vw 36px;
}

.warp-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(104, 225, 255, 0.35), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(255, 111, 177, 0.4), transparent 50%),
    radial-gradient(circle at 50% 30%, rgba(110, 247, 194, 0.18), transparent 55%),
    radial-gradient(circle at center, rgba(4, 6, 16, 0.98), rgba(3, 4, 12, 0.98));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 30;
  pointer-events: none;
}

.warp-overlay.active {
  opacity: 1;
  visibility: visible;
}

.warp-smoke {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  background: radial-gradient(
    circle,
    rgba(237, 243, 255, 0.25),
    rgba(104, 225, 255, 0.25) 40%,
    transparent 70%
  );
  filter: blur(40px);
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(0.7);
  animation: smoke 1.6s ease-out forwards;
}

.warp-overlay.active .warp-smoke {
  opacity: 1;
}

.smoke-a {
  top: -20%;
  left: -10%;
  animation-delay: 0s;
}

.smoke-b {
  bottom: -30%;
  right: -10%;
  animation-delay: 0.15s;
}

.smoke-c {
  top: 10%;
  right: 20%;
  animation-delay: 0.3s;
}

.warp-dust {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.6), transparent 50%),
    radial-gradient(2px 2px at 80% 20%, rgba(255, 255, 255, 0.5), transparent 50%),
    radial-gradient(2px 2px at 50% 70%, rgba(255, 255, 255, 0.5), transparent 50%);
  opacity: 0.4;
  animation: warp-dust 1.6s ease-in-out infinite;
}

.warp-dust::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.7), transparent 50%),
    radial-gradient(1.5px 1.5px at 24% 62%, rgba(255, 255, 255, 0.6), transparent 50%),
    radial-gradient(1.5px 1.5px at 66% 24%, rgba(255, 255, 255, 0.6), transparent 50%),
    radial-gradient(1.5px 1.5px at 78% 66%, rgba(255, 255, 255, 0.6), transparent 50%);
  opacity: 0.35;
}

.warp-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(2px 2px at 12% 18%, rgba(255, 255, 255, 1), transparent 55%),
    radial-gradient(2px 2px at 28% 64%, rgba(255, 255, 255, 0.95), transparent 55%),
    radial-gradient(2px 2px at 46% 26%, rgba(255, 255, 255, 0.9), transparent 55%),
    radial-gradient(2px 2px at 64% 42%, rgba(255, 255, 255, 0.95), transparent 55%),
    radial-gradient(2px 2px at 78% 18%, rgba(255, 255, 255, 0.9), transparent 55%),
    radial-gradient(2px 2px at 88% 72%, rgba(255, 255, 255, 0.95), transparent 55%),
    radial-gradient(1.5px 1.5px at 20% 38%, rgba(255, 255, 255, 0.8), transparent 55%),
    radial-gradient(1.5px 1.5px at 72% 62%, rgba(255, 255, 255, 0.8), transparent 55%),
    radial-gradient(1.5px 1.5px at 34% 14%, rgba(255, 255, 255, 0.8), transparent 55%),
    radial-gradient(1.5px 1.5px at 58% 18%, rgba(255, 255, 255, 0.85), transparent 55%),
    radial-gradient(1.5px 1.5px at 40% 52%, rgba(255, 255, 255, 0.75), transparent 55%),
    radial-gradient(1.5px 1.5px at 52% 70%, rgba(255, 255, 255, 0.8), transparent 55%),
    radial-gradient(1.5px 1.5px at 66% 78%, rgba(255, 255, 255, 0.85), transparent 55%),
    radial-gradient(1.5px 1.5px at 14% 82%, rgba(255, 255, 255, 0.8), transparent 55%),
    radial-gradient(1.5px 1.5px at 82% 36%, rgba(255, 255, 255, 0.8), transparent 55%),
    radial-gradient(1.5px 1.5px at 90% 46%, rgba(255, 255, 255, 0.85), transparent 55%),
    radial-gradient(1.5px 1.5px at 8% 42%, rgba(255, 255, 255, 0.8), transparent 55%),
    radial-gradient(1.5px 1.5px at 24% 26%, rgba(255, 255, 255, 0.8), transparent 55%),
    radial-gradient(1.5px 1.5px at 76% 52%, rgba(255, 255, 255, 0.75), transparent 55%),
    radial-gradient(1.5px 1.5px at 48% 10%, rgba(255, 255, 255, 0.85), transparent 55%);
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}

.warp-overlay > * {
  position: relative;
  z-index: 2;
}

.warp-streaks {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.warp-streaks span {
  position: absolute;
  width: var(--l, 180px);
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(104, 225, 255, 0.2), transparent);
  top: var(--y, 50%);
  left: var(--x, 50%);
  opacity: 0;
  transform: translateX(-40vw);
  animation: warp-streak var(--t, 1.4s) ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

.warp-overlay.active .warp-streaks span {
  opacity: 1;
}

.warp-flare {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(104, 225, 255, 0.35), transparent 55%);
  opacity: 0.6;
}

@keyframes warp-streak {
  0% {
    transform: translateX(-40vw);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateX(60vw);
    opacity: 0;
  }
}

@keyframes warp-dust {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.6;
  }
}

.warp-scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 20px;
  text-align: center;
  color: var(--text);
}

.ship {
  position: relative;
  width: 140px;
  height: 140px;
  transform: translate3d(-40vw, 30vh, 0) rotate(-12deg) scale(0.8);
  opacity: 0;
}

.warp-overlay.active .ship {
  animation: ship-fly 1.4s ease-out forwards;
}

.ship-body {
  position: absolute;
  width: 120px;
  height: 60px;
  background: linear-gradient(120deg, #e8f7ff, #68e1ff);
  border-radius: 60px 80px 60px 60px;
  top: 40px;
  left: 10px;
  box-shadow: 0 0 24px rgba(104, 225, 255, 0.3);
}

.ship-body::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 36px;
  background: linear-gradient(120deg, #d6f0ff, #ff6fb1);
  border-radius: 40px 40px 10px 10px;
  top: -18px;
  left: 35px;
}

.ship-window {
  position: absolute;
  width: 24px;
  height: 24px;
  background: #071a2b;
  border-radius: 50%;
  top: 54px;
  left: 54px;
  box-shadow: inset 0 0 10px rgba(104, 225, 255, 0.3);
}

.ship-flame {
  position: absolute;
  width: 40px;
  height: 26px;
  background: radial-gradient(
    circle at 20% 50%,
    #ffe29f,
    #68e1ff 60%,
    transparent 70%
  );
  top: 57px;
  left: -10px;
  border-radius: 50% 60% 60% 50%;
  animation: flame 0.4s ease-in-out infinite;
}

.warp-text {
  font-family: "Oxanium", var(--font-title);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8f7ff;
  text-shadow:
    0 0 12px rgba(104, 225, 255, 0.6),
    0 0 26px rgba(104, 225, 255, 0.35);
}

.warp-lock {
  overflow: hidden;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* World page: keep welcome section reveal only */
.world-page .reveal:not(.world-hero):not(.language-reveal) {
  opacity: 1;
  transform: none;
  transition: none;
}

.language-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.language-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

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

@keyframes orbit-spin {
  from {
    transform: translate(-50%, -50%) rotate(var(--ring-tilt));
  }
  to {
    transform: translate(-50%, -50%) rotate(calc(360deg + var(--ring-tilt)));
  }
}

@keyframes orbit-counter {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.07);
  }
}

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

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

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

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  100% {
    transform: translate3d(-20px, 30px, 0) rotate(1deg);
  }
}

@keyframes blink {
  0%,
  92%,
  100% {
    transform: scaleY(1);
  }
  94%,
  96% {
    transform: scaleY(0.1);
  }
}

@keyframes wave {
  0%,
  100% {
    transform: rotate(-18deg);
  }
  50% {
    transform: rotate(8deg);
  }
}

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

@keyframes voice {
  0%,
  100% {
    height: 6px;
  }
  50% {
    height: 16px;
  }
}

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

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@keyframes ship-fly {
  0% {
    transform: translate3d(-40vw, 30vh, 0) rotate(-12deg) scale(0.7);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translate3d(35vw, -30vh, 0) rotate(12deg) scale(1.1);
    opacity: 0;
  }
}

@keyframes smoke {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  60% {
    opacity: 0.8;
  }
  100% {
    transform: scale(1.1);
    opacity: 0;
  }
}

@keyframes flame {
  0%,
  100% {
    transform: scale(0.9);
  }
  50% {
    transform: scale(1.1);
  }
}

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

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

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

  .nav-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: center;
    font-size: 12px;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }


  .steps {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }

  .world-grid {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
  }

  body.world-page main {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 12px 5vw 100px;
  }

  .world-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .nav {
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 5vw;
    flex-wrap: wrap;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .brand-title {
    font-size: 14px;
    letter-spacing: 0.16em;
  }

  .brand-sub {
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .nav-links {
    width: 100%;
    order: 3;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-top: 12px;
    gap: 6px;
    white-space: nowrap;
  }

  .nav-links a {
    padding: 4px 7px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(20, 28, 56, 0.6);
    font-size: 9.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  body:not(.world-page) .nav-links a:nth-child(1) {
    background: rgba(104, 225, 255, 0.22);
    border-color: rgba(104, 225, 255, 0.45);
  }
  body:not(.world-page) .nav-links a:nth-child(2) {
    background: rgba(110, 247, 194, 0.22);
    border-color: rgba(110, 247, 194, 0.45);
  }
  body:not(.world-page) .nav-links a:nth-child(3) {
    background: rgba(255, 174, 102, 0.22);
    border-color: rgba(255, 174, 102, 0.45);
  }
  body:not(.world-page) .nav-links a:nth-child(4) {
    background: rgba(176, 150, 255, 0.22);
    border-color: rgba(176, 150, 255, 0.45);
  }
  body:not(.world-page) .nav-links a:nth-child(5) {
    background: rgba(255, 120, 168, 0.22);
    border-color: rgba(255, 120, 168, 0.45);
  }

  body.world-page .nav-links a {
    background: rgba(104, 225, 255, 0.18);
    border-color: rgba(104, 225, 255, 0.35);
  }

  .sound-toggle {
    margin-left: auto;
    padding: 8px 12px;
    font-size: 12px;
  }

  .hero-right {
    height: 400px;
  }

  .orbit-system {
    width: min(420px, 100%);
    height: min(420px, 100%);
    --planet-size: 36px;
  }

  .orbit-sun {
    width: 110px;
    height: 110px;
  }

  .orbit-ring-inner {
    --ring-size: 240px;
    --orbit-radius: 120px;
  }

  .orbit-ring-outer {
    --ring-size: 340px;
    --orbit-radius: 170px;
  }

  .footer {
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .join-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .join-actions input,
  .join-actions textarea {
    min-width: 100%;
    width: 100%;
  }

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

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

@media (max-width: 600px) {
  main {
    padding: 28px 5vw 90px;
  }

  .hero {
    min-height: auto;
    gap: 28px;
  }

  .hero-left h1 {
    font-size: clamp(2rem, 7vw, 2.6rem);
  }

  .lede {
    font-size: 1rem;
  }



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

  .worlds.reveal,
  .worlds.reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .map-card {
    min-height: 110px;
    padding: 20px;
  }

  .letters-grid {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 14px;
  }

  .words-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
  }

  .word-card,
  .phrase-card,
  .grammar-card {
    min-height: 130px;
  }

  .grammar-modal {
    width: min(720px, 94vw);
    border-radius: 22px;
    max-height: 78vh;
    overflow: hidden;
  }

  .grammar-modal::before,
  .grammar-modal::after {
    content: "";
    position: sticky;
    left: 0;
    right: 0;
    height: 14px;
    display: block;
    z-index: 2;
    pointer-events: none;
    border-radius: 22px;
  }

  .grammar-modal::before {
    top: 0;
    background: linear-gradient(180deg, rgba(12, 20, 45, 0.9), rgba(12, 20, 45, 0));
  }

  .grammar-modal::after {
    bottom: 0;
    background: linear-gradient(0deg, rgba(12, 20, 45, 0.9), rgba(12, 20, 45, 0));
  }

  .grammar-close {
    top: 14px;
    right: 14px;
  }

  .grammar-modal-body {
    padding: 18px 14px 14px;
  }

  .grammar-modal-header h3 {
    font-size: 1rem;
  }

  .grammar-modal-section {
    font-size: 0.58rem;
  }

  .grammar-modal-grid {
    margin-top: 10px;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grammar-block {
    padding: 8px;
  }

  .grammar-block h4 {
    font-size: 0.82rem;
    margin-bottom: 4px;
  }

  .grammar-order,
  .grammar-template,
  .grammar-example,
  .grammar-example-expanded,
  .grammar-example-labels {
    font-size: 0.75rem;
  }

  .grammar-template,
  .grammar-example {
    padding: 8px;
  }

  body.world-page #language {
    scroll-margin-top: 100px;
  }

  .support-panel {
    justify-content: center;
    align-items: center;
    text-align: center;
    transform: translateY(60px);
  }

  .support-copy {
    text-align: center;
  }

  .support-button {
    align-self: center;
  }

  body.world-page .nav {
    padding: 14px 6vw;
  }

  body.world-page .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  body.world-page .brand-title {
    font-size: 16px;
  }

  body.world-page .brand-sub {
    font-size: 11px;
  }

  input,
  select,
  textarea,
  .language-search,
  .chat-input input,
  .join-actions input,
  .join-actions textarea {
    font-size: 16px;
  }

  .section {
    margin: 60px 0;
  }

  .mobile-linebreak {
    display: block;
    width: 100%;
    height: 0;
  }

  .tap-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .orbit-ring,
  .planet-body {
    animation: none;
  }
}

/* === World pages: language + maps === */
.world-page main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 6vw 80px;
}

.world-hero .section-title {
  max-width: 680px;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
}

.primary {
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6ef7c2, #68e1ff);
  color: #0a1020;
  font-weight: 700;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(104, 225, 255, 0.25);
}

.language-box {
  width: 100%;
  max-width: 360px;
  margin: 8px 0 0;
  background: linear-gradient(140deg, rgba(255,255,255,0.14), rgba(12,16,32,0.28));
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.22);
  padding: 12px;
  box-shadow: 0 18px 45px rgba(3,6,14,0.35), inset 0 1px 0 rgba(255,255,255,0.28);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  overflow: hidden;
}

.language-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
}

.language-pill {
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(180deg, rgba(18,22,40,0.55), rgba(10,14,28,0.65));
  color: #f2f6ff;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 16px rgba(2, 6, 18, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.language-pill:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 26px rgba(0,0,0,0.5),
    0 0 18px rgba(104, 225, 255, 0.28),
    0 0 36px rgba(104, 225, 255, 0.16);
  background: linear-gradient(180deg, rgba(28,34,54,0.72), rgba(18,22,38,0.85));
  color: #ffffff;
  border-color: rgba(255,255,255,0.32);
}

.language-pill.is-active {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(104, 225, 255, 0.6);
  box-shadow:
    0 0 18px rgba(104, 225, 255, 0.35),
    0 0 32px rgba(104, 225, 255, 0.22);
}

/* Prevent initial color flash on world language box */
body.world-page .language-box {
  background: rgba(10, 14, 28, 0.28);
  border-color: rgba(255, 255, 255, 0.24);
  transition: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.world-page .language-box::before,
body.world-page .language-box::after {
  opacity: 0;
}

/* === Words/Phrases/Grammar maps === */
.words-controls {
  display: grid;
  gap: 10px;
  margin: 30px auto 24px;
  max-width: 1200px;
}

.words-controls-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--accent);
}

.words-controls-label {
  font-size: 1.1rem;
  color: var(--text);
}

.words-controls-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.words-filter {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(104, 225, 255, 0.25);
  background: rgba(9, 14, 32, 0.6);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.words-filter:hover {
  transform: translateY(-2px);
}

.words-filter.is-active {
  background: rgba(104, 225, 255, 0.18);
  border-color: rgba(104, 225, 255, 0.6);
  box-shadow: 0 0 18px rgba(104, 225, 255, 0.3);
}

.words-filter.is-all {
  background: rgba(255, 210, 120, 0.2);
  border-color: rgba(255, 210, 120, 0.6);
}

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

.word-card,
.phrase-card,
.grammar-card {
  position: relative;
  min-height: 150px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.word-card:hover,
.phrase-card:hover,
.grammar-card:hover {
  border-color: rgba(120, 235, 255, 0.6);
  box-shadow: 0 22px 36px rgba(2, 8, 24, 0.45),
    0 0 26px rgba(120, 235, 255, 0.35),
    inset 0 0 0 1px rgba(120, 235, 255, 0.35);
}

.word-card .word,
.phrase-card .word,
.phrase-card .phrase-text {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}


.word-translation,
.phrase-translation {
  font-size: 0.95rem;
  color: rgba(179, 189, 215, 0.85);
  line-height: 1.4;
}

.word-audio {
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 28px;
  height: 28px;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--accent);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.grammar-card {
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.grammar-card .grammar-text {
  font-size: 1.2rem;
  font-weight: 700;
}

/* === Grammar modal === */
.grammar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 20, 0.7);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
  overscroll-behavior: contain;
}

.grammar-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.grammar-modal {
  width: min(920px, 92vw);
  max-height: 86vh;
  overflow-y: auto;
  position: relative;
  background: rgba(12, 20, 45, 0.55);
  backdrop-filter: blur(18px) saturate(135%);
  border-radius: 28px;
  border: 1px solid rgba(140, 210, 255, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-top: 10px;
}

body.modal-open {
  overflow: hidden;
}

.grammar-overlay.is-visible .grammar-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.grammar-modal-body {
  padding: 40px 28px 28px;
}

.grammar-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(140, 210, 255, 0.25);
  background: rgba(10, 18, 38, 0.55);
  color: rgba(230, 244, 255, 0.9);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.grammar-close:hover {
  transform: translateY(-1px);
  border-color: rgba(140, 210, 255, 0.45);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.grammar-close:focus-visible {
  outline: 2px solid rgba(122, 233, 255, 0.8);
  outline-offset: 2px;
}

.grammar-modal-header h3 {
  margin: 0 0 4px;
}

.grammar-modal-section {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--accent);
}

.grammar-modal-grid {
  margin-top: 18px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grammar-block {
  background: rgba(18, 26, 54, 0.55);
  border: 1px solid rgba(140, 210, 255, 0.12);
  border-radius: 18px;
  padding: 16px;
}

.grammar-block h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.mistake-wrong {
  color: #ff6b6b;
  font-weight: 700;
}

.mistake-fix {
  color: #7dffb3;
  font-weight: 700;
}

.grammar-order {
  font-size: 0.85rem;
  color: rgba(179, 189, 215, 0.8);
  margin-bottom: 10px;
}

.grammar-template {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(8, 12, 28, 0.7);
  border: 1px dashed rgba(104, 225, 255, 0.2);
  font-size: 0.9rem;
}

.grammar-example {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(18, 26, 44, 0.8);
  border: 1px solid rgba(120, 200, 240, 0.12);
}

.grammar-example-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.grammar-label {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(120, 200, 240, 0.25);
  background: rgba(18, 28, 46, 0.6);
}

.grammar-example-expanded {
  font-weight: 600;
}

.grammar-translation {
  margin-top: 6px;
  font-size: 0.9rem;
  color: rgba(179, 189, 215, 0.85);
}

.grammar-example .highlight {
  color: #e8fbff;
  font-weight: 600;
  background: rgba(104, 225, 255, 0.12);
  border-radius: 6px;
  padding: 0 4px;
}

/* === Grammar highlight + label colors (restored) === */
.grammar-example .highlight-time { background: rgba(120, 220, 255, 0.18); border: 1px solid rgba(120, 220, 255, 0.3); }
.grammar-example .highlight-place { background: rgba(147, 246, 200, 0.18); border: 1px solid rgba(147, 246, 200, 0.3); }
.grammar-example .highlight-reason { background: rgba(255, 198, 122, 0.18); border: 1px solid rgba(255, 198, 122, 0.3); }
.grammar-example .highlight-manner { background: rgba(192, 154, 255, 0.18); border: 1px solid rgba(192, 154, 255, 0.3); }
.grammar-example .highlight-subject { background: rgba(165, 200, 255, 0.22); border: 1px solid rgba(165, 200, 255, 0.5); }
.grammar-example .highlight-verb { background: rgba(255, 120, 120, 0.22); border: 1px solid rgba(255, 120, 120, 0.5); }
.grammar-example .highlight-action-verb { background: rgba(255, 200, 120, 0.22); border: 1px solid rgba(255, 200, 120, 0.5); }
.grammar-example .highlight-state-verb { background: rgba(120, 190, 255, 0.22); border: 1px solid rgba(120, 190, 255, 0.5); }
.grammar-example .highlight-linking-verb { background: rgba(205, 160, 255, 0.22); border: 1px solid rgba(205, 160, 255, 0.5); }
.grammar-example .highlight-be-verb { background: rgba(165, 185, 95, 0.2); border: 1px solid rgba(165, 185, 95, 0.5); }
.grammar-example .highlight-verb-ing { background: rgba(255, 180, 120, 0.2); border: 1px solid rgba(255, 180, 120, 0.5); }
.grammar-example .highlight-past-verb { background: rgba(190, 255, 140, 0.2); border: 1px solid rgba(190, 255, 140, 0.5); }
.grammar-example .highlight-past-participle { background: rgba(255, 120, 190, 0.2); border: 1px solid rgba(255, 120, 190, 0.5); }
.grammar-example .highlight-auxiliary { background: rgba(180, 120, 255, 0.2); border: 1px solid rgba(180, 120, 255, 0.5); }
.grammar-example .highlight-aux { background: rgba(120, 80, 40, 0.22); border: 1px solid rgba(120, 80, 40, 0.55); }
.grammar-example .highlight-wh-word { background: rgba(255, 210, 120, 0.2); border: 1px solid rgba(255, 210, 120, 0.5); }
.grammar-example .highlight-wh-clause { background: rgba(200, 255, 140, 0.2); border: 1px solid rgba(200, 255, 140, 0.5); }
.grammar-example .highlight-modal { background: rgba(255, 150, 190, 0.2); border: 1px solid rgba(255, 150, 190, 0.5); }
.grammar-example .highlight-intro { background: rgba(140, 200, 255, 0.2); border: 1px solid rgba(140, 200, 255, 0.5); }
.grammar-example .highlight-statement { background: rgba(255, 170, 120, 0.2); border: 1px solid rgba(255, 170, 120, 0.5); }
.grammar-example .highlight-tag { background: rgba(120, 255, 160, 0.2); border: 1px solid rgba(120, 255, 160, 0.5); }
.grammar-example .highlight-not { background: rgba(255, 90, 140, 0.2); border: 1px solid rgba(255, 90, 140, 0.5); }
.grammar-example .highlight-negative-word { background: rgba(255, 180, 90, 0.2); border: 1px solid rgba(255, 180, 90, 0.5); }
.grammar-example .highlight-negative-adverb { background: rgba(190, 140, 255, 0.2); border: 1px solid rgba(190, 140, 255, 0.5); }
.grammar-example .highlight-if-clause { background: rgba(255, 120, 120, 0.22); border: 1px solid rgba(255, 120, 120, 0.55); }
.grammar-example .highlight-unless-clause { background: rgba(255, 140, 110, 0.2); border: 1px solid rgba(255, 140, 110, 0.5); }
.grammar-example .highlight-would-clause { background: rgba(180, 120, 255, 0.2); border: 1px solid rgba(180, 120, 255, 0.5); }
.grammar-example .highlight-would-have-clause { background: rgba(255, 210, 90, 0.2); border: 1px solid rgba(255, 210, 90, 0.5); }
.grammar-example .highlight-doer { background: rgba(120, 220, 255, 0.2); border: 1px solid rgba(120, 220, 255, 0.5); }
.grammar-example .highlight-focus-phrase { background: rgba(255, 150, 200, 0.2); border: 1px solid rgba(255, 150, 200, 0.5); }
.grammar-example .highlight-it-subject { background: rgba(120, 160, 255, 0.22); border: 1px solid rgba(120, 160, 255, 0.55); }
.grammar-example .highlight-there-subject { background: rgba(255, 170, 120, 0.2); border: 1px solid rgba(255, 170, 120, 0.5); }
.grammar-example .highlight-probability-word { background: rgba(255, 220, 120, 0.22); border: 1px solid rgba(255, 220, 120, 0.55); }
.grammar-example .highlight-modal-phrase { background: rgba(200, 170, 255, 0.2); border: 1px solid rgba(200, 170, 255, 0.5); }
.grammar-example .highlight-reason-clause { background: rgba(255, 140, 100, 0.2); border: 1px solid rgba(255, 140, 100, 0.5); }
.grammar-example .highlight-result-clause { background: rgba(120, 255, 220, 0.2); border: 1px solid rgba(120, 255, 220, 0.5); }
.grammar-example .highlight-time-connector { background: rgba(120, 200, 255, 0.2); border: 1px solid rgba(120, 200, 255, 0.5); }
.grammar-example .highlight-contrast-connector { background: rgba(255, 140, 210, 0.2); border: 1px solid rgba(255, 140, 210, 0.5); }
.grammar-example .highlight-addition-marker { background: rgba(255, 155, 90, 0.22); border: 1px solid rgba(255, 155, 90, 0.55); }
.grammar-example .highlight-comparison { background: rgba(255, 210, 180, 0.2); border: 1px solid rgba(255, 210, 180, 0.5); }
.grammar-example .highlight-sequence { background: rgba(255, 200, 90, 0.2); border: 1px solid rgba(255, 200, 90, 0.5); }
.grammar-example .highlight-clause-1 { background: rgba(120, 255, 180, 0.2); border: 1px solid rgba(120, 255, 180, 0.5); }
.grammar-example .highlight-clause-2 { background: rgba(255, 180, 150, 0.2); border: 1px solid rgba(255, 180, 150, 0.5); }
.grammar-example .highlight-future-marker { background: rgba(255, 230, 120, 0.2); border: 1px solid rgba(255, 230, 120, 0.5); }
.grammar-example .highlight-base-verb { background: rgba(120, 255, 210, 0.2); border: 1px solid rgba(120, 255, 210, 0.5); }
.grammar-example .highlight-simple-form { background: rgba(120, 255, 150, 0.2); border: 1px solid rgba(120, 255, 150, 0.5); }
.grammar-example .highlight-continuous-form { background: rgba(255, 150, 120, 0.2); border: 1px solid rgba(255, 150, 120, 0.5); }
.grammar-example .highlight-article { background: rgba(70, 130, 220, 0.24); border: 1px solid rgba(70, 130, 220, 0.6); }
.grammar-example .highlight-determiner { background: rgba(255, 190, 140, 0.2); border: 1px solid rgba(255, 190, 140, 0.5); }
.grammar-example .highlight-adjective { background: rgba(170, 255, 190, 0.2); border: 1px solid rgba(170, 255, 190, 0.5); }
.grammar-example .highlight-adverb { background: rgba(255, 170, 230, 0.2); border: 1px solid rgba(255, 170, 230, 0.5); }
.grammar-example .highlight-frequency-adverb { background: rgba(150, 255, 170, 0.2); border: 1px solid rgba(150, 255, 170, 0.5); }
.grammar-example .highlight-time-adverb { background: rgba(90, 170, 255, 0.2); border: 1px solid rgba(90, 170, 255, 0.5); }
.grammar-example .highlight-place-adverb { background: rgba(90, 240, 180, 0.2); border: 1px solid rgba(90, 240, 180, 0.5); }
.grammar-example .highlight-degree-word { background: rgba(255, 210, 110, 0.2); border: 1px solid rgba(255, 210, 110, 0.5); }
.grammar-example .highlight-opinion { background: rgba(200, 140, 255, 0.2); border: 1px solid rgba(200, 140, 255, 0.5); }
.grammar-example .highlight-size { background: rgba(255, 150, 160, 0.2); border: 1px solid rgba(255, 150, 160, 0.5); }
.grammar-example .highlight-age { background: rgba(140, 255, 240, 0.2); border: 1px solid rgba(140, 255, 240, 0.5); }
.grammar-example .highlight-color { background: rgba(255, 120, 90, 0.2); border: 1px solid rgba(255, 120, 90, 0.5); }
.grammar-example .highlight-comparative { background: rgba(120, 255, 120, 0.2); border: 1px solid rgba(120, 255, 120, 0.5); }
.grammar-example .highlight-than { background: rgba(255, 180, 160, 0.2); border: 1px solid rgba(255, 180, 160, 0.5); }
.grammar-example .highlight-superlative { background: rgba(180, 255, 220, 0.2); border: 1px solid rgba(180, 255, 220, 0.5); }
.grammar-example .highlight-participle { background: rgba(255, 170, 90, 0.2); border: 1px solid rgba(255, 170, 90, 0.5); }
.grammar-example .highlight-number { background: rgba(255, 170, 220, 0.2); border: 1px solid rgba(255, 170, 220, 0.5); }
.grammar-example .highlight-quantifier { background: rgba(200, 160, 255, 0.2); border: 1px solid rgba(200, 160, 255, 0.5); }
.grammar-example .highlight-plural-noun { background: rgba(120, 255, 210, 0.2); border: 1px solid rgba(120, 255, 210, 0.5); }
.grammar-example .highlight-possessive { background: rgba(255, 210, 120, 0.2); border: 1px solid rgba(255, 210, 120, 0.5); }
.grammar-example .highlight-noun { background: rgba(160, 220, 255, 0.2); border: 1px solid rgba(160, 220, 255, 0.5); }
.grammar-example .highlight-subject-pronoun { background: rgba(255, 180, 120, 0.2); border: 1px solid rgba(255, 180, 120, 0.5); }
.grammar-example .highlight-object-pronoun { background: rgba(120, 255, 200, 0.2); border: 1px solid rgba(120, 255, 200, 0.5); }
.grammar-example .highlight-reflexive { background: rgba(200, 160, 255, 0.2); border: 1px solid rgba(200, 160, 255, 0.5); }
.grammar-example .highlight-demonstrative { background: rgba(255, 210, 140, 0.2); border: 1px solid rgba(255, 210, 140, 0.5); }
.grammar-example .highlight-relative { background: rgba(255, 130, 150, 0.2); border: 1px solid rgba(255, 130, 150, 0.5); }
.grammar-example .highlight-indefinite { background: rgba(170, 255, 160, 0.2); border: 1px solid rgba(170, 255, 160, 0.5); }
.grammar-example .highlight-object { background: rgba(255, 235, 120, 0.22); border: 1px solid rgba(255, 235, 120, 0.5); }
.grammar-example .highlight-complement { background: rgba(120, 255, 220, 0.2); border: 1px solid rgba(120, 255, 220, 0.5); }
.grammar-example .highlight-connector { background: rgba(120, 200, 255, 0.2); border: 1px solid rgba(120, 200, 255, 0.45); }
.grammar-example .highlight-contrast { background: rgba(255, 160, 220, 0.2); border: 1px solid rgba(255, 160, 220, 0.45); }
.grammar-example .highlight-particle { background: rgba(160, 255, 180, 0.2); border: 1px solid rgba(160, 255, 180, 0.5); }
.grammar-example .highlight-preposition { background: rgba(140, 255, 160, 0.2); border: 1px solid rgba(140, 255, 160, 0.5); }
.grammar-example .highlight-infinitive { background: rgba(200, 255, 140, 0.2); border: 1px solid rgba(200, 255, 140, 0.5); }
.grammar-example .highlight-gerund { background: rgba(120, 230, 255, 0.2); border: 1px solid rgba(120, 230, 255, 0.5); }
.grammar-example .highlight-that-clause { background: rgba(255, 180, 120, 0.2); border: 1px solid rgba(255, 180, 120, 0.5); }
.grammar-example .highlight-sentence-1 { background: rgba(170, 255, 210, 0.2); border: 1px solid rgba(170, 255, 210, 0.45); }
.grammar-example .highlight-sentence-2 { background: rgba(255, 210, 140, 0.18); border: 1px solid rgba(255, 210, 140, 0.45); }
.grammar-example .highlight-sentence { background: rgba(180, 230, 255, 0.18); border: 1px solid rgba(180, 230, 255, 0.35); }
.grammar-example .highlight-main-clause { background: rgba(255, 230, 120, 0.22); border: 1px solid rgba(255, 230, 120, 0.5); }
.grammar-example .highlight-clause { background: rgba(170, 255, 190, 0.18); border: 1px solid rgba(170, 255, 190, 0.45); }
.grammar-example .highlight-generic { background: rgba(160, 210, 240, 0.18); border: 1px solid rgba(160, 210, 240, 0.35); }

.grammar-label.label-time { background: rgba(120, 220, 255, 0.22); border-color: rgba(120, 220, 255, 0.5); }
.grammar-label.label-place { background: rgba(147, 246, 200, 0.22); border-color: rgba(147, 246, 200, 0.45); }
.grammar-label.label-reason { background: rgba(255, 198, 122, 0.22); border-color: rgba(255, 198, 122, 0.55); }
.grammar-label.label-manner { background: rgba(192, 154, 255, 0.22); border-color: rgba(192, 154, 255, 0.55); }
.grammar-label.label-subject { background: rgba(165, 200, 255, 0.26); border-color: rgba(165, 200, 255, 0.6); }
.grammar-label.label-verb { background: rgba(255, 120, 120, 0.26); border-color: rgba(255, 120, 120, 0.6); }
.grammar-label.label-action-verb { background: rgba(255, 200, 120, 0.26); border-color: rgba(255, 200, 120, 0.6); }
.grammar-label.label-state-verb { background: rgba(120, 190, 255, 0.26); border-color: rgba(120, 190, 255, 0.6); }
.grammar-label.label-linking-verb { background: rgba(205, 160, 255, 0.26); border-color: rgba(205, 160, 255, 0.6); }
.grammar-label.label-be-verb { background: rgba(165, 185, 95, 0.26); border-color: rgba(165, 185, 95, 0.6); }
.grammar-label.label-verb-ing { background: rgba(255, 180, 120, 0.26); border-color: rgba(255, 180, 120, 0.6); }
.grammar-label.label-past-verb { background: rgba(190, 255, 140, 0.26); border-color: rgba(190, 255, 140, 0.6); }
.grammar-label.label-past-participle { background: rgba(255, 120, 190, 0.26); border-color: rgba(255, 120, 190, 0.6); }
.grammar-label.label-auxiliary { background: rgba(180, 120, 255, 0.26); border-color: rgba(180, 120, 255, 0.6); }
.grammar-label.label-aux { background: rgba(120, 80, 40, 0.26); border-color: rgba(120, 80, 40, 0.6); }
.grammar-label.label-wh-word { background: rgba(255, 210, 120, 0.26); border-color: rgba(255, 210, 120, 0.6); }
.grammar-label.label-wh-clause { background: rgba(200, 255, 140, 0.26); border-color: rgba(200, 255, 140, 0.6); }
.grammar-label.label-modal { background: rgba(255, 150, 190, 0.26); border-color: rgba(255, 150, 190, 0.6); }
.grammar-label.label-intro { background: rgba(140, 200, 255, 0.26); border-color: rgba(140, 200, 255, 0.6); }
.grammar-label.label-statement { background: rgba(255, 170, 120, 0.26); border-color: rgba(255, 170, 120, 0.6); }
.grammar-label.label-tag { background: rgba(120, 255, 160, 0.26); border-color: rgba(120, 255, 160, 0.6); }
.grammar-label.label-not { background: rgba(255, 90, 140, 0.26); border-color: rgba(255, 90, 140, 0.6); }
.grammar-label.label-negative-word { background: rgba(255, 180, 90, 0.26); border-color: rgba(255, 180, 90, 0.6); }
.grammar-label.label-negative-adverb { background: rgba(190, 140, 255, 0.26); border-color: rgba(190, 140, 255, 0.6); }
.grammar-label.label-if-clause { background: rgba(255, 120, 120, 0.26); border-color: rgba(255, 120, 120, 0.6); }
.grammar-label.label-unless-clause { background: rgba(255, 140, 110, 0.26); border-color: rgba(255, 140, 110, 0.6); }
.grammar-label.label-would-clause { background: rgba(180, 120, 255, 0.26); border-color: rgba(180, 120, 255, 0.6); }
.grammar-label.label-would-have-clause { background: rgba(255, 210, 90, 0.26); border-color: rgba(255, 210, 90, 0.6); }
.grammar-label.label-doer { background: rgba(120, 220, 255, 0.26); border-color: rgba(120, 220, 255, 0.6); }
.grammar-label.label-focus-phrase { background: rgba(255, 150, 200, 0.26); border-color: rgba(255, 150, 200, 0.6); }
.grammar-label.label-it-subject { background: rgba(120, 160, 255, 0.26); border-color: rgba(120, 160, 255, 0.6); }
.grammar-label.label-there-subject { background: rgba(255, 170, 120, 0.26); border-color: rgba(255, 170, 120, 0.6); }
.grammar-label.label-probability-word { background: rgba(255, 220, 120, 0.26); border-color: rgba(255, 220, 120, 0.6); }
.grammar-label.label-modal-phrase { background: rgba(200, 170, 255, 0.26); border-color: rgba(200, 170, 255, 0.6); }
.grammar-label.label-reason-clause { background: rgba(255, 140, 100, 0.26); border-color: rgba(255, 140, 100, 0.6); }
.grammar-label.label-result-clause { background: rgba(120, 255, 220, 0.26); border-color: rgba(120, 255, 220, 0.6); }
.grammar-label.label-time-connector { background: rgba(120, 200, 255, 0.26); border-color: rgba(120, 200, 255, 0.6); }
.grammar-label.label-contrast-connector { background: rgba(255, 140, 210, 0.26); border-color: rgba(255, 140, 210, 0.6); }
.grammar-label.label-addition-marker { background: rgba(255, 155, 90, 0.26); border-color: rgba(255, 155, 90, 0.6); }
.grammar-label.label-comparison { background: rgba(255, 210, 180, 0.26); border-color: rgba(255, 210, 180, 0.6); }
.grammar-label.label-sequence { background: rgba(255, 200, 90, 0.26); border-color: rgba(255, 200, 90, 0.6); }
.grammar-label.label-clause-1 { background: rgba(120, 255, 180, 0.26); border-color: rgba(120, 255, 180, 0.6); }
.grammar-label.label-clause-2 { background: rgba(255, 180, 150, 0.26); border-color: rgba(255, 180, 150, 0.6); }
.grammar-label.label-future-marker { background: rgba(255, 230, 120, 0.26); border-color: rgba(255, 230, 120, 0.6); }
.grammar-label.label-base-verb { background: rgba(120, 255, 210, 0.26); border-color: rgba(120, 255, 210, 0.6); }
.grammar-label.label-simple-form { background: rgba(120, 255, 150, 0.26); border-color: rgba(120, 255, 150, 0.6); }
.grammar-label.label-continuous-form { background: rgba(255, 150, 120, 0.26); border-color: rgba(255, 150, 120, 0.6); }
.grammar-label.label-article { background: rgba(70, 130, 220, 0.28); border-color: rgba(70, 130, 220, 0.65); }
.grammar-label.label-determiner { background: rgba(255, 190, 140, 0.26); border-color: rgba(255, 190, 140, 0.6); }
.grammar-label.label-adjective { background: rgba(170, 255, 190, 0.26); border-color: rgba(170, 255, 190, 0.6); }
.grammar-label.label-adverb { background: rgba(255, 170, 230, 0.26); border-color: rgba(255, 170, 230, 0.6); }
.grammar-label.label-frequency-adverb { background: rgba(150, 255, 170, 0.26); border-color: rgba(150, 255, 170, 0.6); }
.grammar-label.label-time-adverb { background: rgba(90, 170, 255, 0.26); border-color: rgba(90, 170, 255, 0.6); }
.grammar-label.label-place-adverb { background: rgba(90, 240, 180, 0.26); border-color: rgba(90, 240, 180, 0.6); }
.grammar-label.label-degree-word { background: rgba(255, 210, 110, 0.26); border-color: rgba(255, 210, 110, 0.6); }
.grammar-label.label-opinion { background: rgba(200, 140, 255, 0.26); border-color: rgba(200, 140, 255, 0.6); }
.grammar-label.label-size { background: rgba(255, 150, 160, 0.26); border-color: rgba(255, 150, 160, 0.6); }
.grammar-label.label-age { background: rgba(140, 255, 240, 0.26); border-color: rgba(140, 255, 240, 0.6); }
.grammar-label.label-color { background: rgba(255, 120, 90, 0.26); border-color: rgba(255, 120, 90, 0.6); }
.grammar-label.label-comparative { background: rgba(120, 255, 120, 0.26); border-color: rgba(120, 255, 120, 0.6); }
.grammar-label.label-than { background: rgba(255, 180, 160, 0.26); border-color: rgba(255, 180, 160, 0.6); }
.grammar-label.label-superlative { background: rgba(180, 255, 220, 0.26); border-color: rgba(180, 255, 220, 0.6); }
.grammar-label.label-participle { background: rgba(255, 170, 90, 0.26); border-color: rgba(255, 170, 90, 0.6); }
.grammar-label.label-number { background: rgba(255, 170, 220, 0.26); border-color: rgba(255, 170, 220, 0.6); }
.grammar-label.label-quantifier { background: rgba(200, 160, 255, 0.26); border-color: rgba(200, 160, 255, 0.6); }
.grammar-label.label-plural-noun { background: rgba(120, 255, 210, 0.26); border-color: rgba(120, 255, 210, 0.6); }
.grammar-label.label-possessive { background: rgba(255, 210, 120, 0.26); border-color: rgba(255, 210, 120, 0.6); }
.grammar-label.label-noun { background: rgba(160, 220, 255, 0.26); border-color: rgba(160, 220, 255, 0.6); }
.grammar-label.label-subject-pronoun { background: rgba(255, 180, 120, 0.26); border-color: rgba(255, 180, 120, 0.6); }
.grammar-label.label-object-pronoun { background: rgba(120, 255, 200, 0.26); border-color: rgba(120, 255, 200, 0.6); }
.grammar-label.label-reflexive { background: rgba(200, 160, 255, 0.26); border-color: rgba(200, 160, 255, 0.6); }
.grammar-label.label-demonstrative { background: rgba(255, 210, 140, 0.26); border-color: rgba(255, 210, 140, 0.6); }
.grammar-label.label-relative { background: rgba(255, 130, 150, 0.26); border-color: rgba(255, 130, 150, 0.6); }
.grammar-label.label-indefinite { background: rgba(170, 255, 160, 0.26); border-color: rgba(170, 255, 160, 0.6); }
.grammar-label.label-particle { background: rgba(160, 255, 180, 0.26); border-color: rgba(160, 255, 180, 0.6); }
.grammar-label.label-preposition { background: rgba(140, 255, 160, 0.26); border-color: rgba(140, 255, 160, 0.6); }
.grammar-label.label-infinitive { background: rgba(200, 255, 140, 0.26); border-color: rgba(200, 255, 140, 0.6); }
.grammar-label.label-gerund { background: rgba(120, 230, 255, 0.26); border-color: rgba(120, 230, 255, 0.6); }
.grammar-label.label-that-clause { background: rgba(255, 180, 120, 0.26); border-color: rgba(255, 180, 120, 0.6); }
.grammar-label.label-object { background: rgba(255, 235, 120, 0.26); border-color: rgba(255, 235, 120, 0.6); }
.grammar-label.label-complement { background: rgba(120, 255, 220, 0.26); border-color: rgba(120, 255, 220, 0.6); }
.grammar-label.label-connector { background: rgba(120, 200, 255, 0.26); border-color: rgba(120, 200, 255, 0.5); }
.grammar-label.label-contrast { background: rgba(255, 160, 220, 0.26); border-color: rgba(255, 160, 220, 0.5); }
.grammar-label.label-main-clause { background: rgba(255, 230, 120, 0.26); border-color: rgba(255, 230, 120, 0.5); }
.grammar-label.label-clause { background: rgba(170, 255, 190, 0.26); border-color: rgba(170, 255, 190, 0.45); }
.grammar-label.label-sentence-1 { background: rgba(170, 255, 210, 0.26); border-color: rgba(170, 255, 210, 0.45); }
.grammar-label.label-sentence-2 { background: rgba(255, 210, 140, 0.24); border-color: rgba(255, 210, 140, 0.45); }
.grammar-label.label-sentence { background: rgba(180, 230, 255, 0.24); border-color: rgba(180, 230, 255, 0.35); }
