:root {
  color-scheme: light;
  font-family: "DM Sans", sans-serif;
  color: #272844;
  background: #f6f7ff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #272844;
  --muted: #888aa5;
  --purple: #7768e8;
  --purple-dark: #5b4bce;
  --line: #ececf5;
  --mint: #ddf7eb;
  --mint-ink: #21865c;
  --rose: #fff0f0;
  --rose-ink: #d65061;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 8% 12%, rgba(221, 225, 255, 0.48), transparent 29rem),
    radial-gradient(ellipse at 92% 48%, rgba(230, 224, 255, 0.42), transparent 31rem),
    #f8f8ff;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.page-shell {
  width: min(100% - 48px, 1040px);
  margin: 0 auto;
}

.milestone-toast {
  position: fixed;
  z-index: 1100;
  top: max(18px, env(safe-area-inset-top));
  left: 50%;
  width: min(calc(100% - 32px), 440px);
  padding: 14px 20px;
  border: 1px solid #7568bd;
  border-radius: 16px;
  background: linear-gradient(120deg, #393451, #29283d);
  box-shadow: 0 14px 36px rgba(8, 8, 20, 0.34), 0 0 24px rgba(141, 124, 237, 0.2);
  color: #f4edbd;
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  transform: translate(-50%, -14px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 220ms ease;
}

.milestone-toast[hidden] {
  display: none;
}

.milestone-toast.is-visible {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
}

.topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(118, 112, 173, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: "Nunito", sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.6px;
  text-decoration: none;
}

.brand-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 13px;
  background: #eceaff;
  font-size: 19px;
}

.brand-accent {
  color: var(--purple);
}

.topbar-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #85869f;
  font-size: 12px;
  font-weight: 600;
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #61c89a;
  box-shadow: 0 0 0 4px #e4f7ed;
}

.intro {
  position: relative;
  padding: 26px 0 17px;
  text-align: center;
}

.intro-content {
  width: 100%;
}

.intro-game-links {
  position: absolute;
  top: 50%;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transform: translateY(-50%);
}

.sentence-match-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  border: 1px solid rgba(169, 155, 255, 0.35);
  border-radius: 14px;
  background: linear-gradient(135deg, #302d4d, #25243a);
  box-shadow: 0 8px 22px rgba(6, 6, 18, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #e8e4ff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.sentence-match-link:hover {
  border-color: #a99bff;
  background: linear-gradient(135deg, #3a355c, #2b2944);
  box-shadow: 0 11px 26px rgba(6, 6, 18, 0.28), 0 0 18px rgba(169, 155, 255, 0.14);
  transform: translateY(-2px);
}

.sentence-match-link:focus-visible {
  outline: 2px solid #c2b9ff;
  outline-offset: 3px;
}

.sentence-match-icon {
  color: #b8acff;
  font-size: 17px;
  line-height: 1;
}

.sentence-match-arrow {
  color: #a99bff;
  font-size: 16px;
  transition: transform 180ms ease;
}

.sentence-match-link:hover .sentence-match-arrow {
  transform: translateX(3px);
}

.eyebrow,
.modal-eyebrow {
  color: var(--purple);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.eyebrow span {
  margin-right: 5px;
  font-size: 13px;
}

h1,
h2,
p {
  margin-top: 0;
}

.intro h1 {
  margin: 8px 0 5px;
  font-family: "Nunito", sans-serif;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1.05;
}

.intro h1 span {
  color: var(--purple);
}

.intro-copy {
  max-width: 560px;
  margin: 0 auto;
  color: #85869f;
  font-size: 12px;
  line-height: 1.5;
}

.game-card {
  overflow: hidden;
  border: 1px solid rgba(115, 109, 164, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 15px 50px rgba(55, 48, 109, 0.075);
}

.game-toolbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 25px;
  border-bottom: 1px solid #f0f0f6;
}

.stats {
  display: flex;
  gap: 10px;
}

.stat-pill {
  min-width: 119px;
  min-height: 44px;
  display: grid;
  grid-template-columns: 26px auto auto;
  align-items: center;
  column-gap: 7px;
  padding: 7px 12px;
  border-radius: 13px;
}

.timer-pill {
  background: #f3f1ff;
}

.score-pill {
  background: #fff8e9;
}

.stat-icon {
  grid-row: 1;
  font-size: 17px;
  text-align: center;
}

.timer-icon {
  color: #7564db;
  font-size: 22px;
}

.score-icon {
  color: #e6a92b;
}

.stat-label {
  color: #9292a9;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}

.stat-value {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.restart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #e8e7f2;
  border-radius: 11px;
  background: #fff;
  color: #666783;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.restart-button span {
  color: var(--purple);
  font-size: 18px;
  line-height: 1;
}

.restart-button:hover {
  transform: translateY(-1px);
  border-color: #c8c2fa;
  background: #faf9ff;
}

.progress-row {
  padding: 19px 25px 0;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: #70718c;
  font-size: 11px;
  font-weight: 700;
}

.progress-encouragement {
  color: #9a9bb0;
  font-weight: 500;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #f0eff8;
}

.progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b7cf1, #b19cff);
  transition: width 300ms ease;
}

.game-message {
  min-height: 19px;
  margin: 16px 25px 17px;
  color: #9292a8;
  font-size: 12px;
  text-align: center;
}

.game-message.is-error {
  color: var(--rose-ink);
}

.game-message.is-success {
  color: var(--mint-ink);
}

.match-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 0 25px 23px;
}

.word-column {
  min-width: 0;
}

.column-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 11px;
  color: #9292a7;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.language-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.english-dot {
  background: #9183f3;
}

.turkish-dot {
  background: #66caa0;
}

.column-count {
  margin-left: auto;
  color: #afb0c1;
  font-size: 10px;
  letter-spacing: 0;
}

.word-list {
  display: grid;
  gap: 8px;
}

.word-card {
  position: relative;
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid #ececf5;
  border-radius: 11px;
  background: #fafaff;
  color: #42435f;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, opacity 180ms ease;
}

.word-card:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: #cfcafa;
  background: #f7f6ff;
  box-shadow: 0 5px 12px rgba(94, 81, 192, 0.08);
}

.word-card:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(119, 104, 232, 0.38);
  outline-offset: 3px;
}

.word-card.is-selected {
  transform: scale(1.015);
  border-color: #8678ee;
  background: #f1efff;
  box-shadow: 0 0 0 2px rgba(134, 120, 238, 0.12);
  color: #5d4ecc;
}

.word-card.is-matched {
  border-color: #c4ead8;
  background: var(--mint);
  color: var(--mint-ink);
  cursor: default;
  opacity: 0.62;
}

.word-card.is-wrong {
  border-color: #f1b9c0;
  background: var(--rose);
  color: var(--rose-ink);
  animation: shake 500ms ease-in-out;
}

.word-card:disabled {
  cursor: default;
}

.game-card.is-locked .word-card:not(:disabled) {
  cursor: wait;
}

.game-footer {
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 10px 20px;
  border-top: 1px solid #f0f0f6;
  background: #fdfdff;
}

.footer-tip {
  color: #9192a7;
  font-size: 10px;
}

.footer-tip strong {
  color: #d29b26;
}

.footer-divider {
  width: 1px;
  height: 16px;
  background: #e9e9f1;
}

.page-footnote {
  margin: 15px 0 20px;
  color: #a0a0b3;
  font-size: 10px;
  text-align: center;
}

.page-footnote span {
  margin-left: 3px;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 28px, 500px);
  }

  .topbar {
    min-height: 70px;
  }

  .brand {
    gap: 8px;
    font-size: 17px;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .topbar-note {
    font-size: 0;
  }

  .intro {
    padding: 20px 0 15px;
  }

  .sentence-match-link {
    padding: 10px 14px;
    font-size: 11px;
  }

  .intro-game-links {
    position: static;
    flex-flow: row wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    transform: none;
  }

  .sentence-match-link:hover {
    transform: translateY(-2px);
  }

  .intro h1 {
    margin: 6px 0 4px;
    font-size: clamp(21px, 5.8vw, 27px);
    line-height: 1.12;
  }

  .intro-copy {
    max-width: 400px;
    font-size: 11px;
    line-height: 1.4;
  }

  .game-card {
    border-radius: 18px;
  }

  .game-toolbar {
    min-height: 71px;
    padding: 12px 14px;
  }

  .stats {
    gap: 7px;
  }

  .stat-pill {
    min-width: 95px;
    grid-template-columns: 19px auto auto;
    column-gap: 5px;
    padding: 7px 8px;
  }

  .stat-label {
    font-size: 8px;
  }

  .restart-button {
    min-height: 37px;
    gap: 4px;
    padding: 0 9px;
    font-size: 10px;
  }

  .progress-row {
    padding: 16px 15px 0;
  }

  .game-message {
    margin: 14px 13px;
    font-size: 11px;
  }

  .match-columns {
    gap: 10px;
    padding: 0 13px 17px;
  }

  .column-heading {
    gap: 5px;
    font-size: 8px;
    letter-spacing: 1px;
  }

  .word-list {
    gap: 7px;
  }

  .word-card {
    min-height: 42px;
    padding: 8px 9px;
    font-size: clamp(10px, 3.2vw, 12px);
    overflow-wrap: anywhere;
  }

  .game-footer {
    gap: 9px;
    padding: 9px 7px;
  }

  .footer-tip {
    font-size: 8px;
  }

}

@media (max-width: 380px) {
  .page-shell {
    width: calc(100% - 20px);
  }

  .game-toolbar {
    padding-right: 10px;
    padding-left: 10px;
  }

  .stat-pill {
    min-width: 84px;
    grid-template-columns: 16px auto auto;
    padding-right: 6px;
    padding-left: 6px;
  }

}

.sentence-page-main {
  display: grid;
  min-height: min(68vh, 620px);
  place-items: center;
  padding: 32px 0;
}

.sentence-page-card {
  width: min(100%, 680px);
  padding: clamp(28px, 6vw, 54px);
  border: 1px solid #302f45;
  border-radius: 26px;
  background: rgba(27, 27, 42, 0.92);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.26);
  text-align: center;
}

.sentence-page-card .eyebrow {
  margin-bottom: 10px;
}

.sentence-page-card h1 {
  margin-bottom: 10px;
  font-family: "Nunito", sans-serif;
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 900;
  letter-spacing: -1px;
}

.sentence-page-card p {
  margin-bottom: 24px;
  color: #aaa9c2;
  font-size: 14px;
  line-height: 1.6;
}

.sentence-page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid #45435e;
  border-radius: 12px;
  background: #27263b;
  color: #dedcf7;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.sentence-page-back:hover {
  border-color: #8275d7;
  background: #302e4b;
  transform: translateY(-2px);
}

.sentence-page-back:focus-visible {
  outline: 2px solid #c2b9ff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .milestone-toast {
    transition: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:root {
  color-scheme: dark;
  color: #ecebff;
  background: #11121c;
  --ink: #ecebff;
  --muted: #a09fb9;
  --purple: #a99bff;
  --purple-dark: #7968e8;
  --line: #343448;
  --mint: #163a33;
  --mint-ink: #81e0b7;
  --rose: #43242f;
  --rose-ink: #ff98a8;
}

body {
  color: #ecebff;
  background:
    radial-gradient(ellipse at 8% 12%, rgba(67, 58, 139, 0.25), transparent 29rem),
    radial-gradient(ellipse at 92% 48%, rgba(57, 47, 106, 0.2), transparent 31rem),
    #11121c;
}

.topbar {
  border-bottom-color: rgba(170, 162, 229, 0.12);
}

.brand {
  color: #f1efff;
}

.brand-icon,
.timer-pill,
.score-pill {
  background: #25243a;
}

.topbar-note,
.intro-copy,
.game-message,
.column-heading,
.column-count,
.footer-tip,
.page-footnote,
.progress-encouragement {
  color: #aaa9c2;
}

.online-dot {
  box-shadow: 0 0 0 4px #203a34;
}

.game-card {
  border-color: #302f45;
  background: rgba(27, 27, 42, 0.97);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.26);
}

.game-toolbar,
.game-footer {
  border-color: #343348;
}

.stat-label {
  color: #aaa9c1;
}

.stat-value {
  color: #f0efff;
}

.restart-button {
  border-color: #45435e;
  background: #27263b;
  color: #dedcf7;
}

.restart-button:hover {
  border-color: #8275d7;
  background: #302e4b;
}

.progress-label {
  color: #c3c1d8;
}

.progress-track {
  background: #37354d;
}

.word-card {
  border-color: #414057;
  background: linear-gradient(145deg, #302f46, #272639);
  color: #e6e4fb;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 5px 0 #1b1a2a,
    0 9px 16px rgba(0, 0, 0, 0.2);
  transform: perspective(700px) rotateX(3deg);
  transform-style: preserve-3d;
  touch-action: none;
  user-select: none;
}

.word-card:hover:not(:disabled) {
  transform: perspective(700px) rotateX(0deg) translateY(-4px) rotateY(-1deg);
  border-color: #8274d6;
  background: linear-gradient(145deg, #3a3855, #2e2c44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 0 #1b1a2a,
    0 15px 24px rgba(0, 0, 0, 0.3);
}

.word-card.is-selected {
  transform: perspective(700px) rotateX(0deg) translateY(-3px) scale(1.025);
  border-color: #a99bff;
  background: linear-gradient(145deg, #48416d, #35304f);
  box-shadow: 0 0 0 2px rgba(169, 155, 255, 0.22), 0 7px 0 #211f35;
  color: #e7e0ff;
}

.word-card.is-matched {
  border-color: #36785f;
  background: linear-gradient(145deg, #204c40, #17372f);
  box-shadow: inset 0 1px 0 rgba(205, 255, 232, 0.08), 0 4px 0 #10261f;
  color: #9af0c9;
}

.word-card.is-wrong {
  border-color: #a74a60;
  background: linear-gradient(145deg, #542d3c, #3f2634);
  box-shadow: 0 5px 0 #291821;
  color: #ffb5c0;
}

.word-card.is-dragging {
  opacity: 0.23;
}

.word-card.is-drop-target {
  border-color: #76e7bd;
  background: linear-gradient(145deg, #224d46, #193b38);
  box-shadow: 0 0 0 3px rgba(118, 231, 189, 0.23), 0 7px 0 #142b28;
}

.drag-ghost {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  transform: perspective(700px) rotateX(0deg) rotateY(-5deg) scale(1.05);
  border-color: #b1a4ff;
  background: linear-gradient(145deg, #4a416f, #36304f);
  box-shadow: 0 0 0 2px rgba(177, 164, 255, 0.24), 0 18px 35px rgba(0, 0, 0, 0.45);
  opacity: 0.98;
}

.drag-star {
  position: fixed;
  z-index: 1001;
  pointer-events: none;
  color: #ffe48a;
  font-size: 15px;
  text-shadow: 0 0 9px rgba(255, 214, 107, 0.8);
  animation: star-trail 680ms ease-out forwards;
}

.game-footer {
  background: #222131;
}

.footer-tip strong {
  color: #f0c766;
}

.footer-divider {
  background: #444158;
}

@keyframes star-trail {
  0% {
    transform: translate(-50%, -30%) scale(0.4) rotate(-20deg);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -34px) scale(1.2) rotate(25deg);
    opacity: 0;
  }
}

.village-panel {
  margin: 20px 0 28px;
  padding: 19px;
  overflow: hidden;
  border: 1px solid #34344a;
  border-radius: 20px;
  background: linear-gradient(145deg, #211f32, #1b1b29);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.example-panel {
  display: flex;
  align-items: stretch;
  gap: 13px;
  margin-top: 13px;
  padding: 13px 16px;
  border: 1px solid #3b4c47;
  border-radius: 14px;
  background: linear-gradient(115deg, #202e2b, #222333);
  animation: example-arrive 260ms ease-out both;
}

.example-panel[hidden] {
  display: none;
}

.example-marker {
  width: 3px;
  flex: 0 0 3px;
  border-radius: 99px;
  background: linear-gradient(#a8ce88, #6f9b71);
}

.example-content {
  min-width: 0;
}

.example-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.example-label {
  color: #adc78e;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.example-type {
  color: #a9a9be;
  font-size: 8px;
  font-weight: 700;
}

.example-english,
.example-turkish {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
}

.example-english {
  color: #eeedf7;
}

.example-turkish {
  margin-top: 2px;
  color: #aaa9c2;
  font-size: 10px;
}

.village-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px 15px;
}

.village-kicker {
  margin: 0 0 4px;
  color: #aaa0e7;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.6px;
}

.village-title-group h2 {
  margin: 0 0 3px;
  color: #f0efff;
  font-family: "Nunito", sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.35px;
}

.village-description {
  margin: 0;
  color: #aaa9c2;
  font-size: 11px;
  line-height: 1.5;
}

.village-counter {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 132px;
  padding: 10px 13px;
  border: 1px solid #414357;
  border-radius: 13px;
  background: #29293a;
}

.village-counter > svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  color: #9ac986;
}

.village-count-copy {
  display: grid;
  gap: 1px;
}

.village-count-copy strong {
  color: #f1f0ff;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.village-count-copy span {
  color: #aaa9c2;
  font-size: 9px;
  white-space: nowrap;
}

.village-scene {
  aspect-ratio: 1000 / 320;
  overflow: hidden;
  border: 1px solid rgba(183, 190, 168, 0.19);
  border-radius: 14px;
  background: #28373b;
  box-shadow: inset 0 0 35px rgba(8, 13, 17, 0.24);
}

.village-landscape {
  display: block;
  width: 100%;
  height: 100%;
}

.planting-plot {
  fill: #20332b;
  stroke: #8c9b6a;
  stroke-width: 1;
  opacity: 0.56;
}

.planted-tree {
  filter: drop-shadow(0 2px 2px rgba(12, 20, 15, 0.34));
}

.planted-tree.is-growing {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: tree-grow 680ms cubic-bezier(0.2, 0.75, 0.3, 1.18) both;
}

.village-status {
  margin: 11px 2px 0;
  color: #aaa9c2;
  font-size: 10px;
  line-height: 1.5;
}

.city-panel {
  margin: 0 0 28px;
  padding: 19px;
  overflow: hidden;
  border: 1px solid #3a3a4c;
  border-radius: 20px;
  background: linear-gradient(145deg, #242332, #1b1b29);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.city-panel[hidden] {
  display: none;
}

.city-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px 14px;
}

.city-kicker {
  margin: 0 0 4px;
  color: #d2ae7e;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.6px;
}

.city-title-group h2 {
  margin: 0 0 3px;
  color: #f0efff;
  font-family: "Nunito", sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.35px;
}

.city-description {
  max-width: 550px;
  margin: 0;
  color: #aaa9c2;
  font-size: 11px;
  line-height: 1.5;
}

.city-counters {
  display: flex;
  gap: 8px;
}

.city-counter {
  min-width: 72px;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 8px 11px;
  border: 1px solid #484356;
  border-radius: 12px;
  background: #2b2938;
}

.city-counter strong {
  color: #f3dfb7;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.city-counter span {
  color: #aaa9c2;
  font-size: 9px;
}

.apartment-counter strong {
  color: #d5b5a3;
}

.city-progress-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 11px;
  color: #b6b3c5;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.city-progress-row > span {
  flex: 0 0 auto;
}

.city-progress-track {
  height: 6px;
  flex: 1;
  overflow: hidden;
  border-radius: 99px;
  background: #343342;
}

.city-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #bd927d, #e5c796);
  transition: width 300ms ease;
}

.city-scene {
  aspect-ratio: 1000 / 560;
  overflow: hidden;
  border: 1px solid rgba(194, 189, 164, 0.2);
  border-radius: 14px;
  background: #444c4c;
  box-shadow: inset 0 0 35px rgba(8, 13, 17, 0.24);
}

.city-landscape {
  display: block;
  width: 100%;
  height: 100%;
}

.city-plot {
  fill: rgba(174, 172, 132, 0.1);
  stroke: rgba(221, 206, 168, 0.42);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.city-building-shadow {
  fill: #1e2828;
  opacity: 0.55;
}

.house-window {
  fill: #efd89b;
  stroke: #987d68;
  stroke-width: 1.5;
}

.apartment-wall {
  stroke: #705a56;
  stroke-width: 1.5;
}

.apartment-window {
  fill: #f0d99f;
  stroke: #866b61;
  stroke-width: 1;
}

.city-vehicle {
  filter: drop-shadow(0 2px 2px rgba(25, 28, 31, 0.45));
}

.city-vehicle-motion {
  transform-box: view-box;
  animation-duration: 19s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.city-vehicle-east {
  animation-name: city-drive-east;
}

.city-vehicle-west {
  animation-name: city-drive-west;
  animation-duration: 24s;
  animation-delay: -8s;
}

.city-speech-shape {
  fill: #fff8e9;
  stroke: #9c8564;
  stroke-width: 1.5;
  filter: drop-shadow(0 3px 4px rgba(12, 15, 20, 0.35));
}

.city-speech-tail {
  fill: #fff8e9;
  stroke: #9c8564;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.city-speech-text {
  fill: #393849;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-anchor: middle;
}

.city-speech-bubble.is-appearing {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: city-bubble-appear 220ms ease-out both;
}

.city-speech-bubble.is-leaving {
  animation: city-bubble-leave 220ms ease-in both;
}

.city-building.is-constructing {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: city-rise 650ms cubic-bezier(0.2, 0.75, 0.3, 1.15) both;
}

.city-status {
  margin: 11px 2px 0;
  color: #aaa9c2;
  font-size: 10px;
  line-height: 1.5;
}

.space-panel {
  margin: 0 0 28px;
  padding: 19px;
  overflow: hidden;
  border: 1px solid #353b54;
  border-radius: 20px;
  background: linear-gradient(145deg, #1f2235, #151a2a);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.space-panel[hidden] {
  display: none;
}

.space-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px 14px;
}

.space-kicker {
  margin: 0 0 4px;
  color: #8fc9e3;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.6px;
}

.space-title-group h2 {
  margin: 0 0 3px;
  color: #eff3ff;
  font-family: "Nunito", sans-serif;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.35px;
}

.space-description {
  max-width: 550px;
  margin: 0;
  color: #a8afc6;
  font-size: 11px;
  line-height: 1.5;
}

.space-counters {
  display: flex;
  gap: 8px;
}

.space-counter {
  min-width: 75px;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 8px 11px;
  border: 1px solid #3d4a62;
  border-radius: 12px;
  background: #252b40;
}

.space-counter strong {
  color: #d9edfa;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.space-counter span {
  color: #a8afc6;
  font-size: 9px;
  white-space: nowrap;
}

.orbit-counter strong {
  color: #f1d18a;
}

.space-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
  color: #b5bed4;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.space-next-milestone {
  color: #91cde2;
  text-align: right;
}

.space-scene {
  aspect-ratio: 1000 / 520;
  overflow: hidden;
  border: 1px solid rgba(159, 190, 215, 0.22);
  border-radius: 14px;
  background: #10172b;
  box-shadow: inset 0 0 35px rgba(4, 8, 18, 0.36);
}

.space-landscape {
  display: block;
  width: 100%;
  height: 100%;
}

.space-stars circle:nth-child(3n) {
  animation: space-twinkle 2.8s ease-in-out infinite alternate;
}

.space-stars circle:nth-child(3n + 1) {
  animation: space-twinkle 3.6s ease-in-out 1s infinite alternate;
}

.space-site {
  fill: rgba(199, 210, 221, 0.16);
  stroke: rgba(224, 231, 235, 0.38);
  stroke-width: 1.3;
  stroke-dasharray: 4 4;
}

.space-installation-shadow {
  fill: #252c3d;
  opacity: 0.66;
}

.space-installation.is-constructing {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: city-rise 650ms cubic-bezier(0.2, 0.75, 0.3, 1.15) both;
}

.space-installation.is-upgraded {
  filter: drop-shadow(0 0 4px rgba(108, 205, 234, 0.52));
}

.space-orbital-satellite {
  filter: drop-shadow(0 0 5px rgba(131, 207, 231, 0.65));
  animation: satellite-glow 2.4s ease-in-out infinite alternate;
}

.space-shuttle {
  filter: drop-shadow(0 0 4px rgba(108, 190, 231, 0.5));
}

.space-shuttle-motion {
  transform-box: view-box;
  animation: shuttle-flight 22s linear infinite;
}

.space-status {
  margin: 11px 2px 0;
  color: #a8afc6;
  font-size: 10px;
  line-height: 1.5;
}

.sentence-page-main {
  display: block;
  min-height: unset;
  padding: 28px 0 50px;
}

.sentence-game {
  width: 100%;
}

.sentence-game-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.sentence-game-heading h1 {
  margin: 8px 0 5px;
  font-family: "Nunito", sans-serif;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: -1px;
}

.sentence-game-heading p {
  margin: 0;
  color: #aaa9c2;
  font-size: 13px;
}

.sentence-game-heading .sentence-page-back {
  flex: 0 0 auto;
}

.sentence-game-card {
  overflow: hidden;
  border: 1px solid #302f45;
  border-radius: 22px;
  background: rgba(27, 27, 42, 0.97);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.26);
}

.sentence-toolbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 24px;
  border-bottom: 1px solid #343348;
}

.sentence-stats {
  display: flex;
  gap: 10px;
}

.sentence-stat {
  min-width: 125px;
  display: grid;
  grid-template-columns: 20px auto auto;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid #38364e;
  border-radius: 13px;
  background: #25243a;
  color: #b6aaff;
  font-size: 14px;
}

.sentence-stat-label {
  color: #aaa9c1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}

.sentence-stat output {
  justify-self: end;
  color: #f0efff;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sentence-score {
  color: #f2c96e;
}

.sentence-restart {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid #45435e;
  border-radius: 11px;
  background: #27263b;
  color: #dedcf7;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.sentence-restart:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: #8275d7;
  background: #302e4b;
}

.sentence-restart:disabled {
  opacity: 0.55;
  cursor: wait;
}

.sentence-progress {
  padding: 18px 24px 0;
}

.sentence-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #c3c1d8;
  font-size: 11px;
  font-weight: 700;
}

#sentence-progress-encouragement {
  color: #aaa9c2;
}

.sentence-progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #37354d;
}

#sentence-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8c7df0, #67d4ad);
  transition: width 240ms ease;
}

.sentence-message {
  margin: 15px 24px 17px;
  color: #aaa9c2;
  font-size: 12px;
  text-align: center;
}

.sentence-message.is-error {
  color: #ff98a8;
}

.sentence-message.is-success {
  color: #81e0b7;
}

.sentence-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 0 24px 20px;
}

.sentence-column h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  margin: 0 0 10px;
  color: #aaa9c2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.sentence-column h2 > span:last-child {
  margin-left: auto;
}

.sentence-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #a99bff;
  box-shadow: 0 0 0 4px rgba(169, 155, 255, 0.12);
}

.turkish-sentence-dot {
  background: #72dbb5;
  box-shadow: 0 0 0 4px rgba(114, 219, 181, 0.12);
}

.sentence-list {
  display: grid;
  align-content: start;
  gap: 10px;
}

.sentence-card {
  width: 100%;
  min-height: 88px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid #414057;
  border-radius: 14px;
  background: linear-gradient(145deg, #302f46, #272639);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 0 #1b1a29;
  color: #e6e4fb;
  cursor: pointer;
  text-align: left;
  white-space: normal;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, opacity 180ms ease;
}

.sentence-card:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: #8274d6;
  background: linear-gradient(145deg, #3a3855, #2e2c44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 7px 0 #1b1a29;
}

.sentence-card-number {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid #4a4767;
  border-radius: 9px;
  background: #25243a;
  color: #b8acff;
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.sentence-card-content {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.sentence-card-label {
  color: #9694b1;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
}

.sentence-card-text {
  overflow-wrap: anywhere;
  color: #e6e4fb;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
}

.sentence-card.is-selected {
  transform: translateY(-2px);
  border-color: #a99bff;
  background: linear-gradient(145deg, #48416d, #35304f);
  box-shadow: 0 0 0 2px rgba(169, 155, 255, 0.16), 0 6px 0 #201d34;
}

.sentence-card.is-matched {
  border-color: #36785f;
  background: linear-gradient(145deg, #204c40, #17372f);
  box-shadow: 0 4px 0 #10261f;
  opacity: 0.58;
  cursor: default;
}

.sentence-card.is-matched .sentence-card-number {
  border-color: #36785f;
  background: #17372f;
  color: #9af0c9;
}

.sentence-card.is-wrong {
  border-color: #a74a60;
  background: linear-gradient(145deg, #542d3c, #3f2634);
  box-shadow: 0 4px 0 #291821;
  animation: shake 500ms ease-in-out;
}

.sentence-card.is-wrong .sentence-card-number {
  border-color: #a74a60;
  background: #3f2634;
  color: #ffb5c0;
}

.sentence-card:disabled {
  cursor: default;
}

.sentence-game-card.is-locked .sentence-card:not(:disabled) {
  cursor: wait;
}

.sentence-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 10px;
  border-top: 1px solid #343348;
  color: #aaa9c2;
  font-size: 10px;
}

.sentence-footer strong {
  color: #f2c96e;
}

@media (max-width: 700px) {
  .sentence-page-main {
    padding-top: 20px;
  }

  .sentence-game-heading {
    align-items: flex-start;
  }

  .sentence-game-heading .sentence-page-back {
    padding: 9px 11px;
    font-size: 11px;
  }

  .sentence-columns {
    gap: 12px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .sentence-toolbar {
    padding-right: 14px;
    padding-left: 14px;
  }

  .sentence-progress {
    padding-right: 15px;
    padding-left: 15px;
  }

  .sentence-message {
    margin-right: 15px;
    margin-left: 15px;
  }
}

@media (max-width: 520px) {
  .sentence-game-heading {
    flex-direction: column;
    gap: 12px;
  }

  .sentence-game-heading .sentence-page-back {
    align-self: flex-start;
  }

  .sentence-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sentence-card {
    min-height: 74px;
    padding: 11px;
  }

  .sentence-card-text {
    font-size: 12px;
  }

  .sentence-stat {
    min-width: 105px;
    grid-template-columns: 16px auto auto;
    gap: 5px;
    padding: 9px 8px;
  }

  .sentence-stat-label {
    font-size: 8px;
  }

  .sentence-restart {
    padding: 0 10px;
    font-size: 11px;
  }
}

.quiz-match-link {
  border-color: rgba(112, 219, 181, 0.3);
  background: linear-gradient(135deg, #263f42, #25243a);
}

.quiz-match-link .sentence-match-icon,
.quiz-match-link .sentence-match-arrow {
  color: #83e0bd;
}

.quiz-match-link:hover {
  border-color: #72dbb5;
  background: linear-gradient(135deg, #2c4b4d, #2b2944);
  box-shadow: 0 11px 26px rgba(6, 6, 18, 0.28), 0 0 18px rgba(114, 219, 181, 0.14);
}

.quiz-page-main {
  padding: 28px 0 54px;
}

.quiz-page {
  width: 100%;
}

.quiz-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.quiz-page-heading h1 {
  margin: 8px 0 5px;
  font-family: "Nunito", sans-serif;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 900;
  letter-spacing: -1px;
}

.quiz-page-heading p {
  margin: 0;
  color: #aaa9c2;
  font-size: 13px;
}

.quiz-page-heading .sentence-page-back {
  flex: 0 0 auto;
}

.quiz-card {
  overflow: hidden;
  border: 1px solid #302f45;
  border-radius: 22px;
  background: rgba(27, 27, 42, 0.97);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.26);
}

.quiz-toolbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 24px;
  border-bottom: 1px solid #343348;
}

.quiz-stats {
  display: flex;
  gap: 10px;
}

.quiz-stat {
  min-width: 125px;
  display: grid;
  grid-template-columns: 20px auto auto;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid #38364e;
  border-radius: 13px;
  background: #25243a;
  color: #b6aaff;
  font-size: 14px;
}

.quiz-stat-label {
  color: #aaa9c1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}

.quiz-stat output {
  justify-self: end;
  color: #f0efff;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.quiz-score {
  color: #f2c96e;
}

.quiz-question-count {
  padding: 8px 12px;
  border: 1px solid #45415f;
  border-radius: 10px;
  background: #2a2842;
  color: #c1b8ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.quiz-content {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 28px clamp(18px, 5vw, 48px) 24px;
}

.quiz-topic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}

.quiz-topic,
.quiz-random-badge {
  max-width: 72%;
  padding: 7px 10px;
  border: 1px solid #45415f;
  border-radius: 9px;
  background: #25243a;
  color: #b8acff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  line-height: 1.4;
}

.quiz-random-badge {
  flex: 0 0 auto;
  border-color: #37544d;
  background: #203630;
  color: #9ce9c8;
}

.quiz-question {
  margin: 0 0 22px;
  color: #f0efff;
  font-family: "Nunito", sans-serif;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.quiz-options {
  display: grid;
  gap: 11px;
}

.quiz-option {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 11px 15px;
  border: 1px solid #414057;
  border-radius: 13px;
  background: linear-gradient(145deg, #302f46, #272639);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 0 #1b1a29;
  color: #e6e4fb;
  cursor: pointer;
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.quiz-option:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: #8274d6;
  background: linear-gradient(145deg, #3a3855, #2e2c44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 7px 0 #1b1a29;
}

.quiz-option-letter {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #4a4767;
  border-radius: 10px;
  background: #25243a;
  color: #b8acff;
  font-size: 11px;
  font-weight: 800;
}

.quiz-option-text {
  min-width: 0;
  color: #e6e4fb;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.quiz-option:disabled {
  cursor: default;
}

.quiz-option.is-correct {
  border-color: #36d995;
  background: linear-gradient(145deg, #147b53, #0e6042);
  box-shadow: inset 0 1px 0 rgba(220, 255, 238, 0.16), 0 4px 0 #09452f, 0 0 20px rgba(54, 217, 149, 0.2);
}

.quiz-option.is-correct .quiz-option-letter {
  border-color: #55e6a7;
  background: #0d593d;
  color: #c4ffe2;
}

.quiz-option.is-correct .quiz-option-text {
  color: #f0fff7;
}

.quiz-option.is-incorrect {
  border-color: #ff6578;
  background: linear-gradient(145deg, #a72e48, #83243c);
  box-shadow: inset 0 1px 0 rgba(255, 230, 234, 0.16), 0 4px 0 #5d192b, 0 0 20px rgba(255, 82, 111, 0.2);
}

.quiz-option.is-incorrect .quiz-option-letter {
  border-color: #ff8290;
  background: #721d35;
  color: #ffe0e4;
}

.quiz-option.is-incorrect .quiz-option-text {
  color: #fff2f3;
}

.quiz-feedback {
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #45415f;
  border-radius: 13px;
  background: #242337;
}

.quiz-feedback[hidden] {
  display: none;
}

.quiz-feedback-title {
  margin-bottom: 6px;
  color: #dcd9f5;
  font-size: 12px;
  font-weight: 800;
}

.quiz-feedback-title.is-correct {
  color: #81e0b7;
}

.quiz-feedback-title.is-incorrect {
  color: #ff98a8;
}

.quiz-feedback p {
  margin: 0;
  color: #aaa9c2;
  font-size: 12px;
  line-height: 1.65;
}

.quiz-actions {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 18px;
}

.quiz-status {
  margin: 0;
  color: #aaa9c2;
  font-size: 11px;
  line-height: 1.5;
}

.quiz-status.is-correct {
  color: #81e0b7;
}

.quiz-next-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #5d547f;
  border-radius: 11px;
  background: #302d4d;
  color: #e8e4ff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  opacity: 0.48;
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}

.quiz-next-button:disabled {
  cursor: not-allowed;
}

.quiz-next-button.is-ready {
  opacity: 1;
}

.quiz-next-button.is-ready:hover {
  transform: translateY(-2px);
  background: #3a355c;
}

.quiz-next-button:focus-visible {
  outline: 2px solid #c2b9ff;
  outline-offset: 3px;
}

.quiz-footer {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  border-top: 1px solid #343348;
  color: #aaa9c2;
  font-size: 10px;
}

.quiz-footer strong {
  color: #f2c96e;
}

.quiz-footer-note {
  margin-left: 12px;
  color: #77768f;
}

@media (max-width: 640px) {
  .intro-game-links {
    width: 100%;
  }

  .sentence-match-link {
    justify-content: center;
  }

  .quiz-page-main {
    padding-top: 20px;
  }

  .quiz-page-heading {
    align-items: flex-start;
  }

  .quiz-page-heading .sentence-page-back {
    padding: 9px 11px;
    font-size: 11px;
  }

  .quiz-toolbar {
    padding: 12px 14px;
  }

  .quiz-content {
    padding: 22px 16px;
  }
}

@media (max-width: 520px) {
  .quiz-page-heading {
    flex-direction: column;
    gap: 12px;
  }

  .quiz-page-heading .sentence-page-back {
    align-self: flex-start;
  }

  .quiz-stat {
    min-width: 105px;
    grid-template-columns: 16px auto auto;
    gap: 5px;
    padding: 9px 8px;
  }

  .quiz-stat-label {
    font-size: 8px;
  }

  .quiz-question-count {
    padding: 7px 9px;
    font-size: 9px;
  }

  .quiz-option {
    min-height: 54px;
    padding: 9px 10px;
  }

  .quiz-option-text {
    font-size: 12px;
  }

  .quiz-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .quiz-next-button {
    align-self: flex-end;
  }

  .quiz-footer {
    flex-wrap: wrap;
    gap: 7px;
    font-size: 9px;
  }

  .quiz-footer-note {
    flex-basis: 100%;
    margin-left: 0;
    text-align: center;
  }
}

.brand-icon svg {
  width: 24px;
  height: 24px;
  color: #a99bff;
}

@keyframes tree-grow {
  0% {
    scale: 0.12;
    opacity: 0.2;
  }
  68% {
    scale: 1.12;
    opacity: 1;
  }
  100% {
    scale: 1;
    opacity: 1;
  }
}

@keyframes city-rise {
  0% {
    scale: 0.18;
    opacity: 0.25;
  }
  72% {
    scale: 1.08;
    opacity: 1;
  }
  100% {
    scale: 1;
    opacity: 1;
  }
}

@keyframes city-drive-east {
  from {
    transform: translateX(-15%);
  }
  to {
    transform: translateX(115%);
  }
}

@keyframes city-drive-west {
  from {
    transform: translateX(115%);
  }
  to {
    transform: translateX(-15%);
  }
}

@keyframes shuttle-flight {
  from {
    transform: translate(-8%, 230px);
  }
  to {
    transform: translate(108%, 95px);
  }
}

@keyframes space-twinkle {
  from {
    opacity: 0.38;
  }
  to {
    opacity: 1;
  }
}

@keyframes satellite-glow {
  from {
    opacity: 0.72;
  }
  to {
    opacity: 1;
  }
}

@keyframes city-bubble-appear {
  from {
    opacity: 0;
    scale: 0.88;
    translate: 0 5px;
  }
  to {
    opacity: 1;
    scale: 1;
    translate: 0 0;
  }
}

@keyframes city-bubble-leave {
  to {
    opacity: 0;
    translate: 0 -5px;
  }
}

@media (max-width: 640px) {
  .example-panel {
    gap: 10px;
    padding: 11px 12px;
  }

  .example-english {
    font-size: 10px;
  }

  .example-turkish {
    font-size: 9px;
  }

  .village-panel {
    margin-top: 15px;
    padding: 13px;
    border-radius: 16px;
  }

  .village-header {
    gap: 10px;
    padding-bottom: 11px;
  }

  .village-title-group h2 {
    font-size: 17px;
  }

  .village-description {
    max-width: 220px;
    font-size: 10px;
  }

  .village-counter {
    min-width: auto;
    gap: 7px;
    padding: 8px 9px;
  }

  .village-counter > svg {
    width: 22px;
    height: 22px;
  }

  .village-count-copy strong {
    font-size: 15px;
  }

  .village-count-copy span {
    font-size: 8px;
  }

  .village-status {
    margin-top: 8px;
    font-size: 9px;
  }

  .city-panel {
    margin-bottom: 20px;
    padding: 13px;
    border-radius: 16px;
  }

  .city-header {
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 11px;
  }

  .city-title-group h2 {
    font-size: 17px;
  }

  .city-description {
    max-width: 235px;
    font-size: 10px;
  }

  .city-counters {
    gap: 5px;
  }

  .city-counter {
    min-width: 52px;
    padding: 7px 8px;
  }

  .city-counter strong {
    font-size: 14px;
  }

  .city-progress-row {
    gap: 9px;
    font-size: 9px;
  }

  .city-scene {
    min-height: 145px;
  }

  .city-status {
    margin-top: 8px;
    font-size: 9px;
  }

  .city-speech-text {
    font-size: 14px;
  }

  .space-panel {
    margin-bottom: 20px;
    padding: 13px;
    border-radius: 16px;
  }

  .space-header {
    align-items: flex-start;
    gap: 9px;
    padding-bottom: 11px;
  }

  .space-title-group h2 {
    font-size: 17px;
  }

  .space-description {
    max-width: 235px;
    font-size: 10px;
  }

  .space-counters {
    gap: 5px;
  }

  .space-counter {
    min-width: 57px;
    padding: 7px 8px;
  }

  .space-counter strong {
    font-size: 14px;
  }

  .space-counter span {
    font-size: 8px;
  }

  .space-progress-row {
    gap: 8px;
    font-size: 9px;
  }

  .space-scene {
    min-height: 150px;
  }

  .space-status {
    margin-top: 8px;
    font-size: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .example-panel,
  .planted-tree.is-growing,
  .city-building.is-constructing,
  .city-speech-bubble,
  .city-vehicle-motion,
  .space-installation.is-constructing,
  .space-orbital-satellite,
  .space-shuttle-motion,
  .space-stars circle {
    animation: none;
  }

  .city-vehicle {
    display: none;
  }
}

@keyframes example-arrive {
  from {
    transform: translateY(5px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
