:root {
  color-scheme: light;
  --bg: #f3fbff;
  --panel: #ffffff;
  --ink: #15324a;
  --muted: #627386;
  --line: #cfe6ee;
  --brand: #3b82f6;
  --brand-strong: #2457b7;
  --accent: #ff5d7d;
  --gold: #f5b83f;
  --blue: #2f80ed;
  --mint: #9be7d7;
  --sun: #fff0b8;
  --shadow: 0 16px 38px rgba(21, 50, 74, 0.11);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

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

button {
  align-items: center;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  height: 42px;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.shell {
  min-height: 100vh;
}

.topbar {
  align-items: center;
  background: #fffdf7;
  border-bottom: 1px solid #ffe0a3;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 4;
}

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

.brand-home {
  background: transparent;
  border: 0;
  border-radius: 13px;
  height: auto;
  justify-content: flex-start;
  padding: 4px 6px;
}

.brand-home:hover {
  background: rgba(52, 231, 255, 0.08);
}

.brand-home:focus-visible {
  box-shadow: 0 0 0 3px rgba(52, 231, 255, 0.28);
  outline: 0;
}

.brand-mark {
  align-items: center;
  aspect-ratio: 1;
  background: #ffb23f;
  border-radius: 8px;
  color: white;
  display: grid;
  font-weight: 900;
  height: 42px;
  letter-spacing: 0;
  place-items: center;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 850;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.nav button,
.ghost-button {
  background: #e8f7fb;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  height: 42px;
  padding: 0 13px;
}

.nav button.active {
  background: #fff0b8;
  border-color: #f5b83f;
  color: var(--brand-strong);
  font-weight: 750;
}

.user-chip {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  min-width: 210px;
}

.user-chip span {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content {
  margin: 0 auto;
  max-width: 1180px;
  padding: 28px;
}

.login-wrap {
  align-items: center;
  display: grid;
  min-height: 100vh;
  padding: 24px;
}

.login-stage {
  align-items: stretch;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  margin: 0 auto;
  max-width: 1120px;
  width: 100%;
}

.login-visual {
  background:
    linear-gradient(90deg, rgba(21, 50, 74, 0.08), rgba(21, 50, 74, 0)),
    url("/static/assets/teen-learning-hero.webp") center / cover no-repeat;
  border: 1px solid #b8e8ee;
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 560px;
}

.login-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 22px;
  margin: 0;
  max-width: none;
  padding: 30px;
  width: 100%;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  margin: 0;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.45rem;
}

h3 {
  font-size: 1.05rem;
}

p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.grid {
  display: grid;
  gap: 18px;
}

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

.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-forms {
  align-items: start;
}

.admin-forms .panel {
  align-content: start;
}

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

.panel {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.dashboard-hero {
  align-items: end;
  background:
    linear-gradient(90deg, rgba(21, 50, 74, 0.76), rgba(21, 50, 74, 0.25) 48%, rgba(21, 50, 74, 0.03)),
    url("/static/assets/teen-learning-hero.webp") center / cover no-repeat;
  border: 1px solid #b8e8ee;
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  min-height: 340px;
  overflow: hidden;
  padding: 28px;
}

.hero-copy {
  display: grid;
  gap: 10px;
  max-width: 430px;
}

.hero-copy h1 {
  color: #ffffff;
  font-size: 2.75rem;
  line-height: 1;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}

.hero-copy p {
  color: #eafcff;
  font-weight: 750;
}

.hero-badge {
  background: #fff0b8;
  color: #8a5700;
  justify-self: start;
}

.privacy-panel {
  align-items: start;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  padding: 20px;
}

.privacy-panel h2 {
  margin-top: 10px;
}

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

.privacy-points span {
  background: #f6fbff;
  border: 1px solid #dff2ff;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 750;
  padding: 12px;
}

.card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.stat {
  align-content: center;
  border: 0;
  min-height: 116px;
}

.stat strong {
  font-size: 2rem;
}

.stat-teal {
  background: #dbfff6;
}

.stat-teal strong {
  color: #067a72;
}

.stat-coral {
  background: #ffe2e8;
}

.stat-coral strong {
  color: #b91c47;
}

.stat-yellow {
  background: #fff2bf;
}

.stat-yellow strong {
  color: #8a5700;
}

label {
  color: #344054;
  display: grid;
  gap: 7px;
  font-size: 0.92rem;
  font-weight: 700;
}

.check-row {
  align-items: center;
  background: #f6fbff;
  border: 1px solid #dff2ff;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  padding: 10px 12px;
}

.check-row input {
  min-height: auto;
  width: auto;
}

input,
select,
textarea {
  background: #fbfeff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

textarea {
  line-height: 1.45;
  min-height: 138px;
  resize: vertical;
}

.primary,
.accent,
.danger {
  border-radius: 8px;
  color: #ffffff;
  font-weight: 800;
  height: 42px;
  padding: 0 16px;
}

.primary {
  background: var(--brand);
}

.primary:hover {
  background: var(--brand-strong);
}

.accent {
  background: var(--accent);
}

.danger {
  background: #b91c47;
}

.actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.list-row {
  align-items: center;
  border-bottom: 1px solid #e5f1f5;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  padding: 13px 0;
}

.list-row:last-child {
  border-bottom: 0;
}

.profile-list {
  display: grid;
  gap: 14px;
}

.profile-list div {
  background: #f6fbff;
  border: 1px solid #dff2ff;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 12px;
}

.profile-list strong {
  overflow-wrap: anywhere;
}

.credential-panel {
  border-color: #f5b83f;
  background: #fffdf7;
}

.credential-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.credential-grid div {
  background: #ffffff;
  border: 1px solid #ffe0a3;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.credential-grid strong {
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.badge {
  background: #fff3d7;
  border-radius: 999px;
  color: #7a4b00;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 800;
  min-height: 26px;
  padding: 4px 9px;
}

.badge.green {
  background: #dbfff6;
  color: var(--brand-strong);
}

.badge.blue {
  background: #dff2ff;
  color: #1e40af;
}

.message {
  border-radius: 8px;
  display: none;
  font-weight: 750;
  padding: 12px 14px;
}

.message.show {
  display: block;
}

.message.ok {
  background: #dbfff6;
  color: var(--brand-strong);
}

.message.error {
  background: #ffe3e1;
  color: #9f1239;
}

.study-card {
  align-items: center;
  display: grid;
  gap: 18px;
  justify-items: center;
  background:
    linear-gradient(180deg, #ffffff, #f6fdff);
  min-height: 320px;
  text-align: center;
}

.prompt {
  color: var(--ink);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.answer-result {
  min-height: 56px;
}

.leaderboard-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 42px minmax(140px, 1fr) repeat(6, minmax(74px, auto));
  padding: 12px 0;
}

.leaderboard-row:last-child {
  border-bottom: 0;
}

.prize-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 42px 1fr;
  padding: 12px 0;
}

.prize-row:last-child {
  border-bottom: 0;
}

.rank {
  align-items: center;
  background: #fff0b8;
  border-radius: 8px;
  display: grid;
  font-weight: 900;
  height: 36px;
  place-items: center;
}

.login-wrap {
  align-items: stretch;
  background:
    linear-gradient(135deg, #030616 0%, #080038 48%, #001333 100%);
  color: #ffffff;
  min-height: 100vh;
  overflow: hidden;
  padding: 26px;
  position: relative;
}

.login-wrap::before {
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.13) 1px, transparent 1px);
  background-size: 58px 58px;
  content: "";
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  position: absolute;
}

.landing-shell {
  display: grid;
  gap: 24px;
  grid-template-rows: auto 1fr auto;
  margin: 0 auto;
  max-width: 1520px;
  min-height: calc(100vh - 52px);
  position: relative;
  width: 100%;
  z-index: 1;
}

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

.landing-nav,
.landing-main,
.stat-ribbon {
  position: relative;
  z-index: 2;
}

.bg-doodles span {
  display: block;
  position: absolute;
}

.bg-dot {
  background: #22e7ff;
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(34, 231, 255, 0.7);
  height: 5px;
  width: 5px;
}

.dot-a {
  left: 30%;
  top: 13%;
}

.dot-b {
  background: #c44cff;
  box-shadow: 0 0 16px rgba(196, 76, 255, 0.75);
  left: 35%;
  top: 20%;
}

.dot-c {
  left: 2%;
  top: 58%;
}

.dot-d {
  background: #a855f7;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.7);
  left: 1.6%;
  top: 80%;
}

.dot-e {
  left: 97%;
  top: 62%;
}

.bg-pixel {
  background: #30e4ff;
  border-radius: 3px;
  box-shadow: 0 0 16px rgba(48, 228, 255, 0.62);
  height: 9px;
  transform: rotate(-12deg);
  width: 9px;
}

.pixel-a {
  left: 16%;
  top: 62%;
}

.pixel-b {
  left: 0.9%;
  top: 95%;
}

.pixel-c {
  right: 1.2%;
  top: 82%;
}

.bg-squiggle {
  border: 3px solid transparent;
  height: 92px;
  width: 92px;
}

.bg-squiggle::before,
.bg-squiggle::after {
  content: "";
  position: absolute;
}

.squiggle-left {
  left: -20px;
  top: 86px;
}

.squiggle-left::before {
  border: 3px solid #a855f7;
  border-bottom-color: transparent;
  border-right-color: transparent;
  border-radius: 58% 0 0 0;
  height: 82px;
  transform: rotate(-30deg);
  width: 82px;
}

.squiggle-left::after {
  background: #a855f7;
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.6);
  height: 4px;
  left: 82px;
  top: 24px;
  width: 4px;
}

.squiggle-right {
  right: -22px;
  top: 25%;
  transform: rotate(16deg);
}

.squiggle-right::before {
  border: 4px solid #8b5cf6;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-radius: 0 60% 0 0;
  height: 105px;
  width: 105px;
}

.squiggle-right::after {
  background: #a855f7;
  border: 3px solid #8b5cf6;
  border-radius: 999px;
  height: 12px;
  right: 2px;
  top: 10px;
  width: 12px;
}

.bg-arrow {
  height: 80px;
  width: 132px;
}

.bg-arrow::before,
.bg-arrow::after {
  content: "";
  position: absolute;
}

.arrow-left {
  left: -4px;
  top: 62%;
}

.arrow-left::before {
  border: 3px solid #67f8ff;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 90px 0;
  height: 52px;
  transform: rotate(8deg);
  width: 112px;
}

.arrow-left::after {
  border-right: 3px solid #67f8ff;
  border-top: 3px solid #67f8ff;
  height: 18px;
  left: 102px;
  top: 43px;
  transform: rotate(52deg);
  width: 18px;
}

.arrow-top {
  right: 43%;
  top: 9%;
  transform: rotate(-24deg);
}

.arrow-top::before {
  background: linear-gradient(90deg, transparent, #8b5cf6);
  border-radius: 999px;
  height: 3px;
  left: 10px;
  top: 36px;
  width: 86px;
}

.arrow-top::after {
  border-right: 7px solid transparent;
  border-top: 7px solid #8b5cf6;
  height: 0;
  left: 94px;
  top: 32px;
  transform: rotate(-20deg);
  width: 0;
}

.bg-ring {
  border: 4px solid #a855f7;
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.5);
  height: 18px;
  width: 18px;
}

.ring-right {
  right: -4px;
  top: 18%;
}

.bg-bolt {
  background: #7cf59a;
  clip-path: polygon(45% 0, 70% 0, 57% 38%, 82% 38%, 33% 100%, 45% 52%, 20% 52%);
  filter: drop-shadow(0 0 9px rgba(124, 245, 154, 0.65));
  height: 26px;
  right: 2.5%;
  top: 22%;
  width: 16px;
}

.bg-burst {
  height: 72px;
  right: 33%;
  top: 8%;
  width: 92px;
}

.bg-burst::before,
.bg-burst::after {
  background: #ffd84f;
  border-radius: 999px;
  box-shadow:
    28px 22px 0 #ffd84f,
    48px 34px 0 #ffd84f;
  content: "";
  height: 4px;
  left: 10px;
  position: absolute;
  top: 20px;
  transform: rotate(-70deg);
  width: 28px;
}

.bg-burst::after {
  box-shadow: none;
  left: 48px;
  top: 14px;
  transform: rotate(22deg);
  width: 32px;
}

.app-doodles {
  opacity: 0.42;
  position: fixed;
}

.shell > .bg-doodles {
  z-index: 0;
}

.app-doodles .arrow-top,
.app-doodles .squiggle-right,
.app-doodles .bolt-card,
.app-doodles .burst-top {
  display: none;
}

.landing-nav {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: auto 1fr auto;
  min-height: 64px;
}

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

.ed-logo {
  align-items: center;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #0ea5e9, #5b5cff 52%, #d51cff);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 17px;
  box-shadow: 0 16px 34px rgba(44, 115, 255, 0.35), inset 0 0 18px rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: grid;
  font-size: 1.25rem;
  font-weight: 950;
  height: 54px;
  letter-spacing: 0;
  place-items: center;
}

.landing-brand strong {
  color: #ffffff;
  font-size: 1.75rem;
  letter-spacing: 0;
}

.landing-brand span,
.auth-card h2 span {
  color: #18d5ff;
}

.landing-links {
  align-items: center;
  display: flex;
  gap: 46px;
  justify-content: center;
}

.landing-links button,
.landing-more,
.auth-link {
  background: transparent;
  color: #f5f7ff;
  height: 44px;
  padding: 0;
}

.landing-links button {
  font-weight: 760;
}

.landing-links span {
  color: #13d8ff;
  font-size: 1.45rem;
}

.landing-more {
  border: 1px solid rgba(173, 190, 255, 0.25);
  border-radius: 13px;
  justify-self: end;
  min-width: 150px;
  padding: 0 22px;
}

.landing-main {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 410px);
}

.landing-copy {
  display: grid;
  gap: 24px;
  min-width: 0;
  position: relative;
}

.landing-copy h1 {
  color: #ffffff;
  font-size: clamp(3.5rem, 7vw, 6.25rem);
  line-height: 0.96;
  max-width: 600px;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.landing-copy h1 span {
  background: linear-gradient(90deg, #c544ff, #346dff 48%, #13e8ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing-copy > p {
  color: #f1f5ff;
  font-size: 1.1rem;
  font-weight: 650;
  max-width: 460px;
}

.doodle {
  color: #ffd84f;
  font-size: 4rem;
  font-weight: 900;
  opacity: 0.95;
  position: absolute;
  transform: rotate(-14deg);
}

.doodle-crown {
  left: 370px;
  top: 68px;
}

.doodle-arrow {
  color: #67f8ff;
  left: -48px;
  top: 410px;
}

.hero-composition {
  min-height: 360px;
  position: absolute;
  right: -26px;
  top: 52px;
  width: min(55vw, 640px);
  z-index: 0;
}

.hero-photo {
  border: 1px solid rgba(80, 120, 255, 0.38);
  border-radius: 999px 999px 130px 130px;
  box-shadow: 0 28px 70px rgba(17, 24, 99, 0.65);
  height: 330px;
  margin-left: auto;
  max-width: 590px;
  overflow: hidden;
  position: relative;
}

.hero-photo::after {
  background: linear-gradient(180deg, rgba(3, 6, 22, 0) 54%, rgba(3, 6, 22, 0.45));
  content: "";
  inset: 0;
  position: absolute;
}

.hero-photo img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.level-card {
  align-items: center;
  background: rgba(11, 17, 82, 0.88);
  border: 1px solid rgba(63, 108, 255, 0.55);
  border-radius: 24px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 16px;
  grid-template-columns: 94px 1fr auto;
  margin: -42px 18px 0 auto;
  max-width: 585px;
  padding: 14px 22px 14px 14px;
  position: relative;
}

.avatar-badge {
  align-items: center;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #1b4dff, #7e2dff);
  border: 4px solid #ffd84f;
  border-radius: 24px;
  display: grid;
  place-items: center;
}

.avatar-badge span {
  align-items: center;
  background: #10255c;
  border-radius: 20px;
  color: #ffffff;
  display: grid;
  font-weight: 950;
  height: 62px;
  place-items: center;
  width: 62px;
}

.level-info {
  display: grid;
  gap: 7px;
}

.level-info h2 {
  color: #ffffff;
  font-size: 1.25rem;
}

.level-info strong,
.streak span {
  color: #ffffff;
}

.level-info small,
.streak small {
  color: #c9d7ff;
}

.xp-line {
  background: rgba(39, 60, 137, 0.75);
  border-radius: 999px;
  height: 9px;
  overflow: hidden;
}

.xp-line span {
  background: linear-gradient(90deg, #0ea5ff, #bc3cff, #77f6ff);
  border-radius: inherit;
  display: block;
  height: 100%;
  width: 82%;
}

.streak {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  display: grid;
  gap: 3px;
  justify-items: center;
  padding-left: 18px;
}

.streak span {
  font-size: 1.8rem;
  font-weight: 900;
}

.landing-cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 260px;
  max-width: 980px;
}

.landing-card {
  background: rgba(14, 25, 89, 0.76);
  border: 1px solid rgba(91, 122, 255, 0.58);
  border-radius: 24px;
  box-shadow: inset 0 0 28px rgba(40, 105, 255, 0.18), 0 20px 48px rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 9px;
  min-height: 196px;
  overflow: hidden;
  padding: 22px 132px 18px 20px;
  position: relative;
}

.landing-card .step {
  align-items: center;
  background: linear-gradient(135deg, #13e8ff, #6a4dff);
  border-radius: 999px;
  color: #07102e;
  display: inline-grid;
  font-weight: 950;
  height: 30px;
  place-items: center;
  width: 30px;
}

.landing-card h3 {
  color: #ffffff;
  font-size: 1.15rem;
}

.landing-card p {
  color: #edf4ff;
  font-weight: 560;
  line-height: 1.38;
}

.landing-card button {
  align-self: end;
  background: rgba(88, 64, 214, 0.86);
  border: 1px solid rgba(134, 174, 255, 0.48);
  border-radius: 12px;
  color: #ffffff;
  font-weight: 820;
  height: 40px;
  justify-self: start;
  padding: 0 18px;
}

.card-visual {
  align-items: center;
  bottom: 20px;
  color: #102255;
  display: grid;
  font-weight: 900;
  justify-items: center;
  position: absolute;
  right: 20px;
  text-align: center;
}

.card-visual small {
  color: #64718d;
  font-weight: 800;
}

.phone-card,
.vocab-card {
  background: #f8fbff;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  height: 108px;
  transform: rotate(8deg);
  width: 92px;
}

.phone-card {
  border: 7px solid #233767;
  outline: 4px solid rgba(56, 234, 255, 0.6);
}

.vocab-card {
  background: linear-gradient(160deg, #ffffff, #f5edff);
  transform: rotate(10deg);
}

.swords-card {
  color: #9feaff;
  font-size: 5rem;
  text-shadow: 0 0 28px rgba(36, 211, 255, 0.75);
}

.auth-card {
  align-self: center;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 28px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
  color: #1d2944;
  display: grid;
  gap: 16px;
  padding: 34px;
}

.auth-card .auth-logo {
  height: 88px;
  justify-self: center;
}

.auth-card h2 {
  color: #162242;
  font-size: 2rem;
  text-align: center;
}

.auth-card > p {
  color: #53627c;
  margin-top: -10px;
  text-align: center;
}

.auth-tabs {
  background: #f3f6fb;
  border: 1px solid #dfe7f3;
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 3px;
}

.auth-tabs button {
  background: transparent;
  border-radius: 9px;
  color: #53627c;
  font-weight: 850;
  height: 40px;
}

.auth-tabs button.active {
  background: linear-gradient(90deg, #2f8cff, #be21ef);
  box-shadow: 0 12px 20px rgba(54, 119, 255, 0.24);
  color: #ffffff;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-card label {
  color: #344054;
}

.auth-input {
  align-items: center;
  background: #f9fbff;
  border: 1px solid #dce7f5;
  border-radius: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: 24px 1fr;
  min-height: 48px;
  padding: 0 14px;
}

.auth-input input {
  background: transparent;
  border: 0;
  min-height: 46px;
  padding: 0;
}

.auth-input input:focus {
  outline: 0;
}

.auth-row {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.remember-row {
  align-items: center;
  color: #52617a;
  display: inline-flex;
  font-size: 0.85rem;
  gap: 8px;
}

.remember-row input {
  accent-color: #3b82f6;
  min-height: auto;
  width: auto;
}

.auth-link {
  color: #5b21d9;
  font-size: 0.86rem;
  font-weight: 850;
}

.auth-link.centered {
  justify-self: center;
}

.auth-primary {
  background: linear-gradient(90deg, #0f91ff, #ca20ec);
  border-radius: 10px;
  box-shadow: 0 16px 28px rgba(77, 103, 255, 0.27);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  height: 50px;
  padding: 0 22px;
  width: 100%;
}

.landing-credentials {
  background: #eef8ff;
  border: 1px solid #c9eaff;
  border-radius: 12px;
  color: #18324c;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.landing-credentials strong {
  color: #0f3a73;
}

.landing-credentials div {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 70px 1fr;
}

.landing-credentials span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 850;
}

.landing-credentials code {
  background: #ffffff;
  border: 1px solid #dce7f5;
  border-radius: 8px;
  color: #152238;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
  padding: 7px 8px;
}

.auth-divider {
  align-items: center;
  color: #66728a;
  display: grid;
  font-size: 0.88rem;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
}

.auth-divider::before,
.auth-divider::after {
  background: #dfe7f3;
  content: "";
  height: 1px;
}

.social-row {
  display: flex;
  gap: 28px;
  justify-content: center;
}

.social-button {
  background: #f8fbff;
  border: 1px solid #dfe7f3;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(20, 33, 61, 0.08);
  font-size: 1.35rem;
  height: 58px;
  width: 58px;
}

.auth-card .message {
  margin: 0;
}

.stat-ribbon {
  align-items: center;
  background: rgba(7, 25, 86, 0.86);
  border: 1px solid rgba(42, 158, 255, 0.45);
  border-radius: 18px;
  box-shadow: inset 0 0 28px rgba(43, 130, 255, 0.13);
  display: grid;
  gap: 18px;
  grid-template-columns: 1.05fr 1fr 1fr 1.6fr 1.35fr;
  min-height: 76px;
  padding: 12px 28px;
}

.stat-ribbon div {
  align-items: center;
  color: #ffffff;
  display: grid;
  gap: 2px 12px;
  grid-template-columns: auto 1fr;
}

.stat-ribbon span {
  font-size: 1.65rem;
  font-weight: 900;
  grid-row: span 2;
}

.stat-ribbon strong {
  color: #ffffff;
  font-size: 1rem;
}

.stat-ribbon small {
  color: #dbeafe;
}

.stat-ribbon .badge-strip {
  border-left: 1px solid rgba(255, 255, 255, 0.13);
  padding-left: 20px;
}

.stat-ribbon .badge-strip span {
  font-size: 1.25rem;
  grid-row: auto;
}

.ready-note {
  color: #67f8ff !important;
  display: block !important;
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-size: 1.15rem;
  justify-self: end;
}

@media (max-width: 1180px) {
  .landing-main {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .auth-card {
    justify-self: center;
    max-width: 520px;
    width: 100%;
  }

  .hero-composition {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
  }

  .landing-cards {
    margin-top: 0;
  }

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

@media (max-width: 780px) {
  .login-wrap {
    padding: 16px;
  }

  .landing-shell {
    min-height: calc(100vh - 32px);
  }

  .landing-nav {
    grid-template-columns: 1fr;
  }

  .landing-links {
    gap: 10px;
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .landing-links button {
    flex: 0 0 auto;
  }

  .landing-more {
    justify-self: start;
  }

  .landing-copy h1 {
    font-size: 3.25rem;
  }

  .landing-copy > p {
    font-size: 1rem;
  }

  .doodle {
    display: none;
  }

  .bg-doodles {
    opacity: 0.45;
  }

  .squiggle-right,
  .arrow-top,
  .burst-top,
  .bolt-card,
  .dot-e,
  .pixel-c {
    display: none !important;
  }

  .hero-photo {
    border-radius: 32px;
    height: 270px;
  }

  .level-card {
    grid-template-columns: 70px 1fr;
    margin: -32px 8px 0;
  }

  .avatar-badge span {
    height: 46px;
    width: 46px;
  }

  .streak {
    border-left: 0;
    grid-column: 2;
    justify-items: start;
    padding-left: 0;
  }

  .landing-cards,
  .stat-ribbon {
    grid-template-columns: 1fr;
  }

  .landing-card {
    padding-right: 118px;
  }

  .auth-card {
    border-radius: 22px;
    padding: 24px;
  }

  .auth-row {
    align-items: start;
    display: grid;
  }

  .ready-note {
    justify-self: start;
  }
}

.hidden {
  display: none !important;
}

img.ed-logo,
img.brand-mark {
  background: transparent;
  border: 0;
  box-shadow: none;
  display: block;
  object-fit: contain;
}

.landing-brand img.ed-logo {
  height: 64px;
  width: 64px;
}

.auth-card img.auth-logo {
  height: 112px;
  width: 112px;
}

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

@media (max-width: 860px) {
  .topbar {
    align-items: stretch;
    display: grid;
    padding: 14px;
  }

  .brand,
  .user-chip {
    min-width: 0;
  }

  .nav {
    justify-content: start;
  }

  .content {
    padding: 18px;
  }

  .login-stage {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 280px;
  }

  .dashboard-hero {
    background:
      linear-gradient(180deg, rgba(21, 50, 74, 0.16), rgba(21, 50, 74, 0.78)),
      url("/static/assets/teen-learning-hero.webp") center / cover no-repeat;
    min-height: 430px;
  }

  .hero-copy h1 {
    font-size: 2.35rem;
  }

  .privacy-panel,
  .privacy-points,
  .credential-grid {
    grid-template-columns: 1fr;
  }

  .two,
  .three {
    grid-template-columns: 1fr;
  }

  .leaderboard-row {
    grid-template-columns: 38px 1fr;
  }

  .leaderboard-row .meta {
    grid-column: 2;
  }
}

/* Logged-in app theme: mirrors the neon EasyDigga landing page. */
body {
  background: #030616;
}

.shell {
  background:
    radial-gradient(circle at 18% 10%, rgba(88, 80, 255, 0.28), transparent 34%),
    radial-gradient(circle at 88% 14%, rgba(16, 185, 255, 0.2), transparent 30%),
    linear-gradient(135deg, #030616 0%, #080038 48%, #001333 100%);
  color: #f8fbff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.shell::before {
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.12) 1px, transparent 1px);
  background-size: 58px 58px;
  content: "";
  inset: 0;
  opacity: 0.17;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.shell > * {
  position: relative;
  z-index: 1;
}

.topbar {
  background: rgba(4, 8, 36, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(107, 138, 255, 0.28);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  min-height: 82px;
  padding: 0 36px;
}

.brand {
  min-width: 230px;
}

.brand-mark {
  background: linear-gradient(135deg, #0ea5e9, #5b5cff 52%, #d51cff);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(44, 115, 255, 0.35), inset 0 0 18px rgba(255, 255, 255, 0.22);
  height: 54px;
}

.brand-name {
  color: #ffffff;
  font-size: 1.45rem;
}

.brand-name span {
  color: #18d5ff;
}

.nav {
  gap: 12px;
}

.nav button,
.ghost-button {
  background: rgba(18, 31, 92, 0.72);
  border: 1px solid rgba(110, 150, 255, 0.28);
  border-radius: 13px;
  color: #f4f7ff;
  font-weight: 820;
  height: 44px;
  padding: 0 16px;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nav button:hover,
.ghost-button:hover {
  background: rgba(32, 55, 145, 0.84);
  border-color: rgba(88, 210, 255, 0.52);
  transform: translateY(-1px);
}

.nav button.active {
  background: linear-gradient(90deg, #0f91ff, #ca20ec);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 14px 28px rgba(89, 73, 255, 0.32);
  color: #ffffff;
  font-weight: 900;
}

.nav-icon {
  color: #34e7ff;
  font-size: 1.1rem;
  line-height: 1;
}

.user-chip {
  min-width: 250px;
}

.user-chip span {
  background: rgba(13, 24, 70, 0.72);
  border: 1px solid rgba(110, 150, 255, 0.22);
  border-radius: 999px;
  color: #dbeafe;
  max-width: 210px;
  padding: 10px 14px;
}

.content {
  max-width: 1520px;
  padding: 32px 36px 64px;
}

#view > .grid {
  gap: 22px;
}

#view > .grid > h1,
.shell h1 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.shell h2,
.shell h3,
.shell strong {
  color: #ffffff;
}

.shell p,
.shell .meta {
  color: #c9d7ff;
}

.shell .panel,
.shell .card,
.privacy-panel {
  background: rgba(9, 18, 71, 0.76);
  border: 1px solid rgba(91, 122, 255, 0.42);
  border-radius: 24px;
  box-shadow: inset 0 0 30px rgba(40, 105, 255, 0.14), 0 24px 58px rgba(0, 0, 0, 0.28);
}

.shell .panel {
  gap: 18px;
  padding: 24px;
}

.dashboard-hero {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(3, 6, 22, 0.9), rgba(8, 19, 82, 0.62) 45%, rgba(3, 6, 22, 0.16)),
    url("/static/assets/teen-learning-hero.webp") center / cover no-repeat;
  border: 1px solid rgba(88, 210, 255, 0.5);
  border-radius: 30px;
  box-shadow: 0 32px 78px rgba(0, 0, 0, 0.36);
  min-height: 420px;
  padding: 38px;
  position: relative;
}

.dashboard-hero::after {
  background:
    linear-gradient(135deg, rgba(202, 32, 236, 0.18), transparent 35%),
    radial-gradient(circle at 70% 15%, rgba(52, 231, 255, 0.24), transparent 22%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-copy {
  gap: 14px;
  max-width: 560px;
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  background: linear-gradient(90deg, #ffffff 0%, #36a3ff 46%, #18e6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(3rem, 6vw, 5.2rem);
  max-width: 620px;
  text-shadow: none;
}

.hero-copy p {
  color: #f1f5ff;
  font-weight: 760;
  max-width: 580px;
}

.hero-badge,
.badge {
  background: rgba(42, 218, 255, 0.16);
  border: 1px solid rgba(82, 235, 255, 0.38);
  color: #7df4ff;
}

.badge.green {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(74, 222, 128, 0.45);
  color: #86efac;
}

.badge.blue {
  background: rgba(59, 130, 246, 0.18);
  border-color: rgba(96, 165, 250, 0.5);
  color: #93c5fd;
}

.privacy-panel {
  background: rgba(255, 255, 255, 0.08);
}

.privacy-panel h2 {
  color: #ffffff;
}

.privacy-points span,
.profile-list div,
.credential-grid div,
.check-row {
  background: rgba(15, 30, 91, 0.82);
  border: 1px solid rgba(91, 122, 255, 0.34);
  color: #edf4ff;
}

.stat {
  border: 1px solid rgba(113, 156, 255, 0.36);
  min-height: 132px;
  overflow: hidden;
  position: relative;
}

.stat::after {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 55%);
  content: "";
  height: 150px;
  position: absolute;
  right: -48px;
  top: -56px;
  width: 150px;
}

.stat-teal {
  background: linear-gradient(135deg, rgba(19, 232, 255, 0.24), rgba(22, 34, 88, 0.84));
}

.stat-teal strong,
.stat-coral strong,
.stat-yellow strong {
  color: #ffffff;
}

.stat-coral {
  background: linear-gradient(135deg, rgba(202, 32, 236, 0.24), rgba(22, 34, 88, 0.84));
}

.stat-yellow {
  background: linear-gradient(135deg, rgba(255, 216, 79, 0.24), rgba(22, 34, 88, 0.84));
}

.shell label {
  color: #edf4ff;
}

.shell input,
.shell select,
.shell textarea {
  background: rgba(248, 251, 255, 0.96);
  border: 1px solid rgba(173, 190, 255, 0.58);
  border-radius: 12px;
  color: #14213d;
  min-height: 48px;
}

.shell textarea {
  min-height: 160px;
}

.shell input:focus,
.shell select:focus,
.shell textarea:focus {
  border-color: #34e7ff;
  box-shadow: 0 0 0 3px rgba(52, 231, 255, 0.18);
  outline: 0;
}

.primary,
.accent,
.danger {
  border-radius: 12px;
  font-weight: 900;
  height: 48px;
}

.primary {
  background: linear-gradient(90deg, #0f91ff, #ca20ec);
  box-shadow: 0 16px 28px rgba(77, 103, 255, 0.25);
}

.primary:hover {
  background: linear-gradient(90deg, #35a6ff, #d339f3);
}

.accent {
  background: linear-gradient(90deg, #6d5cff, #18d5ff);
}

.danger {
  background: linear-gradient(90deg, #e11d48, #fb7185);
}

.list-row,
.leaderboard-row,
.prize-row {
  border-bottom: 1px solid rgba(110, 150, 255, 0.18);
}

.list-row {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(110, 150, 255, 0.16);
  border-radius: 16px;
  margin-bottom: 10px;
  padding: 14px;
}

.list-row:last-child {
  border-bottom: 1px solid rgba(110, 150, 255, 0.16);
}

.credential-panel {
  background: rgba(32, 21, 88, 0.84);
  border-color: rgba(255, 216, 79, 0.48);
}

.credential-grid strong {
  color: #fff7c2;
}

.study-card {
  background:
    radial-gradient(circle at 72% 10%, rgba(24, 213, 255, 0.2), transparent 32%),
    rgba(9, 18, 71, 0.82);
  min-height: 380px;
}

.study-timer-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.study-timer {
  background: rgba(24, 213, 255, 0.12);
  border: 1px solid rgba(82, 235, 255, 0.42);
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(24, 213, 255, 0.18);
  color: #7df4ff;
  font-variant-numeric: tabular-nums;
  font-weight: 950;
  min-width: 112px;
  padding: 8px 13px;
  text-align: center;
}

.prompt {
  color: #ffffff;
  font-size: clamp(2.4rem, 7vw, 5rem);
  text-shadow: 0 0 28px rgba(24, 213, 255, 0.22);
}

.answer-label {
  display: grid;
  gap: 8px;
  max-width: 520px;
  width: min(100%, 520px);
}

.study-card .answer-label input {
  font-size: 1.15rem;
  font-weight: 800;
  min-height: 58px;
  text-align: center;
}

.study-actions {
  justify-content: center;
  width: min(100%, 520px);
}

.study-actions button {
  min-width: 148px;
}

.answer-result .card {
  background: rgba(255, 255, 255, 0.09);
  max-width: 720px;
  text-align: left;
}

.rank {
  background: linear-gradient(135deg, #ffd84f, #ff9f1c);
  border-radius: 12px;
  color: #1a2142;
}

@media (max-width: 980px) {
  .topbar {
    align-items: stretch;
    display: grid;
    gap: 14px;
    padding: 16px;
  }

  .brand,
  .user-chip {
    min-width: 0;
  }

  .nav {
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .nav button {
    flex: 0 0 auto;
  }

  .content {
    padding: 20px 16px 42px;
  }

  .dashboard-hero {
    min-height: 440px;
    padding: 24px;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .privacy-panel,
  .privacy-points,
  .credential-grid,
  .two,
  .three {
    grid-template-columns: 1fr;
  }

  .leaderboard-row {
    grid-template-columns: 38px 1fr;
  }

  .leaderboard-row .meta {
    grid-column: 2;
  }

  .study-card {
    align-content: start;
    min-height: 0;
    padding: 22px 16px;
  }

  .prompt {
    font-size: clamp(2.7rem, 15vw, 4.4rem);
  }

  .answer-label,
  .study-actions {
    max-width: none;
    width: 100%;
  }

  .study-card .answer-label input {
    font-size: 1.25rem;
    min-height: 62px;
    text-align: left;
  }

  .study-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .study-actions button {
    min-height: 54px;
    width: 100%;
  }
}
