:root {
  --blue: #0874ef;
  --blue-dark: #123c9a;
  --sky: #eaf6ff;
  --sky-2: #d8efff;
  --orange: #ff9f32;
  --ink: #14213d;
  --muted: #60738e;
  --white: #fff;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; color: var(--ink);
  font-family: "Nunito", "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #d8efff, #f7fcff 55%, #c5e6ff);
}
button, input { font: inherit; }
button { cursor: pointer; }
.screen { display: none; min-height: 100vh; padding: 32px; }
.screen.active { display: flex; align-items: center; justify-content: center; }
.screen.splash {
  position: relative;
  display: none;
  min-height: 100vh;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #168cf4;
}
.splash.active { display: block; }
.splash-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  user-select: none;
  pointer-events: none;
}
.loading-overlay {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(22px, 5.5vh, 62px);
  transform: translateX(-50%);
  width: min( min(590px, 72vw), 88%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 8px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(235,249,255,.10), rgba(255,255,255,.30));
  box-shadow: 0 0 28px rgba(255,255,255,.30);
  backdrop-filter: blur(3px);
}
.loading-bar {
  position: relative;
  width: 100%;
  height: 36px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 999px;
  background: linear-gradient(180deg, #c5eaff, #7bbdff);
  box-shadow: 0 0 0 2px rgba(30,126,255,.35), 0 0 20px rgba(255,255,255,.95),
              inset 0 2px 5px rgba(23,89,174,.20);
}
.loading-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: repeating-linear-gradient(
    125deg, #0875f5 0 18px, #159aff 18px 36px
  );
  box-shadow: inset 0 2px 5px rgba(255,255,255,.45), 0 0 12px #168cff;
  transition: width .18s ease-out;
}
.loading-fill::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 8px;
  right: 8px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,.72), rgba(255,255,255,0));
}
.loading-percent {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 1000;
  line-height: 1;
  text-shadow: 0 2px 3px #073b9b, 0 0 7px #0758c8;
  letter-spacing: .3px;
}
.loading-message {
  color: #082f85;
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 1000;
  text-shadow: 0 1px 0 #fff, 0 0 10px rgba(255,255,255,.95);
  letter-spacing: .2px;
}
.loading-ellipsis { display: inline-block; width: 1.2em; overflow: hidden; vertical-align: bottom; animation: ellipsis 1.1s steps(4,end) infinite; }
@keyframes ellipsis { from { width: 0; } to { width: 1.2em; } }
.loading-dots { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 1px 0 3px; }
.loading-dots span {
  width: 13px; height: 13px; border-radius: 50%;
  background: #0879f5; border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 0 10px rgba(0,112,255,.65);
  animation: dot-bounce .9s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: .15s; }
.loading-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes dot-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .72; }
  30% { transform: translateY(-6px); opacity: 1; }
}
.splash p, .muted { color: var(--muted); }
@media (max-height: 650px) {
  .loading-overlay { bottom: 10px; gap: 6px; padding: 7px 12px 4px; }
  .loading-bar { height: 30px; }
  .loading-percent { font-size: 18px; }
  .loading-message { font-size: 16px; }
  .loading-dots span { width: 9px; height: 9px; }
}
.panel, .welcome-card {
  background: rgba(255,255,255,.92); border: 1px solid #c6e4fb;
  box-shadow: 0 16px 45px rgba(38,120,190,.14); border-radius: 28px; padding: 34px;
}
.panel.narrow { width: min(560px, 94vw); text-align: center; }
.panel.wide { width: min(1050px, 96vw); text-align: center; }
.small-logo { width: 110px; height: 90px; object-fit: contain; }
.eyebrow { color: var(--blue); font-weight: 900; letter-spacing: 1.3px; font-size: 12px; }
h1 { color: var(--blue-dark); margin: 8px 0; }
.language-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 24px 0; }
.language-grid.large { grid-template-columns: repeat(4, minmax(0,1fr)); max-height: 360px; overflow: auto; }
.language-option {
  border: 1px solid #d2e8fa; background: #f7fbff; border-radius: 14px;
  padding: 13px; color: var(--ink); font-weight: 800;
}
.language-option.selected { border: 2px solid var(--blue); background: #e4f3ff; }
.primary {
  border: 0; border-radius: 999px; background: linear-gradient(90deg,#0874ef,#269cf5);
  color: white; padding: 13px 25px; font-weight: 900; box-shadow: 0 5px 12px #0874ef30;
}
.primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
label { display: block; text-align: left; margin: 14px 0; font-weight: 800; }
label input, .search, .topbar input {
  width: 100%; padding: 13px 16px; border: 1px solid #c9e1f5; border-radius: 14px;
  background: #f8fcff; outline-color: var(--blue); margin-top: 7px;
}
.tiny { font-size: 12px; }
.welcome-card { display: flex; align-items: center; gap: 32px; max-width: 900px; }
.welcome-logo { width: 260px; }
.dashboard.active { display: grid; grid-template-columns: 210px minmax(450px,1fr) 270px; align-items: stretch; gap: 18px; padding: 18px; }
.sidebar, .right-panel, .dashboard-main { background: rgba(255,255,255,.78); border: 1px solid #cde7fb; border-radius: 22px; padding: 16px; }
.sidebar-brand img { width: 100%; height: 100px; object-fit: contain; }
.sidebar nav { display: grid; gap: 7px; }
.nav-item { text-align: left; border: 0; border-radius: 12px; padding: 12px; background: transparent; color: var(--ink); font-weight: 800; }
.nav-item.selected, .nav-item:hover { background: #d9efff; color: var(--blue); }
.nav-item span { margin-left: 8px; }
.topbar { display: flex; gap: 15px; align-items: center; justify-content: space-between; }
.topbar input { margin: 0; max-width: 480px; }
.stats { display: flex; gap: 15px; font-weight: 900; white-space: nowrap; }
.hero { margin-top: 18px; border-radius: 22px; padding: 25px; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(110deg,#d9f1ff,#70c5ff); overflow: hidden; }
.hero h1 { font-size: clamp(24px,3vw,38px); }
.hero img { width: 170px; height: 160px; object-fit: contain; }
h2 { font-size: 20px; margin: 20px 0 10px; }
.lesson-card { display: flex; align-items: center; gap: 18px; padding: 14px; background: #e6f4ff; border: 1px solid #c5e3fa; border-radius: 18px; }
.lesson-card > div:nth-child(2) { flex: 1; }
.lesson-art { font-size: 42px; background: #c7e9ff; border-radius: 14px; padding: 12px; }
.progress { height: 9px; background: #c5e1f8; border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 60%; background: var(--blue); }
.primary.small { padding: 10px 20px; }
.skill-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.skill-grid article { display: grid; gap: 5px; padding: 14px; background: white; border: 1px solid #d6eafa; border-radius: 16px; box-shadow: 0 5px 12px #2e83c510; }
.skill-grid small { color: var(--muted); }
.side-card { background: #f5fbff; border: 1px solid #d8ecfa; border-radius: 18px; padding: 15px; margin-bottom: 14px; }
.goal { font-size: 27px; color: var(--blue); font-weight: 1000; }
@media (max-width: 1100px) {
  .dashboard.active { grid-template-columns: 170px 1fr; }
  .right-panel { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
}
@media (max-width: 760px) {
  .dashboard.active { display: block; }
  .sidebar { margin-bottom: 12px; }
  .sidebar nav { grid-template-columns: repeat(2,1fr); }
  .right-panel { display: block; margin-top: 12px; }
  .skill-grid { grid-template-columns: repeat(2,1fr); }
  .language-grid.large { grid-template-columns: repeat(2,1fr); }
  .welcome-card { flex-direction: column; text-align: center; }
}



/* ===== WORDLY desktop Choose App Language ===== */
.app-language-screen {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  background: #79c9ff url("../../assets/backgrounds/wordly-sky.png") center center / cover no-repeat;
}
.app-language-screen.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
.language-scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding: 22px;
  isolation: isolate;
}
.language-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(29,142,239,.05), rgba(224,247,255,.04) 60%, rgba(0,119,205,.08));
}
.language-panel {
  position: relative;
  width: min(540px, 92vw);
  padding: 17px 25px 16px;
  border: 2px solid rgba(255,255,255,.94);
  border-radius: 27px;
  background: linear-gradient(155deg, rgba(255,255,255,.91), rgba(239,249,255,.88));
  box-shadow: 0 16px 48px rgba(16,89,157,.20), inset 0 2px 0 rgba(255,255,255,.98);
  text-align: center;
  backdrop-filter: blur(8px);
  animation: language-panel-in .5s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes language-panel-in {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.language-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 76px;
  margin: -2px auto 0;
}
.language-brand img {
  height: 100%;
  max-width: 170px;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(19,100,174,.12));
}
.language-eyebrow { display: none; }
.language-panel h1 {
  margin: 0;
  color: #123d91;
  font-size: clamp(23px, 2.2vw, 29px);
  line-height: 1.12;
  font-weight: 1000;
  text-shadow: 0 1px 0 #fff;
}
.language-subtitle {
  margin: 5px 0 14px;
  color: #486a94;
  font-size: 13px;
  font-weight: 800;
}
.interface-language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  margin: 0 auto 14px;
}
.interface-language-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 53px;
  padding: 7px 30px 7px 10px;
  border: 1.5px solid #b9dcf8;
  border-radius: 13px;
  color: #18365f;
  background: linear-gradient(180deg, #fff, #edf7ff);
  box-shadow: 0 3px 0 rgba(72,151,218,.10), inset 0 1px 0 #fff;
  font-weight: 900;
  text-align: left;
  transition: transform .17s ease, border-color .17s ease, box-shadow .17s ease, background .17s ease;
}
.interface-language-option:hover {
  transform: translateY(-2px);
  border-color: #5caeff;
  box-shadow: 0 6px 13px rgba(39,137,223,.16), inset 0 1px 0 #fff;
}
.interface-language-option.selected {
  border: 2px solid #1687ff;
  padding: 6px 29px 6px 9px;
  background: linear-gradient(180deg, #f5fbff, #dff1ff);
  box-shadow: 0 0 0 2px rgba(33,145,255,.10), 0 4px 11px rgba(27,127,220,.14), inset 0 1px 0 #fff;
  animation: language-selected .2s ease-out;
}
@keyframes language-selected {
  0% { transform: scale(.975); }
  100% { transform: scale(1); }
}
.language-flag {
  flex: 0 0 29px;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(38,99,152,.14);
  font-size: 21px;
  line-height: 1;
}
.language-name {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  overflow: hidden;
  color: #18365f;
  font-size: 12px;
  line-height: 1.12;
  text-overflow: ellipsis;
}
.language-name small { color: #7188a5; font-size: 9px; font-weight: 700; }
.language-check {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: transparent;
  background: transparent;
  font-size: 11px;
  font-weight: 1000;
  transform: translateY(-50%) scale(.7);
  transition: all .17s ease;
}
.interface-language-option.selected .language-check {
  color: #fff;
  background: #087cf0;
  transform: translateY(-50%) scale(1);
  box-shadow: 0 2px 6px rgba(0,104,218,.3);
}
.language-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(290px, 84%);
  min-height: 43px;
  border: 2px solid rgba(255,255,255,.97);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #35a4ff 0%, #0877ed 52%, #075bd0 100%);
  box-shadow: 0 4px 0 #0752b6, 0 8px 15px rgba(10,105,211,.22), inset 0 2px 0 rgba(255,255,255,.48);
  font-size: 15px;
  font-weight: 1000;
  text-shadow: 0 1px 2px rgba(0,48,120,.35);
  transition: transform .15s ease, filter .15s ease;
}
.language-continue:hover { transform: translateY(-2px); filter: brightness(1.06); }
.language-continue:active { transform: translateY(2px); box-shadow: 0 2px 0 #0752b6, 0 4px 9px rgba(10,105,211,.2); }
.continue-arrow { font-size: 21px; line-height: 1; }
.language-footnote {
  margin: 9px 0 0;
  color: #7188a5;
  font-size: 9px;
  font-weight: 700;
}
@media (min-width: 1200px) and (min-height: 850px) {
  .language-panel { transform: translateY(-5px); }
}
@media (max-height: 760px) {
  .language-panel { padding-top: 11px; padding-bottom: 11px; }
  .language-brand { height: 58px; }
  .language-subtitle { margin-bottom: 9px; }
  .interface-language-grid { gap: 6px 8px; margin-bottom: 11px; }
  .interface-language-option { min-height: 46px; }
  .language-continue { min-height: 39px; }
  .language-footnote { margin-top: 7px; }
}
@media (max-width: 560px) {
  .language-scene { padding: 12px; }
  .language-panel { width: 97vw; padding-left: 14px; padding-right: 14px; }
  .interface-language-grid { gap: 7px; }
  .interface-language-option { min-height: 48px; padding-left: 7px; gap: 6px; }
  .language-flag { width: 25px; height: 25px; flex-basis: 25px; font-size: 18px; }
  .language-name { font-size: 10px; }
}

/* Correct country-flag emoji rendering on Windows desktop */
.interface-language-option .language-flag {
  font-family: "Segoe UI Emoji", "Segoe UI Symbol", "Apple Color Emoji", sans-serif;
  font-variant-emoji: emoji;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  font-size: 24px;
  line-height: 1;
}

/* Country flag PNGs: stable rendering across Windows machines */
.interface-language-option img.language-flag {
  display: block;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  object-fit: contain;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}


/* WORDLY Welcome screen: user-provided full desktop illustration */
#welcome.welcome-screen {
  position: relative;
  display: none;
  width: 100%;
  min-height: 100vh;
  height: 100vh;
  padding: 0;
  overflow: hidden;
  background-color: #39a9f6;
  background-image: url("../../assets/backgrounds/wordly-welcome-background.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
#welcome.welcome-screen.active {
  display: block;
}
.welcome-actions {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: clamp(24px, 7.5vh, 78px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
  width: min(520px, calc(100% - 36px));
}
.welcome-action {
  min-width: 205px;
  min-height: 54px;
  padding: 13px 25px;
  border-radius: 999px;
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 1000;
  letter-spacing: .1px;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  cursor: pointer;
}
.welcome-action:hover {
  transform: translateY(-3px) scale(1.025);
  filter: brightness(1.04);
}
.welcome-action:active {
  transform: translateY(1px) scale(.985);
}
.welcome-login {
  color: #fff;
  border: 3px solid rgba(255,255,255,.98);
  background: linear-gradient(180deg, #43b7ff 0%, #087df2 48%, #0755d8 100%);
  box-shadow: 0 5px 0 #0646b9, 0 9px 20px rgba(0,66,160,.28),
              inset 0 2px 5px rgba(255,255,255,.72);
  text-shadow: 0 1px 2px rgba(0,48,130,.38);
}
.welcome-signup {
  color: #123c9a;
  border: 3px solid #fff;
  background: linear-gradient(180deg, #fff 0%, #f4fbff 58%, #dcefff 100%);
  box-shadow: 0 5px 0 #a9d5f8, 0 9px 20px rgba(0,66,160,.20),
              inset 0 2px 4px rgba(255,255,255,.95);
}
.auth-switch, .auth-back {
  display: block;
  margin: 8px auto 0;
  padding: 7px 12px;
  border: 0;
  background: transparent;
  color: #0874ef;
  font-weight: 900;
}
.auth-back { color: #60738e; font-size: 13px; }
@media (max-width: 640px) {
  .welcome-actions {
    bottom: clamp(18px, 5vh, 42px);
    gap: 9px;
    width: calc(100% - 24px);
  }
  .welcome-action {
    min-width: 0;
    flex: 1;
    min-height: 48px;
    padding: 10px 9px;
    font-size: 13px;
  }
}
@media (max-height: 620px) {
  .welcome-actions { bottom: 16px; }
  .welcome-action { min-height: 46px; }
}


/* ===== WORDLY Welcome: larger, more readable Login / Sign Up buttons ===== */
#welcome .welcome-actions {
  width: min(650px, calc(100% - 48px));
  gap: clamp(18px, 2.2vw, 32px);
  bottom: clamp(34px, 7.5vh, 88px);
}

#welcome .welcome-action {
  flex: 0 1 280px;
  min-width: 260px;
  min-height: 74px;
  padding: 18px 34px;
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.15;
  letter-spacing: .15px;
  white-space: nowrap;
  border-width: 3px;
  border-radius: 999px;
}

#welcome .welcome-login {
  box-shadow: 0 6px 0 #0646b9, 0 12px 24px rgba(0,66,160,.30),
              inset 0 3px 7px rgba(255,255,255,.78);
}

#welcome .welcome-signup {
  box-shadow: 0 6px 0 #a9d5f8, 0 12px 24px rgba(0,66,160,.22),
              inset 0 3px 6px rgba(255,255,255,.98);
}

@media (max-width: 640px) {
  #welcome .welcome-actions {
    width: calc(100% - 28px);
    gap: 10px;
    bottom: clamp(18px, 5vh, 42px);
  }
  #welcome .welcome-action {
    flex: 1 1 0;
    min-width: 0;
    min-height: 54px;
    padding: 12px 8px;
    font-size: clamp(13px, 3.4vw, 16px);
    white-space: normal;
  }
}

@media (max-height: 620px) {
  #welcome .welcome-actions { bottom: 18px; }
  #welcome .welcome-action {
    min-height: 58px;
    padding-top: 13px;
    padding-bottom: 13px;
  }
}


/* ===== WORDLY authentication: fixed two-panel sliding layout ===== */
.auth-screen {
  padding: clamp(12px, 2.5vw, 30px);
  background:
    radial-gradient(circle at 12% 12%, rgba(255,255,255,.92), transparent 27%),
    radial-gradient(circle at 90% 88%, rgba(93,190,255,.34), transparent 30%),
    linear-gradient(135deg, #bde5ff 0%, #f4fbff 48%, #a8dcff 100%);
  overflow: auto;
}
.auth-screen.active { display: flex; }
.auth-shell {
  position: relative;
  isolation: isolate;
  width: min(1180px, 96vw);
  height: min(790px, calc(100vh - 56px));
  min-height: 650px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.98);
  border-radius: 34px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(25,111,190,.22), 0 0 0 5px rgba(255,255,255,.18);
}
.auth-form-side {
  position: absolute;
  inset: 0 0 0 auto;
  width: 50%;
  height: 100%;
  z-index: 1;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #f1f9ff 100%);
  transition: transform .68s cubic-bezier(.68,-.04,.28,1.04);
}
.auth-shell.auth-register .auth-form-side { transform: translateX(-100%); }
.auth-form {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 2.4vw, 38px) clamp(20px, 3vw, 48px);
  overflow-y: auto;
  transition: opacity .3s ease, transform .55s cubic-bezier(.65,0,.25,1);
}
.auth-sign-in { opacity: 1; transform: translateX(0); pointer-events: auto; }
.auth-sign-up { opacity: 0; transform: translateX(12%); pointer-events: none; }
.auth-shell.auth-register .auth-sign-in { opacity: 0; transform: translateX(-12%); pointer-events: none; }
.auth-shell.auth-register .auth-sign-up { opacity: 1; transform: translateX(0); pointer-events: auto; }
.auth-mascot {
  display: block;
  width: clamp(86px, 9vw, 118px);
  height: clamp(64px, 6.8vw, 88px);
  object-fit: contain;
  object-position: center;
  margin: -2px auto 3px;
  filter: drop-shadow(0 5px 5px rgba(23,105,185,.15));
}
.auth-kicker {
  margin: 0 0 4px;
  color: #1684ed;
  font-size: 10px;
  font-weight: 1000;
  letter-spacing: 1.1px;
  text-align: center;
}
.auth-form h1 {
  margin: 2px 0 4px;
  color: #123c91;
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 1000;
  text-align: center;
}
.auth-subtitle {
  margin: 0 0 14px;
  color: #66809f;
  font-size: 12px;
  text-align: center;
}
.auth-fields {
  width: 100%;
  max-width: 430px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1.5px solid #b9dcfb;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #edf7ff 100%);
  box-shadow: inset 0 2px 5px rgba(42,112,178,.07), 0 3px 7px rgba(57,140,211,.08);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.auth-input-wrap:focus-within {
  border-color: #1688fa;
  box-shadow: 0 0 0 3px rgba(22,136,250,.12), inset 0 2px 5px rgba(42,112,178,.05);
  transform: translateY(-1px);
}
.auth-input-icon {
  flex: 0 0 23px;
  color: #6b91bc;
  font-size: 19px;
  line-height: 1;
  text-align: center;
  margin-right: 8px;
}
.auth-input-wrap input {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #173a70;
  font-size: 13px;
  font-weight: 700;
}
.auth-input-wrap input::placeholder { color: #849ab4; font-weight: 600; }
.auth-eye {
  flex: 0 0 30px;
  border: 0;
  padding: 4px;
  background: transparent;
  color: #6884a7;
  font-size: 18px;
  font-weight: 900;
}
.auth-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 2px 1px;
}
.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #536e91;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.auth-remember input { width: 16px; height: 16px; accent-color: #087df2; }
.auth-link {
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #0874ef;
  font-size: 12px;
  font-weight: 1000;
}
.auth-submit {
  position: relative;
  width: 100%;
  min-height: 48px;
  margin-top: 2px;
  border: 3px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #43baff 0%, #0786f5 48%, #0756d7 100%);
  box-shadow: 0 4px 0 #0648b7, 0 8px 16px rgba(0,89,190,.22), inset 0 2px 5px rgba(255,255,255,.75);
  text-shadow: 0 1px 2px rgba(0,50,130,.3);
  font-size: 15px;
  font-weight: 1000;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.auth-submit:hover { filter: brightness(1.06); transform: translateY(-2px); }
.auth-submit:active { transform: translateY(2px); box-shadow: 0 2px 0 #0648b7, inset 0 2px 5px rgba(255,255,255,.5); }
.auth-feedback { min-height: 14px; color: #176bb5; font-size: 10px; font-weight: 800; text-align: center; }
.auth-divider {
  display: flex; align-items: center; gap: 10px;
  width: 100%; max-width: 430px; margin: 9px 0 7px;
  color: #8196ae; font-size: 10px; font-weight: 800;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, #c4def5, transparent);
}
.auth-socials { display: flex; justify-content: center; gap: 10px; width: 100%; max-width: 430px; }
.auth-social {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  flex: 1; min-height: 40px; border: 1.5px solid #c4e1fa; border-radius: 14px;
  background: linear-gradient(180deg, #fff, #edf7ff); color: #345477;
  box-shadow: 0 3px 8px rgba(49,125,190,.09); font-size: 11px; font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease;
}
.auth-social:hover { transform: translateY(-2px); box-shadow: 0 7px 14px rgba(49,125,190,.15); }
.google-mark { color: #4285f4; font-size: 22px; font-weight: 1000; text-shadow: 1px 1px #fbbc05, -1px -1px #34a853; }
.microsoft-mark { display: grid; grid-template-columns: 8px 8px; grid-template-rows: 8px 8px; gap: 2px; }
.microsoft-mark i:nth-child(1) { background: #f35325; }
.microsoft-mark i:nth-child(2) { background: #81bc06; }
.microsoft-mark i:nth-child(3) { background: #05a6f0; }
.microsoft-mark i:nth-child(4) { background: #ffba08; }
.auth-mobile-switch { display: none; }
.auth-back { margin: 7px 0 0; color: #7890aa; font-size: 10px; }
.auth-terms { justify-content: flex-start; margin: 0 2px 2px; }

/* Promotional half: it moves from left to right while the form half moves oppositely. */
.auth-overlay-wrap {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  height: 100%;
  z-index: 4;
  overflow: hidden;
  border-radius: 32px 0 0 32px;
  background:
    linear-gradient(145deg, rgba(0,116,232,.82), rgba(37,169,255,.70)),
    url("../../assets/backgrounds/wordly-sky.png") center / cover no-repeat;
  box-shadow: inset -8px 0 20px rgba(0,67,150,.08);
  transition: transform .68s cubic-bezier(.68,-.04,.28,1.04), border-radius .68s ease;
}
.auth-shell.auth-register .auth-overlay-wrap {
  transform: translateX(100%);
  border-radius: 0 32px 32px 0;
}
.auth-overlay {
  position: relative;
  width: 100%;
  height: 100%;
}
.auth-overlay-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 3.2vw, 48px);
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,55,130,.35);
  transition: opacity .28s ease, transform .45s ease;
}
.auth-overlay-login { opacity: 1; transform: translateX(0); pointer-events: auto; }
.auth-overlay-signup { opacity: 0; transform: translateX(12%); pointer-events: none; }
.auth-shell.auth-register .auth-overlay-login { opacity: 0; transform: translateX(-12%); pointer-events: none; }
.auth-shell.auth-register .auth-overlay-signup { opacity: 1; transform: translateX(0); pointer-events: auto; }
.auth-overlay-logo {
  width: min(230px, 72%);
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0,52,125,.22));
}
.auth-overlay-panel h2 {
  margin: 16px 0 8px;
  color: #fff;
  font-size: clamp(25px, 2.4vw, 36px);
  font-weight: 1000;
  text-shadow: 0 2px 5px rgba(0,48,130,.38);
}
.auth-overlay-panel p {
  max-width: 350px;
  margin: 0 0 24px;
  color: #f5fbff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
}
.auth-outline-button {
  min-height: 50px;
  padding: 12px 22px;
  border: 2px solid rgba(255,255,255,.98);
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-weight: 1000;
  box-shadow: inset 0 1px 5px rgba(255,255,255,.25), 0 5px 15px rgba(0,58,140,.16);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.auth-outline-button:hover { background: rgba(255,255,255,.30); transform: translateY(-2px); }

@media (max-width: 850px) {
  .auth-shell { width: min(560px, 96vw); height: auto; min-height: 720px; }
  .auth-form-side { position: relative; inset: auto; width: 100%; min-height: 720px; transform: none !important; }
  .auth-overlay-wrap { display: none; }
  .auth-form { padding: 26px 28px; }
  .auth-mobile-switch { display: block; margin: 12px 0 0; color: #6c829d; font-size: 12px; }
  .auth-mobile-switch button { border: 0; background: transparent; color: #0874ef; font-weight: 1000; }
}
@media (max-height: 760px) and (min-width: 851px) {
  .auth-shell { height: calc(100vh - 34px); min-height: 610px; }
  .auth-form { padding-top: 14px; padding-bottom: 14px; }
  .auth-mascot { width: 84px; height: 62px; }
  .auth-subtitle { margin-bottom: 8px; }
  .auth-fields { gap: 7px; }
  .auth-input-wrap { min-height: 43px; }
  .auth-input-wrap input { height: 39px; }
  .auth-submit { min-height: 43px; }
  .auth-divider { margin: 6px 0 5px; }
  .auth-social { min-height: 35px; }
  .auth-back { margin-top: 4px; }
}


/* =========================================================
   WORDLY LOGIN HERO — full rebuild
   Bright sky, island scenery and animated fox mascot.
   ========================================================= */
.auth-form.auth-sign-in {
  justify-content: flex-start;
  padding-top: 0;
  padding-bottom: 30px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(72,145,205,.65) transparent;
}
.auth-login-hero {
  position: relative;
  isolation: isolate;
  flex: 0 0 auto;
  width: calc(100% + 96px);
  height: 355px;
  min-height: 355px;
  margin: 0 -48px 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 105%, rgba(255,255,255,.24) 0 12%, transparent 38%),
    linear-gradient(180deg, #0878e8 0%, #229df3 58%, #64c8ff 100%);
  box-shadow: inset 0 -12px 26px rgba(255,255,255,.2);
}
.auth-login-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -8%;
  right: -8%;
  bottom: -26px;
  height: 100px;
  border-radius: 52% 48% 0 0;
  background: linear-gradient(180deg, rgba(120,222,166,.95), rgba(44,174,128,.9));
  transform: rotate(-2deg);
}
.auth-login-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -5%;
  right: -5%;
  bottom: -58px;
  height: 92px;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, rgba(51,181,239,.82), #1599ed);
}
.auth-login-mascot {
  position: relative;
  z-index: 2;
  display: block;
  flex: 0 0 auto;
  width: clamp(285px, 30vw, 350px);
  height: 260px;
  margin: 8px auto -4px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 9px 8px rgba(3,55,122,.22));
  animation: wordly-fox-bob 2.4s ease-in-out infinite;
}
.auth-login-title-panel {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 13px 12px 16px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.96), #e9f6ff);
  border-top: 3px solid rgba(255,255,255,.95);
  border-radius: 50% 50% 0 0 / 23px 23px 0 0;
  box-shadow: 0 -5px 16px rgba(8,73,144,.12);
}
.auth-login-title-panel .auth-kicker {
  margin: 0 0 4px;
  color: #1684ed;
  text-shadow: none;
}
.auth-login-title-panel h1 {
  margin: 0;
  color: #123c91;
  font-size: clamp(23px, 2vw, 31px);
  line-height: 1.14;
  text-align: center;
}
.auth-sign-in .auth-subtitle {
  margin: 0 0 18px;
}
.hero-cloud {
  position: absolute;
  z-index: 1;
  width: 84px;
  height: 23px;
  border-radius: 30px;
  background: rgba(255,255,255,.88);
  filter: drop-shadow(0 3px 4px rgba(9,77,146,.1));
  animation: wordly-cloud-float 6.5s ease-in-out infinite alternate;
}
.hero-cloud::before,
.hero-cloud::after {
  content: "";
  position: absolute;
  bottom: 6px;
  border-radius: 50%;
  background: inherit;
}
.hero-cloud::before { left: 13px; width: 34px; height: 34px; }
.hero-cloud::after { right: 12px; width: 27px; height: 27px; }
.hero-cloud-left { top: 42px; left: 7%; transform: scale(.78); }
.hero-cloud-right { top: 68px; right: 7%; transform: scale(1.02); animation-delay: -2.8s; }
.hero-palm {
  position: absolute;
  z-index: 1;
  bottom: 58px;
  font-size: 40px;
  filter: drop-shadow(0 3px 2px rgba(0,65,100,.18));
  animation: wordly-palm-sway 3.4s ease-in-out infinite;
}
.hero-palm-left { left: 5%; }
.hero-palm-right { right: 5%; animation-delay: -1.4s; }
.hero-spark {
  position: absolute;
  z-index: 3;
  color: #fff47a;
  font-size: 27px;
  text-shadow: 0 2px 5px rgba(0,53,125,.35);
  animation: wordly-sparkle 1.7s ease-in-out infinite;
}
.hero-spark-one { top: 72px; left: 26%; }
.hero-spark-two { top: 110px; right: 25%; animation-delay: .8s; }
@keyframes wordly-fox-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes wordly-cloud-float {
  from { translate: -7px 0; }
  to { translate: 11px 0; }
}
@keyframes wordly-palm-sway {
  0%, 100% { rotate: -4deg; }
  50% { rotate: 4deg; }
}
@keyframes wordly-sparkle {
  0%, 100% { opacity: .55; scale: .78; }
  50% { opacity: 1; scale: 1.22; }
}
@media (max-width: 850px) {
  .auth-form.auth-sign-in {
    justify-content: flex-start;
    padding: 0 28px 28px;
  }
  .auth-login-hero {
    width: calc(100% + 56px);
    height: 320px;
    min-height: 320px;
    margin: 0 -28px 16px;
  }
  .auth-login-mascot {
    width: 285px;
    height: 235px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .auth-login-hero *,
  .auth-login-hero::before,
  .auth-login-hero::after {
    animation: none !important;
  }
}


/* Living animated background: drifting clouds, moving sky light and ocean waves. */
.auth-login-hero {
  background:
    radial-gradient(ellipse at 50% 115%, rgba(255,255,255,.26) 0 12%, transparent 39%),
    linear-gradient(180deg, #0878e8 0%, #168dec 48%, #48b9f7 100%);
  background-size: 100% 100%;
  animation: wordly-sky-breathe 9s ease-in-out infinite alternate;
}
.hero-sky-glow {
  position: absolute;
  z-index: 0;
  inset: -25% -30%;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 28% 35%, rgba(255,255,255,.19), transparent 27%),
    radial-gradient(ellipse at 78% 58%, rgba(255,255,255,.13), transparent 30%);
  animation: wordly-light-drift 12s ease-in-out infinite alternate;
}
.hero-breeze {
  position: absolute;
  z-index: 0;
  height: 3px;
  width: 150px;
  border-radius: 100%;
  background: rgba(255,255,255,.23);
  filter: blur(2px);
  pointer-events: none;
  animation: wordly-breeze 8s linear infinite;
}
.hero-breeze-one { top: 42%; left: -170px; }
.hero-breeze-two { top: 60%; left: -210px; animation-delay: -4s; width: 210px; }
.hero-wave {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  left: -20%;
  width: 140%;
  height: 45px;
  bottom: 78px;
  border-top: 3px solid rgba(255,255,255,.22);
  border-radius: 50%;
  opacity: .7;
}
.hero-wave-back {
  bottom: 82px;
  animation: wordly-wave-drift 6s ease-in-out infinite alternate;
}
.hero-wave-front {
  bottom: 68px;
  opacity: .4;
  border-top-width: 2px;
  animation: wordly-wave-drift 8s ease-in-out infinite alternate-reverse;
}
.hero-cloud-left { animation: wordly-cloud-cross 16s ease-in-out infinite alternate; }
.hero-cloud-right { animation: wordly-cloud-cross 19s ease-in-out infinite alternate-reverse; }
.hero-palm-left { animation: wordly-palm-sway 3.4s ease-in-out infinite; }
.hero-palm-right { animation: wordly-palm-sway 4s ease-in-out infinite reverse; }
@keyframes wordly-sky-breathe {
  0% { background-position: 0% 0%; filter: saturate(1); }
  100% { background-position: 0% 100%; filter: saturate(1.12) brightness(1.04); }
}
@keyframes wordly-light-drift {
  from { transform: translate3d(-3%, -1%, 0) scale(1); }
  to { transform: translate3d(4%, 2%, 0) scale(1.08); }
}
@keyframes wordly-breeze {
  0% { transform: translateX(0) scaleX(.6); opacity: 0; }
  18% { opacity: .8; }
  82% { opacity: .65; }
  100% { transform: translateX(115vw) scaleX(1.2); opacity: 0; }
}
@keyframes wordly-wave-drift {
  from { transform: translateX(-3%) rotate(-1deg); }
  to { transform: translateX(3%) rotate(1deg); }
}
@keyframes wordly-cloud-cross {
  from { translate: -12px 0; }
  to { translate: 18px 4px; }
}
@media (max-width: 850px) {
  .auth-login-hero {
    height: 320px;
    min-height: 320px;
  }
  .auth-login-mascot {
    width: 285px;
    height: 235px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .auth-login-hero,
  .auth-login-hero *,
  .auth-login-hero::before,
  .auth-login-hero::after {
    animation: none !important;
  }
}


/* FORCE VISIBLE BACKGROUND MOTION IN QT WEBENGINE */
.auth-login-hero {
  overflow: hidden;
  background-size: 220% 220% !important;
  animation: wordly-sky-gradient 7s ease-in-out infinite alternate !important;
}
.auth-login-hero .hero-sky-glow {
  z-index: 1;
  inset: 0;
  opacity: .9;
  background:
    radial-gradient(ellipse at 20% 25%, rgba(255,255,255,.24), transparent 24%),
    radial-gradient(ellipse at 78% 60%, rgba(255,255,255,.20), transparent 28%),
    linear-gradient(115deg, transparent 30%, rgba(255,255,255,.10) 48%, transparent 64%);
  background-size: 180% 180%;
  animation: wordly-sky-shimmer 6s linear infinite alternate !important;
}
.auth-login-hero .hero-cloud {
  z-index: 3;
  will-change: left, right;
}
.auth-login-hero .hero-cloud-left {
  left: 7%;
  animation: wordly-cloud-left-travel 5s ease-in-out infinite alternate !important;
}
.auth-login-hero .hero-cloud-right {
  right: 7%;
  animation: wordly-cloud-right-travel 6s ease-in-out infinite alternate !important;
}
.auth-login-hero .hero-breeze {
  z-index: 2;
  height: 5px;
  background: rgba(255,255,255,.48);
  box-shadow: 0 0 12px rgba(255,255,255,.45);
  animation: wordly-breeze-travel 4.5s linear infinite !important;
}
.auth-login-hero .hero-breeze-two {
  animation-delay: -2.2s !important;
}
.auth-login-hero .hero-wave {
  z-index: 2;
  border-top: 4px solid rgba(255,255,255,.52);
  box-shadow: 0 -5px 12px rgba(255,255,255,.10);
}
.auth-login-hero .hero-wave-back {
  animation: wordly-wave-shift 3.2s ease-in-out infinite alternate !important;
}
.auth-login-hero .hero-wave-front {
  animation: wordly-wave-shift 4.1s ease-in-out infinite alternate-reverse !important;
}
.auth-login-hero .hero-palm {
  z-index: 4;
  transform-origin: 50% 100%;
}
.auth-login-hero .hero-palm-left {
  animation: wordly-palm-visible 1.9s ease-in-out infinite alternate !important;
}
.auth-login-hero .hero-palm-right {
  animation: wordly-palm-visible 2.3s ease-in-out infinite alternate-reverse !important;
}
.auth-login-hero .hero-spark {
  z-index: 5;
  animation: wordly-spark-visible 1.1s ease-in-out infinite !important;
}
@keyframes wordly-sky-gradient {
  0% { background-position: 0% 20%; filter: saturate(1) brightness(1); }
  100% { background-position: 100% 80%; filter: saturate(1.25) brightness(1.10); }
}
@keyframes wordly-sky-shimmer {
  0% { background-position: 0% 50%; opacity: .35; }
  100% { background-position: 100% 50%; opacity: 1; }
}
@keyframes wordly-cloud-left-travel {
  0% { left: 5%; }
  100% { left: 27%; }
}
@keyframes wordly-cloud-right-travel {
  0% { right: 5%; }
  100% { right: 25%; }
}
@keyframes wordly-breeze-travel {
  0% { left: -240px; opacity: 0; }
  15% { opacity: .9; }
  85% { opacity: .75; }
  100% { left: 110%; opacity: 0; }
}
@keyframes wordly-wave-shift {
  0% { transform: translateX(-7%) scaleY(.75); }
  100% { transform: translateX(7%) scaleY(1.35); }
}
@keyframes wordly-palm-visible {
  0% { transform: rotate(-9deg); }
  100% { transform: rotate(9deg); }
}
@keyframes wordly-spark-visible {
  0%, 100% { opacity: .45; transform: scale(.72) rotate(-12deg); }
  50% { opacity: 1; transform: scale(1.25) rotate(12deg); }
}
/* Explicitly keep decorative motion enabled in embedded desktop WebEngine too. */
@media (prefers-reduced-motion: reduce) {
  .auth-login-hero,
  .auth-login-hero *,
  .auth-login-hero::before,
  .auth-login-hero::after {
    animation-duration: 7s !important;
    animation-iteration-count: infinite !important;
  }
}


/* =========================================================
   WORDLY — Desktop learning-language chooser (20 languages)
   ========================================================= */
.learning-language-screen {
  position: relative;
  display: none;
  width: 100%;
  min-height: 100vh;
  padding: clamp(14px, 2.4vh, 28px) clamp(14px, 3vw, 42px);
  overflow: auto;
  isolation: isolate;
  background: #58b9f5;
}
.learning-language-screen.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
.learning-language-backdrop {
  position: fixed;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(10,113,209,.10), rgba(4,89,174,.12)),
    url("../../assets/backgrounds/wordly-language-island-background.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.015);
  animation: language-background-float 24s ease-in-out infinite alternate;
}
.learning-language-screen::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,116,206,.04), rgba(10,111,190,.16));
  pointer-events: none;
}
.learning-language-content {
  width: min(1180px, 96vw);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: clamp(18px, 2.4vw, 30px);
  border: 2px solid rgba(255,255,255,.88);
  border-radius: 30px;
  background: linear-gradient(155deg, rgba(248,253,255,.92), rgba(222,243,255,.84));
  box-shadow: 0 18px 50px rgba(6,68,130,.25), inset 0 1px 0 rgba(255,255,255,.95);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}
.learning-language-heading {
  text-align: center;
  margin: 0 auto 18px;
}
.learning-eyebrow {
  margin: 0 0 6px;
  color: #1686ed;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 1.8px;
}
.learning-language-heading h1 {
  margin: 0;
  color: #123d91;
  font-size: clamp(25px, 2.5vw, 36px);
  line-height: 1.12;
  font-weight: 1000;
  text-shadow: 0 1px 0 #fff;
}
.learning-language-heading p:last-child {
  margin: 7px 0 0;
  color: #456b9d;
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 650;
}
.learning-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(560px, 100%);
  height: 48px;
  margin: 0 auto 20px;
  padding: 0 15px;
  border: 1.5px solid #9dccfa;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 5px 15px rgba(28,115,194,.12), inset 0 1px 3px rgba(255,255,255,.9);
  color: #376da8;
}
.learning-search-wrap > span {
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  transform: rotate(-20deg);
}
.learning-search {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #163f79;
  font-size: 14px;
  font-weight: 650;
}
.learning-search::placeholder { color: #7189a8; opacity: 1; }
.clear-language-search {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e8f4ff;
  color: #3976b5;
  font-size: 20px;
  cursor: pointer;
}
.learning-language-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.learning-language-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 104px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 8px 9px;
  border: 1.5px solid rgba(133,192,244,.88);
  border-radius: 19px;
  background: linear-gradient(155deg, rgba(255,255,255,.98), rgba(228,244,255,.94));
  color: #16447f;
  box-shadow: 0 5px 12px rgba(24,101,174,.11), inset 0 1px 0 #fff;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.learning-language-card:hover {
  transform: translateY(-4px) scale(1.025);
  border-color: #238ff0;
  box-shadow: 0 10px 20px rgba(17,115,210,.22), 0 0 0 3px rgba(66,164,255,.12);
}
.learning-language-card.selected {
  border: 2px solid #087df0;
  background: linear-gradient(155deg, #fff, #d8efff);
  box-shadow: 0 0 0 3px rgba(19,137,242,.16), 0 8px 18px rgba(17,115,210,.20);
}
.learning-flag-circle {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.95);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(16,67,121,.17);
  font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
  font-size: 27px;
  line-height: 1;
}
.learning-language-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #173f77;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.learning-language-native {
  display: block;
  color: #6a84a4;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}
.learning-language-check {
  position: absolute;
  top: 7px;
  right: 8px;
  display: none;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: #087df0;
  color: white;
  font-size: 12px;
  font-weight: 900;
}
.learning-language-card.selected .learning-language-check { display: grid; }
.learning-empty {
  grid-column: 1 / -1;
  padding: 25px;
  color: #52749a;
  text-align: center;
  font-weight: 700;
}
.learning-selection-note {
  margin: 13px 0 0;
  color: #55769a;
  font-size: 12px;
  text-align: center;
}
.learning-selection-note strong { color: #0a65c0; }
.learning-language-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.learning-back-button,
.learning-start-button {
  min-height: 43px;
  padding: 0 23px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.learning-back-button {
  border: 1.5px solid #a9d2f5;
  background: rgba(255,255,255,.82);
  color: #3c6d9f;
}
.learning-start-button {
  border: 0;
  background: linear-gradient(100deg, #0875e9, #35adf8);
  color: white;
  box-shadow: 0 5px 12px rgba(0,105,220,.23), inset 0 1px 0 rgba(255,255,255,.65);
}
.learning-back-button:hover,
.learning-start-button:hover { transform: translateY(-2px); }
.learning-language-screen .learning-language-content::-webkit-scrollbar { width: 8px; }
.learning-language-screen .learning-language-content::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: rgba(76,145,205,.42);
}
@keyframes language-background-float {
  0% { transform: scale(1.015) translate3d(0,0,0); }
  100% { transform: scale(1.05) translate3d(-.5%,.4%,0); }
}
@media (max-width: 1050px) {
  .learning-language-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .learning-language-content { max-height: calc(100vh - 22px); }
}
@media (max-width: 720px) {
  .learning-language-screen { padding: 10px; }
  .learning-language-content { width: 100%; padding: 16px 12px; border-radius: 22px; }
  .learning-language-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .learning-language-card { min-height: 92px; padding: 8px 4px; }
  .learning-flag-circle { width: 37px; height: 37px; flex-basis: 37px; font-size: 24px; }
  .learning-language-name { font-size: 11px; }
  .learning-language-actions { margin-top: 12px; }
}


/* FINAL LAYOUT: separate floating language window over the island background */
.learning-language-screen {
  padding: 3vh 3vw !important;
  background: transparent !important;
}
.learning-language-backdrop {
  position: fixed !important;
  inset: -2% !important;
  background-position: center !important;
  background-size: cover !important;
  filter: saturate(1.08);
}
.learning-language-screen::before {
  background: linear-gradient(180deg, rgba(7,93,174,.08), rgba(5,76,146,.22)) !important;
}
.learning-language-content {
  width: min(1120px, 88vw) !important;
  max-height: 88vh !important;
  padding: 22px 26px 20px !important;
  border: 3px solid rgba(255,255,255,.96) !important;
  border-radius: 28px !important;
  background:
    linear-gradient(145deg, rgba(246,252,255,.96), rgba(220,242,255,.92)) !important;
  box-shadow:
    0 22px 65px rgba(3,54,112,.34),
    0 0 0 7px rgba(255,255,255,.13),
    inset 0 2px 0 rgba(255,255,255,.98) !important;
  backdrop-filter: blur(10px) !important;
}
.learning-language-heading {
  margin-bottom: 12px !important;
}
.learning-language-heading h1 {
  font-size: clamp(24px, 2.1vw, 32px) !important;
}
.learning-search-wrap {
  height: 43px !important;
  margin-bottom: 14px !important;
}
.learning-language-grid {
  gap: 9px !important;
}
.learning-language-card {
  min-height: 88px !important;
  padding: 8px 6px !important;
  border-radius: 16px !important;
}
.learning-flag-circle {
  width: 43px !important;
  height: 43px !important;
  flex-basis: 43px !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 2px solid white !important;
}
.learning-flag-circle img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.learning-language-name {
  font-size: 12px !important;
}
.learning-selection-note {
  margin-top: 9px !important;
}
.learning-language-actions {
  margin-top: 11px !important;
}
@media (max-height: 820px) and (min-width: 900px) {
  .learning-language-content {
    padding: 15px 22px 14px !important;
    max-height: 92vh !important;
  }
  .learning-language-card { min-height: 76px !important; }
  .learning-flag-circle { width: 36px !important; height: 36px !important; flex-basis: 36px !important; }
  .learning-language-heading { margin-bottom: 8px !important; }
  .learning-search-wrap { margin-bottom: 10px !important; }
}


/* WORDLY: translucent glass language selector — override earlier opaque panel styles */
.learning-language-content {
  background: linear-gradient(135deg, rgba(237, 250, 255, .38), rgba(205, 233, 255, .27)) !important;
  border: 2px solid rgba(255, 255, 255, .75) !important;
  box-shadow: 0 20px 56px rgba(4, 51, 115, .25), inset 0 1px 0 rgba(255,255,255,.65) !important;
  -webkit-backdrop-filter: blur(7px) saturate(1.15) !important;
  backdrop-filter: blur(7px) saturate(1.15) !important;
}
.learning-language-card {
  background: linear-gradient(155deg, rgba(255,255,255,.68), rgba(222,244,255,.53)) !important;
  border-color: rgba(255,255,255,.82) !important;
  box-shadow: 0 4px 12px rgba(15,85,157,.13) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  backdrop-filter: blur(4px) !important;
}
.learning-language-card.selected {
  background: linear-gradient(155deg, rgba(255,255,255,.83), rgba(190,230,255,.66)) !important;
  border: 2px solid #087df0 !important;
  box-shadow: 0 0 0 3px rgba(19,137,242,.20), 0 7px 18px rgba(17,115,210,.18) !important;
}
.learning-search-wrap {
  background: rgba(255,255,255,.78) !important;
  -webkit-backdrop-filter: blur(7px) !important;
  backdrop-filter: blur(7px) !important;
}
.learning-language-heading h1,
.learning-language-heading p,
.learning-language-name,
.learning-selection-note { text-shadow: 0 1px 3px rgba(255,255,255,.72); }


/* ==========================================================
   WORDLY DASHBOARD REDESIGN — playful 3D glass workspace
   ========================================================== */
.wordly-dashboard {
  --wd-navy:#102b68; --wd-blue:#087cf0; --wd-sky:#54bdf7;
  position:relative; width:100%; height:100vh; min-height:700px;
  padding:12px; gap:12px; overflow:hidden;
  color:var(--wd-navy);
  background:
    radial-gradient(ellipse at 80% 5%,rgba(255,255,255,.82),transparent 24%),
    linear-gradient(135deg,#d8f1ff 0%,#9edcff 52%,#6bc4f7 100%);
}
.wordly-dashboard.active {display:grid;grid-template-columns:232px minmax(0,1fr);align-items:stretch;}
.wordly-dashboard::before {
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.36;
  background-image:linear-gradient(120deg,transparent 30%,rgba(255,255,255,.28) 50%,transparent 68%);
  background-size:220% 100%;animation:wd-bg-shimmer 18s linear infinite;
}
@keyframes wd-bg-shimmer {from{background-position:100% 0}to{background-position:-100% 0}}
.wd-sidebar,.wd-main {position:relative;z-index:1;min-height:0;border:1px solid rgba(255,255,255,.88);background:linear-gradient(155deg,rgba(255,255,255,.84),rgba(224,244,255,.72));backdrop-filter:blur(18px);box-shadow:0 8px 28px rgba(24,104,177,.12),inset 0 1px 0 #fff;}
.wd-sidebar {border-radius:24px;padding:15px 12px 12px;display:flex;flex-direction:column;gap:16px;}
.wd-brand {display:flex;align-items:center;gap:8px;padding:1px 4px 12px;border-bottom:1px solid rgba(91,157,211,.22);}
.wd-brand img {width:56px;height:50px;object-fit:contain;}
.wd-brand div {display:flex;flex-direction:column;min-width:0;}
.wd-brand strong {font-size:23px;line-height:1;color:#10418f;font-weight:1000;letter-spacing:-.8px;}
.wd-brand small {font-size:9px;font-weight:800;color:#52749c;white-space:nowrap;}
.wd-nav {display:grid;gap:6px;flex:1;align-content:start;}
.wd-nav-item {display:flex;align-items:center;gap:13px;min-height:43px;padding:0 12px;border:1px solid transparent;border-radius:14px;background:transparent;color:#17336d;font-size:15px;font-weight:850;text-align:left;cursor:pointer;transition:.18s ease;}
.wd-nav-item span {width:22px;text-align:center;font-size:20px;color:#254e9a;}
.wd-nav-item:hover,.wd-nav-item.active {background:linear-gradient(100deg,#d8efff,#9ed5ff);border-color:rgba(255,255,255,.9);box-shadow:0 4px 12px rgba(20,119,208,.16);color:#075ed1;transform:translateX(2px);}
.wd-profile {display:flex;align-items:center;gap:9px;padding:9px 7px;border:1px solid rgba(255,255,255,.9);border-radius:18px;background:rgba(185,224,255,.55);}
.wd-profile img {width:48px;height:48px;object-fit:cover;border-radius:50%;border:2px solid white;background:#d7efff;}
.wd-profile div {display:flex;flex:1;flex-direction:column;min-width:0;}
.wd-profile strong {font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.wd-profile small {font-size:11px;color:#54759e;font-weight:750;}
.wd-profile button {border:0;background:transparent;color:#244c8e;font-size:21px;cursor:pointer;}
.wd-main {border-radius:25px;padding:12px 14px;display:flex;flex-direction:column;gap:12px;overflow:auto;}
.wd-topbar {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;}
.wd-search {height:43px;display:flex;align-items:center;gap:10px;flex:1;max-width:590px;padding:0 15px;border:1px solid #b8dcfb;border-radius:999px;background:rgba(255,255,255,.84);box-shadow:0 4px 12px rgba(32,111,180,.10);}
.wd-search span {font-size:25px;color:#254b8c;line-height:1;}
.wd-search input {width:100%;border:0;outline:0;background:transparent;color:#17366e;font-weight:650;font-size:13px;}
.wd-search input::placeholder {color:#7189aa;}
.wd-top-actions {display:flex;align-items:center;gap:8px;}
.wd-pill,.wd-icon-button,.wd-window-button {height:40px;border:1px solid rgba(255,255,255,.95);border-radius:999px;background:linear-gradient(150deg,rgba(255,255,255,.97),rgba(220,240,255,.88));box-shadow:0 4px 10px rgba(30,102,170,.13);color:#17356d;}
.wd-pill {display:flex;align-items:center;gap:7px;padding:0 12px;font-weight:850;font-size:13px;white-space:nowrap;}
.wd-stat-pill {min-width:76px;justify-content:center;}
.wd-coin {color:#f0a900;font-size:20px;text-shadow:0 1px #9a6400;}
.wd-fire {font-size:19px;}
.wd-icon-button {position:relative;width:42px;font-size:21px;cursor:pointer;}
.wd-icon-button i {position:absolute;right:7px;top:6px;width:8px;height:8px;border-radius:50%;background:#f05252;border:1px solid white;}
.wd-window-button {width:36px;font-size:20px;cursor:pointer;}
.wd-window-button.close {background:linear-gradient(140deg,#fff,#ffdede);color:#bd3c50;}
.wd-dashboard-grid {display:grid;grid-template-columns:minmax(0,1.72fr) minmax(285px,1fr);gap:12px;align-items:start;}
.wd-center-column,.wd-right-column {display:grid;gap:11px;min-width:0;align-content:start;}
.wd-hero-card,.wd-widget,.wd-streak-widget,.wd-lesson-card,.wd-quick-card,.wd-path-block {
  border:1px solid rgba(255,255,255,.96);border-radius:21px;
  background:linear-gradient(145deg,rgba(255,255,255,.76),rgba(199,231,255,.68));
  box-shadow:0 6px 16px rgba(24,94,160,.12),inset 0 1px 0 rgba(255,255,255,.98);
}
.wd-hero-card {position:relative;min-height:202px;display:flex;overflow:hidden;background:linear-gradient(110deg,#c5ebff,#70c7fa 55%,#d9f4ff);}
.wd-hero-copy {position:relative;z-index:2;width:55%;padding:22px 12px 18px 24px;}
.wd-eyebrow {margin:0 0 7px;color:#167bd5;font-size:10px;letter-spacing:1.5px;font-weight:1000;}
.wd-hero-copy h1 {margin:0;color:#0e285f;font-size:clamp(25px,2.4vw,36px);font-weight:1000;line-height:1.08;letter-spacing:-1px;}
.wd-hero-copy h1 span {color:#1558d6;}
.wd-hero-copy h1 em {font-style:normal;font-size:.8em;}
.wd-hero-copy p:not(.wd-eyebrow) {margin:9px 0 13px;color:#183b78;font-size:13px;font-weight:700;max-width:230px;}
.wd-primary-button,.wd-start-button {border:1px solid rgba(255,255,255,.95);border-radius:999px;background:linear-gradient(100deg,#1268ec,#36b5fa);color:white;font-weight:950;box-shadow:0 5px 12px rgba(0,94,211,.22),inset 0 1px 0 rgba(255,255,255,.75);cursor:pointer;transition:.18s ease;}
.wd-primary-button {padding:10px 17px;font-size:13px;}
.wd-primary-button span {margin-left:7px;font-size:17px;}
.wd-primary-button:hover,.wd-start-button:hover {transform:translateY(-2px);filter:brightness(1.05);}
.wd-hero-art {position:absolute;inset:0 0 0 48%;overflow:hidden;background:linear-gradient(145deg,rgba(85,190,250,.1),rgba(31,147,227,.20));}
.wd-hero-art::after {content:"";position:absolute;bottom:-30px;left:-10%;width:120%;height:78px;border-radius:50% 50% 0 0;background:linear-gradient(180deg,#91d98a,#3aa66b);opacity:.8;}
.wd-hero-art img {position:absolute;z-index:2;width:clamp(150px,19vw,235px);height:190px;object-fit:contain;right:12%;bottom:3px;filter:drop-shadow(0 8px 7px rgba(20,76,116,.2));animation:wd-fox-float 3.4s ease-in-out infinite;}
@keyframes wd-fox-float {0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
.wd-hero-sun {position:absolute;right:28%;top:20px;width:54px;height:54px;border-radius:50%;background:rgba(255,238,160,.75);filter:blur(3px);}
.wd-hero-cloud {position:absolute;width:85px;height:25px;border-radius:30px;background:rgba(255,255,255,.72);filter:blur(1px);animation:wd-cloud-drift 13s ease-in-out infinite alternate;}
.wd-hero-cloud::before,.wd-hero-cloud::after {content:"";position:absolute;bottom:7px;width:34px;height:34px;border-radius:50%;background:inherit;}
.wd-hero-cloud::before {left:12px}.wd-hero-cloud::after {right:12px;width:27px;height:27px;}
.cloud-a {top:22px;left:12%;}.cloud-b {top:60px;right:4%;animation-delay:-5s;}
@keyframes wd-cloud-drift {from{transform:translateX(-8px)}to{transform:translateX(14px)}}
.wd-castle {position:absolute;z-index:1;left:7%;bottom:35px;font-size:68px;filter:drop-shadow(0 5px 4px rgba(24,82,120,.16));}
.wd-hero-books {position:absolute;z-index:3;right:2%;bottom:9px;font-size:35px;}
.wd-section-block {display:grid;gap:8px;}
.wd-section-heading,.wd-widget-title {display:flex;align-items:center;justify-content:space-between;gap:8px;}
.wd-section-heading h2,.wd-widget-title h2 {margin:0;color:#142c67;font-size:16px;font-weight:1000;}
.wd-text-link {border:0;background:transparent;color:#0879df;font-size:11px;font-weight:850;cursor:pointer;}
.wd-section-caption {font-size:10px;color:#6983a5;font-weight:700;}
.wd-lesson-card {display:grid;grid-template-columns:130px minmax(100px,1fr) auto auto;align-items:center;gap:12px;padding:9px 12px;}
.wd-lesson-art {height:74px;border-radius:14px;display:grid;place-items:center;position:relative;overflow:hidden;background:linear-gradient(145deg,#9bdcff,#dcf5ff);font-size:48px;}
.wd-lesson-art span {position:absolute;right:12px;top:4px;color:#fff3a3;}
.wd-lesson-info {display:grid;gap:4px;min-width:0;}
.wd-lesson-info strong {font-size:14px;color:#18336d;}
.wd-lesson-info small {font-size:11px;color:#5d789f;font-weight:700;}
.wd-progress-track {height:9px;border-radius:99px;background:#b6d8f3;overflow:hidden;margin-top:4px;}
.wd-progress-track span {display:block;width:60%;height:100%;border-radius:99px;background:linear-gradient(90deg,#0874ed,#42b7ff);}
.wd-percent {font-size:12px;color:#193a76;}
.wd-start-button {padding:10px 16px;font-size:12px;white-space:nowrap;}
.wd-start-button span {margin-right:6px;}
.wd-quick-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;}
.wd-quick-card {min-height:91px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:#17336c;cursor:pointer;transition:.18s ease;}
.wd-quick-card span {font-size:31px;filter:drop-shadow(0 3px 2px rgba(26,83,137,.18));}
.wd-quick-card strong {font-size:11px;font-weight:950;}
.wd-quick-card:hover {transform:translateY(-3px);box-shadow:0 10px 20px rgba(27,112,188,.18);border-color:#70bafa;}
.wd-path-block {padding:11px 13px;background:linear-gradient(145deg,rgba(255,255,255,.78),rgba(199,233,255,.72));}
.wd-learning-path {position:relative;display:flex;justify-content:space-between;align-items:flex-start;padding:13px 6px 0;}
.wd-path-line {position:absolute;left:10%;right:10%;top:27px;height:5px;border-radius:99px;background:linear-gradient(90deg,#39c86e 0 43%,#9276ff 43% 63%,#aec8e4 63%);border:1px solid rgba(255,255,255,.7);}
.wd-path-step {position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:5px;width:19%;font-size:10px;color:#18386f;}
.wd-path-step b {width:31px;height:31px;border-radius:50%;display:grid;place-items:center;border:3px solid white;background:#b9d3ec;color:#fff;font-size:13px;box-shadow:0 3px 8px rgba(23,83,142,.17);}
.wd-path-step.done b {background:#36c66b;}
.wd-path-step.current b {width:40px;height:40px;margin-top:-5px;background:linear-gradient(140deg,#aa6cff,#6746ed);box-shadow:0 0 0 5px rgba(147,103,255,.16);}
.wd-path-step.locked b {background:#a9bfd8;font-size:11px;}
.wd-right-column {gap:10px;}
.wd-widget {padding:12px 14px;}
.wd-widget-title h2 {font-size:15px;}
.wd-widget-title>span {font-size:25px;}
.wd-quest-row {width:100%;display:flex;align-items:center;gap:9px;padding:7px 0;border:0;border-bottom:1px solid rgba(104,157,204,.18);background:transparent;text-align:left;color:#1c356a;font-size:12px;font-weight:750;cursor:pointer;}
.wd-quest-row:last-child {border-bottom:0;padding-bottom:1px;}
.wd-quest-row b {margin-left:auto;color:#153a76;}
.wd-quest-check {width:17px;height:17px;border:2px solid #9ab6d6;border-radius:50%;display:grid;place-items:center;color:transparent;font-style:normal;font-size:10px;}
.wd-quest-row.completed .wd-quest-check {background:#35bd61;border-color:#35bd61;color:white;}
.wd-quest-row.completed b {color:#25984c;}
.wd-streak-widget {display:flex;align-items:center;justify-content:space-between;padding:9px 16px;background:linear-gradient(110deg,rgba(255,255,255,.94),rgba(229,218,255,.86));}
.wd-streak-widget>span {font-size:33px;}
.wd-streak-widget div {display:flex;flex-direction:column;align-items:center;}
.wd-streak-widget strong {font-size:21px;color:#152f6b;}
.wd-streak-widget small {font-size:12px;font-weight:800;color:#536f9a;}
.wd-stats-widget select {max-width:105px;border:1px solid #b9d9f7;border-radius:99px;padding:5px 8px;background:rgba(255,255,255,.82);color:#25477d;font-size:10px;font-weight:800;}
.wd-stats-content {display:grid;grid-template-columns:minmax(0,1fr) 94px;align-items:center;gap:9px;margin-top:10px;}
.wd-chart {height:112px;display:grid;grid-template-columns:16px 1fr;gap:5px;}
.wd-chart-y {display:flex;flex-direction:column;justify-content:space-between;color:#6b83a4;font-size:9px;padding-bottom:17px;}
.wd-bars {display:grid;grid-template-columns:repeat(7,1fr);gap:5px;align-items:end;background:repeating-linear-gradient(to bottom,transparent 0,transparent 26px,rgba(91,145,197,.18) 27px,transparent 28px);padding:0 1px;}
.wd-bars div {height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:4px;min-width:0;}
.wd-bars i {display:block;width:100%;max-width:23px;height:var(--bar);min-height:4px;border-radius:6px 6px 2px 2px;background:linear-gradient(180deg,#a66cf4,#287ff0);box-shadow:0 2px 5px rgba(75,93,207,.15);}
.wd-bars small {font-size:8px;color:#203c72;font-weight:800;}
.wd-progress-ring {width:88px;height:88px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(circle,rgba(255,255,255,.95) 56%,transparent 58%),conic-gradient(#6547ed 0 75%,#b8d8f6 75% 100%);box-shadow:0 3px 10px rgba(91,77,201,.14);}
.wd-progress-ring strong {font-size:20px;color:#142e70;}
.wd-progress-ring small {font-size:9px;color:#536f99;font-weight:800;}
.wd-achievement-widget .wd-widget-title {margin-bottom:10px;}
.wd-badges {display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:7px 3px 2px;}
.wd-badges div {height:58px;display:grid;place-items:center;border-radius:15px;background:linear-gradient(145deg,rgba(255,255,255,.86),rgba(208,230,255,.8));font-size:32px;filter:drop-shadow(0 4px 4px rgba(44,89,152,.13));}
.wd-toast {position:fixed;z-index:30;left:50%;bottom:22px;transform:translate(-50%,20px);opacity:0;pointer-events:none;padding:11px 18px;border:1px solid white;border-radius:99px;background:rgba(12,65,137,.92);color:white;font-size:12px;font-weight:800;box-shadow:0 7px 22px rgba(0,45,105,.22);transition:.22s;}
.wd-toast.show {opacity:1;transform:translate(-50%,0);}
.wd-search-results {position:absolute;z-index:20;top:62px;left:14px;width:min(590px,70%);padding:12px;border:1px solid white;border-radius:16px;background:rgba(255,255,255,.97);box-shadow:0 8px 25px rgba(23,83,145,.2);color:#17366e;font-size:12px;}
.wd-search-results button {display:block;width:100%;padding:8px;border:0;border-radius:8px;background:transparent;text-align:left;color:#17366e;cursor:pointer;}
.wd-search-results button:hover {background:#e7f4ff;}
@media(max-width:1250px) {
 .wordly-dashboard.active {grid-template-columns:205px minmax(0,1fr);}
 .wd-dashboard-grid {grid-template-columns:minmax(0,1.45fr) minmax(255px,.9fr);}
 .wd-sidebar {padding:12px 9px;}
 .wd-nav-item {font-size:13px;min-height:39px;}
 .wd-hero-card {min-height:190px;}
 .wd-lesson-card {grid-template-columns:105px minmax(90px,1fr) auto;}
 .wd-percent {display:none;}
}
@media(max-width:980px) {
 .wordly-dashboard {height:auto;min-height:100vh;overflow:auto;}
 .wordly-dashboard.active {grid-template-columns:180px minmax(0,1fr);}
 .wd-topbar {align-items:flex-start;flex-direction:column;}
 .wd-top-actions {flex-wrap:wrap;}
 .wd-dashboard-grid {grid-template-columns:1fr;}
 .wd-right-column {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:700px) {
 .wordly-dashboard.active {display:flex;flex-direction:column;}
 .wd-sidebar {min-height:auto;}
 .wd-nav {grid-template-columns:repeat(3,1fr);}
 .wd-profile {display:none;}
 .wd-quick-grid {grid-template-columns:repeat(2,1fr);}
 .wd-right-column {grid-template-columns:1fr;}
 .wd-hero-copy {width:65%;padding-left:16px;}
 .wd-hero-art {left:50%;}
 .wd-lesson-card {grid-template-columns:80px minmax(80px,1fr);}
 .wd-start-button {grid-column:2;}
 .wd-top-actions {gap:5px;}
}


/* Illustrated 3D theme: scenic world + matching image-based controls */
.wordly-dashboard {
  background: url("../../assets/dashboard/dashboard-world-background.png") center center / cover fixed no-repeat !important;
}
.wordly-dashboard::before {
  opacity:.18;
  background:linear-gradient(115deg,rgba(255,255,255,.08),transparent 40%,rgba(255,255,255,.1));
  background-size:100% 100%;
  animation:none;
}
.wd-sidebar,.wd-main {
  background:linear-gradient(145deg,rgba(225,245,255,.83),rgba(155,213,250,.76));
  border:2px solid rgba(255,255,255,.94);
  box-shadow:0 9px 24px rgba(0,73,151,.2),inset 0 1px 0 white;
}
.wd-sidebar {backdrop-filter:blur(14px);}
.wd-main {backdrop-filter:blur(12px);background:linear-gradient(145deg,rgba(224,244,255,.68),rgba(148,211,250,.58));}
.wd-brand img {width:56px;height:55px;object-fit:contain;filter:drop-shadow(0 3px 3px rgba(0,75,160,.2));}
.wd-nav-item {font-size:15px;min-height:46px;}
.wd-nav-icon {width:30px!important;height:30px;display:grid;place-items:center;flex:none!important;border-radius:10px;overflow:hidden;}
.wd-nav-icon img {width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply;filter:drop-shadow(0 2px 2px rgba(16,65,129,.15));}
.wd-nav-item.active {background:linear-gradient(115deg,rgba(255,255,255,.96),rgba(75,177,255,.76));border:1.5px solid rgba(255,255,255,.98);box-shadow:0 5px 13px rgba(0,103,210,.2),inset 0 1px 0 white;}
.wd-hero-card,.wd-widget,.wd-streak-widget,.wd-lesson-card,.wd-quick-card,.wd-path-block {
  background:linear-gradient(145deg,rgba(241,250,255,.84),rgba(163,218,255,.72));
  border:2px solid rgba(255,255,255,.98);
  box-shadow:0 7px 16px rgba(0,81,161,.17),inset 0 1px 0 white,inset 0 -2px 0 rgba(88,168,226,.13);
}
.wd-hero-card {min-height:228px;background:#6bc6fa;box-shadow:0 8px 20px rgba(0,79,164,.22);}
.wd-hero-copy {width:50%;padding:23px 10px 18px 25px;}
.wd-hero-copy h1 {font-size:clamp(29px,2.5vw,40px);}
.wd-hero-art {left:46%;background:none;}
.wd-hero-art.wd-hero-illustration {inset:0 0 0 43%;overflow:hidden;}
.wd-hero-illustration img {position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center;animation:none;filter:none;}
.wd-lesson-art {padding:0;background:#bce9ff;}
.wd-lesson-art img {width:100%;height:100%;object-fit:cover;border-radius:14px;}
.wd-quick-card {min-height:100px;background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(182,224,255,.78));}
.wd-quick-card span {height:53px;width:100%;display:grid;place-items:center;}
.wd-quick-card span img {width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 3px rgba(19,65,127,.16));}
.wd-title-icon {width:35px;height:35px;object-fit:contain;vertical-align:middle;filter:drop-shadow(0 3px 3px rgba(30,80,145,.16));}
.wd-widget-title h2 {display:flex;align-items:center;gap:7px;}
.wd-streak-widget {background:linear-gradient(110deg,rgba(255,255,255,.92),rgba(224,213,255,.84));}
.wd-streak-fire {font-size:39px!important;filter:drop-shadow(0 3px 3px rgba(221,83,31,.2));}
.wd-calendar-art {width:55px;height:55px;object-fit:contain;filter:drop-shadow(0 3px 3px rgba(30,70,130,.18));}
.wd-badges div {height:76px;background:linear-gradient(145deg,rgba(255,255,255,.74),rgba(184,218,255,.72));}
.wd-badges img {width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 4px rgba(15,55,120,.18));}
.wd-quest-row {font-size:13px;}
.wd-progress-ring {background:radial-gradient(circle,rgba(255,255,255,.96) 56%,transparent 58%),conic-gradient(#7044ef 0 33%,#b8d8f6 33% 100%);}
.wd-path-block {background:linear-gradient(145deg,rgba(255,255,255,.86),rgba(170,220,255,.78));}
.wd-lesson-card {grid-template-columns:150px minmax(100px,1fr) auto auto;}
@media(max-width:1250px) {
 .wd-lesson-card {grid-template-columns:110px minmax(90px,1fr) auto;}
}


/* WORDLY polish pass: consistent symbols, spacing and real feature pages */
.wd-nav-icon {
  width:34px!important;height:34px;flex:0 0 34px!important;
  display:inline-grid;place-items:center;border-radius:11px;
  background:linear-gradient(145deg,#f9fdff,#c8e7ff);
  border:1px solid rgba(255,255,255,.95);
  color:#1765bd;font-size:21px;font-weight:900;line-height:1;
  box-shadow:0 3px 7px rgba(37,105,175,.13),inset 0 1px 0 #fff;
}
.wd-nav-icon img {display:none!important}
.wd-nav-item {display:flex;align-items:center;gap:12px;padding:7px 12px;min-height:46px;line-height:1.15}
.wd-nav-item.active .wd-nav-icon {background:linear-gradient(145deg,#fff,#9ed6ff);color:#075dcc}
.wd-search-symbol {font-size:23px;font-weight:800;color:#2768ad;line-height:1}
.wd-section-icon {width:27px;height:27px;display:inline-grid;place-items:center;border-radius:9px;font-size:16px;font-weight:900;box-shadow:0 2px 5px #184f8626}
.quest-icon {color:#fff;background:linear-gradient(145deg,#51d98a,#1cae67)}
.stats-icon {color:#fff;background:linear-gradient(145deg,#7e8cff,#5265e9)}
.trophy-icon {color:#fff;background:linear-gradient(145deg,#ffbd46,#f08a22)}
.wd-widget-title h2 {display:flex;align-items:center;gap:8px}
.wd-game-symbol {height:54px!important;width:54px!important;display:grid!important;place-items:center;margin:0 auto 4px;border-radius:17px;background:linear-gradient(145deg,#fff,#c7e6ff);border:1px solid #fff;color:#176bd1;font-size:31px;font-weight:900;box-shadow:0 5px 12px #245d9826,inset 0 1px 0 #fff}
.wd-quick-card {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;overflow:hidden}
.wd-quick-card strong {font-size:13px;line-height:1.2}
.wd-badges div {display:grid;place-items:center;font-size:34px;font-weight:900;border:1px solid #fff;border-radius:15px;box-shadow:0 5px 12px #245d9826,inset 0 1px 0 white}
.wd-badge-star {color:#e9a900;text-shadow:0 2px 0 #fff0b2,0 4px 4px #85590044}
.wd-badge-book {color:#1786d8;text-shadow:0 2px 0 #d8f3ff}
.wd-badge-fire {color:#ef6734;text-shadow:0 2px 0 #ffe1a5}
.wd-badge-crown {color:#8d55e8;text-shadow:0 2px 0 #f4d5ff}
.wd-calendar-art {width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(145deg,#fff,#d8eaff);border:1px solid white;color:#357fd2;font-size:28px;font-weight:900;box-shadow:0 3px 8px #245d9826}
.wd-hero-illustration img {object-fit:cover;object-position:center}
.wd-lesson-art img {display:block;border-radius:13px}
.wd-page-view {padding:8px 4px 18px;min-height:calc(100% - 88px);overflow:auto}
.wd-page-heading {padding:20px 24px;margin-bottom:18px;border:1px solid #fff;border-radius:22px;background:linear-gradient(120deg,#ffffffd9,#b9e2ffd9);box-shadow:0 7px 18px #205f9820}
.wd-page-kicker {font-size:11px;letter-spacing:2px;font-weight:900;color:#1685e8}
.wd-page-heading h1 {margin:8px 0 5px;font-size:30px;color:#123e88}
.wd-page-heading p {margin:0;color:#4c6e9a}
.wd-module-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.wd-module-card {padding:20px;border-radius:20px;border:1px solid white;background:linear-gradient(145deg,#f7fcffed,#c5e8ffdf);box-shadow:0 7px 17px #205f9820,inset 0 1px 0 white;color:#17396f}
.wd-module-card h3 {margin:10px 0 7px;font-size:18px;color:#143d83}
.wd-module-card p {line-height:1.5;color:#52729a;min-height:38px}
.wd-module-icon {display:grid;place-items:center;width:54px;height:54px;border-radius:17px;background:linear-gradient(145deg,#fff,#b9e2ff);border:1px solid white;box-shadow:0 4px 9px #245d9826;font-size:28px;color:#1671d0;font-weight:900}
.wd-module-action {border:1px solid white;border-radius:999px;padding:11px 18px;background:linear-gradient(110deg,#1684ee,#35b7f2);color:white;font-weight:900;box-shadow:0 4px 10px #176ec044;cursor:pointer}
.wd-module-action:hover {filter:brightness(1.05);transform:translateY(-1px)}
.wd-module-card input,.wd-module-card select,.wd-chat-panel input {width:100%;padding:12px 14px;border:1px solid #a9d5ff;border-radius:12px;background:#ffffffd9;color:#17396f;margin:7px 0 12px}
.wd-world-map {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;padding:28px 16px;border-radius:22px;background:linear-gradient(145deg,#b9e6ff,#e8f8ff);border:1px solid white}
.wd-world-node {min-height:130px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border-radius:18px;background:#ffffffc9;border:2px solid white;color:#2775c4;font-size:28px;box-shadow:0 5px 12px #205f9820}
.wd-world-node b {font-size:13px;color:#173d78;text-align:center}
.wd-world-node small {font-size:11px;color:#6382a5}
.wd-world-node.done {color:#25b66b}.wd-world-node.current {border-color:#8b70ff;color:#8351f2}.wd-world-node.locked {opacity:.62}
.wd-chat-panel {max-width:850px;padding:18px;border:1px solid white;border-radius:20px;background:#eaf7ffd9;box-shadow:0 7px 17px #205f9820}
.wd-chat-messages {height:280px;overflow:auto;padding:10px;display:flex;flex-direction:column;gap:10px}
.buddy-message,.user-message {max-width:78%;padding:13px 16px;border-radius:16px;background:white;color:#234b7b;box-shadow:0 3px 9px #205f9816;line-height:1.5}
.user-message {align-self:flex-end;background:#d4edff}
#wd-chat-form,.wd-inline-form {display:flex;gap:9px;align-items:center}
#wd-chat-form input,.wd-inline-form input {flex:1;min-width:0}
.wd-chat-shortcuts {display:flex;flex-wrap:wrap;gap:8px}
.wd-chat-shortcuts button {border:1px solid #a9d5ff;border-radius:999px;padding:8px 12px;background:#fff;color:#2864a2;cursor:pointer}
.wd-progress-summary {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}
.wd-progress-summary article {padding:20px;border-radius:18px;background:linear-gradient(145deg,#fff,#c9e9ff);border:1px solid white;display:flex;flex-direction:column;gap:5px;box-shadow:0 5px 12px #205f981b}
.wd-progress-summary b {font-size:27px;color:#126ed0}.wd-progress-summary span {color:#57779c;font-size:13px}
.wd-achievement-list {display:flex;gap:10px;flex-wrap:wrap}
.wd-achievement-list span {padding:10px 14px;border-radius:12px;background:#e5f4ff;color:#245b9a;font-weight:800}
.wd-profile-form {max-width:650px;display:grid;gap:10px}
.wd-profile-form label {display:grid;gap:4px;font-weight:800;color:#365d8e}
@media(max-width:1200px){.wd-module-grid{grid-template-columns:1fr 1fr}.wd-progress-summary{grid-template-columns:repeat(2,1fr)}.wd-world-map{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.wd-module-grid{grid-template-columns:1fr}.wd-world-map{grid-template-columns:1fr 1fr}.wd-page-heading h1{font-size:24px}.wd-progress-summary{grid-template-columns:1fr 1fr}}

.wd-quiz-card {max-width:780px;margin:0 auto;padding:28px}
.wd-quiz-count {font-size:11px;font-weight:900;letter-spacing:1.6px;color:#1684e8}
.wd-quiz-card h2 {font-size:24px;color:#153f83;margin:14px 0 20px}
.wd-quiz-options {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.wd-quiz-option {min-height:62px;border-radius:15px;border:1px solid #a8d6ff;background:linear-gradient(145deg,#fff,#d9f0ff);color:#164780;font-size:16px;font-weight:850;cursor:pointer;box-shadow:0 4px 9px #205f9818}
.wd-quiz-option:hover {border-color:#2189ed;background:#e8f6ff;transform:translateY(-2px)}
.wd-quiz-feedback {min-height:28px;color:#2471b6;font-weight:800}
@media(max-width:760px){.wd-quiz-options{grid-template-columns:1fr}}

.wd-dashboard-grid[hidden],.wd-page-view[hidden] {display:none!important}
.wd-page-view {width:100%;box-sizing:border-box}
.wd-quick-grid {align-items:stretch}
.wd-badges div {min-width:0;overflow:hidden}


/* WORDLY HERO: satu banner utuh, bukan panel teks + panel gambar */
.wd-hero-card {
  position:relative !important;
  display:flex !important;
  min-height:245px !important;
  overflow:hidden !important;
  border-radius:22px !important;
  isolation:isolate !important;
  background:
    linear-gradient(90deg,
      rgba(99,190,244,1) 0%,
      rgba(99,190,244,.98) 34%,
      rgba(99,190,244,.88) 45%,
      rgba(99,190,244,.45) 59%,
      rgba(99,190,244,.02) 76%),
    url("../../assets/dashboard/hero-fox-castle.png") right center / auto 100% no-repeat,
    linear-gradient(120deg,#70c8f7,#2f9fe9) !important;
}
.wd-hero-copy {
  position:relative !important;
  z-index:3 !important;
  width:53% !important;
  max-width:53% !important;
  min-width:0 !important;
  padding:24px 18px 20px 26px !important;
  background:transparent !important;
  box-sizing:border-box !important;
}
.wd-hero-copy .wd-eyebrow {
  margin-bottom:9px !important;
}
.wd-hero-copy h1 {
  max-width:100% !important;
  margin:0 !important;
  font-size:clamp(23px,2.1vw,34px) !important;
  line-height:1.12 !important;
  letter-spacing:-.7px !important;
  overflow-wrap:break-word !important;
  word-break:normal !important;
}
.wd-hero-copy h1 span {
  display:block !important;
  max-width:100% !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
}
.wd-hero-copy h1 em {
  display:inline-block !important;
  font-style:normal !important;
  white-space:nowrap !important;
}
.wd-hero-copy p:not(.wd-eyebrow) {
  max-width:245px !important;
  line-height:1.4 !important;
  margin:10px 0 14px !important;
}
.wd-hero-art {
  display:none !important;
}
@media(max-width:1180px) {
  .wd-hero-card {
    min-height:225px !important;
    background-position:center,right center,center !important;
    background-size:100% 100%,auto 100%,cover !important;
  }
  .wd-hero-copy {width:56% !important;max-width:56% !important;padding-left:20px !important;}
  .wd-hero-copy h1 {font-size:clamp(22px,2.6vw,30px) !important;}
}
@media(max-width:760px) {
  .wd-hero-card {
    min-height:260px !important;
    background:
      linear-gradient(90deg,rgba(99,190,244,.98),rgba(99,190,244,.78) 58%,rgba(99,190,244,.2)),
      url("../../assets/dashboard/hero-fox-castle.png") right bottom / auto 82% no-repeat,
      linear-gradient(120deg,#70c8f7,#2f9fe9) !important;
  }
  .wd-hero-copy {width:70% !important;max-width:70% !important;padding:20px 14px !important;}
}


/* Header refinement to match the compact reference toolbar */
.wd-topbar {
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:16px !important;
  min-height:54px !important;
  width:100% !important;
  min-width:0 !important;
}
.wd-search {
  height:48px !important;
  flex:1 1 560px !important;
  width:auto !important;
  max-width:720px !important;
  min-width:180px !important;
  box-sizing:border-box !important;
  display:flex !important;
  align-items:center !important;
  gap:13px !important;
  padding:0 18px !important;
  border-radius:999px !important;
}
.wd-search .wd-search-symbol {
  position:relative !important;
  display:block !important;
  flex:0 0 19px !important;
  width:19px !important;
  height:19px !important;
  padding:0 !important;
  margin:0 !important;
  font-size:0 !important;
  line-height:0 !important;
  color:transparent !important;
}
.wd-search .wd-search-symbol::before {
  content:"" !important;
  position:absolute !important;
  width:10px !important;
  height:10px !important;
  left:1px !important;
  top:1px !important;
  border:2.5px solid #24518d !important;
  border-radius:50% !important;
}
.wd-search .wd-search-symbol::after {
  content:"" !important;
  position:absolute !important;
  width:7px !important;
  height:2.5px !important;
  left:11px !important;
  top:13px !important;
  border-radius:3px !important;
  background:#24518d !important;
  transform:rotate(48deg) !important;
  transform-origin:left center !important;
}
.wd-search input {
  display:block !important;
  flex:1 1 auto !important;
  width:0 !important;
  min-width:0 !important;
  height:100% !important;
  padding:0 !important;
  margin:0 !important;
  border:0 !important;
  outline:0 !important;
  line-height:normal !important;
  font-family:inherit !important;
  font-size:14px !important;
  font-weight:750 !important;
  text-align:left !important;
  vertical-align:middle !important;
  box-sizing:border-box !important;
}
.wd-search input::placeholder {opacity:1 !important;color:#7189aa !important;}
.wd-top-actions {
  display:flex !important;
  flex:0 0 auto !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:10px !important;
  min-width:0 !important;
}
#wd-language-pill {
  min-width:130px !important;
  height:48px !important;
  justify-content:center !important;
  gap:8px !important;
  padding:0 15px !important;
  font-size:14px !important;
}
#wd-language-flag {
  display:block !important;
  flex:0 0 27px !important;
  width:27px !important;
  height:27px !important;
  max-width:27px !important;
  max-height:27px !important;
  object-fit:cover !important;
  border-radius:50% !important;
  border:1px solid rgba(255,255,255,.95) !important;
  box-shadow:0 1px 4px rgba(22,73,125,.18) !important;
}
.wd-top-actions .wd-stat-pill {
  height:48px !important;
  min-width:94px !important;
  padding:0 17px !important;
  gap:9px !important;
  justify-content:center !important;
  font-size:16px !important;
}
.wd-coin {
  font-size:22px !important;
  line-height:1 !important;
}
.wd-fire {
  font-size:23px !important;
  line-height:1 !important;
}
.wd-top-actions .wd-icon-button,
.wd-top-actions .wd-window-button {display:none !important;}
@media(max-width:950px) {
  .wd-topbar {gap:9px !important;}
  .wd-search {flex-basis:300px !important;}
  .wd-top-actions {gap:6px !important;}
  #wd-language-pill {min-width:112px !important;padding:0 10px !important;}
  .wd-top-actions .wd-stat-pill {min-width:72px !important;padding:0 10px !important;}
}
@media(max-width:680px) {
  .wd-topbar {flex-wrap:wrap !important;}
  .wd-search {flex:1 1 100% !important;max-width:none !important;}
  .wd-top-actions {width:100% !important;justify-content:flex-end !important;}
}


/* APP-WIDE TRANSPARENT SCROLLBARS */
html, body, body *, .screen, .screen *, .wordly-dashboard,
.wd-main, .wd-sidebar, .wd-page-view, .learning-language-content,
.auth-panel, .auth-form, .modal, .modal-content, textarea, pre {
  scrollbar-width: thin !important;
  scrollbar-color: transparent transparent !important;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
body *::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
}
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
body *::-webkit-scrollbar-track {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
body *::-webkit-scrollbar-thumb {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
body *::-webkit-scrollbar-corner {
  background: transparent !important;
}


/* SIDEBAR ICON + PROFILE POLISH */
.wd-nav {gap:8px;padding:2px 0}
.wd-nav-item {min-height:52px;padding:6px 12px;gap:13px;border-radius:17px;font-size:15px;font-weight:900;letter-spacing:.05px}
.wd-nav-icon {width:39px!important;height:39px;flex:0 0 39px!important;border-radius:13px;background:linear-gradient(145deg,#fff 0%,#d8efff 58%,#b7dcff 100%);border:1px solid rgba(255,255,255,.98);box-shadow:0 4px 9px rgba(29,92,155,.17),inset 0 1px 0 #fff;transition:transform .2s,filter .2s}
.wd-nav-icon svg {width:23px;height:23px;fill:none;stroke:#315c9c;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 0 #fff)}
.wd-nav-item:hover .wd-nav-icon {transform:translateY(-2px) scale(1.06);filter:saturate(1.2)}
.wd-nav-item.active {background:linear-gradient(105deg,rgba(255,255,255,.97),rgba(91,185,255,.88));border:1.5px solid #fff;box-shadow:0 6px 14px rgba(20,119,208,.2),inset 0 1px 0 white}
.wd-nav-item.active .wd-nav-icon {background:linear-gradient(145deg,#fff,#9ed6ff);box-shadow:0 4px 10px rgba(0,100,210,.2)}
.wd-nav-item.active .wd-nav-icon svg {stroke:#075dcc;stroke-width:2.25}
.wd-profile {gap:8px;padding:9px 8px;border-radius:22px;background:linear-gradient(135deg,rgba(255,255,255,.8),rgba(154,214,255,.66));box-shadow:0 5px 13px rgba(24,100,164,.12),inset 0 1px 0 white}
.wd-avatar-trigger {position:relative;flex:0 0 54px;width:54px;height:54px;padding:0;border:2px solid white!important;border-radius:50%;overflow:visible;background:linear-gradient(145deg,#fff,#a6dcff)!important;box-shadow:0 3px 9px rgba(24,94,160,.22);cursor:pointer}
.wd-profile .wd-avatar-trigger img {display:block;width:100%;height:100%;object-fit:cover;border-radius:50%;border:0;background:#d7efff}
.wd-avatar-camera {position:absolute;right:-3px;bottom:-2px;width:21px;height:21px;display:grid;place-items:center;border:2px solid white;border-radius:50%;background:linear-gradient(145deg,#ffbd55,#ff8b35);color:white;font-size:12px;font-weight:900;box-shadow:0 2px 5px #854b2b55}
.wd-profile-meta {display:flex;flex:1;flex-direction:column;min-width:0;gap:2px}
.wd-profile-meta strong {font-size:14px;color:#12336f}
.wd-profile-meta small {font-size:11px;color:#54759e;font-weight:800}
.wd-profile .wd-profile-action {width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.95);border-radius:12px;background:linear-gradient(145deg,#fff,#cceaff);box-shadow:0 3px 7px rgba(34,94,151,.16);transition:transform .18s,box-shadow .18s}
.wd-profile .wd-profile-action:hover {transform:translateY(-2px) scale(1.05);box-shadow:0 5px 10px rgba(34,94,151,.22)}
.wd-profile-action svg {width:20px;height:20px;fill:none;stroke:#2765a9;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.wd-profile .logout-action {background:linear-gradient(145deg,#fff8ec,#ffe0bd);border-color:#fff}
.wd-profile .logout-action svg {stroke:#e87924;stroke-width:2.2}
.wd-profile-form .wd-avatar-editor {display:flex;align-items:center;gap:16px;padding:14px;border:1px solid #cce6fb;border-radius:18px;background:linear-gradient(135deg,#fafdff,#e1f3ff)}
.wd-avatar-editor img {width:92px;height:92px;object-fit:cover;border-radius:50%;border:4px solid white;box-shadow:0 4px 12px #27669a33}
.wd-avatar-editor-copy {display:grid;gap:7px}
.wd-avatar-editor-copy button {justify-self:start}
.wd-profile-form input[type="range"] {accent-color:#1685e9}
@media(max-width:1250px){.wd-nav-item{min-height:48px}.wd-nav-icon{width:36px!important;height:36px;flex-basis:36px!important}}

/* Expanded language academy */
.wd-course-overview{display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:15px 18px;margin:12px 0 18px;border:1px solid rgba(255,255,255,.9);border-radius:18px;background:linear-gradient(110deg,rgba(255,255,255,.86),rgba(190,229,255,.68));color:#244c82;box-shadow:0 5px 14px rgba(39,102,157,.09)}
.wd-course-overview b{font-size:16px;margin-right:auto}.wd-course-overview span{font-size:12px;font-weight:800;padding:7px 11px;border-radius:99px;background:#fff;color:#3b6b9e}
.wd-course-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:15px;margin:14px 0 20px}
.wd-course-card{position:relative;min-height:210px;display:flex;flex-direction:column;align-items:flex-start;background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(207,238,255,.82));border:1px solid rgba(255,255,255,.96);box-shadow:0 7px 18px rgba(27,100,160,.12),inset 0 1px 0 white}
.wd-course-card>small{font-size:10px;letter-spacing:1.2px;color:#4181b6;font-weight:900;margin-top:8px}.wd-course-card h3{margin:7px 0;color:#183f7b}.wd-course-card p{color:#58769a;font-size:13px;line-height:1.5}.wd-course-meta{font-size:11px;color:#5481a8;font-weight:800;margin-top:auto;padding:8px 0}.wd-course-card .wd-module-action{margin-top:5px}
.wd-vocab-library{margin:16px 0;padding:20px}.wd-vocab-library h2{margin:0 0 5px;color:#19447d}.wd-vocab-library>p{color:#58769a}.wd-vocab-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;margin-top:14px}.wd-vocab-row{display:grid;grid-template-columns:1fr 1fr 38px;align-items:center;gap:8px;padding:10px 12px;border-radius:13px;background:rgba(226,244,255,.78);border:1px solid #fff}.wd-vocab-row b{color:#16457e}.wd-vocab-row span{font-size:12px;color:#66809c}.wd-vocab-row button,.wd-unit-word button{border:1px solid #fff;border-radius:10px;background:linear-gradient(145deg,#fff,#cceaff);padding:7px;cursor:pointer}
.wd-unit-words{display:grid;gap:10px;margin:16px 0}.wd-unit-word{display:grid;grid-template-columns:minmax(150px,1fr) auto;gap:8px 14px;padding:14px;border:1px solid white;border-radius:15px;background:linear-gradient(120deg,#f9fdff,#e1f3ff)}.wd-unit-word>div{display:grid;gap:4px}.wd-unit-word b{font-size:18px;color:#17477f}.wd-unit-word span{font-size:12px;color:#6884a1}.wd-unit-word p{grid-column:1/-1;margin:0;padding-top:8px;border-top:1px solid #cfe5f5;color:#385e85}.wd-unit-actions{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:18px}
@media(max-width:650px){.wd-vocab-row{grid-template-columns:1fr 1fr 34px}.wd-unit-word{grid-template-columns:1fr auto}}


/* =========================================================
   WORDLY RESPONSIVE / MOBILE LAYOUT
   Desktop remains unchanged; these rules activate on phones.
   ========================================================= */
@media (max-width: 760px) {
  html, body, #app { width:100%; min-width:0; min-height:100%; height:100%; overflow-x:hidden; }
  .screen { width:100%; min-width:0; min-height:100dvh; padding:14px; }
  .screen.active { align-items:flex-start; justify-content:center; }
  .screen.splash { min-height:100dvh; height:100dvh; padding:0; }
  .splash-art { object-fit:cover; object-position:center; }
  .loading-overlay { width:min(90vw,420px); }

  /* Welcome and language selection */
  .welcome-screen, .welcome-screen.active { min-height:100dvh; }
  .learning-language-screen { padding:10px; align-items:center!important; }
  .learning-language-content {
    width:100%; max-height:calc(100dvh - 20px); padding:18px 13px;
    border-radius:22px; overflow-y:auto;
  }
  .learning-language-heading { margin-bottom:12px; }
  .learning-language-heading h1 { font-size:clamp(22px,6vw,30px); }
  .learning-language-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:8px!important; }
  .learning-language-card { min-height:88px!important; padding:9px 5px!important; }
  .learning-language-actions { gap:8px; }
  .learning-back-button,.learning-start-button { min-height:44px; padding:0 13px; font-size:13px; }

  /* Login and registration cards */
  .auth-screen { min-height:100dvh; padding:12px!important; align-items:flex-start!important; overflow-y:auto; }
  .auth-shell { width:100%!important; max-width:520px; height:auto!important; min-height:0!important; margin:auto; border-radius:23px!important; overflow:hidden; }
  .auth-form-side { width:100%!important; min-height:0!important; padding:0!important; }
  .auth-form { position:relative!important; width:100%; min-height:0!important; padding:26px 20px!important; }
  .auth-fields { gap:11px!important; }
  .auth-input-wrap { min-height:48px!important; }
  .auth-submit { min-height:48px!important; }
  .auth-overlay-wrap { display:none!important; }
  .auth-mobile-switch { display:block!important; }
  .auth-login-hero { min-height:130px!important; }
  .auth-login-mascot { max-height:100px!important; }
  .auth-login-title-panel { padding:12px!important; }
  .auth-terms { font-size:11px; }

  /* Dashboard becomes a phone-first single column with bottom navigation */
  .wordly-dashboard, .wordly-dashboard.active {
    display:block!important; position:relative; width:100%; height:100dvh; min-height:0;
    padding:0!important; overflow:hidden;
    background:linear-gradient(155deg,#d9f2ff 0%,#9edcff 55%,#65c2f6 100%);
  }
  .wd-sidebar {
    position:fixed!important; z-index:100!important; left:8px!important; right:8px!important;
    bottom:8px!important; top:auto!important; width:auto!important; height:70px!important;
    min-height:0!important; padding:6px 7px!important; border-radius:20px!important;
    display:block!important; overflow:hidden!important;
    background:linear-gradient(145deg,rgba(255,255,255,.97),rgba(177,224,255,.94))!important;
    box-shadow:0 8px 24px rgba(14,77,135,.24),inset 0 1px 0 #fff!important;
    backdrop-filter:blur(18px);
  }
  .wd-brand,.wd-profile { display:none!important; }
  .wd-nav {
    display:flex!important; flex-direction:row!important; align-items:stretch!important;
    justify-content:flex-start!important; gap:4px!important; width:100%!important; height:100%!important;
    overflow-x:auto!important; overflow-y:hidden!important; flex:initial!important;
    scrollbar-width:none!important; -webkit-overflow-scrolling:touch;
  }
  .wd-nav::-webkit-scrollbar { display:none!important; }
  .wd-nav-item {
    flex:0 0 62px!important; min-width:62px!important; min-height:0!important; height:100%!important;
    display:flex!important; flex-direction:column!important; align-items:center!important;
    justify-content:center!important; gap:3px!important; padding:4px 2px!important;
    border-radius:13px!important; font-size:9px!important; line-height:1.1!important;
    white-space:nowrap!important; text-align:center!important; transform:none!important;
  }
  .wd-nav-icon {
    width:31px!important; height:31px!important; flex:0 0 31px!important;
    border-radius:10px!important;
  }
  .wd-nav-icon svg { width:19px!important; height:19px!important; }
  .wd-nav-item.active { box-shadow:0 3px 9px rgba(20,119,208,.18)!important; }
  .wd-main {
    width:100%!important; height:100dvh!important; min-height:0!important;
    padding:12px 11px 92px!important; border:0!important; border-radius:0!important;
    display:flex!important; flex-direction:column!important; gap:11px!important;
    overflow-x:hidden!important; overflow-y:auto!important;
    background:transparent!important; box-shadow:none!important;
  }
  .wd-topbar { display:flex!important; flex-wrap:wrap!important; gap:8px!important; min-height:0!important; }
  .wd-search { order:1; flex:1 1 100%!important; max-width:none!important; height:43px!important; }
  .wd-top-actions { order:2; width:100%; justify-content:flex-end!important; gap:6px!important; }
  .wd-pill { height:36px!important; padding:0 10px!important; font-size:11px!important; }
  .wd-pill img { width:21px!important; height:21px!important; }
  .wd-dashboard-grid { grid-template-columns:minmax(0,1fr)!important; gap:11px!important; }
  .wd-center-column,.wd-right-column { display:grid!important; grid-template-columns:minmax(0,1fr)!important; gap:10px!important; }
  .wd-hero-card { min-height:190px!important; border-radius:19px!important; }
  .wd-hero-copy { width:65%!important; padding:17px 8px 14px 15px!important; }
  .wd-hero-copy h1 { font-size:clamp(21px,6vw,29px)!important; }
  .wd-hero-copy p { font-size:11px!important; line-height:1.4!important; }
  .wd-hero-art { left:42%!important; }
  .wd-hero-art img { width:clamp(115px,38vw,175px)!important; height:155px!important; right:0!important; }
  .wd-hero-copy .wd-module-action { padding:9px 12px!important; font-size:11px!important; }
  .wd-section-heading h2,.wd-widget-title h2 { font-size:15px!important; }
  .wd-quick-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:8px!important; }
  .wd-quick-card { min-height:82px!important; }
  .wd-quick-card span { font-size:27px!important; }
  .wd-quick-card strong { font-size:10px!important; }
  .wd-learning-path { gap:3px!important; overflow-x:auto; padding-bottom:7px; }
  .wd-path-step { min-width:55px!important; }
  .wd-path-step strong { font-size:9px!important; }
  .wd-widget,.wd-streak-widget,.wd-path-block { border-radius:17px!important; }
  .wd-module-grid { grid-template-columns:minmax(0,1fr)!important; gap:10px!important; }
  .wd-module-card { padding:15px!important; }
  .wd-page-heading h1 { font-size:clamp(23px,7vw,31px)!important; }
  .wd-page-heading p { font-size:13px!important; }
  .wd-progress-summary { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
  .wd-chat-panel { min-height:55vh!important; }
  .wd-chat-form,.wd-inline-form { flex-wrap:wrap!important; }
  .wd-chat-form input,.wd-inline-form input { min-width:0!important; width:100%!important; }
  .wd-avatar-editor { flex-wrap:wrap!important; }
  .wd-avatar-editor img { width:82px!important; height:82px!important; }
  .wd-profile-form label { width:100%; }
  .wd-profile-form input,.wd-profile-form select { max-width:100%; }
}
@media (max-width:380px) {
  .wd-nav-item { flex-basis:56px!important; min-width:56px!important; font-size:8px!important; }
  .wd-main { padding-left:8px!important; padding-right:8px!important; }
  .wd-pill { padding:0 7px!important; }
  .wd-hero-copy { width:70%!important; }
  .wd-hero-art { left:48%!important; }
  .learning-language-card { min-height:78px!important; }
}

@media (max-width:760px) {
  .welcome-actions { bottom: max(22px, env(safe-area-inset-bottom)); width:min(88vw,390px); flex-direction:column; gap:10px; }
  .welcome-action { width:100%; min-width:0!important; min-height:50px!important; padding:11px 18px!important; font-size:15px!important; }
  .welcome-screen { min-height:100dvh!important; height:100dvh!important; background-position:center center!important; }
  .auth-screen { padding-bottom:max(14px,env(safe-area-inset-bottom))!important; }
  .learning-language-card { min-height:88px!important; }
}

/* Welcome headline is live text so it can follow the selected App Language. */
.welcome-copy{
  position:absolute; z-index:2; left:50%; top:28%;
  transform:translateX(-50%); width:min(62%,900px);
  display:flex; flex-direction:column; align-items:center; text-align:center;
  color:#103d99; pointer-events:none;
  text-shadow:0 2px 0 rgba(255,255,255,.9),0 4px 10px rgba(20,91,170,.14);
}
.welcome-copy h1{
  margin:0 0 clamp(8px,1.2vh,16px); font-size:clamp(30px,4.6vw,68px);
  line-height:1.08; font-weight:1000; letter-spacing:-1px;
  color:#123a9a; -webkit-text-stroke:1px rgba(255,255,255,.7);
}
.welcome-copy p{
  margin:0; max-width:850px; font-size:clamp(15px,1.8vw,27px);
  line-height:1.35; font-weight:900; color:#123a9a;
}
@media(max-width:760px){
 .welcome-copy{top:29%;width:78%}
 .welcome-copy h1{font-size:clamp(23px,6.3vw,38px);letter-spacing:-.4px}
 .welcome-copy p{font-size:clamp(12px,3.2vw,17px)}
}
@media(max-width:420px){
 .welcome-copy{top:27%;width:82%}
 .welcome-copy h1{font-size:24px}
 .welcome-copy p{font-size:12px}
}

/* Welcome copy clarity correction: no translucent blur behind localized text. */
.welcome-copy {
  top: 29%; width: min(72%, 1020px);
  background: none !important; backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important; filter: none !important;
  text-shadow: none !important;
}
.welcome-copy h1 {
  font-size: clamp(30px, 3.6vw, 55px);
  line-height: 1.14; margin: 0 0 12px; letter-spacing: -.02em;
  color: #103f9b; text-shadow: 0 2px 0 #fff, 0 3px 4px rgba(14,70,135,.20);
  -webkit-text-stroke: .4px rgba(255,255,255,.65);
}
.welcome-copy p {
  max-width: 930px; font-size: clamp(15px, 1.6vw, 24px);
  line-height: 1.4; font-weight: 800;
  color: #103f9b; text-shadow: 0 1px 0 #fff, 0 2px 3px rgba(14,70,135,.16);
}
@media(max-width:760px) {
 .welcome-copy { top: 29%; width: 84%; }
 .welcome-copy h1 { font-size: clamp(22px, 6vw, 36px); }
 .welcome-copy p { font-size: clamp(12px, 3.1vw, 17px); }
}
@media(max-width:420px) {
 .welcome-copy { top: 28%; width: 87%; }
 .welcome-copy h1 { font-size: clamp(21px, 6vw, 27px); }
 .welcome-copy p { font-size: 12px; }
}


/* WORDLY WORLD — floating island adventure map */
.wd-adventure-page {width:100%;max-width:1200px;margin:0 auto;padding-bottom:24px;animation:wdScreenEnter .45s ease both}
.wd-adventure-heading {display:flex;align-items:center;justify-content:space-between;gap:16px;margin:4px 0 15px}
.wd-adventure-heading h1 {margin:4px 0 5px;font-size:clamp(25px,3vw,36px);color:#123c86;font-weight:900}
.wd-adventure-heading p {margin:0;color:#456c98;font-weight:600}
.wd-adventure-wallet {display:flex;gap:8px;flex-shrink:0}
.wd-adventure-wallet span {display:flex;gap:6px;align-items:center;padding:9px 14px;border:1px solid white;border-radius:999px;background:linear-gradient(145deg,#fff,#d9f0ff);box-shadow:0 5px 14px #155c9620;color:#17447e}
.wd-adventure-map {position:relative;width:100%;aspect-ratio:16/9;min-height:390px;overflow:hidden;border:3px solid rgba(255,255,255,.96);border-radius:25px;background:#2caeea url("../../assets/backgrounds/wordly-world-adventure-map.png") center/cover no-repeat;box-shadow:0 15px 34px rgba(14,82,145,.22),inset 0 1px 0 #fff;isolation:isolate}
.wd-adventure-map:before {content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(180deg,rgba(8,110,190,.05),transparent 45%,rgba(0,95,170,.08));pointer-events:none}
.wd-map-route {position:absolute;inset:0;width:100%;height:100%;z-index:1;overflow:visible;pointer-events:none}
.wd-route-base {fill:none;stroke:rgba(7,92,159,.3);stroke-width:13;stroke-linecap:round}
.wd-route-dashes {fill:none;stroke:#fff;stroke-width:8;stroke-linecap:round;stroke-dasharray:13 18;animation:wdRouteTravel 2.8s linear infinite;filter:drop-shadow(0 2px 2px rgba(0,70,140,.25))}
.wd-route-progress {fill:none;stroke:#ffe27a;stroke-width:5;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:100;filter:drop-shadow(0 1px 2px rgba(0,70,140,.35));transition:stroke-dashoffset .55s ease}
@keyframes wdRouteTravel {to{stroke-dashoffset:-62}}
.wd-map-cloud {position:absolute;z-index:1;color:rgba(255,255,255,.75);font-size:clamp(30px,5vw,58px);filter:drop-shadow(0 5px 6px #176aa533);animation:wdCloudBob 7s ease-in-out infinite;pointer-events:none}
.wd-map-cloud.cloud-a {top:4%;left:35%}.wd-map-cloud.cloud-b {top:13%;right:7%;animation-delay:-3.5s}
@keyframes wdCloudBob {0%,100%{transform:translate(0,0)}50%{transform:translate(10px,-7px)}}
.wd-island-stop {position:absolute;z-index:3;left:var(--x);top:var(--y);transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:0;min-width:clamp(100px,15%,170px);padding:0;border:0;background:transparent;cursor:pointer;color:#173e78;transition:filter .22s ease,transform .22s ease}
.wd-island-stop:hover {transform:translate(-50%,-56%) scale(1.07);filter:brightness(1.06)}
.wd-island-stop:active {transform:translate(-50%,-48%) scale(.96)}
.wd-island-emoji {display:grid;place-items:center;width:clamp(52px,7.4vw,86px);height:clamp(52px,7.4vw,86px);font-size:clamp(36px,5vw,59px);border-radius:50%;background:radial-gradient(circle at 35% 25%,#fff 0 13%,#eaf8ff 42%,#8ccfff 100%);border:3px solid white;box-shadow:0 8px 0 rgba(24,91,145,.2),0 12px 20px rgba(8,63,120,.22),inset 0 2px 5px white;animation:wdIslandFloat 4.2s ease-in-out infinite}
@keyframes wdIslandFloat {0%,100%{translate:0 0}50%{translate:0 -7px}}
.wd-island-stop:nth-of-type(2) .wd-island-emoji{animation-delay:-1.2s}
.wd-island-stop:nth-of-type(3) .wd-island-emoji{animation-delay:-2s}
.wd-island-stop:nth-of-type(4) .wd-island-emoji{animation-delay:-.6s}
.wd-island-label {display:flex;flex-direction:column;align-items:center;gap:2px;margin-top:-3px;padding:7px 12px;min-width:112px;max-width:190px;border:2px solid white;border-radius:14px;background:linear-gradient(145deg,rgba(255,255,255,.97),rgba(215,241,255,.94));box-shadow:0 5px 12px rgba(8,68,125,.2);text-align:center;white-space:nowrap}
.wd-island-label b {font-size:clamp(10px,1.15vw,14px);font-weight:900;color:#163e7c}
.wd-island-label small {font-size:clamp(9px,.95vw,11px);font-weight:800;color:#3d7bb5}
.wd-island-stop.completed .wd-island-label {background:linear-gradient(145deg,#fff,#c8f7dc)}
.wd-island-stop.completed .wd-island-label small {color:#14945c}
.wd-island-stop.current .wd-island-emoji {border-color:#fff1a5;box-shadow:0 0 0 5px rgba(255,221,91,.42),0 9px 0 rgba(24,91,145,.18),0 14px 22px rgba(8,63,120,.24)}
.wd-island-stop.current .wd-island-label {background:linear-gradient(145deg,#fff7c8,#ffe38b);animation:wdCurrentGlow 2.4s ease-in-out infinite}
@keyframes wdCurrentGlow {0%,100%{box-shadow:0 5px 12px #08447d33}50%{box-shadow:0 0 0 5px #ffe28b77,0 8px 18px #08447d33}}
.wd-island-stop.locked {filter:saturate(.65)}
.wd-island-stop.locked .wd-island-emoji {filter:grayscale(.25);opacity:.85}
.wd-island-lock {position:absolute;top:-4px;right:12%;z-index:2;font-size:19px;filter:drop-shadow(0 2px 2px #124c7a55)}
.wd-island-stop.selected .wd-island-label {outline:3px solid #168cff;transform:scale(1.06)}
.island-basics {--x:27%;--y:43%}.island-daily {--x:51%;--y:23%}.island-travel {--x:73%;--y:46%}.island-adventure {--x:82%;--y:14%}.island-culture {--x:76%;--y:75%}
.wd-map-explorer {position:absolute;z-index:2;left:2%;bottom:3%;display:flex;flex-direction:column;align-items:center;filter:drop-shadow(0 5px 4px #064a7866);animation:wdExplorerBob 3.2s ease-in-out infinite;pointer-events:none}
.wd-map-explorer span {font-size:clamp(35px,5.5vw,65px)}
.wd-map-explorer small {padding:3px 8px;border-radius:99px;background:#fff;color:#1a5591;font-size:10px;font-weight:900}
@keyframes wdExplorerBob {0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-8px) rotate(2deg)}}
.wd-map-caption {position:absolute;z-index:2;left:50%;bottom:3%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:2px;width:max-content;max-width:70%;padding:8px 15px;border:1px solid white;border-radius:14px;background:rgba(255,255,255,.88);box-shadow:0 4px 12px #14598b25;text-align:center;color:#17477f}
.wd-map-caption b {font-size:12px}.wd-map-caption span {font-size:10px;color:#52769c}
.wd-island-detail {display:flex;align-items:center;gap:14px;margin-top:13px;padding:14px 17px;border:1px solid white;border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.9),rgba(211,239,255,.82));box-shadow:0 7px 18px rgba(23,90,145,.12);animation:wdScreenEnter .35s ease both}
.wd-detail-icon {display:grid;place-items:center;flex:0 0 48px;height:48px;border-radius:15px;background:linear-gradient(145deg,#fff,#c8eaff);font-size:27px;box-shadow:0 4px 10px #1b659922}
.wd-island-detail>div:nth-child(2){flex:1;min-width:0}
.wd-island-detail b {color:#16417d;font-size:15px}
.wd-island-detail p {margin:3px 0 0;color:#54749a;font-size:12px;line-height:1.4}
.wd-island-detail button:disabled {opacity:.55;cursor:not-allowed;filter:grayscale(.3)}
@media(max-width:760px){
 .wd-adventure-heading{align-items:flex-start;flex-direction:column;gap:9px}
 .wd-adventure-heading h1{font-size:25px}
 .wd-adventure-map{aspect-ratio:4/5;min-height:510px;background-position:center;background-size:100% 100%;border-radius:19px}
 .wd-map-route{inset:0}
 .wd-route-base{stroke-width:17}.wd-route-dashes{stroke-width:10;stroke-dasharray:12 19}
 .wd-island-stop{min-width:92px}
 .wd-island-emoji{width:56px;height:56px;font-size:38px}
 .wd-island-label{min-width:100px;padding:6px 8px;white-space:normal}
 .wd-island-label b{font-size:10px}.wd-island-label small{font-size:9px}
 .island-basics{--x:23%;--y:43%}.island-daily{--x:51%;--y:24%}.island-travel{--x:74%;--y:46%}.island-adventure{--x:82%;--y:15%}.island-culture{--x:76%;--y:75%}
 .wd-map-explorer{left:2%;bottom:1%}.wd-map-explorer span{font-size:36px}
 .wd-map-caption{bottom:2%;left:auto;right:2%;transform:none;max-width:58%;padding:6px 8px}
 .wd-map-caption b{font-size:10px}.wd-map-caption span{font-size:9px}
 .wd-island-detail{align-items:flex-start;flex-wrap:wrap;padding:12px}
 .wd-island-detail button{margin-left:60px}
}
@media(prefers-reduced-motion:reduce){
 .wd-route-dashes,.wd-map-cloud,.wd-island-emoji,.wd-island-stop.current .wd-island-label,.wd-map-explorer{animation:none!important}
}

/* 3D WORLD MAP correction: use one clean rendered game world, not a screenshot with UI painted over it */
.wd-adventure-map {
  background-image:url("../../assets/backgrounds/wordly-world-adventure-map.png") !important;
  background-size:cover !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
  aspect-ratio:16/9;
  min-height:420px;
  border-radius:24px;
}
.wd-adventure-map:before {background:linear-gradient(180deg,rgba(8,95,160,.02),transparent 55%,rgba(0,75,135,.06)) !important}
.wd-map-route,.wd-map-cloud,.wd-map-explorer {display:none !important}
.wd-island-emoji,.wd-island-lock {display:none !important}
.wd-island-stop {
  min-width:0 !important;
  width:auto !important;
  padding:0 !important;
  background:transparent !important;
  filter:none !important;
  animation:none !important;
}
.wd-island-label {
  position:relative;
  margin:0 !important;
  min-width:112px;
  max-width:150px;
  padding:8px 12px !important;
  border:1.5px solid rgba(255,255,255,.98) !important;
  border-radius:13px !important;
  background:linear-gradient(180deg,rgba(255,255,255,.97),rgba(220,243,255,.94)) !important;
  box-shadow:0 5px 12px rgba(0,45,95,.24),inset 0 1px 0 white !important;
  backdrop-filter:blur(3px);
  white-space:normal !important;
}
.wd-island-label:before {
  content:"";
  position:absolute;
  width:10px;height:10px;
  left:calc(50% - 5px);top:-6px;
  background:inherit;
  border-left:1px solid white;border-top:1px solid white;
  transform:rotate(45deg);
}
.wd-island-label b {font-size:12px !important}
.wd-island-label small {font-size:10px !important}
.wd-island-stop.completed .wd-island-label {background:linear-gradient(180deg,#f5fff9,#c9f4db) !important}
.wd-island-stop.current .wd-island-label {background:linear-gradient(180deg,#fff9df,#ffe18a) !important;outline:2px solid rgba(255,215,90,.8);animation:wdCurrentGlow 2s ease-in-out infinite}
.wd-island-stop.locked .wd-island-label:after {content:"LOCKED";display:block;margin-top:3px;color:#6d7d92;font-size:9px;font-weight:900;letter-spacing:.08em}
.wd-island-stop.selected .wd-island-label {transform:translateY(-5px) scale(1.05);outline:3px solid #168cff}
.wd-island-stop:hover .wd-island-label {transform:translateY(-4px) scale(1.04)}
.wd-detail-icon {position:relative}
.wd-detail-compass {display:block;width:22px;height:22px;border:3px solid #2d86d8;border-radius:50%;position:relative}
.wd-detail-compass:before {content:"";position:absolute;left:6px;top:1px;width:7px;height:13px;background:linear-gradient(180deg,#ffb84c 50%,#1676ce 50%);clip-path:polygon(50% 0,100% 100%,50% 76%,0 100%)}
.wd-adventure-map .island-basics {--x:27%;--y:47%}
.wd-adventure-map .island-daily {--x:51%;--y:24%}
.wd-adventure-map .island-travel {--x:72%;--y:44%}
.wd-adventure-map .island-adventure {--x:82%;--y:15%}
.wd-adventure-map .island-culture {--x:76%;--y:77%}
@media(max-width:760px){
 .wd-adventure-map {aspect-ratio:4/5;min-height:520px;background-size:cover !important;background-position:48% center !important}
 .wd-adventure-map .island-basics {--x:25%;--y:43%}
 .wd-adventure-map .island-daily {--x:53%;--y:22%}
 .wd-adventure-map .island-travel {--x:75%;--y:43%}
 .wd-adventure-map .island-adventure {--x:80%;--y:13%}
 .wd-adventure-map .island-culture {--x:75%;--y:76%}
 .wd-island-label {min-width:94px;max-width:120px;padding:6px 8px !important}
 .wd-island-label b {font-size:10px !important}
 .wd-island-label small {font-size:9px !important}
}


/* WORDLY LEARN — 3D Learning Academy visual rebuild */
.wd-learn-experience{width:100%;min-width:0;animation:wdScreenEnter .4s ease both}
.wd-learn-hero{position:relative;isolation:isolate;display:flex;align-items:center;min-height:250px;overflow:hidden;padding:26px 30px;border:2px solid rgba(255,255,255,.96);border-radius:24px;background:linear-gradient(105deg,#73c9ff 0%,#a9e4ff 48%,#56b9f5 100%);box-shadow:0 10px 24px rgba(16,87,153,.18),inset 0 1px 0 white}
.wd-learn-hero:before{content:"";position:absolute;inset:0;z-index:-1;background:url("../../assets/backgrounds/wordly-sky.png") center/cover no-repeat;opacity:.32}
.wd-learn-hero:after{content:"";position:absolute;z-index:-1;left:0;right:0;bottom:0;height:28%;background:linear-gradient(0deg,rgba(14,164,226,.45),transparent)}
.wd-learn-hero-copy{position:relative;z-index:2;width:62%;max-width:700px}
.wd-learn-kicker{display:inline-flex;padding:6px 13px;border-radius:99px;background:linear-gradient(180deg,#147ef0,#0758cb);border:1px solid rgba(255,255,255,.9);box-shadow:0 4px 12px #075cbd55;color:white;font-size:10px;font-weight:1000;letter-spacing:1.3px}
.wd-learn-hero h1{margin:10px 0 5px;color:#fff;font-size:clamp(25px,3vw,39px);font-weight:1000;letter-spacing:-.7px;text-shadow:0 3px 0 #0756b6,0 5px 12px #174b8b55}
.wd-learn-hero-copy>p{margin:0 0 13px;max-width:430px;color:#123f7d;font-size:14px;font-weight:750;line-height:1.45}
.wd-learn-progress{width:min(440px,100%);padding:11px 15px;border:1.5px solid white;border-radius:17px;background:linear-gradient(145deg,#ffffffed,#d9f2ffeb);box-shadow:0 5px 14px #0e579c30}
.wd-learn-progress-top{display:flex;align-items:center;justify-content:space-between;color:#123d7c;font-size:13px;margin-bottom:7px}
.wd-learn-progress-top strong{font-size:15px}
.wd-learn-progress-track,.wd-learn-unit-progress>div{height:11px;overflow:hidden;border-radius:99px;background:linear-gradient(180deg,#a8cbea,#d8edff);box-shadow:inset 0 2px 4px #1a5e9824}
.wd-learn-progress-track span,.wd-learn-unit-progress>div span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#13c94c,#73e34c);box-shadow:0 0 9px #25c95a88;transition:width .8s cubic-bezier(.2,.8,.2,1)}
.wd-learn-hero-art{position:absolute;z-index:1;right:1%;top:0;bottom:0;width:49%;display:flex;align-items:center;justify-content:center;pointer-events:none}
.wd-learn-hero-art img{width:100%;height:100%;object-fit:contain;object-position:center;filter:drop-shadow(0 9px 12px #13558b44);animation:wdLearnFoxFloat 4s ease-in-out infinite}
@keyframes wdLearnFoxFloat{0%,100%{transform:translateY(2px)}50%{transform:translateY(-7px)}}
.wd-learn-academy{position:absolute;z-index:2;right:4%;top:12px;width:112px;display:flex;flex-direction:column;align-items:center;gap:0;filter:drop-shadow(0 5px 8px #15538b55);pointer-events:none}
.wd-learn-academy img{width:100%;height:54px;object-fit:contain}
.wd-learn-academy b{margin-top:-9px;padding:4px 10px;border:1px solid white;border-radius:9px;background:linear-gradient(180deg,#1b8ff1,#0757bd);color:white;text-align:center;font-size:10px;line-height:1.1}
.wd-learn-continue{position:absolute;z-index:3;right:3%;bottom:19px;display:flex;align-items:center;gap:10px;padding:13px 19px;border:2px solid white;border-radius:999px;background:linear-gradient(180deg,#ffca3d,#ff8b00);box-shadow:0 5px 0 #c96b00,0 9px 18px #97510055,inset 0 2px 0 #fff9;color:white;font-size:14px;font-weight:1000;text-shadow:0 1px 2px #9d4d00;cursor:pointer;transition:transform .2s,filter .2s}
.wd-learn-continue:hover{transform:translateY(-3px);filter:brightness(1.07)}
.wd-learn-continue:active{transform:translateY(2px);box-shadow:0 2px 0 #c96b00}
.wd-learn-continue span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:white;color:#f28b00;text-shadow:none}
.wd-learn-continue i{font-size:23px;font-style:normal;line-height:15px}
.wd-learn-content{margin-top:0;padding:13px 16px 18px;border:1px solid white;border-top:0;border-radius:0 0 22px 22px;background:linear-gradient(145deg,rgba(233,248,255,.91),rgba(170,222,255,.86));box-shadow:0 8px 20px #155d9422}
.wd-learn-filters{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:0 0 12px;border-bottom:1px solid #9ccff055}
.wd-learn-filters button{display:flex;align-items:center;justify-content:center;gap:8px;min-width:130px;padding:10px 15px;border:1px solid white;border-radius:999px;background:linear-gradient(180deg,#fff,#d8efff);box-shadow:0 4px 8px #155d9422;color:#16427c;font-size:13px;font-weight:900;cursor:pointer;transition:transform .2s,box-shadow .2s,background .2s}
.wd-learn-filters button span{font-size:18px}
.wd-learn-filters button:hover{transform:translateY(-2px);box-shadow:0 7px 13px #155d9433}
.wd-learn-filters button.active{background:linear-gradient(180deg,#20a9ff,#0871e8);color:white;box-shadow:0 4px 0 #0759bf,0 7px 13px #0759bf44}
.wd-learn-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 2px 9px}
.wd-learn-section-head>div{display:flex;align-items:center;gap:9px;min-width:0}
.wd-learn-book{font-size:26px;filter:drop-shadow(0 2px 2px #155d9433)}
.wd-learn-section-head h2{margin:0;color:#143e7d;font-size:22px;font-weight:1000}
.wd-learn-section-head small{color:#5078a5;font-size:12px;font-weight:700}
.wd-learn-level{flex-shrink:0;padding:8px 13px;border:1px solid white;border-radius:99px;background:linear-gradient(180deg,#fff,#d9efff);box-shadow:0 3px 8px #155d9420;color:#315f91;font-size:11px;font-weight:900}
.wd-learn-unit-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;margin-top:4px}
.wd-learn-unit-card{position:relative;display:flex;min-width:0;flex-direction:column;align-items:stretch;padding:10px 11px 12px;overflow:hidden;border:1.5px solid rgba(255,255,255,.98);border-radius:22px;background:linear-gradient(150deg,#fff 0%,#e5f6ff 56%,#c6e9ff 100%);box-shadow:0 5px 0 rgba(49,128,192,.28),0 9px 16px rgba(18,82,142,.15),inset 0 1px 0 white;transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease;animation:wdLearnCardIn .45s both}
@keyframes wdLearnCardIn{from{opacity:0;transform:translateY(13px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
.wd-learn-unit-card:nth-child(2){animation-delay:.04s}.wd-learn-unit-card:nth-child(3){animation-delay:.08s}.wd-learn-unit-card:nth-child(4){animation-delay:.12s}.wd-learn-unit-card:nth-child(5){animation-delay:.16s}
.wd-learn-unit-card:hover{transform:translateY(-6px) scale(1.015);box-shadow:0 7px 0 rgba(49,128,192,.25),0 14px 22px rgba(18,82,142,.2)}
.wd-learn-unit-card.is-complete{border-color:#8bf0a2;background:linear-gradient(150deg,#f5fff6,#d5ffe0 70%,#b8f3cb)}
.wd-learn-unit-card.is-current{border:2px solid #6be4ff;box-shadow:0 0 0 3px #5ddcff55,0 6px 0 #2d9de8,0 11px 19px #176bb344}
.wd-learn-unit-art{position:relative;display:grid;place-items:center;height:116px;margin:-2px -2px 5px;overflow:hidden;border-radius:16px;background:radial-gradient(ellipse at 50% 75%,#b8e8ff 0%,#e6f7ff 55%,#f7fcff 100%)}
.wd-learn-unit-art img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply;filter:drop-shadow(0 5px 5px #165e9822);transition:transform .35s ease}
.wd-learn-unit-card:hover .wd-learn-unit-art img{transform:translateY(-4px) scale(1.07)}
.wd-learn-status{position:absolute;top:5px;right:5px;display:grid;place-items:center;width:34px;height:34px;border:2px solid white;border-radius:50%;color:white;font-size:17px;font-weight:1000;box-shadow:0 3px 8px #124e8b44}
.status-done{background:linear-gradient(145deg,#59e75d,#08a82e)}
.status-current{background:linear-gradient(145deg,#3bcaff,#086fe7)}
.wd-learn-unit-number{align-self:flex-start;padding:4px 10px;border-radius:99px;background:linear-gradient(180deg,#36b8ff,#0874e8);box-shadow:0 2px 5px #0a67ba44;color:white;font-size:10px;font-weight:1000;letter-spacing:.4px}
.wd-learn-unit-card h3{margin:8px 0 3px;color:#123d7d;font-size:15px;font-weight:1000;line-height:1.2}
.wd-learn-unit-card p{min-height:34px;margin:0;color:#416b98;font-size:11px;font-weight:650;line-height:1.4}
.wd-learn-unit-progress{display:flex;align-items:center;gap:7px;margin-top:auto;padding-top:9px}
.wd-learn-unit-progress>div{flex:1;height:10px}
.wd-learn-unit-progress>div span{background:linear-gradient(90deg,#168bf1,#36c1ff);box-shadow:0 0 8px #219dff66}
.wd-learn-unit-card.is-complete .wd-learn-unit-progress>div span{background:linear-gradient(90deg,#0bbd3f,#6ee65d)}
.wd-learn-unit-progress b{color:#16437e;font-size:11px}
.wd-learn-unit-open{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;margin-top:10px;padding:8px 11px;border:1px solid white;border-radius:999px;background:linear-gradient(180deg,#28a9ff,#0873e8);box-shadow:0 3px 0 #0758bc,0 5px 9px #0758bc33;color:white;font-size:11px;font-weight:1000;cursor:pointer;transition:transform .18s}
.wd-learn-unit-open:hover{transform:translateY(-2px);filter:brightness(1.06)}
.wd-learn-unit-open:active{transform:translateY(2px);box-shadow:0 1px 0 #0758bc}
.wd-learn-unit-open span{font-size:18px;line-height:10px}
.wd-learn-unit-card[hidden]{display:none!important}
@media(max-width:1200px){.wd-learn-unit-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.wd-learn-hero{min-height:235px}.wd-learn-hero-art{width:44%}}
@media(max-width:900px){.wd-learn-unit-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.wd-learn-hero-copy{width:68%}.wd-learn-academy{display:none}}
@media(max-width:620px){
 .wd-learn-hero{min-height:360px;align-items:flex-start;padding:19px 16px;border-radius:18px}
 .wd-learn-hero-copy{width:100%}
 .wd-learn-hero h1{font-size:27px;max-width:78%}
 .wd-learn-hero-copy>p{max-width:65%;font-size:12px}
 .wd-learn-progress{width:68%;padding:9px 11px}
 .wd-learn-progress-top{font-size:11px}
 .wd-learn-hero-art{right:-8%;top:95px;bottom:4px;width:75%;height:235px;align-items:flex-end}
 .wd-learn-continue{right:12px;bottom:14px;padding:10px 13px;font-size:11px}
 .wd-learn-content{padding:10px 9px 14px}
 .wd-learn-filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:11px}
 .wd-learn-filters button{min-width:max-content;padding:9px 13px;font-size:11px}
 .wd-learn-section-head h2{font-size:18px}
 .wd-learn-section-head small{display:none}
 .wd-learn-level{font-size:10px;padding:7px 9px}
 .wd-learn-unit-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .wd-learn-unit-card{padding:8px;border-radius:17px}
 .wd-learn-unit-art{height:102px}
 .wd-learn-unit-card h3{font-size:13px}
 .wd-learn-unit-card p{font-size:10px;min-height:30px}
 .wd-learn-unit-open{font-size:10px;padding:8px}
}
@media(prefers-reduced-motion:reduce){.wd-learn-hero-art img,.wd-learn-unit-card{animation:none!important;transition:none!important}}


/* WORDLY LEARN — enforce the reference composition at desktop sizes */
@media (min-width: 761px) {
  .wordly-dashboard.active {
    display:grid !important;
    grid-template-columns:250px minmax(0,1fr) !important;
    grid-template-rows:minmax(0,1fr) !important;
    gap:12px !important;
    height:100vh !important;
    min-height:760px !important;
    padding:12px !important;
    overflow:hidden !important;
  }
  .wordly-dashboard .wd-sidebar {
    position:relative !important; inset:auto !important;
    display:flex !important; flex-direction:column !important;
    width:auto !important; height:auto !important; min-height:0 !important;
    padding:16px 12px 12px !important; overflow:hidden !important;
    border-radius:24px !important;
    background:linear-gradient(155deg,rgba(232,248,255,.94),rgba(151,214,250,.86)) !important;
  }
  .wordly-dashboard .wd-nav {
    display:grid !important; grid-template-columns:1fr !important;
    align-content:start !important; gap:7px !important; overflow-y:auto !important;
  }
  .wordly-dashboard .wd-nav-item {
    display:flex !important; justify-content:flex-start !important;
    min-height:48px !important; font-size:15px !important;
  }
  .wordly-dashboard .wd-profile {display:flex !important; margin-top:auto !important}
  .wordly-dashboard .wd-main {
    display:flex !important; flex-direction:column !important;
    width:auto !important; height:auto !important; min-height:0 !important;
    min-width:0 !important; padding:14px 16px 16px !important;
    overflow-x:hidden !important; overflow-y:auto !important;
    border-radius:26px !important;
    background:linear-gradient(145deg,rgba(220,243,255,.83),rgba(128,204,247,.72)) !important;
  }
  .wordly-dashboard .wd-topbar {
    flex:0 0 auto !important; display:flex !important;
    flex-direction:row !important; flex-wrap:nowrap !important;
    align-items:center !important; gap:14px !important;
    min-height:54px !important;
  }
  .wordly-dashboard .wd-dashboard-grid,
  .wordly-dashboard .wd-center-column,
  .wordly-dashboard .wd-page-view {
    min-width:0 !important; width:100% !important;
  }
}
.wd-learn-experience {width:100%!important;max-width:none!important;min-width:0!important}
.wd-learn-hero {
  min-height:260px!important; height:260px!important;
  display:flex!important; align-items:center!important;
  position:relative!important; overflow:hidden!important;
  border:2px solid #fff!important; border-radius:24px!important;
  background:
    linear-gradient(90deg,rgba(91,185,245,.96) 0%,rgba(104,194,246,.86) 42%,rgba(104,194,246,.16) 72%),
    url("../../assets/backgrounds/wordly-sky.png") center/cover no-repeat!important;
}
.wd-learn-hero-copy {position:relative!important;z-index:4!important;width:60%!important;max-width:60%!important;padding:24px 28px!important;box-sizing:border-box!important}
.wd-learn-hero-copy h1 {font-size:clamp(30px,3vw,48px)!important;line-height:1.08!important;text-shadow:0 2px 0 #fff!important}
.wd-learn-hero-art {
  position:absolute!important;z-index:2!important;right:0!important;top:0!important;
  bottom:0!important;width:48%!important;height:100%!important;
  display:flex!important;align-items:flex-end!important;justify-content:center!important;
  overflow:hidden!important;pointer-events:none!important;
}
.wd-learn-hero-art img {
  width:100%!important;height:100%!important;max-width:none!important;
  object-fit:contain!important;object-position:center bottom!important;
}
.wd-learn-academy {z-index:5!important}
.wd-learn-continue {z-index:6!important}
.wd-learn-content {
  margin-top:0!important; padding:14px 16px 18px!important;
  border:1px solid rgba(255,255,255,.96)!important;
  border-radius:0 0 22px 22px!important;
  background:linear-gradient(145deg,rgba(232,248,255,.94),rgba(168,224,255,.9))!important;
}
.wd-learn-filters {display:flex!important;flex-wrap:wrap!important;gap:10px!important}
.wd-learn-section-head {display:flex!important;align-items:center!important;justify-content:space-between!important}
.wd-learn-unit-grid {
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:14px!important; align-items:stretch!important;
}
.wd-learn-unit-card {
  min-width:0!important; min-height:310px!important;
  display:flex!important; flex-direction:column!important;
  padding:12px!important; border-radius:22px!important;
  box-sizing:border-box!important; overflow:hidden!important;
  background:linear-gradient(155deg,#fff 0%,#e3f5ff 72%,#c8eaff 100%)!important;
  border:2px solid rgba(255,255,255,.98)!important;
  box-shadow:0 7px 0 rgba(44,139,207,.2),0 12px 22px rgba(21,91,151,.14)!important;
}
.wd-learn-unit-art {
  width:100%!important;height:142px!important;flex:0 0 142px!important;
  margin:0 0 9px!important;border-radius:17px!important;
  overflow:hidden!important;display:grid!important;place-items:center!important;
  background:radial-gradient(ellipse at center,#c4eaff 0%,#eaf8ff 68%,#fff 100%)!important;
}
.wd-learn-unit-art img {
  display:block!important;width:100%!important;height:100%!important;
  max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center center!important;
  padding:4px!important;box-sizing:border-box!important;
}
.wd-learn-unit-number {align-self:flex-start!important}
.wd-learn-unit-card h3 {font-size:17px!important;line-height:1.18!important;min-height:40px!important;margin:5px 0!important}
.wd-learn-unit-card p {font-size:12px!important;line-height:1.35!important;min-height:36px!important;margin:0 0 8px!important}
.wd-learn-unit-progress {margin-top:auto!important}
.wd-learn-unit-open {width:100%!important;min-height:40px!important;margin-top:10px!important}
.wd-learn-unit-card.is-complete {background:linear-gradient(155deg,#f0fff5,#d3ffe2)!important;border-color:#76e6a0!important}
.wd-learn-unit-card.is-current {border:3px solid #55d9ff!important;box-shadow:0 0 0 4px rgba(56,197,255,.18),0 8px 0 rgba(44,139,207,.2),0 14px 25px rgba(21,91,151,.18)!important}
@media (min-width:761px) and (max-width:1250px) {
 .wd-learn-unit-grid {grid-template-columns:repeat(4,minmax(0,1fr))!important}
 .wd-learn-unit-art {height:118px!important;flex-basis:118px!important}
}
@media (max-width:760px) {
 .wordly-dashboard.active {display:grid!important;grid-template-columns:58px minmax(0,1fr)!important;gap:7px!important;padding:7px!important}
 .wordly-dashboard .wd-sidebar {position:relative!important;inset:auto!important;width:auto!important;height:auto!important;display:flex!important;padding:8px 4px!important}
 .wordly-dashboard .wd-brand div,.wordly-dashboard .wd-profile {display:none!important}
 .wordly-dashboard .wd-nav {display:grid!important;grid-template-columns:1fr!important}
 .wordly-dashboard .wd-nav-item {justify-content:center!important;font-size:0!important;padding:0!important}
 .wordly-dashboard .wd-main {height:100dvh!important;padding:8px!important;overflow:auto!important}
 .wordly-dashboard .wd-topbar {flex-wrap:wrap!important}
 .wd-learn-hero {height:auto!important;min-height:280px!important}
 .wd-learn-hero-copy {width:75%!important;max-width:75%!important;padding:18px!important}
 .wd-learn-hero-art {width:55%!important;opacity:.85}
 .wd-learn-unit-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .wd-learn-unit-card {min-height:285px!important}
 .wd-learn-unit-art {height:105px!important;flex-basis:105px!important}
}


/* Final Learn polish: no duplicated mini-castle badge, no decorative fake progress */
.wd-learn-academy {display:none!important}
.wd-learn-hero {
  background:
    linear-gradient(90deg,rgba(91,185,245,.96) 0%,rgba(104,194,246,.86) 42%,rgba(104,194,246,.12) 72%),
    url("../../assets/backgrounds/wordly-sky.png") center/cover no-repeat!important;
}
.wd-learn-hero-art img {object-fit:contain!important;filter:none!important}
.wd-learn-unit-card {border:2px solid rgba(255,255,255,.98)!important;box-shadow:0 5px 0 rgba(44,139,207,.16),0 9px 18px rgba(21,91,151,.10)!important}
.wd-learn-unit-card.is-current {
 border:3px solid #55d9ff!important;
 box-shadow:0 0 0 2px rgba(56,197,255,.12),0 5px 0 rgba(44,139,207,.16),0 9px 18px rgba(21,91,151,.10)!important;
}
.wd-learn-unit-card.is-complete {
 border:2px solid #76e6a0!important;
 box-shadow:0 5px 0 rgba(38,170,91,.14),0 9px 18px rgba(21,91,151,.08)!important;
}
.wd-learn-unit-art img {object-fit:contain!important;mix-blend-mode:normal!important;filter:none!important}

/* WORDLY Learn hero: single illustrated background with centered live HTML copy */
.wd-learn-hero {
  min-height:260px!important; height:260px!important; padding:0!important;
  display:block!important; position:relative!important; isolation:isolate!important;
  overflow:hidden!important; border:2px solid rgba(255,255,255,.98)!important;
  border-radius:24px!important;
  background:#54b9f5 url("../../assets/backgrounds/wordly-learn-hero.png") center 48%/cover no-repeat!important;
  box-shadow:0 8px 20px rgba(16,87,153,.16),inset 0 1px 0 white!important;
}
.wd-learn-hero:before,.wd-learn-hero:after{content:none!important;display:none!important}
.wd-learn-hero-copy {
  position:absolute!important; z-index:4!important; left:31%!important; top:50%!important;
  transform:translateY(-50%)!important; width:39%!important; max-width:560px!important;
  padding:8px 12px!important; box-sizing:border-box!important; text-align:center!important;
  display:flex!important; flex-direction:column!important; align-items:center!important;
}
.wd-learn-kicker{margin:0 auto 5px!important;font-size:10px!important;letter-spacing:1px!important}
.wd-learn-hero h1{margin:3px 0 4px!important;color:#fff!important;font-size:clamp(24px,2.55vw,36px)!important;line-height:1.08!important;text-align:center!important;text-shadow:0 2px 0 #0756b6,0 4px 9px rgba(8,55,120,.3)!important}
.wd-learn-hero-copy>p{max-width:100%!important;margin:0 auto 9px!important;color:#063c7d!important;font-size:13px!important;line-height:1.25!important;text-align:center!important}
.wd-learn-progress{width:min(100%,360px)!important;padding:8px 12px!important;margin:0 auto!important;border-radius:15px!important}
.wd-learn-progress-top{font-size:11px!important;margin-bottom:5px!important}
.wd-learn-progress-top strong{font-size:13px!important}
.wd-learn-progress-track{height:9px!important}
.wd-learn-continue{right:3%!important;bottom:13px!important;padding:10px 15px!important;font-size:12px!important;gap:7px!important}
.wd-learn-continue span{width:21px!important;height:21px!important}
@media(max-width:900px){
 .wd-learn-hero{min-height:235px!important;height:235px!important;background-position:center center!important}
 .wd-learn-hero-copy{left:28%!important;width:45%!important}
 .wd-learn-hero h1{font-size:clamp(20px,3.2vw,29px)!important}
 .wd-learn-hero-copy>p{font-size:11px!important}
 .wd-learn-continue{right:2%!important;bottom:10px!important;padding:8px 10px!important;font-size:10px!important}
}
@media(max-width:600px){
 .wd-learn-hero{min-height:280px!important;height:280px!important;background-position:47% center!important}
 .wd-learn-hero-copy{left:25%!important;top:43%!important;width:52%!important;padding:4px!important}
 .wd-learn-hero h1{font-size:21px!important}
 .wd-learn-kicker{font-size:8px!important;padding:5px 8px!important}
 .wd-learn-hero-copy>p{font-size:10px!important}
 .wd-learn-progress{padding:7px 9px!important}
 .wd-learn-continue{right:3%!important;bottom:8px!important}
}


/* Category icons and Learning Units badge matched to the supplied toolbar */
.wd-learn-filters button{gap:9px!important}
.wd-learn-filters button .learn-cat-icon{width:19px!important;height:19px!important;flex:0 0 19px!important;display:block!important;fill:none!important;stroke:currentColor!important;stroke-width:2.1!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.wd-learn-filters button[data-learn-filter="all"] .learn-cat-icon rect{fill:currentColor!important;stroke:currentColor!important}
.wd-learn-filters button[data-learn-filter="all"] .learn-cat-icon{stroke-width:1.4!important}
.wd-learn-section-head>div{display:flex!important;align-items:center!important;gap:9px!important}
.wd-learn-section-head .wd-learn-book{width:28px!important;height:28px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 28px!important}
.wd-learn-section-head .wd-learn-book svg{width:28px!important;height:28px!important;display:block!important;filter:drop-shadow(0 2px 2px #164b7c33)}
.wd-learn-section-head h2{margin:0!important;line-height:1.15!important}
.wd-learn-section-head small{align-self:center!important}


/* Learn unit artwork: centered, fully visible, no decorative play badge */
.wd-learn-unit-art {
  height: 164px !important;
  min-height: 164px !important;
  flex: 0 0 164px !important;
  width: 100% !important;
  margin: 0 0 10px !important;
  padding: 10px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border-radius: 16px !important;
}
.wd-learn-unit-art img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 0 !important;
  margin: auto !important;
  box-sizing: border-box !important;
  transform: none !important;
}
.wd-learn-unit-card:hover .wd-learn-unit-art img { transform: none !important; }
.wd-learn-status.status-current { display: none !important; }
.wd-learn-unit-card:not(.is-complete) .wd-learn-status { display: none !important; }
.wd-learn-unit-card.is-complete .wd-learn-status.status-done { display: grid !important; }
@media (max-width: 760px) {
  .wd-learn-unit-art { height: 150px !important; min-height:150px !important; flex-basis:150px !important; padding:9px !important; }
}


/* WORDLY Learn: identical square illustration frame for every unit */
.wd-learn-unit-art {
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:1 / 1!important;
  flex:0 0 auto!important;
  padding:9px!important;
  margin:0 0 10px!important;
  display:grid!important;
  place-items:center!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  border-radius:17px!important;
  background:linear-gradient(145deg,#dff4ff 0%,#c6eaff 52%,#eaf8ff 100%)!important;
}
.wd-learn-unit-art img {
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  padding:0!important;
  margin:0 auto!important;
  transform:none!important;
}
.wd-learn-unit-card:hover .wd-learn-unit-art img {transform:none!important}
@media (max-width:760px) {
 .wd-learn-unit-art {height:auto!important;min-height:0!important;flex-basis:auto!important;aspect-ratio:1/1!important;padding:8px!important}
}

/* WORDLY multilingual voice practice */
.wd-voice-practice{margin:26px 0 8px;padding:22px;border:1px solid rgba(255,255,255,.92);border-radius:22px;background:linear-gradient(145deg,rgba(255,255,255,.78),rgba(220,244,255,.72));box-shadow:0 10px 24px rgba(24,105,170,.10)}
.wd-voice-practice-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.wd-voice-practice-head h2{margin:5px 0 6px;color:#174783;font-size:22px}
.wd-voice-practice-head p{margin:0;color:#52769d;line-height:1.55}
.wd-voice-locale{flex:0 0 auto;padding:9px 14px;border:1px solid #fff;border-radius:999px;background:#e7f5ff;color:#15549a;font-weight:800;font-size:12px}
.wd-voice-phrase-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.wd-voice-phrase{min-width:0;padding:15px;border:1px solid rgba(255,255,255,.95);border-radius:16px;background:rgba(255,255,255,.82);box-shadow:0 5px 14px rgba(36,112,175,.08)}
.wd-voice-phrase small{color:#3484c4;font-weight:900;letter-spacing:.08em}
.wd-voice-phrase p{min-height:48px;margin:7px 0 12px;color:#174783;font-weight:750;line-height:1.45}
.wd-voice-phrase-actions{display:flex;flex-wrap:wrap;gap:7px}
.wd-voice-phrase-actions button{padding:9px 11px;border:1px solid #b9e2ff;border-radius:999px;background:linear-gradient(180deg,#fff,#e4f4ff);color:#15549a;font-weight:800;cursor:pointer}
.wd-voice-phrase-actions button:hover{background:#d5efff;transform:translateY(-1px)}
.wd-voice-feedback{margin-top:14px;padding:12px 15px;border-radius:13px;background:#e8f5ff;color:#285b8e;font-weight:650;line-height:1.5}
@media(max-width:900px){.wd-voice-phrase-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.wd-voice-practice{padding:15px}.wd-voice-practice-head{display:block}.wd-voice-locale{display:inline-block;margin-top:10px}.wd-voice-phrase-list{grid-template-columns:1fr}}


/* WORDLY PLAY — refreshed illustrated game hub */
.wd-play-page{padding:0 2px 28px;min-height:100%;color:#123b82}
.wd-play-hero{position:relative;isolation:isolate;min-height:220px;margin:0 0 16px;border:2px solid #fff;border-radius:28px;overflow:hidden;background:#66cafa url("../../assets/play/play-hero-background.png") center center/cover no-repeat;box-shadow:0 8px 20px #1768a52b,inset 0 1px 0 #fff}
.wd-play-hero:after{content:none}
.wd-play-hero-copy{position:relative;z-index:1;padding:22px 34px;max-width:53%;min-height:220px;display:flex;flex-direction:column;justify-content:center}
.wd-play-title{display:flex;align-items:center;gap:14px}
.wd-play-title h1{font-size:48px;line-height:1;margin:0;color:#0b347f;font-weight:1000;font-style:italic;text-shadow:0 2px 0 #fff8}
.wd-play-controller{font-size:48px;filter:drop-shadow(0 4px 2px #235b9840)}
.wd-play-hero-copy p{font-size:18px;line-height:1.45;font-weight:650;color:#082f75;margin:12px 0 0;max-width:560px;text-shadow:0 1px #fff8}
.wd-play-swoosh{display:block;width:138px;height:13px;margin:10px 0 0 46px;border-bottom:6px solid #ffbf21;border-radius:50%;transform:rotate(-5deg)}
.wd-play-section-title{display:flex;align-items:center;gap:12px;margin:5px 4px 12px;padding:0 8px}
.wd-play-section-title>span{font-size:31px;filter:drop-shadow(0 2px 2px #276ab544)}
.wd-play-section-title h2{font-size:25px;line-height:1.2;margin:0;color:#103c88;font-weight:1000;text-shadow:0 1px #fff}
.wd-play-games{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.wd-play-card{min-width:0;min-height:205px;display:grid;grid-template-columns:minmax(150px,34%) minmax(0,1fr);align-items:center;gap:10px;padding:12px 15px;border:2px solid #fff;border-radius:29px;box-shadow:0 7px 16px #1c61952b,inset 0 1px 0 #fff;overflow:hidden;position:relative}
.wd-play-card:before{content:"";position:absolute;width:190px;height:150px;border-radius:50%;right:-28px;top:20px;background:#ffffff27;pointer-events:none}
.wd-play-card.puzzle{background:linear-gradient(130deg,#e9faff,#b7e6ff)}
.wd-play-card.matching{background:linear-gradient(130deg,#f5edff,#d8c8ff)}
.wd-play-card.story{background:linear-gradient(130deg,#fff0fa,#f8c8ed)}
.wd-play-card.daily{background:linear-gradient(130deg,#fff8e8,#ffe0a7)}
.wd-play-art{height:174px;min-width:0;display:flex;align-items:center;justify-content:center;position:relative;z-index:1;padding:12px;overflow:visible}
.wd-play-art img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center center;filter:drop-shadow(0 9px 7px #174b7838);transform:translateZ(0)}
.wd-play-card-content{position:relative;z-index:1;min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}
.wd-play-card-content h3{font-size:25px;line-height:1.12;color:#092f7c;margin:0 0 8px;font-weight:1000}
.wd-play-card-content p{font-size:15px;line-height:1.45;color:#123b7d;margin:0 0 16px;font-weight:600}
.wd-play-card-bottom{display:flex;align-items:center;gap:7px;flex-wrap:wrap;width:100%}
.wd-play-tag{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:8px 10px;border:1px solid #fff;border-radius:999px;background:#ffffffa8;color:#103779;font-size:12px;font-weight:850;box-shadow:0 2px 5px #205d9420}
.wd-play-button{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;gap:12px;min-width:125px;padding:11px 15px;border:2px solid #fff;border-radius:999px;color:#fff;font-size:15px;font-weight:950;white-space:nowrap;cursor:pointer;box-shadow:0 4px 9px #164f9b45,inset 0 1px 0 #ffffff80;transition:transform .15s,filter .15s}
.wd-play-button:hover{transform:translateY(-2px);filter:brightness(1.06)}
.wd-play-button b{font-size:24px;line-height:12px}
.puzzle .wd-play-button{background:linear-gradient(110deg,#0786f5,#18a9ef)}
.matching .wd-play-button{background:linear-gradient(110deg,#7139e9,#9853f5)}
.story .wd-play-button{background:linear-gradient(110deg,#ed238d,#f34bb2)}
.daily .wd-play-button{background:linear-gradient(110deg,#ff8b00,#ffad16)}
@media(max-width:1150px){
 .wd-play-card{grid-template-columns:130px minmax(0,1fr);padding:10px;gap:8px}
 .wd-play-card-content h3{font-size:21px}
 .wd-play-card-content p{font-size:13px}
 .wd-play-tag{font-size:11px;padding:7px 8px}
 .wd-play-button{min-width:105px;padding:9px 12px;font-size:13px}
}
@media(max-width:850px){
 .wd-play-hero-copy{max-width:68%;padding:18px}
 .wd-play-title h1{font-size:38px}
 .wd-play-hero-copy p{font-size:15px}
 .wd-play-games{grid-template-columns:1fr}
}
@media(max-width:560px){
 .wd-play-hero{min-height:190px;background-position:61% center}
 .wd-play-hero-copy{max-width:72%;min-height:190px;padding:14px}
 .wd-play-controller{font-size:34px}
 .wd-play-title h1{font-size:34px}
 .wd-play-hero-copy p{font-size:12px}
 .wd-play-card{grid-template-columns:112px minmax(0,1fr);min-height:175px}
 .wd-play-art{height:145px}
 .wd-play-card-content h3{font-size:18px}
 .wd-play-card-content p{font-size:12px;margin-bottom:10px}
 .wd-play-tag{font-size:10px;padding:6px}
 .wd-play-button{min-width:95px;font-size:12px}
}

/* PLAY: icon buttons follow the supplied reference chips and remain keyboard/click accessible */
.wd-play-title .wd-play-controller{display:block;width:58px;height:48px;object-fit:contain;filter:drop-shadow(0 4px 3px #235b9850)}
.wd-play-section-title>img{display:block;width:38px;height:30px;object-fit:contain;filter:drop-shadow(0 2px 2px #276ab544)}
.wd-play-tag{font-family:inherit;gap:6px;cursor:pointer;transition:transform .16s ease,background .16s ease,box-shadow .16s ease;line-height:1.1}
.wd-play-tag svg{width:17px;height:17px;flex:0 0 17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.wd-play-tag:hover{transform:translateY(-2px);background:#fff;box-shadow:0 4px 9px #205d9430}
.wd-play-tag:focus-visible,.wd-play-button:focus-visible{outline:3px solid #ffbf35;outline-offset:2px}
.wd-play-tag:active{transform:translateY(0) scale(.98)}
.wd-play-card-bottom{row-gap:8px}
.wd-play-card-bottom .wd-play-button{flex:0 0 auto}
@media(max-width:1150px){.wd-play-tag svg{width:15px;height:15px;flex-basis:15px}}
@media(max-width:560px){.wd-play-title .wd-play-controller{width:42px;height:34px}.wd-play-section-title>img{width:30px;height:25px}.wd-play-tag{font-size:10px;padding:6px 7px;gap:4px}.wd-play-tag svg{width:14px;height:14px;flex-basis:14px}}

/* Keep the supplied Play hero artwork vivid and unobstructed */
.wd-play-hero:after{background:transparent!important}

/* FIX: Play hero background path from frontend/css/style.css to project assets */
.wd-play-hero{
  background-image:url("../../assets/play/play-hero-background.png") !important;
  background-size:cover !important;
  background-position:right center !important;
  background-repeat:no-repeat !important;
}
.wd-play-hero:after{background:transparent !important}

/* Updated transparent 3D controller icon supplied for WORDLY Play */
.wd-play-title .wd-play-controller{
  display:block;width:68px;height:58px;object-fit:contain;
  background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;filter:drop-shadow(0 4px 5px #1456a833);
}
.wd-play-section-title>img{
  display:block;width:42px;height:36px;object-fit:contain;
  background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;filter:drop-shadow(0 2px 3px #1456a833);
}

/* FINAL PLAY HERO: clean panoramic artwork; title and tagline remain HTML text */
.wd-play-hero{
  background-image:url("../../assets/play/play-hero-background.png") !important;
  background-size:cover !important;
  background-position:right center !important;
  background-repeat:no-repeat !important;
}
.wd-play-hero-copy{position:relative;z-index:2}
.wd-play-title .wd-play-controller{position:relative;z-index:3}


/* WORDLY PLAY GAME SCREENS — interactive, responsive, no cropped artwork */
.wpg-shell{min-height:620px;padding:14px;border:2px solid #fff;border-radius:24px;background:linear-gradient(145deg,#dff6ff,#9edfff);box-shadow:0 8px 24px #1a5d9630;color:#0b347e}
.wpg-top{display:flex;align-items:center;gap:12px;padding:10px 14px;border:1px solid #fff;border-radius:18px;background:#ffffffc9;box-shadow:0 4px 12px #23639a20}
.wpg-top> b:first-of-type{font-size:17px}.wpg-back{border:0;border-radius:12px;background:#e8f6ff;color:#0755ad;font-size:23px;width:42px;height:38px;cursor:pointer}
.wpg-meter{height:12px;flex:1;max-width:230px;border-radius:99px;background:#c4e1f8;overflow:hidden;box-shadow:inset 0 2px 4px #376c9b30}.wpg-meter span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#087cf0,#23c5ff)}
.wpg-hearts{white-space:nowrap;font-size:18px;letter-spacing:2px}
.wpg-content{display:grid;grid-template-columns:minmax(145px,22%) 1fr minmax(92px,12%);gap:16px;align-items:center;min-height:510px;padding:24px 12px}
.wpg-mascot{font-size:72px;text-align:center;align-self:end;filter:drop-shadow(0 5px 4px #28659a30)}.wpg-mascot p{font-size:15px;font-weight:850;line-height:1.35;background:#fff;border:1px solid #fff;border-radius:18px;padding:14px;margin:4px 0;color:#123b7d}.wpg-mascot small{display:block;font-size:13px;background:#eff9ff;border-radius:12px;padding:10px}
.wpg-board,.wpg-match{min-width:0;text-align:center}.wpg-board h2,.wpg-match h2{font-size:20px;margin:0 0 22px}
.wpg-answer,.wpg-tiles{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:14px auto}.wpg-letter{width:48px;height:50px;border:2px solid #fff;border-radius:12px;background:linear-gradient(#fff,#c7eaff);color:#0753a5;font-size:23px;font-weight:950;box-shadow:0 4px 0 #74b9e9,0 6px 10px #2767a52b;cursor:pointer}.wpg-letter:disabled{opacity:.25;cursor:default}.wpg-letter.filled{background:linear-gradient(#168ff7,#0871df);color:#fff}
.wpg-primary{border:2px solid #fff;border-radius:999px;padding:13px 25px;background:linear-gradient(110deg,#087df1,#1db7f1);color:#fff;font-weight:950;font-size:16px;box-shadow:0 5px 0 #0756b9,0 8px 14px #2465a533;cursor:pointer}
.wpg-feedback{min-height:24px;font-weight:800;color:#14539a}
.wpg-tools{display:grid;gap:12px}.wpg-tools button{padding:13px 8px;border:1px solid #fff;border-radius:15px;background:#ffffffc9;color:#104486;font-weight:900;cursor:pointer;box-shadow:0 3px 8px #23639a20}
.wpg-pair-grid{display:grid;grid-template-columns:1fr 1fr;gap:38px;max-width:760px;margin:28px auto}.wpg-pair-grid>div{display:grid;gap:12px}.wpg-pair{min-height:52px;padding:10px 14px;border:2px solid #fff;border-radius:16px;background:linear-gradient(#fff,#d5efff);color:#123b7d;font-weight:900;box-shadow:0 4px 10px #1e64a52a;cursor:pointer}.wpg-pair.chosen{outline:3px solid #12b8ff;background:#d5f7ff}.wpg-pair.done{background:#d5ffe7;border-color:#69d99a;opacity:.75}
.wpg-story-layout{display:grid;grid-template-columns:34% 1fr;gap:16px;margin:18px 0}.wpg-story-picture{display:grid;place-content:center;text-align:center;min-height:190px;border-radius:18px;background:linear-gradient(140deg,#b9e8ff,#e9faff);font-size:48px}.wpg-story-picture p{font-size:17px;font-weight:950}.wpg-story-copy,.wpg-question{padding:18px;border:1px solid #fff;border-radius:18px;background:#ffffffc7}.wpg-story-copy h2{margin:0 0 8px}.wpg-story-copy p{line-height:1.6}.wpg-story-copy h3{margin-bottom:5px}.wpg-story-copy ul{display:flex;gap:20px;flex-wrap:wrap;margin:5px 0}
.wpg-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.wpg-options button{padding:13px;border:1px solid #fff;border-radius:14px;background:linear-gradient(#fff,#d7efff);color:#103c7e;text-align:left;font-weight:850;cursor:pointer;box-shadow:0 3px 8px #27649a20}.wpg-options button:hover,.wpg-pair:hover,.wpg-tools button:hover{filter:brightness(.98);transform:translateY(-1px)}
.wpg-daily-intro{display:flex;align-items:center;gap:18px;padding:18px;margin:18px 0;border:1px solid #fff;border-radius:20px;background:#ffffffc8}.wpg-daily-intro .wpg-mascot{font-size:54px}.wpg-daily-intro h2{margin:0}.wpg-daily-intro p{margin:5px 0}.wpg-daily-intro aside{margin-left:auto;padding:12px;border-radius:14px;background:#fff;text-align:center;font-weight:850;white-space:nowrap}
.wpg-stages{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:18px 0}.wpg-stage{display:grid;justify-items:center;gap:5px;padding:12px 6px;border:1px solid #fff;border-radius:16px;background:#d6eaff;text-align:center}.wpg-stage>b{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#7ea7d4;color:#fff}.wpg-stage.active{outline:2px solid #1ab5ff;background:#d7f5ff}.wpg-stage.active>b{background:#0788f2}.wpg-stage.done{background:#d9ffe9}.wpg-stage.done>b{background:#24c46a}.wpg-stage strong{font-size:13px}.wpg-stage small{font-size:11px}
.wpg-result{text-align:center;display:grid;place-content:center;justify-items:center;gap:14px}.wpg-result-mascot{font-size:100px}.wpg-result h1{font-size:32px;margin:0}.wpg-result p{font-size:17px}.wpg-rewards{padding:16px 24px;border-radius:18px;background:#fff;font-size:20px;font-weight:950}
@media(max-width:900px){.wpg-content{grid-template-columns:1fr;gap:10px}.wpg-mascot{font-size:42px}.wpg-tools{display:flex;justify-content:center}.wpg-tools button{flex:1}.wpg-story-layout{grid-template-columns:1fr}.wpg-stages{grid-template-columns:repeat(5,minmax(0,1fr))}.wpg-stage strong{font-size:10px}.wpg-top{gap:6px}.wpg-hearts{font-size:14px}.wpg-shell{min-height:0}}

.wpg-hearts{font-size:21px;letter-spacing:3px;filter:drop-shadow(0 2px 2px #9c294533)}
.wpg-back-result{border:1px solid #fff;border-radius:999px;padding:11px 22px;background:#ffffffd9;color:#104486;font-weight:900;cursor:pointer}
.wpg-stage{min-width:0}
@media(max-width:900px){.wpg-stages{grid-template-columns:repeat(5,minmax(0,1fr))}}

.wd-island-stop.available .wd-island-label {background:linear-gradient(145deg,#fff,#d8f0ff);outline:2px solid rgba(36,157,255,.42)}
.wd-island-stop.available .wd-island-label small {color:#1677c5}

/* WORDLY AI Buddy refresh — matching the bright 3D sky-blue brand */
.wd-buddy-page{display:flex;flex-direction:column;gap:18px;min-height:100%;color:#123c7c}
.wd-buddy-hero{position:relative;min-height:190px;overflow:hidden;display:flex;align-items:center;padding:26px 34px;border:2px solid #fff;border-radius:26px;background:#58bdf3 url('../../assets/ai-buddy/ai-buddy-hero.png') center 56%/cover no-repeat;box-shadow:0 9px 22px #1768a526,inset 0 1px 0 #fff}
.wd-buddy-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#c9efffe8 0%,#c9efffc9 42%,#c9efff00 72%);pointer-events:none}
.wd-buddy-hero-copy{position:relative;z-index:1;max-width:58%;text-shadow:0 1px 0 #fff8}
.wd-buddy-hero h1{margin:7px 0 8px;font-size:clamp(25px,3vw,38px);font-weight:950;color:#12458e;letter-spacing:-.5px}
.wd-buddy-hero p{max-width:620px;margin:0;color:#17477f;font-weight:650;line-height:1.5}
.wd-buddy-language{display:inline-flex;align-items:center;gap:8px;margin-top:14px;padding:8px 13px;border:1px solid #fff;border-radius:999px;background:#ffffffd9;color:#17477f;font-size:13px;box-shadow:0 3px 9px #205f9820}
.wd-buddy-live-dot,.wd-chat-head span i{width:8px;height:8px;display:inline-block;border-radius:50%;background:#23c978;box-shadow:0 0 0 3px #23c97825}
.wd-buddy-workspace{display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px;align-items:stretch;min-height:510px}
.wd-buddy-topics{padding:15px;border:1px solid #fff;border-radius:22px;background:linear-gradient(150deg,#f6fcffed,#c4eaffdf);box-shadow:0 7px 18px #205f981b}
.wd-buddy-topics-title{font-size:14px;font-weight:950;color:#174681;margin:3px 4px 12px}
.wd-buddy-topics button{width:100%;display:grid;grid-template-columns:37px 1fr;grid-template-rows:auto auto;column-gap:9px;align-items:center;text-align:left;margin:8px 0;padding:10px;border:1px solid #fff;border-radius:15px;background:linear-gradient(145deg,#fff,#e2f5ff);color:#174681;box-shadow:0 3px 8px #205f9815;cursor:pointer;transition:.18s}
.wd-buddy-topics button:hover{transform:translateY(-2px);box-shadow:0 6px 12px #205f9825;border-color:#8ed7ff}
.wd-buddy-topics button span{grid-row:1/3;display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:linear-gradient(145deg,#fff,#c4e8ff);font-size:20px}
.wd-buddy-topics button b{font-size:12px}.wd-buddy-topics button small{font-size:10px;color:#6483a8;margin-top:2px}
.wd-chat-panel{max-width:none;min-width:0;min-height:510px;padding:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #fff;border-radius:22px;background:linear-gradient(150deg,#f5fcfff2,#d5f0ffed);box-shadow:0 8px 20px #205f9820}
.wd-chat-head{display:flex;align-items:center;gap:12px;padding:13px 17px;border-bottom:1px solid #b7e1fb;background:linear-gradient(100deg,#fff,#d9f1ff)}
.wd-chat-head-avatar{width:48px;height:48px;flex:0 0 48px;overflow:hidden;border:2px solid #fff;border-radius:50%;background:#b9e8ff;box-shadow:0 3px 9px #205f9825}
.wd-chat-head-avatar img{width:100%;height:100%;object-fit:cover}
.wd-chat-head>div:nth-child(2){display:flex;flex-direction:column;gap:3px;min-width:0}.wd-chat-head b{font-size:15px;color:#164782}.wd-chat-head span{display:flex;align-items:center;gap:7px;font-size:11px;color:#6685a7}
#wd-chat-clear{margin-left:auto;border:1px solid #b8def7;border-radius:999px;padding:8px 12px;background:#fff;color:#2764a1;font-size:11px;font-weight:850;cursor:pointer}
.wd-chat-messages{height:340px;min-height:300px;flex:1;overflow:auto;padding:20px;display:flex;flex-direction:column;gap:15px;background:radial-gradient(ellipse at 15% 10%,#fff8,transparent 42%),linear-gradient(145deg,#e9f8ffb8,#d7f0ffb8)}
.wd-chat-row{display:flex;align-items:flex-end;gap:9px;max-width:88%;animation:wdChatPop .18s ease-out}.wd-chat-row.is-user{align-self:flex-end;flex-direction:row-reverse}
.wd-chat-avatar{width:36px;height:36px;flex:0 0 36px;object-fit:cover;border:2px solid white;border-radius:50%;background:#b8e7ff;box-shadow:0 3px 8px #205f9828}
.wd-chat-bubble-stack{display:flex;flex-direction:column;gap:4px;min-width:0}.wd-chat-row.is-user .wd-chat-bubble-stack{align-items:flex-end}
.wd-chat-sender{padding:0 5px;font-size:10px;font-weight:900;color:#557ba4}
.wd-chat-bubble{max-width:100%;padding:12px 15px;border:1px solid #fff;border-radius:17px 17px 17px 5px;background:linear-gradient(145deg,#fff,#f2fbff);color:#234b7b;box-shadow:0 4px 11px #205f9818;line-height:1.55;font-size:13px;white-space:pre-line;overflow-wrap:anywhere}
.wd-chat-row.is-user .wd-chat-bubble{border-radius:17px 17px 5px 17px;background:linear-gradient(145deg,#d9f2ff,#b8e3ff);color:#16477f}
.wd-chat-time{padding:0 5px;font-size:9px;color:#7895b2}
.wd-chat-composer-wrap{padding:12px 15px 13px;border-top:1px solid #b8e2fb;background:#f8fdffed}
.wd-chat-hints{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:10px}.wd-chat-hints span{font-size:10px;color:#6785a5;font-weight:800}
.wd-chat-hints button{border:1px solid #c4e5fa;border-radius:999px;padding:6px 9px;background:#fff;color:#2865a2;font-size:10px;font-weight:800;cursor:pointer}
#wd-chat-form{display:flex;align-items:flex-end;gap:9px;padding:7px;border:1px solid #b7ddf6;border-radius:17px;background:white;box-shadow:inset 0 1px 3px #1d5e9410}
#wd-chat-form textarea{flex:1;min-width:0;resize:none;max-height:120px;border:0;outline:0;padding:8px 9px;background:transparent;color:#173f75;font:inherit;font-size:13px;line-height:1.45}
#wd-chat-form textarea:focus{outline:0;box-shadow:none}
.wd-chat-send{width:42px;height:42px;flex:0 0 42px;border:1px solid white;border-radius:13px;background:linear-gradient(145deg,#1687f0,#32b7f2);color:white;font-size:22px;font-weight:900;box-shadow:0 4px 10px #176ec044;cursor:pointer}
.wd-chat-disclaimer{display:block;margin:8px 4px 0;color:#7993ad;font-size:9px}
@keyframes wdChatPop{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){.wd-buddy-workspace{grid-template-columns:1fr}.wd-buddy-topics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.wd-buddy-topics-title{grid-column:1/-1}.wd-buddy-topics button{margin:0}.wd-buddy-hero-copy{max-width:72%}}
@media(max-width:600px){.wd-buddy-hero{min-height:220px;padding:20px;background-position:62% center}.wd-buddy-hero:before{background:linear-gradient(90deg,#c9effff0 0%,#c9efffdc 62%,#c9efff35 100%)}.wd-buddy-hero-copy{max-width:100%}.wd-buddy-topics{grid-template-columns:1fr 1fr}.wd-chat-row{max-width:100%}.wd-chat-messages{padding:12px}}

/* WORDLY Study Lounge — immersive lofi player and focus timer */
.wd-music-page{display:flex;flex-direction:column;gap:18px;color:#123d7b}
.wd-music-hero{position:relative;min-height:205px;overflow:hidden;display:flex;align-items:center;padding:28px 34px;border:2px solid #fff;border-radius:26px;background:#54bdf4 url('../../assets/music/study-lounge-hero.png') center 54%/cover no-repeat;box-shadow:0 9px 22px #1768a526,inset 0 1px 0 #fff}
.wd-music-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#d8f3ffeF 0%,#d8f3ffcc 42%,#d8f3ff00 72%);pointer-events:none}
.wd-music-hero-copy{position:relative;z-index:1;max-width:54%;text-shadow:0 1px #fff8}
.wd-music-hero h1{margin:7px 0 8px;font-size:clamp(27px,3vw,39px);font-weight:950;color:#12458e;letter-spacing:-.6px}
.wd-music-hero p{max-width:600px;margin:0;color:#17477f;font-weight:700;line-height:1.5}
.wd-music-live{display:inline-flex;align-items:center;gap:8px;margin-top:13px;padding:8px 13px;border:1px solid #fff;border-radius:999px;background:#ffffffdf;color:#17518d;font-size:12px;font-weight:850;box-shadow:0 3px 9px #205f9820}
.wd-music-live i{width:8px;height:8px;border-radius:50%;background:#20c879;box-shadow:0 0 0 4px #20c87925}
.wd-music-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(270px,.8fr);gap:16px;align-items:stretch}
.wd-music-library,.wd-study-panel{padding:19px;border:1px solid #fff;border-radius:23px;background:linear-gradient(145deg,#f5fcfff0,#ccecffed);box-shadow:0 7px 18px #205f9818}
.wd-music-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}
.wd-music-section-title h2,.wd-study-panel h2{margin:3px 0 0;color:#164681;font-size:21px;font-weight:950}
.wd-music-count{padding:7px 11px;border:1px solid #fff;border-radius:999px;background:#ffffffc9;color:#48749e;font-size:11px;font-weight:850;white-space:nowrap}
.wd-lofi-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.wd-lofi-card{min-width:0;display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #fff;border-radius:17px;background:linear-gradient(145deg,#fff,#e4f5ff);color:#174681;text-align:left;box-shadow:0 4px 10px #205f9815;cursor:pointer;transition:transform .18s,border-color .18s,box-shadow .18s}
.wd-lofi-card:hover{transform:translateY(-2px);box-shadow:0 7px 14px #205f9824}.wd-lofi-card.is-selected{border:2px solid #39baff;background:linear-gradient(145deg,#fff,#d8f2ff);box-shadow:0 0 0 3px #35baff24,0 5px 12px #205f9820;padding:9px}
.wd-lofi-art{width:58px;height:58px;flex:0 0 58px;display:grid;place-items:center;position:relative;overflow:hidden;border:1px solid #fff;border-radius:14px;font-size:27px;box-shadow:inset 0 1px 0 #fff8}.wd-lofi-art b{position:absolute;right:4px;bottom:1px;font-size:20px}.wd-lofi-art.rain{background:linear-gradient(145deg,#9bd9ff,#4b9bd9)}.wd-lofi-art.library{background:linear-gradient(145deg,#ffe2a7,#d89a61)}.wd-lofi-art.sky{background:linear-gradient(145deg,#b9efff,#5cb8f4)}.wd-lofi-art.night{background:linear-gradient(145deg,#788bd4,#283d7e)}
.wd-lofi-copy{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.wd-lofi-copy b{font-size:13px;font-weight:950}.wd-lofi-copy small{font-size:10px;line-height:1.35;color:#6687a9}.wd-lofi-play{width:27px;height:27px;flex:0 0 27px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#1592f4,#36b9f4);color:#fff;font-size:11px;box-shadow:0 3px 7px #1676c044}
.wd-music-player{display:flex;align-items:center;gap:14px;margin-top:14px;padding:14px;border:1px solid #fff;border-radius:19px;background:linear-gradient(110deg,#d7f1ff,#f9fdff);box-shadow:inset 0 1px 0 #fff,0 4px 10px #205f9812}
.wd-player-cover{width:66px;height:66px;flex:0 0 66px;display:grid;place-items:center;border:2px solid #fff;border-radius:17px;background:linear-gradient(145deg,#87d5ff,#d9f5ff);font-size:34px;box-shadow:0 4px 10px #205f9820}
.wd-player-main{flex:1;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:12px}.wd-player-meta{display:flex;flex-direction:column;gap:3px;min-width:0}.wd-player-meta span{font-size:9px;letter-spacing:1.2px;color:#3687c4;font-weight:950}.wd-player-meta b{font-size:15px;color:#164681}.wd-player-meta small{font-size:10px;color:#6d8ba8}
.wd-player-controls{display:flex;align-items:center;gap:7px}.wd-player-play,.wd-player-stop{width:39px;height:39px;border:1px solid #fff;border-radius:50%;background:linear-gradient(145deg,#168cf0,#35b8f3);color:white;font-weight:950;cursor:pointer;box-shadow:0 4px 9px #176ec044}.wd-player-stop{width:32px;height:32px;background:linear-gradient(145deg,#fff,#dcefff);color:#27659c;box-shadow:0 3px 7px #205f9818}.wd-volume-control{display:flex;align-items:center;gap:5px;margin-left:4px;color:#2868a1}.wd-volume-control input{width:76px;accent-color:#168cf0}
.wd-study-panel{display:flex;flex-direction:column;align-items:flex-start}.wd-study-icon{width:48px;height:48px;display:grid;place-items:center;margin-bottom:9px;border:1px solid #fff;border-radius:15px;background:linear-gradient(145deg,#fff,#ccecff);font-size:25px;box-shadow:0 4px 10px #205f9818}.wd-study-panel>p{margin:8px 0 14px;color:#6283a6;font-size:12px;line-height:1.5}.wd-study-presets{width:100%;display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.wd-study-presets button{padding:9px 4px;border:1px solid #fff;border-radius:12px;background:#ffffffc9;color:#28649a;font-size:11px;font-weight:900;cursor:pointer}.wd-study-presets button.is-active{border-color:#5bc4ff;background:linear-gradient(145deg,#d8f3ff,#fff);color:#0879d6;box-shadow:0 0 0 2px #3bbaff20}.wd-study-clock{width:100%;margin:15px 0 9px;text-align:center;font-size:39px;line-height:1.2;letter-spacing:2px;font-weight:950;color:#14509a;font-variant-numeric:tabular-nums}.wd-study-progress{width:100%;height:9px;overflow:hidden;border-radius:99px;background:#b9d9ef;box-shadow:inset 0 2px 4px #195d8a20}.wd-study-progress span{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#12a2f7,#35d1c0);transition:width .3s}.wd-study-actions{display:flex;width:100%;gap:7px;margin-top:13px}.wd-study-start,.wd-study-reset{border:1px solid #fff;border-radius:999px;padding:11px 14px;font-size:12px;font-weight:950;cursor:pointer}.wd-study-start{flex:1;background:linear-gradient(110deg,#087df1,#1db7f1);color:white;box-shadow:0 4px 0 #0756b9,0 7px 12px #2465a533}.wd-study-reset{background:#ffffffd9;color:#27649a}.wd-study-panel>small{margin-top:11px;color:#7691ad;font-size:10px;line-height:1.4}.wd-music-footnote{margin:0 4px;color:#6d8ba8;font-size:10px;line-height:1.5}
@media(max-width:900px){.wd-music-layout{grid-template-columns:1fr}.wd-study-panel{display:grid;grid-template-columns:55px 1fr;column-gap:10px;align-items:center}.wd-study-icon{grid-row:1/3;margin:0}.wd-study-panel>p,.wd-study-presets,.wd-study-clock,.wd-study-progress,.wd-study-actions,.wd-study-panel>small{grid-column:1/-1}.wd-music-hero-copy{max-width:70%}}
@media(max-width:600px){.wd-music-hero{min-height:220px;padding:20px;background-position:65% center}.wd-music-hero:before{background:linear-gradient(90deg,#d8f3fff2 0%,#d8f3ffdd 60%,#d8f3ff35 100%)}.wd-music-hero-copy{max-width:100%}.wd-lofi-grid{grid-template-columns:1fr}.wd-player-main{align-items:flex-start;flex-direction:column}.wd-music-player{align-items:flex-start}.wd-player-controls{width:100%;justify-content:flex-start}.wd-volume-control{margin-left:auto}.wd-volume-control input{width:65px}}

/* WORDLY Progress dashboard */
.wd-progress-page{display:flex;flex-direction:column;gap:16px;color:#123f7c}
.wd-progress-hero{position:relative;min-height:205px;overflow:hidden;display:flex;align-items:center;padding:25px 30px;border:2px solid #fff;border-radius:25px;background:#48b8f1 url('../../assets/progress/progress-hero.png') center 48%/cover no-repeat;box-shadow:0 9px 22px #1768a526,inset 0 1px 0 #fff}
.wd-progress-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#d9f4fff2 0%,#d9f4ffdc 39%,#d9f4ff18 72%);pointer-events:none}
.wd-progress-hero-copy{position:relative;z-index:1;max-width:57%}.wd-progress-hero h1{margin:7px 0;color:#12458e;font-size:clamp(28px,3vw,40px);font-weight:950}.wd-progress-hero p{max-width:620px;margin:0;color:#194a80;font-weight:700;line-height:1.5}
.wd-progress-language{display:inline-flex;margin-top:13px;padding:8px 12px;border:1px solid #fff;border-radius:999px;background:#ffffffdb;color:#245b91;font-size:12px}
.wd-progress-summary-live{grid-template-columns:repeat(4,minmax(0,1fr));margin:0}.wd-progress-summary-live article{position:relative;min-height:126px;padding:17px 15px 14px 62px;border-radius:20px;background:linear-gradient(145deg,#fff,#d2efff);border:1px solid #fff;box-shadow:0 6px 15px #205f9818}
.wd-progress-summary-live article>i{position:absolute;left:15px;top:20px;width:36px;height:36px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(145deg,#fff,#bde7ff);font-size:20px;font-style:normal}
.wd-progress-summary-live b{font-size:26px;color:#126ed0;font-weight:950}.wd-progress-summary-live span{font-size:12px;color:#315f91;font-weight:850}.wd-progress-summary-live small{font-size:10px;color:#7894b0}
.wd-progress-main-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.wd-progress-panel{min-width:0;padding:18px 19px;border:1px solid #fff;border-radius:21px;background:linear-gradient(145deg,#f9fdfff0,#ccecffed);box-shadow:0 7px 17px #205f9818}
.wd-progress-panel>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.wd-progress-panel>header small{font-size:9px;letter-spacing:1px;color:#3284bd;font-weight:950}.wd-progress-panel h2{margin:3px 0 0;color:#164681;font-size:19px;font-weight:950}.wd-progress-panel>header>b{font-size:27px;color:#0b8be9}.wd-progress-panel>header em{font-size:9px;font-style:normal;color:#149b60;font-weight:950}.wd-progress-panel>header label{padding:6px 9px;border:1px solid #fff;border-radius:999px;background:#e5f5ff;color:#3976a8;font-size:10px;font-weight:900}
.wd-progress-track{height:13px;overflow:hidden;border-radius:999px;background:#b8d8ef}.wd-progress-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#0e91f5,#36c9e9);transition:width .4s}
.wd-progress-panel>p{color:#7894ad;font-size:10px}.wd-progress-action{display:flex;justify-content:space-between;width:100%;margin-top:13px;padding:11px 15px;border:1px solid #fff;border-radius:999px;background:linear-gradient(100deg,#0d82ee,#2cb8ee);color:#fff;font-size:12px;font-weight:950;cursor:pointer;box-shadow:0 4px 0 #075bb7}
.wd-week-chart{height:130px;display:grid;grid-template-columns:repeat(7,1fr);gap:9px;align-items:end}.wd-week-chart>div{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px}.wd-week-chart i{display:block;width:24px;max-height:90px;min-height:4px;border-radius:8px 8px 3px 3px;background:linear-gradient(180deg,#32c9f0,#1385ed)}.wd-week-chart b{font-size:10px;color:#2b659a}.wd-week-chart small{font-size:10px;color:#6e8ead;font-weight:800}
.wd-progress-muted{margin:9px 0;color:#7894ad;font-size:10px}.wd-progress-activity-list{display:flex;flex-direction:column;gap:8px;max-height:300px;overflow:auto}.wd-progress-activity-list>div{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #fff;border-radius:14px;background:#ffffffa8}.wd-progress-activity-list>div>span{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:#d8f0ff;font-size:18px}.wd-progress-activity-list section{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}.wd-progress-activity-list b{font-size:11px;color:#194a80}.wd-progress-activity-list small{font-size:9px;color:#7692ad}.wd-progress-activity-list time{font-size:9px;color:#7390ac;white-space:nowrap}.wd-progress-activity-list aside{min-height:110px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#7390ac}.wd-progress-activity-list aside small{font-size:10px;text-align:center}
.wd-progress-today{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.wd-progress-today div{display:flex;flex-direction:column;align-items:center;gap:5px;padding:15px 6px;border:1px solid #fff;border-radius:14px;background:#ffffffb8}.wd-progress-today b{font-size:24px;color:#1386e8}.wd-progress-today small{font-size:10px;color:#6486a7;font-weight:800}
.wd-progress-achievements{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.wd-progress-achievements>div{display:flex;align-items:center;gap:9px;padding:11px;border:1px solid #fff;border-radius:14px;background:#ffffffb8}.wd-progress-achievements>div>span{font-size:21px}.wd-progress-achievements section{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}.wd-progress-achievements b{font-size:10px;color:#1d4f83}.wd-progress-achievements small{font-size:9px;color:#7793ae}.wd-progress-achievements strong{color:#18ad70}.wd-progress-achievements .locked{opacity:.55;filter:saturate(.5)}
@media(max-width:1050px){.wd-progress-summary-live{grid-template-columns:repeat(2,1fr)}.wd-progress-achievements{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.wd-progress-main-grid{grid-template-columns:1fr}.wd-progress-hero{min-height:220px;padding:20px;background-position:63% center}.wd-progress-hero-copy{max-width:100%}.wd-progress-summary-live{grid-template-columns:1fr 1fr}.wd-progress-activity-list time{display:none}}

/* WORDLY Profile — refreshed learner identity dashboard */
.wd-profile-page{display:flex;flex-direction:column;gap:15px;color:#123f7c}
.wd-profile-hero{position:relative;overflow:hidden;display:flex;align-items:center;gap:22px;min-height:210px;padding:22px 28px;border:2px solid #fff;border-radius:25px;background:#54bdf6 url("../../assets/profile/profile-journey-hero.png") center 48%/cover no-repeat;box-shadow:0 9px 22px #1768a526,inset 0 1px 0 #fff}
.wd-profile-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(222,246,255,.78) 0%,rgba(210,242,255,.62) 34%,rgba(130,207,250,.10) 62%,transparent 78%);pointer-events:none}
.wd-profile-avatar-wrap{position:relative;z-index:1;flex:0 0 145px;width:145px;height:145px;display:grid;place-items:center;border:5px solid #fff;border-radius:50%;background:linear-gradient(145deg,#fff,#c5eaff);box-shadow:0 0 0 4px #a65bff,0 8px 22px #075d9b45;overflow:visible}
.wd-profile-avatar-wrap img{width:100%;height:100%;object-fit:cover;border-radius:50%;clip-path:circle(50%);transform-origin:center}
.wd-profile-crown{position:absolute;top:-15px;left:-6px;display:grid;place-items:center;width:39px;height:39px;border:2px solid #fff;border-radius:50%;background:linear-gradient(145deg,#ffe98b,#ffad16);color:#fff;font-size:23px;text-shadow:0 2px 2px #a76b19;box-shadow:0 4px 10px #8a5b2a55}
.wd-profile-edit-avatar{cursor:pointer;padding:0;position:absolute;right:-3px;bottom:5px;display:grid;place-items:center;width:34px;height:34px;border:2px solid #fff;border-radius:50%;background:linear-gradient(145deg,#fff,#bde7ff);color:#0877d4;font-size:17px;font-weight:950;box-shadow:0 3px 9px #135a9238}
.wd-profile-identity{position:relative;z-index:1;min-width:0;flex:1;color:#103f86}
.wd-profile-kicker{font-size:10px;font-weight:950;letter-spacing:1.5px;color:#075da9}
.wd-profile-identity h1{margin:3px 0 0;font-size:35px;font-weight:1000;line-height:1.15;text-shadow:0 2px #fff8}
.wd-profile-username{display:inline-flex;margin-top:4px;padding:4px 10px;border:1px solid #fff;border-radius:999px;background:#ffffff9c;color:#1d5791;font-size:11px;font-weight:850}
.wd-profile-level{margin-top:8px;color:#174d84;font-size:12px;font-weight:950}.wd-profile-level span{font-weight:650;color:#3c75a6}
.wd-profile-xp{max-width:440px;margin-top:11px}.wd-profile-xp>div:first-child{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#1a568d}.wd-profile-xp-track{height:10px;margin-top:5px;overflow:hidden;border:1px solid #fff;border-radius:999px;background:#e6f5ffb8;box-shadow:inset 0 2px 4px #165e9825}.wd-profile-xp-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#8d56ed,#ca7cff);box-shadow:0 0 9px #b67aff}
.wd-profile-xp small{display:block;margin-top:4px;color:#2e6797;font-size:9px}
.wd-profile-fox{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:135px;font-size:75px;filter:drop-shadow(0 8px 8px #075d9c40)}.wd-profile-fox small{padding:5px 10px;border:1px solid #fff;border-radius:999px;background:#ffffffb5;color:#15518b;font-size:10px;font-weight:900;white-space:nowrap}
.wd-profile-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.wd-profile-stat-grid article{display:flex;align-items:center;gap:12px;min-width:0;padding:13px 15px;border:1px solid #fff;border-radius:18px;background:linear-gradient(145deg,#faffffed,#cceaffed);box-shadow:0 5px 14px #205f981a,inset 0 1px 0 #fff}
.wd-profile-stat-grid article>span{flex:0 0 43px;width:43px;height:43px;display:grid;place-items:center;border:1px solid #fff;border-radius:14px;background:linear-gradient(145deg,#fff,#b9e4ff);font-size:23px;box-shadow:0 3px 8px #1c659b20}
.wd-profile-stat-grid article div{display:flex;flex-direction:column;min-width:0}.wd-profile-stat-grid article b{overflow:hidden;color:#164681;font-size:20px;font-weight:1000;text-overflow:ellipsis;white-space:nowrap}.wd-profile-stat-grid article small{color:#7190ad;font-size:10px;font-weight:750}
.wd-profile-content-grid{display:grid;grid-template-columns:minmax(270px,.85fr) minmax(0,1.4fr);gap:14px;align-items:start}
.wd-profile-panel{min-width:0;padding:17px;border:1px solid #fff;border-radius:21px;background:linear-gradient(145deg,#f9fdfff2,#c9eaffed);box-shadow:0 7px 18px #205f9818,inset 0 1px 0 #fff}
.wd-profile-panel-heading{display:flex;align-items:center;gap:10px;margin-bottom:14px}.wd-profile-panel-heading>span{width:39px;height:39px;display:grid;place-items:center;border:1px solid #fff;border-radius:13px;background:linear-gradient(145deg,#fff,#bde6ff);font-size:20px;box-shadow:0 3px 8px #205f9820}.wd-profile-panel-heading h2{margin:0;color:#164681;font-size:16px;font-weight:950}.wd-profile-panel-heading p{margin:3px 0 0;color:#7894ad;font-size:10px}
.wd-profile-settings-form{display:flex;flex-direction:column;gap:11px}.wd-profile-photo-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border:1px solid #fff;border-radius:13px;background:#ffffffa8}.wd-profile-photo-row>div{display:flex;flex-direction:column;gap:3px}.wd-profile-photo-row b{color:#164681;font-size:11px}.wd-profile-photo-row small{color:#7894ad;font-size:9px}.wd-profile-small-btn{padding:8px 12px;border:1px solid #fff;border-radius:999px;background:linear-gradient(110deg,#0786f5,#28b8ed);color:#fff;font-size:10px;font-weight:900;cursor:pointer}
.wd-profile-settings-form label{display:flex;flex-direction:column;gap:5px;color:#285b8d;font-size:10px;font-weight:850}.wd-profile-settings-form label input:not([type=range]),.wd-profile-settings-form label select{width:100%;min-height:37px;padding:8px 11px;border:1px solid #fff;border-radius:11px;outline:0;background:#ffffffd9;color:#164681;font-size:11px;font-weight:750;box-shadow:inset 0 2px 4px #165e9810}.wd-profile-settings-form label input:focus,.wd-profile-settings-form label select:focus{border-color:#53b9ff;box-shadow:0 0 0 3px #55b9ff25}.wd-profile-settings-form .wd-profile-range-label input{width:100%;accent-color:#168cf0}
.wd-profile-settings-form .wd-module-action{min-height:40px;border:1px solid #fff;border-radius:999px;background:linear-gradient(110deg,#0786f5,#28b8ed);color:#fff;font-size:11px;font-weight:950;box-shadow:0 4px 0 #0870c6,0 7px 12px #087ee82a;cursor:pointer}
.wd-profile-right-column{display:flex;flex-direction:column;gap:14px}
.wd-profile-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.wd-profile-week>div{display:flex;flex-direction:column;align-items:center;gap:7px;padding:9px 3px;border:1px solid #fff;border-radius:13px;background:#ffffffa8}.wd-profile-week small{color:#668aaa;font-size:9px;font-weight:850}.wd-profile-week b{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:#e6f1fb;color:#91a9bd;font-size:14px}.wd-profile-week b.done{background:linear-gradient(145deg,#27d78c,#0eaa67);color:#fff;box-shadow:0 3px 7px #0caa6750}
.wd-profile-note{margin:9px 0 0;color:#7b96ad;font-size:9px;line-height:1.4}
.wd-profile-progress-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 11px;margin-top:7px;border:1px solid #fff;border-radius:12px;background:#ffffffb8;color:#24598c;font-size:11px;font-weight:850}.wd-profile-progress-row b{color:#147ac6;font-size:10px}
@media(max-width:1050px){.wd-profile-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wd-profile-content-grid{grid-template-columns:1fr}}
@media(max-width:650px){.wd-profile-hero{flex-wrap:wrap;gap:14px;padding:17px}.wd-profile-avatar-wrap{flex-basis:100px;width:100px;height:100px}.wd-profile-identity h1{font-size:27px}.wd-profile-fox{min-width:70px;font-size:48px}.wd-profile-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.wd-profile-stat-grid article{padding:10px;gap:8px}.wd-profile-stat-grid article>span{width:34px;height:34px;flex-basis:34px;font-size:18px}.wd-profile-stat-grid article b{font-size:16px}.wd-profile-week{gap:4px}.wd-profile-week>div{padding:7px 2px}}

@media(max-width:760px){




}

/* Profile username editing: clear cooldown guidance */
.wd-username-cooldown{display:block;margin-top:7px;color:#4c78a8;font-size:12px;line-height:1.45;font-weight:600}
#wd-edit-username{letter-spacing:.2px}

/* Daily streak target: 10 XP earned from real learning activity each local day. */
.wd-streak-widget { gap:12px; min-height:88px; }
.wd-streak-widget .wd-streak-copy { flex:1; min-width:0; align-items:center; gap:2px; }
.wd-streak-goal { width:min(100%,230px); margin-top:4px; display:flex; flex-direction:column; align-items:center; gap:4px; }
.wd-streak-goal span { color:#42628f; font-size:10px; font-weight:800; }
.wd-streak-track { width:100%; height:6px; border-radius:99px; overflow:hidden; background:rgba(83,137,190,.18); box-shadow:inset 0 1px 2px rgba(21,68,125,.12); }
.wd-streak-track i { display:block; width:0%; height:100%; border-radius:inherit; background:linear-gradient(90deg,#ff9b35,#ff5b37); transition:width .25s ease; }
.wd-streak-widget .wd-calendar-art { flex:0 0 48px; display:grid; place-items:center; font-size:30px; color:#2878d8; }

/* Learning Path is generated from completed course units, not decorative fixed states. */
.wd-path-line { background:rgba(151,184,219,.58)!important; overflow:hidden; }
.wd-path-line>span { display:block; height:100%; width:0; border-radius:inherit; background:linear-gradient(90deg,#35c86c,#8c69f5); transition:width .3s ease; }
.wd-path-step { appearance:none; border:0; padding:0; background:transparent; cursor:pointer; }
.wd-path-step:disabled { cursor:not-allowed; opacity:.72; }
.wd-path-step small { font-size:9px; font-weight:750; color:#54759e; white-space:nowrap; }
.wd-path-step.done small { color:#239b59; }
.wd-path-step.current { transform:translateY(-1px); }
.wd-path-step:focus-visible { outline:2px solid #197de0; outline-offset:4px; border-radius:12px; }
